/* E4B player pages: Harmony Daily + Harmony by Design. Shared tokens inherited from e4b.css. */
/*
   HARMONY DAILY - The Sanctuary
*/



*,
*::before,
*::after {
    box-sizing: border-box;
}


/* Page Header */
/* 2026-05-21 container-consistency refactor: padding now comes from
   .section.section-hero + .container-feed. Keep text-align + position only. */
.hd-page-header {
    text-align: center;
    position: relative;
}

.hd-title {
    font-family: var(--serif);
    font-weight: 400;
    color: var(--indigo);
    letter-spacing: 0.02em;
    margin: 0 0 0.5rem;
}

.hd-subtitle {
    font-family: var(--sans);
    font-weight: 300;
    color: var(--indigo-faint);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
}

/* Continuous Toggle */
.continuous-toggle {
    position: fixed;
    top: 5rem;
    right: 1rem;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: color-mix(in oklab, var(--parchment-warm) 95%, white 5%);
    border: 1px solid var(--rule);
    border-radius: 2rem;
    padding: 0.5rem 0.875rem;
    color: var(--indigo-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    min-height: 44px;
    user-select: none;
    -webkit-user-select: none;
}

.continuous-toggle:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.continuous-toggle.active {
    color: var(--teal);
    border-color: color-mix(in oklab, var(--teal) 15%, transparent);
    background: rgba(61, 139, 132, 0.06);
}

.continuous-toggle .toggle-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--indigo-faint);
    transition: background 0.3s ease;
}

.continuous-toggle.active .toggle-dot {
    background: var(--teal);
    box-shadow: 0 0 6px rgba(61, 139, 132, 0.4);
}

/* Feed Container */
/* 2026-05-21 container-consistency refactor: max-width + side-padding now
   come from .container-feed; .hd-feed only contributes bottom padding +
   mobile scroll-snap. */
.hd-feed {
    padding-bottom: 2rem;
}

@media (max-width: 639px) {
    .hd-feed {
        scroll-snap-type: y proximity;
    }
}

/* Post Card */
.hd-post {
    margin-bottom: var(--space-9);
    scroll-snap-align: start;
}

.hd-post.is-up-next-highlight {
    transition: box-shadow 1s ease, transform 1s ease;
    box-shadow: 0 0 40px rgba(61, 139, 132, 0.2);
    transform: scale(1.008);
}

@media (max-width: 639px) {
    .hd-post:not(.loading-post) {
        margin-bottom: 0;
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        padding-bottom: 2rem;
    }

    .loading-post {
        margin-bottom: 0;
    }
}

/* Post Divider */
.hd-post-divider {
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--teal));
    border: none;
    margin: 0 var(--space-7) var(--space-7);
    opacity: 0.4;
    border-radius: 1px;
}

@media (max-width: 639px) {
    .hd-post-divider {
        margin: 2rem 1rem;
    }
}

/* Video Container */
.hd-video-wrap {
    position: relative;
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    background: #1a1a1a;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.hd-video-wrap video {
    width: 100%;
    height: auto;
    display: block;
}

/* Play Button Overlay */
.hd-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.08);
    transition: opacity 0.5s ease;
    z-index: 2;
}

.hd-play-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.hd-play-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    animation: breathe 2s infinite ease-in-out;
    transition: transform 0.2s ease;
}

.hd-play-btn:hover {
    transform: scale(1.08);
}

.hd-play-btn svg {
    width: 28px;
    height: 28px;
    fill: white;
    margin-left: 3px;
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        opacity: 0.85;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* Video Progress Bar */
.hd-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    z-index: 3;
    cursor: pointer;
}

.hd-progress-fill {
    height: 100%;
    background: var(--gold);
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 0 1.5px 1.5px 0;
}

/* Mute Button */
.hd-mute {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: background 0.2s ease, opacity 0.3s ease;
}

.hd-video-wrap:hover .hd-mute,
.hd-video-wrap.playing .hd-mute {
    opacity: 1;
}

.hd-mute:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* No-Video Placeholder */
.hd-no-video {
    position: relative;
    width: 100%;
    min-height: 200px;
    aspect-ratio: 16 / 9;
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(61, 139, 132, 0.15), rgba(212, 175, 55, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.hd-no-video-inner {
    font-family: var(--serif);
    font-style: italic;
    color: var(--indigo);
    opacity: 0.7;
    line-height: 1.4;
}

.hd-no-video-artist {
    font-family: var(--sans);
    font-style: normal;
    color: var(--teal);
    margin-top: 0.75rem;
}

/* Song Info (below video, before caption) */
.hd-song-info {
    text-align: center;
    padding: var(--space-5) 0 var(--space-2);
}

.hd-day-label {
    font-family: var(--sans);
    font-weight: 300;
    color: var(--indigo-faint);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.hd-song-name {
    font-family: var(--serif);
    font-style: italic;
    color: var(--indigo);
    margin: 0 0 0.25rem;
}

.hd-song-name::before {
    content: "\266A ";
    font-style: normal;
}

.hd-artist {
    font-family: var(--sans);
    color: var(--teal);
    font-weight: 400;
}

/* Caption Section (the reveal) */
.hd-caption {
    overflow: hidden;
    transition: max-height 0.8s ease, opacity 0.8s ease;
}

.hd-caption.hidden-caption {
    max-height: 0;
    opacity: 0;
}

.hd-caption.revealed {
    max-height: 3000px;
    opacity: 1;
}

.hd-caption-inner {
    padding: var(--space-4) var(--space-2) var(--space-7);
}

/* Pull quote */
.hd-quote {
    border-left: 3px solid var(--gold);
    padding: 0.75rem 1rem;
    margin: 1rem 0 1.25rem;
    font-family: var(--serif);
    font-style: italic;
    color: var(--indigo);
    line-height: 1.5;
    background: rgba(212, 175, 55, 0.08);
    border-radius: 0 0.5rem 0.5rem 0;
}

/* Caption paragraphs */
.hd-caption-text {
    font-family: var(--sans);
    line-height: 1.7;
    color: var(--indigo);
    margin-bottom: 1.5rem;
}

.hd-caption-text p {
    margin: 0 0 0.875rem;
}

.hd-caption-text p:last-child {
    margin-bottom: 0;
}

/* Daily Tune callout */
.hd-tune {
    background: color-mix(in oklab, var(--teal) 8%, transparent);
    border: 1px solid color-mix(in oklab, var(--teal) 15%, transparent);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    margin: 1.25rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--indigo);
    line-height: 1.5;
}

.hd-tune-icon {
    flex-shrink: 0;
}

/* Today's Invitation callout */
.hd-invitation {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 0.75rem;
    padding: 1rem;
    margin: 1.25rem 0;
}

.hd-invitation-label {
    font-family: var(--sans);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #8B6B3D;
    margin-bottom: 0.5rem;
}

.hd-invitation-text {
    font-family: var(--serif);
    color: var(--indigo);
    line-height: 1.5;
}

/* Signature */
.hd-signature {
    text-align: right;
    font-family: var(--serif);
    font-style: italic;
    color: var(--indigo-muted);
    padding: 1rem 0.5rem 0;
}

/* Shimmer Loading */
.hd-shimmer-wrap {
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.hd-shimmer {
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(90deg, rgba(0,0,0,0.04) 25%, rgba(0,0,0,0.08) 50%, rgba(0,0,0,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite ease-in-out;
}

.hd-shimmer-1 { width: 65%; }
.hd-shimmer-2 { width: 45%; }
.hd-shimmer-3 { width: 55%; }

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* End of Archive */
.hd-end {
    text-align: center;
    padding: var(--space-9) var(--space-4);
    font-family: var(--serif);
    font-style: italic;
    color: var(--indigo-faint);
}

/* Up Next Pill */
.hd-up-next {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: color-mix(in oklab, var(--parchment-warm) 95%, white 5%);
    border: 1px solid var(--rule);
    border-radius: 2rem;
    padding: 0.75rem 1.25rem;
    font-family: var(--sans);
    color: var(--indigo-muted);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 200;
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    pointer-events: none;
    white-space: nowrap;
}

.hd-up-next.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.hd-up-next-label {
    color: var(--teal);
    font-weight: 500;
}

/* CTA Sections */
/* 2026-05-21 container-consistency refactor: vertical padding from
   .section.section-compact; horizontal padding + max-width from
   .container-feed. Keep text-align only. */
.hd-section {
    text-align: center;
}

.hd-section-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--teal));
    margin: 0 auto 2rem;
    border-radius: 1px;
}

.hd-section-label {
    font-family: var(--sans);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 1rem;
}

.hd-section-title {
    font-family: var(--serif);
    color: var(--indigo);
    margin: 0 0 0.75rem;
    font-weight: 400;
}

.hd-section-text {
    font-family: var(--sans);
    color: var(--indigo-muted);
    line-height: 1.6;
    margin: 0 0 2rem;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.hd-cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.hd-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-family: var(--sans);
    font-weight: 500;
    text-decoration: none;
    min-height: 44px;
    transition: all 0.2s ease;
}

.hd-cta-primary {
    background: var(--teal);
    color: white;
}

.hd-cta-primary:hover {
    background: #347a73;
    box-shadow: 0 4px 16px rgba(61, 139, 132, 0.3);
}

.hd-cta-secondary {
    background: transparent;
    color: var(--teal);
    border: 1px solid color-mix(in oklab, var(--teal) 15%, transparent);
}

.hd-cta-secondary:hover {
    background: color-mix(in oklab, var(--teal) 8%, transparent);
}

/* Responsive */
@media (max-width: 639px) {
    /* hd-page-header + hd-section padding now handled by
       .section.section-hero / .section.section-compact via clamp(); no
       per-page override needed. */

    .hd-video-wrap {
        border-radius: 0.75rem;
    }

    .continuous-toggle {
        top: 4.5rem;
        right: 0.5rem;
        padding: 0.375rem 0.75rem;
    }
}

/* Harmony by Design player */
body.e4b-music {
    font-family: var(--sans);
    color: var(--indigo);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Subtle Background Image */
/* Hero */
/* 2026-05-21 refactor: horizontal padding now comes from the inner
   .container; .music-hero keeps vertical padding + the flex centering layout. */
.music-hero {
    position: relative;
    min-height: 52vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--space-10);
    padding-bottom: var(--space-9);
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
}

.music-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 30%, rgba(61, 139, 132, 0.10), transparent 50%),
        radial-gradient(ellipse at 85% 50%, rgba(212, 175, 55, 0.12), transparent 45%),
        radial-gradient(ellipse at 50% 80%, rgba(74, 93, 69, 0.08), transparent 50%);
    z-index: 0;
}

.music-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(234, 227, 213, 0.8), transparent);
    z-index: 1;
}

.music-hero>* {
    position: relative;
    z-index: 2;
}

.music-hero-badge {
    display: inline-block;
    font-family: 'Alex Brush', cursive;
    font-weight: 400;
    background: linear-gradient(135deg, #33363D 0%, var(--teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    letter-spacing: 0.01em;
    line-height: 1.2;
    filter: drop-shadow(0 1px 2px rgba(61, 139, 132, 0.15));
}

.music-hero h1 {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    letter-spacing: 0;
}

.music-hero h1 .music-title-gradient {
    background: linear-gradient(135deg, var(--gold) 0%, #8B7028 50%, var(--teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.music-hero-sub {
    color: #4A453D;
    max-width: 600px;
    line-height: 1.6;
}

/* Track List */
/* 2026-05-21 container-consistency refactor: max-width + side-padding now
   come from .container-music-tracks; .tracks-container keeps only the
   bottom padding clearance for the fixed player. */
.tracks-container {
    padding-bottom: var(--space-player-clearance);
}

.music-section-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--teal);
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.music-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--rule-strong), transparent);
}

.track-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.track-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.track-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #FAF8F5;
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 12px;
    z-index: 0;
}

.track-item:hover::before {
    opacity: 1;
}

.track-item.active::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(61, 139, 132, 0.08), rgba(212, 175, 55, 0.06));
}

.track-item>* {
    position: relative;
    z-index: 1;
}

.track-play-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    flex-shrink: 0;
}

.track-play-btn {
    background: var(--parchment-warm);
    color: var(--indigo-muted);
    border: 1px solid var(--rule);
}

.track-item:hover .track-play-btn {
    background: var(--gold);
    color: #FFFDF5;
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(212,175,55,0.3);
}

.track-item.active .track-play-btn {
    background: var(--gold);
    color: #FFFDF5;
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(212,175,55,0.3);
}

.track-item.playing .track-play-btn {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(212,175,55,0.3);
    }

    50% {
        box-shadow: 0 0 35px rgba(212, 175, 55, 0.4);
    }
}

.track-info {
    min-width: 0;
}

.track-name {
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.2s;
}

.track-item.active .track-name {
    color: var(--gold);
}

.track-artist-name {
    color: var(--indigo-muted);
    margin-top: 0.15rem;
}

.track-duration {
    color: var(--indigo-muted);
    font-variant-numeric: tabular-nums;
    padding-left: 1rem;
}

.track-color-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--track-color, var(--gold));
    border-radius: 0 2px 2px 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.track-item.active .track-color-bar {
    opacity: 1;
}

/* Empty state */
.music-empty-state {
    text-align: center;
    padding: var(--space-section) var(--space-7);
    color: var(--indigo-muted);
}

.empty-icon {
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.music-empty-state h3 {
    font-family: var(--serif);
    color: rgba(15,23,42,0.46);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

/* Loading */
.music-loading {
    padding: var(--space-10) var(--space-7);
    text-align: center;
}

.music-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--rule-strong);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.music-loading-text {
    color: var(--indigo-muted);
}

/* Fixed Player Bar */
.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background:
        linear-gradient(180deg,
            color-mix(in oklab, var(--parchment-soft) 92%, white 8%) 0%,
            color-mix(in oklab, var(--parchment) 94%, white 6%) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--rule-strong);
    box-shadow: 0 -18px 48px -34px rgba(15, 23, 42, 0.38);
    padding: 0;
    z-index: 100;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.player-bar.visible {
    transform: translateY(0);
}

.player-progress-wrapper {
    height: 4px;
    background: color-mix(in oklab, var(--moss) 14%, transparent);
    cursor: pointer;
    position: relative;
}

.player-progress-wrapper:hover {
    height: 6px;
}

.player-progress-wrapper:hover .player-progress-handle {
    opacity: 1;
    transform: scale(1);
}

.player-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--teal));
    width: 0%;
    transition: none;
    position: relative;
}

.player-progress-handle {
    position: absolute;
    right: -6px;
    top: 50%;
    width: 12px;
    height: 12px;
    background: var(--gold);
    border-radius: 50%;
    translate: 0 -50%;
    transform: scale(0);
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 0 8px rgba(212,175,55,0.3);
}

.player-main {
    /* 2026-05-21 refactor: max-width + horizontal centering now come from
       .container-music-player on the same element. Vertical padding stays
       here (fixed player layout). */
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
}

.player-track {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.player-art {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-track-info {
    min-width: 0;
}

.player-track-name {
    font-weight: 600;
    line-height: 1.25;
    color: var(--indigo);
}

.player-track-artist {
    color: var(--indigo-muted);
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.player-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    background: transparent;
    color: var(--moss);
    transition: all 0.2s;
}

.player-btn:hover {
    color: var(--teal);
}

.player-btn.play-pause {
    width: 48px;
    height: 48px;
    background: var(--gold);
    color: var(--indigo);
    box-shadow: 0 2px 15px rgba(212,175,55,0.3);
}

.player-btn.play-pause:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 25px rgba(212,175,55,0.3);
}

.player-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.player-time {
    color: var(--indigo-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.volume-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volume-icon {
    color: var(--moss);
    cursor: pointer;
}

.volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: color-mix(in oklab, var(--moss) 18%, transparent);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    box-shadow: 0 0 6px rgba(212,175,55,0.3);
}

/* Responsive */
@media(max-width:640px) {
    .music-hero {
        min-height: 46vh;
        padding-top: var(--space-8);
        padding-bottom: var(--space-7);
        padding-left: 0;
        padding-right: 0;
    }

    .player-main {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "track track"
            "controls time";
        gap: 0.75rem;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .player-track {
        grid-area: track;
        min-width: 0;
        gap: 0.75rem;
    }

    .player-art {
        width: 38px;
        height: 38px;
    }

    .player-track-name,
    .track-name {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        white-space: normal;
    }

    .player-controls {
        grid-area: controls;
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .player-right {
        grid-area: time;
        justify-content: flex-end;
    }

    .player-btn:not(.play-pause) {
        width: 34px;
        height: 34px;
    }

    .player-btn.play-pause {
        width: 44px;
        height: 44px;
    }

    .volume-wrapper {
        display: none;
    }

    .player-time {
        font-size: 0.875rem;
    }

    .track-item {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 0.75rem;
        align-items: start;
        padding: 0.875rem 1rem;
    }

    .track-play-btn {
        width: 44px;
        height: 44px;
    }

    .track-duration {
        padding-left: 0.25rem;
        padding-top: 0.125rem;
    }
}

/* Fade-in animation */
.music-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.music-delay-1 {
    animation-delay: 0.1s;
}

.music-delay-2 {
    animation-delay: 0.2s;
}

.music-delay-3 {
    animation-delay: 0.3s;
}
