:root {
  --bg: #f7f4ed;
  --ink: #171717;
  --muted: #69645c;
  --line: #ded8cc;
  --panel: #fffaf0;
  --accent: #d72d22;
  --accent-dark: #9f1f18;
  --green: #117d4b;
  --shadow: 0 18px 55px rgba(35, 29, 18, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 56px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 244, 237, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 900;
  letter-spacing: 0;
  font-size: 1.2rem;
}

.brand-mark {
  background: var(--ink);
  color: white;
  padding: 5px 7px;
}

.nav,
.site-footer nav,
.actions,
.share-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav a,
.site-footer a,
.text-link,
.share-strip a {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.nav a:hover,
.text-link:hover,
.share-strip a:hover {
  color: var(--accent);
}

.hero {
  min-height: calc(100svh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  padding: clamp(36px, 7vw, 90px) clamp(18px, 5vw, 70px);
  background:
    radial-gradient(circle at 84% 22%, rgba(215, 45, 34, 0.15), transparent 27%),
    linear-gradient(135deg, #f7f4ed 0%, #efe7d9 48%, #faf7ef 100%);
  overflow: hidden;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(4.5rem, 17vw, 12.5rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.hero-text,
.page-title p,
.watch-copy p {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.button {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  min-height: 44px;
  padding: 11px 16px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.45);
}

.hero-board {
  display: grid;
  gap: 10px;
  transform: rotate(-2deg);
}

.hero-board a {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 14px;
  min-height: 70px;
  padding: 16px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, background 180ms ease;
}

.hero-board a:hover {
  background: var(--accent);
  transform: translateX(-8px);
}

.hero-board span,
.hero-board small,
.match-meta,
.facts dt,
.site-footer span {
  color: var(--muted);
}

.hero-board span,
.hero-board small {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 800;
}

.hero-board strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section,
.page-title,
.watch-layout,
.player-shell,
.share-layout,
.docs-grid {
  padding: clamp(34px, 6vw, 76px) clamp(18px, 5vw, 70px);
}

.compact {
  padding-top: clamp(28px, 4vw, 52px);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.toolbar {
  margin-bottom: 16px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 13px 14px;
  font: inherit;
}

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

.match-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 78px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.share-source .match-row {
  grid-template-columns: 34px minmax(0, 1fr) auto;
}

.match-title {
  display: inline-block;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 900;
}

.match-title:hover {
  color: var(--accent);
}

.match-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 5px;
  font-weight: 700;
  font-size: 0.92rem;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  background: white;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.status-live,
.status-always-on {
  border-color: rgba(17, 125, 75, 0.2);
  background: rgba(17, 125, 75, 0.1);
  color: var(--green);
}

.category-grid,
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.category-grid a,
.docs-grid article,
.watch-panel,
.share-output,
.ad-slot {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 18px;
}

.category-grid a {
  display: grid;
  gap: 24px;
  min-height: 136px;
}

.category-grid a:hover {
  border-color: var(--accent);
}

.category-grid strong {
  font-size: 1.45rem;
}

.category-grid span {
  color: var(--muted);
  font-weight: 800;
}

.page-title {
  background: #fffaf0;
  border-bottom: 1px solid var(--line);
}

.page-title h1,
.watch-copy h1 {
  font-size: clamp(2.7rem, 8vw, 7.5rem);
}

.watch-layout,
.share-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(22px, 4vw, 54px);
  align-items: start;
}

.watch-copy {
  max-width: 900px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}

.facts div {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.facts dt {
  font-weight: 800;
}

.facts dd {
  margin: 3px 0 0;
  font-weight: 900;
}

.watch-panel {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
}

.watch-panel strong {
  font-size: 2.2rem;
}

.player-shell {
  display: grid;
  gap: 18px;
}

.player-frame {
  background: #050505;
  aspect-ratio: 16 / 9;
  width: 100%;
}

.player-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.player-empty {
  height: 100%;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
}

.player-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.player-meta h1 {
  font-size: clamp(1.8rem, 4vw, 4rem);
}

.ad-slot {
  min-height: 92px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  overflow: hidden;
  text-align: center;
}

.ad-slot-300 {
  width: min(100%, 300px);
  min-height: 250px;
  margin-inline: auto;
}

.ad-slot-320 {
  width: min(100%, 320px);
  min-height: 50px;
  padding: 0;
}

.date-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 20px;
}

.date-form label {
  grid-column: 1 / -1;
  font-weight: 900;
}

.share-output {
  position: sticky;
  top: 96px;
}

.share-output h2 {
  font-size: 1.7rem;
  margin-bottom: 14px;
}

.share-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.share-output textarea {
  min-height: 360px;
  resize: vertical;
  margin-bottom: 12px;
}

pre {
  overflow: auto;
  background: #151515;
  color: white;
  padding: 16px;
}

code {
  font-family: "Cascadia Code", Consolas, monospace;
}

.legal {
  min-height: 52svh;
}

.site-footer {
  border-top: 1px solid var(--line);
  align-items: flex-start;
}

.site-footer div {
  display: grid;
  gap: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (max-width: 860px) {
  .hero,
  .watch-layout,
  .share-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-board {
    transform: none;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .watch-panel,
  .share-output {
    position: static;
  }
}

@media (max-width: 620px) {
  .site-header,
  .site-footer,
  .section-head,
  .player-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-board a {
    grid-template-columns: 1fr;
  }

  .match-row,
  .share-source .match-row {
    grid-template-columns: 1fr;
  }
}
