:root {
  --page: #ffffff;
  --panel: #f7f7f4;
  --ink: #090909;
  --muted: #777777;
  --line: #d8d8d8;
  --live: #e11919;
  --live-page: #050505;
  --live-ink: #ffffff;
  --live-muted: #9d978d;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

html[data-theme="dark"] {
  background: #050505;
}

html.is-dark {
  background: #050505;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--page);
  transition: background 220ms ease, color 220ms ease;
}

body[data-stream-state="live"] {
  background: var(--live-page);
  color: var(--live-ink);
}

html[data-theme="dark"],
body[data-theme="dark"],
html.is-dark,
body.is-dark {
  --page: #050505;
  --panel: #101010;
  --ink: #ffffff;
  --muted: #9a9a9a;
  --line: #2a2a2a;
  background: var(--page);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header,
.site-footer {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(16px, 3.5vw, 48px);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

body[data-stream-state="live"] .site-header {
  background: rgba(5, 5, 5, 0.9);
  border-bottom-color: #2a2a2a;
}

body[data-theme="dark"] .site-header {
  background: rgba(5, 5, 5, 0.9);
  border-bottom-color: var(--line);
}

body.is-dark .site-header {
  background: rgba(5, 5, 5, 0.9);
  border-bottom-color: var(--line);
}

.site-footer {
  min-height: 78px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  color: var(--muted);
}

body[data-stream-state="live"] .site-footer {
  border-top-color: #2a2a2a;
  color: var(--live-muted);
}

body[data-theme="dark"] .site-footer {
  border-top-color: var(--line);
}

body.is-dark .site-footer {
  border-top-color: var(--line);
}

.wordmark {
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2.2vw, 30px);
}

.nav a,
.site-footer a {
  color: var(--muted);
}

body[data-stream-state="live"] .nav a,
body[data-stream-state="live"] .site-footer a {
  color: var(--live-muted);
}

.nav a:hover,
.site-footer a:hover,
.nav a[aria-current="page"] {
  color: currentColor;
}

main {
  width: min(100%, 1840px);
  margin: 0 auto;
}

.live-mode,
.offline-mode {
  padding: clamp(22px, 3.5vw, 48px);
}

.live-mode {
  min-height: calc(100svh - 50px);
  display: none;
  grid-template-columns: minmax(230px, 0.42fr) minmax(0, 1.58fr);
  grid-template-rows: auto 1fr auto;
  gap: clamp(18px, 2.6vw, 38px);
}

body[data-stream-state="live"] .live-mode {
  display: grid;
}

body[data-stream-state="live"] .offline-mode {
  display: none;
}

.offline-mode {
  min-height: calc(100svh - 50px);
  display: grid;
  grid-template-columns: minmax(280px, 0.96fr) minmax(280px, 0.54fr);
  gap: clamp(28px, 5vw, 92px);
  align-items: end;
}

.live-topline,
.eyebrow,
.button,
.site-footer {
  font-weight: 900;
  text-transform: uppercase;
}

.live-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--live);
  font-size: 11px;
}

.live-dot {
  width: 10px;
  height: 10px;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(225, 25, 25, 0.74);
  animation: pulse 1.35s infinite;
}

.live-copy {
  align-self: end;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 8ch;
  margin-bottom: 20px;
  font-size: clamp(56px, 12.8vw, 212px);
  font-weight: 900;
  line-height: 0.78;
  text-transform: uppercase;
}

.live-copy h1 {
  max-width: 6ch;
  font-size: clamp(58px, 11.6vw, 182px);
}

.live-copy p,
.offline-hero p,
.offline-panel p,
.vod-hero p:not(.eyebrow),
.vod-sidebar p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.25;
}

body[data-stream-state="live"] .live-copy p {
  color: var(--live-muted);
}

.live-copy p,
.offline-hero p {
  max-width: 25ch;
  margin-bottom: 0;
  font-size: clamp(18px, 2vw, 32px);
  font-weight: 900;
  text-transform: uppercase;
}

.player-shell {
  grid-row: 1 / 4;
  grid-column: 2;
  min-height: 610px;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
}

.player-shell iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
  background: #0a0a0a;
}

.live-button,
.live-discord {
  align-self: end;
  width: fit-content;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 11px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 30px;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid currentColor;
  background: var(--ink);
  color: var(--page);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

body[data-stream-state="live"] .button {
  background: var(--live-ink);
  color: var(--live-page);
}

.button:hover {
  background: transparent;
  color: currentColor;
}

.button.ghost {
  background: transparent;
  color: var(--ink);
}

body[data-stream-state="live"] .button.ghost {
  color: var(--live-ink);
}

.button.ghost:hover {
  background: var(--ink);
  color: var(--page);
}

body[data-stream-state="live"] .button.ghost:hover {
  background: var(--live-ink);
  color: var(--live-page);
}

.theme-toggle {
  position: fixed;
  right: clamp(14px, 3vw, 32px);
  bottom: calc(78px + clamp(14px, 3vw, 32px));
  z-index: 50;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: var(--ink);
  color: var(--page);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}

.theme-toggle:hover {
  background: var(--page);
  color: var(--ink);
}

.theme-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}

.theme-icon.sun {
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow:
    0 -8px 0 -6px currentColor,
    0 8px 0 -6px currentColor,
    8px 0 0 -6px currentColor,
    -8px 0 0 -6px currentColor,
    6px 6px 0 -6px currentColor,
    -6px -6px 0 -6px currentColor,
    6px -6px 0 -6px currentColor,
    -6px 6px 0 -6px currentColor;
}

.theme-icon.moon {
  border-radius: 50%;
  background: currentColor;
}

.theme-icon.moon::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
}

body[data-stream-state="live"] .theme-toggle {
  background: var(--live-ink);
  color: var(--live-page);
}

body[data-stream-state="live"] .theme-toggle:hover {
  background: var(--live-page);
  color: var(--live-ink);
}

body[data-stream-state="live"] .theme-icon.moon::after {
  background: var(--live-ink);
}

body.is-dark .theme-icon.moon::after {
  background: var(--ink);
}

.offline-panel {
  border-top: 1px solid var(--line);
}

.offline-panel article {
  display: grid;
  grid-template-columns: 36px 92px 1fr;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.offline-panel span,
.offline-panel h2 {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.offline-panel p {
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 13px rgba(225, 25, 25, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(225, 25, 25, 0);
  }
}

.vod-page {
  background: var(--page);
  color: var(--ink);
}

.vod-main {
  width: min(100%, 1840px);
}

.vod-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.38fr);
  gap: clamp(22px, 4vw, 70px);
  align-items: end;
  padding: clamp(34px, 5vw, 72px) clamp(16px, 3.5vw, 48px) 26px;
  border-bottom: 1px solid var(--line);
}

.vod-hero h1 {
  max-width: 8ch;
  margin-bottom: 0;
}

.vod-hero p:not(.eyebrow) {
  max-width: 24ch;
  margin-bottom: 0;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 900;
  text-transform: uppercase;
}

.vod-hero code {
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
}

.vod-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(280px, 0.38fr);
  gap: clamp(18px, 2.8vw, 38px);
  padding: clamp(18px, 2.8vw, 38px) clamp(16px, 3.5vw, 48px) clamp(34px, 5vw, 76px);
}

.custom-player {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  background: #060606;
  color: var(--live-ink);
  border: 1px solid #111111;
}

.custom-player video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: contain;
  background: #060606;
}

.custom-player[data-empty="true"]::before {
  content: "ARCHIVE SOON";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #8d877d;
  font-size: clamp(38px, 8vw, 118px);
  font-weight: 900;
  line-height: 0.8;
  text-align: center;
  text-transform: uppercase;
  z-index: 1;
}

.player-center {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 3;
  width: clamp(76px, 9vw, 118px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(6, 6, 6, 0.6);
  color: var(--live-ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
  transition: opacity 180ms ease;
}

.player-shade {
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.86));
  pointer-events: none;
  transition: opacity 180ms ease;
}

.player-controls {
  position: absolute;
  inset: auto 0 0;
  z-index: 4;
  padding: 0 clamp(12px, 2vw, 22px) clamp(12px, 2vw, 20px);
  transition: opacity 180ms ease;
}

.custom-player[data-controls="hidden"] {
  cursor: none;
}

.custom-player[data-controls="hidden"] .player-center,
.custom-player[data-controls="hidden"] .player-shade,
.custom-player[data-controls="hidden"] .player-controls {
  opacity: 0;
  pointer-events: none;
}

.seek,
.volume {
  width: 100%;
  accent-color: var(--live-ink);
}

.seek {
  display: block;
  margin-bottom: 14px;
}

.control-row {
  display: grid;
  grid-template-columns: auto minmax(112px, 1fr) auto minmax(72px, 120px) auto;
  gap: 10px;
  align-items: center;
}

.control-button {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.06);
  color: var(--live-ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.control-button:hover {
  background: var(--live-ink);
  color: #060606;
}

.time-readout {
  color: #d7d1c6;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.vod-sidebar {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 24px;
  align-content: start;
}

.vod-sidebar h2 {
  margin: 0 0 10px;
  font-size: clamp(34px, 4vw, 62px);
  font-weight: 900;
  line-height: 0.85;
  text-transform: uppercase;
}

.vod-sidebar p:not(.eyebrow) {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.vod-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.vod-item {
  display: grid;
  gap: 9px;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}

.vod-item strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.vod-item span {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.vod-item[aria-pressed="true"] {
  color: var(--ink);
}

.vod-item[aria-pressed="true"] strong::before {
  content: "NOW / ";
}

.blog-page {
  background: var(--page);
  color: var(--ink);
}

.blog-main {
  width: min(100%, 1840px);
}

.blog-hero {
  padding: clamp(34px, 5vw, 72px) clamp(16px, 3.5vw, 48px) 26px;
  border-bottom: 1px solid var(--line);
}

.blog-hero h1 {
  max-width: 8ch;
  margin-bottom: 0;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(28px, 5vw, 92px);
  padding: clamp(24px, 4vw, 58px) clamp(16px, 3.5vw, 48px) clamp(40px, 6vw, 88px);
}

.post-reader {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.post-reader h2 {
  max-width: 8ch;
  margin: 0 0 28px;
  font-size: clamp(54px, 10vw, 168px);
  font-weight: 900;
  line-height: 0.78;
  text-transform: uppercase;
}

.post-body {
  display: grid;
  gap: 12px;
  max-width: 34ch;
}

.post-body p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 900;
  line-height: 1.18;
  text-transform: uppercase;
}

.post-list {
  display: grid;
  align-content: end;
  border-top: 1px solid var(--line);
}

.post-item {
  display: grid;
  gap: 10px;
  padding: 22px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}

.post-item span,
.post-item strong,
.post-item p {
  font-weight: 900;
  text-transform: uppercase;
}

.post-item span {
  font-size: 11px;
}

.post-item strong {
  color: var(--ink);
  font-size: clamp(24px, 3vw, 42px);
  line-height: 0.9;
}

.post-item p {
  max-width: 34ch;
  margin: 0;
  font-size: 13px;
  line-height: 1.25;
}

.post-item[aria-pressed="true"] {
  color: var(--ink);
}

.post-item[aria-pressed="true"] strong::before {
  content: "READ / ";
}

@media (max-width: 980px) {
  .live-mode,
  .offline-mode,
  .vod-hero,
  .vod-layout,
  .blog-layout {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .player-shell,
  .custom-player {
    grid-row: auto;
    grid-column: auto;
    min-height: auto;
    aspect-ratio: 16 / 9;
  }

  .player-shell iframe,
  .custom-player video {
    min-height: 0;
  }

  .offline-mode {
    align-items: start;
  }
}

@media (max-width: 620px) {
  .site-header,
  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 16px;
  }

  .site-header {
    position: static;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .live-mode,
  .offline-mode,
  .vod-hero,
  .vod-layout,
  .blog-hero,
  .blog-layout {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 {
    font-size: clamp(48px, 19vw, 92px);
  }

  .offline-panel article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .control-row {
    grid-template-columns: auto 1fr auto;
  }

  .volume,
  #fullscreen-toggle {
    display: none;
  }
}
