/* ============================================================
   Arcynia Jukebox, Track lore page (/jukebox/track/<slug>)
   Distinct from the player's arcade cabinet: this is a content
   page (cover, prose, metadata) more in the manifesto / colophon
   visual register than the jukebox cabinet itself. Still neon-
   accented but easier to read for long-form copy.
   ============================================================ */

.jbt-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding-bottom: 3rem;
}

.jbt-article {
    color: rgba(255, 255, 255, 0.85);
}

/* ── Hero: cover + meta side-by-side on desktop, stacked on mobile ── */
.jbt-hero {
    display: grid;
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
    margin: 1rem 0 3rem;
}
.jbt-hero-cover {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 380px;
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(180deg, #06060f 0%, #1a0a3a 50%, #06060f 100%);
    border: 1px solid rgba(255, 45, 123, 0.45);
    box-shadow:
        0 0 32px rgba(255, 45, 123, 0.45),
        0 0 64px rgba(123, 47, 247, 0.3);
    justify-self: center;
}
.jbt-hero-cover img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
/* CSS synthwave-horizon fallback (matches the player's .jb-cover.is-fallback) */
.jbt-hero-cover-fallback {
    position: absolute; inset: 0;
}
.jbt-hero-cover-fallback::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle 38% 38% at 50% 64%,
            #ffd86b 0%, #ff8c42 28%, #ff2d7b 60%, transparent 80%),
        linear-gradient(180deg,
            #1a0a3a 0%, #3d1565 35%, #832566 55%,
            #d8417a 70%, #ff6b6b 76%, #14063a 100%);
}
.jbt-hero-cover-fallback::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    bottom: 0; top: 60%;
    background:
        repeating-linear-gradient(0deg,
            transparent 0 7px, rgba(255, 45, 123, 0.45) 7px 8px),
        repeating-linear-gradient(90deg,
            transparent 0 7px, rgba(255, 45, 123, 0.35) 7px 8px);
    transform: perspective(80px) rotateX(40deg);
    transform-origin: 50% 0%;
}

.jbt-hero-meta {
    min-width: 0;
}
.jbt-eyebrow {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(255, 45, 123, 0.85);
    text-shadow: 0 0 10px rgba(255, 45, 123, 0.55);
    margin: 0 0 0.6rem;
}
.jbt-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.05;
    color: #fff;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.2);
    margin: 0 0 0.4rem;
}
.jbt-artist {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    font-size: clamp(1.1rem, 2.4vw, 1.5rem);
    color: var(--ar-neon-cyan);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.45);
    margin: 0 0 1.25rem;
}

/* Badge row, genre / BPM / duration */
.jbt-badges {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.jbt-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(255, 45, 123, 0.4);
    border-radius: 0.4rem;
    background: rgba(6, 6, 15, 0.55);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}
.jbt-badge i { font-size: 0.95rem; }
.jbt-badge--bpm   { color: rgba(0, 240, 255, 0.9); border-color: rgba(0, 240, 255, 0.4); }
.jbt-badge--bpm i { color: var(--ar-neon-cyan); }
.jbt-badge--genre i { color: var(--ar-neon-pink); }
.jbt-badge--time  { color: rgba(255, 255, 255, 0.7); border-color: rgba(255, 255, 255, 0.18); }

/* Primary CTA, Play in Jukebox */
.jbt-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.5rem;
    border-radius: 0.5rem;
    background: linear-gradient(180deg,
        rgba(255, 45, 123, 0.18) 0%,
        rgba(123, 47, 247, 0.18) 100%);
    border: 1px solid var(--ar-neon-pink);
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    text-shadow: 0 0 8px rgba(255, 45, 123, 0.65);
    box-shadow:
        0 0 16px rgba(255, 45, 123, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
}
.jbt-cta i { font-size: 1.2rem; color: var(--ar-neon-cyan); text-shadow: 0 0 8px rgba(0, 240, 255, 0.7); }
.jbt-cta:hover {
    background: linear-gradient(180deg,
        rgba(255, 45, 123, 0.3) 0%,
        rgba(123, 47, 247, 0.3) 100%);
    box-shadow:
        0 0 24px rgba(255, 45, 123, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #fff;
}
.jbt-cta:active { transform: translateY(1px); }

/* ── Prose section ── */
.jbt-prose {
    max-width: 720px;
    margin: 0 auto 3rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
}
.jbt-prose p { margin: 0 0 1.1rem; }
.jbt-prose code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.18);
    border-radius: 0.25rem;
    padding: 0.05em 0.4em;
}
.jbt-prose strong {
    color: var(--ar-neon-cyan);
    font-weight: 600;
}
.jbt-prose a {
    color: var(--ar-neon-cyan);
    text-decoration: none;
    border-bottom: 1px dotted rgba(0, 240, 255, 0.4);
    transition: color 0.18s, border-color 0.18s;
}
.jbt-prose a:hover {
    color: #fff;
    border-bottom-color: var(--ar-neon-cyan);
}
/* Outro version sits at the bottom of the article, slightly muted
   so it doesn't fight the curated "About this track" prose visually. */
.jbt-prose--outro {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    border-top: 1px solid rgba(123, 47, 247, 0.18);
    padding-top: 2rem;
    margin-top: 1rem;
}
.jbt-section-heading {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ar-neon-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
    margin: 0 0 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

/* ── Up next section ── */
.jbt-up-next {
    max-width: 960px;
    margin: 0 auto 3rem;
}
.jbt-up-next-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}
.jbt-up-next-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem;
    border: 1px solid rgba(255, 45, 123, 0.25);
    border-radius: 0.6rem;
    background: rgba(6, 6, 15, 0.6);
    text-decoration: none;
    color: inherit;
    transition: background 0.18s, border-color 0.18s, transform 0.12s;
}
.jbt-up-next-card:hover {
    background: rgba(255, 45, 123, 0.08);
    border-color: rgba(255, 45, 123, 0.55);
    transform: translateY(-1px);
    color: #fff;
}
.jbt-up-next-cover {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 0.4rem;
    overflow: hidden;
    background: linear-gradient(180deg, #06060f, #1a0a3a, #06060f);
    border: 1px solid rgba(255, 45, 123, 0.3);
    box-shadow: 0 0 8px rgba(255, 45, 123, 0.18);
}
.jbt-up-next-cover img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.jbt-up-next-cover-fallback {
    display: block;
    width: 100%; height: 100%;
    background:
        radial-gradient(circle at 50% 65%, #ffd86b 0%, #ff2d7b 60%, transparent 80%),
        linear-gradient(180deg, #1a0a3a, #832566, #ff6b6b);
}
.jbt-up-next-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.jbt-up-next-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    font-size: 1.05rem;
    color: #fff;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.jbt-up-next-meta {
    font-size: 0.82rem;
    color: rgba(0, 240, 255, 0.78);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Footer back-link ── */
.jbt-footer {
    text-align: center;
    margin: 2rem 0 1rem;
}

/* ── Mobile ── */
@media (max-width: 740px) {
    .jbt-hero {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
        margin-bottom: 2rem;
    }
    .jbt-hero-cover { max-width: 320px; }
    .jbt-badges { justify-content: center; }
    .jbt-cta { width: 100%; justify-content: center; }
    .jbt-prose {
        font-size: 1.05rem;
    }
}
@media (max-width: 540px) {
    .jbt-wrap { padding-bottom: 2rem; }
    .jbt-hero { margin: 0.5rem 0 1.5rem; }
}
