/* Pixelvision — site styles. No framework; the channel color arrives as --accent on <html>. */

:root {
  --accent: #ebc815;
  --accent-ink: #111;
  --bg: #0b0a0f;
  --bg-raised: #131219;
  --surface: #17161e;
  --surface-2: #201f29;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f2f7;
  --muted: #a9a7b4;
  --faint: #75737f;
  --live: #ff4d4f;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  --wrap: 1440px;
  --gutter: clamp(16px, 3.2vw, 40px);
  --header-h: 64px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
button { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.empty { color: var(--muted); padding: 24px 0; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1px solid transparent; background: var(--surface-2); color: var(--text);
  font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, transform .15s, color .15s;
}
.btn:hover { background: #2a2934; color: #fff; }
.btn:active { transform: scale(0.98); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent); color: var(--accent-ink); filter: brightness(1.08); }
.btn--ghost { background: rgba(255, 255, 255, 0.06); border-color: var(--line-strong); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: 999px; border: 0; background: transparent; color: var(--text); cursor: pointer;
  transition: background-color .15s;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.1); }
.icon-btn .icon { width: 20px; height: 20px; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Badges & progress ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(0, 0, 0, 0.72); color: #fff; line-height: 1.4;
}
.badge--live { background: var(--live); }
.badge--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.6s ease-in-out infinite; }
.badge--time { text-transform: none; letter-spacing: 0; font-size: 12px; backdrop-filter: blur(6px); }
@keyframes pulse { 50% { opacity: 0.35; } }

.progress { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width 1s linear; }

.lock-badge {
  position: absolute; top: 10px; right: 10px;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.72); color: var(--accent); backdrop-filter: blur(6px);
}
.lock-badge .icon { width: 15px; height: 15px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 10, 15, 0.82);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-bar { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; margin-right: 8px; }
.brand img { height: 28px; width: auto; }
.menu-toggle {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255, 255, 255, 0.04);
  font-weight: 600; font-size: 15px; cursor: pointer;
}
.menu-toggle:hover { background: rgba(255, 255, 255, 0.1); }
.menu-toggle .chev { width: 16px; height: 16px; transition: transform .2s; }
.menu-toggle[aria-expanded="true"] { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.menu-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }

.search { position: relative; display: flex; align-items: center; margin-left: auto; width: min(360px, 40vw); }
.search input {
  width: 100%; height: 40px; padding: 0 44px 0 16px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(255, 255, 255, 0.05); color: var(--text); font: inherit; font-size: 15px;
}
.search input::placeholder { color: var(--faint); }
.search input:focus { outline: none; border-color: var(--accent); background: rgba(255, 255, 255, 0.08); }
.search input::-webkit-search-cancel-button { filter: invert(1); opacity: .5; }
.search .icon-btn { position: absolute; right: 2px; width: 36px; height: 36px; }
.search-toggle { display: none; }

.member-menu { position: relative; }
.member-menu summary { list-style: none; border: 1px solid var(--line-strong); }
.member-menu summary::-webkit-details-marker { display: none; }
.member-menu[open] summary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.member-panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: 270px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px; display: grid; gap: 2px;
}
.member-panel a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 15px; }
.member-panel a:hover { background: rgba(255, 255, 255, 0.07); }
.member-name { font-size: 15px; padding: 0 10px; }
.member-note { font-size: 13px; color: var(--muted); padding: 0 10px 8px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.member-signout { color: var(--muted); border-top: 1px solid var(--line); margin-top: 6px; border-radius: 0 0 8px 8px !important; }

.channel-menu {
  position: absolute; left: 0; right: 0; top: 100%;
  background: rgba(19, 18, 25, 0.97); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-strong); box-shadow: var(--shadow);
  max-height: calc(100vh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
}
.channel-menu[hidden] { display: none; }
.channel-menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 24px; padding-top: 22px; padding-bottom: 26px; }
.menu-group h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin: 0 0 8px 10px; }
.menu-group ul { list-style: none; margin: 0; padding: 0; }
.menu-group a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 8px; font-size: 15px; color: #dddce4; }
.menu-group a:hover, .menu-group a[aria-current="page"] { background: rgba(255, 255, 255, 0.07); color: #fff; }
.menu-lock { width: 14px; height: 14px; color: var(--faint); }

/* ---------- Notices & toast ---------- */
.notice { margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 15px; }
.notice--warn { background: rgba(235, 200, 21, 0.12); border: 1px solid rgba(235, 200, 21, 0.35); }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90;
  max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px;
  background: #f3f2f7; color: #111; font-weight: 600; box-shadow: var(--shadow);
}
.toast[hidden] { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; isolation: isolate; overflow: hidden; }
.hero-ambient {
  position: absolute; inset: -60px; z-index: -1;
  background-size: cover; background-position: center;
  filter: blur(48px) saturate(1.3) brightness(0.45); transform: scale(1.1);
}
.hero-slide::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,10,15,.92) 0%, rgba(11,10,15,.55) 50%, rgba(11,10,15,.2) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 35%); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(20px, 4vw, 56px); padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(48px, 6vw, 72px); min-height: min(62vh, 560px); }
.hero-kicker { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: #e7e6ee; margin-bottom: 14px; }
.hero-title { font-size: clamp(28px, 4.2vw, 54px); font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; margin-bottom: 14px; }
.hero-title a:hover { color: var(--accent); }
.hero-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: #cfcdd8; font-size: 15px; margin-bottom: 14px; }
.hero-copy .progress { max-width: 360px; margin-bottom: 22px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 0 1px var(--line-strong); aspect-ratio: 16 / 10; background: var(--surface); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hero-art:hover img { transform: scale(1.03); }
.hero-controls { position: absolute; left: 0; right: 0; bottom: 18px; pointer-events: none; }
.hero-dots { display: flex; gap: 8px; pointer-events: auto; }
.hero-dots button { width: 28px; height: 5px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.28); cursor: pointer; transition: background-color .2s, width .2s; }
.hero-dots button[aria-selected="true"] { background: var(--accent); width: 44px; }

/* ---------- Rows & cards ---------- */
.rows { padding-top: clamp(20px, 3vw, 36px); padding-bottom: 48px; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 44px); }
.row, .grid-section { min-width: 0; }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.row-head h2 { font-size: clamp(19px, 2vw, 23px); font-weight: 700; }
.row-nav { display: flex; gap: 4px; }
.row-nav .icon-btn { border: 1px solid var(--line-strong); width: 36px; height: 36px; }
.row-nav .icon-btn:disabled { opacity: .3; cursor: default; background: transparent; }
.row-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 23%, 300px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain;
  scroll-padding: 0 var(--gutter);
  margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px;
}
.row-track::-webkit-scrollbar { display: none; }
.row--channels .row-track { grid-auto-columns: clamp(180px, 17%, 230px); }

.card { position: relative; display: flex; flex-direction: column; scroll-snap-align: start; min-width: 0; }
.card-media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.card-media--poster { aspect-ratio: 3 / 2; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, filter .35s; }
.card:hover .card-media img { transform: scale(1.04); filter: brightness(1.08); }
.card:hover .card-media { box-shadow: 0 0 0 2px var(--accent); }
.card-media .badge { position: absolute; left: 10px; top: 10px; }
.card-media .progress { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 0; height: 4px; background: rgba(0,0,0,.45); }
.card-body { padding: 10px 2px 0; min-width: 0; }
.card-title { font-size: 15.5px; font-weight: 650; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover .card-title { color: var(--accent); }
.card-meta { margin-top: 4px; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-channel { color: #d8d6e0; }
.card-desc { margin-top: 4px; font-size: 13.5px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px 16px; }
.grid-section { margin-top: 32px; }

/* ---------- Page heads (search, 404, privacy) ---------- */
.page-head { padding-top: clamp(28px, 5vw, 56px); padding-bottom: 12px; }
.page-head h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.page-head--center { text-align: center; display: grid; justify-items: center; }
.page-kicker { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.search--page { width: min(640px, 100%); margin: 18px 0 0; gap: 10px; }
.search--page input { height: 48px; padding-right: 16px; font-size: 16px; }
.search--page .btn { flex: none; min-height: 48px; }
.search-page { padding-bottom: 56px; }

.prose { max-width: 820px; padding-bottom: 64px; }
.prose h2 { font-size: 19px; color: var(--accent); margin: 34px 0 10px; }
.prose h3 { font-size: 17px; margin: 26px 0 8px; }
.prose p, .prose li { color: #d6d4de; font-size: 16px; line-height: 1.7; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; margin: 10px 0; }
.prose li + li { margin-top: 8px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Channel page ---------- */
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; padding-top: 24px; align-items: start; }
.watch-main { min-width: 0; }
.player-shell { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow), 0 0 0 1px var(--line); aspect-ratio: 16 / 9; }
.offair { position: absolute; inset: 0; display: grid; place-items: center; background-size: cover; background-position: center; }
.offair::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.7); }
.offair p { position: relative; display: flex; gap: 10px; align-items: center; font-size: 18px; font-weight: 600; }

.now { padding: 20px 2px 4px; }
.now-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-weight: 600; color: #dedce6; }
.now-title { font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.now-title a:hover { color: var(--accent); }
.now-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; color: var(--muted); font-size: 14.5px; }
.now-meta:empty { display: none; }
.now-meta span { display: inline-flex; align-items: center; gap: 6px; }
.now-meta .pill { padding: 2px 8px; border: 1px solid var(--line-strong); border-radius: 6px; color: #e6e4ec; font-size: 13px; }
.now-progress { max-width: 420px; margin-top: 12px; }
.now-progress:empty { display: none; }
.now-blurb { margin-top: 12px; color: #cfcdd7; max-width: 75ch; line-height: 1.6; }
.now-blurb:empty { display: none; }
.now-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.about { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); }
.guide-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 16px; }
.guide-link { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.guide-link strong { color: var(--text); }
.guide-link span { grid-column: 1; font-size: 14px; }
.guide-link .icon { grid-row: 1 / span 2; grid-column: 2; color: var(--accent); }
.guide-link:hover { border-color: var(--accent); }

.watch-side { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; scrollbar-width: thin; }
.panel { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.panel-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.panel-title .icon { color: var(--accent); }
.upnext, .guide { list-style: none; margin: 0; padding: 0; }
.upnext { display: grid; gap: 12px; }
.upnext li { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; }
.upnext-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--surface); }
.upnext-thumb img { width: 100%; height: 100%; object-fit: cover; }
.upnext h3 { font-size: 14.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.upnext p { font-size: 13px; color: var(--muted); margin-top: 3px; }
.guide li { display: grid; grid-template-columns: 78px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.guide li:first-child { border-top: 0; padding-top: 0; }
.guide li.guide-day { display: block; padding: 16px 0 6px; border-top: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.guide li.guide-day:first-child { padding-top: 0; }
.guide li.guide-day + li { border-top: 0; }
.guide-when time { font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 650; font-size: 14px; white-space: nowrap; }
.guide .rel { display: block; margin-top: 2px; }
.guide .rel time { font-size: 12px; color: var(--faint); font-weight: 400; }
.guide h3 { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.guide h3 a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.guide p { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.guide-more { width: 100%; margin-top: 10px; }
.empty-note { font-size: 14px; color: var(--muted); }

/* Theater mode: wide player, schedule below. */
.theater .watch { grid-template-columns: minmax(0, 1fr); max-width: 1680px; }
.theater .watch-side { position: static; max-height: none; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* ---------- Members-only screen ---------- */
.gate { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.gate-ambient { position: absolute; inset: -80px; z-index: -1; background-size: cover; background-position: center; filter: blur(60px) saturate(1.2) brightness(0.35); }
.gate-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding-top: clamp(32px, 6vw, 80px); padding-bottom: clamp(32px, 6vw, 80px); }
.gate-art { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; box-shadow: var(--shadow), 0 0 0 1px var(--line-strong); }
.gate-art img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.6) brightness(0.55); }
.gate-lock { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.6); color: var(--accent); backdrop-filter: blur(8px); border: 1px solid var(--line-strong); }
.gate-lock .icon { width: 32px; height: 32px; }
.gate-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.gate h1 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 800; letter-spacing: -0.025em; }
.gate-desc { margin-top: 10px; color: #d2d0da; font-size: 17px; max-width: 60ch; }
.gate-how { margin-top: 24px; padding: 18px 20px; border-radius: var(--radius); background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line-strong); max-width: 60ch; }
.gate-how h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-bottom: 8px; }
.gate-how p { color: #d6d4de; }
.gate-how p + p { margin-top: 8px; font-size: 14.5px; }
.gate-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ---------- Footer & dialog ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-raised); margin-top: auto; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 22px; padding-bottom: 28px; font-size: 14px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.footer-links a, .footer-links .link-btn { display: inline-flex; align-items: center; gap: 6px; color: #d4d2dc; text-decoration: none; }
.footer-links a:hover, .footer-links .link-btn:hover { color: var(--accent); }

.dialog { width: min(520px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.dialog::backdrop { background: rgba(5, 4, 8, 0.7); backdrop-filter: blur(4px); }
.dialog-body { padding: 20px 22px 22px; display: grid; gap: 14px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; }
.dialog-head h2 { font-size: 20px; }
.field { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--bg-raised); color: var(--text); font: inherit; font-size: 16px; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.form-status { font-size: 14px; color: var(--muted); }
.form-status.is-error { color: #ff8a8a; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .watch { grid-template-columns: minmax(0, 1fr); }
  .watch-side { position: static; max-height: none; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}
@media (max-width: 860px) {
  .hero-inner, .gate-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; aspect-ratio: 16 / 9; }
  .hero-inner { min-height: 0; padding-top: 18px; }
  .gate-art { max-width: 420px; }
  .row-track { grid-auto-columns: minmax(230px, 62%); }
  .row--channels .row-track { grid-auto-columns: minmax(170px, 44%); }
  .row-nav { display: none; }
}
@media (max-width: 640px) {
  :root { --header-h: 58px; }
  .brand img { height: 24px; }
  .menu-toggle { padding: 0 12px; }
  .menu-toggle span { display: none; }
  .menu-toggle .chev { display: none; }
  .search-toggle { display: inline-grid; margin-left: auto; }
  .search { display: none; }
  .search--page { display: flex; }
  .search-open .search:not(.search--page) { display: flex; position: absolute; left: var(--gutter); right: var(--gutter); top: 9px; width: auto; z-index: 2; }
  .search-open .search:not(.search--page) input { background: var(--surface); }
  .search--page { flex-direction: column; align-items: stretch; }
  .channel-menu-grid { grid-template-columns: 1fr 1fr; }
  .watch { padding-top: 0; }
  .player-shell { border-radius: 0; margin: 0 calc(var(--gutter) * -1); box-shadow: none; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .dialog-actions { flex-direction: column-reverse; align-items: stretch; }
  .hero-dots { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
