:root {
  --black: #070707;
  --panel: #101010;
  --panel-2: #151515;
  --line: #292929;
  --muted: #8e8e91;
  --white: #f6f5f2;
  --red: #f41622;
  --red-dark: #870008;
  --gold: #d99e16;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--white);
  background: var(--black);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 52px 52px;
}

.shell { min-height: 100vh; display: grid; grid-template-columns: 230px minmax(0, 1fr); }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 34px 24px 24px;
  border-right: 1px solid var(--line);
  background: rgba(7,7,7,.96);
  display: flex;
  flex-direction: column;
  z-index: 3;
}
.brand { display: block; margin: 0 0 54px; }
.brand img { display: block; width: 176px; height: auto; }
nav { display: grid; gap: 8px; }
.nav-item {
  color: #8b8b8e;
  text-decoration: none;
  padding: 13px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: .2s ease;
}
.nav-item span { color: #535356; margin-right: 13px; font: 600 10px ui-monospace, monospace; }
.nav-item:hover, .nav-item.active { color: white; background: #171717; }
.nav-item.active { box-shadow: inset 2px 0 var(--red); }
.nav-item.active span { color: var(--red); }
.sidebar-foot { margin-top: auto; display: flex; gap: 11px; align-items: center; color: #69696c; font-size: 10px; line-height: 1.5; }
.sidebar-foot p { margin: 0; }
.sidebar-foot strong { color: #aaa; font-weight: 600; }
.shield { width: 34px; height: 34px; border: 1px solid #3a3a3a; border-radius: 9px; display: grid; place-items: center; color: var(--red); font-weight: 900; font-size: 11px; }

main { width: 100%; max-width: 1540px; margin: 0 auto; padding: 28px 42px 24px; }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; margin-bottom: 34px; }
.eyebrow, .kicker { margin: 0 0 8px; color: var(--red); font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.topbar h1 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.top-actions { display: flex; gap: 12px; align-items: center; }
.date { color: #8b8b8e; font-size: 12px; }
.status { border: 1px solid var(--line); background: #121212; border-radius: 999px; padding: 9px 12px; color: #a8a8aa; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.status i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 7px; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.status.connected i { background: #3ed598; box-shadow: 0 0 10px #3ed598; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 285px;
  padding: 50px 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border: 1px solid #2d1719;
  border-radius: 18px;
  background:
    radial-gradient(circle at 86% 46%, rgba(244,22,34,.21), transparent 25%),
    linear-gradient(125deg, #171010, #0d0d0d 58%, #130708);
}
.hero::after { content: ""; position: absolute; right: -110px; width: 420px; height: 420px; border: 1px solid rgba(244,22,34,.15); border-radius: 50%; box-shadow: 0 0 0 55px rgba(244,22,34,.025), 0 0 0 110px rgba(244,22,34,.02); }
.hero > * { position: relative; z-index: 1; }
.hero h2 { margin: 0 0 17px; max-width: 760px; font-size: clamp(35px, 4.2vw, 67px); line-height: .99; letter-spacing: -.055em; }
.hero h2 em { color: var(--red); font-style: normal; }
.hero-copy { max-width: 670px; margin: 0; color: #9a9a9e; font-size: 14px; line-height: 1.65; }
.hero-mark { flex: 0 0 190px; height: 150px; border-left: 1px solid rgba(255,255,255,.1); padding-left: 34px; display: flex; flex-direction: column; justify-content: center; }
.hero-mark span { color: #777; font-size: 10px; font-weight: 800; letter-spacing: .2em; }
.hero-mark strong { display: block; margin: 2px 0; font: 700 62px ui-monospace, SFMono-Regular, monospace; color: white; }
.hero-mark small { color: #69696c; font-size: 10px; }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 15px 0; }
.metric, .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.metric { padding: 22px 24px; min-height: 146px; }
.metric-top { display: flex; justify-content: space-between; align-items: center; color: #77777a; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.metric-top b { color: #515155; font: 700 9px ui-monospace, monospace; }
.metric > strong { display: block; margin: 22px 0 5px; font-size: 34px; line-height: 1; letter-spacing: -.04em; }
.metric > strong.metric-time { font-size: 21px; margin-top: 28px; }
.metric p { margin: 0; color: #6f6f73; font-size: 11px; }

.grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(290px, .72fr); gap: 15px; }
.panel { padding: 26px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 22px; }
.panel-head h3 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.live-pill { color: #858589; font-size: 9px; border: 1px solid #303034; border-radius: 999px; padding: 7px 9px; text-transform: uppercase; letter-spacing: .08em; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { padding: 11px 10px; border-bottom: 1px solid var(--line); color: #626267; font-size: 8px; letter-spacing: .14em; text-align: left; text-transform: uppercase; }
td { padding: 15px 10px; border-bottom: 1px solid #232323; color: #d3d3d5; }
.empty-row td { height: 168px; border: 0; text-align: center; }
.empty-row div { display: grid; gap: 7px; color: #777; }
.empty-row b { color: #bcbcbf; font-size: 13px; }
.empty-row span { font-size: 11px; }
.event-name { display: grid; gap: 2px; }
.event-name small { color: #737377; }
.price { color: white; font: 700 12px ui-monospace, monospace; }
.principles ol { margin: 0; padding: 0; list-style: none; }
.principles li { display: flex; gap: 15px; padding: 15px 0; border-top: 1px solid #242424; }
.principles li > span { color: var(--red); font: 700 10px ui-monospace, monospace; padding-top: 2px; }
.principles b { display: block; margin-bottom: 4px; font-size: 12px; }
.principles p { margin: 0; color: #747478; font-size: 10px; line-height: 1.45; }

.coverage { margin-top: 15px; }
.panel-note { max-width: 310px; margin: 0; color: #747478; font-size: 10px; line-height: 1.5; text-align: right; }
.sport-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sport-grid article { min-height: 105px; padding: 15px; border: 1px solid #292929; background: var(--panel-2); border-radius: 10px; display: grid; grid-template-columns: 40px 1fr; grid-template-rows: 1fr auto; column-gap: 12px; }
.sport-code { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; background: #21090b; color: var(--red); font-size: 10px; font-weight: 900; }
.sport-grid b { font-size: 12px; }
.sport-grid p { margin: 4px 0 10px; color: #707074; font-size: 9px; line-height: 1.4; }
.sport-grid article > span { color: #68686b; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.sport-grid article > span.ready { color: var(--red); }
.sport-grid article.has-data { border-color: rgba(62,213,152,.35); }
.sport-grid article.has-data > span { color: #3ed598; }

footer { display: flex; justify-content: space-between; gap: 25px; color: #555559; font-size: 9px; letter-spacing: .05em; padding: 24px 3px 0; }
footer span { color: #8b8b8e; font-weight: 700; }
footer p { margin: 0; }

@media (max-width: 1050px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; width: 100%; height: auto; padding: 18px 24px; flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { margin: 0 25px 0 0; }
  .brand img { width: 140px; }
  nav { display: flex; overflow-x: auto; }
  .nav-item { white-space: nowrap; }
  .sidebar-foot { display: none; }
  main { padding: 28px 24px 20px; }
  .grid { grid-template-columns: 1fr; }
  .sport-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .sidebar { display: block; }
  .brand img { width: 150px; }
  nav { margin-top: 13px; }
  .nav-item { padding: 10px; font-size: 10px; }
  main { padding: 21px 14px 18px; }
  .topbar, .panel-head, footer { display: block; }
  .top-actions { margin-top: 16px; justify-content: space-between; }
  .hero { padding: 35px 25px; min-height: 300px; }
  .hero-mark { display: none; }
  .metrics { grid-template-columns: 1fr; }
  .sport-grid { grid-template-columns: 1fr; }
  .panel { padding: 21px 16px; }
  .panel-note { text-align: left; margin-top: 8px; }
  footer p { margin-top: 7px; }
}
