/* Music Page Styles */
.main-nav {
    margin-bottom: 40px;
}

.nav-link {
    color: #555;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #000;
    text-decoration: underline;
}

.page-title {
    font-size: var(--text-2xl);
    line-height: 1.15;
    font-weight: 400;
    font-style: italic;
    font-family: var(--font-display);
    margin: 0 0 12px 0;
    text-align: center;
    text-transform: lowercase;
}

/* Albums Grid */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 32px;
}

.album-card {
    border-radius: 10px;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Only cards that open something look and act clickable */
.album-card[role="button"] {
    cursor: pointer;
}

.album-card[role="button"]:hover {
    transform: translateY(-8px);
}

.album-card[role="button"]:focus-visible {
    outline: 2px solid rgba(178, 82, 118, 0.75);
    outline-offset: 6px;
}

@media (prefers-reduced-motion: reduce) {
    .album-card[role="button"]:hover {
        transform: none;
    }
}

.album-cover-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 16px;
}

.album-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.album-rating-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.album-info {
    text-align: center;
}

.album-artist {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #333;
}

body[data-theme="dark"] .album-artist {
    color: #f0f0f0;
}

.album-title {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

body[data-theme="dark"] .album-title {
    color: #b0b0b0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background-color: #fff;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

body[data-theme="dark"] .modal-content {
    background-color: #2a2a2a;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #333;
}

body[data-theme="dark"] .modal-close {
    color: #b0b0b0;
}

body[data-theme="dark"] .modal-close:hover {
    color: #f0f0f0;
}

.album-modal-content {
    display: flex;
    gap: 40px;
    padding: 40px;
}

.modal-left {
    flex: 1;
    padding-right: 20px;
}

.modal-right {
    flex-shrink: 0;
    width: 300px;
}

.modal-artist {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #666;
}

body[data-theme="dark"] .modal-artist {
    color: #b0b0b0;
}

.modal-album-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #333;
}

body[data-theme="dark"] .modal-album-title {
    color: #f0f0f0;
}

.modal-rating {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 12px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.rating-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
}

.rating-divider {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.rating-total {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.modal-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 32px;
}

body[data-theme="dark"] .modal-description {
    color: #b0b0b0;
}

.modal-favorite-songs {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
}

body[data-theme="dark"] .modal-favorite-songs {
    background-color: #1a1a1a;
}

.modal-favorite-songs h4 {
    font-size: 1.1rem;
    margin: 0 0 12px 0;
    color: #333;
}

body[data-theme="dark"] .modal-favorite-songs h4 {
    color: #f0f0f0;
}

.modal-favorite-songs ol {
    margin: 0;
    padding-left: 20px;
    color: #555;
}

body[data-theme="dark"] .modal-favorite-songs ol {
    color: #b0b0b0;
}

.modal-favorite-songs li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.modal-favorite-songs li:last-child {
    margin-bottom: 0;
}

.modal-album-cover {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .albums-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px;
    }

    .album-modal-content {
        flex-direction: column-reverse;
        padding: 24px;
        gap: 24px;
    }

    .modal-left {
        padding-right: 0;
    }

    .modal-right {
        width: 100%;
    }

    .modal-album-cover {
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }
}

/* Spotify Profile Link */
.spotify-profile-link {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background-color: #1DB954;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
}

.spotify-icon {
    fill: #1DB954;
    transition: fill 0.3s ease;
}

.spotify-profile-link:hover {
    background-color: #1ed760;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(29, 185, 84, 0.4);
}

.spotify-profile-link:hover .spotify-icon {
    fill: #169c45;
}

body[data-theme="dark"] .spotify-profile-link {
    background-color: #1DB954;
}

body[data-theme="dark"] .spotify-profile-link:hover {
    background-color: #1ed760;
}

/* AniList Profile Link */
.anilist-profile-link {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background-color: #FF6B9D;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

.anilist-button-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    transition: opacity 0.3s ease;
}

.anilist-profile-link:hover {
    background-color: #ff85b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 157, 0.4);
}

.anilist-profile-link:hover .anilist-button-icon {
    opacity: 0.8;
}

body[data-theme="dark"] .anilist-profile-link {
    background-color: #FF6B9D;
}

body[data-theme="dark"] .anilist-profile-link:hover {
    background-color: #ff85b3;
}

/* Favorite Artists */
.favorite-artists {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
    padding: 20px 10px;
}

.artist-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    cursor: default;
    flex: 0 0 auto;
}

.artist-item:hover {
    transform: translateY(-4px);
}

.artist-image-container {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 12px;
}

/* Make page wider for music page to fit bigger artist icons */
.music-page {
    max-width: 1000px;
}

.artist-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.artist-name {
    font-weight: 500;
    font-size: 0.95rem;
    color: #333;
    text-align: center;
}

body[data-theme="dark"] .artist-name {
    color: #d0d0d0;
}

/* Responsive for Favorite Artists */
@media (max-width: 768px) {
    .favorite-artists {
        gap: 12px;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-left: 20px;
        padding-right: 20px;
    }

    .favorite-artists::-webkit-scrollbar {
        display: none;
    }

    .favorite-artists {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .artist-image-container {
        width: 100px;
        height: 100px;
    }

    .artist-name {
        font-size: 0.85rem;
    }
}

/* Watching Page Specific Styles */
.anilist-link {
    color: #333;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.anilist-link:hover {
    color: #000;
}

body[data-theme="dark"] .anilist-link {
    color: #b0b0b0;
}

body[data-theme="dark"] .anilist-link:hover {
    color: #fff;
}

body[data-theme="dark"] .watching-intro {
    color: #b0b0b0;
}