/* ==========================================================================
   NexTube — public theme
   A quiet, editorial dark interface with a coral signal colour.
   ========================================================================== */

:root {
    --bg: #0b0c10;
    --bg-2: #0f1117;
    --panel: #14161d;
    --panel-2: #191c24;
    --panel-3: #20232c;
    --line: rgba(255, 255, 255, .09);
    --line-strong: rgba(255, 255, 255, .16);
    --text: #f5f1e8;
    --muted: #a29fa7;
    --muted-2: #74717b;
    --accent: #ff6460;
    --accent-2: #ff8b7f;
    --accent-ink: #1a0b0b;
    --mint: #8be0c5;
    --gold: #f0c36a;
    --radius: 18px;
    --radius-lg: 26px;
    --radius-sm: 11px;
    --shadow: 0 18px 60px rgba(0, 0, 0, .35);
    --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    --header-h: 78px;
}

[data-theme="light"] {
    --bg: #f5f3ed;
    --bg-2: #efede6;
    --panel: #ffffff;
    --panel-2: #f8f6f0;
    --panel-3: #efebe2;
    --line: rgba(20, 18, 14, .12);
    --line-strong: rgba(20, 18, 14, .22);
    --text: #17151a;
    --muted: #67636b;
    --muted-2: #8a858d;
    --accent: #e84642;
    --accent-2: #c93431;
    --accent-ink: #fff8f4;
    --mint: #177c65;
    --gold: #9a6709;
    --shadow: 0 18px 60px rgba(40, 32, 24, .12);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body.site {
    margin: 0;
    overflow-x: clip;
    background:
        radial-gradient(900px 500px at 88% -8%, rgba(255, 100, 96, .09), transparent 65%),
        radial-gradient(700px 500px at -8% 20%, rgba(139, 224, 197, .045), transparent 65%),
        var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

img, svg, video, iframe { max-width: 100%; }
img { display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
    outline: 2px solid var(--mint);
    outline-offset: 3px;
}

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon[href="#i-play"], .icon use[href="#i-play"] { fill: currentColor; }

.skip-link {
    position: fixed;
    top: -60px;
    left: 20px;
    z-index: 999;
    background: var(--mint);
    color: #08110e;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 800;
}
.skip-link:focus { top: 12px; }

.container {
    width: min(1280px, calc(100% - 56px));
    margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom: 1px solid transparent;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(18px) saturate(140%);
    transition: border-color .2s ease, background .2s ease;
}
.site-header.is-scrolled { border-color: var(--line); background: color-mix(in srgb, var(--bg) 94%, transparent); }

.header-inner {
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 34px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex: 0 0 auto;
    font-weight: 850;
    letter-spacing: -.035em;
    font-size: 19px;
}
.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--accent), var(--accent-2));
    color: var(--accent-ink);
    box-shadow: 0 8px 24px rgba(255, 100, 96, .22);
}
.brand-mark .icon { width: 19px; height: 19px; fill: currentColor; stroke: none; }
.brand-text { font-size: 21px; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
}
.main-nav > a,
.nav-drop-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 0;
    background: transparent;
    padding: 9px 13px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .01em;
    white-space: nowrap;
    transition: color .16s ease, background .16s ease;
}
.main-nav > a:hover,
.nav-drop-btn:hover,
.main-nav > a.is-active { color: var(--text); background: var(--panel); }
.main-nav > a.is-active { color: var(--accent-2); }
[data-theme="light"] .main-nav > a.is-active { color: var(--accent); }
.nav-drop { position: relative; }
.nav-drop-btn .icon { width: 13px; height: 13px; transform: rotate(90deg); transition: transform .2s ease; }
.nav-drop:hover .nav-drop-btn .icon { transform: rotate(-90deg); }
.nav-drop-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 260px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: .18s ease;
}
.nav-drop:hover .nav-drop-panel,
.nav-drop:focus-within .nav-drop-panel { opacity: 1; visibility: visible; transform: none; }
.nav-drop-panel a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 11px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}
.nav-drop-panel a:hover { background: var(--panel-2); color: var(--text); }
.nav-drop-panel small { color: var(--muted-2); font-variant-numeric: tabular-nums; }

.header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.header-search {
    position: relative;
    width: 230px;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--panel);
    color: var(--muted-2);
}
.header-search:focus-within { border-color: var(--line-strong); background: var(--panel-2); }
.header-search .icon { width: 16px; height: 16px; }
.header-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; font-size: 13px; color: var(--text); }
.header-search input::placeholder { color: var(--muted-2); }

.icon-btn {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--panel);
    color: var(--muted);
    transition: .16s ease;
}
.icon-btn:hover { border-color: var(--line-strong); color: var(--text); background: var(--panel-2); }
.mobile-menu-button, .mobile-search-button { display: none; }
.theme-sun, .theme-moon { display: none; }
[data-theme="dark"] .theme-sun { display: inline-grid; }
[data-theme="light"] .theme-moon { display: inline-grid; }

.search-suggest {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 60;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    box-shadow: var(--shadow);
}
.search-suggest a { display: block; padding: 10px 12px; color: var(--muted); font-size: 12.5px; border-bottom: 1px solid var(--line); }
.search-suggest a:last-child { border-bottom: 0; }
.search-suggest a:hover { color: var(--text); background: var(--panel-2); }

/* --------------------------------------------------------------------------
   Shared pieces
   -------------------------------------------------------------------------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--mint);
    font-size: 10.5px;
    font-weight: 850;
    letter-spacing: .16em;
    text-transform: uppercase;
}
[data-theme="light"] .eyebrow { color: #126650; }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 12%, transparent); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: .01em;
    transition: transform .16s ease, filter .16s ease, background .16s ease, border-color .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 17px; height: 17px; }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 30px rgba(255, 100, 96, .18); }
.btn-accent:hover { filter: brightness(1.06); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-ghost { border-color: var(--line); background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--panel); border-color: var(--line-strong); }
.btn-light { background: #f5f1e8; color: #17151a; }
.btn-lg { min-height: 50px; padding: 13px 24px; font-size: 14.5px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-sm { min-height: 34px; padding: 7px 12px; font-size: 12px; }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}
.text-link:hover { color: var(--accent-2); }
.text-link .icon { width: 15px; height: 15px; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 650;
    transition: .16s ease;
}
.chip:hover { border-color: var(--line-strong); color: var(--text); background: var(--panel-2); transform: translateY(-1px); }
.chip .icon { width: 13px; height: 13px; }
.chip-hot { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); color: var(--accent-2); }
.chip-muted { background: transparent; }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-w1 { font-size: 11.5px; }
.chip-w2 { font-size: 12px; }
.chip-w3 { font-size: 13px; }
.chip-w4 { font-size: 14px; border-color: var(--line-strong); color: var(--text); }
.chip-w5 { font-size: 15px; border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); color: var(--accent-2); }

.section { padding: 68px 0; }
.section-tight { padding: 38px 0 72px; }
.section-soft { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}
.section-head h2 { margin: 9px 0 0; font-size: clamp(25px, 3vw, 36px); line-height: 1.05; letter-spacing: -.045em; }
.section-head-small { margin-bottom: 16px; }
.section-head-small h2 { font-size: 25px; }
.count-inline { color: var(--muted-2); font-weight: 500; font-size: .65em; }

.count-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}
.count-badge .icon { width: 14px; height: 14px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding: 56px 0 68px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 54px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero-copy { max-width: 620px; min-width: 0; }
.hero-title {
    margin: 18px 0 20px;
    font-size: clamp(46px, 6.6vw, 82px);
    line-height: .94;
    letter-spacing: -.065em;
    font-weight: 900;
}
.hero-title em { color: var(--accent-2); font-style: normal; }
[data-theme="light"] .hero-title em { color: var(--accent); }
.hero-text { max-width: 510px; margin: 0 0 28px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-stats { display: flex; gap: 34px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-stats div { display: grid; gap: 1px; }
.hero-stats strong { font-size: 24px; letter-spacing: -.04em; font-weight: 850; }
.hero-stats span { color: var(--muted-2); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.hero-feature { position: relative; }
.hero-feature-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
    box-shadow: var(--shadow);
}
.hero-feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.hero-feature-media:hover img { transform: scale(1.035); }
.hero-feature-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(6, 6, 9, .82)); }
.hero-feature-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 72px;
    height: 72px;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: rgba(10, 10, 14, .38);
    backdrop-filter: blur(8px);
    color: #fff;
    transition: .2s ease;
}
.hero-feature-play .icon { width: 24px; height: 24px; margin-left: 3px; fill: currentColor; stroke: none; }
.hero-feature-media:hover .hero-feature-play { transform: translate(-50%, -50%) scale(1.08); background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.hero-feature-label {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 10px;
    border-radius: 7px;
    background: rgba(8, 8, 12, .55);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.hero-feature-duration {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(8, 8, 12, .72);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.hero-feature-caption { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; padding: 15px 4px 0; }
.hero-feature-kicker { color: var(--muted-2); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero-feature-caption h2 { margin: 4px 0 0; font-size: 17px; line-height: 1.25; letter-spacing: -.025em; }
.hero-feature-caption h2 a:hover { color: var(--accent-2); }
.hero-feature-views { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.hero-feature-views .icon { width: 15px; height: 15px; }
.hero-empty { min-height: 52vh; display: grid; align-items: center; }

/* --------------------------------------------------------------------------
   Video cards
   -------------------------------------------------------------------------- */
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 20px; }
.video-card { min-width: 0; }
.video-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}
.video-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2, .7, .2, 1), filter .3s ease; }
.video-card:hover .video-card-media img { transform: scale(1.045); filter: brightness(.82); }
.video-card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(4, 4, 7, .72)); opacity: .8; }
.video-card-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 48px;
    height: 48px;
    transform: translate(-50%, -50%) scale(.85);
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(9, 9, 13, .45);
    border: 1px solid rgba(255, 255, 255, .3);
    color: #fff;
    opacity: 0;
    transition: .2s ease;
    backdrop-filter: blur(8px);
}
.video-card-play .icon { width: 18px; height: 18px; margin-left: 2px; fill: currentColor; stroke: none; }
.video-card:hover .video-card-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.duration-pill {
    position: absolute;
    right: 9px;
    bottom: 9px;
    padding: 3px 7px;
    border-radius: 6px;
    background: rgba(6, 6, 10, .76);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.video-card-badge {
    position: absolute;
    left: 9px;
    bottom: 9px;
    padding: 3px 7px;
    border-radius: 6px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 10.5px;
    font-weight: 850;
}
.video-card-body { padding: 11px 2px 0; }
.video-card-cat { display: inline-block; margin-bottom: 5px; color: var(--accent-2); font-size: 9.5px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
[data-theme="light"] .video-card-cat { color: var(--accent); }
.video-card-title {
    margin: 0;
    font-size: 14.5px;
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: -.015em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.video-card-title a:hover { color: var(--accent-2); }
.video-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 7px; color: var(--muted-2); font-size: 11px; }
.video-card-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.video-card-meta .icon { width: 12px; height: 12px; }
.video-card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }
.video-card-rating { margin-left: auto; color: var(--gold); }

/* --------------------------------------------------------------------------
   Categories and tags
   -------------------------------------------------------------------------- */
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.category-grid-large { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.category-card {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 82px;
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    transition: .18s ease;
}
.category-card:hover { transform: translateY(-2px); border-color: var(--line-strong); background: var(--panel-2); }
.category-card-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: color-mix(in srgb, var(--accent) 13%, var(--panel-2));
    color: var(--accent-2);
}
.category-card-icon .icon { width: 18px; height: 18px; }
.category-card-body { display: grid; gap: 2px; min-width: 0; }
.category-card-body strong { font-size: 13.5px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.category-card-body small { color: var(--muted-2); font-size: 11px; }
.category-card-body em { color: var(--muted); font-size: 11.5px; font-style: normal; line-height: 1.45; margin-top: 3px; }
.category-card-arrow { margin-left: auto; color: var(--muted-2); }
.category-card-arrow .icon { width: 16px; height: 16px; }
.category-card:hover .category-card-arrow { color: var(--accent-2); }
.category-card-large { min-height: 112px; padding: 18px; }
.category-card-num { color: var(--muted-2); font-family: var(--mono); font-size: 10px; align-self: flex-start; padding-top: 2px; }
.category-card-large .category-card-icon { width: 48px; height: 48px; border-radius: 14px; }
.category-card-large .category-card-body strong { font-size: 15.5px; }

.cta-band { padding: 22px 0 70px; }
.cta-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 34px 38px;
    border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
    border-radius: var(--radius-lg);
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(255, 100, 96, .13), transparent 65%),
        var(--panel);
}
.cta-band h2 { margin: 10px 0 8px; font-size: clamp(24px, 3vw, 34px); line-height: 1.1; letter-spacing: -.045em; }
.cta-band p { max-width: 620px; margin: 0; color: var(--muted); font-size: 14px; }

/* --------------------------------------------------------------------------
   Browse / banner / pagination
   -------------------------------------------------------------------------- */
.breadcrumbs { padding: 18px 0 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; color: var(--muted-2); font-size: 11.5px; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs [aria-current] { color: var(--muted); max-width: 34ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.page-banner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    padding: 44px 0 34px;
    border-bottom: 1px solid var(--line);
}
.page-banner-copy h1 { margin: 12px 0 10px; font-size: clamp(38px, 5vw, 62px); line-height: .98; letter-spacing: -.06em; }
.page-banner-copy p { max-width: 670px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.page-banner-side { display: grid; justify-items: end; gap: 8px; flex: 0 0 auto; padding-bottom: 4px; }
.page-banner-note { color: var(--muted-2); font-size: 11px; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; padding-top: 42px; }
.page-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--panel);
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 750;
}
.page-btn:hover { border-color: var(--line-strong); color: var(--text); background: var(--panel-2); }
.page-btn.is-current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.page-btn.is-disabled { opacity: .35; pointer-events: none; }
.page-ellipsis { color: var(--muted-2); padding: 0 3px; }
.page-arrow .icon { width: 16px; height: 16px; }

.empty-state {
    display: grid;
    justify-items: center;
    text-align: center;
    padding: 70px 22px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--panel) 45%, transparent));
}
.empty-state-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: var(--panel); color: var(--muted-2); margin-bottom: 17px; }
.empty-state-icon .icon { width: 25px; height: 25px; }
.empty-state h2 { margin: 0 0 8px; font-size: 24px; letter-spacing: -.035em; }
.empty-state p { max-width: 430px; margin: 0; color: var(--muted); font-size: 14px; }
.empty-state-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }

/* --------------------------------------------------------------------------
   Search
   -------------------------------------------------------------------------- */
.search-hero { max-width: 860px; padding: 56px 0 36px; }
.search-hero h1 { margin: 14px 0 22px; font-size: clamp(36px, 5vw, 58px); line-height: 1.02; letter-spacing: -.055em; }
.search-hero-form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 7px 7px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: var(--panel);
}
.search-hero-form > .icon { color: var(--muted-2); }
.search-hero-form input { flex: 1 1 auto; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; font-size: 15px; }
.search-hero-form .btn { min-height: 44px; }
.search-meta { color: var(--muted-2); font-size: 12px; margin: 13px 0 0; }

/* --------------------------------------------------------------------------
   Video page
   -------------------------------------------------------------------------- */
.video-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 42px; padding-top: 2px; padding-bottom: 30px; }
.video-main { min-width: 0; }
.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #06070a;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}
.player-shell video,
.player-shell iframe { width: 100%; height: 100%; display: block; border: 0; background: #06070a; object-fit: contain; }
.player-shell-embed { background: #06070a; }

.video-details { padding-top: 20px; }
.video-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.video-heading h1 { margin: 8px 0 0; font-size: clamp(25px, 3vw, 36px); line-height: 1.12; letter-spacing: -.04em; }
.video-heading-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: 0 0 auto; color: var(--muted-2); font-size: 11.5px; padding-top: 4px; }
.video-heading-meta span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.video-heading-meta .icon { width: 13px; height: 13px; }

.video-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 20px 0 18px; padding: 12px 0; border-block: 1px solid var(--line); }
.rating-widget { display: flex; align-items: center; gap: 7px; }
.rating-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 6px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}
.rating-btn .icon { width: 15px; height: 15px; }
.rating-btn:hover { border-color: var(--line-strong); color: var(--text); }
.rating-btn.is-voted { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); color: var(--accent-2); background: color-mix(in srgb, var(--accent) 9%, var(--panel)); }
.rating-down .icon { transform: rotate(180deg); }
.rating-summary { display: flex; align-items: baseline; gap: 5px; margin-left: 4px; }
.rating-summary strong { font-size: 19px; letter-spacing: -.03em; }
.rating-summary span { color: var(--muted-2); font-size: 11px; }
.video-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 6px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}
.action-btn:hover { color: var(--text); border-color: var(--line-strong); background: var(--panel); }
.action-btn .icon { width: 15px; height: 15px; }

.video-taxonomy { display: grid; gap: 9px; margin-bottom: 20px; }
.taxonomy-row { display: flex; align-items: flex-start; gap: 12px; }
.taxonomy-label { flex: 0 0 74px; padding-top: 8px; color: var(--muted-2); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.video-description {
    position: relative;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--panel);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
}
.video-description p { margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.video-description.is-open p { display: block; -webkit-line-clamp: unset; }
.video-description .text-link { margin-top: 9px; }
.video-description.is-open .text-link { display: none; }

.video-sidebar { padding-top: 42px; display: grid; gap: 16px; align-content: start; }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 17px; }
.side-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.side-card-head h2 { margin: 0; font-size: 15px; letter-spacing: -.02em; }
.side-card-head a { color: var(--muted-2); font-size: 11px; font-weight: 700; }
.side-card-head a:hover { color: var(--accent-2); }
.side-list { display: grid; gap: 10px; }
.side-video { display: flex; gap: 10px; align-items: center; min-width: 0; }
.side-video img { width: 104px; height: 62px; flex: 0 0 auto; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.side-video span { min-width: 0; display: grid; gap: 3px; }
.side-video strong { font-size: 11.5px; font-weight: 650; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-video small { color: var(--muted-2); font-size: 10px; }
.side-video:hover strong { color: var(--accent-2); }
.side-pitch { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 16%, var(--panel)), var(--panel)); }
.side-pitch-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent-2); margin-bottom: 13px; }
.side-pitch h2 { margin: 0 0 7px; font-size: 21px; letter-spacing: -.035em; }
.side-pitch p { margin: 0 0 15px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }

/* --------------------------------------------------------------------------
   Comments
   -------------------------------------------------------------------------- */
.comments-section { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.comment-list { display: grid; gap: 10px; margin-bottom: 18px; }
.comment-loading, .comment-empty { color: var(--muted-2); font-size: 12px; padding: 12px 0; }
.comment-item { padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.comment-item.is-reply { margin-left: 28px; border-color: color-mix(in srgb, var(--mint) 18%, var(--line)); }
.comment-item-head { display: flex; align-items: baseline; gap: 9px; margin-bottom: 5px; }
.comment-item-head strong { font-size: 12px; }
.comment-item-head time { color: var(--muted-2); font-size: 10px; }
.comment-item p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.65; white-space: pre-wrap; }
.comment-reply { margin-top: 7px; border: 0; background: transparent; color: var(--muted-2); font-size: 10px; font-weight: 750; padding: 0; }
.comment-reply:hover { color: var(--accent-2); }
.comment-form { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.comment-form-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.comment-form-head strong { font-size: 14px; }
.comment-form-head span { color: var(--muted-2); font-size: 10.5px; }
.comment-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-grid { display: grid; gap: 12px; }
.form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field > span { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .02em; }
.field > span em { color: var(--muted-2); font-style: normal; font-weight: 500; }
.field input, .field textarea, .field select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--bg-2);
    padding: 11px 12px;
    font-size: 13px;
    outline: 0;
    transition: border-color .16s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--mint); }
.field textarea { resize: vertical; min-height: 100px; }
.form-note { margin: 10px 0 0; color: var(--muted-2); font-size: 10.5px; line-height: 1.55; }
.form-errors { margin-bottom: 14px; padding: 13px 15px; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); border-radius: 10px; background: color-mix(in srgb, var(--accent) 7%, var(--panel)); }
.form-errors strong { color: var(--accent-2); font-size: 12px; }
.form-errors ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 12px; }

/* --------------------------------------------------------------------------
   Contact, page prose, error
   -------------------------------------------------------------------------- */
.contact-layout { max-width: 1120px; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 54px; align-items: start; padding: 46px 0 66px; }
.contact-copy h1 { margin: 12px 0 14px; font-size: clamp(42px, 5.6vw, 66px); line-height: .96; letter-spacing: -.06em; }
.contact-copy > p { max-width: 460px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.contact-facts { display: grid; gap: 13px; margin: 27px 0; }
.contact-facts > div { display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; align-items: center; }
.contact-facts > div > span { grid-row: span 2; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--accent-2); }
.contact-facts .icon { width: 15px; height: 15px; }
.contact-facts strong { font-size: 11px; color: var(--muted); }
.contact-facts a, .contact-facts em { color: var(--text); font-size: 12.5px; font-style: normal; }
.contact-facts a:hover { color: var(--accent-2); }
.contact-note { padding: 15px; border: 1px solid color-mix(in srgb, var(--mint) 20%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--mint) 4%, var(--panel)); }
.contact-note strong { color: var(--mint); font-size: 11px; }
.contact-note p { margin: 5px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.6; }
.contact-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); box-shadow: var(--shadow); }
.success-panel { display: grid; justify-items: center; text-align: center; padding: 38px 12px; }
.success-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--mint) 16%, var(--panel)); color: var(--mint); margin-bottom: 16px; }
.success-icon .icon { width: 25px; height: 25px; }
.success-panel h2 { margin: 0 0 8px; font-size: 26px; letter-spacing: -.04em; }
.success-panel p { max-width: 380px; margin: 0 0 19px; color: var(--muted); font-size: 13px; }

.page-layout { max-width: 900px; padding-top: 18px; }
.prose { padding: 38px 0 70px; }
.prose h1 { margin: 13px 0 20px; font-size: clamp(36px, 5vw, 56px); line-height: 1.02; letter-spacing: -.055em; }
.prose h2 { margin: 30px 0 10px; font-size: 24px; letter-spacing: -.03em; }
.prose h3 { margin: 22px 0 8px; font-size: 18px; }
.prose p, .prose li { color: var(--muted); font-size: 14px; line-height: 1.8; }
.prose a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose blockquote { margin: 20px 0; padding: 12px 18px; border-left: 2px solid var(--accent); color: var(--muted); background: var(--panel); }
.prose-updated { margin-top: 34px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted-2) !important; font-size: 11px !important; }

.error-layout { min-height: 62vh; display: grid; place-items: center; padding: 50px 0 80px; }
.error-card { width: min(650px, 100%); text-align: center; }
.error-code { display: block; margin-bottom: 12px; color: var(--accent); font-size: clamp(72px, 14vw, 150px); line-height: .8; font-weight: 900; letter-spacing: -.08em; opacity: .85; }
.error-card h1 { margin: 12px 0 10px; font-size: clamp(32px, 4.5vw, 48px); letter-spacing: -.05em; }
.error-card > p { max-width: 480px; margin: 0 auto 24px; color: var(--muted); font-size: 14px; }
.error-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; }
.inline-search { display: flex; align-items: center; gap: 7px; max-width: 480px; margin: 0 auto 18px; padding: 6px 6px 6px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.inline-search input { flex: 1; min-width: 0; height: 40px; border: 0; outline: 0; background: transparent; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { margin-top: 30px; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-main { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 42px; padding: 48px 0 38px; }
.footer-brand p { max-width: 340px; margin: 15px 0 18px; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 7px; }
.badge-18, .badge-rta, .badge-soft { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted-2); font-size: 9.5px; font-weight: 800; letter-spacing: .08em; }
.badge-18 { border-color: color-mix(in srgb, var(--accent) 38%, var(--line)); color: var(--accent-2); }
.badge-soft .icon { width: 12px; height: 12px; }
.footer-col { display: grid; align-content: start; gap: 8px; }
.footer-title { margin-bottom: 4px; color: var(--muted-2); font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.footer-col a { color: var(--muted); font-size: 12.5px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 17px 0 22px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 10.5px; }
.footer-bottom a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

.bottom-nav { display: none; }
.to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 70;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--panel);
    color: var(--muted);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: .2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--text); border-color: var(--line-strong); }

/* --------------------------------------------------------------------------
   Search overlay and mobile drawer
   -------------------------------------------------------------------------- */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: blur(18px);
    padding: 24px;
}
.search-overlay[hidden] { display: none; }
.search-overlay-inner { width: min(720px, 100%); }
.search-overlay-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.search-overlay form { display: flex; gap: 8px; padding: 8px; border: 1px solid var(--line-strong); border-radius: 15px; background: var(--panel); }
.search-overlay input { flex: 1; min-width: 0; height: 52px; padding: 0 12px; border: 0; outline: 0; background: transparent; font-size: 18px; }
.search-hint { margin: 12px 0 0; color: var(--muted-2); font-size: 11px; }

.drawer-overlay { position: fixed; inset: 0; z-index: 110; background: rgba(0, 0, 0, .5); backdrop-filter: blur(4px); }
.drawer-overlay[hidden] { display: none; }
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 115;
    width: min(390px, 88vw);
    overflow-y: auto;
    padding: 20px;
    background: var(--bg-2);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform .24s cubic-bezier(.2, .7, .2, 1);
}
.mobile-drawer.is-open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.drawer-nav { display: grid; }
.drawer-nav a { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 19px; font-weight: 750; letter-spacing: -.03em; }
.drawer-nav small { color: var(--muted-2); font-family: var(--mono); font-size: 10px; font-weight: 500; }
.drawer-section { margin-top: 28px; }
.drawer-label { display: block; margin-bottom: 10px; color: var(--muted-2); font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.drawer-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.drawer-foot { margin-top: 28px; }

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */
.toast-stack { position: fixed; left: 50%; bottom: 22px; z-index: 200; display: grid; gap: 8px; transform: translateX(-50%); pointer-events: none; }
.toast {
    min-width: 220px;
    max-width: min(430px, 90vw);
    padding: 11px 15px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--panel);
    color: var(--text);
    box-shadow: var(--shadow);
    font-size: 12.5px;
    font-weight: 650;
    text-align: center;
    animation: toast-in .18s ease both;
}
.toast.is-error { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); color: var(--accent-2); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1160px) {
    .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hero-grid { gap: 34px; }
    .header-search { width: 190px; }
    .main-nav > a, .nav-drop-btn { padding-inline: 10px; }
    .video-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
}

@media (max-width: 980px) {
    :root { --header-h: 68px; }
    .main-nav { display: none; }
    .mobile-menu-button, .mobile-search-button { display: inline-grid; }
    .header-search { display: none; }
    .header-inner { justify-content: space-between; }
    .hero { padding: 38px 0 48px; }
    .hero-grid { grid-template-columns: 1fr; gap: 34px; }
    .hero-copy { max-width: 720px; }
    .hero-title { font-size: clamp(48px, 10vw, 78px); }
    .hero-feature { max-width: 720px; }
    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-grid-large { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1.4fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .video-layout { grid-template-columns: 1fr; }
    .video-sidebar { padding-top: 0; grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 30px; padding-top: 30px; }
    .contact-copy > p { max-width: 640px; }
}

@media (max-width: 760px) {
    .container { width: calc(100% - 34px); }
    .section { padding: 46px 0; }
    .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
    .video-card-media { border-radius: 13px; }
    .video-card-title { font-size: 13px; }
    .video-card-meta { font-size: 10px; }
    .hero-stats { gap: 22px; }
    .page-banner { flex-direction: column; align-items: flex-start; gap: 15px; padding: 30px 0 24px; }
    .page-banner-side { justify-items: start; }
    .cta-band-inner { flex-direction: column; align-items: flex-start; padding: 26px; }
    .footer-main { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; gap: 6px; }
    .video-heading { flex-direction: column; gap: 8px; }
    .video-heading-meta { flex-direction: row; flex-wrap: wrap; align-items: center; }
    .video-toolbar { flex-direction: column; align-items: flex-start; }
    .video-sidebar { grid-template-columns: 1fr; }
    .taxonomy-row { flex-direction: column; gap: 5px; }
    .taxonomy-label { padding-top: 0; }
    .form-grid-2 { grid-template-columns: 1fr; }
    .contact-card { padding: 20px; }
    .bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 90;
        display: flex;
        justify-content: space-around;
        padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--line);
        background: color-mix(in srgb, var(--bg) 93%, transparent);
        backdrop-filter: blur(18px);
    }
    .bottom-nav a, .bottom-nav button {
        display: grid;
        justify-items: center;
        gap: 2px;
        min-width: 54px;
        border: 0;
        background: transparent;
        color: var(--muted-2);
        font-size: 9px;
        font-weight: 700;
    }
    .bottom-nav .icon { width: 19px; height: 19px; }
    .bottom-nav .is-active { color: var(--accent-2); }
    .site { padding-bottom: 64px; }
    .to-top { bottom: 76px; }
    .toast-stack { bottom: 76px; }
}

@media (max-width: 520px) {
    .brand-text { font-size: 18px; }
    .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
    .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .video-card-body { padding-top: 8px; }
    .video-card-cat { display: none; }
    .category-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: clamp(43px, 13vw, 62px); }
    .hero-actions .btn { flex: 1 1 auto; }
    .hero-stats strong { font-size: 20px; }
    .section-head { align-items: flex-start; flex-direction: column; gap: 10px; }
    .comment-form-head { flex-direction: column; gap: 3px; }
    .comment-form-foot { flex-direction: column; align-items: stretch; }
    .footer-main { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-col:last-child { grid-column: span 2; }
    .search-hero-form { flex-wrap: wrap; }
    .search-hero-form input { flex-basis: 100%; }
    .search-hero-form .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Tag page spotlight */
.tag-spotlight .section-head { margin-bottom: 12px; }
.tag-spotlight .player-shell { max-width: 980px; }
.tag-fallback-note {
    margin: 0 0 18px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--panel);
    color: var(--muted);
    font-size: 14px;
}

/* Global tag cloud (above the footer) */
.site-tag-cloud { border-top: 1px solid var(--line); padding: 30px 0 38px; }
.site-tag-cloud .section-head { margin-bottom: 14px; }
