/* ================================================================
   SONG STAGE - studio-rack treatment for /song/{slug}
   Cover-art ambient backdrop, glass-morph plates with screws,
   cover-driven color tint, staggered entrance, audio-reactive glow.
   ================================================================ */

:root {
    --song-c1: var(--sc-accent-rgb);
    --song-c2: var(--sc-accent-rgb);
    --song-c3: var(--sc-accent-rgb);
}

.song-ambient-backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-size: cover;
    background-position: center;
    filter: blur(56px) saturate(1.3) brightness(0.45);
    transform: scale(1.15);
    opacity: 0.9;
    animation: ambient-drift 32s ease-in-out infinite alternate;
}
.song-ambient-backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 20%, transparent 0%, rgba(10,10,14,0.75) 75%),
        linear-gradient(180deg, rgba(10,10,14,0.2) 0%, rgba(10,10,14,0.85) 100%);
}
@keyframes ambient-drift {
    0%   { transform: scale(1.15) translate(0, 0); }
    100% { transform: scale(1.2)  translate(-2%, -1%); }
}

.song-stage {
    max-width: 860px;
    margin: 0 auto;
    padding: 1rem 0.25rem 3rem;
    position: relative;
}

/* ---- Hero title ---- */
.song-hero-title {
    font-family: 'Big Shoulders Display', 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(2.4rem, 6.5vw, 4.75rem);
    line-height: 0.9;
    letter-spacing: -0.008em;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
    margin: 2rem 0 0.75rem;
    text-shadow:
        0 0 40px rgba(var(--song-c1), 0.35),
        0 2px 20px rgba(0,0,0,0.6);
}
.song-hero-title > span { font-weight: 700; letter-spacing: 0.04em; }

/* ---- Artist row pill ---- */
.song-artist-row {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.public-artist-link {
    display: inline-flex; align-items: center; gap: 0.55rem;
    padding: 0.3rem 0.85rem 0.3rem 0.3rem;
    border-radius: 999px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.09);
    backdrop-filter: blur(8px);
    color: inherit;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
a.public-artist-link:hover {
    background: rgba(var(--song-c1), 0.18);
    border-color: rgba(var(--song-c1), 0.5);
    transform: translateY(-1px);
}
.public-artist-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.15);
    flex: 0 0 auto;
}
.public-artist-avatar-fallback {
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(var(--song-c1), 0.3);
    color: #fff; font-weight: 600; font-size: 0.9rem;
}
.public-artist-name { font-size: 0.95rem; font-weight: 500; }

/* ---- Plate base (extends .rack-panel from site.css) ---- */
.song-plate {
    position: relative;
    background:
        linear-gradient(180deg, rgba(28,28,34,0.72) 0%, rgba(14,14,18,0.82) 100%);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
    overflow: hidden;
    backdrop-filter: blur(12px) saturate(1.1);
    -webkit-backdrop-filter: blur(12px) saturate(1.1);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        inset 0 -2px 4px rgba(0,0,0,0.45),
        0 10px 32px rgba(0,0,0,0.5),
        0 0 0 1px rgba(var(--song-c1), 0.08);
}

/* Animated edge-glint: a faint sweeping highlight across the border.
   Gives the plate a subtle "light catching on metal" feel. */
.song-plate::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        115deg,
        transparent 30%,
        rgba(var(--song-c1), 0.5) 48%,
        rgba(var(--song-c2), 0.25) 52%,
        transparent 70%
    );
    background-size: 250% 250%;
    background-position: 0% 0%;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    animation: plate-glint 9s linear infinite;
    pointer-events: none;
}
@keyframes plate-glint {
    0%   { background-position: 200% 0%; opacity: 0.55; }
    50%  { opacity: 0.9; }
    100% { background-position: -200% 0%; opacity: 0.55; }
}

.plate-label {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.35rem;
}
.plate-readout {
    font-family: 'Big Shoulders Display', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: 0.01em;
    color: #fff;
    text-shadow: 0 0 16px rgba(var(--song-c1), 0.3);
}
.plate-readout-small {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.95rem;
    color: #fff;
}

/* ---- Cover plate ---- */
.cover-plate {
    padding: 1.5rem;
    transform-origin: top center;
    transform: scale(var(--scroll-scale, 1));
    transition: transform 0.05s linear;
}
.cover-frame {
    position: relative;
    aspect-ratio: 1;
    max-width: 460px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.6),
        0 0 40px rgba(var(--song-c1), 0.18);
    opacity: var(--scroll-fade, 1);
}
.plate-ambient-glow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.95;
    pointer-events: none;
    filter: blur(6px);
}
.cover-frame { position: relative; z-index: 1; }
.cover-art {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
}
.cover-art-fallback {
    background: linear-gradient(135deg,
        rgba(var(--song-c1), 0.45) 0%,
        rgba(12, 12, 16, 0.85) 55%,
        rgba(var(--song-c2), 0.25) 100%);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
    gap: 0.85rem;
}
.cover-art-fallback-logo {
    width: 84%;
    max-width: 390px;
    height: auto;
    opacity: 0.9;
    filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.6));
}
.cover-art-fallback-icon {
    font-size: 2.4rem;
    color: rgba(255, 255, 255, 0.6);
    filter: drop-shadow(0 0 16px rgba(var(--song-c1), 0.55));
}
.cover-glass {
    position: absolute; inset: 0; z-index: 2;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.1), transparent 60%),
        linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}
.cover-viz {
    position: absolute; inset: 0; z-index: 3;
    pointer-events: none;
}
.cover-viz canvas { width: 100%; height: 100%; display: block; }

/* ---- Preview LED ---- */
.plate-led {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.75rem;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(var(--song-c1), 0.4);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
}
.plate-led .led-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgb(var(--song-c1));
    box-shadow: 0 0 10px rgb(var(--song-c1));
    animation: led-blink 1.8s ease-in-out infinite;
}
.plate-led .led-label { font-weight: 600; }
.plate-led .led-cta {
    margin-left: 0.55rem;
    padding-left: 0.6rem;
    border-left: 1px solid rgba(255,255,255,0.15);
    color: rgb(var(--sc-primary-light, 255, 180, 100));
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0.04em;
    font-size: 0.75rem;
}
.plate-led .led-cta:hover { color: #fff; }
@keyframes led-blink {
    0%, 45%, 100% { opacity: 1; }
    55%, 90%      { opacity: 0.35; }
}

/* ---- Waveform inside cover plate ---- */
.plate-waveform {
    margin-top: 1.1rem;
}
.waveform-time {
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 0.35rem;
    letter-spacing: 0.06em;
}
.waveform-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.waveform-mini-play {
    flex: 0 0 auto;
    width: 38px; height: 38px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    background: rgba(0,0,0,0.4);
    color: #fff;
    cursor: pointer;
    display: grid; place-items: center;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.waveform-mini-play:hover {
    background: rgba(var(--song-c1), 0.25);
    border-color: rgba(var(--song-c1), 0.6);
}
.waveform-track {
    flex: 1 1 auto;
    height: 48px;
    cursor: pointer;
    background: rgba(0,0,0,0.35);
    border-radius: 6px;
    overflow: hidden;
}
.waveform-track canvas { width: 100%; height: 100%; display: block; }

/* ---- Stat plate row ---- */
.plate-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    margin-bottom: 1rem;
}
/* Screws are 14px wide at 10px inset - occupy 10-24px from each edge.         */
/* Stat-plate text starts where padding begins, so padding < 24px means the    */
/* first character sits under the screw. Using 1.7rem (27px) keeps a small gap.*/
.stat-plate {
    margin-bottom: 0;
    padding: 1.7rem 1.55rem 1.45rem;
    text-align: left;
    min-height: 92px;
}
.stat-plate .plate-readout { font-size: 1.25rem; }
@media (max-width: 640px) {
    .plate-row { grid-template-columns: repeat(2, 1fr); }
}

/* ---- CTA plate ---- */
.cta-plate {
    padding: 1.5rem 1.75rem;
    background:
        linear-gradient(135deg,
            rgba(var(--song-c1), 0.22) 0%,
            rgba(28,28,34,0.85) 60%,
            rgba(var(--song-c2), 0.18) 100%);
    border-color: rgba(var(--song-c1), 0.4);
}
.cta-plate-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.cta-plate-kicker {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgb(var(--song-c1));
    margin-bottom: 0.3rem;
}
.cta-plate-headline {
    font-family: 'Big Shoulders Display', 'Inter', sans-serif;
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    text-transform: uppercase;
}
.cta-plate-btn {
    padding: 0.6rem 1.3rem;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(var(--song-c1), 0.35);
}

/* ---- Lyrics plate ---- */
.lyrics-plate {
    padding: 0;
    overflow: hidden;
}
.lyrics-plate-summary {
    list-style: none;
    cursor: pointer;
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.lyrics-plate-summary::-webkit-details-marker { display: none; }
.lyrics-plate-summary .plate-label { flex: 1 1 auto; }
.lyrics-chevron {
    transition: transform 0.2s ease;
    color: rgba(255,255,255,0.6);
}
.lyrics-plate[open] .lyrics-chevron { transform: rotate(180deg); }
.lyrics-plate-body {
    padding: 0 1.1rem 1.1rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 1rem;
}

/* ---- Song footer ---- */
.song-footer { margin-top: 2rem; }

/* ---- Entrance animation ---- */
.anim-enter {
    opacity: 0;
    transform: translateY(20px);
    animation: plate-enter 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.anim-enter-1 { animation-delay: 0.05s; }
.anim-enter-2 { animation-delay: 0.18s; }
.anim-enter-3 { animation-delay: 0.3s; }
.anim-enter-4 { animation-delay: 0.5s; }
.anim-enter-5 { animation-delay: 0.65s; }
.anim-enter-6 { animation-delay: 0.8s; }
.anim-enter-7 { animation-delay: 0.95s; }
@keyframes plate-enter {
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .song-ambient-backdrop { animation: none; }
    .song-plate::before { animation: none; }
    .plate-led .led-dot { animation: none; }
    .play-chunky-led-ring { animation: none; }
    .anim-enter { animation: none; opacity: 1; transform: none; }
    .cover-plate { transform: none; }
}

/* ================================================================
   MIXTAPE - /playlist/{slug} treatment
   Uses song-plate + rack-screw + ambient-backdrop from above.
   Adds playlist-specific player controls and tracklist rows.
   ================================================================ */

.mixtape-play-all {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.7rem;
    border-radius: 999px;
    font-family: 'Big Shoulders Display', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background:
        linear-gradient(180deg, #262630 0%, #15151b 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 32px rgba(var(--song-c1), 0.25);
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.2s ease;
}
.mixtape-play-all:hover {
    transform: translateY(-1px);
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 40px rgba(var(--song-c1), 0.4);
}
.mixtape-play-all i {
    font-size: 1.35rem;
    color: rgb(var(--song-c1));
    filter: drop-shadow(0 0 6px rgba(var(--song-c1), 0.6));
}
.mixtape-play-all:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.mixtape-tracklist {
    padding: 0.75rem 0.9rem;
}

.mixtape-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s ease;
}
.mixtape-row:last-child { border-bottom: none; }
.mixtape-row:hover { background: rgba(255, 255, 255, 0.03); }

.mixtape-row.is-active {
    background:
        linear-gradient(90deg,
            rgba(var(--song-c1), 0.12) 0%,
            rgba(var(--song-c2), 0.05) 50%,
            transparent 100%);
    border-bottom-color: rgba(var(--song-c1), 0.3);
}

.mixtape-row-index {
    width: 24px;
    flex-shrink: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
}
.mixtape-row.is-active .mixtape-row-index {
    color: rgb(var(--song-c1));
}

.mixtape-row-cover {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.mixtape-row-cover-fallback {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 6px;
    display: grid;
    place-items: center;
    background: rgba(var(--song-c1), 0.1);
    color: rgba(var(--song-c1), 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mixtape-row-meta {
    flex: 1 1 auto;
    min-width: 0;
}
.mixtape-row-title {
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.mixtape-row-artist {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 0.1rem;
}

.mixtape-row-peaks {
    flex-shrink: 0;
}
.mixtape-row-peaks canvas {
    display: block;
}
.mixtape-row:not(.is-active) .mixtape-row-peaks canvas {
    width: 120px;
    height: 22px;
    opacity: 0.45;
}
.mixtape-row.is-active .mixtape-row-peaks canvas {
    width: 200px;
    height: 38px;
    cursor: pointer;
}

.mixtape-row-play {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.15s ease;
}
.mixtape-row-play:hover {
    background: rgba(var(--song-c1), 0.25);
    border-color: rgba(var(--song-c1), 0.5);
}
.mixtape-row.is-active .mixtape-row-play {
    background: rgba(var(--song-c1), 0.35);
    border-color: rgba(var(--song-c1), 0.7);
    color: #fff;
}

.mixtape-empty {
    padding: 3rem 1rem;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 640px) {
    .mixtape-row { gap: 0.55rem; padding: 0.55rem 0.15rem; }
    .mixtape-row-cover, .mixtape-row-cover-fallback { width: 36px; height: 36px; }
    .mixtape-row:not(.is-active) .mixtape-row-peaks canvas { width: 80px; height: 18px; }
    .mixtape-row.is-active .mixtape-row-peaks canvas { width: 120px; height: 32px; }
}

/* ================================================================
   MIXTAPE NOW PLAYING STRIP
   Visible when a track is active. Sits between the cover plate and
   the tracklist. Familiar layout: cover, title/artist, controls,
   big seekable waveform.
   ================================================================ */

.mixtape-nowplaying { padding: 1.1rem 1.25rem; }
.mixtape-nowplaying .mnp-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    grid-template-areas:
        "cover info controls"
        "cover waveform waveform";
    gap: 0.65rem 1rem;
    align-items: center;
}
.mnp-cover {
    grid-area: cover;
    width: 84px; height: 84px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 22px rgba(0,0,0,0.55);
}
.mnp-cover-fallback {
    display: grid; place-items: center;
    background: rgba(var(--song-c1), 0.15);
    color: rgb(var(--song-c1));
    font-size: 2rem;
}
.mnp-info { grid-area: info; min-width: 0; }
.mnp-kicker {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgb(var(--song-c1));
    opacity: 0.85;
    margin-bottom: 0.2rem;
}
.mnp-title {
    font-family: 'Big Shoulders Display', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.45rem;
    line-height: 1.05;
    color: #fff;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.mnp-artist {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.55);
    margin-top: 0.15rem;
}
.mnp-controls {
    grid-area: controls;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.mnp-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(0,0,0,0.4);
    color: #fff;
    display: grid; place-items: center;
    cursor: pointer;
    transition: all 0.15s ease;
}
.mnp-btn:hover:not(:disabled) {
    background: rgba(var(--song-c1), 0.25);
    border-color: rgba(var(--song-c1), 0.55);
}
.mnp-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.mnp-btn-primary {
    width: 52px; height: 52px;
    background: linear-gradient(180deg, #262630 0%, #15151b 100%);
    border-color: rgba(var(--song-c1), 0.45);
    box-shadow: 0 0 24px rgba(var(--song-c1), 0.3);
}
.mnp-btn-primary i {
    font-size: 1.5rem;
    color: rgb(var(--song-c1));
    filter: drop-shadow(0 0 4px rgba(var(--song-c1), 0.6));
}
.mnp-waveform { grid-area: waveform; position: relative; }
.mnp-waveform canvas {
    width: 100%;
    height: 56px;
    display: block;
    cursor: pointer;
}
.mnp-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.55);
    margin-top: 0.3rem;
    text-align: right;
}

@media (max-width: 640px) {
    .mixtape-nowplaying { padding: 0.9rem 0.85rem; }
    .mixtape-nowplaying .mnp-grid {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "cover info"
            "controls controls"
            "waveform waveform";
        gap: 0.8rem 0.85rem;
    }
    .mnp-cover { width: 72px; height: 72px; }
    .mnp-title { font-size: 1.25rem; }
    .mnp-controls {
        justify-content: center;
        gap: 0.8rem;
    }
    .mnp-btn { width: 46px; height: 46px; font-size: 1.1rem; }
    .mnp-btn-primary { width: 62px; height: 62px; }
    .mnp-btn-primary i { font-size: 1.7rem; }
    .mnp-waveform canvas { height: 52px; }
}

.mnp-enter { transition: opacity 0.25s ease, transform 0.25s ease; }
.mnp-enter-start { opacity: 0; transform: translateY(-6px); }
.mnp-enter-end { opacity: 1; transform: translateY(0); }

/* With the active-row waveform swap removed, row peaks stay one size. */
.mixtape-row-peaks canvas {
    width: 140px;
    height: 26px;
}
@media (max-width: 640px) {
    /* Hide per-row sparklines on mobile - too cramped to be useful, and the
       now-playing strip shows the active waveform clearly. Reclaim the room
       for the title so it stops truncating mid-word. */
    .mixtape-row-peaks { display: none; }
    .mixtape-row {
        gap: 0.65rem;
        padding: 0.6rem 0.25rem;
    }
    .mixtape-row-index {
        width: 20px;
        font-size: 0.7rem;
    }
    .mixtape-row-cover,
    .mixtape-row-cover-fallback {
        width: 40px;
        height: 40px;
    }
    .mixtape-row-title { font-size: 0.9rem; }
    .mixtape-row-artist { font-size: 0.68rem; }
    .mixtape-row-play { width: 38px; height: 38px; }
}

.mixtape-row-led {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}
.mixtape-row-led-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgb(var(--song-c1));
    box-shadow: 0 0 10px rgba(var(--song-c1), 0.8);
    animation: mixtape-led-pulse 1.6s ease-in-out infinite;
}
@keyframes mixtape-led-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.85); }
}

/* Compact variant of .mixtape-play-all for prev/next icon-only siblings.
   Same chassis styling, tighter padding, no label. */
.mixtape-play-all.mixtape-play-all-compact {
    padding: 0.85rem 1rem;
    font-size: 1rem;
}
.mixtape-play-all.mixtape-play-all-compact i { font-size: 1.15rem; }

/* Cover plate layout (hoisted off inline styles so it can respond). */
.mixtape-cover-plate-inner {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}
.mixtape-cover {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}
.mixtape-cover-fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(var(--song-c1), 0.3), rgba(12, 12, 16, 0.8));
    color: rgb(var(--song-c1));
    font-size: 4.5rem;
    opacity: 1;
}
.mixtape-cover-fallback i { opacity: 0.7; }
.mixtape-cover-info {
    flex: 1 1 280px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.mixtape-cover-controls {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

@media (max-width: 640px) {
    .mixtape-cover-plate-inner {
        flex-direction: column;
        gap: 1rem;
    }
    .mixtape-cover {
        width: 100%;
        max-width: 340px;
        height: auto;
        aspect-ratio: 1;
    }
    .mixtape-cover-info { width: 100%; align-items: center; flex: 0 0 auto; }
    .mixtape-cover-info .plate-label { text-align: center; }
    .mixtape-cover-controls { justify-content: center; width: 100%; }
}

/* Dedicated cover plate for the public playlist page. Separate from the
   song page's .cover-plate (which has scroll-parallax transforms). Just
   a plain plate with responsive padding. */
.mixtape-cover-plate {
    padding: 1.5rem;
}
@media (max-width: 640px) {
    .mixtape-cover-plate { padding: 0.9rem 0.9rem 1rem; }
}
