:root {
  color-scheme: dark;
  --watch-bg: #07090c;
  --watch-panel: #0e131a;
  --watch-panel-2: #121a23;
  --watch-line: #24303d;
  --watch-text: #f4f7fb;
  --watch-muted: #9aa9bb;
  --watch-blue: #31a6ff;
  --watch-cyan: #45e4d1;
  --watch-purple: #a98bff;
  --watch-green: #63e69a;
  --watch-radius: 18px;
  --watch-shadow: 0 24px 80px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }
html { background: var(--watch-bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 75% -5%, rgba(49, 166, 255, .13), transparent 32rem),
    radial-gradient(circle at 15% 35rem, rgba(169, 139, 255, .08), transparent 28rem),
    var(--watch-bg);
  color: var(--watch-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

button, input { font: inherit; }
a { color: #8dceff; }
a:hover { color: #c8e9ff; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 1000; padding: 10px 14px; background: white; color: black; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 0 5vw;
  border-bottom: 1px solid var(--watch-line);
  background: rgba(7, 9, 12, .9);
}
.site-head nav { display: flex; gap: 16px; }
.site-head a { color: var(--watch-text); text-decoration: none; font-weight: 750; }

.watch-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.watch-hero { padding: clamp(54px, 8vw, 104px) 0 48px; }
.watch-hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(250px, .6fr); gap: clamp(32px, 6vw, 84px); align-items: end; }
.eyebrow { margin: 0 0 12px; color: var(--watch-cyan); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 850px; margin-bottom: 20px; font-size: clamp(2.55rem, 6.3vw, 5.8rem); line-height: .98; letter-spacing: -.055em; }
h2 { margin-bottom: 16px; font-size: clamp(1.8rem, 3.5vw, 3rem); line-height: 1.05; letter-spacing: -.035em; }
h3 { margin-bottom: 8px; line-height: 1.2; }
.lede { max-width: 760px; color: var(--watch-muted); font-size: clamp(1rem, 1.8vw, 1.28rem); }
.channel-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 22px; border: 1px solid var(--watch-line); border-radius: var(--watch-radius); background: rgba(14, 19, 26, .76); box-shadow: var(--watch-shadow); }
.channel-facts strong { color: var(--watch-text); font-size: 1.45rem; }
.channel-facts span { align-self: center; color: var(--watch-muted); }

.featured { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .65fr); gap: clamp(26px, 4vw, 54px); align-items: center; padding-block: 28px 80px; }
.player-column { min-width: 0; }
.player-frame { overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid #2d3b4a; border-radius: var(--watch-radius); background: #000; box-shadow: var(--watch-shadow); transition: width .2s ease; }
.player-frame video { display: block; width: 100%; height: 100%; background: #000; object-fit: contain; }
.player-status { min-height: 1.4em; margin: 10px 4px 0; color: var(--watch-muted); font-size: .86rem; }
.featured-copy p:not(.eyebrow, .technical-note) { color: #c8d2df; }
.video-meta { color: var(--watch-muted) !important; font-size: .9rem; }
.technical-note { padding-top: 18px; border-top: 1px solid var(--watch-line); color: #7f90a4; font-size: .82rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.action, .filter {
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid #354558;
  border-radius: 999px;
  background: #111821;
  color: var(--watch-text);
  cursor: pointer;
}
.action:hover, .filter:hover { border-color: #6a829d; background: #182332; }
.action:focus-visible, .filter:focus-visible, .video-card:focus-visible, input:focus-visible { outline: 3px solid rgba(69, 228, 209, .75); outline-offset: 3px; }
.action.primary { border-color: transparent; background: linear-gradient(135deg, #147de1, #1aa7ff); color: white; font-weight: 800; }
body.theater .featured { display: block; width: min(1500px, calc(100% - 28px)); }
body.theater .featured-copy { max-width: 900px; margin: 30px auto 0; }

.browse { padding-block: 54px 84px; border-top: 1px solid var(--watch-line); }
.browse-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.search-box { display: grid; gap: 7px; width: min(360px, 100%); color: var(--watch-muted); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.search-box input { width: 100%; min-height: 48px; padding: 10px 15px; border: 1px solid #344355; border-radius: 12px; background: #0c1118; color: var(--watch-text); }
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin: 28px 0 14px; }
.filter.active { border-color: rgba(69, 228, 209, .7); background: rgba(69, 228, 209, .12); color: #a9fff4; }
.result-count { color: var(--watch-muted); font-size: .9rem; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.video-card { position: relative; overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-width: 0; padding: 0; border: 1px solid var(--watch-line); border-radius: 16px; background: var(--watch-panel); color: var(--watch-text); text-align: left; cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.video-card:hover { transform: translateY(-3px); border-color: #52657b; background: var(--watch-panel-2); }
.video-card.selected { border-color: var(--watch-cyan); box-shadow: 0 0 0 1px rgba(69, 228, 209, .25); }
.thumb { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #050607; }
.video-card[data-orientation="portrait"] .thumb { aspect-ratio: 4 / 5; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.video-card:hover .thumb img { transform: scale(1.025); }
.duration { position: absolute; right: 9px; bottom: 9px; padding: 3px 7px; border-radius: 6px; background: rgba(0, 0, 0, .78); color: white; font-size: .76rem; font-weight: 800; }
.card-copy { padding: 15px; }
.card-copy h3 { font-size: 1rem; }
.card-copy p { margin-bottom: 0; color: var(--watch-muted); font-size: .84rem; }
.card-kind { display: inline-block; margin-bottom: 8px; color: var(--watch-blue); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.progress-track { height: 3px; margin-top: 13px; background: #273140; }
.progress-track span { display: block; height: 100%; width: 0; background: var(--watch-cyan); }
.empty-state { grid-column: 1 / -1; padding: 28px; border: 1px dashed #39495c; border-radius: 14px; color: var(--watch-muted); text-align: center; }

.product-contract { padding-block: 70px 100px; border-top: 1px solid var(--watch-line); }
.product-contract > div:first-child { max-width: 750px; }
.contract-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contract-grid article { padding: 22px; border: 1px solid var(--watch-line); border-radius: 15px; background: rgba(14, 19, 26, .72); }
.contract-grid span { color: var(--watch-green); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.contract-grid p { margin-bottom: 0; color: var(--watch-muted); }
.watch-footer { border-top: 1px solid var(--watch-line); color: var(--watch-muted); }
.watch-footer .watch-shell { display: flex; justify-content: space-between; gap: 20px; padding-block: 28px; }

@media (max-width: 900px) {
  .watch-hero-grid, .featured { grid-template-columns: 1fr; }
  .channel-facts { max-width: 440px; }
  .featured-copy { max-width: 760px; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contract-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .watch-shell { width: min(100% - 24px, 1180px); }
  .watch-hero { padding-top: 38px; }
  .browse-head { align-items: stretch; flex-direction: column; }
  .video-grid { grid-template-columns: 1fr; }
  .video-card { grid-template-columns: 42% 1fr; grid-template-rows: 1fr; }
  .thumb, .video-card[data-orientation="portrait"] .thumb { aspect-ratio: 4 / 3; }
  .card-copy { align-self: center; }
  .actions .action { flex: 1 1 auto; }
  .watch-footer .watch-shell { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
