/* ============================================================
   app.css — SpokenFeeds Design System
   ============================================================ */

/* ------ Self-hosted webfonts ------------------------------- */
/* MUST be self-hosted: the CSP in src/Web/Program.cs declares no font-src, so
   fonts inherit default-src 'self' and a Google Fonts <link> is blocked at
   runtime. Files live in wwwroot/fonts/ with their OFL texts alongside; the
   attribution is on /open-source.

   These are the *variable* woff2 cuts, one file per family per subset, so the
   whole weight range costs a single download instead of one per weight. Only
   latin + latin-ext are vendored — German needs nothing beyond latin, and
   latin-ext only downloads if a feed title actually contains such a character
   (that is what unicode-range buys us).                                      */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url('/fonts/space-grotesk-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url('/fonts/space-grotesk-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url('/fonts/jetbrains-mono-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url('/fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ------ CSS Custom Properties (Design Tokens) -------------- */

:root {
    /* Public / landing page design tokens (light theme) */
    --fv-primary:       #2563eb;
    --fv-primary-dark:  #1d4ed8;
    --fv-bg:            #ffffff;
    --fv-surface:       #f8fafc;
    --fv-border:        #e2e8f0;
    --fv-text:          #0f172a;
    --fv-text-muted:    #64748b;
    --fv-accent-2:      #7c3aed;
    /* The brand gradient. Same blue→purple pair the iOS app uses, so it is the
       brand, not decoration — which is exactly why it is rationed. On the public
       landing page it appears in EXACTLY three places: the accent word in the hero
       headline, the single glow behind the showcase card, and the primary CTA /
       play button. Adding a fourth dilutes all three. */
    --fv-gradient:      linear-gradient(135deg, #2563eb, #7c3aed);
    /* Hairlines instead of shadows: structure is drawn with 1px rules, not with
       stacked blurs. --fv-shadow-* survive for the signed-in app only. */
    --fv-hairline:      rgba(15, 23, 42, 0.12);
    --fv-surface-2:     #f1f2f5;
    --fv-accent-soft:   rgba(37, 99, 235, 0.09);
    /* Showcase player card — a dark instrument panel inside a light page. */
    --fv-player-bg:       #0e1116;
    --fv-player-ink:      #f4f5f7;
    --fv-player-muted:    #8991a1;
    --fv-player-hairline: rgba(255, 255, 255, 0.10);
    --fv-glow-a:          rgba(37, 99, 235, 0.34);
    --fv-glow-b:          rgba(124, 58, 237, 0.28);
    /* Amber, deliberately not red: the fictional-source label is a disclosure,
       not an error state. Contrast-checked against --fv-player-bg. */
    --fv-disclose:        #eab308;
    --fv-space-1: 0.25rem;
    --fv-space-2: 0.5rem;
    --fv-space-3: 0.75rem;
    --fv-space-4: 1rem;
    --fv-space-6: 1.5rem;
    --fv-space-8: 2rem;
    --fv-space-12: 3rem;
    --fv-space-16: 4rem;
    --fv-font-sans: 'Inter', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    /* Display face for headings and the player title — geometric, technical. */
    --fv-font-display: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
    /* Everything numeric or instrument-like: eyebrows, durations, feed ranks,
       step counters, the fictional-source label. Reads as instrumentation
       rather than editorial voice. */
    --fv-font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
    --fv-font-size-base: 1rem;
    --fv-line-height-base: 1.6;
    --fv-radius-sm: 6px;
    --fv-radius-md: 10px;
    --fv-radius-lg: 16px;
    --fv-shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.04);
    --fv-shadow-md:  0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    --fv-shadow-lg:  0 8px 32px rgba(37, 99, 235, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);

    /* Authenticated app shell design tokens (dark theme) */
    --app-header-height:     48px;
    --app-player-height:     60px;
    --app-bottom-nav-height: 56px;
    --app-sidebar-width:     200px;
    --app-primary:           #2563eb;
    --app-primary-hover:     #1d4ed8;
    --app-bg:                #0f172a;
    --app-bg-surface:        #1e293b;
    --app-bg-surface-hover:  #273349;
    --app-text:              #f1f5f9;
    --app-text-muted:        #64748b;
    --app-border:            #334155;
    --app-active-bg:         rgba(37, 99, 235, 0.15);
    --app-active-color:      #2563eb;
}

/* Articles page filter row (.articles-header) is sticky, offset below the
   global app header. When the persistent audio player bar is also visible
   (local playback or a cross-device "playing elsewhere" banner), it pushes
   the filter row further down — mirrors .app-sidebar's offset in
   AppLayout.razor.css. Lives here (not Articles.razor.css) because Blazor's
   CSS-isolation scoping can't bridge a :has() selector across components. */
.app-layout:has(.audio-player-bar--visible) .articles-header {
    top: calc(var(--app-header-height) + var(--app-player-height));
}

/* ------ Base Reset & Typography ---------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    font-family: var(--fv-font-sans);
    font-size: var(--fv-font-size-base);
    line-height: var(--fv-line-height-base);
    color: var(--fv-text);
    background: var(--fv-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a, .btn-link {
    color: var(--fv-primary);
}

/* Override Bootstrap primary button to match design system */
.btn-primary {
    color: #fff;
    background-color: var(--fv-primary);
    border-color: var(--fv-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--fv-primary-dark);
    border-color: var(--fv-primary-dark);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #93c5fd;
}

/* Override Bootstrap card colors within the settings/app context */
.settings-page .card {
    --bs-card-bg: var(--app-bg-surface);
    --bs-card-border-color: var(--app-border);
    --bs-card-color: var(--app-text);
}

/* ------ Utility: Gradient Text ----------------------------- */

.gradient-text {
    background: var(--fv-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ------ Utility: Section container ------------------------- */

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Left-aligned section headings with a measured sub-line, per the approved
   direction: centred headings plus centred body copy gave every section the
   same silhouette and nothing to anchor the eye. */
.section-title {
    font-size: clamp(1.9rem, 3.6vw, 2.65rem);
    font-weight: 600;
    color: var(--fv-text);
    margin-bottom: 0;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.section-sub {
    font-size: 1.0625rem;
    color: var(--fv-text-muted);
    max-width: 62ch;
    margin: 0.9rem 0 0;
    line-height: 1.6;
}

/* ------ Blazor error boundary ------------------------------ */

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

/* ------ Form validation ------------------------------------ */

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ------ Touch device: prevent Bootstrap hover styles sticking on iOS ---
   Bootstrap sets button hover state via CSS variables (--bs-btn-hover-*).
   On touch devices (hover: none) there is no true hover, but iOS fires a
   synthetic :hover on tap and leaves it active until the next tap elsewhere.
   Resetting the hover variables to the base-state values prevents the
   "ghost highlight" where a button stays visually active after release.   */

@media (hover: none) {
    .btn:hover {
        background-color: var(--bs-btn-bg) !important;
        border-color: var(--bs-btn-border-color) !important;
        color: var(--bs-btn-color) !important;
        box-shadow: none !important;
    }
}

/* ============================================================
   Landing Page Styles (HomeDe / HomeEn)
   Moved from Home.razor.css — CSS isolation doesn't reach child components.
   ============================================================ */

/* ------ Shared landing rhythm ------------------------------ */

.hero h1,
.section-title,
.steps__heading,
.feature-card__title,
.top-feed-card__title,
.cta-band__title,
.showcase__now-title {
    font-family: var(--fv-font-display);
    letter-spacing: -0.02em;
}

/* Numerics and instrument labels. Tabular figures so the duration column and
   the rank column do not wobble as values change. */
.showcase__heading,
.showcase__item-index,
.showcase__item-duration,
.showcase__item-fictional,
.showcase__now-fictional,
.showcase__disclosure,
.steps__number,
.top-feed-card__rank,
.feedcheck__sample-age {
    font-family: var(--fv-font-mono);
    font-variant-numeric: tabular-nums;
}

/* ------ Hero ---------------------------------------------- */

/* No tinted wash behind the hero: the only colour event above the fold is the
   accent word plus the single glow behind the player card. */
.hero {
    background: var(--fv-bg);
    padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3rem, 8vw, 5rem);
    overflow: hidden;
}

.hero__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: clamp(3rem, 6vw, 4.5rem);
    align-items: center;
}

.hero__content {
    max-width: 560px;
    text-align: center;
}

.hero__headline {
    font-size: clamp(2.4rem, 7vw, 4.2rem);
    font-weight: 700;
    line-height: 1.04;
    color: var(--fv-text);
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

.hero__sub {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--fv-text-muted);
    margin-bottom: 2rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

/* Gradient use 1 of 3. */
.hero__cta {
    background: var(--fv-gradient);
    border: none;
    padding: 0.9rem 1.7rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.hero__cta:hover {
    filter: brightness(1.08);
}

.hero__btn-secondary {
    padding: 0.9rem 1.7rem;
    font-weight: 600;
    color: var(--fv-text);
    background: transparent;
    border-color: var(--fv-hairline);
}

.hero__btn-secondary:hover {
    color: var(--fv-text);
    background: transparent;
    border-color: var(--fv-text);
}

.hero__visual {
    width: 100%;
    max-width: 420px;
}

/* The animated bar keyframes are shared with the showcase waveform; they
   outlived the removed .player-mock__* markup they were written for. */
@keyframes wave {
    from { transform: scaleY(0.32); }
    to   { transform: scaleY(1); }
}

@media (min-width: 940px) {
    .hero__inner {
        flex-direction: row;
        align-items: center;
    }

    .hero__content {
        text-align: left;
        flex: 1.02;
    }

    .hero__actions {
        justify-content: flex-start;
    }

    .hero__visual {
        flex: 0.98;
        max-width: 460px;
    }
}

/* ------ Founder note -------------------------------------- */

/* Sans and upright, not italic serif: this is a testimonial, not a literary
   epigraph. */
.founder-note {
    padding: clamp(4rem, 9vw, 6rem) 0;
    background: var(--fv-surface-2);
    border-top: 1px solid var(--fv-hairline);
    border-bottom: 1px solid var(--fv-hairline);
}

.founder-note__inner {
    max-width: 760px;
    text-align: left;
}

.founder-note__quote {
    font-size: clamp(1.25rem, 2.4vw, 1.75rem);
    line-height: 1.45;
    letter-spacing: -0.012em;
    font-weight: 500;
    font-style: normal;
    color: var(--fv-text);
    margin: 0;
    border: none;
    padding: 0;
}

.founder-note__attr {
    font-size: 0.8125rem;
    color: var(--fv-text-muted);
    margin: 1.5rem 0 0;
}

/* ------ Steps --------------------------------------------- */

.steps {
    padding: clamp(4rem, 9vw, 6rem) 0;
    background: var(--fv-bg);
}

.steps__list {
    list-style: none;
    padding: 0;
    margin: 3rem 0 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.steps__item {
    display: block;
    padding-top: 1.5rem;
    border-top: 1px solid var(--fv-hairline);
}

/* Was a gradient-filled circle. The gradient is rationed to three places, and
   a step counter is instrumentation — mono digits in the accent colour. */
.steps__number {
    display: block;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--fv-primary);
    margin-bottom: 0.6rem;
}

.steps__body {
    display: block;
}

.steps__heading {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--fv-text);
    margin-bottom: 0.5rem;
}

.steps__text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--fv-text-muted);
    margin: 0;
}

@media (min-width: 820px) {
    .steps__list {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

/* ------ Features (bento) ----------------------------------- */

.features {
    padding: clamp(4rem, 9vw, 6rem) 0;
    background: var(--fv-bg);
}

/* One hairline grid rather than ten floating shadowed cards: the 1px gap over
   a hairline-coloured background draws every rule exactly once. */
.features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    margin-top: 3rem;
    background: var(--fv-hairline);
    border: 1px solid var(--fv-hairline);
    border-radius: 14px;
    overflow: hidden;
}

@media (min-width: 560px) {
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .features__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Fills whatever's left of the last row — no card background/border, just the
   hairline-coloured grid background showing through. This is the last grid child, so
   its OWN :nth-child position is (card count + 1); a card count of N leaves the last row
   with N mod <columns> tracks used. Matching this element's position mod <columns>
   therefore tells us that remainder without ever counting the cards directly, so it
   keeps working when a card is added or removed above — no JS, no hardcoded N.
     columns=2: pos ≡ 1 (mod 2) → row was full (remainder 0), stay hidden
                pos ≡ 0 (mod 2) → 1 track left            → span 1
     columns=3: pos ≡ 1 (mod 3) → row was full (remainder 0), stay hidden
                pos ≡ 2 (mod 3) → 2 tracks left            → span 2
                pos ≡ 0 (mod 3) → 1 track left             → span 1
   Each breakpoint below re-asserts "hidden" via :nth-child(n) (same specificity as the
   span rules, so source order decides) because a wider breakpoint doesn't otherwise
   clear a narrower one's match. */
.features__grid-note {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.85rem;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--fv-text-muted);
    text-align: center;
}

@media (min-width: 560px) {
    .features__grid-note:nth-child(n) {
        display: none;
    }

    .features__grid-note:nth-child(2n) {
        display: flex;
        grid-column: span 1;
    }
}

@media (min-width: 900px) {
    .features__grid-note:nth-child(n) {
        display: none;
    }

    .features__grid-note:nth-child(3n+2) {
        display: flex;
        grid-column: span 2;
    }

    .features__grid-note:nth-child(3n) {
        display: flex;
        grid-column: span 1;
    }
}

.feature-card {
    background: var(--fv-bg);
    border: none;
    border-radius: 0;
    padding: 1.85rem;
    transition: background 0.16s ease;
}

.feature-card:hover {
    background: var(--fv-surface);
    box-shadow: none;
    transform: none;
}

.feature-card__icon {
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 0;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin-bottom: 1.1rem;
}

.feature-card__icon--voice {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='2' width='6' height='11' rx='3'/%3E%3Cpath d='M19 10a7 7 0 0 1-14 0'/%3E%3Cline x1='12' y1='19' x2='12' y2='22'/%3E%3Cline x1='8' y1='22' x2='16' y2='22'/%3E%3C/svg%3E");
}

.feature-card__icon--language {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E");
}

.feature-card__icon--player {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolygon points='10,8 17,12 10,16'/%3E%3C/svg%3E");
}

.feature-card__icon--followme {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='13' height='9' rx='1'/%3E%3Cpath d='M8 12v3'/%3E%3Cline x1='5' y1='15' x2='11' y2='15'/%3E%3Crect x='16' y='8' width='6' height='10' rx='1'/%3E%3Cpath d='M19 8V5'/%3E%3C/svg%3E");
}

.feature-card__icon--rss {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 11a9 9 0 0 1 9 9'/%3E%3Cpath d='M4 4a16 16 0 0 1 16 16'/%3E%3Ccircle cx='5' cy='19' r='1' fill='%232563eb'/%3E%3C/svg%3E");
}

.feature-card__icon--fair {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='8' y1='6' x2='21' y2='6'/%3E%3Cline x1='8' y1='12' x2='21' y2='12'/%3E%3Cline x1='8' y1='18' x2='21' y2='18'/%3E%3Cline x1='3' y1='6' x2='3.01' y2='6'/%3E%3Cline x1='3' y1='12' x2='3.01' y2='12'/%3E%3Cline x1='3' y1='18' x2='3.01' y2='18'/%3E%3C/svg%3E");
}

.feature-card__icon--oneliner {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='7' x2='20' y2='7'/%3E%3Cline x1='4' y1='12' x2='13' y2='12'/%3E%3Cline x1='4' y1='17' x2='9' y2='17'/%3E%3C/svg%3E");
}

.feature-card__icon--dedup {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='12' r='6'/%3E%3Ccircle cx='15' cy='12' r='6'/%3E%3C/svg%3E");
}

.feature-card__icon--schedule {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpolyline points='12,7 12,12 16,14'/%3E%3C/svg%3E");
}

.feature-card__icon--tags {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 13.4 12.8 21.2a2 2 0 0 1-2.8 0l-7-7A2 2 0 0 1 2.4 12.8V4.4A2 2 0 0 1 4.4 2.4h8.4a2 2 0 0 1 1.4.6l6.4 6.4a2 2 0 0 1 0 2.8z'/%3E%3Cline x1='7.5' y1='7.5' x2='7.51' y2='7.5'/%3E%3C/svg%3E");
}

.feature-card__title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--fv-text);
    margin-bottom: 0.5rem;
}

.feature-card__text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--fv-text-muted);
    margin: 0;
}

/* ------ CTA Band ------------------------------------------ */

/* Previously a full-bleed gradient band. That was the fourth gradient on the
   page and it out-shouted the hero; the band is now a quiet surface and the
   gradient sits only on the button (use 3 of 3). */
.cta-band {
    background: var(--fv-surface-2);
    border-top: 1px solid var(--fv-hairline);
    padding: clamp(4rem, 9vw, 6rem) 0;
    color: var(--fv-text);
}

.cta-band__inner {
    text-align: center;
    max-width: 760px;
}

.cta-band__title {
    font-size: clamp(1.9rem, 3.6vw, 2.65rem);
    font-weight: 600;
    color: var(--fv-text);
    margin-bottom: 0.9rem;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.cta-band__sub {
    font-size: 1.0625rem;
    color: var(--fv-text-muted);
    margin: 0 auto 2rem;
    max-width: 44ch;
}

.cta-band__btn {
    background: var(--fv-gradient);
    color: #ffffff;
    border: none;
    font-weight: 600;
    padding: 0.95rem 1.7rem;
}

.cta-band__btn:hover {
    background: var(--fv-gradient);
    color: #ffffff;
    filter: brightness(1.08);
}

.contact-band {
    padding: 2.5rem 0;
    border-top: 1px solid var(--fv-hairline);
}

.contact-band__inner {
    text-align: center;
}

.contact-band__text {
    font-size: 0.875rem;
    color: var(--fv-text-muted);
    margin: 0;
}

.contact-band__text a {
    color: var(--fv-text-muted);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.contact-band__text a:hover {
    color: var(--fv-text);
}

/* ------ iOS App section ------------------------------------ */

.app-store-badge {
    display: inline-block;
    transition: opacity 0.15s;
}

.app-store-badge:hover {
    opacity: 0.85;
}

.ios-app {
    background: var(--fv-bg);
    border-top: 1px solid var(--fv-hairline);
    padding: clamp(4rem, 9vw, 6rem) 0;
}

.ios-app__screenshots {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.ios-app__screenshots::-webkit-scrollbar {
    display: none;
}

.ios-app__screenshots img {
    height: 380px;
    width: auto;
    border-radius: 18px;
    border: 1px solid var(--fv-hairline);
    scroll-snap-align: start;
    flex-shrink: 0;
}

.ios-app__badge {
    display: flex;
    justify-content: center;
    margin-top: 1.75rem;
}

@media (min-width: 768px) {
    .ios-app__screenshots {
        justify-content: center;
    }
}

/* ============================================================
   Settings-style page layout (shared across settings-like pages)
   Moved from Settings.razor.css — CSS isolation only scopes to that
   component; classes used in Billing.razor etc. must be global.
   ============================================================ */

.settings-page {
    max-width: 680px;
}

.settings-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--app-text);
    margin-bottom: 1.5rem;
}

.settings-section {
    margin-bottom: 1.75rem;
}

.settings-section--last {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.settings-section__title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--app-text-muted);
    margin-bottom: 0.625rem;
}

.settings-card {
    background: var(--app-bg-surface);
    border: 1px solid var(--app-border);
    border-radius: 10px;
    padding: 1rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.settings-card:hover {
    border-color: rgba(148, 163, 184, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.settings-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--app-text);
    margin-bottom: 0.25rem;
}

.settings-readonly {
    font-size: 0.9375rem;
    color: var(--app-text-muted);
    margin: 0;
}

.settings-hint {
    font-size: 0.8125rem;
    color: var(--app-text-muted);
    line-height: 1.5;
}

.settings-kv {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.settings-kv__key {
    font-size: 0.875rem;
    color: var(--app-text-muted);
}

.settings-kv__value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--app-text);
}

.settings-status-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.2em 0.6em;
    border-radius: 999px;
    white-space: nowrap;
}

.settings-status-badge--active    { background: rgba(34, 197, 94, 0.15);  color: #4ade80; }
.settings-status-badge--trial     { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.settings-status-badge--inactive  { background: rgba(100, 116, 139, 0.2); color: var(--app-text-muted); }
.settings-status-badge--deletion_requested { background: rgba(239, 68, 68, 0.15); color: #f87171; }

/* Connected accounts (OAuth provider link table) */
.connected-accounts__row {
    display: grid;
    grid-template-columns: minmax(7rem, max-content) 1fr auto;
    align-items: center;
    column-gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.connected-accounts__row:last-child { margin-bottom: 0; }
.connected-accounts__action { justify-self: end; }
.connected-accounts__pill {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.4;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
    white-space: nowrap;
}
@media (max-width: 360px) {
    .connected-accounts__row {
        grid-template-columns: 1fr auto;
    }
    .connected-accounts__status { grid-column: 1 / -1; }
    .connected-accounts__action { grid-column: 1 / -1; justify-self: stretch; }
    .connected-accounts__action .btn { width: 100%; }
}

.settings-delete-confirm {
    font-size: 0.875rem;
    color: #f87171;
    margin: 0;
}

.fv-wildcard { font-weight: 600; color: var(--fv-accent, #0d6efd); }

/* Merge-accounts step indicator */
.merge-steps {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
}
.merge-step {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--app-text-muted);
    padding: 0.2em 0.6em;
    border-radius: 999px;
}
.merge-step--active {
    color: var(--app-text);
    background: rgba(148, 163, 184, 0.15);
    font-weight: 600;
}
.merge-step__sep {
    font-size: 0.75rem;
    color: var(--app-text-muted);
    opacity: 0.5;
}

/* Onboarding overlay modal */
.onboarding-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 1040;
    display: flex; align-items: center; justify-content: center;
}
.onboarding-modal {
    background: var(--app-bg-surface);
    color: var(--app-text);
    border: 1px solid var(--app-border);
    border-radius: 1rem; padding: 2rem;
    max-width: 560px; width: calc(100% - 2rem);
    max-height: 90vh; overflow-y: auto;
}

/* ============================================================
   Article list (JS-painted — see SPEC_ARTICLE_LIST_JS.md)
   audioplayer.js paints these rows directly into the DOM; Blazor's
   CSS-isolation scope attribute is only stamped on elements Blazor
   itself renders, so these rules MUST stay unscoped/global here —
   they will not match if moved into Articles.razor.css.
   ============================================================ */

.article-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.article-card {
    display: grid;
    grid-template-columns: 30px 1fr auto;
    column-gap: 0.55rem;
    padding: 0.6rem 0.625rem 0.55rem;
    background: var(--app-bg-surface);
    border: 1px solid var(--app-border);
    border-radius: 10px;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    list-style: none;
    /* The Articles page now stacks a sticky app header + player bar + filter row
       (.articles-header) at the top; scrollIntoView() (browser auto-scroll on
       click/focus) doesn't know about that reserved space and can otherwise land
       a card underneath it, blocking clicks. Generous worst-case estimate. */
    scroll-margin-top: calc(var(--app-header-height) + var(--app-player-height) + 80px);
}

/* Row 1, col 1: mini play button */
.article-card__play-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.15);
    border: 1.5px solid rgba(37, 99, 235, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s;
}

.article-card__play-btn svg {
    width: 11px;
    height: 11px;
    color: var(--app-primary);
    margin-left: 1px; /* optical center for play triangle */
}

.article-card--active .article-card__play-btn {
    background: var(--app-primary);
    border-color: var(--app-primary);
}

.article-card--active .article-card__play-btn svg {
    color: #fff;
}

/* Row 1, col 3: action buttons */
.article-card__actions {
    display: flex;
    align-items: center;
    align-self: center;
    flex-shrink: 0;
}

@media (hover: hover) {
    .article-card:hover {
        border-color: rgba(148, 163, 184, 0.4);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
}

/* Active / playing card */
.article-card--active {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

/* Listened card — dimmed */
.article-card--listened {
    opacity: 0.6;
}

@media (hover: hover) {
    .article-card--listened:hover {
        opacity: 0.8;
    }
}

/* Ghost card — one of the last N (up to 5) finished articles, kept visible in unlistened-only
   mode so you can still open its URL or skip back to it via ← Previous (backscroll history, see
   SPEC_ARTICLE_LIST_JS.md § Backscroll history). Dashed borders were dropped: with up to 5
   consecutive ghost rows a dashed border reads as visual noise rather than a signal — the dimmed
   opacity alone communicates "already heard". Hover brightens a row you're about to click. */
.article-card--ghost {
    opacity: 0.35;
}

@media (hover: hover) {
    .article-card--ghost:hover {
        opacity: 0.7;
    }
}

/* Listened badge (checkmark icon) */
.article-card__listened-badge {
    display: inline-flex;
    align-items: center;
    color: rgba(74, 222, 128, 0.7);
    flex-shrink: 0;
}

.article-card__listened-badge svg {
    width: 12px;
    height: 12px;
}

/* Replayed badge (repeat icon) */
.article-card__replayed-badge {
    display: inline-flex;
    align-items: center;
    color: rgba(251, 191, 36, 0.8);
    flex-shrink: 0;
}

.article-card__replayed-badge svg {
    width: 12px;
    height: 12px;
}

/* Resume highlight — "Weiter hören" from another device */
.article-card--resume {
    background: rgba(234, 179, 8, 0.07);
    border-color: rgba(234, 179, 8, 0.35);
    box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.1);
}

.article-card--resume .article-card__title {
    color: #fde047;
    font-weight: 600;
}

.article-card__resume-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2em;
    padding: 0.1em 0.4em;
    border-radius: 4px;
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: #fde047;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    flex-shrink: 0;
    text-transform: uppercase;
}

/* ------ Card body (title + meta) --------------------------- */

.article-card__title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--app-text);
    margin: 0;
    line-height: 1.35;
    align-self: center;
}

.article-card--active .article-card__title {
    color: var(--app-primary);
    font-weight: 600;
}

.article-card__meta {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: var(--app-text-muted);
    margin: 0.2rem 0 0;
    white-space: nowrap;
    overflow: hidden;
}

.article-card__feed {
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.article-card__sep {
    flex-shrink: 0;
}

.article-card__duration {
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.article-card__age {
    flex-shrink: 0;
}

/* ------ Summary snippet ------------------------------------ */

.article-card__summary {
    grid-column: 1 / -1;
    font-size: 0.8125rem;
    color: var(--app-text-muted);
    margin: 0.25rem 0 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ------ Playing waveform indicator (inside play button) ---- */

.playing-indicator {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.playing-indicator__bar {
    display: block;
    width: 3px;
    background: #fff;
    border-radius: 2px;
    animation: article-playing-bar 0.9s ease-in-out infinite;
}

.playing-indicator__bar:nth-child(1) { height: 6px;  animation-delay: 0s; }
.playing-indicator__bar:nth-child(2) { height: 12px; animation-delay: 0.2s; }
.playing-indicator__bar:nth-child(3) { height: 8px;  animation-delay: 0.4s; }

@keyframes article-playing-bar {
    0%, 100% { transform: scaleY(0.4); }
    50%       { transform: scaleY(1); }
}

/* ------ External link button ------------------------------- */

.article-card__link-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: var(--app-text-muted);
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
    .article-card__link-btn:hover {
        color: var(--app-primary);
        background: rgba(37, 99, 235, 0.1);
    }
}

.article-card__link-btn svg {
    width: 14px;
    height: 14px;
}

/* ------ Batch "bis hier gehört" button -------------------- */

.article-card__mark-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--app-text-muted);
    cursor: pointer;
    opacity: 0.45;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.15s, color 0.15s, background 0.15s;
}

.article-card__mark-btn svg {
    width: 16px;
    height: 16px;
}

.article-card__mark-btn:hover,
.article-card__mark-btn:focus-visible {
    opacity: 1;
    color: var(--app-primary);
    background: rgba(37, 99, 235, 0.1);
}

@media (hover: none) {
    .article-card__mark-btn { opacity: 0.55; }
    .article-card__mark-btn--unmark { opacity: 1; }
}

.article-card__mark-btn--unmark {
    opacity: 1;
}

.article-card__untag-icon {
    position: relative;
    font-size: 16px;
    line-height: 1;
}

.article-card__untag-icon::after {
    content: "";
    position: absolute;
    left: -3px;
    right: -3px;
    top: 50%;
    height: 2px;
    background: currentColor;
    transform: translateY(-50%) rotate(-45deg);
}

/* ------ One-liner block header row (inline in .article-list) --- */

.articles-block-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    border-radius: 10px;
    font-size: 0.8125rem;
    line-height: 1.4;
    animation: resume-prompt-in 0.25s ease-out;
    background: rgba(37, 99, 235, 0.07);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: rgba(147, 197, 253, 0.9);
}

.articles-block-banner__icon {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    opacity: 0.85;
}

.articles-block-banner__text {
    flex: 1;
    min-width: 0;
}

/* ------ One-liner super-group closing divider (mirrors banner accent) --- */

.articles-block-super-group-end {
    padding: 0 0.875rem;
}

.articles-block-super-group-end__rule {
    margin: 0.375rem 0 0;
    border: none;
    height: 1px;
    background: rgba(37, 99, 235, 0.2);
}

/* ------ Empty state (also painted inline by JS when the queue is empty) --- */

.articles-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 1rem 2rem;
    gap: 0.75rem;
}

.articles-empty__icon {
    width: 72px;
    height: 72px;
    color: var(--app-text-muted);
    opacity: 0.4;
}

.articles-empty__icon svg {
    width: 100%;
    height: 100%;
}

.articles-empty__title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--app-text);
    margin: 0;
}

.articles-empty__sub {
    font-size: 0.9rem;
    color: var(--app-text-muted);
    margin: 0;
    max-width: 300px;
    line-height: 1.5;
}

.articles-empty__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.btn-primary-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    background: var(--app-primary);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
    .btn-primary-pill:hover {
        background: var(--app-primary-hover);
        color: #fff;
    }
}

.btn-outline-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    border: 1.5px solid var(--app-border);
    background: transparent;
    color: var(--app-text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
    .btn-outline-pill:hover {
        border-color: var(--app-primary);
        color: var(--app-primary);
    }
}

@media (min-width: 480px) {
    .article-card__title {
        font-size: 1rem;
    }
}


/* ============================================================
   Public landing: showcase player, feed check, top feeds.
   DOM contract: SPEC_PUBLIC_LANDING.md §4 — every id/class below that
   publicplayer.js binds to is frozen there, not free to rename here.
   ============================================================ */

/* ------ Showcase player (hero visual) ---------------------- */

/* The one accent glow on the page (gradient use 2 of 3). It is a wrapper
   pseudo-element rather than a box-shadow on .showcase so the blur can spill
   past the card without the card itself carrying a soft shadow. */
/* z-index:0 makes this a stacking context on purpose: without it the glow's
   negative z-index would drop behind .hero's own background and disappear. */
.hero__visual {
    position: relative;
    z-index: 0;
}

.hero__visual::before {
    content: '';
    position: absolute;
    inset: -8% -6%;
    z-index: -1;
    border-radius: 32px;
    background:
        radial-gradient(60% 60% at 22% 18%, var(--fv-glow-a), transparent 70%),
        radial-gradient(55% 55% at 82% 88%, var(--fv-glow-b), transparent 70%);
    filter: blur(38px);
    opacity: 0.85;
}

/* Dark instrument panel inside a light page. */
.showcase {
    background: var(--fv-player-bg);
    color: var(--fv-player-ink);
    border: 1px solid var(--fv-player-hairline);
    border-radius: var(--fv-radius-lg);
    overflow: hidden;
    padding: 0;
    text-align: left;
}

.showcase__top {
    padding: 1.5rem 1.5rem 1.15rem;
    border-bottom: 1px solid var(--fv-player-hairline);
}

.showcase__heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fv-player-muted);
    margin: 0;
}

.showcase__heading::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--fv-primary);
    flex-shrink: 0;
    animation: showcase-pulse 2.4s infinite;
}

@keyframes showcase-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .showcase__heading::before { animation: none; }
}

/* ------ Now playing ---------------------------------------- */

.showcase__now {
    margin: 0.85rem 0 0;
    min-height: 1.2em;
}

.showcase__now-title {
    display: block;
    font-size: 1.1875rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: var(--fv-player-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ------ Waveform ------------------------------------------- */

.showcase__wave {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 44px;
    margin: 1.35rem 0 0;
}

.showcase__wave span {
    flex: 1;
    height: 30%;
    background: rgba(37, 99, 235, 0.55);
    border-radius: 2px;
    transform-origin: bottom;
}

.showcase.is-playing .showcase__wave span {
    animation: wave 1.25s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
    .showcase.is-playing .showcase__wave span { animation: none; }
}

/* Deterministic-looking heights without 40 hand-written rules. */
.showcase__wave span:nth-child(4n + 1) { height: 45%; animation-delay: 0s; }
.showcase__wave span:nth-child(4n + 2) { height: 80%; animation-delay: 0.12s; }
.showcase__wave span:nth-child(4n + 3) { height: 55%; animation-delay: 0.24s; }
.showcase__wave span:nth-child(4n + 4) { height: 95%; animation-delay: 0.06s; }

/* ------ Track list ----------------------------------------- */

.showcase__list {
    list-style: none;
    margin: 0;
    padding: 0.4rem 0;
    /* Four rows visible, the rest scrolls — and never a row clipped in half,
       which is what makes it read as scrollable rather than broken. */
    max-height: 17rem;
    overflow-y: auto;
    scrollbar-width: thin;
}

.showcase__item {
    display: flex;
    align-items: stretch;
}

.showcase__item-btn {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 0.6rem 1.5rem;
    cursor: pointer;
    color: inherit;
    font-size: 0.875rem;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
    .showcase__item-btn:hover {
        background: rgba(255, 255, 255, 0.045);
    }
}

.showcase__item.is-active .showcase__item-btn {
    background: var(--fv-accent-soft);
}

.showcase__item-index {
    flex-shrink: 0;
    width: 1.4rem;
    font-size: 0.75rem;
    color: var(--fv-player-muted);
}

.showcase__item.is-active .showcase__item-index {
    color: var(--fv-primary);
}

.showcase__item-icon {
    flex-shrink: 0;
    border-radius: 4px;
    object-fit: cover;
}

.showcase__item-text {
    min-width: 0;
    flex: 1;
}

.showcase__item-title {
    display: block;
    font-weight: 500;
    color: var(--fv-player-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.showcase__item-meta {
    display: block;
    font-size: 0.75rem;
    color: var(--fv-player-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.showcase__item-duration {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: var(--fv-player-muted);
}

/* ------ Fictional-source disclosure ------------------------ */

/* Asymmetric on purpose (SPEC_PUBLIC_LANDING.md §4a): this label only ever
   appears on content WE invented. There is no counterpart badge for a
   third-party article, because we cannot vouch for one — so an unlabelled row
   must not look like a row that is missing something. That is why the label is
   an inline note inside the row's own text column rather than a chip in a
   dedicated badge column: with no badge, no gap is left behind. */
.showcase__item-fictional,
.showcase__now-fictional {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--fv-disclose);
    cursor: help;
}

.showcase__item-fictional {
    margin-top: 0.2rem;
}

.showcase__now-fictional {
    margin-top: 0.35rem;
    font-size: 0.6875rem;
}

.showcase__item-fictional::before,
.showcase__now-fictional::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

/* [hidden] loses to display:inline-flex without this — the now-playing mirror
   is toggled by publicplayer.js purely through the hidden attribute. */
.showcase__now-fictional[hidden] {
    display: none;
}

/* ------ Persistent AI disclosure --------------------------- */

/* EU AI Act Art. 50 transparency. Always rendered, never keyed off playback
   state and never dismissible: both statements it makes (synthetic voice,
   AI-written summary) are true of every item in this player. */
.showcase__disclosure {
    margin: 0;
    padding: 0.75rem 1.5rem 0.9rem;
    border-top: 1px solid var(--fv-player-hairline);
    font-size: 0.6875rem;
    line-height: 1.5;
    color: var(--fv-player-muted);
}

/* ------ Creator invitation ---------------------------------- */

.showcase__creator-cta {
    margin: 0;
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid var(--fv-player-hairline);
    text-align: center;
}

.showcase__creator-cta-text {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--fv-player-muted);
}

.showcase__creator-cta-text strong {
    color: var(--fv-player-ink);
}

.showcase__creator-cta-link {
    display: inline-block;
    background: var(--fv-gradient);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 0.55rem 1.15rem;
    border-radius: 0.5rem;
    text-decoration: none;
}

/* ------ Showcase empty state ------------------------------- */

/* Featured audio expires with its source, so "empty" is a designed state.
   It is a light card — there is no player to be an instrument panel for. */
.showcase--empty {
    background: var(--fv-bg);
    color: var(--fv-text);
    border: 1px solid var(--fv-hairline);
    padding: 2rem 1.5rem;
    text-align: center;
}

.showcase--empty .showcase__heading {
    display: block;
    font-family: var(--fv-font-display);
    font-size: 1.1875rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    text-transform: none;
    color: var(--fv-text);
}

.showcase--empty .showcase__heading::before {
    display: none;
}

.showcase__empty-text {
    font-size: 0.9375rem;
    color: var(--fv-text-muted);
    margin: 0.6rem 0 1.25rem;
}

/* ------ Playback controls (child component) ----------------- */

/* Deliberately empty. The showcase's playback buttons are styled entirely by
   PlaybackControls.razor.css's "landing" theme, selected via <PlaybackControls Theme="landing" />.
   Do not add #sf-showcase overrides here: CSS isolation means the component's scoped [b-xxxx]
   selectors out-specify anything unscoped in this file, so an override only "works" by
   id-anchoring, which then silently loses to the next scoped rule someone adds. The --fv-* tokens
   this file defines are visible inside the component, because custom properties inherit normally. */

/* ------ Feed check ----------------------------------------- */

.feedcheck {
    padding: clamp(4rem, 9vw, 6rem) 0;
    background: var(--fv-surface-2);
    border-top: 1px solid var(--fv-hairline);
    border-bottom: 1px solid var(--fv-hairline);
}

.feedcheck .section-inner {
    max-width: 760px;
}

.feedcheck__form {
    margin: var(--fv-space-8) 0 0;
}

.feedcheck__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fv-text-muted);
    margin-bottom: 0.5rem;
}

.feedcheck__row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.feedcheck__input {
    flex: 1 1 20rem;
    font-size: 1rem;
    padding: 0.9rem 1.1rem;
    border-radius: 8px;
    border: 1px solid var(--fv-hairline);
    background: var(--fv-bg);
    color: var(--fv-text);
}

.feedcheck__submit {
    background: var(--fv-primary);
    border-color: var(--fv-primary);
    padding: 0.9rem 1.35rem;
    font-weight: 600;
}

/* The result box only draws its frame once it holds something — an empty
   bordered rectangle under the form reads as a failed request. */
.feedcheck__result {
    margin-top: 1.5rem;
    font-size: 0.9375rem;
    color: var(--fv-text-muted);
}

.feedcheck__result:not(:empty) {
    background: var(--fv-bg);
    border: 1px solid var(--fv-hairline);
    border-radius: 12px;
    padding: 1.5rem;
}

/* Only the verdict line takes the state colour — samples stay neutral so a green
   "found it" does not turn the story list into decoration. */
.feedcheck__status {
    font-weight: 600;
    margin: 0;
    color: var(--fv-text);
}

.feedcheck__result.is-ok .feedcheck__status {
    color: #15803d;
}

.feedcheck__result.is-error .feedcheck__status {
    color: #b91c1c;
}

.feedcheck__desc {
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    color: var(--fv-text-muted);
}

.feedcheck__samples {
    list-style: none;
    margin: 1rem 0 0;
    padding: 1rem 0 0;
    border-top: 1px solid var(--fv-hairline);
}

.feedcheck__sample {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--fv-hairline);
}

.feedcheck__sample:last-child {
    border-bottom: 0;
}

.feedcheck__sample-title {
    flex: 1;
    min-width: 0;
    color: var(--fv-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feedcheck__sample-age {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: var(--fv-text-muted);
    white-space: nowrap;
}

/* ------ Top feeds ------------------------------------------ */

.top-feeds {
    padding: clamp(4rem, 9vw, 6rem) 0;
}

/* Same hairline-grid construction as the feature bento. */
.top-feeds__grid {
    list-style: none;
    margin: 3rem 0 0;
    padding: 0;
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(2, 1fr);
    background: var(--fv-hairline);
    border: 1px solid var(--fv-hairline);
    border-radius: 12px;
    overflow: hidden;
}

@media (min-width: 660px) {
    .top-feeds__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1000px) {
    .top-feeds__grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.top-feed-card {
    background: var(--fv-bg);
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 1.35rem;
    transition: background 0.16s ease;
}

.top-feed-card:hover {
    background: var(--fv-surface);
}

.top-feed-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    min-height: 32px;
}

.top-feed-card__icon {
    flex-shrink: 0;
    border-radius: 7px;
    object-fit: cover;
}

.top-feed-card__rank {
    font-size: 0.6875rem;
    color: var(--fv-text-muted);
    margin-left: auto;
}

.top-feed-card__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--fv-text);
    margin: 0 0 0.35rem;
    letter-spacing: -0.01em;
}

.top-feed-card__text {
    font-size: 0.8125rem;
    color: var(--fv-text-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.top-feeds__empty {
    color: var(--fv-text-muted);
    margin-top: var(--fv-space-8);
}
