:root {
  color-scheme: dark;
  --bg: #05080b;
  --panel: rgba(14, 20, 26, 0.86);
  --panel-strong: #101820;
  --panel-soft: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.105);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #edf4f1;
  --muted: #8ea09a;
  --dim: #5f706a;
  --green: #19d889;
  --green-soft: rgba(25, 216, 137, 0.14);
  --yellow: #f4c84b;
  --red: #ff5c4d;
  --blue: #6ca8ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(135deg, #05070a 0%, #070d0c 52%, #05070a 100%);
  background-size: 64px 64px, 64px 64px, auto;
  color: var(--text);
  font-family: Inter, Manrope, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    radial-gradient(circle at 24% 12%, rgba(25, 216, 137, 0.12), transparent 28%),
    linear-gradient(110deg, transparent 0 42%, rgba(25, 216, 137, 0.045) 42% 43%, transparent 43% 100%),
    linear-gradient(250deg, transparent 0 62%, rgba(108, 168, 255, 0.04) 62% 63%, transparent 63% 100%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 7, 10, 0.9) 0 16%, rgba(5, 7, 10, 0.56) 42%, rgba(5, 7, 10, 0.88) 100%),
    linear-gradient(180deg, rgba(5, 7, 10, 0.48), rgba(5, 7, 10, 0.76));
}

.player-backdrop {
  position: fixed;
  inset: 0;
  z-index: -5;
  overflow: hidden;
  pointer-events: none;
  background: #05070a;
}

.player-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 7, 10, 0.95) 0 12%, transparent 34%, rgba(5, 7, 10, 0.9) 100%),
    linear-gradient(180deg, rgba(5, 7, 10, 0.64), rgba(5, 7, 10, 0.82));
}

.player-backdrop-track {
  position: absolute;
  inset: -18vh -8vw auto 20vw;
  display: grid;
  min-height: 165vh;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 18px;
  opacity: 0.5;
  transform: translate3d(0, var(--player-shift, 0px), 0) rotate(-2deg);
  transition: transform 120ms linear;
}

.player-card {
  min-height: clamp(240px, 34vw, 520px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(25, 216, 137, 0.1), rgba(108, 168, 255, 0.06)),
    rgba(255, 255, 255, 0.035);
  transform: translateY(var(--player-offset, 0));
}

.player-card:nth-child(2n) {
  --player-offset: 72px;
}

.player-card:nth-child(3n) {
  --player-offset: 132px;
}

.player-card:nth-child(4n) {
  --player-offset: 34px;
}

.player-card span {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  background-image:
    linear-gradient(180deg, transparent 0 48%, rgba(5, 7, 10, 0.78) 100%),
    var(--player-image);
  background-position: center top;
  background-size: cover;
  filter: grayscale(0.18) saturate(0.72) contrast(0.86);
  opacity: 0.74;
}

.signal-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.signal-layer::before,
.signal-layer::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.42;
  background-image:
    linear-gradient(90deg, rgba(25, 216, 137, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(25, 216, 137, 0.06) 1px, transparent 1px);
  background-size: 128px 128px;
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  animation: signalDrift 22s linear infinite;
}

.signal-layer::after {
  opacity: 0.18;
  background-size: 24px 160px;
  animation-duration: 14s;
  animation-direction: reverse;
}

@keyframes signalDrift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-128px, 128px, 0);
  }
}

button,
input,
select {
  font: inherit;
}

button,
select,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.sr-only,
.hero-copy--ambient > h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.control-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: 278px;
  flex-direction: column;
  gap: 18px;
  padding: 22px 18px;
  border-right: 1px solid var(--line);
  background: rgba(5, 8, 11, 0.88);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(25, 216, 137, 0.45);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(25, 216, 137, 0.28), rgba(108, 168, 255, 0.08));
  color: #fff;
  font-family: Oswald, Inter, sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.brand-lockup strong {
  display: block;
  font-size: 16px;
  line-height: 1.1;
}

.brand-lockup small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-nav a {
  min-height: 40px;
  display: flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 12px;
  color: #cdd8d4;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.side-nav a:hover,
.side-nav a:focus-visible {
  border-color: var(--line);
  background: var(--panel-soft);
  outline: 0;
}

.settings-panel {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.settings-panel label,
.search-control {
  display: grid;
  gap: 7px;
}

.settings-panel span,
.search-control span,
.source-note span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.settings-panel select,
.search-control input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.settings-panel option {
  background: #101820;
  color: var(--text);
}

.refresh-button,
.segmented button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.refresh-button {
  background: var(--green);
  color: #06110c;
}

.source-note {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.source-note p {
  margin: 8px 0 0;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.45;
}

.app-shell {
  width: min(1580px, 100%);
  margin: 0 auto;
  padding: 28px 30px 56px 308px;
}

.hero-stage {
  min-height: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
}

.hero-copy,
.hero-match,
.market-console,
.section-block,
.command-bar {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(26px, 4vw, 54px);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    linear-gradient(135deg, rgba(25, 216, 137, 0.12), rgba(108, 168, 255, 0.06)),
    var(--panel);
}

.hero-copy--ambient {
  display: none;
}

.hero-copy--ambient::before {
  content: none;
}

.hero-copy--ambient > .eyebrow,
.hero-copy--ambient > p[data-i18n="heroBody"] {
  display: none;
}

.eyebrow {
  margin: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 820px;
  margin: 10px 0 0;
  font-family: Oswald, Inter, sans-serif;
  font-size: clamp(46px, 7vw, 96px);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy p:last-child {
  max-width: 650px;
  margin: 18px 0 0;
  color: #b7c5c0;
  font-size: 17px;
  line-height: 1.55;
}

.hero-match {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 126px;
  padding: 14px 16px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.hero-match .panel-heading {
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 0;
}

.panel-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.panel-heading strong,
.status-chip,
.group-chip {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
}

.panel-heading strong {
  border: 1px solid rgba(25, 216, 137, 0.34);
  background: var(--green-soft);
  color: var(--green);
}

.featured-match {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1fr);
  align-items: center;
  gap: 14px;
}

.featured-teams {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 84px minmax(120px, 1fr);
  gap: 12px;
  align-items: center;
}

.featured-team {
  min-width: 0;
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: left;
}

.featured-team:last-child {
  flex-direction: row-reverse;
  justify-content: flex-start;
  text-align: right;
}

.flag {
  width: 52px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  object-fit: cover;
  background: #18231f;
}

.featured-team .flag {
  width: 58px;
  height: 40px;
}

.featured-team strong {
  max-width: 100%;
  overflow: hidden;
  font-family: Arial, sans-serif;
  font-size: clamp(14px, 1.05vw, 15px);
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured-team:last-child strong {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(16px, 1.25vw, 18px);
  font-weight: 800;
}

.kickoff-core {
  display: grid;
  min-width: 84px;
  place-items: center;
  gap: 4px;
  color: var(--yellow);
  font-family: Manrope, Inter, sans-serif;
  font-size: 20px;
  font-weight: 900;
}

.kickoff-core span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.featured-meta {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 8px;
}

.featured-meta > div,
.metric-strip div,
.team-stat,
.market-rank,
.focus-stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.featured-meta > div {
  padding: 9px 10px;
}

.featured-meta > div > span,
.team-stat span,
.focus-stat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.featured-meta > div > strong,
.team-stat strong,
.focus-stat strong {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured-meta > div > strong {
  font-size: 13px;
}

.featured-probability-card {
  min-width: 0;
}

.featured-probabilities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 7px;
}

.featured-probability {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 5px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.055);
}

.featured-probability b,
.featured-probability strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured-probability b {
  color: #dce8e3;
  font-size: 11px;
  font-weight: 900;
}

.featured-probability strong {
  color: var(--green);
  font-size: 13px;
  font-weight: 1000;
}

.featured-probability--draw strong {
  color: var(--yellow);
}

.featured-probability--away strong {
  color: #8cbcff;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.metric-strip div {
  min-height: 78px;
  padding: 10px 12px;
}

.metric-strip span {
  display: block;
  font-family: Oswald, Inter, sans-serif;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  line-height: 1;
}

#metric-top-price {
  font-family: system-ui, sans-serif;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 850;
  line-height: 1.05;
}

.metric-strip p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.command-bar {
  position: sticky;
  top: 12px;
  z-index: 12;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
  padding: 14px;
}

.segmented {
  display: inline-grid;
  grid-template-columns: repeat(4, auto);
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.segmented [data-match-filter="today"] {
  order: 1;
}

.segmented [data-match-filter="all"] {
  order: 4;
}

.segmented [data-match-filter="upcoming"] {
  order: 2;
}

.segmented [data-match-filter="finished"] {
  order: 3;
}

.segmented button {
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
}

.segmented button.active {
  background: var(--text);
  color: #09100d;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: 18px;
  align-items: start;
  margin-top: 26px;
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}

.row-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.match-list {
  display: grid;
  gap: 10px;
}

.match-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 120px 92px;
  gap: 12px;
  align-items: center;
  min-height: 86px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.match-row.today {
  border-color: rgba(244, 200, 75, 0.4);
}

.match-row.finished {
  border-color: rgba(25, 216, 137, 0.28);
}

.date-block {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.date-block strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}

.match-main {
  min-width: 0;
}

.match-teams {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.team-inline {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.team-inline:last-child {
  justify-content: end;
}

.team-inline b,
.team-cell span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score {
  min-width: 68px;
  border-radius: 8px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--yellow);
  font-weight: 900;
  text-align: center;
}

.match-meta {
  margin-top: 8px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.date-block,
.venue-line,
.status-chip {
  min-width: 0;
}

.venue-line {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-chip {
  background: rgba(108, 168, 255, 0.12);
  color: #a8caff;
}

.status-chip.finished {
  background: var(--green-soft);
  color: var(--green);
}

.status-chip.today {
  background: rgba(244, 200, 75, 0.14);
  color: var(--yellow);
}

.status-chip.upcoming {
  background: rgba(108, 168, 255, 0.12);
  color: var(--blue);
}

.analytics-column {
  position: sticky;
  top: 92px;
  min-width: 0;
  display: grid;
  gap: 14px;
}

.primary-column {
  min-width: 0;
}

.market-console,
.section-block {
  padding: 16px;
}

.console-note {
  margin: 0 0 12px;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.45;
}

.market-top-three {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.market-rank {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px;
}

.market-rank b,
.market-rank span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-rank span {
  color: var(--green);
  font-weight: 900;
}

.market-table-wrap {
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.market-table-wrap thead {
  display: none;
}

.match-probability-shell td {
  padding: 0;
  border-bottom: 0;
}

.match-probability-list {
  display: grid;
  gap: 10px;
  padding: 10px;
}

.match-probability-intro {
  display: grid;
  gap: 5px;
  padding: 4px 2px 2px;
}

.match-probability-intro strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.match-probability-intro span {
  color: var(--dim);
  font-size: 11px;
  line-height: 1.35;
}

.match-probability-card {
  display: grid;
  gap: 9px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.match-probability-head,
.match-probability-teams,
.probability-team {
  min-width: 0;
}

.match-probability-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.match-probability-head strong {
  color: #a8caff;
}

.match-probability-teams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.probability-team {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.probability-team--draw {
  grid-column: 1 / -1;
  border: 1px solid rgba(255, 214, 102, 0.18);
  background: rgba(255, 214, 102, 0.075);
}

.probability-team .flag {
  width: 38px;
  height: 26px;
}

.draw-badge {
  display: grid;
  width: 38px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(255, 214, 102, 0.35);
  border-radius: 6px;
  background: rgba(255, 214, 102, 0.1);
  color: var(--yellow);
  font-size: 13px;
  font-weight: 1000;
}

.probability-team span,
.probability-team small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.probability-team span {
  color: #e4efea;
  font-size: 13px;
  font-weight: 900;
}

.probability-team strong {
  color: var(--yellow);
  font-size: 13px;
  font-weight: 900;
}

.probability-team small {
  grid-column: 2 / 4;
  color: var(--dim);
  font-size: 10px;
  font-weight: 800;
}

.match-probability-bar {
  display: flex;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(108, 168, 255, 0.22);
}

.match-probability-bar i {
  display: block;
  width: 50%;
  height: 100%;
}

.match-probability-bar .bar-home {
  background: var(--green);
}

.match-probability-bar .bar-draw {
  background: var(--yellow);
}

.match-probability-bar .bar-away {
  background: #6ca8ff;
}

.match-probability-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #101820;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

td {
  color: #d7e3df;
  font-size: 13px;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.team-cell {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-focus {
  display: grid;
  gap: 12px;
}

.focus-head {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.focus-head .flag {
  width: 74px;
  height: 50px;
}

.focus-head strong {
  display: block;
  font-size: 18px;
}

.focus-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.focus-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.focus-stat {
  padding: 10px;
}

.fixture-mini,
.squad-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fixture-mini li,
.squad-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: #cbd8d3;
  font-size: 12px;
}

.section-block {
  margin-top: 28px;
}

.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}

.group-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.group-table h3 {
  margin: 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 14px;
}

.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.team-card {
  min-height: 124px;
  display: grid;
  align-content: start;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  cursor: default;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.team-card:hover {
  border-color: rgba(25, 216, 137, 0.52);
  background: rgba(25, 216, 137, 0.075);
  transform: translateY(-2px);
}

.team-card-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.team-card h3 {
  margin: 0;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.odds-meter {
  display: grid;
  gap: 7px;
}

.odds-meter span {
  color: #d9e6e1;
  font-size: 12px;
  font-weight: 900;
}

.meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.meter i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--yellow));
}

.empty,
.source-link {
  color: var(--muted);
  font-size: 13px;
}

.source-link {
  color: var(--green);
  font-weight: 900;
}

@media (max-width: 1180px) {
  .control-rail {
    position: static;
    width: auto;
    min-height: auto;
  }

  .player-backdrop-track {
    inset-inline: -22vw;
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }

  .app-shell {
    padding: 20px;
  }

  .settings-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    margin-top: 0;
  }

  .hero-stage,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .analytics-column,
  .command-bar {
    position: static;
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 14px;
  }

  .control-rail {
    padding: 14px;
  }

  .player-backdrop-track {
    inset: -12vh -36vw auto -20vw;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 12px;
    opacity: 0.38;
  }

  .hero-copy--ambient {
    min-height: 240px;
  }

  .side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-panel,
  .command-bar,
  .metric-strip,
  .featured-meta,
  .focus-stats {
    grid-template-columns: 1fr;
  }

  .hero-match,
  .featured-match {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .segmented {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-copy h1 {
    font-size: clamp(36px, 13vw, 56px);
  }

  .featured-teams,
  .match-row,
  .match-teams {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .team-inline:last-child {
    justify-content: start;
  }

  .featured-team:last-child {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
  }

  .score {
    width: fit-content;
    min-width: 58px;
  }

  .market-table-wrap {
    max-height: none;
  }

  .match-probability-teams {
    grid-template-columns: 1fr;
  }

  .match-row,
  .market-console,
  .section-block,
  .command-bar {
    padding: 12px;
  }

  th,
  td {
    padding: 8px 7px;
  }

  .groups-grid,
  .teams-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
