/* ============================================
   LYRICS PAGES STYLES
   ============================================ */

.lyrics-page {
    min-height: 100vh;
    color: #fff;
    padding: 2rem 1rem;
    font-family: var(--font-primary);
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lyrics-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.lyrics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.back-btn {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    font-family: var(--font-primary);
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.back-btn svg {
    transition: transform 0.3s ease;
}

.back-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(-4px);
}

.back-btn:hover svg {
    transform: translateX(-4px);
}

.site-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin: 0;
}

.name-gradient {
    background: linear-gradient(135deg, #e0e0e0 0%, #888888 50%, #666666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 5s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Content Layout */
.lyrics-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Left column: sidebar + description stacked */
.lyrics-left-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Sidebar */
.lyrics-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--dynamic-bg, rgba(255, 255, 255, 0.02)) !important;
    border-color: var(--dynamic-border, rgba(255, 255, 255, 0.06)) !important;
    box-shadow: var(--dynamic-shadow, 0 20px 60px rgba(100, 100, 100, 0.3)) !important;
    transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Title and artist sit close together */
.lyrics-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 900;
    line-height: 1.1;
    margin: 0.2rem 0 0.1rem 0;
    letter-spacing: 0.02em;
    color: #fff;
    text-align: center;
}

.lyrics-artist {
    font-family: var(--font-primary);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.6);
    margin: -0.45rem 0 0.5rem 0;
    font-weight: 600;
    text-align: center;
}

.lyrics-sidebar:hover {
    box-shadow: var(--dynamic-shadow-hover, 0 25px 70px rgba(100, 100, 100, 0.4)) !important;
    transform: translateY(-4px);
}

/* Description block placed under sidebar — same width via parent column */
.lyrics-description-sidebar {
    animation: fadeInUp 0.8s ease forwards 0.9s;
    opacity: 0;
    padding: 1.5rem;
}

/* Mobile-only description copy (hidden on desktop) */
.lyrics-description-mobile {
    display: none;
}

.lyrics-description-sidebar .lyrics-heading {
    margin: 0 0 1.5rem 0;
}

.lyrics-cover {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lyrics-cover:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7);
}

.lyrics-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lyrics-cover:hover img {
    transform: scale(1.05);
}

.cover-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

.lyrics-cover:hover .cover-glow {
    opacity: 1;
}

.lyrics-release {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
    font-style: italic;
    font-family: var(--font-primary);
    text-align: center;
}

.listen-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(200, 200, 200, 0.9));
    color: #0a0a0a;
    text-decoration: none;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 700;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
    border: none;
}

.listen-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.25);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(220, 220, 220, 1));
}

.genius-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.8rem;
    background: linear-gradient(135deg, rgba(255, 230, 0, 0.2), rgba(245, 197, 24, 0.12));
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 700;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 220, 0, 0.35);
    box-shadow: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@supports (-webkit-backdrop-filter: blur(10px)) {
    .genius-btn {
        background: linear-gradient(135deg, rgba(255, 230, 0, 0.25), rgba(245, 197, 24, 0.15));
        border-color: rgba(255, 220, 0, 0.5);
    }
}

.genius-btn:hover {
    background: linear-gradient(135deg, rgba(255, 230, 0, 0.3), rgba(245, 197, 24, 0.2));
    border-color: rgba(255, 220, 0, 0.6);
    color: #fff;
    transform: translateY(-2px);
}

@supports (-webkit-backdrop-filter: blur(10px)) {
    .genius-btn:hover {
        background: linear-gradient(135deg, rgba(255, 230, 0, 0.35), rgba(245, 197, 24, 0.25));
        border-color: rgba(255, 220, 0, 0.7);
    }
}

.sidebar-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* Listen toggle button */
.listen-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(200, 200, 200, 0.9));
    color: #0a0a0a;
    border: none;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.listen-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.25);
    background: linear-gradient(135deg, #fff, #ddd);
}

.listen-toggle-btn[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.listen-toggle-btn[aria-expanded="true"]:hover {
    background: rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

.listen-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.listen-toggle-btn[aria-expanded="true"] .listen-icon {
    transform: rotate(90deg);
}

/* Spoiler container */
.listen-spoiler {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                margin-top 0.3s ease;
    opacity: 0;
    margin-top: 0;
}

.listen-spoiler[aria-hidden="false"] {
    max-height: 600px;
    opacity: 1;
    margin-top: 0.2rem;
}

/* About scroll button */
.about-scroll-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.about-scroll-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

/* Platform links in lyrics sidebar */
.lyrics-platform-links {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.lyrics-stream-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.25s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lyrics-stream-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.lyrics-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.lyrics-btn-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 4px;
}

.lyrics-btn-text {
    white-space: nowrap;
}

/* Main Content */
.lyrics-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.lyrics-text-card {
    animation: fadeInUp 0.8s ease forwards 0.7s;
    opacity: 0;
    background: var(--dynamic-bg, rgba(255, 255, 255, 0.02)) !important;
    border-color: var(--dynamic-border, rgba(255, 255, 255, 0.06)) !important;
    box-shadow: var(--dynamic-shadow, 0 20px 60px rgba(100, 100, 100, 0.3)) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lyrics-text-card:hover {
    box-shadow: var(--dynamic-shadow-hover, 0 25px 70px rgba(100, 100, 100, 0.4)) !important;
}

.lyrics-text-card .lyrics-heading {
    font-size: clamp(1.495rem, 3.45vw, 2.07rem);
}

.lyrics-heading {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 900;
    margin: 0 0 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    color: #fff;
    background: none;
    -webkit-text-fill-color: #fff;
}

.lyrics-text {
    font-family: var(--font-primary);
    font-size: clamp(0.8rem, 1.6vw, 0.88rem);
    line-height: 1.9;
    word-wrap: break-word;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    text-align: center;
}

/* Semantic lyrics markup for SEO */
.lyrics-body {
    display: block;
}

.lyrics-stanza {
    margin: 0 0 1.4em 0;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    text-align: center;
}

.lyrics-stanza:last-child {
    margin-bottom: 0;
}

.lyrics-line {
    display: inline;
}

.lyrics-empty {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
    padding: 3rem 2rem;
    text-align: center;
    font-size: 1rem;
    font-family: var(--font-primary);
}

/* Track List */
.track-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    list-style: none;
    padding: 0;
}

.track-list li {
    list-style: none;
}

.track-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.track-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(100, 100, 100, 0.15);
}

.track-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.3);
    min-width: 3rem;
    text-align: center;
    transition: color 0.3s ease;
}

.track-item:hover .track-number {
    color: rgba(255, 255, 255, 0.6);
}

.track-title {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: var(--font-primary);
    letter-spacing: 0.01em;
}

.track-arrow {
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.track-item:hover .track-arrow {
    color: rgba(255, 255, 255, 0.8);
    transform: translateX(4px);
}

/* Video */
.release-video {
    animation: fadeInUp 0.8s ease forwards 0.9s;
    opacity: 0;
    background: var(--dynamic-bg, rgba(255, 255, 255, 0.02)) !important;
    border-color: var(--dynamic-border, rgba(255, 255, 255, 0.06)) !important;
    box-shadow: var(--dynamic-shadow, 0 20px 60px rgba(100, 100, 100, 0.3)) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    margin-top: 1rem;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Description */
.lyrics-description {
    animation: fadeInUp 0.8s ease forwards 1.1s;
    opacity: 0;
    line-height: 1.8;
    font-family: var(--font-primary);
    color: rgba(255, 255, 255, 0.8);
    background: var(--dynamic-bg, rgba(255, 255, 255, 0.02)) !important;
    border-color: var(--dynamic-border, rgba(255, 255, 255, 0.06)) !important;
    box-shadow: var(--dynamic-shadow, 0 20px 60px rgba(100, 100, 100, 0.3)) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lyrics-description img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.lyrics-description p {
    margin: 1rem 0;
    font-size: 1rem;
    line-height: 1.8;
}

.lyrics-description h1,
.lyrics-description h2,
.lyrics-description h3 {
    font-family: var(--font-display);
    margin: 0.5rem 0 0 0;
    color: #fff;
    letter-spacing: 0.02em;
}

.lyrics-description h1 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Убираем отступ у элементов после заголовка */
.lyrics-description h1 + br {
    display: none;
}

.lyrics-description h1 + * {
    margin-top: 0;
}

.lyrics-description h2 {
    font-size: 1.6rem;
}

.lyrics-description h3 {
    font-size: 1.3rem;
}

.lyrics-description a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.lyrics-description a:hover {
    color: #fff;
}

.lyrics-description .youtube-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin: 0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.lyrics-description .youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

.lyrics-description .formatted-description {
    display: block;
}

/* Back to Top Button */
.back-to-top {
    position: relative;
    display: block;
    width: fit-content;
    margin: 4rem auto 2rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    color: #0a0a0a;
    border: none;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.back-to-top:hover {
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.back-to-top:active {
    transform: translateY(2px);
}

/* Mobile: slightly smaller margin */
@media (max-width: 768px) {
    .back-to-top {
        margin: 3rem auto;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .lyrics-page {
        padding: 1.5rem 1rem;
    }

    .lyrics-header {
        margin-bottom: 2rem;
        padding-bottom: 1rem;
    }

    .back-btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .site-title {
        font-size: 1.2rem;
    }

    .lyrics-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .lyrics-left-col {
        gap: 1rem;
    }

    /* On mobile: hide sidebar description, show inline description */
    .lyrics-description-sidebar {
        display: none;
    }

    .lyrics-description-mobile {
        display: block;
    }

    /* Unified padding for all blocks on mobile */
    .lyrics-page .glass-card {
        padding: 1.2rem;
    }

    /* Unified heading size and spacing on mobile */
    .lyrics-page .lyrics-heading {
        font-size: 1.25rem;
        margin: 0 0 1rem 0;
    }

    .lyrics-sidebar {
        position: static;
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }

    .lyrics-title {
        font-size: clamp(2.08rem, 7.8vw, 2.6rem);
        text-align: center;
    }

    .lyrics-artist,
    .lyrics-release {
        text-align: center;
    }

    .lyrics-text {
        font-size: 0.76rem;
        line-height: 1.7;
    }

    .track-item {
        padding: 1rem 1.2rem;
        gap: 1rem;
    }

    .track-number {
        font-size: 1.2rem;
        min-width: 2.5rem;
    }

    .track-title {
        font-size: 0.95rem;
    }

    .lyrics-description {
        font-size: 0.95rem;
    }

    .back-to-top {
        position: relative;
        bottom: auto;
        left: auto;
        margin: 3rem auto;
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
        opacity: 1;
        visibility: visible;
        transform: translateX(0) translateY(0);
    }
    
    .back-to-top:active {
        transform: translateY(2px);
    }
}

@media (max-width: 480px) {
    .lyrics-page {
        padding: 1rem 0.75rem;
    }

    .back-btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.9rem;
        gap: 0.3rem;
    }

    .back-btn svg {
        width: 16px;
        height: 16px;
    }

    .site-title {
        font-size: 1rem;
    }

    /* Unified padding for all blocks on small mobile */
    .lyrics-page .glass-card {
        padding: 1rem;
    }

    /* Unified heading size and spacing on small mobile */
    .lyrics-page .lyrics-heading {
        font-size: 1.1rem;
        margin: 0 0 0.9rem 0;
    }

    .lyrics-title {
        font-size: clamp(1.95rem, 7.8vw, 2.47rem);
    }

    .lyrics-text {
        font-size: 0.72rem;
        line-height: 1.6;
    }

    .track-item {
        padding: 0.9rem 1rem;
        gap: 0.8rem;
    }

    .track-number {
        font-size: 1.1rem;
        min-width: 2rem;
    }

    .track-title {
        font-size: 0.9rem;
    }

    .track-arrow svg {
        width: 16px;
        height: 16px;
    }

    .back-to-top {
        margin: 2.5rem auto;
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
    }
}
