/* ReRun — midnight broadcast design system
   Token names are kept from the previous theme so inline styles and
   JS-generated markup recolor automatically:
   --teal  = phosphor cyan (primary)   --orange = signal amber (accent)
   --red   = alert red                 --cream  = broadcast off-white (text)
*/
:root {
    --cream: #F4EFDE;
    --orange: #F5A94B;
    --red: #E4576A;
    --teal: #4DE3C8;
    --dark-brown: #08212B;
    --bg-dark: #0A0E14;
    --bg-light: #131A26;
    --panel: #0E1420;
    --line: rgba(244, 239, 222, 0.09);
    --text-dim: rgba(244, 239, 222, 0.62);
    --text-faint: rgba(244, 239, 222, 0.42);
    --glass-bg: rgba(255, 255, 255, 0.028);
    --glass-border: rgba(244, 239, 222, 0.09);
    --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    --glow-teal: 0 0 24px rgba(77, 227, 200, 0.28);
    --glow-amber: 0 0 20px rgba(245, 169, 75, 0.25);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 16px; top: -100px; z-index: 1000;
    padding: 12px 18px; border-radius: 10px; background: var(--teal); color: var(--bg-dark);
    font-weight: 700; text-decoration: none; box-shadow: 0 4px 16px rgba(0,0,0,0.45);
}
.skip-link:focus { top: 16px; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible {
    outline: 2px solid var(--teal); outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .scanlines { animation: none; opacity: 0.1; }
    .badge { animation: none; }
    .guide-row.now-playing { animation: none; }
}

body {
    background:
        radial-gradient(ellipse 80% 55% at 70% -10%, rgba(77, 227, 200, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse 60% 45% at 15% 110%, rgba(245, 169, 75, 0.05) 0%, transparent 55%),
        var(--bg-dark);
    color: var(--cream); font-family: 'Inter', sans-serif; min-height: 100vh;
    display: flex; flex-direction: column; overflow-x: clip;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility; font-feature-settings: 'kern' 1, 'liga' 1;
}
.scanlines {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.32) 50%);
    background-size: 100% 4px; pointer-events: none; z-index: 0; opacity: 0.1;
}
body > :not(.scanlines):not(.skip-link):not(.site-nav) { position: relative; z-index: 1; }
@keyframes float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -12px, 0); }
}
@keyframes pulse-border {
    0%, 100% { border-color: rgba(77, 227, 200, 0.35); }
    50% { border-color: rgba(77, 227, 200, 0.65); }
}

/* ---------- Navigation ---------- */
.site-nav {
    position: sticky; top: 0; z-index: 200;
    background: rgba(10, 14, 20, 0.82); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
}
.site-nav::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(77,227,200,0.45) 50%, transparent 100%);
    pointer-events: none;
}
.nav-inner {
    max-width: 1300px; margin: 0 auto; padding: 14px 60px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    position: relative;
}
.nav-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; flex-shrink: 0; }
.nav-logo, .footer-logo {
    height: 26px; width: auto; display: block;
    shape-rendering: geometricPrecision;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
.footer-logo { height: 18px; }
.brand-lockup {
    display: inline-flex; align-items: center;
}
.brand-lockup-row {
    display: inline-flex; align-items: center; gap: 10px;
}
.brand-chevrons {
    gap: 1px;
    flex-shrink: 0;
}
.brand-chevrons .rerun-chevron {
    width: 15px; height: 22px;
    filter: none; /* flat mark — no glow */
}
.footer-brand .brand-chevrons .rerun-chevron {
    width: 11px; height: 16px;
}
.brand-wordmark {
    display: block;
    height: 22px;
    width: auto;
    shape-rendering: geometricPrecision;
}
.brand-lockup--footer .brand-wordmark {
    height: 15px;
}
/* Fallback text wordmarks (pre-JS / no SVG) */
.nav-wordmark, .footer-wordmark, .about-brand-wordmark {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--cream);
    line-height: 1;
    text-transform: uppercase;
}
.nav-wordmark { font-size: 1.35rem; }
.nav-wordmark span,
.footer-wordmark span,
.about-brand-wordmark span { color: var(--teal); }
.nav-left { display: flex; align-items: center; gap: 28px; min-width: 0; flex: 1; }
.nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-toggle {
    display: none; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line);
    background: rgba(255,255,255,0.02); color: var(--cream); cursor: pointer; flex-shrink: 0;
}
.nav-toggle-bars { display: flex; flex-direction: column; gap: 5px; }
.nav-toggle-bars span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
.nav-links { display: flex; gap: 2px; flex-wrap: nowrap; align-items: center; min-width: 0; }
.nav-link {
    color: var(--text-dim); text-decoration: none; font-size: 0.78rem; font-weight: 600;
    padding: 8px 10px; border-radius: 9px; transition: all 0.2s; letter-spacing: 0.2px;
    white-space: nowrap; flex-shrink: 0;
}
.nav-link:hover { color: var(--cream); background: rgba(244,239,222,0.06); }
.nav-link.active { color: var(--teal); background: rgba(77,227,200,0.08); }
.nav-dropdown { position: relative; flex-shrink: 0; }
.nav-dropdown-btn {
    cursor: pointer; border: none; background: transparent;
    display: inline-flex; align-items: center; gap: 4px;
}
.nav-dropdown-btn.active { color: var(--teal); background: rgba(77,227,200,0.08); }
.nav-chevron { font-size: 0.6rem; opacity: 0.55; transition: transform 0.15s; }
.nav-dropdown.open .nav-chevron { transform: rotate(180deg); }
.nav-dropdown-menu {
    position: absolute; top: calc(100% + 6px); left: 0; min-width: 210px;
    padding: 6px; border-radius: 12px;
    background: rgba(10, 14, 20, 0.98); border: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(0,0,0,0.45);
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
    z-index: 250;
}
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown-item {
    display: block; padding: 10px 12px; border-radius: 8px;
    color: var(--text-dim); text-decoration: none; font-size: 0.82rem; font-weight: 600;
    white-space: nowrap;
}
.nav-dropdown-item:hover { color: var(--cream); background: rgba(244,239,222,0.06); }
.nav-dropdown-item.active { color: var(--teal); background: rgba(77,227,200,0.08); }
.nav-cta {
    padding: 10px 20px; font-size: 0.85rem; border-radius: 999px; text-decoration: none;
    white-space: nowrap; font-weight: 700; color: var(--bg-dark);
    background: linear-gradient(90deg, var(--teal), #38C9E8);
    box-shadow: var(--glow-teal);
}
.nav-cta:hover { filter: brightness(1.1); }
.nav-drawer-cta { display: none; }

/* ---------- Layout ---------- */
.section-wrap { max-width: 1300px; margin: 0 auto; padding: 0 60px; width: 100%; z-index: 10; }
.section-block { padding: 88px 0; border-top: 1px solid var(--line); content-visibility: auto; contain-intrinsic-size: auto 500px; }
.section-block:first-of-type { border-top: none; }
.page-hero { padding: 48px 0 24px; }
.page-hero h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2rem,4vw,2.8rem); margin-bottom: 12px; }

/* ---------- Typography ---------- */
.overline {
    font-size: 0.72rem; font-weight: 700; color: var(--teal); text-transform: uppercase;
    letter-spacing: 3.5px; margin-bottom: 22px; display: flex; align-items: center; gap: 12px;
}
/* Channel badge — sections are numbered like channels on a dial */
.ch-badge {
    font-family: 'JetBrains Mono', monospace; font-size: 0.66rem; font-weight: 700;
    letter-spacing: 1.2px; color: var(--orange); flex-shrink: 0;
    padding: 3px 8px; border-radius: 6px;
    background: rgba(245, 169, 75, 0.08); border: 1px solid rgba(245, 169, 75, 0.3);
}
h1 {
    font-family: 'Space Grotesk', sans-serif; font-size: clamp(3rem, 6.6vw, 5.4rem); font-weight: 700;
    line-height: 1.02; letter-spacing: -0.03em; margin-bottom: 24px;
    text-wrap: balance;
}
/* Hero headline: a fixed two-line lockup — "Television, the way" / "you
   remember it." The size is capped so line one never overflows its column
   and re-wraps into a ragged 3–4 line mess at mid widths. */
.hero-h1 {
    font-size: clamp(1.9rem, 7.6vw, 4.1rem);
    line-height: 1.08;
}
.hero-h1 .hero-headline, .hero-h1 .gradient-text { display: inline; white-space: nowrap; }
h2.section-title {
    font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700;
    letter-spacing: -0.02em; margin-bottom: 12px;
    text-wrap: balance;
}
.hero-headline {
    display: inline-block; color: var(--cream);
    background: linear-gradient(180deg, #FFFFFF 0%, #F4EFDE 55%, #C9C2AB 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.gradient-text {
    background: linear-gradient(90deg, #4DE3C8 0%, #38C9E8 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    display: inline-block;
}
p.desc { font-size: 1.12rem; font-weight: 400; line-height: 1.65; color: var(--text-dim); margin-bottom: 26px; max-width: 540px; text-wrap: pretty; }
.hero-tagline { font-size: 0.88rem; font-weight: 600; color: var(--text-faint); letter-spacing: 0.4px; margin-bottom: 28px; }
.hero-tagline span { color: var(--teal); }
.section-lede { font-size: 1.05rem; color: var(--text-dim); max-width: 680px; line-height: 1.65; margin-bottom: 22px; text-wrap: pretty; }
.page-hero-note { color: var(--text-dim); font-size: 0.95rem; line-height: 1.6; text-wrap: pretty; }
.subsection-title { font-size: 1.05rem; font-weight: 600; color: var(--cream); margin-bottom: 4px; }
.subsection-note { font-size: 0.88rem; color: var(--text-faint); max-width: 700px; line-height: 1.55; text-wrap: pretty; }

/* ---------- Hero ---------- */
.hero-main {
    min-height: calc(100vh - 80px); display: flex; align-items: center; justify-content: space-between;
    max-width: 1300px; margin: 0 auto; padding: 48px 60px; width: 100%; gap: 56px; z-index: 10;
}
.content { flex: 1; max-width: 700px; z-index: 10; }
.stat-row { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.stat-pill {
    background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: 10px;
    padding: 9px 10px; font-size: 0.8rem; color: var(--text-dim); white-space: nowrap;
}
.stat-pill strong { color: var(--teal); font-family: 'JetBrains Mono', monospace; }
.buttons { display: flex; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.hero-cta-secondary { margin-top: 14px; font-size: 0.88rem; color: var(--text-faint); }
.hero-cta-secondary a { color: var(--teal); font-weight: 600; text-decoration: none; }
.hero-cta-secondary a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hero-guide-note { font-size: 0.88rem; color: var(--text-faint); margin-top: 8px; max-width: 520px; }

/* Hero rewind form */
.hero-rewind {
    display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px;
    padding: 10px; border-radius: 16px; margin-bottom: 18px; max-width: 540px;
    background: rgba(255,255,255,0.025); border: 1px solid var(--line);
}
.hero-rewind input[type="date"] {
    flex: 1; min-width: 180px; background: rgba(0,0,0,0.35); color: var(--cream);
    border: 1px solid var(--line); border-radius: 11px; padding: 13px 15px;
    font-family: 'JetBrains Mono', monospace; font-size: 0.95rem; color-scheme: dark;
}
.hero-rewind input[type="date"]:focus-visible { border-color: var(--teal); outline: none; }
.hero-rewind .btn { padding: 13px 22px; flex-shrink: 0; }
/* Beats .btn-install's flex:1.5/min-width:200px so Rewind stays compact */
.hero-rewind .hero-rewind-btn { flex: 0 1 auto; min-width: 150px; }
.hero-rewind-label {
    width: 100%; font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--orange); padding: 4px 6px 0;
}

/* ---------- Closing CTA section ---------- */
.section-cta { text-align: center; }
.section-cta .overline { justify-content: center; }
.section-cta .section-lede { margin-left: auto; margin-right: auto; }
.section-cta .cta-buttons { justify-content: center; margin-top: 30px; }
.section-cta .btn-support-project {
    flex: 0 1 auto;
    min-width: 210px;
    color: #1A1208;
    background: linear-gradient(105deg, #F8C85C, var(--orange) 58%, #F27D62);
    border: 1px solid rgba(255, 231, 170, 0.7);
    box-shadow: 0 0 24px rgba(245, 169, 75, 0.22);
    font-weight: 750;
}
.btn-support-project svg { fill: currentColor; flex: 0 0 auto; }
.section-cta .btn-support-project:hover {
    color: #120D07;
    transform: translateY(-2px);
    box-shadow: 0 0 34px rgba(245, 169, 75, 0.36);
}

/* ---------- Works-with band + guide ticker ---------- */
.works-band { border-top: 1px solid var(--line); padding: 26px 0; }
.works-band-inner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 18px 48px;
}
.works-group { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 26px; }
.works-label {
    font-family: 'JetBrains Mono', monospace; font-size: 0.64rem; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase; color: var(--text-faint);
    padding-right: 4px;
}
.works-mark {
    font-family: 'Space Grotesk', sans-serif; font-size: 1.02rem; font-weight: 700;
    letter-spacing: 0.4px; color: rgba(244, 239, 222, 0.4); white-space: nowrap;
    transition: color 0.25s, text-shadow 0.25s; cursor: default;
    display: inline-flex; align-items: center; gap: 8px;
}
.works-mark:hover { color: var(--teal); text-shadow: 0 0 18px rgba(77, 227, 200, 0.45); }
.works-icon {
    width: 20px; height: 20px; border-radius: 5px; object-fit: contain;
    filter: grayscale(1) brightness(1.15); opacity: 0.55; transition: filter 0.25s, opacity 0.25s;
}
.works-mark:hover .works-icon { filter: none; opacity: 1; }

.guide-ticker {
    overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.38); padding: 11px 0; position: relative;
}
.guide-ticker::before, .guide-ticker::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.guide-ticker::before { left: 0; background: linear-gradient(90deg, var(--bg-dark), transparent); }
.guide-ticker::after { right: 0; background: linear-gradient(270deg, var(--bg-dark), transparent); }
.guide-ticker-track { display: inline-flex; white-space: nowrap; animation: gt-scroll 42s linear infinite; will-change: transform; }
.gt-seq { display: inline-flex; }
@keyframes gt-scroll { to { transform: translateX(-50%); } }
.gt-item { font-family: 'JetBrains Mono', monospace; font-size: 0.76rem; color: var(--text-dim); padding: 0 24px; }
.gt-item b { color: var(--orange); font-weight: 600; margin-right: 8px; }
.gt-item i { font-style: normal; color: rgba(77, 227, 200, 0.65); margin-left: 9px; font-size: 0.68rem; letter-spacing: 0.5px; }
/* Decorative crawl (aria-hidden): reduced-motion slows it rather than freezing */
@media (prefers-reduced-motion: reduce) {
    .guide-ticker-track { animation-duration: 90s; }
}

/* ---------- Buttons ---------- */
.btn {
    padding: 15px 26px; border-radius: 13px; font-family: 'Inter', sans-serif; font-size: 0.98rem;
    font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center;
    gap: 10px; text-decoration: none; transition: all 0.2s ease; border: none;
}
.btn-install {
    background: linear-gradient(90deg, var(--teal), #38C9E8); color: var(--bg-dark);
    flex: 1.5; min-width: 200px; box-shadow: var(--glow-teal); font-weight: 700;
}
.btn-install:hover { transform: translateY(-2px); box-shadow: 0 0 34px rgba(77,227,200,0.4); }
.glass-element {
    background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
}
.btn-copy { color: var(--cream); flex: 1; min-width: 160px; }
.btn-copy:hover { background: rgba(244,239,222,0.07); }
.btn-teal { background: rgba(77,227,200,0.14); color: var(--teal); border: 1px solid rgba(77,227,200,0.4); }
.btn-teal:hover { background: var(--teal); color: var(--bg-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--cream); border: 1px solid rgba(244,239,222,0.18); }
.btn-ghost:hover { background: rgba(244,239,222,0.05); border-color: rgba(244,239,222,0.35); }
.btn-find { padding: 6px 12px; font-size: 0.75rem; border-radius: 8px; white-space: nowrap; }

/* ---------- Forms ---------- */
.input-group { display: flex; border-radius: 13px; padding: 6px; margin-bottom: 15px; max-width: 500px; width: 100%; }
.field-block { max-width: 500px; width: 100%; margin-bottom: 15px; }
.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; padding: 0 4px; }
.field-label-row label { font-size: 0.82rem; font-weight: 600; color: var(--text-dim); }
.optional-badge {
    background: rgba(245, 169, 75, 0.12); color: var(--orange); font-size: 0.68rem; font-weight: 700;
    padding: 4px 10px; border-radius: 999px; letter-spacing: 0.6px; text-transform: uppercase;
    border: 1px solid rgba(245, 169, 75, 0.28); flex-shrink: 0;
}
.input-group--solo input { flex: 1; width: 100%; min-width: 0; }
input, select { background: transparent; border: none; color: var(--cream); padding: 12px 15px; font-family: 'Inter', sans-serif; font-size: 1rem; outline: none; }
input::placeholder { color: rgba(244, 239, 222, 0.35); }
select { cursor: pointer; }
select option { background: var(--panel); color: var(--cream); }
.url-display {
    padding: 16px 20px; border-radius: 12px; font-family: 'JetBrains Mono', monospace; font-size: 0.85rem;
    color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 500px; width: 100%;
}
.helper-text { font-size: 0.82rem; color: var(--text-faint); margin: 6px 0 14px; max-width: 520px; line-height: 1.55; }
.helper-text .helper-link, a.helper-link { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.helper-text .helper-link:hover, a.helper-link:hover { color: #7cf0dc; }

.install-advanced {
    margin-top: 16px; max-width: 500px;
    border: 1px solid var(--line); border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
}
.install-advanced summary {
    cursor: pointer; list-style: none; padding: 12px 16px;
    font-size: 0.82rem; font-weight: 700; color: var(--text-dim);
    letter-spacing: 0.3px;
}
.install-advanced summary::-webkit-details-marker { display: none; }
.install-advanced summary::before {
    content: '▸'; display: inline-block; margin-right: 8px;
    color: var(--orange); transition: transform 0.15s;
}
.install-advanced[open] summary::before { transform: rotate(90deg); }
.install-advanced-body { padding: 0 16px 16px; }
.install-player-note {
    width: 100%; margin: 4px 0 0; font-size: 0.78rem;
    color: var(--text-faint); line-height: 1.45;
}

/* ---------- Hero visuals ---------- */
.visuals { position: relative; width: 550px; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; isolation: isolate; }
.orbit { position: absolute; border: 1px solid rgba(244, 239, 222, 0.04); border-radius: 50%; }
.orbit-1 { width: 350px; height: 350px; }
.orbit-2 { width: 500px; height: 500px; }
.main-card {
    position: relative; z-index: 10; width: 340px; height: 340px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; background: transparent; border: none; box-shadow: none;
}
.main-card .tv-logo { display: block; pointer-events: none; transition: transform 0.35s ease; transform-origin: center; }
.main-card.is-hover .tv-logo { transform: scale(1.02); }
.tv-logo { border-radius: 8px; }
.badge {
    position: absolute; padding: 10px 20px; border-radius: 30px; font-size: 0.9rem; font-weight: 600;
    display: flex; align-items: center; gap: 8px; z-index: 20;
    background: rgba(14, 20, 32, 0.85); border: 1px solid var(--line);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    animation: float 8s ease-in-out infinite; backface-visibility: hidden;
}
.badge-movies { top: 70px; right: 20px; color: var(--red); animation-delay: -1s; }
.badge-cartoons { bottom: 120px; left: -10px; color: var(--orange); animation-delay: -2.5s; }
.badge-classics { bottom: 50px; right: 60px; color: var(--cream); animation-delay: -4s; }

/* ---------- Steps / features ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.step-card { padding: 28px; border-radius: 18px; }
.step-icon { font-size: 1.8rem; margin-bottom: 14px; }
.step-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; color: var(--cream); }
.step-card p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.55; }
.step-badge {
    display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--orange); margin-bottom: 10px;
}

.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 32px; }
.feature-card { padding: 26px; border-radius: 18px; display: flex; flex-direction: column; gap: 10px; transition: border-color 0.2s, transform 0.2s; }
.feature-card:hover { border-color: rgba(77,227,200,0.35); transform: translateY(-2px); }
.feature-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.08rem; font-weight: 700; color: var(--cream); }
.feature-card p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.55; }
.feature-grid-primary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-card-primary { min-height: 200px; border-color: rgba(77,227,200,0.26); }
.feature-card-primary h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
.feature-link { color: inherit; text-decoration: none; }
.feature-link:hover { color: var(--teal); }
.supporting-tools { margin-top: 34px; padding-top: 28px; border-top: 1px solid rgba(244,239,222,0.1); }
.supporting-tools-heading {
    margin-bottom: 16px; color: var(--text-dim); font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.feature-grid-support { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-grid-support .feature-card { min-height: 190px; }
@media (max-width: 900px) {
    .feature-grid-primary, .feature-grid-support { grid-template-columns: 1fr; }
    .feature-card-primary, .feature-grid-support .feature-card { min-height: auto; }
}
.feature-tag {
    align-self: flex-start; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
    padding: 4px 9px; border-radius: 6px; background: rgba(77,227,200,0.12); color: var(--teal);
}
.feature-tag.amber { background: rgba(245,169,75,0.12); color: var(--orange); }

/* ---------- Showcase ---------- */
.showcase-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 28px; }
.showcase-card {
    padding: 16px 18px; border-radius: 14px; cursor: pointer; transition: all 0.2s;
    border: 1px solid var(--line); text-align: left; width: 100%; color: inherit; font: inherit;
}
.showcase-card:hover { border-color: rgba(77,227,200,0.4); transform: translateY(-2px); }
.showcase-card .title { font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }
.showcase-card .note { font-size: 0.75rem; color: var(--text-faint); }
.showcase-badge { display: inline-block; font-size: 0.65rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; margin-top: 8px; letter-spacing: 0.5px; }
.badge-vault { background: rgba(77,227,200,0.15); color: var(--teal); }
.badge-debrid { background: rgba(245,169,75,0.13); color: var(--orange); }

/* ---------- ReRun Guide ---------- */
.guide-panel { padding: 32px; border-radius: 22px; margin-top: 28px; }
.guide-header-bar {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
    padding: 16px 20px; border-radius: 14px; background: rgba(0,0,0,0.4);
    border: 1px solid var(--line); margin-bottom: 20px;
    font-family: 'JetBrains Mono', monospace; font-size: 0.82rem;
}
.guide-channel-name { color: var(--teal); font-weight: 600; font-size: 1rem; }
.guide-controls { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; align-items: center; }
.control-group { display: flex; flex-direction: column; gap: 6px; }
.control-group label, .control-group .control-group-label { font-size: 0.7rem; font-weight: 600; color: var(--orange); letter-spacing: 1px; text-transform: uppercase; }
.control-select {
    background: rgba(0,0,0,0.3); border: 1px solid var(--line);
    border-radius: 10px; padding: 10px 14px; min-width: 140px;
}
.mode-toggle { display: flex; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.mode-btn {
    padding: 10px 16px; font-size: 0.82rem; font-weight: 600; cursor: pointer;
    background: transparent; color: var(--text-faint); border: none; transition: all 0.2s;
}
.mode-btn.active { background: var(--teal); color: var(--bg-dark); }
.time-controls { display: flex; align-items: center; gap: 8px; }
.time-btn {
    width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line);
    background: rgba(255,255,255,0.02); color: var(--cream); font-size: 1.2rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.time-btn:hover { background: rgba(77,227,200,0.15); border-color: var(--teal); }
.time-display { font-family: 'JetBrains Mono', monospace; font-size: 1.1rem; min-width: 90px; text-align: center; color: var(--orange); }

.guide-grid { display: flex; flex-direction: column; gap: 4px; }
.guide-row {
    display: grid; grid-template-columns: 48px 68px 1fr auto; gap: 12px 14px; align-items: center;
    padding: 12px 16px; border-radius: 10px; transition: background 0.2s; border: 1px solid transparent;
}
.guide-row:hover { background: rgba(244,239,222,0.03); }
.guide-row.now-playing {
    background: rgba(77,227,200,0.09); border-color: rgba(77,227,200,0.35);
    animation: pulse-border 3s ease-in-out infinite;
}
.guide-time { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: var(--text-faint); }
.guide-row.now-playing .guide-time { color: var(--teal); font-weight: 600; }
.guide-show { font-weight: 600; font-size: 0.95rem; }
.guide-subtitle { font-size: 0.78rem; color: var(--text-faint); margin-top: 2px; }
.guide-now-label { font-size: 0.65rem; font-weight: 700; color: var(--teal); letter-spacing: 1px; text-transform: uppercase; }
.guide-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.guide-share-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px;
    padding: 14px 16px; border-radius: 12px; background: rgba(0,0,0,0.3); border: 1px solid var(--line);
}
.guide-share-preview { font-size: 0.82rem; color: var(--text-dim); flex: 1; min-width: 200px; }

/* Hero mini guide */
.guide-mini {
    width: 100%; max-width: 420px; padding: 22px; border-radius: 18px;
    border: 1px solid rgba(77,227,200,0.18); background: rgba(8, 12, 18, 0.75);
    box-shadow: 0 24px 60px rgba(0,0,0,0.5), inset 0 0 60px rgba(77,227,200,0.03);
}
.guide-mini-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 8px; }
.guide-mini-badge {
    font-size: 0.65rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    color: var(--teal); background: rgba(77,227,200,0.12); padding: 4px 10px; border-radius: 999px;
}
.guide-mini-clock { font-family: 'JetBrains Mono', monospace; color: var(--orange); font-size: 0.95rem; }
.guide-mini-channel { font-size: 0.78rem; font-weight: 600; color: var(--text-faint); margin-bottom: 14px; }
.guide-mini-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--orange); margin-bottom: 6px; }
.guide-mini-show { font-family: 'Space Grotesk', sans-serif; font-size: 1.35rem; font-weight: 700; line-height: 1.15; color: var(--cream); margin-bottom: 4px; }
.guide-mini-sub { font-size: 0.82rem; color: var(--text-faint); margin-bottom: 14px; }
.guide-mini-channels { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.guide-mini-chip {
    border: 1px solid var(--line); background: rgba(255,255,255,0.02); color: var(--text-dim);
    border-radius: 8px; padding: 6px 10px; font-size: 0.72rem; font-weight: 700; cursor: pointer;
}
.guide-mini-chip.active, .guide-mini-chip:hover { border-color: var(--teal); color: var(--cream); background: rgba(77,227,200,0.12); }
.guide-mini-upnext { font-size: 0.78rem; color: var(--text-faint); margin-bottom: 16px; }
.guide-mini-up-label { display: block; font-size: 0.62rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(244,239,222,0.3); margin-bottom: 6px; }
.guide-mini-up-item { margin-bottom: 4px; }
.guide-mini-up-item span { font-family: 'JetBrains Mono', monospace; color: var(--teal); margin-right: 6px; }
.guide-mini-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.guide-mini-actions .btn { flex: 1; min-width: 140px; justify-content: center; text-align: center; text-decoration: none; }
.guide-mini-caption { text-align: center; font-size: 0.72rem; color: rgba(244,239,222,0.35); margin-top: 12px; }
.guide-spotlight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.guide-spotlight-card { padding: 24px; border-radius: 16px; }
.guide-spotlight-card h3 { font-size: 1rem; margin-bottom: 8px; color: var(--cream); }
.guide-spotlight-card p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.5; }
@media (max-width: 768px) { .guide-spotlight-grid { grid-template-columns: 1fr; } }

/* ---------- Vault ---------- */
.vault-mode-toggle {
    display: inline-flex; gap: 4px; margin-top: 22px; padding: 4px;
    background: rgba(0,0,0,0.3); border: 1px solid var(--line); border-radius: 12px;
}
.vault-mode-btn {
    border: 0; background: transparent; color: rgba(244,239,222,0.55);
    font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer;
    padding: 9px 16px; border-radius: 9px; transition: background 0.15s, color 0.15s;
    display: inline-flex; align-items: center; gap: 7px;
}
.vault-mode-btn:hover { color: rgba(244,239,222,0.85); }
.vault-mode-btn.active { background: rgba(77,227,200,0.13); color: #8ceede; }
.vault-mode-badge {
    font-size: 0.58rem; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
    background: linear-gradient(90deg, var(--teal), #38c9e8); color: #04211c;
    padding: 2px 7px; border-radius: 999px;
}
.vault-mode-hint {
    margin: 12px 0 0; max-width: 640px; font-size: 0.85rem;
    color: rgba(244,239,222,0.55); line-height: 1.55;
}
.vault-result-snippet { font-style: italic; max-width: 62ch; line-height: 1.5; }
.vault-search-box { display: flex; gap: 10px; margin-top: 24px; max-width: 600px; }
.vault-search-box input {
    flex: 1; background: rgba(0,0,0,0.3); border: 1px solid var(--line);
    border-radius: 12px; padding: 14px 18px;
}
.vault-results { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.vault-result {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 14px 18px; border-radius: 12px; flex-wrap: wrap;
}
.vault-result-title { font-weight: 600; font-size: 0.92rem; }
.vault-result-meta { font-size: 0.75rem; color: rgba(244,239,222,0.35); margin-top: 3px; }
.vault-result-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vault-source-badge {
    font-size: 0.62rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
    padding: 3px 7px; border-radius: 6px; white-space: nowrap;
}
.vault-source-badge.aapb { background: rgba(92, 145, 255, 0.16); color: #9bbcff; }
.vault-source-badge.archive { background: rgba(77,227,200,0.15); color: var(--teal); }
.vault-source-badge.collection { background: rgba(245,169,75,0.15); color: var(--orange); }
.vault-source-badge.creator { background: rgba(228,87,106,0.14); color: #f087a0; }
.vault-source-badge.title { background: rgba(77,227,200,0.1); color: #8ceede; }
.vault-source-badge.era { background: rgba(245,169,75,0.18); color: var(--orange); }
.vault-era-banner {
    margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; max-width: 640px;
    background: rgba(245,169,75,0.08); border: 1px solid rgba(245,169,75,0.25);
    color: var(--text-dim); font-size: 0.88rem;
}
.vault-empty { text-align: center; padding: 30px; color: rgba(244,239,222,0.3); font-size: 0.9rem; }

/* ---------- My Channel ---------- */
.my-channel-hero { padding-top: 28px; }
.my-channel-title { max-width: 14ch; }
.my-channel-tuner { margin-top: 28px; padding: 22px; border-radius: 18px; }
.my-channel-tuner-top {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    margin-bottom: 22px; flex-wrap: wrap;
}
.my-channel-callsign { display: flex; align-items: center; gap: 10px; }
.my-channel-dot {
    width: 10px; height: 10px; border-radius: 50%; background: var(--teal);
    box-shadow: 0 0 12px rgba(77,227,200,0.8); animation: mc-pulse 2.4s ease-in-out infinite;
}
@keyframes mc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.my-channel-station {
    font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; font-weight: 700;
    letter-spacing: 1.2px; color: var(--teal);
}
.my-channel-clock {
    font-family: 'JetBrains Mono', monospace; font-size: 1.1rem; color: rgba(244,239,222,0.75);
}
.my-channel-onnow-label, .my-channel-upnext-label {
    font-size: 0.62rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    color: rgba(244,239,222,0.45); margin-bottom: 12px;
}
.my-channel-onnow-grid {
    display: grid; grid-template-columns: minmax(120px, 180px) 1fr; gap: 22px; align-items: center;
}
.my-channel-poster-wrap {
    position: relative; width: 100%; aspect-ratio: 2/3; border-radius: 14px; overflow: hidden;
    border: 1px solid rgba(77,227,200,0.2); background:
        radial-gradient(ellipse 70% 55% at 50% 40%, rgba(77,227,200,0.1) 0%, transparent 65%),
        rgba(0,0,0,0.45);
}
.my-channel-poster {
    width: 100%; height: 100%; object-fit: cover; display: block;
    opacity: 1; transition: opacity 0.35s ease;
}
.my-channel-poster-wrap.is-loading .my-channel-poster { opacity: 0; }
.rerun-poster-loader {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 14px; z-index: 1;
    pointer-events: none; opacity: 0; transition: opacity 0.25s ease;
}
.my-channel-poster-wrap.is-loading .rerun-poster-loader { opacity: 1; }
.rerun-chevrons {
    display: inline-flex; align-items: center; gap: 4px;
}
.rerun-chevron-motion {
    display: inline-flex;
    animation: rerun-rewind 1.15s ease-in-out infinite;
    will-change: transform, opacity;
}
.rerun-chevron-motion:nth-child(2) {
    animation-delay: 0.18s;
}
.rerun-chevron {
    width: 36px; height: 54px;
    fill: #4DE3C8;
    display: block;
    filter: drop-shadow(0 0 14px rgba(77,227,200,0.55));
}
@keyframes rerun-rewind {
    0%, 100% { transform: translateX(4px); opacity: 0.55; }
    40% { transform: translateX(-10px); opacity: 1; }
    70% { transform: translateX(-4px); opacity: 0.85; }
}
.rerun-loader-bar {
    width: 44px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
    background-size: 200% 100%;
    animation: rerun-bar-scan 1.4s linear infinite;
}
@keyframes rerun-bar-scan {
    0% { background-position: 100% 0; opacity: 0.45; }
    50% { opacity: 1; }
    100% { background-position: -100% 0; opacity: 0.45; }
}
.rerun-loader-word {
    font-family: 'Space Grotesk', sans-serif; font-size: 0.85rem; font-weight: 700;
    letter-spacing: 3.5px; color: var(--teal);
    animation: rerun-word-pulse 1.6s ease-in-out infinite;
}
@keyframes rerun-word-pulse {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 1; }
}
.my-channel-daypart { font-size: 0.82rem; color: var(--orange); font-weight: 600; margin-bottom: 6px; }
.my-channel-show {
    font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.15; margin: 0 0 8px;
}
.my-channel-meta { font-size: 0.85rem; color: rgba(244,239,222,0.45); margin: 0 0 16px; }
.my-channel-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.my-channel-programmer { font-size: 0.75rem; color: rgba(244,239,222,0.35); }
.my-channel-upnext { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.my-channel-upnext-track { display: flex; flex-wrap: wrap; gap: 10px; }
.my-channel-upnext-item {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px;
    border-radius: 999px; background: rgba(0,0,0,0.28); border: 1px solid var(--line);
    font-size: 0.8rem;
}
.my-channel-upnext-time {
    font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--teal);
}
.my-channel-player-note { margin-top: 22px; padding: 18px 20px; border-radius: 14px; }
.my-channel-grid-wrap { margin-top: 22px; padding: 20px; border-radius: 16px; }
.my-channel-grid-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    margin-bottom: 16px; flex-wrap: wrap;
}
.my-channel-grid-title {
    margin: 0; font-family: 'Space Grotesk', sans-serif; font-size: 1rem;
}
.my-channel-grid-date {
    font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: rgba(244,239,222,0.4);
}
.my-channel-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px;
    max-height: 420px; overflow-y: auto; padding-right: 4px;
}
.my-channel-slot {
    display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center;
    padding: 10px 12px; border-radius: 10px; background: rgba(0,0,0,0.22); border: 1px solid transparent;
}
.my-channel-slot.is-now {
    border-color: rgba(77,227,200,0.35); background: rgba(77,227,200,0.08);
}
.my-channel-slot-time {
    font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: rgba(244,239,222,0.55);
}
.my-channel-slot-title { font-weight: 600; font-size: 0.86rem; }
.my-channel-slot-meta { font-size: 0.72rem; color: rgba(244,239,222,0.35); margin-top: 2px; }
.my-channel-slot-live {
    font-size: 0.58rem; font-weight: 700; letter-spacing: 0.6px; color: var(--teal);
}
@media (max-width: 768px) {
    .my-channel-onnow-grid { grid-template-columns: 1fr; }
    .my-channel-poster-wrap { max-width: 160px; }
}
@media (prefers-reduced-motion: reduce) {
    .my-channel-dot { animation: none; }
    /* Poster loaders only — brand lockups keep a gentle rewind pulse */
    .rerun-poster-loader .rerun-chevron-motion,
    .guide-poster-fallback .rerun-chevron-motion,
    .rerun-poster-loader .rerun-loader-bar,
    .guide-poster-fallback .rerun-loader-bar,
    .rerun-poster-loader .rerun-loader-word,
    .guide-poster-fallback .rerun-loader-word {
        animation: none;
    }
    .rerun-poster-loader .rerun-chevron-motion,
    .guide-poster-fallback .rerun-chevron-motion { opacity: 0.85; }
    .rerun-poster-loader .rerun-loader-word,
    .guide-poster-fallback .rerun-loader-word { opacity: 0.75; }
}

/* ---------- FAQ ---------- */
.faq-list { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; max-width: 800px; }
.faq-item { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.faq-q {
    width: 100%; text-align: left; padding: 18px 22px; background: rgba(255,255,255,0.015);
    border: none; color: var(--cream); font-family: 'Inter', sans-serif; font-size: 0.95rem;
    font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.faq-q:hover { background: rgba(244,239,222,0.035); }
.faq-a { padding: 0 22px; max-height: 0; overflow: hidden; transition: all 0.3s ease; color: var(--text-dim); font-size: 0.92rem; line-height: 1.65; text-wrap: pretty; }
.faq-item.open .faq-a { padding: 0 22px 18px 22px; max-height: 480px; }
.faq-chevron { transition: transform 0.3s; color: var(--teal); }
.faq-item.open .faq-chevron { transform: rotate(180deg); }

/* ---------- Dashboard / settings ---------- */
.dashboard-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; margin-top: 30px; }
.dashboard-panel { padding: 30px; border-radius: 20px; display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.75rem; font-weight: 600; color: var(--orange); letter-spacing: 1px; }
.form-group input { background: rgba(0,0,0,0.3); border: 1px solid var(--line); border-radius: 12px; padding: 14px; color: var(--cream); font-size: 0.95rem; }
.form-group input:focus, .form-group input:focus-visible { border-color: var(--teal); }
.stream-settings-panel { padding: 32px; border-radius: 20px; margin-top: 28px; display: flex; flex-direction: column; gap: 28px; }
.settings-presets { display: flex; flex-wrap: wrap; gap: 10px; }
.settings-presets .preset-btn { font-size: 0.82rem; padding: 10px 16px; }
.settings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.settings-group {
    padding: 22px; border-radius: 16px; background: rgba(0, 0, 0, 0.22);
    border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; min-width: 0;
}
.settings-group-head { display: flex; flex-direction: column; gap: 6px; }
.settings-group-title { font-size: 0.78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--orange); }
.settings-group-desc { font-size: 0.82rem; color: var(--text-faint); line-height: 1.45; }
.option-tiles { display: flex; flex-direction: column; gap: 10px; }
.option-tile {
    display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px;
    border-radius: 12px; border: 1px solid var(--line);
    background: rgba(255,255,255,0.015); cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.option-tile:hover { border-color: rgba(77, 227, 200, 0.35); background: rgba(77, 227, 200, 0.05); }
.option-tile:has(input:checked) { border-color: rgba(77, 227, 200, 0.45); background: rgba(77, 227, 200, 0.08); }
.option-tile input { margin-top: 3px; flex-shrink: 0; accent-color: var(--teal); cursor: pointer; }
.option-tile-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.option-tile-label { font-size: 0.9rem; font-weight: 600; color: var(--cream); }
.option-tile-note { font-size: 0.75rem; color: var(--text-faint); line-height: 1.4; }
.settings-number {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.25);
}
.settings-number input {
    width: 72px; padding: 8px 10px; text-align: center; font-size: 1.1rem; font-weight: 600;
    border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.3);
}
.settings-number input:focus-visible { border-color: var(--teal); outline: none; }
.settings-number-help { font-size: 0.78rem; color: var(--text-faint); line-height: 1.45; flex: 1; }
.settings-footer {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
    padding-top: 8px; border-top: 1px solid var(--line);
}
.settings-footer-note { font-size: 0.82rem; color: var(--text-faint); max-width: 520px; line-height: 1.5; }
.settings-url-preview {
    flex: 1; min-width: 240px; max-width: 100%; padding: 14px 16px; border-radius: 12px;
    font-family: 'JetBrains Mono', monospace; font-size: 0.78rem;
    color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.row-card { display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,0.02); padding: 14px 20px; border-radius: 12px; border: 1px solid var(--line); }
.btn-delete { background: rgba(228, 87, 106, 0.12); color: var(--red); border: 1px solid rgba(228, 87, 106, 0.3); padding: 8px 14px; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 0.8rem; }
.btn-delete:hover { background: var(--red); color: #fff; }

.recommended-section { margin-top: 36px; }
.preset-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 28px; }
.preset-btn {
    padding: 12px 20px; border-radius: 12px; font-size: 0.88rem; font-weight: 600; cursor: pointer;
    background: rgba(77, 227, 200, 0.1); color: var(--teal); border: 1px solid rgba(77, 227, 200, 0.35);
    transition: all 0.2s;
}
.preset-btn:hover { background: var(--teal); color: var(--bg-dark); }
.preset-btn.primary { background: var(--orange); color: var(--bg-dark); border-color: var(--orange); }
.preset-btn.primary:hover { opacity: 0.9; transform: translateY(-1px); }
.recommended-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.rec-card {
    padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line);
    display: flex; flex-direction: column; gap: 10px; transition: all 0.2s;
}
.rec-card:hover { border-color: rgba(77,227,200,0.35); }
.rec-card.added { border-color: rgba(77,227,200,0.5); background: rgba(77,227,200,0.06); }
.rec-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.rec-name { font-weight: 600; font-size: 0.95rem; color: var(--cream); }
.rec-badge { font-size: 0.65rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: rgba(245,169,75,0.13); color: var(--orange); white-space: nowrap; }
.rec-desc { font-size: 0.82rem; color: var(--text-dim); line-height: 1.45; flex: 1; }
.rec-meta { font-size: 0.72rem; color: rgba(244,239,222,0.3); font-family: 'JetBrains Mono', monospace; }
.rec-highlights { font-size: 0.75rem; color: var(--text-faint); }
.rec-actions { display: flex; gap: 8px; margin-top: 4px; }
.rec-actions .btn { padding: 8px 14px; font-size: 0.78rem; border-radius: 10px; flex: 1; }
.rec-status { font-size: 0.72rem; color: var(--teal); font-weight: 600; text-align: center; padding-top: 4px; }

/* ---------- Footer ---------- */
.site-footer {
    position: relative; isolation: isolate; overflow: hidden;
    padding: 64px max(24px, calc((100vw - 1120px) / 2)) 34px;
    color: rgba(244, 239, 222, 0.52); border-top: 1px solid rgba(77, 227, 200, 0.14);
    background:
        radial-gradient(ellipse at 14% 110%, rgba(77, 227, 200, 0.12), transparent 43%),
        radial-gradient(ellipse at 85% 120%, rgba(245, 169, 75, 0.08), transparent 40%),
        linear-gradient(180deg, rgba(5, 10, 18, 0.98), #060912);
    font-family: 'Inter', sans-serif; text-align: left; letter-spacing: 0;
}
.site-footer::before {
    content: ''; position: absolute; z-index: -1; inset: 0;
    background-image: linear-gradient(rgba(77, 227, 200, 0.025) 1px, transparent 1px);
    background-size: 100% 4px; pointer-events: none;
}
.footer-backdrop {
    position: absolute; z-index: -1; left: 50%; bottom: -0.23em; transform: translateX(-50%);
    font: 800 clamp(7rem, 21vw, 18rem)/0.8 'Space Grotesk', sans-serif;
    letter-spacing: -0.08em; color: rgba(77, 227, 200, 0.025); white-space: nowrap;
    user-select: none; pointer-events: none;
}
.footer-main {
    display: grid; grid-template-columns: minmax(280px, 1.7fr) minmax(150px, 0.7fr) minmax(150px, 0.7fr);
    gap: clamp(42px, 7vw, 100px); max-width: 1120px; margin: 0 auto 54px;
}
.footer-intro { max-width: 400px; }
.footer-brand {
    display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
    vertical-align: middle; margin-right: 2px;
}
.footer-brand-large { gap: 10px; margin-bottom: 18px; }
.footer-brand-large .footer-logo { height: 26px; }
.footer-brand-large .brand-wordmark { height: 20px; width: auto; }
.footer-tagline { margin: 0; max-width: 390px; color: rgba(244, 239, 222, 0.5); font-size: 0.88rem; line-height: 1.7; }
.footer-heading {
    margin: 4px 0 18px; color: var(--cream); font: 700 0.68rem/1 'JetBrains Mono', monospace;
    letter-spacing: 0.14em; text-transform: uppercase;
}
.footer-nav-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.footer-nav-list a { font-size: 0.84rem; }
.footer-lower {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    max-width: 1120px; margin: 0 auto; padding-top: 24px;
    border-top: 1px solid rgba(244, 239, 222, 0.09);
}
.footer-copyright { margin: 0; color: rgba(244, 239, 222, 0.3); font-size: 0.72rem; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px 18px; }
.footer-legal a { font-size: 0.72rem; }
.footer-wordmark { font-size: 0.95rem; }
footer a { color: rgba(244,239,222,0.32); text-decoration: none; }
footer a:hover { color: var(--teal); }
footer a:focus-visible { color: var(--cream); }
.footer-support-link { color: var(--orange); }
.footer-disclaimer {
    max-width: 1120px; margin: 20px auto 0; font-size: 0.66rem; line-height: 1.6;
    color: rgba(244,239,222,0.2); letter-spacing: 0; font-family: 'Inter', sans-serif;
}
.footer-links { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; }
@media (max-width: 760px) {
    .site-footer { padding-top: 48px; }
    .footer-main { grid-template-columns: 1fr 1fr; gap: 38px 28px; margin-bottom: 40px; }
    .footer-intro { grid-column: 1 / -1; }
    .footer-lower { align-items: flex-start; flex-direction: column; }
    .footer-legal { justify-content: flex-start; }
    .footer-backdrop { font-size: 31vw; }
}
.legal-page { max-width: 760px; margin: 0 auto; }
.legal-page h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.legal-page h2 { margin: 32px 0 10px; font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem; }
.legal-page p, .legal-page li { color: var(--text-dim); line-height: 1.7; margin-bottom: 12px; }
.legal-page ul { padding-left: 22px; }
.error-page { min-height: 62vh; display: grid; place-content: center; text-align: center; }
.error-page .buttons { justify-content: center; }

/* ---------- About (two-column editorial + sticky brand orb) ---------- */
.about-section { padding-top: 56px; padding-bottom: 72px; }
.about-wrap {
    max-width: 1180px;
    margin: 0 auto;
}
.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: clamp(36px, 5vw, 72px);
    align-items: start;
}
.about-main { max-width: 40rem; min-width: 0; }
.about-header { margin-bottom: 8px; }
.about-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.2rem, 4.8vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 0 18px;
    text-wrap: balance;
}
.about-lede {
    font-size: 1.28rem;
    line-height: 1.5;
    color: var(--cream);
    font-weight: 500;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.015em;
    margin: 0 0 1.5em;
}
.about-prose { margin-top: 0; }
.about-prose p {
    font-size: 1.06rem; line-height: 1.78; color: var(--text-dim);
    margin: 0 0 1.3em;
}
.about-pullquote {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.22rem !important;
    line-height: 1.45 !important;
    color: var(--cream) !important;
    border-left: 3px solid var(--teal);
    padding: 4px 0 4px 20px;
    margin: 1.7em 0 !important;
    max-width: 48ch;
}

.about-brand { min-width: 0; }
.about-brand-sticky {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.about-brand-orb {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 42% 38%, rgba(77,227,200,0.18) 0%, transparent 55%),
        radial-gradient(circle at 70% 70%, rgba(245,169,75,0.12) 0%, transparent 50%),
        linear-gradient(160deg, rgba(20,28,32,0.95) 0%, rgba(8,10,12,0.98) 100%);
    border: 1px solid rgba(77,227,200,0.22);
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.4) inset,
        0 28px 60px rgba(0,0,0,0.45),
        0 0 48px rgba(77,227,200,0.08);
    overflow: visible;
}
.about-brand-orb::before {
    content: '';
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    border: 1px dashed rgba(244,239,222,0.08);
    pointer-events: none;
}
.about-brand-mark {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
}
.about-brand-chevrons {
    gap: 3px;
}
.about-brand-chevrons .rerun-chevron {
    width: 28px;
    height: 42px;
}
.about-brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
.about-brand-wordmark-img {
    display: block;
    height: clamp(36px, 5vw, 48px);
    width: auto;
}
.about-brand-wordmark {
    font-size: clamp(1.85rem, 3.2vw, 2.35rem);
    letter-spacing: -0.03em;
}
.about-brand-caption {
    margin: 0;
    text-align: center;
    font-size: 0.88rem;
    line-height: 1.45;
    color: rgba(244,239,222,0.45);
    font-family: 'Space Grotesk', sans-serif;
}

.about-pillars {
    list-style: none;
    margin: 36px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.about-pillars li {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 12px 18px;
    align-items: baseline;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(244,239,222,0.08);
}
.about-pillars li:last-child { border-bottom: none; padding-bottom: 0; }
.about-pillars strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    color: var(--cream);
    letter-spacing: -0.01em;
}
.about-pillars span {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-dim);
}

.about-timeline {
    list-style: none;
    margin: 40px 0;
    padding: 0 0 0 22px;
    border-left: 2px solid rgba(244,239,222,0.12);
    max-width: 42ch;
}
.about-timeline-step {
    position: relative;
    padding: 0 0 28px 18px;
}
.about-timeline-step:last-child { padding-bottom: 0; }
.about-timeline-step::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 0.45em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}
.about-timeline-step.is-current::before {
    background: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.2);
}
.about-timeline-name {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--teal);
    letter-spacing: 0.6px;
}
.about-timeline-step.is-current .about-timeline-name { color: var(--orange); }
.about-timeline-note {
    display: block;
    margin-top: 6px;
    font-size: 0.92rem;
    color: rgba(244,239,222,0.5);
    line-height: 1.5;
}

.about-closing {
    margin-top: 44px;
    padding: 28px 0 0;
    border-top: 1px solid var(--line);
    text-align: left;
}
.about-closing p {
    font-size: 1rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin: 0 0 14px;
}
.about-closing .btn { margin-top: 10px; }

@media (max-width: 900px) {
    .about-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .about-brand { order: -1; }
    .about-brand-sticky {
        position: static;
        align-items: flex-start;
        flex-direction: row;
        gap: 20px;
    }
    .about-brand-orb {
        width: 160px;
        max-width: 160px;
        flex-shrink: 0;
    }
    .about-brand-mark { gap: 8px; }
    .about-brand-chevrons .rerun-chevron { width: 16px; height: 24px; }
    .about-brand-wordmark { font-size: 1.05rem; }
    .about-brand-caption { text-align: left; }
}
@media (max-width: 600px) {
    .about-section { padding-top: 36px; }
    .about-brand-sticky {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .about-brand-orb { width: min(100%, 240px); max-width: 240px; }
    .about-brand-chevrons .rerun-chevron { width: 22px; height: 34px; }
    .about-brand-wordmark { font-size: 1.55rem; }
    .about-brand-caption { text-align: center; }
    .about-pillars li {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .about-timeline { padding-left: 18px; }
    .about-timeline-step { padding-left: 14px; padding-bottom: 22px; }
    .about-timeline-step::before { left: -23px; }
}

/* ---------- How it works ---------- */
.how-section { padding-top: 56px; padding-bottom: 72px; }
.how-wrap { max-width: 960px; margin: 0 auto; }
.how-hero { max-width: 40rem; margin-bottom: 40px; }
.how-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4.5vw, 2.9rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.12;
    margin: 0 0 16px;
    text-wrap: balance;
}
.how-lede {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--text-dim);
    max-width: 58ch;
}
.how-steps {
    list-style: none;
    margin: 0 0 48px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 2px solid rgba(244,239,222,0.12);
}
.how-step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 8px 18px;
    padding: 0 0 32px 22px;
    position: relative;
}
.how-step:last-child { padding-bottom: 0; }
.how-step-num {
    position: absolute;
    left: -15px;
    top: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--bg-dark);
    background: var(--teal);
    box-shadow: 0 0 0 4px rgba(10, 14, 20, 1);
}
.how-step-body { grid-column: 1 / -1; padding-left: 18px; }
.how-step-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--cream);
}
.how-step-copy {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dim);
    max-width: 58ch;
}
.how-install { margin-top: 8px; scroll-margin-top: 96px; }
.how-install-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    margin: 0 0 8px;
}
.how-install-lede {
    margin: 0 0 4px;
    color: var(--text-dim);
    font-size: 0.95rem;
}
.how-next { margin-top: 56px; }
.how-next-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    margin: 0 0 8px;
}
.how-next-lede {
    margin: 0 0 22px;
    color: var(--text-dim);
    font-size: 0.95rem;
}
.how-next-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.how-next-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px 20px;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--line);
    transition: border-color 0.2s, transform 0.2s;
}
.how-next-card:hover {
    border-color: rgba(77,227,200,0.4);
    transform: translateY(-2px);
}
.how-next-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: var(--teal);
    text-transform: uppercase;
}
.how-next-card strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    color: var(--cream);
}
.how-next-card span:last-child {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-dim);
}
.how-closing {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    max-width: 40rem;
}
.how-closing p {
    margin: 0 0 16px;
    color: var(--text-dim);
    line-height: 1.65;
}
.how-closing a:not(.btn) { color: var(--teal); text-decoration: none; }
.how-closing a:not(.btn):hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) {
    .how-next-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .how-section { padding-top: 36px; }
    .how-step { padding-left: 18px; }
    .how-step-body { padding-left: 12px; }
}

/* ---------- Nuvio preview mock ---------- */
.nuvio-preview {
    width: 100%; max-width: 420px; border-radius: 18px; overflow: hidden;
    border: 1px solid var(--line); box-shadow: 0 24px 48px rgba(0,0,0,0.5);
}
.nuvio-preview-top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; background: rgba(0,0,0,0.5); border-bottom: 1px solid var(--line);
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
    color: var(--text-faint);
}
.nuvio-preview-top .active-tab { color: var(--cream); border-bottom: 2px solid var(--teal); padding-bottom: 4px; }
.nuvio-preview-body { padding: 16px; background: rgba(0,0,0,0.4); display: flex; flex-direction: column; gap: 18px; }
.nuvio-row-label {
    font-size: 0.78rem; font-weight: 700; color: var(--orange); margin-bottom: 10px;
    display: flex; align-items: center; justify-content: space-between;
}
.nuvio-row-label span { font-size: 0.65rem; color: rgba(244,239,222,0.3); font-weight: 600; }
.nuvio-posters { display: flex; gap: 10px; overflow: hidden; }
.nuvio-poster {
    flex: 0 0 72px; width: 72px; height: 108px; border-radius: 10px; object-fit: cover;
    border: 1px solid var(--line); background: rgba(0,0,0,0.4);
}
.nuvio-preview-caption { text-align: center; font-size: 0.72rem; color: rgba(244,239,222,0.35); margin-top: 12px; }

/* ---------- Before / after ---------- */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.compare-card { padding: 28px; border-radius: 18px; min-height: 220px; display: flex; flex-direction: column; gap: 14px; }
.compare-card h3 { font-size: 1rem; font-weight: 700; }
.compare-before { border-color: rgba(228,87,106,0.25); background: rgba(228,87,106,0.05); }
.compare-before h3 { color: #f087a0; }
.compare-after { border-color: rgba(77,227,200,0.35); background: rgba(77,227,200,0.06); }
.compare-after h3 { color: var(--teal); }
.compare-mono {
    font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; line-height: 1.55;
    padding: 14px; border-radius: 12px; background: rgba(0,0,0,0.4);
    border: 1px solid var(--line); color: var(--text-dim);
}
.compare-before .compare-mono { color: rgba(240,135,160,0.85); }
.compare-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.compare-list li { font-size: 0.88rem; color: var(--text-dim); line-height: 1.45; padding-left: 22px; position: relative; }
.compare-list li::before { position: absolute; left: 0; font-weight: 700; }
.compare-before .compare-list li::before { content: '\2715'; color: var(--red); }
.compare-after .compare-list li::before { content: '\2713'; color: var(--teal); }

/* Comparison table */
.versus-table { margin-top: 32px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.versus-table table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.versus-table th, .versus-table td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.versus-table th {
    font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem; background: rgba(0,0,0,0.35);
    color: var(--text-dim); font-weight: 700;
}
.versus-table th.versus-us { color: var(--teal); }
.versus-table td { color: var(--text-dim); line-height: 1.5; }
.versus-table td.versus-us { color: var(--cream); background: rgba(77,227,200,0.045); }
.versus-table tr:last-child td { border-bottom: none; }
.versus-check { color: var(--teal); font-weight: 700; margin-right: 8px; }
.versus-cross { color: var(--red); font-weight: 700; margin-right: 8px; }

/* Quotes */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 32px; }
.quote-card { padding: 24px; border-radius: 16px; display: flex; flex-direction: column; gap: 12px; }
.quote-card blockquote { font-size: 0.95rem; color: var(--text-dim); line-height: 1.6; font-style: italic; }
.quote-card cite { font-size: 0.78rem; color: var(--text-faint); font-style: normal; font-family: 'JetBrains Mono', monospace; }
.quote-card.placeholder { border-style: dashed; opacity: 0.75; }

/* ---------- Setup wizard ---------- */
.wizard-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
.wizard-step {
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
    padding: 18px 16px; border-radius: 16px; text-decoration: none; color: inherit;
    border: 1px solid var(--line); background: rgba(255,255,255,0.015);
    transition: border-color 0.2s, transform 0.2s;
}
.wizard-step:hover { border-color: rgba(77,227,200,0.4); transform: translateY(-2px); }
.wizard-step-num {
    width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem; font-weight: 800; background: rgba(245,169,75,0.15); color: var(--orange);
    font-family: 'JetBrains Mono', monospace;
}
.wizard-step-title { font-size: 0.92rem; font-weight: 700; color: var(--cream); }
.wizard-step-desc { font-size: 0.75rem; color: var(--text-faint); line-height: 1.4; }

/* ---------- Install panel ---------- */
.install-panel {
    padding: 32px; border-radius: 22px; margin-top: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 184px;
    grid-template-areas:
        "main qr"
        "steps qr";
    gap: 16px 24px;
    align-items: start;
}
.install-panel-main { grid-area: main; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.install-panel .url-display, .install-panel .field-block, .install-panel .input-group { max-width: none; }
.install-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.install-actions .btn { width: 100%; min-width: 0; justify-content: center; }
.legal-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 680px;
    color: var(--text-dim);
    font: 0.82rem/1.5 'Inter', sans-serif;
}
.legal-consent input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--yellow); }
.legal-consent a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.install-legal-consent { margin-top: 2px; }
.btn:disabled, .btn.disabled, .btn[aria-disabled="true"] {
    opacity: 0.48;
    cursor: not-allowed;
}
.qr-box {
    grid-area: qr;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    width: 184px; justify-self: end; padding: 18px 14px; border-radius: 16px;
    background: rgba(255,255,255,0.02); border: 1px solid var(--line);
}
.qr-box canvas, .qr-box img { border-radius: 8px; display: block; width: 132px !important; height: 132px !important; }
.qr-label { font-size: 0.7rem; font-weight: 600; color: var(--text-faint); text-align: center; max-width: 145px; line-height: 1.35; }
.nuvio-steps-mini {
    grid-area: steps; padding: 16px 20px; border-radius: 14px;
    background: rgba(0,0,0,0.25); border: 1px solid var(--line);
    font-size: 0.82rem; color: var(--text-dim); line-height: 1.55;
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 18px;
}
.nuvio-steps-mini strong { color: var(--cream); }
.nuvio-steps-mini ol {
    margin: 0; padding: 0; list-style: none;
    display: flex; flex-wrap: wrap; gap: 8px 22px; counter-reset: nuvio-step;
}
.nuvio-steps-mini li { counter-increment: nuvio-step; display: flex; align-items: center; gap: 8px; }
.nuvio-steps-mini li::before {
    content: counter(nuvio-step); font-family: 'JetBrains Mono', monospace; font-size: 0.68rem;
    font-weight: 700; color: var(--teal); border: 1px solid rgba(77, 227, 200, 0.35);
    border-radius: 50%; width: 20px; height: 20px; display: inline-flex;
    align-items: center; justify-content: center; flex-shrink: 0;
}
.nuvio-steps-mini .install-player-note { grid-column: 1 / -1; }

/* ---------- Guide upgrades (Tier 2/3) ---------- */
.guide-block-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.guide-block-btn {
    padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
    background: rgba(255,255,255,0.02); color: var(--text-dim); font-size: 0.78rem; font-weight: 700; cursor: pointer;
}
.guide-block-btn:hover, .guide-block-btn.active { border-color: var(--orange); color: var(--cream); background: rgba(245,169,75,0.1); }
.guide-surf { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.guide-surf-center { min-width: 0; text-align: center; }
.guide-surf-sub { color: rgba(244,239,222,0.35); margin-top: 4px; font-size: 0.78rem; }
.surf-btn, .guide-mini-surf {
    width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line);
    background: rgba(255,255,255,0.02); color: var(--cream); font-size: 1rem; cursor: pointer; flex-shrink: 0;
}
.surf-btn:hover, .guide-mini-surf:hover { border-color: var(--teal); background: rgba(77,227,200,0.12); }
.guide-live-clock { font-family: 'JetBrains Mono', monospace; color: var(--orange); font-size: 1.1rem; flex-shrink: 0; }
.guide-on-now { margin: 8px 0 20px; }
.guide-on-now-inner {
    display: flex; gap: 18px; align-items: stretch; padding: 18px; border-radius: 16px;
    background: rgba(77,227,200,0.07); border: 1px solid rgba(77,227,200,0.28);
}
.guide-on-now-poster { width: 88px; height: 132px; border-radius: 10px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--line); }
.guide-poster-fallback, .guide-row-poster.guide-poster-fallback {
    background:
        radial-gradient(ellipse 70% 55% at 50% 42%, rgba(77,227,200,0.12) 0%, transparent 65%),
        linear-gradient(145deg, rgba(14,20,32,0.95), rgba(10,14,20,0.98));
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.guide-poster-fallback .rerun-poster-loader {
    position: static; opacity: 1; gap: 10px;
}
.guide-poster-fallback .rerun-chevron { width: 14px; height: 22px; }
.guide-row-poster.guide-poster-fallback .rerun-chevron { width: 10px; height: 16px; }
.guide-row-poster.guide-poster-fallback .rerun-loader-bar { width: 18px; }
.guide-on-now-poster.guide-poster-fallback .rerun-chevron { width: 18px; height: 28px; }
.guide-on-now-poster.guide-poster-fallback .rerun-loader-bar { width: 28px; }
.guide-on-now-body { flex: 1; min-width: 0; }
.guide-on-now-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.guide-on-now-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.45rem; font-weight: 700; line-height: 1.15; margin-bottom: 6px; }
.guide-on-now-sub { font-size: 0.85rem; color: var(--text-faint); margin-bottom: 10px; }
.guide-on-now-meta { margin-bottom: 14px; }
.guide-on-now-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.guide-section-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(244,239,222,0.35); margin: 18px 0 10px; }
.guide-tvg-section { margin-bottom: 8px; }
.guide-tvg-scroll { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,0.35); }
.guide-tvg-head, .guide-tvg-row { display: grid; grid-template-columns: 52px repeat(5, minmax(110px, 1fr)); min-width: 640px; }
.guide-tvg-head { border-bottom: 1px solid var(--line); background: rgba(0,0,0,0.4); }
.guide-tvg-corner, .guide-tvg-time, .guide-tvg-channel, .guide-tvg-cell {
    padding: 10px 8px; font-size: 0.72rem; border-right: 1px solid rgba(244,239,222,0.05);
}
.guide-tvg-time { text-align: center; font-family: 'JetBrains Mono', monospace; color: var(--text-faint); font-weight: 600; }
.guide-tvg-time.is-now-col { color: var(--orange); background: rgba(245,169,75,0.07); }
.guide-tvg-channel {
    font-weight: 800; text-align: center; color: var(--ch-color, var(--cream));
    background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center;
}
.guide-tvg-cell {
    border: none; background: transparent; color: var(--cream); cursor: pointer; text-align: left;
    min-height: 52px; transition: background 0.15s;
}
.guide-tvg-cell:hover { background: rgba(244,239,222,0.045); }
.guide-tvg-cell.is-selected-channel { background: rgba(244,239,222,0.025); }
.guide-tvg-cell.is-on-now { background: rgba(77,227,200,0.14); box-shadow: inset 0 0 0 1px rgba(77,227,200,0.45); }
.guide-tvg-show { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.78rem; font-weight: 600; line-height: 1.25; }
.guide-row-poster { width: 48px; height: 72px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }
.guide-row-main { min-width: 0; }
.guide-row-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.guide-row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.guide-vault-badge {
    display: inline-block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
    padding: 3px 8px; border-radius: 6px;
}
.guide-vault-badge.in-vault { background: rgba(77,227,200,0.16); color: var(--teal); }
.guide-vault-badge.archive { background: rgba(245,169,75,0.1); color: var(--orange); }
.guide-vault-badge.pending, .guide-mini-vault-badge.pending { background: rgba(244,239,222,0.05); color: rgba(244,239,222,0.3); }
.guide-mini-surf { width: 32px; height: 32px; font-size: 0.85rem; padding: 0; }
.guide-mini-now-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.guide-mini-poster { width: 48px; height: 72px; border-radius: 8px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--line); }
.guide-mini-vault-badge { display: inline-block; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; margin-top: 6px; padding: 2px 7px; border-radius: 5px; }
.guide-mini-vault-badge.in-vault { background: rgba(77,227,200,0.16); color: var(--teal); }
.guide-mini-vault-badge.archive { background: rgba(245,169,75,0.1); color: var(--orange); }
@media (max-width: 768px) {
    .guide-on-now-inner { flex-direction: column; align-items: center; text-align: center; }
    .guide-on-now-actions { justify-content: center; }
    .guide-header-bar { flex-direction: column; align-items: stretch; }
    .guide-live-clock { text-align: center; margin-top: 8px; }
}

/* Player callout, packs, watch modal */
.guide-player-callout {
    margin: 0 0 28px; padding: 20px 22px; border-radius: 14px;
    border: 1px solid rgba(77,227,200,0.25); background: rgba(77,227,200,0.06);
    max-width: 680px;
}
.guide-player-callout-label {
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
    color: var(--teal); margin-bottom: 10px;
}
.guide-player-callout p { margin: 0; font-size: 0.92rem; color: var(--text-dim); line-height: 1.55; max-width: none; }
.guide-pack-row { margin-bottom: 14px; }
.guide-pack-label {
    display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.5px;
    text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px;
}
.guide-pack-select { width: 100%; max-width: 420px; }
.guide-pack-note { margin: 8px 0 0; font-size: 0.78rem; color: rgba(244,239,222,0.35); line-height: 1.45; max-width: 640px; }
.guide-watch-modal {
    position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
    padding: 24px; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
}
.guide-watch-modal[hidden] { display: none; }
.guide-watch-dialog {
    position: relative; width: min(100%, 420px); padding: 24px; border-radius: 16px;
    border: 1px solid rgba(77,227,200,0.35); text-align: center;
}
.guide-watch-close {
    position: absolute; top: 10px; right: 12px; border: none; background: transparent;
    color: var(--text-faint); font-size: 1.4rem; cursor: pointer; line-height: 1;
}
.guide-watch-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.guide-watch-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.35rem; font-weight: 700; margin-bottom: 6px; }
.guide-watch-sub { font-size: 0.85rem; color: var(--text-faint); margin-bottom: 16px; }
.guide-watch-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 12px; }
.guide-watch-hint { font-size: 0.78rem; color: rgba(244,239,222,0.35); line-height: 1.45; margin: 0; }
.guide-suggest { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.guide-suggest summary { cursor: pointer; font-size: 0.82rem; font-weight: 600; color: var(--text-dim); list-style: none; }
.guide-suggest summary::-webkit-details-marker { display: none; }
.guide-suggest-form { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.guide-suggest-copy { margin: 0; font-size: 0.82rem; color: var(--text-faint); line-height: 1.45; }
.guide-suggest-input {
    width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
    background: rgba(0,0,0,0.3); color: var(--cream); font: inherit; resize: vertical;
}
.guide-suggest-status { margin: 0; font-size: 0.78rem; color: var(--teal); min-height: 1.2em; }

/* ---------- Rewind page ---------- */
.rewind-hero { text-align: center; padding: 56px 20px 24px; }
.rewind-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.12; margin-bottom: 14px; }
.rewind-hero .desc { max-width: 620px; margin: 0 auto 26px; }
.rewind-form { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; margin: 0 auto 10px; max-width: 640px; }
.rewind-form label { font-size: 0.85rem; color: var(--text-dim); display: block; margin-bottom: 6px; text-align: left; }
.rewind-field { display: flex; flex-direction: column; }
.rewind-form input[type="date"], .rewind-form input[type="time"] {
    background: rgba(0,0,0,0.35); color: var(--cream); border: 1px solid var(--line);
    border-radius: 12px; padding: 12px 14px; font-family: 'JetBrains Mono', monospace; font-size: 1rem;
    color-scheme: dark;
}
.rewind-form input:focus { outline: 2px solid var(--teal); }
.rewind-note { font-size: 0.8rem; color: var(--text-faint); margin-top: 6px; }
.rewind-headline { max-width: 760px; margin: 26px auto; padding: 26px 28px; border-radius: 18px; text-align: center; }
.rewind-headline .rewind-was { font-size: 1rem; color: var(--text-dim); margin-bottom: 8px; }
.rewind-headline .rewind-show { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.4rem, 3.4vw, 2.2rem); line-height: 1.2; font-weight: 700; }
.rewind-headline .rewind-sub { margin-top: 10px; font-size: 0.95rem; color: var(--text-faint); }
.rewind-era-note { max-width: 640px; margin: 0 auto 12px; font-size: 0.85rem; color: rgba(245,169,75,0.85); text-align: center; }
.rewind-share-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 18px 0 8px; }
.rewind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 28px; }
.rewind-channel { border-radius: 16px; padding: 18px; }
.rewind-channel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.rewind-channel-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.rewind-channel-name { font-weight: 700; font-family: 'Space Grotesk', sans-serif; }
.rewind-channel-year { font-size: 0.78rem; color: var(--text-faint); margin-left: auto; font-family: 'JetBrains Mono', monospace; }
.rewind-slots { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; }
.rewind-slots li { display: flex; gap: 10px; padding: 6px 8px; border-radius: 8px; font-size: 0.9rem; }
.rewind-slots li.rewind-on-now { background: rgba(77,227,200,0.12); outline: 1px solid rgba(77,227,200,0.45); }
.rewind-slot-time { font-family: 'JetBrains Mono', monospace; color: var(--text-faint); flex-shrink: 0; width: 52px; }
.rewind-slot-title { flex: 1; }
.rewind-slot-sub { display: block; font-size: 0.78rem; color: var(--text-faint); }
.rewind-channel-watch { display: inline-block; margin-top: 12px; font-size: 0.85rem; color: var(--teal); text-decoration: none; }
.rewind-channel-watch:hover { text-decoration: underline; text-underline-offset: 3px; }
.rewind-results-meta { text-align: center; color: var(--text-dim); font-size: 0.95rem; margin-top: 6px; }
.rewind-cta-block { text-align: center; margin: 42px auto 10px; max-width: 640px; }
.rewind-loading, .rewind-error { text-align: center; padding: 30px; color: var(--text-dim); }
.rewind-error { color: var(--red); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) and (min-width: 1025px) {
    .nav-inner { padding: 14px 20px; gap: 12px; }
    .nav-left { gap: 16px; }
    .nav-link { padding: 8px 8px; font-size: 0.74rem; }
}
@media (max-width: 1024px) {
    .nav-inner { padding: 14px 24px; }
    .nav-toggle { display: flex; }
    .nav-cta { display: none; }
    .nav-left { flex-wrap: wrap; width: 100%; }
    .nav-links {
        display: none; position: absolute; top: calc(100% + 8px); right: 24px; left: 24px;
        flex-direction: column; gap: 4px; padding: 12px;
        background: rgba(10, 14, 20, 0.98); border: 1px solid var(--line);
        border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,0.5); z-index: 300;
    }
    .nav-links.open { display: flex; }
    .nav-link { padding: 12px 14px; }
    .nav-dropdown { width: 100%; }
    .nav-dropdown-btn { width: 100%; justify-content: space-between; }
    .nav-dropdown-menu {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: none; background: transparent;
        padding: 0 0 4px 8px; display: none; min-width: 0;
    }
    .nav-dropdown.open .nav-dropdown-menu { display: block; }
    .nav-dropdown-item { padding: 10px 14px; }
    .nav-drawer-cta {
        display: block; width: 100%; margin-top: 6px; text-align: center;
        color: var(--bg-dark); background: linear-gradient(90deg, var(--teal), #38C9E8);
    }
    .hero-main { flex-direction: column; text-align: center; justify-content: center; padding: 30px 24px; }
    .content { max-width: 100%; display: flex; flex-direction: column; align-items: center; }
    .overline { justify-content: center; }
    .stat-row { justify-content: center; }
    .hero-rewind { margin-left: auto; margin-right: auto; }
    .hero-rewind-label { text-align: left; }
    .buttons, .field-block, .input-group, .url-display, .helper-text { width: 100%; max-width: 500px; }
    .visuals { width: 100%; max-width: 420px; margin-top: 20px; }
    .section-wrap { padding: 0 24px; }
    .section-block { padding: 60px 0; }
    .steps-grid { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .settings-grid { grid-template-columns: 1fr; }
    .settings-footer { flex-direction: column; align-items: stretch; }
    .guide-row { grid-template-columns: 44px 56px 1fr; }
    .guide-row .guide-row-actions { grid-column: 1 / -1; justify-self: start; margin-top: 4px; display: flex; gap: 8px; }
    .compare-grid { grid-template-columns: 1fr; }
    .wizard-nav { grid-template-columns: 1fr 1fr; }
    .install-panel {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "qr"
            "steps";
    }
    .install-panel .url-display { max-width: none; }
    .qr-box { margin: 0 auto; justify-self: center; }
    .versus-table { overflow-x: auto; }
}
@media (max-width: 900px) and (min-width: 601px) {
    .settings-grid { grid-template-columns: 1fr 1fr; }
    .settings-group:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .rewind-form { flex-direction: column; align-items: stretch; }
    .hero-rewind .hero-rewind-btn { flex: 1 1 100%; min-width: 0; width: 100%; }
    .works-band-inner { gap: 20px; }
    .works-group { row-gap: 8px; }
    .works-mark { font-size: 0.92rem; }
    .install-panel { padding: 22px; gap: 18px; }
    .install-actions { grid-template-columns: 1fr; }
    .nuvio-steps-mini { grid-template-columns: 1fr; align-items: start; }
    .nuvio-steps-mini ol { flex-direction: column; gap: 8px; }
}

/* Progressive FAQ fallback: answers remain readable without JavaScript.
   The original accordion presentation is restored after initFaq runs. */
body:not(.faq-ready) .faq-a {
    max-height: none;
    padding: 0 22px 18px;
}
body.faq-ready .faq-a { max-height: 0; padding: 0 22px; }
body.faq-ready .faq-item.open .faq-a { max-height: 520px; padding: 0 22px 18px; }

/* The canonical brand pulse remains visible but substantially slower when
   the visitor asks for reduced motion. */
@media (prefers-reduced-motion: reduce) {
    .brand-chevrons .rerun-chevron-motion { animation-duration: 4s; }
}

/* First-party era-card artwork filling a poster slot (synthetic guide fallback
   and real ReRun TV posters). object-fit keeps the 2:3 art from shifting layout. */
.guide-era-img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
