.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 0.7fr);
  align-items: end;
  gap: clamp(2rem, 7vw, 6rem);
  padding-block: clamp(4rem, 10vw, 8rem);
}

.hero__lead {
  max-width: 45rem;
  color: var(--color-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.hero__summary {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel-overlay-soft);
  box-shadow: var(--shadow-card);
}

.summary-item {
  display: grid;
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.summary-item:last-child {
  border-bottom: 0;
}

.summary-item strong {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.summary-item span {
  color: var(--color-muted);
  font-size: 0.8rem;
}

.summary-item small {
  display: block;
  font-size: inherit;
}

.content-section {
  padding-block: var(--space-5);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.section-heading--compact {
  margin-bottom: var(--space-3);
}

.section-heading h2 {
  margin-bottom: 0;
}

.page-heading {
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: var(--space-4);
}

.page-heading h1 {
  margin-bottom: var(--space-2);
  font-size: clamp(2.3rem, 5vw, 4rem);
}

.page-heading > p:last-child {
  max-width: 45rem;
  color: var(--color-muted);
}

.match-results {
  min-height: 15rem;
}

.match-detail {
  display: grid;
  gap: var(--space-4);
}

.scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-5);
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--color-surface-raised), var(--color-surface));
  box-shadow: var(--shadow-card);
}

.scoreboard__team {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  text-align: center;
}

.scoreboard__center {
  display: grid;
  justify-items: center;
  gap: var(--space-2);
}

.scoreboard__score {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.06em;
}

.scoreboard__penalty {
  color: var(--color-accent);
  font-size: 1rem;
}

.match-result__notice {
  max-width: 20rem;
  color: var(--color-muted);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
}

.metadata-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.metadata-grid > div {
  padding: var(--space-4);
  border-right: 1px solid var(--color-border);
}

.metadata-grid > div:last-child {
  border-right: 0;
}

.metadata-grid dt {
  margin-bottom: 0.35rem;
  color: var(--color-muted);
  font-size: 0.75rem;
}

.metadata-grid dd {
  margin: 0;
  font-weight: 750;
}

.error-page {
  display: grid;
  min-height: 65vh;
  place-items: start;
  align-content: center;
}

.error-page p {
  max-width: 36rem;
  color: var(--color-muted);
}

.auth-shell {
  max-width: 42rem;
}

.auth-panel,
.stack-form {
  display: grid;
  gap: var(--space-4);
}

.stack-form label {
  display: grid;
  gap: var(--space-2);
  color: var(--color-muted);
  font-weight: 700;
}

.stack-form input,
.stack-form textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  background: var(--color-surface);
}

.stack-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-message {
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.form-message--error {
  border-color: var(--color-danger);
}

.form-message--success {
  border-color: var(--color-accent);
}

.account-actions,
.identity-nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.entity-heading__identity {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.entity-heading__identity h1 {
  margin-bottom: var(--space-1);
}

.entity-heading__identity p:last-child {
  margin-bottom: 0;
  color: var(--color-muted);
}

.page-heading h1 a,
.page-heading .eyebrow a {
  text-decoration: none;
}

.page-heading h1 a:hover,
.page-heading .eyebrow a:hover {
  color: var(--color-accent);
}

.catalog-results {
  min-height: 15rem;
}

.intelligence-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.intelligence-comparison--single {
  grid-template-columns: minmax(0, 1fr);
}

.intelligence-team {
  display: grid;
  min-width: 0;
  gap: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.intelligence-team__heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--space-3);
}

.intelligence-team__heading h3 {
  margin-bottom: 0;
}

.intelligence-team__identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: var(--space-2);
}

.intelligence-team__identity > div {
  min-width: 0;
}

.intelligence-team__identity h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-strip--intelligence {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.form-strip--intelligence .form-result {
  min-height: 7rem;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.form-strip--intelligence .form-result strong {
  grid-row: auto;
}

.match-center {
  padding-top: clamp(1.25rem, 3vw, 2.5rem);
}

.match-center__back {
  margin-bottom: var(--space-3);
}

.match-hero {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius-lg) + 0.25rem);
  background:
    radial-gradient(circle at 50% 30%, var(--color-accent-soft), transparent 23rem),
    linear-gradient(145deg, var(--color-card-start-strong), var(--color-card-end-strong));
  box-shadow: var(--shadow-card);
}

.match-hero__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) clamp(1rem, 4vw, 2rem);
  border-bottom: 1px solid var(--color-border);
}

.match-hero__meta .eyebrow {
  margin-bottom: 0.25rem;
}

.match-hero__tournament {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 850;
  text-decoration: none;
}

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

.match-hero__when {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  color: var(--color-muted);
  font-size: 0.85rem;
  text-align: right;
}

.match-hero__when > span:first-child {
  display: grid;
  gap: 0.2rem;
}

.match-hero__when small {
  color: var(--color-muted);
  font-size: 0.7rem;
}

.match-hero__fixture {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(9rem, 0.7fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 5vw, 4rem);
  padding: clamp(1.75rem, 6vw, 4.5rem) clamp(1rem, 5vw, 4rem) var(--space-5);
}

.match-hero__team {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: var(--space-2);
  text-align: center;
}

.match-hero__team h1,
.match-hero__team h2 {
  max-width: 18rem;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(1rem, 2.7vw, 1.75rem);
}

.match-hero__side {
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-emblem--hero {
  width: clamp(4.5rem, 10vw, 7rem);
  height: clamp(4.5rem, 10vw, 7rem);
  font-size: clamp(1.3rem, 3vw, 2rem);
  box-shadow: var(--shadow-emblem);
}

.match-hero__scoreboard {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: var(--space-2);
  text-align: center;
}

.match-hero__score {
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  font-weight: 950;
  letter-spacing: -0.07em;
  line-height: 1;
  white-space: nowrap;
}

.live-minute {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  color: var(--color-bg);
  background: var(--color-warning);
  font-size: 0.78rem;
  font-weight: 900;
}

.match-hero__penalty {
  color: var(--color-accent);
  font-size: clamp(0.8rem, 1.8vw, 1rem);
  font-weight: 850;
}

.odds-strip {
  width: min(100% - 2rem, 31rem);
  margin: 0 auto clamp(1.25rem, 4vw, 2rem);
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel-overlay-strong);
}

.odds-strip__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.odds-strip__heading h2 {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.odds-strip__heading span,
.odds-strip__snapshot {
  color: var(--color-muted);
  font-size: 0.7rem;
}

.odds-strip__line {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.odds-strip__line div {
  padding: 0.35rem var(--space-2);
  border-right: 1px solid var(--color-border);
  text-align: center;
}

.odds-strip__line div:last-child {
  border-right: 0;
}

.odds-strip__line dt {
  color: var(--color-muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.odds-strip__line dd {
  margin: 0.15rem 0 0;
  font-size: 1.05rem;
  font-weight: 900;
}

.odds-strip__snapshot,
.odds-strip__empty {
  margin: var(--space-2) 0 0;
  text-align: center;
}

.odds-strip__empty {
  color: var(--color-muted);
  font-size: 0.82rem;
}

.content-section--prominent {
  padding-top: var(--space-4);
}

.valbro-prediction {
  overflow: hidden;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid color-mix(in srgb, var(--color-accent) 36%, var(--color-border));
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0, var(--color-accent-soft), transparent 24rem),
    var(--color-surface);
  box-shadow: var(--shadow-card);
}

.valbro-prediction__heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.valbro-prediction__heading h2 {
  margin-bottom: 0;
}

.valbro-prediction--empty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-4);
  border-style: dashed;
}

.valbro-prediction--empty h2 {
  margin-bottom: var(--space-3);
}

.valbro-prediction--empty h3 {
  margin-bottom: var(--space-2);
  font-size: 1.05rem;
}

.valbro-prediction--empty p:last-child {
  max-width: 52rem;
  margin-bottom: 0;
  color: var(--color-muted);
}

.valbro-prediction__mark {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  place-items: center;
  border-radius: 1rem;
  color: var(--color-accent-ink);
  background: var(--color-accent);
  font-weight: 950;
}

.probability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.probability-grid > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2);
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--color-surface-raised);
}

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

.probability-grid strong {
  font-size: 1.2rem;
}

.probability-grid progress {
  width: 100%;
  height: 0.45rem;
  grid-column: 1 / -1;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--color-bg);
  accent-color: var(--color-accent);
}

.prediction-lead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin: var(--space-4) 0;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.prediction-lead span {
  color: var(--color-muted);
}

.prediction-markets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: var(--space-2);
  margin: var(--space-4) 0;
}

.prediction-markets div {
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--color-surface-soft);
}

.prediction-markets dt {
  color: var(--color-muted);
  font-size: 0.72rem;
}

.prediction-markets dd {
  margin: 0.2rem 0 0;
  font-size: 1.15rem;
  font-weight: 900;
}

.prediction-factors ul {
  margin-bottom: var(--space-4);
  padding-left: 1.2rem;
}

.prediction-disclaimer {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.78rem;
}

.event-timeline {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.event-timeline__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.5rem minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
}

.event-timeline__item time {
  grid-column: 2;
  grid-row: 1;
  color: var(--color-accent);
  font-weight: 900;
  text-align: center;
}

.event-timeline__content {
  display: grid;
  gap: 0.15rem;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}

.event-timeline__content span,
.event-timeline__content small {
  color: var(--color-muted);
}

.event-timeline__item--home .event-timeline__content {
  grid-column: 1;
  grid-row: 1;
  text-align: right;
}

.event-timeline__item--away .event-timeline__content {
  grid-column: 3;
  grid-row: 1;
}

.match-statistics {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.match-statistics__header,
.match-statistics__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(9rem, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.match-statistics__header {
  color: var(--color-muted);
  background: var(--color-surface-raised);
  font-size: 0.75rem;
}

.match-statistics__row:last-child {
  border-bottom: 0;
}

.match-statistics__row {
  position: relative;
  grid-template-rows: auto auto;
}

.match-statistics__row > span {
  color: var(--color-muted);
  font-size: 0.82rem;
}

.comparison-bars {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.comparison-bars progress {
  width: 100%;
  height: 0.28rem;
  border: 0;
  accent-color: var(--color-accent);
}

.comparison-bars__home {
  direction: rtl;
}

.comparison-bars__away {
  accent-color: var(--color-info) !important;
}

.match-statistics__header > span:first-child,
.match-statistics__header > span:last-child {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: var(--space-2);
}

.match-statistics__header > span:last-child {
  justify-content: flex-end;
}

.match-statistics__header .team-emblem {
  flex: 0 0 auto;
}

.match-statistics__header > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-comparison {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 0, var(--color-accent-softer), transparent 18rem),
    var(--color-surface);
  box-shadow: inset 0 0 0 1px var(--color-border);
}

.summary-comparison__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(6.5rem, 0.55fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-panel-overlay-soft);
}

.summary-comparison__team {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: var(--space-2);
  font-size: clamp(0.85rem, 2vw, 1.05rem);
}

.summary-comparison__team > span:not(.team-emblem) {
  min-width: 0;
  overflow-wrap: anywhere;
}

.summary-comparison__team--away {
  justify-content: flex-end;
  text-align: right;
}

.summary-comparison__team .team-emblem {
  flex: 0 0 auto;
}

.summary-comparison__sample {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  color: var(--color-muted);
  text-align: center;
}

.summary-comparison__sample strong {
  color: var(--color-text);
  font-size: 0.82rem;
}

.summary-comparison__sample small {
  font-size: 0.65rem;
}

.summary-comparison__metrics {
  display: grid;
  gap: 0.45rem;
  padding: var(--space-3);
}

.summary-metric {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(8rem, 0.8fr) minmax(0, 1fr);
  align-items: stretch;
  gap: var(--space-2);
}

.summary-metric__value {
  position: relative;
  display: grid;
  min-height: 3.55rem;
  align-content: center;
  gap: 0.1rem;
  padding: 0.5rem 0.7rem;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--color-panel-overlay);
}

.summary-metric__value::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.2rem;
  content: "";
}

.summary-metric__value--away {
  text-align: right;
}

.summary-metric__value--away::after {
  inset: 0 0 0 auto;
}

.summary-metric__value--advantage {
  background: linear-gradient(90deg, var(--color-accent-soft), var(--color-panel-overlay));
}

.summary-metric__value--away.summary-metric__value--advantage {
  background: linear-gradient(270deg, var(--color-accent-soft), var(--color-panel-overlay));
}

.summary-metric__value--advantage::after {
  background: var(--color-accent);
}

.summary-metric__value strong {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  line-height: 1.1;
}

.summary-metric__value small {
  color: var(--color-muted);
  font-size: 0.68rem;
}

.summary-metric__label {
  display: grid;
  place-items: center;
  color: var(--color-muted);
  font-size: 0.75rem;
  font-weight: 750;
  text-align: center;
}

.match-statistics__category {
  padding: 0.6rem var(--space-4);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-accent);
  background: var(--color-accent-softer);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.match-center-tabs-panel {
  padding-top: var(--space-4);
}

.match-center-tabs {
  display: flex;
  max-width: 100%;
  overflow-x: auto;
  border-bottom: 1px solid var(--color-border);
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
}

.match-center-tabs a {
  flex: 0 0 auto;
  padding: 0.8rem 1rem;
  border-bottom: 2px solid transparent;
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.match-center-tabs a[aria-current="page"] {
  border-bottom-color: var(--color-accent);
  color: var(--color-accent);
}

.match-center-tab-content {
  min-height: 1px;
}

.form-summary {
  margin-top: var(--space-5);
}

.form-summary h3 {
  margin: 0;
}

.results-range {
  margin: 0.25rem 0 0;
  color: var(--color-muted);
  font-size: 0.82rem;
}

.trend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.trend-card {
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.trend-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--space-3);
}

.trend-card ul {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-3) 0 0;
  padding-left: 1.2rem;
  color: var(--color-muted);
}

.trend-card strong {
  color: var(--color-text);
}

.match-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: var(--space-3);
  margin: 0;
}

.match-details-grid > div {
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.match-details-grid dt {
  color: var(--color-muted);
  font-size: 0.75rem;
}

.match-details-grid dd {
  margin: var(--space-1) 0 0;
  font-weight: 800;
}
