/*
 * NyxVN shared site styling.
 *
 * Vaporwave-sunset palette taken from the Intertwined logo: warm orange and
 * magenta as primaries, cyan as the contrast accent, on a deep neon-night
 * surface. wallpaper.png is laid down as a fixed background at low opacity
 * behind a heavy darkening overlay so the type stays legible everywhere.
 */

:root {
    color-scheme: dark;

    /* Brand */
    --c-orange:       #ff7a1f;
    --c-orange-hot:   #ff8c3a;
    --c-orange-soft:  #ffb061;
    --c-pink:         #ff4d8f;
    --c-magenta:      #ff3d8a;
    --c-yellow:       #ffd54a;
    --c-cyan:         #36d9d9;
    --c-violet:       #a78bfa;

    /* Surfaces */
    --c-bg:           #0a050f;
    --c-surface:      #150a1f;
    --c-surface-2:    #1d1230;
    --c-surface-3:    #261540;
    --c-border:       #3a1f5a;
    --c-border-soft:  #2a1640;
    --c-border-warm:  rgba(255, 122, 31, 0.40);

    /* Text */
    --c-text:         #f8eadb;
    --c-text-strong:  #ffffff;
    --c-text-dim:     #beadc6;
    --c-text-mute:    #8b7a99;

    /* State */
    --c-success:      #5ed39e;
    --c-danger:       #ff476f;
    --c-warning:      #ffb061;

    /* Type */
    --font-body:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display:   "Outfit", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Effects */
    --shadow-card:    0 14px 40px -16px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.4);
    --shadow-glow:    0 0 0 1px rgba(255, 122, 31, 0.18), 0 12px 32px -10px rgba(255, 77, 143, 0.25);
    --grad-sunset:    linear-gradient(135deg, var(--c-orange) 0%, var(--c-pink) 55%, var(--c-violet) 100%);
    --grad-sunset-soft: linear-gradient(135deg, rgba(255, 122, 31, 0.18), rgba(255, 77, 143, 0.18) 60%, rgba(167, 139, 250, 0.18));

    --radius:         12px;
    --radius-sm:      8px;

    /* Glass surface tokens. Used across cards, panels and chips so the
     * frosted look stays consistent and the particle field behind the
     * page can softly diffuse through. Kept on the subtle side — a hint
     * of frost, not opaque milk glass. */
    --glass-bg:        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
    --glass-bg-warm:   linear-gradient(180deg, rgba(255, 122, 31, 0.05), rgba(255, 77, 143, 0.02));
    --glass-border:    rgba(255, 255, 255, 0.07);
    --glass-blur:      blur(10px) saturate(120%);
    --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--c-text);
    font: 16px/1.65 var(--font-body);
    background-color: var(--c-bg);
    /* Two-layer background: a soft sunset glow that hugs the top of the page,
     * laid over the wallpaper image at low opacity, anchored to the viewport. */
    background-image:
        radial-gradient(1200px 700px at 50% -10%, rgba(255, 122, 31, 0.22), transparent 60%),
        radial-gradient(900px 600px at 90% 10%, rgba(255, 77, 143, 0.18), transparent 60%),
        radial-gradient(900px 600px at 0% 10%, rgba(54, 217, 217, 0.10), transparent 60%),
        linear-gradient(180deg, rgba(10, 5, 15, 0.78), rgba(10, 5, 15, 0.92)),
        url("/wallpaper.png");
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
    background-position: 50% 0, 50% 0, 50% 0, 50% 0, 50% 0;
    background-size: auto, auto, auto, auto, cover;
    background-attachment: fixed, fixed, fixed, fixed, fixed;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection { background: rgba(255, 122, 31, 0.4); color: #fff; }

a {
    color: var(--c-orange-soft);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 176, 97, 0.25);
    transition: color 0.15s ease, border-color 0.15s ease;
}

a:hover {
    color: var(--c-yellow);
    border-bottom-color: var(--c-yellow);
}

a:focus-visible {
    outline: 2px solid var(--c-orange);
    outline-offset: 2px;
    border-radius: 3px;
}

/* ---------------------------------------------------------------------------
 * Layout
 * ------------------------------------------------------------------------- */

.wrap {
    max-width: 880px;
    margin: 0 auto;
    padding: 40px 22px 96px;
}

/* ---------------------------------------------------------------------------
 * Sticky site header (shared across all pages via _partials/head.php)
 * ------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background: rgba(10, 5, 15, 0.72);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--c-border-soft);
}

.site-header::after {
    /* Razor-thin sunset line under the bar for warmth. */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 122, 31, 0.45), rgba(255, 77, 143, 0.35), transparent);
    pointer-events: none;
}

.site-header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 10px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.site-header .brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border-bottom: none;
    flex: 0 0 auto;
}

.site-header .brand img {
    height: 40px;
    width: auto;
    display: block;
    filter: drop-shadow(0 4px 18px rgba(255, 77, 143, 0.35));
    transition: filter 0.2s ease;
}

.site-header .brand:hover img { filter: drop-shadow(0 4px 22px rgba(255, 122, 31, 0.55)); }

.site-nav {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
    margin-left: 8px;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--c-text-dim);
    background: transparent;
    border: 1px solid transparent;
    text-decoration: none;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.site-nav a .ti { font-size: 1rem; }

.site-nav a:hover {
    color: var(--c-text-strong);
    background: rgba(255, 122, 31, 0.08);
    border-color: var(--c-border-warm);
}

.site-nav a.is-active {
    color: var(--c-text-strong);
    background: rgba(255, 77, 143, 0.12);
    border-color: var(--c-border-warm);
    box-shadow: inset 0 -2px 0 0 var(--c-orange);
    border-radius: 10px 10px 0 0;
}

.site-nav a.is-active:hover {
    background: rgba(255, 77, 143, 0.18);
}

.site-cta {
    margin-left: auto;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.1s ease, filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

.cta .ti { font-size: 1rem; }

.cta-ghost {
    color: var(--c-text);
    background: rgba(88, 101, 242, 0.10);
    border-color: rgba(88, 101, 242, 0.35);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-highlight);
}

.cta-ghost:hover {
    background: rgba(88, 101, 242, 0.18);
    color: var(--c-text-strong);
}

.cta-primary {
    color: #1a0420;
    background: var(--grad-sunset);
    box-shadow: 0 6px 18px -6px rgba(255, 77, 143, 0.6);
}

.cta-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.cta:active { transform: translateY(0); }

/* On narrow screens, collapse the labels and show only icons for nav + CTAs. */
@media (max-width: 720px) {
    .site-header-inner { padding: 8px 14px; gap: 8px; }
    .site-header .brand img { height: 32px; }
    .site-nav a span,
    .site-cta .cta span { display: none; }
    .site-nav a { padding: 8px 10px; }
    .cta { padding: 8px 12px; }
}

/* Landing-layout body inherits the shared body background (wallpaper +
 * sunset glow). No override here so the hero sits on top of it. */

.page-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.85rem, 1.4rem + 1.6vw, 2.6rem);
    letter-spacing: -0.01em;
    margin: 4px 0 4px;
    background: var(--grad-sunset);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page-meta {
    color: var(--c-text-mute);
    font-size: 0.92rem;
    margin: 0;
}

.page-meta .dot { color: var(--c-orange); margin: 0 8px; }

/* ---------------------------------------------------------------------------
 * Long-form content (legal pages)
 * ------------------------------------------------------------------------- */

.content h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.35rem;
    margin: 44px 0 12px;
    color: var(--c-text-strong);
    position: relative;
    padding-left: 14px;
}

.content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    bottom: 0.45em;
    width: 4px;
    border-radius: 4px;
    background: var(--grad-sunset);
}

.content h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    margin: 28px 0 10px;
    color: var(--c-orange-soft);
}

.content p,
.content li {
    color: var(--c-text);
}

.content strong { color: var(--c-text-strong); }

.content ul {
    padding-left: 22px;
}

.content ul li {
    margin-bottom: 6px;
}

.content ul li::marker {
    color: var(--c-orange);
}

.content code,
.content .tag {
    background: var(--c-surface-2);
    border: 1px solid var(--c-border);
    border-radius: 5px;
    padding: 1px 7px;
    font-size: 0.88em;
    color: var(--c-orange-soft);
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 18px 22px;
    margin: 18px 0;
    box-shadow: var(--shadow-card), var(--glass-highlight);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.card.is-highlight {
    border-color: transparent;
    background:
        linear-gradient(var(--c-surface), var(--c-surface)) padding-box,
        var(--grad-sunset) border-box;
    border: 1px solid transparent;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 122, 31, 0.08);
    border: 1px solid var(--c-border-warm);
    color: var(--c-orange-soft);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.82rem;
    margin: 0 6px 6px 0;
    line-height: 1;
}

.pill .ti { font-size: 0.95rem; }

.ok  { color: var(--c-success); }
.no  { color: var(--c-danger); }
.muted { color: var(--c-text-mute); }

footer.site-footer {
    margin-top: 64px;
    padding-top: 22px;
    border-top: 1px solid var(--c-border-soft);
    color: var(--c-text-mute);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

footer.site-footer a { color: var(--c-orange-soft); }

/* ---------------------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--c-text);
    background: rgba(29, 18, 48, 0.55);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-highlight);
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

.btn:hover {
    background: rgba(38, 21, 64, 0.7);
    border-color: var(--c-border-warm);
}

.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--grad-sunset);
    color: #1a0420;
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 8px 24px -8px rgba(255, 77, 143, 0.5);
}

.btn-primary:hover {
    background: var(--grad-sunset);
    border-color: transparent;
    filter: brightness(1.07);
    color: #1a0420;
}

.btn-patreon {
    background: rgba(249, 104, 84, 0.08);
    border-color: rgba(249, 104, 84, 0.35);
    color: #ff9080;
    font-weight: 500;
}

.btn-patreon:hover {
    background: rgba(249, 104, 84, 0.16);
    border-color: rgba(249, 104, 84, 0.55);
    color: #ffb0a0;
}

.btn-patreon .ti { color: #f96854; }

.cta-patreon .ti { color: #f96854; }
.cta-patreon:hover { border-color: rgba(249, 104, 84, 0.45); }

/* ---------------------------------------------------------------------------
 * Reduced motion
 * ------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------------------------------------------------------------------------
 * Landing page
 * ------------------------------------------------------------------------- */

.home {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 22px 64px;
}

/* ----- Cinematic hero ----- */

.hero {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--c-border);
    isolation: isolate;
    min-height: 540px;
    display: flex;
    align-items: center;
    padding: 64px 56px;
    background: var(--c-surface);
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.75);
}

.hero::before {
    /* Reserved for a future foreground overlay if needed; the scrolling
     * artwork now lives in the .hero-bg element below so we can animate it. */
    content: none;
}

/* Two side-by-side copies of the artwork inside .hero-bg form a strip that
 * is exactly twice as wide as one image. Translating the strip from 0% to
 * -50% over a long duration produces a seamless slow pan. */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    display: flex;
    align-items: stretch;
    width: max-content;
    animation: hero-scroll 140s linear infinite;
    will-change: transform;
}

.hero-bg img {
    display: block;
    height: 100%;
    width: auto;
    flex: 0 0 auto;
    object-fit: cover;
    object-position: center;
    user-select: none;
    -webkit-user-drag: none;
}

@keyframes hero-scroll {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}

/* Respect user preference: no motion = no marquee. */
@media (prefers-reduced-motion: reduce) {
    .hero-bg { animation: none; }
}

/* Wardrobe toggle: a transparent PNG button floating in the hero corner.
 * No border or background; just a soft glow that intensifies on hover and
 * a press-state ring when active. */
.bikini-toggle {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    color: inherit;
    transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
    filter: drop-shadow(0 4px 14px rgba(255, 77, 143, 0.45));
}

.bikini-toggle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.bikini-toggle:hover {
    transform: translateY(-2px) rotate(-4deg);
    filter: drop-shadow(0 8px 22px rgba(255, 77, 143, 0.7));
}

.bikini-toggle:hover img { transform: scale(1.06); }

.bikini-toggle:focus-visible {
    outline: 2px solid var(--c-orange);
    outline-offset: 4px;
}

.bikini-toggle[aria-pressed="true"] {
    background: radial-gradient(closest-side, rgba(255, 77, 143, 0.35), transparent 70%);
    filter: drop-shadow(0 10px 26px rgba(255, 77, 143, 0.85));
}

@media (max-width: 560px) {
    .bikini-toggle { width: 60px; height: 60px; top: 12px; right: 12px; }
}

.hero::after {
    /* Sunset tint + vignette so the logo and copy stay readable over any
     * portion of the artwork. */
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(800px 500px at 18% 50%, rgba(10, 5, 15, 0.85), transparent 70%),
        linear-gradient(120deg, rgba(10, 5, 15, 0.92) 0%, rgba(10, 5, 15, 0.45) 55%, rgba(255, 77, 143, 0.15) 100%),
        linear-gradient(0deg, rgba(10, 5, 15, 0.7), rgba(10, 5, 15, 0) 35%);
    z-index: -1;
}

.hero-inner {
    max-width: 600px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 122, 31, 0.12);
    border: 1px solid var(--c-border-warm);
    color: var(--c-orange-soft);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.hero-tag .ti { font-size: 0.95rem; }

.hero-logo {
    display: block;
    width: min(440px, 90%);
    height: auto;
    margin: 0 0 22px;
    filter: drop-shadow(0 18px 60px rgba(255, 77, 143, 0.5));
}

.hero h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
    color: var(--c-text-strong);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}

.hero h1 .accent {
    background: var(--grad-sunset);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero .lede {
    margin: 0 0 28px;
    font-size: 1.08rem;
    line-height: 1.6;
    color: var(--c-text);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
    max-width: 520px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    align-items: center;
}

.hero-cta .btn {
    padding: 14px 22px;
    font-size: 0.95rem;
    white-space: nowrap;
    flex: 0 0 auto;
}

.hero-cta .btn .ti { font-size: 1.15rem; }

.hero-meta {
    display: flex;
    gap: 18px;
    margin-top: 26px;
    flex-wrap: wrap;
    color: var(--c-text-dim);
    font-size: 0.85rem;
}

.hero-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-meta .meta-item .ti {
    color: var(--c-orange);
}

/* ----- Section scaffolding ----- */

.section {
    margin-top: 72px;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.section-head h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    margin: 0;
    color: var(--c-text-strong);
    letter-spacing: -0.01em;
}

.section-head h2 .accent {
    background: var(--grad-sunset);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-head p {
    margin: 0;
    color: var(--c-text-mute);
    font-size: 0.92rem;
    max-width: 420px;
}

/* ----- Features grid ----- */

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.feature {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 22px 22px 24px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature:hover {
    transform: translateY(-3px);
    border-color: var(--c-border-warm);
}

.feature::before {
    content: "";
    position: absolute;
    inset: -1px -1px auto -1px;
    height: 3px;
    background: var(--grad-sunset);
    opacity: 0.85;
}

.feature .feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--grad-sunset-soft);
    border: 1px solid var(--c-border-warm);
    color: var(--c-orange);
    margin-bottom: 14px;
}

.feature .feature-icon .ti { font-size: 1.4rem; }

.feature h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0 0 8px;
    color: var(--c-text-strong);
}

.feature p {
    margin: 0;
    color: var(--c-text-dim);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ----- Cast strip -----
 *
 * Cast assets are pre-rendered round portrait icons with their own pink halo
 * and transparent background, so the markup deliberately has no frame, fill,
 * or overlay. We just lay them out on a grid and label each one. */

.cast-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px 14px;
    justify-items: center;
}

.cast-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    transition: transform 0.25s ease;
}

.cast-card img {
    display: block;
    width: 100%;
    max-width: 140px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    transition: transform 0.25s ease, filter 0.25s ease;
    /* Lift the glowing edge slightly without adding a hard frame. */
    filter: drop-shadow(0 6px 18px rgba(255, 77, 143, 0.25));
}

.cast-card .cast-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--c-text);
    letter-spacing: 0.01em;
}

.cast-card:hover img {
    transform: translateY(-3px) scale(1.04);
    filter: drop-shadow(0 10px 24px rgba(255, 77, 143, 0.5));
}

.cast-card:hover .cast-name {
    color: var(--c-text-strong);
}

@media (max-width: 480px) {
    .cast-grid { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
    .cast-card img { max-width: 110px; }
    .cast-card .cast-name { font-size: 0.85rem; }
}

/* ----- Community / Discord split ----- */

.community {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
    padding: 32px;
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(88, 101, 242, 0.10), rgba(88, 101, 242, 0.03));
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-card), var(--glass-highlight);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.community-text h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.7rem);
    margin: 0 0 10px;
    color: var(--c-text-strong);
}

.community-text p {
    margin: 0 0 18px;
    color: var(--c-text-dim);
    line-height: 1.65;
    max-width: 520px;
}

.community-text .btn { padding: 12px 20px; }

.discord-embed {
    width: 350px;
    max-width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--c-border);
    background: #2f3136;
    box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.7);
}

.discord-embed iframe {
    display: block;
    width: 100%;
    height: 500px;
    border: 0;
}

@media (max-width: 880px) {
    .community {
        grid-template-columns: minmax(0, 1fr);
        text-align: left;
        padding: 24px;
    }
    .discord-embed {
        width: 100%;
    }
}

/* ----- Flow promo banner ----- */

.flow-promo {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 26px 28px;
    border-radius: var(--radius);
    /* Translucent inner surface + gradient border so particles glow through
     * while the sunset rim stays vivid. */
    background:
        linear-gradient(rgba(21, 10, 31, 0.55), rgba(21, 10, 31, 0.55)) padding-box,
        var(--grad-sunset) border-box;
    border: 1px solid transparent;
    box-shadow: var(--shadow-glow), var(--glass-highlight);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.flow-promo h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    margin: 0 0 6px;
    color: var(--c-text-strong);
}

.flow-promo p {
    margin: 0;
    color: var(--c-text-dim);
    max-width: 600px;
}

.flow-promo .btn {
    padding: 12px 22px;
}

@media (max-width: 720px) {
    .flow-promo {
        grid-template-columns: 1fr;
        padding: 22px;
    }
}

/* ----- Section eyebrow label ----- */

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(255, 122, 31, 0.10);
    border: 1px solid var(--c-border-warm);
    color: var(--c-orange-soft);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.section-eyebrow .ti { font-size: 0.9rem; }

/* ----- Story panel ----- */

.story-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    padding: 36px 36px 36px 40px;
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(255, 122, 31, 0.10), rgba(255, 77, 143, 0.04) 55%, rgba(167, 139, 250, 0.06));
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    position: relative;
}

.story-panel::before {
    /* Faint sunset glow tucked behind the character art. */
    content: "";
    position: absolute;
    right: -120px;
    top: 50%;
    transform: translateY(-50%);
    width: 520px;
    height: 520px;
    background: radial-gradient(closest-side, rgba(255, 122, 31, 0.30), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.story-copy { position: relative; z-index: 1; }

.story-copy h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 14px;
    color: var(--c-text-strong);
}

.story-copy h2 .accent {
    background: var(--grad-sunset);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.story-copy p {
    margin: 0 0 12px;
    color: var(--c-text-dim);
    line-height: 1.65;
    max-width: 520px;
}

.story-copy p:last-child { margin-bottom: 0; }

.story-art {
    position: relative;
    z-index: 1;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.story-art img {
    display: block;
    width: 100%;
    max-width: 380px;
    height: auto;
    filter: drop-shadow(0 18px 40px rgba(255, 77, 143, 0.35));
}

@media (max-width: 820px) {
    .story-panel {
        grid-template-columns: 1fr;
        padding: 28px 24px;
        gap: 20px;
    }
    .story-panel::before {
        right: -200px;
        top: 0;
        transform: none;
        width: 400px;
        height: 400px;
    }
    .story-art img { max-width: 280px; }
}

/* ----- Motion feature card (gif tile) ----- */

.feature-motion {
    /* Slot the gif at the top of the card instead of the icon chip. */
    padding-top: 0;
}

.feature-motion .feature-motion-art {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 160px;
    margin: 0 -22px 14px;
    background: var(--grad-sunset-soft);
    border-bottom: 1px solid var(--c-border-warm);
    overflow: hidden;
}

.feature-motion .feature-motion-art img {
    display: block;
    height: 170px;
    width: auto;
    margin-bottom: -10px;
    filter: drop-shadow(0 6px 16px rgba(255, 77, 143, 0.45));
}

/* ----- Fact strip (landing 'by the numbers') -----
 *
 * Named .fact-strip rather than .stats to avoid colliding with the
 * Choice Flow dashboard, which has its own header-level .stats chip group. */

.fact-strip {
    list-style: none;
    margin: 0;
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-card);
}

.fact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 8px;
    border-radius: var(--radius-sm);
    text-align: center;
    transition: background 0.2s ease;
}

.fact:hover { background: rgba(255, 122, 31, 0.06); }

.fact .ti {
    font-size: 1.5rem;
    color: var(--c-orange);
    margin-bottom: 2px;
}

.fact-value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.7rem;
    line-height: 1.1;
    background: var(--grad-sunset);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.fact-label {
    font-size: 0.78rem;
    color: var(--c-text-mute);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ----- Visually hidden helper ----- */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ----- Footer ----- */

.home-footer {
    margin-top: 64px;
    padding-top: 22px;
    border-top: 1px solid var(--c-border-soft);
    color: var(--c-text-mute);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.home-footer a { color: var(--c-orange-soft); }
.home-footer .home-footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.home-footer .home-footer-links a { display: inline-flex; align-items: center; gap: 4px; }

.home-footer .home-footer-mark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.home-footer .home-footer-heart {
    height: 18px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    filter: drop-shadow(0 2px 6px rgba(255, 77, 143, 0.5));
}

@media (max-width: 720px) {
    .home { padding: 16px 14px 56px; }
    .hero { padding: 36px 24px; min-height: 0; border-radius: 18px; }
    .hero-logo { width: min(360px, 80%); }
    .section { margin-top: 56px; }
    /* Allow the CTAs to wrap once the row genuinely runs out of room. */
    .hero-cta { flex-wrap: wrap; }
    .hero-cta .btn { padding: 12px 16px; font-size: 0.9rem; }
}

/* ---------------------------------------------------------------------------
 * Mobile tweaks
 * ------------------------------------------------------------------------- */

@media (max-width: 640px) {
    .wrap { padding: 24px 16px 64px; }
    .site-header .brand img { height: 32px; }
    .content h2 { margin-top: 32px; }
}

/* ---------------------------------------------------------------------------
 * Soundtrack page (/music)
 * ------------------------------------------------------------------------- */

.content-lede {
    color: var(--c-text-dim);
    font-size: 1rem;
    line-height: 1.6;
    margin: 8px 0 18px;
}

.soundtrack-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 28px;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    color: var(--c-text);
    background: rgba(255, 122, 31, 0.08);
    border: 1px solid var(--c-border-warm);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-highlight);
}

.meta-chip .ti { color: var(--c-orange); }

/* ----- Section heading inside the soundtrack page ----- */

.music-section-head {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--c-text-mute);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 40px 0 12px;
    padding: 0;
}

.music-section-head::before { content: none; }
.music-section-head .ti { color: var(--c-orange); font-size: 1.15rem; }

/* ----- Artist / family card ----- */

.music-group {
    margin: 0 0 16px;
    padding: 16px 18px 6px;
    border-radius: var(--radius);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-card), var(--glass-highlight);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.music-group.is-library {
    background:
        linear-gradient(180deg, rgba(167, 139, 250, 0.10), rgba(167, 139, 250, 0.02));
    border-color: rgba(167, 139, 250, 0.22);
}

.music-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--c-border-soft);
}

.music-group-head h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    margin: 0;
    color: var(--c-text-strong);
    padding-left: 0;
}

.music-group-head h3::before { content: none; }

.music-group-count {
    font-size: 0.74rem;
    color: var(--c-text-mute);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ----- Track rows ----- */

.music-tracks {
    list-style: none;
    margin: 0;
    padding: 0;
}

.music-track {
    position: relative;
    display: grid;
    grid-template-columns: 32px 30px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 6px 10px;
    border-bottom: 1px dashed var(--c-border-soft);
    color: var(--c-text);
    font-size: 0.94rem;
    border-radius: 6px;
    transition: color 0.15s ease, background 0.2s ease;
    isolation: isolate;
}

.music-row-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--row-progress, 0%);
    background: linear-gradient(90deg,
        rgba(255, 122, 31, 0.32) 0%,
        rgba(255, 77, 143, 0.26) 60%,
        rgba(255, 213, 74, 0.20) 100%);
    border-radius: 6px 0 0 6px;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.35s ease, width 0.35s linear;
    will-change: width;
}

.music-track.is-playing {
    color: var(--c-text-strong);
    /* Base highlight covering the whole row — the "remaining" track. */
    background: linear-gradient(90deg,
        rgba(255, 122, 31, 0.07) 0%,
        rgba(255, 77, 143, 0.05) 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 122, 31, 0.18);
}

.music-track.is-playing .music-row-fill {
    opacity: 1;
    /* Thin bright edge marking the playhead position on the row. */
    box-shadow:
        inset -1px 0 0 0 rgba(255, 122, 31, 0.85),
        0 0 12px -2px rgba(255, 122, 31, 0.45);
}

.music-track:last-child { border-bottom: 0; }
.music-track:hover { color: var(--c-text-strong); }

.music-play {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 122, 31, 0.10);
    color: var(--c-orange);
    border: 1px solid var(--c-border-warm);
    border-radius: 999px;
    cursor: pointer;
    padding: 0;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.music-play:hover {
    background: var(--grad-sunset);
    color: #1a0420;
    transform: scale(1.06);
}

.music-play .ti { font-size: 0.9rem; }

.music-num {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--c-text-mute);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.music-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.music-lyric-btn {
    background: transparent;
    border: 0;
    padding: 2px 4px;
    margin-left: 4px;
    cursor: pointer;
    border-radius: 4px;
    color: inherit;
    line-height: 1;
    transition: background 0.15s ease;
}

.music-lyric-btn:hover {
    background: rgba(255, 122, 31, 0.12);
}

.music-lyric-btn:focus-visible {
    outline: 2px solid var(--c-orange);
    outline-offset: 2px;
}

.music-lyric {
    color: var(--c-orange);
    font-size: 0.85rem;
    vertical-align: -0.05em;
    opacity: 0.85;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.music-track:hover .music-lyric,
.music-track.is-playing .music-lyric,
.music-lyric-btn:hover .music-lyric {
    opacity: 1;
    transform: scale(1.08);
}

.music-time {
    font-size: 0.78rem;
    color: var(--c-text-mute);
    font-family: var(--font-display);
    font-variant-numeric: tabular-nums;
}

.music-track.is-playing .music-num {
    color: var(--c-orange);
}

.music-track.is-playing .music-play {
    background: var(--grad-sunset);
    color: #1a0420;
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(255, 122, 31, 0.18);
}

/* ----- Sticky bottom audio player ----- */

/* Reserve space at the bottom of the page so the fixed bar doesn't cover
 * the last track row. .wrap padding-bottom on /music compensates. The
 * extra room (~150px) also lets the visualizer breathe above the bar. */
body.layout-wrap:has(#player:not([hidden])) { padding-bottom: 150px; }

/* ----- Full-page particle field (music page) -----
 * Fixed full-viewport canvas painted between the body background and the
 * page content (z-index: -1). The canvas itself uses additive composition
 * internally; off-white particles glow against the dark wallpaper in the
 * gaps between cards and hero sections without ever touching text. */
.bg-particles {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    opacity: 0.9;
}

@media (prefers-reduced-motion: reduce) {
    .bg-particles { display: none; }
}

.player-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: auto minmax(160px, 1fr) auto minmax(220px, 2fr) auto;
    align-items: center;
    gap: 14px;
    padding: 10px 18px;
    background: rgba(10, 5, 15, 0.88);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-top: 1px solid var(--c-border-soft);
    box-shadow: 0 -8px 24px -8px rgba(0, 0, 0, 0.6);
}

.player-bar::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 122, 31, 0.45), rgba(255, 77, 143, 0.35), transparent);
    pointer-events: none;
}

/* ----- Frequency visualizer (sits above the player bar) ----- */

.player-viz {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    width: 100%;
    height: 56px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.45s ease;
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0) 100%);
            mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0) 100%);
    filter: drop-shadow(0 -2px 8px rgba(255, 77, 143, 0.25));
}

.player-bar.is-playing .player-viz {
    opacity: 0.9;
}

@media (prefers-reduced-motion: reduce) {
    .player-viz { display: none; }
}

.player-art {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(255, 77, 143, 0.45));
}

.player-spin {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    color: rgba(255, 122, 31, 0.85);
    font-size: 1.8rem;
    animation: player-spin 4s linear infinite;
}

@keyframes player-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.player-now {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
}

.player-now strong {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--c-text-strong);
    font-size: 0.92rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-now span {
    color: var(--c-text-mute);
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-controls {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.player-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: transparent;
    color: var(--c-text);
    border: 1px solid transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.player-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--c-text-strong);
}

.player-btn:active { transform: scale(0.94); }

.player-btn .ti { font-size: 1.1rem; }

.player-btn-main {
    background: var(--grad-sunset);
    color: #1a0420;
    width: 42px;
    height: 42px;
    box-shadow: 0 6px 18px -6px rgba(255, 77, 143, 0.6);
}

.player-btn-main:hover {
    background: var(--grad-sunset);
    color: #1a0420;
    filter: brightness(1.08);
}

.player-btn-main .ti { font-size: 1.3rem; }

.player-scrub {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.player-time {
    font-variant-numeric: tabular-nums;
    font-size: 0.78rem;
    color: var(--c-text-mute);
    font-family: var(--font-display);
}

.player-seek {
    position: relative;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    cursor: pointer;
    overflow: hidden;
    outline: none;
}

.player-seek:focus-visible { box-shadow: 0 0 0 2px var(--c-orange); }

.player-buf {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: rgba(255, 255, 255, 0.18);
}

.player-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: var(--grad-sunset);
    box-shadow: 0 0 12px rgba(255, 122, 31, 0.55);
    transition: width 0.25s linear;
    will-change: width;
}

.player-volume {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.player-volume input[type="range"] {
    width: 90px;
    accent-color: var(--c-orange);
}

@media (max-width: 720px) {
    .player-bar {
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        gap: 8px 10px;
        padding: 8px 12px;
    }
    .player-art { width: 36px; height: 36px; }
    .player-controls { grid-column: 3; grid-row: 1; }
    .player-now { grid-column: 2; grid-row: 1; }
    .player-scrub { grid-column: 1 / -1; grid-row: 2; }
    .player-volume { display: none; }
    .player-viz { height: 40px; }
}

@media (max-width: 520px) {
    .music-group-head { flex-direction: column; align-items: flex-start; gap: 4px; }
    .music-track { grid-template-columns: 32px 26px 1fr auto; gap: 8px; }
}

/* ----- Lyrics side panel ----- */

.lyrics-scrim {
    position: fixed;
    inset: 0;
    background: rgba(8, 4, 12, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 70;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.lyrics-scrim.is-open {
    opacity: 1;
    pointer-events: auto;
}

.lyrics-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 92vw);
    z-index: 80;
    display: flex;
    flex-direction: column;
    /* Slightly more translucent so the particle field glows through the
     * slid-in panel. The scrim behind it already darkens the rest of the
     * page so text contrast stays comfortable. */
    background: rgba(12, 6, 18, 0.78);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-left: 1px solid var(--glass-border);
    box-shadow: -16px 0 48px -16px rgba(0, 0, 0, 0.7), var(--glass-highlight);
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.lyrics-panel.is-open {
    transform: translateX(0);
}

.lyrics-panel::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, rgba(255, 122, 31, 0.45), rgba(255, 77, 143, 0.35), transparent);
    pointer-events: none;
}

.lyrics-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--c-border-soft);
}

.lyrics-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lyrics-eyebrow {
    font-family: var(--font-display);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--c-orange);
}

.lyrics-meta strong {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--c-text-strong);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lyrics-artist {
    color: var(--c-text-mute);
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lyrics-close {
    flex: 0 0 auto;
}

.lyrics-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 18px 20px 32px;
    white-space: pre-wrap;
    line-height: 1.7;
    color: var(--c-text);
    font-size: 0.95rem;
    outline: none;
    scrollbar-width: thin;
    scrollbar-color: var(--c-orange) transparent;
}

.lyrics-body::-webkit-scrollbar { width: 8px; }
.lyrics-body::-webkit-scrollbar-thumb {
    background: rgba(255, 122, 31, 0.4);
    border-radius: 999px;
}

.lyrics-body.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-text-mute);
    font-style: italic;
    text-align: center;
}

body.lyrics-open {
    overflow: hidden;
}

@media (max-width: 520px) {
    .lyrics-panel { width: 100vw; }
}

