/* Vova Video — editorial stylesheet.
   Mobile-first, no framework. Light + dark (prefers-color-scheme). Targets strong Core Web Vitals:
   system fallback fonts, fixed aspect-ratio media, no layout-shifting JS. */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f6fb;
  --bg-tint: #eef1fb;
  --fg: #14172a;
  --muted: #5b6379;
  --border: #e5e8f1;
  --primary: #2547d0;
  --primary-600: #1b37a8;
  --primary-soft: rgba(37, 71, 208, .08);
  --primary-ink: #ffffff;
  --accent: #f26b3a;
  --accent-soft: rgba(242, 107, 58, .10);
  --max: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(20, 23, 42, .05), 0 1px 3px rgba(20, 23, 42, .06);
  --shadow-md: 0 6px 16px rgba(20, 23, 42, .08), 0 2px 6px rgba(20, 23, 42, .05);
  --shadow-lg: 0 18px 40px rgba(20, 23, 42, .14), 0 6px 14px rgba(20, 23, 42, .06);
  --font: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d111f;
    --bg-soft: #141a2d;
    --bg-tint: #182040;
    --fg: #e9ecf6;
    --muted: #9ba4bf;
    --border: #252d48;
    --primary: #7a96ff;
    --primary-600: #9db1ff;
    --primary-soft: rgba(122, 150, 255, .12);
    --primary-ink: #0d111f;
    --accent: #ff8f63;
    --accent-soft: rgba(255, 143, 99, .12);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-md: 0 6px 16px rgba(0, 0, 0, .35);
    --shadow-lg: 0 18px 40px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: var(--primary-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

/* ---------------------------------------------------------------- Header */
.site-header {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 30;
}
.site-header .bar { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.18rem; color: var(--fg); letter-spacing: -.03em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.logo-mark { flex: none; }
.site-nav { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { color: var(--muted); font-size: .94rem; font-weight: 600; padding: 8px 13px; border-radius: 999px; white-space: nowrap; transition: background .15s, color .15s; }
.site-nav a:hover { color: var(--fg); background: var(--bg-soft); text-decoration: none; }
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] {
  font: inherit; font-size: .92rem; color: var(--fg);
  border: 1px solid var(--border); border-radius: 999px; padding: 9px 16px; width: 190px; background: var(--bg-soft);
  transition: border-color .15s, box-shadow .15s, background .15s, width .2s;
}
.search-form input[type="search"]:focus { outline: none; width: 240px; background: var(--bg); border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: .92rem; font-weight: 700; cursor: pointer;
  background: var(--primary); color: var(--primary-ink); border: 0; border-radius: 999px; padding: 9px 20px;
  transition: background .15s, transform .1s, box-shadow .15s;
}
.btn:hover { background: var(--primary-600); text-decoration: none; }
.btn:active { transform: translateY(1px); }

/* Mobile menu (no JS: <details>) */
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); display: grid; place-content: center; gap: 4px; background: var(--bg-soft); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 18px; height: 2px; background: var(--fg); border-radius: 2px; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; padding: 8px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
}
.menu-panel a { color: var(--fg); padding: 11px 14px; border-radius: 10px; font-weight: 600; }
.menu-panel a:hover { background: var(--bg-soft); text-decoration: none; }
@media (max-width: 1240px) {
  .site-header .search-form input[type="search"] { display: none; }
  .site-nav a { padding: 8px 10px; }
}
@media (max-width: 900px) {
  .site-nav, .site-header .search-form { display: none; }
  .menu { display: block; }
}

/* ---------------------------------------------------------------- Layout */
main { padding: 8px 0 72px; min-height: 60vh; }
.section { margin: 56px 0; }
.section.tight { margin: 28px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 22px; }
.section-head h2 { font-size: 1.55rem; margin: 0; display: flex; align-items: center; gap: 12px; }
.section-head h2::before { content: ""; width: 5px; height: 1.1em; border-radius: 4px; background: linear-gradient(var(--primary), var(--accent)); }
.section-head .more { font-weight: 700; font-size: .92rem; white-space: nowrap; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .85rem; color: var(--muted); margin: 18px 0 12px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs i { font-style: normal; opacity: .5; }
.breadcrumbs span { color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }

.page-head { margin: 20px 0 8px; }
.page-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 6px 0 10px; }
.page-head p { color: var(--muted); margin: 0; max-width: 70ch; font-size: 1.05rem; }
.eyebrow { display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }

/* ---------------------------------------------------------------- Hero */
.hero {
  margin: 24px 0 8px; padding: clamp(32px, 6vw, 64px) clamp(22px, 5vw, 56px);
  border-radius: 28px; border: 1px solid var(--border);
  background:
    radial-gradient(60% 90% at 0% 0%, var(--primary-soft), transparent 65%),
    radial-gradient(60% 90% at 100% 100%, var(--accent-soft), transparent 60%),
    var(--bg-soft);
}
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin: 10px 0 14px; max-width: 18ch; letter-spacing: -.035em; }
.hero p { color: var(--muted); font-size: 1.15rem; margin: 0 0 26px; max-width: 58ch; }
.hero-search { display: flex; gap: 0; max-width: 560px; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 6px; box-shadow: var(--shadow-md); }
.hero-search input[type="search"] { flex: 1; min-width: 0; font: inherit; color: var(--fg); background: transparent; border: 0; padding: 10px 18px; font-size: 1rem; }
.hero-search input:focus { outline: none; }
.hero-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft), var(--shadow-md); }
.hero-search .btn { padding: 10px 22px; }
.hero-stats { display: flex; gap: 36px; margin: 30px 0 0; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats dt { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.hero-stats dd { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }

/* ---------------------------------------------------------------- Cards */
.grid { display: grid; gap: 28px 24px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } }

.card { display: flex; flex-direction: column; color: var(--fg); border-radius: var(--radius); background: var(--bg); transition: transform .2s ease; }
.card:hover { text-decoration: none; transform: translateY(-3px); }
.card:hover h3 { color: var(--primary); }
.thumb-wrap { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-tint); aspect-ratio: 16 / 9; box-shadow: var(--shadow-sm); transition: box-shadow .2s; }
.card:hover .thumb-wrap { box-shadow: var(--shadow-lg); }
.card .thumb { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; transition: transform .35s ease; }
.card:hover .thumb { transform: scale(1.04); }
.badge { position: absolute; left: 10px; top: 10px; font-size: .7rem; font-weight: 700; letter-spacing: .02em; color: #fff; background: rgba(13, 17, 31, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 4px 10px; border-radius: 999px; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.play-badge { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(242, 107, 58, .95); box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.play-badge::after { content: ""; position: absolute; left: 13px; top: 10px; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent #fff; }
.card .body { padding: 14px 4px 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .kicker { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); font-weight: 800; }
.card h3 { font-size: 1.08rem; margin: 0; line-height: 1.35; letter-spacing: -.01em; transition: color .15s; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card p { margin: 0; color: var(--muted); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { font-size: .8rem; color: var(--muted); margin-top: auto; padding-top: 2px; }

.featured { display: grid; grid-template-columns: 1.55fr 1fr; gap: 32px; align-items: start; }
.featured .card-large h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.22; -webkit-line-clamp: 4; }
.featured .card-large p { font-size: 1rem; -webkit-line-clamp: 3; }
.featured-side { display: flex; flex-direction: column; gap: 18px; }
.featured-side .card { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: start; }
.featured-side .card .body { padding: 0; }
.featured-side .card h3 { font-size: .98rem; -webkit-line-clamp: 3; }
.featured-side .card p, .featured-side .card .kicker { display: none; }
.featured-side .badge, .featured-side .play-badge { display: none; }
@media (max-width: 900px) { .featured { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .featured-side .card { grid-template-columns: 120px 1fr; } }

/* Channel cards */
.channel-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.channel-card { position: relative; padding: 24px 22px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.channel-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.channel-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.channel-card h3 { margin: 0; font-size: 1.2rem; }
.channel-card h3 a { color: var(--fg); }
.cc-meta { margin: 0; font-size: .8rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }
.cc-desc { margin: 0; color: var(--muted); font-size: .93rem; }
.cc-list { list-style: none; padding: 0; margin: 4px 0 6px; display: flex; flex-direction: column; gap: 8px; }
.cc-list li { padding-left: 16px; position: relative; font-size: .92rem; line-height: 1.4; }
.cc-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 2px; background: var(--primary); opacity: .6; }
.cc-list a { color: var(--fg); }
.cc-list a:hover { color: var(--primary); }
.cc-link { margin-top: auto; font-weight: 700; font-size: .92rem; }

/* Chips / topics */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 999px; padding: 7px 15px; font-size: .9rem; font-weight: 600; color: var(--fg); background: var(--bg-soft); transition: border-color .15s, background .15s, color .15s; }
.chip:hover { text-decoration: none; border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.chip .count { font-size: .75rem; font-weight: 700; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 1px 8px; border: 1px solid var(--border); }

/* ---------------------------------------------------------------- Channel */
.channel-header { display: flex; gap: 22px; align-items: center; padding: 14px 0 26px; border-bottom: 1px solid var(--border); }
.channel-header .logo { flex: none; width: 84px; height: 84px; border-radius: 22px; object-fit: cover; box-shadow: var(--shadow-sm); }
.logo-fallback { display: grid; place-items: center; font-size: 2.2rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.channel-header h1 { margin: 0 0 6px; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.channel-header p { margin: 0; color: var(--muted); }
.channel-header .ch-stats { margin-top: 8px; font-size: .9rem; font-weight: 600; }
.channel-intro { color: var(--muted); max-width: 75ch; margin: 22px 0 0; }
.channel-intro p { margin: 0; }

/* ---------------------------------------------------------------- Article */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 56px; align-items: start; }
@media (min-width: 1040px) {
  .article-layout { grid-template-columns: minmax(0, 760px) 300px; justify-content: center; }
}
.article { min-width: 0; }
.article-head h1 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); line-height: 1.15; margin: 8px 0 14px; letter-spacing: -.03em; }
.article .subtitle { font-size: 1.2rem; color: var(--muted); margin: 0 0 16px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; font-size: .86rem; color: var(--muted); margin: 0 0 22px; }
.article-meta > * { background: var(--bg-soft); border: 1px solid var(--border); padding: 4px 12px; border-radius: 999px; }
.article-meta .meta-channel { color: var(--primary); font-weight: 700; background: var(--primary-soft); border-color: transparent; }
.article-meta .meta-channel:hover { text-decoration: none; background: var(--primary); color: var(--primary-ink); }
.article .cover { border-radius: var(--radius); margin: 0 0 24px; box-shadow: var(--shadow-md); }

.video-embed { position: relative; aspect-ratio: 16 / 9; margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow-lg); }
.video-embed iframe, .video-embed img { width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-embed button.play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; cursor: pointer; background: linear-gradient(transparent 55%, rgba(0, 0, 0, .35)); display: grid; place-items: center; transition: background .15s; }
.video-embed button.play:hover { background: linear-gradient(rgba(0, 0, 0, .12), rgba(0, 0, 0, .4)); }
.video-embed .play-icon { width: 78px; height: 54px; background: rgba(242, 107, 58, .96); border-radius: 16px; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0, 0, 0, .4); transition: transform .15s; }
.video-embed button.play:hover .play-icon { transform: scale(1.08); }
.video-embed .play-icon::after { content: ""; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff; margin-left: 4px; }

.takeaways { background: linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--bg-soft); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 22px 24px; margin: 0 0 28px; }
.takeaways h2 { font-size: 1.15rem; margin: 0 0 12px; }
.takeaways ul { margin: 0; padding-left: 1.25em; display: flex; flex-direction: column; gap: 8px; }
.takeaways li::marker { color: var(--accent); }

.toc { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 22px; }
.toc h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.toc ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.toc a { display: block; color: var(--fg); padding: 6px 10px; border-radius: 8px; font-size: .92rem; line-height: 1.4; }
.toc a:hover { background: var(--primary-soft); color: var(--primary); text-decoration: none; }
.toc li.l3 a { padding-left: 24px; color: var(--muted); font-size: .88rem; }
.toc-inline { margin: 0; }
@media (min-width: 1040px) { .toc-inline { display: none; } }
@media (max-width: 1039px) { .article-aside .toc { display: none; } }

.article-body { font-size: 1.075rem; line-height: 1.85; }
.article-body > :first-child { margin-top: 0; }
.article-body h2 { font-size: 1.6rem; margin: 2.1em 0 .6em; padding-top: .2em; }
.article-body h3 { font-size: 1.22rem; margin: 1.7em 0 .5em; }
.article-body p { margin: 0 0 1.15em; }
.article-body a { text-decoration: underline; text-underline-offset: 3px; }
.article-body strong { font-weight: 700; }
.article-body ul, .article-body ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.article-body li { margin: 0 0 .4em; }
.article-body blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--primary); background: var(--primary-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--fg); }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body img { border-radius: var(--radius); margin: 1.4em 0; }
.source { color: var(--muted); font-size: .9rem; margin: 28px 0 0; padding-top: 16px; border-top: 1px solid var(--border); }
.topics-block { margin: 28px 0 0; }
.topics-block h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; }

.adjacent { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 36px 0 0; }
.adj { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--fg); background: var(--bg); transition: border-color .15s, box-shadow .15s; min-width: 0; }
.adj:hover { text-decoration: none; border-color: var(--primary); box-shadow: var(--shadow-md); }
.adj.next { flex-direction: row-reverse; text-align: right; }
.adj img { flex: none; width: 96px; height: 54px; border-radius: 8px; object-fit: cover; }
.adj span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.adj small { color: var(--accent); font-weight: 800; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
.adj strong { font-size: .92rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.empty-adj { border: 0; background: none; box-shadow: none; }
@media (max-width: 640px) { .adjacent { grid-template-columns: 1fr; } .adj.next { flex-direction: row; text-align: left; } .empty-adj { display: none; } }

.article-aside { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
@media (max-width: 1039px) { .article-aside { position: static; margin-top: 36px; } }
.aside-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; background: var(--bg); }
.aside-card h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.aside-card p { margin: 0 0 6px; }
.aside-card .muted { font-size: .9rem; }
.aside-card .chip { font-size: .82rem; padding: 5px 12px; }

/* ---------------------------------------------------------------- Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin: 44px 0 0; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; text-align: center; border: 1px solid var(--border); border-radius: 12px; padding: 9px 14px; font-size: .92rem; font-weight: 700; color: var(--fg); background: var(--bg); transition: all .15s; }
.pagination a:hover { text-decoration: none; border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow-sm); }
.pagination .current { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.pagination .gap { border: 0; background: none; color: var(--muted); min-width: 0; padding: 9px 2px; }

/* ---------------------------------------------------------------- Static pages */
.prose-page { max-width: 760px; margin: 0 auto; padding-bottom: 24px; }
.prose-page h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin: 8px 0 8px; }
.prose-page h2 { font-size: 1.35rem; margin: 2em 0 .5em; }
.prose-page p, .prose-page li { line-height: 1.8; }
.prose-page ul { padding-left: 1.3em; }
.prose-page li { margin: 0 0 .6em; }

/* ---------------------------------------------------------------- Footer */
.site-footer { background: #0d111f; color: #aeb6cf; margin-top: 40px; padding: 56px 0 0; font-size: .92rem; }
.site-footer a { color: #c9d1ea; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 36px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; }
.footer-brand p { margin: 14px 0 0; max-width: 36ch; line-height: 1.6; }
.site-footer h2 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; margin: 4px 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-bottom { margin-top: 44px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid #222a44; font-size: .84rem; color: #838cab; }

/* ---------------------------------------------------------------- Misc */
.error-page { text-align: center; padding: 110px 0; }
.error-page h1 { font-size: 5rem; margin: 0; letter-spacing: -.05em; background: linear-gradient(120deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.search-summary { color: var(--muted); margin: 22px 0; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .section { margin: 44px 0; }
  .hero { border-radius: 22px; }
  .hero-stats { gap: 24px; }
  .channel-header { flex-direction: column; align-items: flex-start; }
  .article-body { font-size: 1.04rem; }
}
