/* ============================================================
   hush — design tokens & base
   Warm dark default; warm cream as alt (prefers-color-scheme: light).
   ============================================================ */

:root {
    /* Color — dark mode (default) */
    --bg-base:      #14110F;
    --bg-surface:   #1F1A16;
    --bg-elevated:  #2A231D;
    --bg-overlay:   rgba(20, 17, 15, 0.85);
    --text-primary: #F5EFE8;
    --text-muted:   #A89B8E;
    --text-faint:   #6F655B;
    --divider:      #2F2823;
    --divider-soft: #221D19;
    --accent:       #C8553D;
    --accent-hover: #D86848;
    --accent-muted: #8B3A2A;
    --accent-tint:  rgba(200, 85, 61, 0.12);

    /* Type */
    --font-serif: "Fraunces", "Tiempos Headline", Georgia, serif;
    --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Spacing scale (8px base) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 32px;
    --space-6: 48px;
    --space-7: 64px;
    --space-8: 96px;
    --space-9: 128px;

    /* Radii */
    --radius-sm: 4px;
    --radius:    8px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Type scale */
    --fs-eyebrow: 0.75rem;
    --fs-small:   0.875rem;
    --fs-body:    1rem;
    --fs-lg:      1.125rem;
    --fs-h4:      1.25rem;
    --fs-h3:      1.5rem;
    --fs-h2:      2.25rem;
    --fs-h1:      4rem;

    /* Layout */
    --content-max: 1280px;
    --content-pad: 32px;

    /* Motion */
    --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in:   cubic-bezier(0.55, 0, 1, 0.45);
    --dur-fast:  120ms;
    --dur:       240ms;
    --dur-slow:  480ms;

    /* Shadows */
    --shadow-card:    0 1px 3px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.25);
    --shadow-elevated: 0 2px 6px rgba(0,0,0,0.4), 0 24px 48px rgba(0,0,0,0.5);
}

@media (prefers-color-scheme: light) {
    :root {
        --bg-base:      #F5EFE8;
        --bg-surface:   #FBF7F1;
        --bg-elevated:  #FFFFFF;
        --bg-overlay:   rgba(245, 239, 232, 0.9);
        --text-primary: #1A1612;
        --text-muted:   #5C534A;
        --text-faint:   #8A7F73;
        --divider:      #E5DDD2;
        --divider-soft: #ECE5DA;
        --accent:       #A03E2A;
        --accent-hover: #B84A33;
        --accent-muted: #802F1F;
        --accent-tint:  rgba(160, 62, 42, 0.08);
    }
}

/* ============================================================
   Reset / base
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    min-height: 100vh;
    padding-bottom: 96px; /* clear miniplayer */
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--dur) var(--ease-out);
}

a:hover { color: var(--accent); }

button {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-serif);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin: 0;
}

p { margin: 0; }

::selection { background: var(--accent); color: var(--bg-base); }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 10px 18px;
    font-size: var(--fs-small);
    font-weight: 500;
    letter-spacing: 0.01em;
    border-radius: 999px;
    transition: all var(--dur) var(--ease-out);
    white-space: nowrap;
    cursor: pointer;
}

.btn--primary {
    background: var(--accent);
    color: #FFF8F2;
}
.btn--primary:hover {
    background: var(--accent-hover);
    color: #FFF8F2;
    transform: translateY(-1px);
}

.btn--ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--divider);
}
.btn--ghost:hover {
    background: var(--bg-surface);
    border-color: var(--text-faint);
    color: var(--text-primary);
}

.btn--small { padding: 7px 14px; font-size: 0.8125rem; }
.btn--large { padding: 14px 26px; font-size: var(--fs-body); }

.link-muted { color: var(--text-muted); font-size: var(--fs-small); }
.link-muted:hover { color: var(--text-primary); }
.link-arrow::after {
    content: " →";
    transition: transform var(--dur) var(--ease-out);
    display: inline-block;
}
.link-arrow:hover::after { transform: translateX(3px); }

/* ============================================================
   Header
   ============================================================ */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 24px var(--content-pad);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}
.logo:hover { color: var(--text-primary); }

.logo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-tint);
}

.primary-nav {
    display: flex;
    gap: var(--space-5);
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--text-muted);
}
.primary-nav a:hover { color: var(--text-primary); }

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

@media (max-width: 720px) {
    .primary-nav { display: none; }
    .site-header { padding: 16px 20px; }
}

/* ============================================================
   Hero
   ============================================================ */

.site-main {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--content-pad);
}

.hero {
    padding: var(--space-8) 0 var(--space-7);
    text-align: left;
    position: relative;
}

.hero__eyebrow {
    font-size: var(--fs-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    margin-bottom: var(--space-4);
}

.hero__title {
    font-size: clamp(2.5rem, 6.5vw, var(--fs-h1));
    line-height: 1.05;
    letter-spacing: -0.025em;
    font-weight: 500;
    max-width: 18ch;
    margin-bottom: var(--space-4);
}

.hero__sub {
    font-size: var(--fs-lg);
    color: var(--text-muted);
    max-width: 52ch;
    margin-bottom: var(--space-5);
    line-height: 1.5;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.hero__waveform {
    position: absolute;
    right: -5%;
    top: 25%;
    width: 55%;
    height: 100px;
    opacity: 0.18;
    color: var(--accent);
    pointer-events: none;
    mix-blend-mode: screen;
}

@media (prefers-color-scheme: light) {
    .hero__waveform { mix-blend-mode: multiply; opacity: 0.25; }
}

@media (max-width: 720px) {
    .hero__waveform { display: none; }
    .hero { padding: var(--space-6) 0 var(--space-6); }
}

/* ============================================================
   Section header
   ============================================================ */

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-5);
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--divider);
    margin-bottom: var(--space-5);
}

.section-header__eyebrow {
    font-size: var(--fs-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    margin-bottom: var(--space-2);
}

.section-header__title {
    font-size: clamp(1.75rem, 3.5vw, var(--fs-h2));
    letter-spacing: -0.02em;
    font-weight: 500;
}

.section-header__sub {
    color: var(--text-muted);
    font-size: var(--fs-small);
    max-width: 32ch;
    text-align: right;
}

@media (max-width: 720px) {
    .section-header { flex-direction: column; align-items: flex-start; }
    .section-header__sub { text-align: left; }
}

/* ============================================================
   Featured grid (1 hero + 4 small)
   ============================================================ */

.featured { padding-bottom: var(--space-8); }

.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: var(--space-4);
}

.card { display: flex; flex-direction: column; gap: var(--space-3); }
.card--hero {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
    flex-direction: column;
    gap: var(--space-4);
}

.card:not(.card--hero) {
    grid-column: span 1;
}

@media (max-width: 1000px) {
    .featured-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
    .card--hero { grid-column: 1 / span 2; grid-row: auto; }
}

@media (max-width: 600px) {
    .featured-grid { grid-template-columns: 1fr; }
    .card--hero { grid-column: 1; }
}

/* Cover art */
.card__cover {
    position: relative;
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.card--hero .card__cover { aspect-ratio: 4 / 3; }
.card__cover:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.cover-art {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 245, 235, 0.85);
    transition: filter var(--dur) var(--ease-out);
}
.cover-art--dusk       { background: linear-gradient(135deg, #2A1B3D 0%, #5C3A52 45%, #C8553D 100%); }
.cover-art--coffee     { background: linear-gradient(135deg, #3D2817 0%, #6B4423 50%, #C8915C 100%); }
.cover-art--train      { background: linear-gradient(150deg, #1E2D3D 0%, #3D5060 50%, #C8553D 100%); }
.cover-art--confession { background: radial-gradient(circle at 30% 30%, #6B2E3D 0%, #2A1614 70%); }
.cover-art--saltwater  { background: linear-gradient(135deg, #1A2D3D 0%, #4D6B6B 50%, #C89576 100%); }

.cover-mark {
    width: 38%;
    height: 38%;
    color: rgba(255, 245, 235, 0.9);
}
.card--hero .cover-mark { width: 24%; height: 24%; }

/* Playing indicator */
.playing-pill {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 11px 5px 8px;
    background: var(--bg-overlay);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.playing-bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 11px;
}
.playing-bars i {
    display: block;
    width: 2px;
    background: var(--accent);
    border-radius: 1px;
    animation: bar-pulse 1s ease-in-out infinite;
}
.playing-bars i:nth-child(1) { height: 60%; animation-delay: 0s; }
.playing-bars i:nth-child(2) { height: 100%; animation-delay: 0.15s; }
.playing-bars i:nth-child(3) { height: 40%; animation-delay: 0.3s; }
.playing-bars i:nth-child(4) { height: 80%; animation-delay: 0.45s; }

@keyframes bar-pulse {
    0%, 100% { transform: scaleY(0.4); transform-origin: bottom; }
    50% { transform: scaleY(1); }
}

/* Card body */
.card__body { display: flex; flex-direction: column; gap: 6px; }

.card__eyebrow {
    font-size: var(--fs-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-faint);
    font-weight: 500;
}

.card__title {
    font-family: var(--font-serif);
    font-size: var(--fs-h4);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
.card--hero .card__title {
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
}

.card__credits {
    font-size: var(--fs-small);
    color: var(--text-muted);
    line-height: 1.5;
}
.credit--writer { font-style: italic; color: var(--text-faint); }
.credit-sep { margin: 0 6px; color: var(--text-faint); }

.card__blurb {
    font-size: var(--fs-body);
    color: var(--text-muted);
    margin-top: var(--space-2);
    line-height: 1.55;
    max-width: 50ch;
}

.card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: var(--space-3);
}
.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-surface);
    border: 1px solid var(--divider);
}

/* ============================================================
   Browse callouts
   ============================================================ */

.callouts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    padding-bottom: var(--space-8);
}

.callout {
    position: relative;
    display: block;
    padding: var(--space-5);
    border: 1px solid var(--divider);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    transition: border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
    overflow: hidden;
}
.callout:hover {
    border-color: var(--accent-muted);
    background: var(--bg-elevated);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.callout__eyebrow {
    font-size: var(--fs-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-faint);
    margin-bottom: var(--space-3);
}

.callout__title {
    font-family: var(--font-serif);
    font-size: var(--fs-h3);
    font-weight: 500;
    margin-bottom: var(--space-2);
    letter-spacing: -0.01em;
}

.callout__body {
    color: var(--text-muted);
    font-size: var(--fs-small);
    max-width: 32ch;
}

.callout__arrow {
    position: absolute;
    top: var(--space-5);
    right: var(--space-5);
    color: var(--text-faint);
    font-size: 1.25rem;
    transition: transform var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.callout:hover .callout__arrow {
    color: var(--accent);
    transform: translateX(4px);
}

@media (max-width: 800px) {
    .callouts { grid-template-columns: 1fr; }
}

/* ============================================================
   How it works
   ============================================================ */

.how-it-works {
    border-top: 1px solid var(--divider);
    border-bottom: 1px solid var(--divider);
    padding: var(--space-8) 0;
    margin-bottom: var(--space-8);
}

.how-it-works__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    max-width: 28ch;
    margin: var(--space-2) 0 var(--space-6);
}

.how-it-works__cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
}

.hiw-col h4 {
    font-family: var(--font-serif);
    font-size: var(--fs-h4);
    font-weight: 500;
    margin-bottom: 6px;
}
.hiw-col p { color: var(--text-muted); font-size: var(--fs-small); max-width: 32ch; }

.hiw-num {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--accent);
    margin-bottom: var(--space-3);
    line-height: 1;
}

@media (max-width: 800px) {
    .how-it-works__cols { grid-template-columns: 1fr; gap: var(--space-5); }
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
    border-top: 1px solid var(--divider);
    padding: var(--space-6) 0;
}

.site-footer__inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--content-pad);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-5);
    align-items: center;
}

.site-footer__brand {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
}
.site-footer__nav a {
    color: var(--text-muted);
    font-size: var(--fs-small);
}
.site-footer__nav a:hover { color: var(--text-primary); }

.site-footer__fine {
    color: var(--text-faint);
    font-size: 0.75rem;
}

@media (max-width: 800px) {
    .site-footer__inner { grid-template-columns: 1fr; text-align: center; }
}

/* ============================================================
   Miniplayer
   ============================================================ */

.miniplayer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: var(--bg-overlay);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-top: 1px solid var(--divider);
    box-shadow: var(--shadow-elevated);
}

.miniplayer__inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 12px var(--content-pad);
    display: grid;
    grid-template-columns: 56px 1fr 2fr auto auto;
    gap: var(--space-4);
    align-items: center;
}

.miniplayer__cover {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 245, 235, 0.9);
    overflow: hidden;
}
.miniplayer__cover svg { width: 60%; height: 60%; }

.miniplayer__meta { min-width: 0; }
.miniplayer__title {
    font-family: var(--font-serif);
    font-size: var(--fs-body);
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.miniplayer__credits {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.miniplayer__progress {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}
.miniplayer__time {
    font-variant-numeric: tabular-nums;
    font-size: 0.75rem;
    color: var(--text-faint);
    flex-shrink: 0;
    min-width: 38px;
}
.miniplayer__time--current { text-align: right; color: var(--text-muted); }

/* Scrubber */
.scrubber {
    position: relative;
    flex: 1;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.scrubber__waveform {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 28px;
    width: 100%;
    color: var(--text-faint);
    opacity: 0.4;
}

.scrubber__fill {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 28px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-tint) 100%);
    border-right: 1px solid var(--accent);
    pointer-events: none;
    transition: width 100ms linear;
}

.scrubber__thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(200, 85, 61, 0.15);
    pointer-events: none;
    transition: left 100ms linear, box-shadow var(--dur) var(--ease-out);
}
.scrubber:hover .scrubber__thumb,
.scrubber:focus-visible .scrubber__thumb {
    box-shadow: 0 0 0 6px rgba(200, 85, 61, 0.25);
}

.scrubber__bars line {
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

/* Controls */
.miniplayer__controls,
.miniplayer__extras {
    display: flex;
    align-items: center;
    gap: 4px;
}

.control-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
    flex-shrink: 0;
}
.control-btn:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}
.control-btn svg { width: 18px; height: 18px; }

.control-btn--primary {
    width: 44px;
    height: 44px;
    background: var(--text-primary);
    color: var(--bg-base);
}
.control-btn--primary:hover {
    background: var(--accent);
    color: #FFF8F2;
    transform: scale(1.05);
}
.control-btn--primary svg { width: 20px; height: 20px; }

.control-btn--ghost {
    width: auto;
    padding: 6px 10px;
    border-radius: 999px;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
}
.control-btn--ghost svg { width: 16px; height: 16px; }
.control-btn--ghost:hover { background: var(--bg-elevated); color: var(--accent); }

@media (max-width: 1000px) {
    .miniplayer__inner {
        grid-template-columns: 48px 1fr auto;
        gap: var(--space-3);
        padding: 10px 16px;
    }
    .miniplayer__cover { width: 48px; height: 48px; }
    .miniplayer__progress { display: none; }
    .miniplayer__extras { display: none; }
    .miniplayer__controls { gap: 0; }
    .control-btn { width: 32px; height: 32px; }
    .control-btn--primary { width: 40px; height: 40px; }
}

/* ============================================================
   Age gate
   ============================================================ */

.age-gate {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    background: rgba(20, 17, 15, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: fade-in var(--dur-slow) var(--ease-out);
}
.age-gate[hidden] { display: none; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.age-gate__card {
    background: var(--bg-surface);
    border: 1px solid var(--divider);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    max-width: 460px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-elevated);
}

.age-gate__title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: var(--space-3);
    letter-spacing: -0.01em;
}
.age-gate__title .logo-mark { color: var(--accent); font-style: italic; }

.age-gate__body {
    color: var(--text-muted);
    margin-bottom: var(--space-5);
    line-height: 1.55;
}

.age-gate__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.age-gate__fine {
    font-size: 0.75rem;
    color: var(--text-faint);
}
.age-gate__fine a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   Active nav state
   ============================================================ */

.primary-nav a.is-active {
    color: var(--text-primary);
    position: relative;
}
.primary-nav a.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 1px;
    background: var(--accent);
}

.link-coins {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--bg-surface);
    border: 1px solid var(--divider);
    color: var(--text-primary);
    font-size: 0.8125rem;
    font-weight: 500;
}
.link-coins:hover { border-color: var(--accent-muted); color: var(--accent); }
.link-coins svg { color: var(--accent); }

/* ============================================================
   Page intro (smaller hero used on inner pages)
   ============================================================ */

.page-intro {
    padding: var(--space-7) 0 var(--space-6);
    border-bottom: 1px solid var(--divider);
    margin-bottom: var(--space-6);
}
.page-intro__eyebrow {
    font-size: var(--fs-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin-bottom: var(--space-3);
}
.page-intro__title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.05;
    max-width: 22ch;
    margin-bottom: var(--space-3);
}
.page-intro__sub {
    color: var(--text-muted);
    font-size: var(--fs-lg);
    max-width: 60ch;
}

/* ============================================================
   Profile hero (creator pages)
   ============================================================ */

.profile-hero {
    position: relative;
    padding: var(--space-7) 0 var(--space-5);
    margin-bottom: var(--space-5);
    overflow: hidden;
}
.profile-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(200, 85, 61, 0.16), transparent 60%),
                radial-gradient(circle at 80% 30%, rgba(200, 85, 61, 0.18), transparent 50%);
    pointer-events: none;
    z-index: 0;
}
.profile-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-5);
    align-items: center;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C8553D, #8B3A2A);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF8F2;
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    border: 3px solid var(--bg-base);
    box-shadow: 0 0 0 1px var(--divider);
}
.avatar--writer { background: linear-gradient(135deg, #6B4423, #3D2817); }
.avatar--lila   { background: linear-gradient(135deg, #C8915C, #6B4423); }
.avatar--storm  { background: linear-gradient(135deg, #3D5060, #1E2D3D); }
.avatar--theo   { background: linear-gradient(135deg, #6B2E3D, #2A1614); }
.avatar--mira   { background: linear-gradient(135deg, #5C3A52, #2A1B3D); }
.avatar--small { width: 40px; height: 40px; font-size: 1rem; border-width: 2px; }
.avatar--medium { width: 64px; height: 64px; font-size: 1.5rem; }

.profile-name-block { min-width: 0; }
.profile-name {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-2);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}
.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--accent);
    color: #FFF8F2;
    border-radius: 50%;
    font-size: 0.625rem;
    font-weight: 700;
}
.role-tags {
    display: flex;
    gap: 8px;
    margin-bottom: var(--space-3);
    flex-wrap: wrap;
}
.role-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-surface);
    border: 1px solid var(--divider);
    text-transform: lowercase;
    letter-spacing: 0.02em;
}
.role-tag--accent {
    color: var(--accent);
    border-color: var(--accent-muted);
    background: var(--accent-tint);
}

.profile-stats {
    display: flex;
    gap: var(--space-5);
    color: var(--text-muted);
    font-size: var(--fs-small);
    margin-bottom: var(--space-3);
    flex-wrap: wrap;
}
.profile-stats strong {
    display: block;
    color: var(--text-primary);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 2px;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-self: start;
}

@media (max-width: 800px) {
    .profile-hero__inner { grid-template-columns: 1fr; }
    .avatar { width: 80px; height: 80px; font-size: 2rem; }
    .profile-actions { flex-direction: row; flex-wrap: wrap; }
}

/* ============================================================
   Tabs
   ============================================================ */

.tabs {
    display: flex;
    gap: var(--space-5);
    border-bottom: 1px solid var(--divider);
    margin-bottom: var(--space-5);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.tab {
    padding: 12px 0;
    color: var(--text-muted);
    font-size: var(--fs-small);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-bottom: 2px solid transparent;
    transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
    white-space: nowrap;
    cursor: pointer;
}
.tab:hover { color: var(--text-primary); }
.tab.is-active {
    color: var(--text-primary);
    border-color: var(--accent);
}

.tab-panel { animation: fade-in 240ms var(--ease-out); }

/* ============================================================
   Listing rows (compact audio list)
   ============================================================ */

.listing {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--divider-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.listing-row {
    display: grid;
    grid-template-columns: 56px 1fr auto auto;
    gap: var(--space-3);
    align-items: center;
    padding: var(--space-3);
    background: var(--bg-base);
    transition: background var(--dur) var(--ease-out);
}
.listing-row:hover { background: var(--bg-surface); }

.listing-row__cover {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.listing-row__cover svg { width: 50%; height: 50%; }
.listing-row__title {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    font-weight: 500;
}
.listing-row__credits {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.listing-row__meta {
    font-size: 0.8125rem;
    color: var(--text-faint);
    text-align: right;
}
.listing-row__action {
    color: var(--text-muted);
    transition: color var(--dur) var(--ease-out);
}
.listing-row:hover .listing-row__action { color: var(--accent); }

@media (max-width: 600px) {
    .listing-row { grid-template-columns: 48px 1fr auto; }
    .listing-row__cover { width: 48px; height: 48px; }
    .listing-row__meta { display: none; }
}

/* ============================================================
   Personal request offerings (creator profile)
   ============================================================ */

.offering-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-3);
}
.offering {
    padding: var(--space-4);
    border: 1px solid var(--divider);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.offering__title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 4px;
}
.offering__price {
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 600;
}
.offering__price-note {
    color: var(--text-faint);
    font-weight: 400;
    margin-left: 4px;
}
.offering__body {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
    flex: 1;
}
.offering__cta { margin-top: var(--space-3); }

/* ============================================================
   Two-column page layout (browse, etc.)
   ============================================================ */

.layout-2col {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--space-6);
    padding-bottom: var(--space-8);
}
@media (max-width: 900px) {
    .layout-2col { grid-template-columns: 1fr; gap: var(--space-4); }
}

.filter-sidebar {
    position: sticky;
    top: var(--space-4);
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}
.filter-group__label {
    font-size: var(--fs-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-faint);
    margin-bottom: var(--space-2);
    display: block;
}
.filter-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.filter-list label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--dur) var(--ease-out);
}
.filter-list label:hover { color: var(--text-primary); }
.filter-list input[type="checkbox"] {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    appearance: none;
    border: 1px solid var(--divider);
    background: var(--bg-base);
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
}
.filter-list input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}
.filter-list input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M3 6l2 2 4-4' stroke='%23FFF8F2' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}
.filter-count {
    margin-left: auto;
    color: var(--text-faint);
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
}

.toolbar {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
}
.search-input {
    flex: 1;
    min-width: 240px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--divider);
    background: var(--bg-surface);
    color: var(--text-primary);
    font: inherit;
    font-size: var(--fs-small);
}
.search-input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-elevated);
}
.sort-select {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--divider);
    background: var(--bg-surface);
    color: var(--text-primary);
    font: inherit;
    font-size: var(--fs-small);
    cursor: pointer;
}

.audio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-4);
}

/* ============================================================
   Mood chips (browse by mood)
   ============================================================ */

.mood-chips {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-3);
}
.mood-chip {
    position: relative;
    padding: var(--space-5) var(--space-4);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    border: 1px solid var(--divider);
    overflow: hidden;
    transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
    color: var(--text-primary);
}
.mood-chip:hover {
    transform: translateY(-2px);
    border-color: var(--accent-muted);
    color: var(--text-primary);
}
.mood-chip__name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 4px;
    display: block;
}
.mood-chip__count {
    font-size: 0.75rem;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.mood-chip--soft     { background: linear-gradient(135deg, var(--bg-surface), rgba(200, 145, 92, 0.15)); }
.mood-chip--slow     { background: linear-gradient(135deg, var(--bg-surface), rgba(107, 68, 35, 0.18)); }
.mood-chip--dark     { background: linear-gradient(135deg, var(--bg-surface), rgba(42, 27, 61, 0.3)); }
.mood-chip--playful  { background: linear-gradient(135deg, var(--bg-surface), rgba(200, 85, 61, 0.18)); }
.mood-chip--restless { background: linear-gradient(135deg, var(--bg-surface), rgba(107, 46, 61, 0.2)); }
.mood-chip--sleepy   { background: linear-gradient(135deg, var(--bg-surface), rgba(30, 45, 61, 0.25)); }

/* ============================================================
   Plan compare (premium page)
   ============================================================ */

.plan-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    max-width: 880px;
    margin: 0 auto var(--space-6);
}
@media (max-width: 720px) { .plan-grid { grid-template-columns: 1fr; } }

.plan {
    padding: var(--space-6);
    border: 1px solid var(--divider);
    border-radius: var(--radius-xl);
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.plan--featured {
    border-color: var(--accent);
    background: linear-gradient(135deg, var(--bg-surface), var(--accent-tint));
    box-shadow: var(--shadow-card);
    position: relative;
}
.plan--featured::before {
    content: "Best value";
    position: absolute;
    top: -10px;
    left: 24px;
    padding: 4px 12px;
    background: var(--accent);
    color: #FFF8F2;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 999px;
}
.plan__name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
}
.plan__price {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.02em;
}
.plan__price-suffix {
    font-size: 1rem;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-weight: 400;
    margin-left: 4px;
}
.plan__body { color: var(--text-muted); font-size: var(--fs-small); margin-bottom: var(--space-3); }

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: var(--fs-small);
    line-height: 1.5;
}
.feature-list li::before {
    content: "";
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8l3 3 7-7' stroke='%23C8553D' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    flex-shrink: 0;
    margin-top: 3px;
}
.feature-list li.is-disabled { color: var(--text-faint); }
.feature-list li.is-disabled::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 3l10 10M13 3L3 13' stroke='%236F655B' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
}

/* ============================================================
   Coin bundles
   ============================================================ */

.bundle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}
.bundle {
    padding: var(--space-4);
    border: 1px solid var(--divider);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    text-align: center;
    transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
    position: relative;
    cursor: pointer;
}
.bundle:hover {
    transform: translateY(-2px);
    border-color: var(--accent-muted);
}
.bundle--popular {
    border-color: var(--accent);
    background: linear-gradient(180deg, var(--bg-surface), var(--accent-tint));
}
.bundle--popular::before {
    content: "Most popular";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 12px;
    background: var(--accent);
    color: #FFF8F2;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 999px;
}
.bundle__coins {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}
.bundle__bonus {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    min-height: 1.2em;
}
.bundle__price {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-top: var(--space-3);
    font-weight: 500;
}
.bundle__rate {
    color: var(--text-faint);
    font-size: 0.75rem;
    margin-top: 2px;
}

/* ============================================================
   FAQ accordion
   ============================================================ */

.faq {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--divider);
}
.faq-item {
    border-bottom: 1px solid var(--divider);
    padding: var(--space-4) 0;
}
.faq-item summary {
    cursor: pointer;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    gap: var(--space-3);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    font-family: var(--font-sans);
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1;
    transition: transform var(--dur) var(--ease-out);
    flex-shrink: 0;
}
.faq-item.is-open summary::after { transform: rotate(45deg); }
.faq-item p, .faq-item ul {
    margin: var(--space-3) 0 0;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 70ch;
}
.faq-item ul { padding-left: 1.25rem; }
.faq-item li { margin-bottom: 6px; }

/* ============================================================
   Process steps (how-it-works diagrams)
   ============================================================ */

.process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
    margin: var(--space-5) 0;
    counter-reset: step;
}
.process-step {
    padding: var(--space-4);
    background: var(--bg-surface);
    border: 1px solid var(--divider);
    border-radius: var(--radius-lg);
    counter-increment: step;
    position: relative;
}
.process-step::before {
    content: counter(step, decimal-leading-zero);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--accent);
    display: block;
    margin-bottom: var(--space-2);
    line-height: 1;
}
.process-step h4 {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    font-weight: 500;
    margin-bottom: 6px;
}
.process-step p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.55; }

@media (max-width: 800px) {
    .process { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .process { grid-template-columns: 1fr; }
}

/* ============================================================
   Big stat blocks (transparency / how-it-works)
   ============================================================ */

.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-4);
    padding: var(--space-5) 0;
    border-top: 1px solid var(--divider);
    border-bottom: 1px solid var(--divider);
    margin: var(--space-5) 0;
}
.stat {
    text-align: left;
}
.stat__num {
    font-family: var(--font-serif);
    font-size: 2.75rem;
    font-weight: 500;
    line-height: 1;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    display: block;
    margin-bottom: 6px;
}
.stat__num small { font-size: 1.25rem; color: var(--text-muted); font-weight: 400; }
.stat__label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ============================================================
   Submission status pills + script-detail
   ============================================================ */

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--bg-elevated);
    color: var(--text-muted);
    border: 1px solid var(--divider);
}
.status-pill--open    { color: #6FA86A; background: rgba(111, 168, 106, 0.1); border-color: rgba(111, 168, 106, 0.3); }
.status-pill--review  { color: var(--accent); background: var(--accent-tint); border-color: var(--accent-muted); }
.status-pill--filled  { color: var(--text-faint); }
.status-pill--pending { color: #C89576; background: rgba(200, 149, 118, 0.1); border-color: rgba(200, 149, 118, 0.3); }
.status-pill--approved { color: #6FA86A; background: rgba(111, 168, 106, 0.12); border-color: rgba(111, 168, 106, 0.3); }
.status-pill--declined { color: var(--text-faint); }
.status-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.script-meta {
    display: flex;
    gap: var(--space-4);
    align-items: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
}

.script-body {
    background: var(--bg-surface);
    border: 1px solid var(--divider);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-primary);
    max-width: 65ch;
    margin-bottom: var(--space-5);
    position: relative;
}
.script-body p { margin-bottom: 1.2em; }
.script-body em { color: var(--text-muted); font-style: italic; }
.script-body .stage-direction { color: var(--text-faint); font-style: italic; font-size: 0.95em; }

.script-fade {
    position: relative;
    max-height: 400px;
    overflow: hidden;
}
.script-fade::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, transparent, var(--bg-surface));
    pointer-events: none;
}
.script-fade-cta {
    position: absolute;
    bottom: var(--space-4);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.submit-interest-btn.is-submitted {
    background: rgba(111, 168, 106, 0.15);
    color: #6FA86A;
    cursor: default;
}

.submission-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--divider-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--divider);
}
.submission-row {
    display: grid;
    grid-template-columns: 40px 1fr auto auto;
    gap: var(--space-3);
    align-items: center;
    padding: var(--space-3);
    background: var(--bg-base);
}
.submission-row__name { font-weight: 500; }
.submission-row__pitch { color: var(--text-muted); font-size: 0.875rem; }
.submission-row__time { color: var(--text-faint); font-size: 0.75rem; }

/* ============================================================
   Side info card (used in script detail, profile sidebars)
   ============================================================ */

.info-card {
    padding: var(--space-4);
    border: 1px solid var(--divider);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.info-card__title {
    font-size: var(--fs-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-faint);
}
.info-card__row {
    display: flex;
    justify-content: space-between;
    gap: var(--space-2);
    font-size: var(--fs-small);
}
.info-card__row dt { color: var(--text-muted); }
.info-card__row dd { color: var(--text-primary); margin: 0; font-weight: 500; }

/* ============================================================
   Full-screen player
   ============================================================ */

.fullplayer {
    min-height: calc(100vh - 96px);
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-6);
    padding: var(--space-5) 0;
}
@media (max-width: 1000px) {
    .fullplayer { grid-template-columns: 1fr; }
}

.fullplayer__main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-4);
}

.fullplayer__cover {
    width: min(420px, 60vw);
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-elevated);
    margin-bottom: var(--space-3);
}
.fullplayer__cover .cover-art { width: 100%; height: 100%; }
.fullplayer__cover .cover-mark { width: 30%; height: 30%; }

.fullplayer__title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.fullplayer__credits {
    color: var(--text-muted);
    font-size: var(--fs-body);
}
.fullplayer__credits a { color: var(--text-primary); border-bottom: 1px solid var(--divider); }
.fullplayer__credits a:hover { color: var(--accent); border-color: var(--accent); }

.fullplayer__waveform-wrap {
    width: 100%;
    max-width: 720px;
    margin: var(--space-3) auto 0;
}
.player-scrubber {
    position: relative;
    height: 60px;
    cursor: pointer;
    margin-bottom: 6px;
}
.player-waveform {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: var(--text-faint);
    opacity: 0.4;
}
.player-scrubber .scrubber__fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, var(--accent-tint) 100%);
    border-right: 2px solid var(--accent);
    pointer-events: none;
    transition: width 100ms linear;
}
.player-scrubber .scrubber__thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(200, 85, 61, 0.2);
    pointer-events: none;
    transition: left 100ms linear;
}
.player-times {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto var(--space-3);
}

.fullplayer__controls {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-3);
}
.fullplayer__primary {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent);
    color: #FFF8F2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.fullplayer__primary:hover { transform: scale(1.05); background: var(--accent-hover); }
.fullplayer__primary svg { width: 24px; height: 24px; }
.fullplayer__secondary {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--divider);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--dur) var(--ease-out);
}
.fullplayer__secondary:hover { background: var(--bg-elevated); }
.fullplayer__secondary svg { width: 18px; height: 18px; }

.fullplayer__extras {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: var(--space-3);
}

.fullplayer__sidebar {
    border-left: 1px solid var(--divider);
    padding-left: var(--space-5);
}
@media (max-width: 1000px) {
    .fullplayer__sidebar { border-left: 0; padding-left: 0; border-top: 1px solid var(--divider); padding-top: var(--space-5); }
}

.queue-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.queue-row {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: var(--space-3);
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--divider-soft);
    font-size: 0.875rem;
}
.queue-row__cover {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.queue-row__cover svg { width: 50%; height: 50%; }
.queue-row__title { font-family: var(--font-serif); font-size: 0.9375rem; line-height: 1.2; }
.queue-row__credits { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.queue-row__time { color: var(--text-faint); font-size: 0.75rem; font-variant-numeric: tabular-nums; }

/* ============================================================
   Long-form prose (how-it-works narrative)
   ============================================================ */

.prose {
    max-width: 70ch;
    color: var(--text-muted);
    line-height: 1.7;
}
.prose h2 {
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: var(--space-7) 0 var(--space-3);
    letter-spacing: -0.015em;
}
.prose h3 {
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: var(--space-5) 0 var(--space-2);
}
.prose h4 {
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: var(--space-4) 0 var(--space-2);
    font-family: var(--font-sans);
    letter-spacing: 0;
}
.prose p { margin-bottom: var(--space-3); }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: var(--space-3); }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text-primary); font-weight: 500; }
.prose a { color: var(--accent); border-bottom: 1px solid var(--accent-muted); }
.prose a:hover { border-color: var(--accent); }

.prose blockquote {
    border-left: 3px solid var(--accent);
    padding-left: var(--space-3);
    margin: var(--space-4) 0;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-style: italic;
    color: var(--text-primary);
}

.callout-box {
    padding: var(--space-4);
    background: var(--accent-tint);
    border-radius: var(--radius);
    border-left: 3px solid var(--accent);
    margin: var(--space-4) 0;
}
.callout-box h4 { color: var(--text-primary); margin-bottom: 6px; font-family: var(--font-sans); font-weight: 600; }
.callout-box p { color: var(--text-muted); margin: 0; }

/* ============================================================
   How-it-works page table of contents
   ============================================================ */

.how-toc {
    position: sticky;
    top: var(--space-4);
    align-self: start;
    padding: var(--space-4);
    background: var(--bg-surface);
    border: 1px solid var(--divider);
    border-radius: var(--radius-lg);
}
.how-toc h4 {
    font-size: var(--fs-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-faint);
    margin-bottom: var(--space-3);
}
.how-toc ul { list-style: none; padding: 0; margin: 0; }
.how-toc li { margin-bottom: 8px; }
.how-toc a { color: var(--text-muted); font-size: 0.875rem; display: block; padding: 4px 0; }
.how-toc a:hover { color: var(--text-primary); }

/* ============================================================
   Filter toggle (mobile)
   ============================================================ */

.filter-toggle {
    display: none;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--divider);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: var(--fs-small);
    cursor: pointer;
}
@media (max-width: 900px) {
    .filter-toggle { display: inline-flex; align-items: center; gap: 6px; }
    .filter-sidebar { display: none; }
    .filter-sidebar.is-open { display: flex; }
}

/* ============================================================
   Utility helpers
   ============================================================ */

.section-spacer { padding-bottom: var(--space-7); }
.center-text { text-align: center; }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.serif { font-family: var(--font-serif); }
.divider-bottom { border-bottom: 1px solid var(--divider); padding-bottom: var(--space-5); margin-bottom: var(--space-5); }

/* ============================================================
   Forms (auth, upload, dashboard)
   ============================================================ */

.auth-shell {
    max-width: 480px;
    margin: 64px auto;
    padding: 0 var(--content-pad);
}
.auth-card {
    padding: var(--space-6);
    background: var(--bg-surface);
    border: 1px solid var(--divider);
    border-radius: var(--radius-xl);
}
.auth-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}
.auth-sub {
    color: var(--text-muted);
    margin-bottom: var(--space-5);
    line-height: 1.5;
}
.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}
.auth-alt {
    margin-top: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid var(--divider);
    color: var(--text-muted);
    font-size: var(--fs-small);
    text-align: center;
}
.auth-alt a { color: var(--accent); border-bottom: 1px solid var(--accent-muted); }
.auth-alt a:hover { border-color: var(--accent); }

.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-row > label {
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--text-primary);
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="password"],
.form-row textarea,
.form-row select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-base);
    border: 1px solid var(--divider);
    border-radius: var(--radius);
    color: var(--text-primary);
    font: inherit;
    font-size: var(--fs-body);
    line-height: 1.4;
    transition: border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-elevated);
}
.form-row textarea {
    resize: vertical;
    font-family: var(--font-sans);
}
.form-row select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 6l4 4 4-4' stroke='%23A89B8E' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 36px;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-faint);
    line-height: 1.4;
}

.form-error {
    color: #E07A5F;
    font-size: var(--fs-small);
    padding: 10px 14px;
    background: rgba(224, 122, 95, 0.08);
    border: 1px solid rgba(224, 122, 95, 0.25);
    border-radius: var(--radius);
}
.form-success {
    color: #6FA86A;
    font-size: var(--fs-small);
    padding: 10px 14px;
    background: rgba(111, 168, 106, 0.1);
    border: 1px solid rgba(111, 168, 106, 0.3);
    border-radius: var(--radius);
}

.form-submit {
    align-self: flex-start;
    margin-top: var(--space-2);
}

.form-row--inline {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.form-fieldset {
    border: 0;
    padding: 0;
    margin: 0;
    gap: 8px;
}
.form-fieldset legend {
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    padding: 0;
}

.radio-card {
    display: block;
    padding: 14px 16px;
    border: 1px solid var(--divider);
    border-radius: var(--radius);
    cursor: pointer;
    background: var(--bg-base);
    transition: border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.radio-card:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-tint);
}
.radio-card input { position: absolute; opacity: 0; }
.radio-card__title {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.radio-card__sub {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.checkbox-line {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    font-size: var(--fs-small);
    color: var(--text-muted);
    line-height: 1.4;
    cursor: pointer;
}
.checkbox-line input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    appearance: none;
    border: 1px solid var(--divider);
    background: var(--bg-base);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 1px;
    position: relative;
}
.checkbox-line input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}
.checkbox-line input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M3 7l3 3 5-6' stroke='%23FFF8F2' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}
.checkbox-line a { color: var(--accent); border-bottom: 1px solid var(--accent-muted); }

.link-as-btn {
    background: none;
    border: 0;
    color: var(--accent);
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    padding: 0;
}

/* ============================================================
   Upload form & dropzone
   ============================================================ */

.upload-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    max-width: 720px;
}

.dropzone {
    border: 2px dashed var(--divider);
    border-radius: var(--radius-lg);
    padding: var(--space-6) var(--space-4);
    text-align: center;
    background: var(--bg-surface);
    cursor: pointer;
    transition: border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.dropzone:hover { border-color: var(--text-faint); }
.dropzone.is-dragover {
    border-color: var(--accent);
    background: var(--accent-tint);
}
.dropzone.has-file {
    border-style: solid;
    border-color: var(--accent-muted);
    background: var(--bg-elevated);
}
.dropzone__icon {
    color: var(--text-faint);
    margin: 0 auto 12px;
    width: 32px;
    height: 32px;
}
.dropzone.has-file .dropzone__icon { color: var(--accent); }
.dropzone__title {
    font-size: var(--fs-body);
    color: var(--text-primary);
    margin-bottom: 4px;
}
.dropzone__hint {
    font-size: 0.8125rem;
    color: var(--text-faint);
}
.dropzone__filename {
    margin-top: var(--space-3);
    font-size: var(--fs-small);
    color: var(--accent);
    font-weight: 500;
    padding: 8px 16px;
    background: var(--accent-tint);
    border-radius: var(--radius);
    display: inline-block;
}

/* ============================================================
   Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
