:root {
  color-scheme: dark;
  --bg: #05070b;
  --bg-2: rgba(255, 255, 255, .055);
  --bg-3: rgba(255, 255, 255, .09);
  --card: rgba(13, 18, 30, .72);
  --card-2: rgba(255, 255, 255, .06);
  --text: #f8fafc;
  --muted: rgba(248, 250, 252, .68);
  --soft: rgba(248, 250, 252, .42);
  --line: rgba(255, 255, 255, .12);
  --green: #22c55e;
  --cyan: #22d3ee;
  --amber: #f59e0b;
  --red: #f43f5e;
  --violet: #8b5cf6;
  --shadow: 0 28px 90px rgba(0, 0, 0, .42);
  --radius: 24px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f7fb;
  --bg-2: rgba(255, 255, 255, .72);
  --bg-3: rgba(15, 23, 42, .065);
  --card: rgba(255, 255, 255, .78);
  --card-2: rgba(255, 255, 255, .9);
  --text: #0f172a;
  --muted: rgba(15, 23, 42, .68);
  --soft: rgba(15, 23, 42, .42);
  --line: rgba(15, 23, 42, .12);
  --shadow: 0 28px 80px rgba(15, 23, 42, .13);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% -10%, rgba(34, 211, 238, .2), transparent 34rem),
    radial-gradient(circle at 82% 8%, rgba(139, 92, 246, .2), transparent 32rem),
    linear-gradient(135deg, var(--bg), color-mix(in srgb, var(--bg) 86%, #0f766e));
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(120deg, transparent 0 35%, rgba(34, 197, 94, .11), transparent 65% 100%),
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 100% 100%, 42px 42px, 42px 42px;
  animation: bgShift 18s var(--ease) infinite alternate;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.sport-hdr {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(22px);
}

.sport-hdr-inner {
  width: min(1180px, calc(100% - 32px));
  height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.sport-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 900;
  letter-spacing: 0;
}

.sport-logo span { font-size: 20px; }
.sport-logo i { color: var(--cyan); font-style: normal; font: 700 12px JetBrains Mono, monospace; text-transform: uppercase; }

.sport-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
}

.sport-nav a,
.mobile-panel a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}

.sport-nav a:hover,
.sport-nav a.on,
.mobile-panel a:hover,
.mobile-panel a.on {
  color: var(--text);
  background: var(--bg-3);
}

.sport-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn,
.menu-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: var(--bg-2);
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}

.icon-btn:hover,
.menu-btn:hover,
.sp-chip:hover,
.mc:hover,
.an-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(34, 211, 238, .13);
}

.menu-btn { display: none; }

.mobile-panel {
  position: fixed;
  inset: 74px 16px auto;
  z-index: 30;
  display: none;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.mobile-panel.on { display: grid; gap: 6px; }

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.sport-hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  align-items: center;
  gap: 42px;
  padding: 48px 0 40px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font: 800 12px JetBrains Mono, monospace;
  letter-spacing: 0;
  text-transform: uppercase;
}

.live-dot,
.badge-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(34, 197, 94, .14);
  animation: pulseDot 1.4s ease-in-out infinite;
}

.hero-copy h1 {
  max-width: 780px;
  margin: 18px 0 18px;
  font-size: clamp(42px, 7vw, 92px);
  line-height: .92;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-stats div {
  min-width: 118px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-2);
  backdrop-filter: blur(18px);
}

.hero-stats strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.hero-stats span,
.soft-note,
.an-note,
.api-stack,
.hist-date {
  color: var(--muted);
  font: 600 12px JetBrains Mono, monospace;
}

.featured-match-card,
.sport-board,
.an-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px);
}

.featured-match-card {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  padding: 24px;
}

.featured-match-card::before,
.mc::before {
  position: absolute;
  inset: -1px;
  content: "";
  background: linear-gradient(135deg, rgba(34, 211, 238, .18), transparent 35%, rgba(139, 92, 246, .18));
  opacity: .72;
  pointer-events: none;
}

.featured-empty {
  height: 380px;
  display: grid;
  place-items: center;
  color: var(--soft);
}

.fmc-header,
.mc-hdr,
.an-card-head,
.board-head,
.sport-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.fmc-header,
.mc-hdr {
  position: relative;
  z-index: 1;
  padding-bottom: 18px;
  color: var(--muted);
  font: 700 12px JetBrains Mono, monospace;
}

.fmc-body { position: relative; z-index: 1; }

.fmc-teams {
  min-height: 230px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}

.fmc-team,
.mc-team {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.fmc-logo,
.mc-logo {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card-2);
  font-size: 28px;
}

.fmc-logo img,
.mc-logo img,
.detail-logo img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  display: block;
}

.fmc-score-wrap,
.mc-score-center {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.mc-score,
.fmc-score-wrap .mc-score {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.fmc-score-wrap .mc-score { font-size: 48px; }
.mc-kickoff { max-width: 132px; color: var(--muted); font-size: 15px; line-height: 1.35; text-align: center; }
.live-score { color: var(--green); text-shadow: 0 0 24px rgba(34, 197, 94, .28); }
.live-time { color: var(--green); }
.mc-time { font: 700 12px JetBrains Mono, monospace; color: var(--muted); }

.fmc-stats,
.mc-stats {
  display: grid;
  gap: 10px;
}

.sport-board,
.analytics-section,
.standings-section {
  margin: 0 0 34px;
  padding: 28px;
}

.board-head h2,
.analytics-section h2,
.standings-section h2 {
  margin: 8px 0 0;
  font-size: 34px;
  line-height: 1;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.search-box,
.toolbar select,
.view-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--text);
}

.search-box { padding: 0 14px; }
.search-box input {
  width: min(240px, 38vw);
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.toolbar select {
  padding: 0 14px;
  outline: 0;
}

.view-toggle { padding: 4px; }
.view-toggle button {
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
}

.view-toggle button.on {
  color: var(--text);
  background: var(--bg-3);
}

.sport-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.sp-chip {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--bg-2);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}

.sp-chip.on {
  color: var(--text);
  background: linear-gradient(135deg, rgba(34, 197, 94, .24), rgba(34, 211, 238, .18));
  border-color: rgba(34, 211, 238, .3);
}

.sp-count {
  min-width: 22px;
  min-height: 22px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--bg-3);
  font: 700 11px JetBrains Mono, monospace;
}

.matches-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 380px);
  grid-template-columns: none;
  gap: 18px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.matches-grid.list-view {
  grid-auto-flow: row;
  grid-auto-columns: auto;
  grid-template-columns: 1fr;
  overflow-x: visible;
}

.matches-grid.is-refreshing {
  opacity: .72;
}

.mc {
  position: relative;
  overflow: hidden;
  min-height: 318px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card-2);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  cursor: pointer;
  scroll-snap-align: start;
}

.mc > * { position: relative; z-index: 1; }
.mc-hdr { padding: 18px 18px 0; }
.mc-tournament { display: flex; align-items: center; gap: 8px; min-width: 0; }

.mc-badge {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border-radius: 999px;
  font: 800 10px JetBrains Mono, monospace;
  text-transform: uppercase;
}

.badge-live { color: var(--green); background: rgba(34, 197, 94, .12); }
.badge-soon { color: var(--cyan); background: rgba(34, 211, 238, .12); }
.badge-fin { color: var(--soft); background: var(--bg-3); }

.mc-body {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 22px 18px;
}

.mc-teams-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.mc-tname,
.fmc-tname {
  max-width: 130px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.mc-footer {
  padding: 0 18px 18px;
}

.mc-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
}

.mc-tab {
  flex: 1;
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.mc-tab.on {
  color: var(--text);
  background: var(--bg-3);
}

.mc-tab-content {
  display: none;
  padding-top: 14px;
}

.mc-tab-content.show { display: block; animation: fadeUp .28s var(--ease) both; }

.mc-pred {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.pred-opt {
  position: relative;
  overflow: hidden;
  min-height: 74px;
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  background: var(--bg-2);
  text-align: left;
}

.pred-opt.sel {
  border-color: rgba(34, 211, 238, .45);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .12);
}

.pred-label { color: var(--muted); font-size: 12px; font-weight: 800; }
.pred-pct { font-size: 22px; font-weight: 900; }
.pred-bar {
  position: absolute;
  inset: auto auto 0 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  transition: width .7s var(--ease);
}

.mcs-row,
.hist-row,
.form-row {
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font: 700 12px JetBrains Mono, monospace;
}

.mcs-row > span:last-child,
.hist-row > span:last-child { text-align: right; }
.mcs-label { margin-bottom: 4px; color: var(--soft); text-align: center; font-size: 10px; }
.mcs-track {
  height: 6px;
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  background: var(--bg-3);
}

.mcs-l { background: linear-gradient(90deg, var(--green), var(--cyan)); }
.mcs-r { background: linear-gradient(90deg, var(--violet), var(--red)); }

.hist-row {
  grid-template-columns: 62px 1fr 62px 28px;
}

.hist-res {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 10px;
}

.hr-w,
.fg-w { color: var(--green); background: rgba(34, 197, 94, .13); }
.hr-d,
.fg-d { color: var(--amber); background: rgba(245, 158, 11, .13); }
.hr-l,
.fg-l { color: var(--red); background: rgba(244, 63, 94, .13); }

.analytics-section {
  padding: 28px 0 70px;
}

.standings-section {
  padding: 0 0 82px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.an-card {
  min-height: 230px;
  padding: 20px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.an-card-title { font-size: 16px; font-weight: 900; }
.an-badge {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(34, 197, 94, .12);
  font: 800 10px JetBrains Mono, monospace;
}

.an-badge.cyan { color: var(--cyan); background: rgba(34, 211, 238, .12); }
.an-badge.danger { color: var(--red); background: rgba(244, 63, 94, .12); }
.form-stack,
.api-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.api-key-box {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font: 800 11px JetBrains Mono, monospace;
  text-transform: uppercase;
}

.api-warning {
  padding: 12px;
  border: 1px solid rgba(244, 63, 94, .28);
  border-radius: 14px;
  color: var(--red);
  background: rgba(244, 63, 94, .08);
  font-size: 13px;
  line-height: 1.45;
}

.standings-card {
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04));
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.standing-head,
.standing-row {
  display: grid;
  grid-template-columns: 52px minmax(160px, 1fr) repeat(5, minmax(42px, 58px));
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
}

.standing-head {
  color: var(--muted);
  background: rgba(255, 255, 255, .06);
  font: 800 11px JetBrains Mono, monospace;
  text-transform: uppercase;
}

.standing-row {
  border-top: 1px solid var(--line);
  transition: background .2s var(--ease), transform .2s var(--ease);
}

.standing-row:hover {
  background: rgba(255, 255, 255, .055);
  transform: translateY(-1px);
}

.standing-rank,
.standing-points {
  font-weight: 900;
}

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

.standing-team img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 auto;
}

.standing-team strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-key-box input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  padding: 0 12px;
  color: var(--text);
  background: var(--bg-2);
}

.api-key-box input:focus {
  border-color: rgba(34, 211, 238, .5);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .12);
}

.api-save-btn {
  width: 100%;
}

.form-row {
  grid-template-columns: 1fr auto;
  margin: 0;
}

.form-row b {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-left: 4px;
  border-radius: 50%;
  font-size: 10px;
}

.donut-wrap {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 18px;
  margin: 20px 0;
}

.donut-score {
  width: 106px;
  height: 106px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--green) 0 46%, var(--amber) 46% 72%, var(--red) 72% 100%);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.donut-labels {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.dl-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
}

.green { background: var(--green); }
.amber { background: var(--amber); }
.red { background: var(--red); }

.skeleton {
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bg-3), rgba(255, 255, 255, .16), var(--bg-3));
  background-size: 200% 100%;
  animation: shimmer 1.25s linear infinite;
}

.skeleton-card { pointer-events: none; }
.sk-w1 { width: 136px; height: 16px; }
.sk-badge { width: 62px; height: 26px; }
.sk-logo { width: 64px; height: 64px; border-radius: 50%; }
.sk-name { width: 76px; height: 14px; }
.sk-score { width: 80px; height: 38px; border-radius: 12px; }

.empty-state {
  grid-column: 1 / -1;
  min-height: 260px;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 1px dashed var(--line);
  border-radius: 22px;
  color: var(--muted);
  text-align: center;
}

.es-ico { font-size: 34px; }

.sportdb-empty {
  padding: 26px;
}

.es-help {
  max-width: 760px;
  color: var(--soft);
  font: 700 12px/1.6 JetBrains Mono, monospace;
}

.es-help strong {
  color: var(--text);
}

.score-changed.changed.pulse {
  animation: scorePulse .7s var(--ease);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  transform: translateY(16px);
  opacity: 0;
  max-width: min(360px, calc(100% - 32px));
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  pointer-events: none;
  transition: transform .28s var(--ease), opacity .28s var(--ease);
}

.toast.on {
  transform: translateY(0);
  opacity: 1;
}

.sport-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.sport-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.match-detail-main {
  padding: 30px 0 70px;
}

.match-mini-nav {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px;
  color: var(--muted);
  font: 800 12px JetBrains Mono, monospace;
  text-transform: uppercase;
}

.match-mini-nav a,
.detail-back,
.detail-refresh {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: var(--bg-2);
  font-weight: 800;
}

.match-detail-card,
.match-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px);
}

.match-detail-card {
  overflow: hidden;
  padding: 28px;
}

.detail-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.detail-top h1 {
  margin: 10px 0 0;
  font-size: clamp(32px, 5vw, 68px);
  line-height: .98;
  letter-spacing: 0;
}

.detail-scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  min-height: 330px;
  padding: 28px 0;
}

.detail-team {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.detail-logo {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card-2);
  font-size: 48px;
}

.detail-team-name {
  max-width: 250px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.detail-center {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.detail-score {
  min-width: 190px;
  font-size: clamp(54px, 9vw, 96px);
  font-weight: 900;
  line-height: .9;
  text-align: center;
}

.detail-time,
.detail-updated {
  color: var(--muted);
  font: 800 13px JetBrains Mono, monospace;
  text-align: center;
}

.detail-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.detail-refresh {
  color: var(--bg);
  background: linear-gradient(135deg, var(--green), var(--cyan));
}

.match-panels {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr .8fr;
  gap: 18px;
  margin-top: 18px;
}

.match-panel {
  min-height: 260px;
  padding: 20px;
}

.detail-stats,
.detail-events,
.detail-prediction {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.detail-stat-row {
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  align-items: center;
  gap: 12px;
  font: 800 12px JetBrains Mono, monospace;
}

.detail-stat-row > strong:last-child {
  text-align: right;
}

.detail-stat-row span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  text-align: center;
}

.event-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-2);
}

.event-minute {
  display: grid;
  place-items: center;
  height: 38px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(34, 197, 94, .12);
  font: 900 12px JetBrains Mono, monospace;
}

.event-row strong {
  font-size: 14px;
}

.event-row p,
.event-row small {
  display: block;
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.detail-pred-row {
  position: relative;
  overflow: hidden;
  min-height: 58px;
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-2);
}

.detail-pred-row strong {
  justify-self: end;
  font-size: 22px;
}

.detail-pred-row i {
  position: absolute;
  inset: auto auto 0 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  transition: width .7s var(--ease);
}

.detail-score-skeleton {
  width: 190px;
  height: 82px;
  border-radius: 20px;
}

.score-pop {
  animation: scorePulse .7s var(--ease);
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseDot {
  50% { box-shadow: 0 0 0 10px rgba(34, 197, 94, .04); }
}

@keyframes scorePulse {
  50% { transform: scale(1.08); filter: drop-shadow(0 0 18px rgba(34, 211, 238, .35)); }
}

@keyframes bgShift {
  from { transform: translate3d(-2%, -1%, 0); }
  to { transform: translate3d(2%, 1%, 0); }
}

@media (max-width: 980px) {
  .sport-nav { display: none; }
  .menu-btn { display: inline-grid; place-items: center; }
  .sport-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 44px;
  }
  .featured-match-card { min-height: 360px; }
  .analytics-grid,
  .match-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-head { align-items: flex-start; flex-direction: column; }
  .toolbar { justify-content: flex-start; width: 100%; }
}

@media (max-width: 680px) {
  main,
  .sport-hdr-inner,
  .sport-footer { width: min(100% - 22px, 1180px); }
  .sport-hdr-inner { height: 66px; }
  .mobile-panel { inset-top: 66px; }
  .sport-hero { padding-top: 28px; gap: 22px; }
  .hero-copy h1 { font-size: 43px; line-height: .96; }
  .hero-copy p { font-size: 15px; }
  .hero-stats div { flex: 1; min-width: 92px; padding: 13px; }
  .sport-board { padding: 18px; border-radius: 20px; }
  .analytics-grid,
  .match-panels { grid-template-columns: 1fr; }
  .standings-card { overflow-x: auto; }
  .standing-head,
  .standing-row { min-width: 620px; }
  .matches-grid { grid-auto-columns: minmax(280px, 86vw); }
  .toolbar,
  .search-box,
  .toolbar select,
  .view-toggle { width: 100%; }
  .search-box input { width: 100%; }
  .fmc-teams,
  .mc-teams-row { gap: 8px; }
  .fmc-score-wrap .mc-score { font-size: 36px; }
  .mc-score { font-size: 26px; }
  .mc-logo,
  .fmc-logo { width: 54px; height: 54px; font-size: 24px; }
  .mc-tabs { overflow-x: auto; }
  .mc-tab { min-width: 96px; }
  .mc-pred { grid-template-columns: 1fr; }
  .hist-row { grid-template-columns: 56px 1fr 58px 26px; font-size: 11px; }
  .donut-wrap { grid-template-columns: 1fr; }
  .sport-footer { align-items: flex-start; flex-direction: column; }
  .detail-top,
  .detail-scoreboard {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .detail-top {
    align-items: center;
    flex-direction: column;
  }
  .detail-logo {
    width: 88px;
    height: 88px;
    font-size: 38px;
  }
  .detail-team-name {
    font-size: 18px;
  }
  .detail-score {
    min-width: 0;
  }
}
