@font-face {
  font-family: Inter;
  src: url("/fonts/Inter.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/Barlow-Condensed.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #111115;
  --chrome: #17171c;
  --surface: #202027;
  --raised: #2c2c34;
  --line: #373740;
  --soft-line: #25252d;
  --text: #f5f5f6;
  --muted: #adadb7;
  --accent: #eaff48;
  --ink: #151604;
  --rail: 224px;
  --header: 68px;
  --gutter: clamp(18px, 2vw, 32px);
  --radius: 10px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: Inter, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--header) + 18px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 14px/1.55 var(--body); }
body, button, input, select, textarea { font-family: var(--body); }
img { display: block; max-width: 100%; height: auto; }
svg { width: 20px; height: 20px; flex: 0 0 auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
input, button, textarea, select { color: inherit; font-size: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--ink); }
h1, h2, h3, p { margin: 0; }
.skip-link { position: fixed; z-index: 30; inset: 8px auto auto 8px; transform: translateY(-150%); }
.skip-link:focus { transform: none; color: var(--ink); background: var(--accent); padding: 8px 14px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header);
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  background: var(--chrome);
  border-bottom: 1px solid var(--soft-line);
  padding-inline: 0 var(--gutter);
}

.brand {
  min-height: calc(var(--header) - 1px);
  padding: 0 20px 1px 27px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 800 32px/1 var(--display);
  text-transform: uppercase;
  letter-spacing: .01em;
}

.brand-mark { width: 29px; height: 29px; flex: 0 0 auto; }
.search {
  width: min(100%, 620px);
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-inline: 12px;
  min-height: 42px;
  color: #c8c8cf;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.search:focus-within { border-color: #80808b; }
.search input {
  width: 100%;
  padding: 7px 0;
  border: 0;
  outline: none;
  color: var(--text);
  background: transparent;
  min-width: 0;
}

.search input::placeholder { color: #a3a3af; }
.search button {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  min-width: 27px;
  min-height: 27px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}
.search button:hover { background: var(--raised); color: var(--text); }
.header-actions { display: flex; gap: 10px; align-items: center; justify-self: end; white-space: nowrap; }

.site-shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: calc(100vh - var(--header)); }
.sidebar {
  background: var(--chrome);
  border-right: 1px solid var(--soft-line);
  padding: 22px 10px 26px;
}
.sidebar-content { position: sticky; top: calc(var(--header) + 22px); }
.sidebar nav { display: grid; gap: 5px; }
.side-link {
  position: relative;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 8px 16px 8px 19px;
  border-radius: 8px;
  color: #dedee4;
  font-size: 15px;
  white-space: nowrap;
}
.side-link svg { width: 22px; height: 22px; }
.side-link:hover { background: var(--surface); color: var(--text); }
.side-link:is(.is-active, [aria-current="page"]) { color: var(--text); background: var(--raised); font-weight: 650; }
.side-link:is(.is-active, [aria-current="page"])::before {
  content: "";
  position: absolute;
  width: 3px;
  background: var(--accent);
  inset: 4px auto 4px 0;
  border-radius: 8px;
}
.side-link:is(.is-active, [aria-current="page"]) svg { color: var(--accent); }

.main {
  min-width: 0;
  width: min(100%, 1620px);
  margin-inline: auto;
  padding: 24px var(--gutter) 0;
}

.hero {
  display: grid;
  position: relative;
  isolation: isolate;
  align-items: end;
  overflow: hidden;
  min-height: clamp(305px, 24vw, 420px);
  border-radius: var(--radius);
  margin-bottom: 26px;
  background: #201b2a;
}

.hero-image, .hero > picture { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-image img, img.hero-image, .hero > picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}
.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, #0a0a0cf6 1%, #0a0a0cb8 25%, #0a0a0c2b 60%, transparent 100%),
    linear-gradient(0deg, #09090d6f, transparent 60%);
}

.hero-content { padding: clamp(24px, 3.2vw, 52px); max-width: 580px; }
.hero h1 {
  font: 800 clamp(64px, 7.2vw, 112px)/.84 var(--display);
  letter-spacing: -.02em;
  margin: 0 0 15px;
}
.hero-summary, .hero-content > p { max-width: 400px; color: #ebebef; font-size: clamp(15px, 1.35vw, 21px); line-height: 1.36; }
.hero-actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

.button {
  border: 1px solid var(--line);
  min-height: 42px;
  padding: 7px 15px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border-radius: 8px;
  font-weight: 650;
  line-height: 1.15;
  color: var(--text);
  white-space: nowrap;
}
.button:hover { border-color: #797985; background: var(--raised); }
.button svg { width: 17px; height: 17px; }
.button-primary { background: var(--accent); color: var(--ink); border-color: var(--accent); font-weight: 800; }
.button-primary:hover { background: #f2ff80; border-color: #f2ff80; }
.hero .button { min-height: 46px; padding-inline: 17px; }
.hero .button:not(.button-primary) { border-color: #eeeeef83; background: #17171ca1; }
.hero .button:not(.button-primary):hover { background: var(--raised); border-color: var(--text); }
.header-actions .button { padding-inline: 14px; }

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.section-heading h1, .section-heading h2, .related > h2 {
  font: 800 clamp(29px, 2.7vw, 40px)/1.04 var(--display);
  letter-spacing: -.012em;
}
.section-kicker, .result-count { color: var(--muted); font-size: 12px; }
.result-count { flex: 0 0 auto; }
.category-summary { color: var(--muted); max-width: 66ch; margin: 0 0 20px; }
.filter-bar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 25px; }
.filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--chrome);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #eeedf1;
  min-height: 38px;
  padding: 6px 15px;
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
}
.filter:hover { background: var(--surface); border-color: #777781; }
.filter:is(.is-active, [aria-current="page"], [aria-pressed="true"]) {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
  font-weight: 800;
}
.filter svg { width: 16px; height: 16px; }

.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 15px; }
.card { min-width: 0; display: block; position: relative; }
.card > a { display: block; }
.card-media { display: block; position: relative; border-radius: var(--radius); aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.card-media img, .card-media picture { width: 100%; height: 100%; }
.card-media img { object-fit: cover; transition: transform .22s ease, filter .22s ease; }
.card:hover .card-media img, .card:focus-within .card-media img { transform: scale(1.035); filter: brightness(1.08); }
.media-label {
  position: absolute;
  inset: auto auto 7px 7px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: calc(100% - 14px);
  min-height: 24px;
  padding: 3px 6px;
  line-height: 1.2;
  background: #111115e8;
  border: 1px solid #ffffff36;
  border-radius: 6px;
  color: #fff;
  font-weight: 600;
  font-size: 10px;
}
.media-label svg { width: 13px; height: 13px; }
.card-body { padding-top: 8px; }
.card-title { font-weight: 730; font-size: clamp(13px, 1.03vw, 16px); letter-spacing: -.025em; line-height: 1.35; overflow-wrap: anywhere; }
.card:hover .card-title, .card:focus-within .card-title { color: var(--accent); }
.card-meta { color: var(--muted); margin-top: 4px; font-size: 12px; line-height: 1.4; display: flex; gap: 5px 8px; flex-wrap: wrap; }

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(235px, .39fr);
  gap: clamp(20px, 2vw, 32px);
  align-items: start;
}
.watch-main, .related { min-width: 0; }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-weight: 650; margin-bottom: 23px; }
.back-link svg { width: 17px; height: 17px; }
.player { display: grid; position: relative; place-items: stretch; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 9; background: var(--surface); }
.player img, .player picture, .player iframe, .player video { width: 100%; height: 100%; }
.player img { object-fit: cover; }
.player iframe { border: 0; }
.player > * { grid-area: 1 / 1; min-width: 0; }
.player-button {
  display: grid;
  position: relative;
  place-items: center;
  background: #08080a38;
  border: 0;
  min-width: 0;
  padding: 0;
  color: white;
}
.player-button:hover { background: #08080a20; }
.player-button svg {
  width: clamp(48px, 6.2vw, 90px);
  height: clamp(48px, 6.2vw, 90px);
  padding: clamp(13px, 1.8vw, 28px);
  border-radius: 50%;
  background: #14141ee0;
  transition: transform .2s ease;
}
.player-button:hover svg { transform: scale(1.07); }
.player :focus-visible { outline-offset: -4px; }
.watch-heading { margin: 18px 0 16px; }
.watch-heading h1 { margin-top: 8px; font: 800 clamp(34px, 4vw, 58px)/.97 var(--display); letter-spacing: -.015em; }
.watch-heading p { margin-top: 11px; font-size: 16px; color: var(--muted); }
.watch-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 14px;
  color: var(--muted);
  padding-block: 9px 13px;
}
.source-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 650; }
.source-link:hover, .back-link:hover { text-decoration: underline; }
.source-link svg { width: 14px; height: 14px; }
.article-copy { max-width: 76ch; border-top: 1px solid var(--soft-line); padding-top: 16px; color: #e1e1e6; line-height: 1.72; font-size: 15px; }
.article-copy > * + * { margin-top: 13px; }
.article-copy h2 { font-size: 21px; color: var(--text); }
.article-copy a { color: var(--accent); text-decoration: underline; }
.related > h2 { margin-bottom: 13px; }
.related-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.related .card-title { font-size: 15px; }

.empty-state {
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 40px);
  background: var(--chrome);
  color: var(--muted);
  margin-block: 15px;
}
.empty-state h2, .empty-state h3 { color: var(--text); margin-bottom: 6px; }
.empty-state .button { margin-top: 12px; }

.submit-form { max-width: 620px; display: grid; gap: 17px; margin: 20px 0 36px; }
.submit-form label { display: grid; gap: 6px; color: #e5e5e9; font-weight: 650; }
.submit-form :is(input:not([type="checkbox"]), textarea, select) {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--text);
}
.submit-form textarea { min-height: 100px; resize: vertical; }
.submit-form .button { justify-self: start; }
.submit-form [role="status"] { color: var(--muted); }
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 23px;
  border-top: 1px solid var(--soft-line);
  margin-top: 36px;
  padding: 19px 0 28px;
  color: var(--muted);
  font-size: 12px;
}
.site-footer a:hover { color: var(--accent); }
.site-footer nav { display: flex; gap: 10px 16px; flex-wrap: wrap; }

@media (max-width: 1240px) {
  :root { --rail: 186px; }
  .brand { padding-left: 19px; font-size: 31px; }
  .side-link { gap: 10px; padding-inline: 13px 9px; font-size: 14px; }
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  :root { --rail: 70px; --header: 62px; }
  .brand { padding: 0; justify-content: center; }
  .brand > :not(.brand-mark) { display: none; }
  .brand-mark { width: 28px; height: 28px; }
  .sidebar { padding-inline: 8px; }
  .side-link { justify-content: center; padding: 0; overflow: hidden; }
  .side-link > :not(svg) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .side-link svg { width: 22px; height: 22px; }
}

@media (max-width: 690px) {
  :root { --header: 59px; --gutter: 14px; }
  html { scroll-padding-top: 116px; }
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 12px;
    padding-inline: var(--gutter);
  }
  .brand { justify-content: start; gap: 6px; font-size: clamp(21px, 6.5vw, 27px); }
  .brand > :not(.brand-mark) { display: inline; }
  .brand-mark { width: 23px; height: 23px; }
  .search { width: 100%; grid-area: 2 / 1 / auto / -1; min-height: 39px; margin-bottom: 10px; }
  .header-actions { grid-area: 1 / 2; }
  .header-actions .button { min-height: 36px; padding-inline: 10px; font-size: 12px; }
  .site-shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--soft-line); padding: 3px var(--gutter); overflow-x: auto; scrollbar-width: thin; }
  .sidebar-content { display: contents; }
  .sidebar nav { display: flex; gap: 3px; width: max-content; min-width: 100%; }
  .side-link { padding: 5px 9px; min-height: 36px; gap: 6px; font-size: 12px; }
  .side-link > :not(svg) { position: static; width: auto; height: auto; clip-path: none; }
  .side-link svg { width: 15px; height: 15px; }
  .side-link:is(.is-active, [aria-current="page"])::before { inset: auto 7px 0; width: auto; height: 2px; }
  .main { padding-top: 14px; }
  .hero { min-height: 285px; margin-bottom: 23px; }
  .hero-content { padding: 21px; }
  .hero h1 { font-size: clamp(53px, 10vw, 77px); margin-bottom: 10px; }
  .hero-summary, .hero-content > p { max-width: 25ch; }
  .hero::after { background: linear-gradient(90deg, #0a0a0cba, #0a0a0c22 80%), linear-gradient(0deg, #0a0a0cec, #0a0a0c0d 80%); }
  .hero-actions { margin-top: 17px; gap: 7px; }
  .hero .button { min-height: 39px; padding-inline: 10px; font-size: 12px; }
  .filter-bar { margin-bottom: 16px; gap: 6px; }
  .filter { font-size: 12px; min-height: 33px; padding: 5px 9px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 10px; }
  .card-meta { font-size: 11px; margin-top: 3px; }
  .card-body { padding-top: 5px; }
  .watch-layout { grid-template-columns: 1fr; }
  .related .card-title { font-size: 13px; }
  .back-link { margin-bottom: 13px; }
  .site-footer { margin-top: 24px; padding-bottom: 20px; }
}

@media (max-width: 350px) {
  .card-grid { grid-template-columns: 1fr; }
}

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

.search kbd {
  border: 1px solid var(--line);
  border-radius: 4px;
  min-width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  font: 500 12px/1 var(--body);
  color: var(--muted);
}
.sidebar-footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--soft-line);
}
.spoiler-toggle {
  background: transparent;
  border: 0;
  text-align: start;
  white-space: normal;
  width: 100%;
  font-size: 12px;
  line-height: 1.25;
}
.spoiler-toggle[aria-pressed="true"] svg { color: var(--accent); }
.spoiler-toggle[aria-pressed="false"] { color: var(--muted); }
.watch-heading > .section-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: #eeeef3;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 650;
}
.watch-heading > .card-meta { font-size: 14px; }
.watch-summary { font-weight: 580; color: var(--text); }
.simple-page > h1 { font: 800 clamp(38px, 5vw, 65px)/1 var(--display); margin-bottom: 14px; }
.simple-page > .article-copy { margin-top: 18px; }
.simple-page > .hero-summary { max-width: 48ch; }
.submit-form .checkbox-row { display: flex; align-items: center; gap: 9px; }
.checkbox-row input { width: 17px; height: 17px; accent-color: var(--accent); }
.stream-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 14px; }
.stream-list > .empty-state { margin: 0; padding: 20px; }
.spoiler-wall .button { margin-top: 14px; }
.media-label:not(:has(svg)) { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }

@media (max-width: 920px) {
  .card-grid { column-gap: 11px; }
}

@media (max-width: 690px) {
  .search kbd { display: none; }
  .sidebar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-block: 4px;
  }
  .sidebar nav { min-width: auto; }
  .sidebar-footer { border: 0; padding: 0; margin: 0; }
  .spoiler-toggle { white-space: nowrap; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stream-list { grid-template-columns: 1fr; }
}

@media (min-width: 691px) {
  .hero { min-height: clamp(305px, 23vw, 405px); }
}

@media (max-width: 690px) {
  .sidebar { gap: 2px; padding-inline: 7px; }
  .sidebar nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .75fr) minmax(0, 1.45fr) minmax(0, 1.12fr) minmax(0, .94fr) minmax(0, 1fr);
    width: auto;
    flex: 1 1 0;
  }
  .sidebar nav .side-link {
    min-height: 44px;
    flex-direction: column;
    gap: 3px;
    padding: 4px 2px;
    font-size: clamp(10px, 2.45vw, 12px);
    line-height: 1.1;
  }
  .sidebar nav .side-link svg { width: 16px; height: 16px; }
  .sidebar-footer .spoiler-toggle { min-height: 44px; width: 32px; padding: 0; }
  .sidebar-footer .spoiler-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .sidebar-footer .spoiler-toggle svg { width: 18px; height: 18px; }
}

@media (max-width: 350px) {
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 350px) {
  .sidebar nav {
    gap: 0;
  }
  .sidebar nav .side-link { font-size: 9px; }
  .sidebar-footer .spoiler-toggle { width: 26px; }
}
