:root {
  color-scheme: dark;
  --ink: #f5f5f5;
  --muted: #b5bac5;
  --navy: #101115;
  --navy-light: #242126;
  --blue: #ff9b70;
  --sky: #ff8b55;
  --focus: #ff9b70;
  --line: #38353b;
  --divider: #29282e;
  --canvas: #0d0e12;
  --accent: #ff6b2c;
  --white: #fff;
  --panel: #191a1f;
  --surface: #121318;
  --blue-soft: #34231f;
  --blue-hover: #473027;
  --blue-border: #8a513b;
  --action-ink: #211007;
  --blue-gradient: linear-gradient(115deg, #ffb483, #ff8c53 45%, #ff6b2c);
  --sky-gradient: linear-gradient(112deg, #2d2829, #1b1b21 72%);
  --live-ink: #ff8096;
  --live-soft: #3b1627;
  --saved-ink: #ffda87;
  --saved-soft: #332716;
  --shadow: 0 14px 36px -20px #000c;
  font-family: Inter, "Leelawadee UI", "Noto Sans Thai", system-ui, sans-serif;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  position: relative;
  isolation: isolate;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 88% 14%, #2b201e 0, transparent 42rem),
    var(--canvas);
  font-size: 16px;
  line-height: 1.5;
}
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.shell { width: min(1200px, calc(100% - 88px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 5; top: 10px; left: 10px; padding: 10px 14px; border-radius: 8px; background: var(--blue); color: var(--action-ink); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  background: linear-gradient(100deg, #18181d, #0d0e12 37%, #151419);
  border-bottom: 1px solid var(--divider);
  box-shadow: 0 5px 18px #0005;
}
.site-header, .site-footer, .hero { --focus: var(--sky); }
.header-content { min-height: 75px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; width: fit-content; gap: 7px; align-items: center; font-size: 23px; font-weight: 800; line-height: 1.1; white-space: nowrap; }
.site-header .brand { color: var(--white); }
.brand-logo { display: block; width: 220px; max-width: 100%; height: auto; }
.site-nav { display: flex; align-self: stretch; gap: 35px; }
.nav-link { display: grid; place-items: center; position: relative; color: var(--muted); font-weight: 700; white-space: nowrap; }
.nav-link:hover, .nav-link[aria-current] { color: var(--sky); }
.nav-link[aria-current]::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); box-shadow: 0 -2px 11px #ff6b2c85; }
.favorites-link {
  display: inline-flex; justify-self: end; align-items: center; gap: 7px; padding: 8px 13px;
  color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 9px; font-size: .86rem; font-weight: 700;
}
.favorites-link:hover { border-color: #f6d98c; color: var(--white); }
.favorites-link .icon { color: #f6d98c; width: 17px; height: 17px; }
.favorite-count { min-width: 19px; padding: 1px 4px; border-radius: 12px; background: var(--saved-soft); color: var(--saved-ink); text-align: center; font-size: .69rem; }

.hero {
  isolation: isolate; position: relative; min-height: 374px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(275px, .67fr);
  align-items: center; gap: clamp(20px, 3.5vw, 52px); margin-top: 26px; padding: 32px 4.4%;
  overflow: hidden; border: 1px solid #3273a8; border-radius: 18px; background: var(--navy); color: var(--white);
  box-shadow: 0 24px 45px -25px #000e, 0 9px 48px -23px #286ee8a0;
}
.hero-visuals, .hero-photo, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-visuals { z-index: -2; }
.hero-photo {
  object-fit: cover; object-position: center 57%; opacity: 0; transform: scale(1.045);
  filter: contrast(1.15) saturate(1.18);
  transition: opacity .65s ease, transform 1.2s ease-out;
}
.hero-photo.is-current { opacity: 1; transform: scale(1); }
.hero::after {
  content: ""; z-index: -1;
  background:
    linear-gradient(90deg, #03060ffd 4%, #050b19ed 29%, #07122c29 76%, transparent),
    linear-gradient(0deg, #03060ddc, transparent 70%);
}
.hero-leagues { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hero-leagues a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px;
  padding: 4px 9px; border-radius: 7px; border: 1px solid #5296c86b;
  color: #d6edff; background: #0c203bbd; font-size: .76rem; font-weight: 700;
}
.hero-leagues a:hover, .hero-leagues a:focus-visible { border-color: var(--sky); color: var(--white); background: var(--blue-hover); }
.hero-leagues .league-flag { width: 15px; height: 11px; }
.hero h1 { margin: 13px 0 9px; font-size: clamp(3rem, 5.6vw, 4.75rem); font-weight: 800; line-height: 1.16; letter-spacing: -.045em; }
.hero h1 span { display: inline-block; color: var(--sky); }
@supports (background-clip: text) {
  .hero h1 span {
    color: transparent;
    background: linear-gradient(155deg, #ffe1cf 8%, #ff9b62 51%, #ff6b2c 96%);
    background-clip: text;
    filter: drop-shadow(0 4px 14px #ff6b2c4d);
  }
}
@media (forced-colors: active) {
  .hero h1 span { color: CanvasText; }
}
.hero p { color: #c8d7ed; font-size: 1.02rem; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 23px; }
.hero-button {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px;
  color: var(--action-ink); background: var(--blue-gradient); border: 1px solid #a7ddffb3;
  border-radius: 9px; box-shadow: 0 7px 25px #1677ff72, inset 0 1px 1px #ffffff70; font-size: .91rem; font-weight: 800;
  transition: background-color .18s, box-shadow .18s, transform .18s;
}
.hero-button:hover, .hero-button:focus-visible {
  background: #b7f2ff;
  box-shadow: 0 9px 28px #34aeffa0, inset 0 1px 0 #ffffff9c;
  transform: translateY(-2px);
}
.hero-button.secondary { background: #080e1dcc; border-color: #6592bb83; color: var(--ink); box-shadow: none; }
.hero-button.secondary:hover, .hero-button.secondary:focus-visible { background: var(--blue-hover); box-shadow: 0 5px 19px #418fff30; }
.hero-button.penalty-launch {
  color: var(--sky); background: #0b2444ec; border-color: #4bd2ff91;
  box-shadow: 0 5px 20px #1a87ff41, inset 0 1px 0 #a9e4ff25;
}
.hero-button.penalty-launch:hover, .hero-button.penalty-launch:focus-visible {
  background: #1b416a; color: var(--white); box-shadow: 0 6px 25px #3187ec66;
}

.featured-match {
  position: relative; isolation: isolate;
  display: grid; gap: 10px; align-self: end; justify-self: end; width: min(100%, 355px);
  padding: 16px 18px 13px; border: 1px solid transparent; border-radius: 15px; text-align: start;
  background:
    linear-gradient(145deg, #10274b, #080f1f 68%) padding-box,
    linear-gradient(145deg, #a1efff, #3784d4 32%, #263e64 71%, #54cfff) border-box;
  color: var(--ink);
  box-shadow: 0 15px 34px #000a, 0 7px 30px -8px #168affb8, inset 0 1px 0 #c2eaff29;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.featured-match::before {
  content: "";
  position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(ellipse 78% 98% at var(--light-x, 15%) var(--light-y, 0%), #4aa8ff63, transparent 72%);
  opacity: .66;
  transition: opacity .2s ease;
}
.featured-match:hover, .featured-match:focus-visible {
  transform: translateY(-4px);
  border-color: #8cd1ff;
  box-shadow: 0 20px 38px #020710c7, 0 9px 29px -6px #4aa5ffb0, inset 0 1px 0 #e0f4ff45;
}
.featured-match:hover::before, .featured-match:focus-visible::before { opacity: 1; }
.featured-header, .featured-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.featured-label { color: var(--sky); font-size: .82rem; font-weight: 800; }
.featured-league { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .73rem; }
.featured-score {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, auto) minmax(0, 1fr); gap: 8px; align-items: center; text-align: center;
  animation: score-arrive .42s ease-out both;
}
@keyframes score-arrive {
  from { opacity: .3; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
.featured-score .team { display: grid; gap: 7px; justify-items: center; text-align: center; }
.featured-score .crest { width: 42px; height: 42px; font-size: .77rem; box-shadow: 0 5px 12px #0309116e, inset 0 1px 1px #fff8; }
.featured-score .match-state {
  min-height: 65px; align-content: center; padding: 5px 7px;
  border: 1px solid #3e6b99a0; border-radius: 9px; background: #060d1bba;
  box-shadow: inset 0 2px 8px #02050c91;
}
.featured-score .match-value { font-size: 2rem; }
.featured-score .match-value.upcoming { font-size: 1.46rem; }
.featured-score .match-value.live { text-shadow: 0 0 17px #ed63804a; }
.featured-timeline, .featured-timezone { display: grid; align-content: center; min-height: 24px; color: var(--muted); font-size: .68rem; }
.featured-timeline { gap: 4px; padding-inline: 1px; }
.featured-timeline-track { position: relative; display: block; height: 4px; border-radius: 5px; background: #314156; }
.featured-timeline-track::after {
  content: ""; position: absolute; top: -2px; left: 50%; width: 1px; height: 8px; background: #dce9fa9c;
}
.featured-timeline-track > span {
  position: relative; display: block; width: var(--elapsed); height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, #ad4c6d, #ff8c9b); box-shadow: 0 0 9px #ff718763;
}
.featured-timeline-track > span::after {
  content: ""; position: absolute; right: 0; top: 50%; width: 7px; height: 7px; border-radius: 50%;
  background: #ffd5dc; transform: translate(50%, -50%);
}
.featured-timeline-labels { display: flex; justify-content: space-between; line-height: 1; font-variant-numeric: tabular-nums; }
.featured-timezone { grid-auto-flow: column; justify-content: center; align-items: center; gap: 8px; }
.featured-countdown {
  padding: 2px 7px; border: 1px solid #4bace666; border-radius: 5px;
  background: #123451; color: var(--sky); font-weight: 800; font-variant-numeric: tabular-nums;
}
.featured-footer { padding-top: 8px; border-top: 1px solid #6a96cb38; color: var(--muted); font-size: .72rem; }
.featured-footer > span:last-child {
  display: inline-flex; gap: 5px; align-items: center; padding: 4px 7px;
  border: 1px solid #3e80bf; border-radius: 6px; color: #d8f5ff; background: #123356; font-weight: 700;
}
.featured-match:hover .featured-footer > span:last-child,
.featured-match:focus-visible .featured-footer > span:last-child { background: #2c507b; border-color: #79b1e5; }
.featured-footer .icon { width: 15px; height: 15px; }
.featured-picker {
  display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 11px; align-items: center;
  margin-top: 12px;
}
.featured-options { grid-area: 1 / 1; display: grid; grid-template-columns: repeat(var(--featured-count, 3), minmax(0, 1fr)); gap: 9px; }
.featured-option {
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 10px; min-width: 0;
  padding: 12px 10px; border: 0; border-bottom: 2px solid #494044; border-radius: 0;
  background: transparent; text-align: start;
  box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.featured-option[aria-pressed="true"] {
  border-color: var(--accent); background: linear-gradient(0deg, #ff6b2c18, transparent);
  box-shadow: 0 6px 15px -12px var(--accent);
}
.featured-option:hover, .featured-option:focus-visible {
  transform: translateY(-2px); border-color: var(--sky);
  box-shadow: none;
}
.hero-button:active, .featured-match:active, .featured-option:active {
  transform: translateY(1px) scale(.99);
}
.featured-option img {
  display: block; width: 100%; height: 48px; border-radius: 7px; object-fit: cover; object-position: 90% center;
}
.featured-option-text { display: grid; gap: 2px; padding-right: 4px; line-height: 1.32; }
.featured-option-text strong { font-size: .9rem; overflow-wrap: anywhere; }
.featured-option-text > span { color: var(--muted); font-size: .8rem; }
.featured-option-value { white-space: nowrap; font-weight: inherit; }
.featured-option-short { display: none; }
.rotation-button {
  grid-area: 1 / 2; display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 11px; color: var(--blue); background: var(--panel);
}
.rotation-button:hover, .rotation-button:focus-visible { background: var(--blue-hover); border-color: var(--blue-border); box-shadow: 0 0 15px #ff6b2c38; }
.rotation-button .icon { width: 18px; height: 18px; }

.hero.duel-hero {
  grid-template-columns: minmax(0, 1fr); gap: 20px; min-height: 470px;
  padding: 24px 4% 28px; border: 1px solid #a55332; border-radius: 18px; background: transparent;
  border-top-color: #ff9b70; border-left-color: #c8653a; border-bottom-color: #613021;
  box-shadow: 0 24px 40px -24px #000e, 0 0 26px #ff6b2c18, inset 0 1px 0 #ffbf903b;
}
.hero.duel-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 26% 38% at 24% 43%, #ff6b2c50, transparent 85%),
    radial-gradient(ellipse 26% 38% at 77% 43%, #ff963f48, transparent 85%);
}
.hero.duel-hero::after {
  background: linear-gradient(90deg, #0d0e12dd, #0d0e129c 45%, #151317a8),
    linear-gradient(0deg, var(--canvas), transparent 22% 80%, var(--canvas));
}
.duel-hero .hero-photo { object-position: center; filter: grayscale(1) brightness(.5) contrast(1.08); }
.duel-hero .hero-content { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.duel-hero .hero-content h1 { margin: 0; font-size: 1.15rem; letter-spacing: 0; line-height: 1.4; }
.duel-hero .hero-leagues a { border: 0; padding: 6px 8px; background: transparent; font-size: .875rem; }
.duel-hero .featured-match {
  z-index: 1;
  display: grid; gap: 16px; justify-self: center; align-self: center; width: 100%;
  padding: 8px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
  text-shadow: 0 2px 15px #000c;
}
.duel-hero .featured-match::before {
  background: radial-gradient(ellipse at var(--light-x, 50%) var(--light-y, 45%), #ff6b2c20, transparent 60%); opacity: 1;
}
.duel-hero .featured-match:hover, .duel-hero .featured-match:focus-visible { transform: none; border: 0; box-shadow: none; }
.duel-hero .featured-header { justify-content: center; flex-wrap: wrap; gap: 8px 20px; }
.duel-hero .featured-label { font-size: .95rem; letter-spacing: .02em; }
.duel-hero .featured-league { font-size: .875rem; }
.duel-hero .featured-score {
  position: relative; isolation: isolate;
  grid-template-columns: minmax(0, 1fr) minmax(130px, .48fr) minmax(0, 1fr);
  gap: 24px; align-items: center; padding: 20px 0 16px;
  transform: perspective(1100px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform .22s ease-out;
  animation-name: duel-score-arrive;
}
@keyframes duel-score-arrive {
  from { opacity: .25; }
  to { opacity: 1; }
}
.duel-hero .featured-score::before {
  content: ""; position: absolute; inset: -20% -5% 0; z-index: -1; pointer-events: none;
  background:
    conic-gradient(from 160deg at 20% 0, transparent 0deg, #ff9d6b0e 9deg, #ff9d6b32 16deg, transparent 25deg),
    conic-gradient(from 174deg at 80% 0, transparent 0deg, #ffbf8025 10deg, transparent 23deg);
  mask-image: linear-gradient(transparent, #000 20% 60%, transparent);
}
.duel-hero .featured-score::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 82%; height: 160px; left: 9%; bottom: -54px;
  background: radial-gradient(ellipse, #cc592a32, #42272325 50%, transparent 72%);
  transform: perspective(360px) rotateX(63deg);
}
.duel-team {
  position: relative; isolation: isolate; display: grid; justify-items: center; align-content: center; gap: 10px; min-width: 0;
  --team-glow: #ff6b2c;
}
.duel-team-away { --team-glow: #ff984c; }
.duel-team::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: -40px; left: 50%; width: 260px; height: 220px; transform: translateX(-50%);
  background: radial-gradient(ellipse, color-mix(in srgb, var(--team-glow) 55%, transparent), transparent 67%);
}
.duel-team::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: 94px; left: 50%; width: 155px; height: 40px;
  border-radius: 50%; transform: translateX(-50%);
  background: radial-gradient(ellipse, #080608c9, #08060870 40%, transparent 70%);
  box-shadow: 0 13px 22px -15px var(--team-glow);
}
.duel-emblem {
  position: relative; display: grid; place-items: center; width: 118px; height: 118px;
  background: radial-gradient(ellipse, #ff6b2c26, transparent 73%); color: #ffe0c9;
  transform: translateY(-7px) rotate(-5deg);
  transition: transform .3s ease;
  font-size: 2.8rem; font-weight: 800; letter-spacing: -.05em; text-shadow: 0 0 28px #ff6b2c88;
}
.duel-emblem img {
  position: absolute; width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 2px 0 #281812) drop-shadow(0 5px 0 #100e10) drop-shadow(0 16px 10px #000a) drop-shadow(0 0 18px var(--team-glow));
}
.duel-team-away .duel-emblem { transform: translateY(-7px) rotate(5deg); }
.duel-hero .featured-match:hover .duel-emblem,
.duel-hero .featured-match:focus-visible .duel-emblem { transform: translateY(-13px) rotate(-2deg) scale(1.035); }
.duel-hero .featured-match:hover .duel-team-away .duel-emblem,
.duel-hero .featured-match:focus-visible .duel-team-away .duel-emblem { transform: translateY(-13px) rotate(2deg) scale(1.035); }
.duel-emblem:has(img:not([hidden])) > span { visibility: hidden; }
.duel-team-name {
  font-size: clamp(1.5rem, 2.7vw, 2.4rem); font-weight: 800; line-height: 1.3; overflow-wrap: anywhere;
  text-shadow: 0 2px 0 #2b2325, 0 4px 0 #110e10, 0 10px 16px #000b;
}
.duel-side { color: var(--muted); font-size: .875rem; }
.duel-center {
  position: relative; isolation: isolate; display: grid; align-content: center; justify-items: center;
  gap: 5px; min-height: 260px; padding: 22px 0 105px;
}
.duel-center::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: clamp(170px, 24vw, 285px); height: 285px; left: 50%; bottom: -5px;
  transform: translateX(-50%);
  background: url("assets/score-stage.webp") center bottom / 100% 100% no-repeat;
  mask-image: radial-gradient(ellipse 63% 70% at 50% 62%, #000 47%, transparent 84%);
}
.duel-center::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: 24px; left: 50%; width: 135px; height: 85px; transform: translateX(-50%);
  background: radial-gradient(ellipse, #ff6b2c35, transparent 72%);
}
.duel-vs {
  color: var(--accent); font-size: clamp(2rem, 4.2vw, 3.2rem); font-style: italic; font-weight: 800;
  text-shadow: 1px 2px 0 #b74a1d, 2px 4px 0 #713016, 0 0 26px #ff6b2ca6;
}
.duel-hero .featured-score .match-state { min-height: auto; padding: 0; border: 0; background: transparent; box-shadow: none; gap: 6px; }
.duel-hero .featured-score .match-value {
  font-size: clamp(2.6rem, 5.5vw, 4.4rem); letter-spacing: -.055em;
  text-shadow: 0 3px 0 #3d241b, 0 6px 0 #161012, 0 9px 15px #000b, 0 0 28px #ff6b2c40;
}
.duel-hero .featured-score .match-value.upcoming { font-size: 1.9rem; }
.duel-hero .featured-score .status { padding: 0; font-size: .875rem; background: transparent; }
.duel-hero .featured-score .status.finished { padding: 4px 9px; border-radius: 20px; color: #ffbc93; background: #391d13; }
.duel-hero .featured-timezone { font-size: .875rem; }
.duel-hero .featured-countdown { padding: 0; border: 0; background: transparent; }
.duel-hero .featured-timeline { width: min(340px, 100%); justify-self: center; font-size: .8rem; }
.duel-hero .featured-footer { justify-content: center; gap: 14px; padding: 0; border: 0; font-size: .8rem; }
.duel-hero .featured-footer > span:last-child,
.duel-hero .featured-match:hover .featured-footer > span:last-child { min-height: auto; padding: 0; border: 0; background: transparent; color: var(--sky); font-size: .875rem; }
.duel-hero .hero-actions { position: relative; z-index: 1; justify-content: center; gap: 12px; margin: 0; }
.duel-hero .hero-button { padding: 9px 12px; min-height: 40px; border: 0; border-radius: 6px; background: #252126; box-shadow: none; color: var(--blue); }
.duel-hero #today-link { background: var(--accent); color: #211007; box-shadow: 0 5px 22px #ff6b2c40; }
.duel-hero .hero-button:hover, .duel-hero .hero-button:focus-visible { color: var(--white); background: #473027; box-shadow: none; }
.duel-hero #today-link:hover, .duel-hero #today-link:focus-visible { background: #ff9b70; color: #211007; }
.hero-empty { display: grid; place-items: center; min-height: 280px; text-align: center; color: var(--muted); }
@media (max-width: 640px) {
  .site-header .brand-logo { width: 190px; }
  .hero.duel-hero { min-height: 440px; gap: 18px; padding: 20px 0; }
  .duel-hero .hero-content { justify-content: center; gap: 6px; }
  .duel-hero .hero-content h1 { flex-basis: 100%; text-align: center; font-size: 1rem; }
  .duel-hero .hero-leagues { justify-content: center; gap: 0; }
  .duel-hero .hero-leagues a { font-size: .8rem; }
  .duel-hero .featured-score { grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr); gap: 8px; }
  .duel-center { min-height: 220px; padding: 16px 0 80px; }
  .duel-center::before { width: 180px; height: 225px; }
  .duel-center::after { width: 100px; top: 18px; }
  .duel-emblem { width: 78px; height: 78px; font-size: 1.8rem; }
  .duel-team::before { width: 160px; height: 170px; top: -35px; }
  .duel-team::after { top: 58px; width: 100px; height: 28px; }
  .duel-team-name { font-size: 1.15rem; }
  .duel-side { font-size: .8rem; }
  .duel-hero .featured-match { gap: 18px; }
  .duel-hero .featured-score .match-value.upcoming { font-size: 1.35rem; }
  .duel-hero .featured-score .match-value { font-size: clamp(1.9rem, 8.5vw, 2.5rem); }
  .duel-hero .featured-score .status { font-size: .8rem; }
  .duel-hero .hero-actions { gap: 14px; }
  .duel-hero .hero-button { font-size: .8rem; }
  .featured-options .featured-option { align-content: start; padding: 10px 4px; }
  .featured-options .featured-option-name { display: block; font-size: .8rem; }
  .featured-options .featured-option-text > span { font-size: .75rem; }
}

.dashboard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(315px, .46fr); align-items: start; gap: 24px; margin: 29px 0 62px; }
.section-heading { min-height: 57px; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.heading-title { display: flex; gap: 12px; align-items: center; }
.section-icon {
  display: grid; place-items: center; width: 45px; height: 45px; flex: none; color: var(--blue);
  background: var(--sky-gradient); border: 1px solid var(--blue-border); border-radius: 12px;
  box-shadow: inset 0 1px 0 #94c7ff24;
}
.section-icon .icon { width: 23px; height: 23px; }
.section-heading h2 { font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.3; }
.section-heading p { margin-top: 3px; color: var(--muted); font-size: .84rem; }
.calendar-field { flex: none; }
.calendar-field input, .data-mode {
  min-height: 39px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink); background: var(--surface); font-size: .8rem;
}
.calendar-field input:hover, .data-mode:hover { border-color: var(--blue-border); }
.data-mode { min-height: 32px; }
.data-notice { margin-bottom: 9px; color: var(--muted); font-size: .76rem; }
.schedule-notice {
  margin-bottom: 9px; padding: 8px 10px; border-left: 2px solid var(--blue);
  border-radius: 5px; background: var(--blue-soft); color: var(--ink); font-size: .8rem;
}
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.table-state { padding: 20px 8px; color: var(--muted); }
.match-controls { display: grid; gap: 10px; padding: 12px; }
.search-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(137px, .42fr); gap: 9px; }
.search-box { position: relative; display: flex; align-items: center; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; }
.search-box > .icon { position: absolute; left: 11px; width: 18px; height: 18px; color: var(--blue); pointer-events: none; }
.search-box input { width: 100%; min-width: 0; min-height: 43px; padding: 6px 39px 6px 37px; border: 0; border-radius: inherit; background: transparent; font-size: .88rem; }
.search-box input::placeholder { color: var(--muted); opacity: 1; }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-box .icon-button { position: absolute; right: 3px; }
.icon-button { display: inline-grid; place-items: center; width: 32px; min-height: 32px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); }
.icon-button .icon { width: 16px; height: 16px; }
.icon-button:hover { color: var(--blue); background: var(--blue-hover); }
.date-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.date-controls button { display: grid; gap: 1px; min-height: 47px; place-content: center; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); font-size: .85rem; line-height: 1.3; }
.date-controls button span { color: var(--muted); font-size: .71rem; }
.date-controls button:hover { color: var(--blue); background: var(--blue-soft); }
.date-controls button[aria-pressed="true"] { color: var(--blue); border-color: var(--blue-border); background: var(--sky-gradient); box-shadow: inset 0 -2px 0 var(--focus); }
.date-controls button[aria-pressed="true"] span { color: var(--blue); }
.filters {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 4px; padding: 4px;
  border: 1px solid var(--divider); border-radius: 10px; background: var(--surface);
}
.filters button {
  display: inline-flex; justify-content: center; align-items: center; gap: 6px; flex: 1 0 auto; padding: 8px 9px;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted); white-space: nowrap; font-size: .84rem; font-weight: 700;
}
.filters button:hover { background: var(--blue-soft); color: var(--blue); }
.filters button[aria-pressed="true"] { background: var(--blue-gradient); color: var(--action-ink); box-shadow: 0 4px 10px #ff6b2c32; }
.filters .icon { width: 15px; height: 15px; }
.live-dot { display: inline-block; width: 7px; height: 7px; flex: none; border-radius: 50%; background: #ff7187; }
.filters button[aria-pressed="true"] .live-dot { background: #982140; }
.results-summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 1px; margin: 13px 0 9px; font-size: .76rem; color: var(--muted); }
.demo-badge { border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; background: var(--surface); color: var(--muted); font-weight: 700; white-space: nowrap; }
.panel, .league-group {
  border: 1px solid var(--line); border-top-color: #4b4240; border-radius: 15px;
  background: linear-gradient(155deg, #232226, var(--panel) 54%);
  box-shadow: var(--shadow), inset 0 1px 0 #fff0e80d;
}
.match-list { display: grid; gap: 14px; }
.league-group { overflow: hidden; }
.league-heading {
  display: flex; gap: 9px; align-items: center; padding: 11px 16px;
  background: var(--sky-gradient); border-bottom: 1px solid var(--line); font-size: .87rem; font-weight: 800;
}
.league-flag { position: relative; display: inline-block; width: 19px; height: 14px; border-radius: 3px; box-shadow: 0 0 0 1px #14294b20; overflow: hidden; flex: none; }
.flag-eng { background: linear-gradient(90deg, transparent 41%, #de354e 41% 59%, transparent 59%), linear-gradient(transparent 38%, #de354e 38% 62%, transparent 62%), #fff; }
.flag-esp { background: linear-gradient(#d43848 26%, #ffc953 26% 74%, #d43848 74%); }
.flag-tha { background: linear-gradient(#c8344d 16.7%, #fff 16.7% 33.3%, #263a74 33.3% 66.7%, #fff 66.7% 83.3%, #c8344d 83.3%); }
.league-country { color: var(--muted); font-size: .73rem; font-weight: 500; }
.match-row { display: grid; grid-template-columns: minmax(0, 1fr) 41px; align-items: stretch; min-height: 72px; }
.match-row + .match-row { border-top: 1px solid var(--divider); }
.match-row { transition: background-color .16s ease; }
.match-row:hover, .match-row:focus-within { background: var(--navy-light); }
.match-row.is-live { background: linear-gradient(90deg, #51213563, transparent 65%); box-shadow: inset 3px 0 #ed6380; }
.match-row.is-live:hover, .match-row.is-live:focus-within { background-color: var(--navy-light); }
.match-open {
  display: grid; grid-template-columns: minmax(0, 1fr) 86px minmax(0, 1fr); gap: 10px; align-items: center;
  min-width: 0; padding: 10px 5px 10px 16px; border: 0; background: transparent; text-align: start;
}
.match-open:focus-visible { outline-offset: -3px; }
.team { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: .91rem; font-weight: 700; }
.team.home { justify-content: flex-end; text-align: right; }
.team-name { overflow-wrap: anywhere; line-height: 1.32; }
.crest {
  --crest-top: #f3f7ff;
  --crest-bottom: #cfe2ff;
  --crest-ink: #1751a4;
  display: inline-grid; place-items: center; width: 31px; height: 31px; flex: none;
  border: 1px solid color-mix(in srgb, var(--crest-ink) 15%, transparent); border-radius: 9px;
  background: linear-gradient(150deg, var(--crest-top), var(--crest-bottom)); color: var(--crest-ink);
  box-shadow: inset 0 1px 1px #fff8; font-size: .63rem; font-weight: 800; letter-spacing: -.07em;
}
.crest.red { --crest-top: #fff4f4; --crest-bottom: #ffd9df; --crest-ink: #b6233e; }
.crest.white { --crest-top: #fff; --crest-bottom: #e7edf8; --crest-ink: #253e6c; }
.crest.claret { --crest-top: #fff2f5; --crest-bottom: #e6c5dc; --crest-ink: #70224d; }
.crest.cobalt { --crest-top: #eaf1ff; --crest-bottom: #c1d4fd; --crest-ink: #134bbb; }
.crest.gold { --crest-top: #fff9e4; --crest-bottom: #ffe3a7; --crest-ink: #874c05; }
.crest.green { --crest-top: #effcf4; --crest-bottom: #ccedda; --crest-ink: #237252; }
.match-state { display: grid; gap: 3px; justify-items: center; white-space: nowrap; }
.match-center { display: grid; gap: 4px; justify-items: center; }
.match-open:hover .match-center, .match-open:focus-visible .match-center { filter: drop-shadow(0 0 8px #ff9b7075); }
.match-day { color: var(--muted); font-size: .66rem; white-space: nowrap; }
.match-value { font-size: 1.16rem; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.match-value.upcoming { color: var(--blue); font-size: .98rem; }
.match-value.live { color: var(--live-ink); }
.status { display: inline-flex; align-items: center; gap: 4px; border-radius: 5px; padding: 2px 6px; color: var(--muted); background: #2c2b32; font-size: .64rem; line-height: 1.35; font-weight: 700; }
.status.live { color: var(--live-ink); background: var(--live-soft); }
.status .live-dot { width: 5px; height: 5px; }
.is-live .live-dot, .featured-score .live-dot { animation: live-signal 1.7s ease-out 3; }
@keyframes live-signal {
  from { box-shadow: 0 0 0 0 #ff718780; }
  to { box-shadow: 0 0 0 5px #ff718700; }
}
.status.upcoming { color: var(--blue); background: var(--blue-soft); }
.star-button { align-self: center; justify-self: center; display: grid; place-items: center; width: 31px; height: 33px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); }
.star-button .icon { width: 17px; height: 17px; }
.star-button:hover, .star-button[aria-pressed="true"] { background: var(--saved-soft); color: var(--saved-ink); }
.star-button[aria-pressed="true"] .icon, .dialog-favorite[aria-pressed="true"] .icon { fill: #f5c85b; }
.empty { padding: 35px 17px; text-align: center; color: var(--muted); }
.empty .section-icon { margin: 0 auto 10px; }
.empty h3 { color: var(--ink); margin-bottom: 4px; font-size: 1.02rem; }
.reset-button, .dialog-favorite { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--blue); background: var(--blue-soft); font-size: .83rem; font-weight: 700; }
.reset-button:hover, .dialog-favorite:hover { background: var(--blue-hover); }
.dialog-favorite[aria-pressed="true"] { border-color: #6b5127; color: var(--saved-ink); background: var(--saved-soft); }

.standings-panel { overflow: hidden; }
.select-wrap { position: relative; margin: 13px 13px 10px; }
.select-wrap .league-flag, .select-wrap .icon { pointer-events: none; position: absolute; top: 50%; transform: translateY(-50%); }
.select-wrap .league-flag { left: 12px; }
.select-wrap .icon { right: 11px; width: 16px; height: 16px; color: var(--blue); }
.select-wrap.match-select { margin: 0; }
.select-wrap .select-leading { left: 11px; right: auto; }
.select-wrap select {
  display: block; appearance: none; width: 100%; min-height: 43px; padding: 6px 32px 6px 41px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-weight: 800; font-size: .88rem;
}
.select-wrap select:hover { border-color: var(--blue-border); }
table { width: 100%; border-collapse: collapse; font-size: .81rem; }
th, td { padding: 8px 7px; text-align: center; }
thead { background: var(--sky-gradient); color: var(--ink); }
thead th { font-size: .75rem; font-weight: 600; }
thead th:nth-child(2), tbody th { text-align: left; }
tbody tr + tr { border-top: 1px solid var(--divider); }
tbody tr:hover, tbody tr:focus-within { background: var(--navy-light); }
tbody td { color: var(--muted); font-variant-numeric: tabular-nums; }
tbody td:first-child { width: 34px; font-weight: 700; }
tbody td:last-child { color: var(--sky); background: #2b2222; font-weight: 800; padding-right: 12px; }
.table-team { display: flex; gap: 7px; align-items: center; min-height: 29px; padding: 0; border: 0; background: transparent; text-align: left; font-weight: 700; line-height: 1.3; }
.table-team-controls { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.table-team span:last-child { overflow-wrap: anywhere; }
.team-follow { flex: none; }
.table-team:hover { color: var(--blue); text-decoration: underline; }
.table-team .crest { width: 25px; height: 25px; border-radius: 7px; font-size: .55rem; }
.followed-teams { display: grid; gap: 8px; margin-top: 12px; padding: 13px; }
.followed-teams h3 { font-size: .96rem; }
.followed-options { display: flex; flex-wrap: wrap; gap: 6px; }
.followed-options button, .followed-fixture { border: 1px solid var(--line); border-radius: 8px; font-size: .8rem; font-weight: 700; }
.followed-options button { padding: 5px 9px; background: var(--surface); text-align: start; }
.followed-options button:hover, .followed-options button[aria-pressed="true"] { background: var(--saved-soft); border-color: #80612d; color: var(--saved-ink); }
.followed-status { color: var(--muted); font-size: .76rem; }
.followed-fixture {
  display: flex; align-items: center; justify-content: space-between; gap: 9px;
  width: 100%; min-height: 44px; padding: 7px 9px; background: var(--blue-soft); color: var(--ink); text-align: start;
}
.followed-fixture:hover { background: var(--blue-hover); }
.followed-fixture .icon { width: 16px; height: 16px; color: var(--sky); }
.rank { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; }
.rank.first { color: var(--action-ink); background: var(--blue-gradient); }
.table-toggle { display: flex; gap: 7px; justify-content: center; align-items: center; width: 100%; min-height: 46px; border: 0; border-top: 1px solid var(--divider); background: var(--panel); color: var(--blue); font-size: .81rem; font-weight: 700; }
.table-toggle:hover { background: var(--blue-soft); }
.table-toggle .icon { width: 15px; height: 15px; }
.table-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.demo-note { display: flex; gap: 7px; align-items: center; padding: 13px 3px; color: var(--muted); font-size: .76rem; }
.demo-note .icon { width: 15px; height: 15px; color: var(--blue); }

.site-footer { border-top: 1px solid var(--divider); background: #101115; }
.footer-content { min-height: 75px; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: .81rem; }
.footer-content { flex-wrap: wrap; padding-block: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 16px; font-size: .875rem; }
.footer-links a:hover { color: var(--sky); }
.footer-brand { color: var(--white); font-size: 18px; }

dialog {
  width: min(500px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; overflow: auto;
  color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 22px 80px #000a;
}
dialog::backdrop { background: #03060cc2; backdrop-filter: blur(4px); }
.dialog-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 18px; gap: 12px; border-bottom: 1px solid var(--line); background: var(--sky-gradient); }
.dialog-header h2 { font-size: 1.12rem; }
.dialog-body { padding: 20px 17px 24px; text-align: center; }
.dialog-league { display: flex; justify-content: center; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; }
.dialog-score { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; margin: 23px 0 16px; }
.dialog-score .team { display: grid; justify-items: center; }
.dialog-score .crest { width: 47px; height: 47px; font-size: .9rem; }
.dialog-score .match-value { font-size: 1.63rem; }
.dialog-date { display: flex; justify-content: center; align-items: center; gap: 5px; color: var(--muted); font-size: .81rem; }
.dialog-date .icon, .dialog-favorite .icon { width: 16px; height: 16px; }

.penalty-dialog { border-color: var(--blue-border); }
.penalty-body { padding: clamp(12px, 3.5vw, 20px); }
.penalty-scoreboard {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 6px; margin-bottom: 12px; text-align: center; color: var(--muted); font-size: .74rem;
}
.penalty-scoreboard strong {
  display: block; color: var(--white); font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums;
}
.penalty-round { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.penalty-round li {
  display: grid; place-items: center; width: clamp(16px, 4.5vw, 23px); aspect-ratio: 1;
  border: 1px solid var(--blue-border); border-radius: 50%; background: var(--surface); color: var(--muted); font-weight: 800;
}
.penalty-round li[data-result="goal"] { background: var(--blue-gradient); color: var(--action-ink); }
.penalty-round li[data-result="save"] { background: var(--live-soft); border-color: #833c55; color: var(--live-ink); }
.penalty-pitch {
  position: relative; isolation: isolate; overflow: hidden; height: clamp(150px, 55vw, 240px);
  border: 1px solid var(--blue-border); border-radius: 13px;
  background: radial-gradient(ellipse at 90% 0, #ff6b2c24, transparent 65%), linear-gradient(#17171e, #252125);
}
.penalty-pitch::before {
  content: ""; position: absolute; inset: 51% 0 0; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 0, #ff9b7056, transparent 72%),
    repeating-linear-gradient(90deg, #35312f 0 12%, #282829 12% 24%);
  border-top: 1px solid #ffc09f7d;
}
.penalty-pitch::after {
  content: ""; position: absolute; inset: 52% 10% 12%; z-index: -1;
  border: 1px solid #d5ceca90; transform: perspective(160px) rotateX(36deg); transform-origin: center bottom;
}
.penalty-goal {
  position: absolute; inset: 19% 15% 36%;
  border: 3px solid #f4e9e2; border-bottom: 1px solid #c7b6ad; border-radius: 5px 5px 1px 1px;
  background:
    repeating-linear-gradient(90deg, #e1d5cc45 0 1px, transparent 1px 14px),
    repeating-linear-gradient(#e1d5cc45 0 1px, transparent 1px 12px), #141419b0;
  box-shadow: 0 0 12px #ff9b7070, inset 0 0 10px #ff9b7035;
}
.penalty-keeper {
  position: absolute; z-index: 1; left: 50%; top: 40%; width: 45px; height: 39px;
  transform: translate(-50%, -50%); filter: drop-shadow(0 3px 4px #030d20);
}
.penalty-keeper::before {
  content: ""; position: absolute; top: 9px; left: 9px; right: 9px; height: 22px;
  background: linear-gradient(#ffd879, #d78f2b); border-radius: 8px 8px 4px 4px;
}
.penalty-keeper::after {
  content: ""; position: absolute; inset: 0 auto auto 50%; width: 13px; height: 13px;
  transform: translateX(-50%); background: #f4ba91; border-radius: 50%; border-top: 3px solid #3a2521;
}
.penalty-keeper span { position: absolute; inset: 15px 3px auto; height: 6px; border-radius: 10px; background: #ffdc80; }
.penalty-keeper span::before, .penalty-keeper span::after {
  content: ""; position: absolute; inset: -2px auto auto -3px; width: 10px; height: 10px;
  background: var(--white); border-radius: 50%;
}
.penalty-keeper span::after { inset-inline: auto -3px; }
.penalty-ball {
  position: absolute; z-index: 2; left: 50%; top: 83%; width: 29px; height: 29px; padding: 2px;
  border-radius: 50%; background: var(--white); color: var(--action-ink); transform: translate(-50%, -50%);
  box-shadow: 0 4px 9px #041023aa;
}
.penalty-pitch[data-aim="left"] { --shot-x: 27%; }
.penalty-pitch[data-aim="right"] { --shot-x: 73%; }
.penalty-pitch[data-keeper="left"] { --keeper-x: 27%; --dive: -52deg; }
.penalty-pitch[data-keeper="right"] { --keeper-x: 73%; --dive: 52deg; }
.penalty-pitch[data-aim] .penalty-ball {
  left: var(--shot-x, 50%); top: 40%; transform: translate(-50%, -50%) scale(.57) rotate(150deg);
  transition: left .46s ease-out, top .46s ease-out, transform .46s ease-out;
}
.penalty-pitch[data-keeper] .penalty-keeper {
  left: var(--keeper-x, 50%); transform: translate(-50%, -50%) rotate(var(--dive, 0deg)) scale(1.13);
  transition: left .31s ease-out .1s, transform .31s ease-out .1s;
}
.penalty-pitch[data-result="goal"] .penalty-goal { animation: penalty-net-flash .55s ease-out; }
@keyframes penalty-net-flash {
  25% { box-shadow: 0 0 27px #ff9b70, inset 0 0 41px #ff9b70ab; }
}
.penalty-status { min-height: 1.5em; margin: 12px 0; text-align: center; font-size: .88rem; font-weight: 700; }
.penalty-pitch[data-result="goal"] + .penalty-status { color: var(--sky); }
.penalty-pitch[data-result="save"] + .penalty-status { color: var(--live-ink); }
.penalty-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.penalty-controls button, .penalty-replay {
  min-height: 44px; padding: 5px; border: 1px solid var(--blue-border); border-radius: 9px;
  background: var(--blue-soft); color: var(--ink); font-size: .83rem; font-weight: 800;
}
.penalty-controls button span { color: var(--sky); }
.penalty-controls button[aria-disabled="true"] { opacity: .65; cursor: wait; }
.penalty-controls button:hover, .penalty-controls button:focus-visible { background: var(--blue-hover); }
.penalty-replay { display: block; width: 100%; background: var(--blue-gradient); color: var(--action-ink); }
.penalty-replay:hover { background: #ffc39d; }

.match-events { margin-top: 21px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); text-align: start; }
.match-events h3 { margin-bottom: 7px; font-size: .91rem; }
.match-events ol { margin: 0; padding: 0; list-style: none; }
.match-events p { color: var(--muted); font-size: .83rem; }
.match-events li { display: grid; grid-template-columns: 35px 25px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 39px; padding: 5px 0; font-size: .83rem; }
.match-events li + li { border-top: 1px solid var(--divider); }
.match-events .crest { width: 25px; height: 25px; border-radius: 7px; font-size: .55rem; }
.event-minute { color: var(--blue); font-weight: 800; font-variant-numeric: tabular-nums; }
.match-extra summary { cursor: pointer; font-size: .89rem; font-weight: 800; }
.match-extra-content { display: grid; gap: 13px; margin-top: 10px; color: var(--muted); font-size: .81rem; }
.match-extra-content h3, .lineup-columns h4 { color: var(--ink); }
.form-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px; margin-block: 6px; }
.form-results { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.form-result { padding: 1px 5px; border-radius: 4px; background: var(--navy-light); color: var(--ink); font-size: .72rem; }
.form-result.w { background: #163a32; color: #abebcd; }
.form-result.l { background: var(--live-soft); color: var(--live-ink); }
.match-meetings ul { margin: 0; padding: 0; list-style: none; }
.match-meetings li { grid-template-columns: 66px minmax(0, 1fr); min-height: 31px; }
.match-meetings strong { color: var(--blue); }
.lineup-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lineup-columns h4 { margin: 0 0 4px; font-size: .78rem; }
.lineup-columns ul { margin: 0; padding: 0; list-style: none; }
.lineup-columns li { grid-template-columns: 23px minmax(0, 1fr); min-height: 31px; color: var(--ink); }

@media (min-width: 1080px) {
  .match-controls { grid-template-columns: minmax(228px, 1fr) minmax(0, 1.45fr); align-items: center; }
  .date-controls[hidden] + .search-tools { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .shell { width: calc(100% - 48px); }
  .dashboard { gap: 18px; grid-template-columns: minmax(0, 1fr) minmax(282px, .53fr); }
  .team { gap: 6px; font-size: .82rem; }
  .match-open { grid-template-columns: minmax(0, 1fr) 68px minmax(0, 1fr); gap: 6px; padding-left: 10px; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  .dashboard { grid-template-columns: 1fr; margin-top: 27px; }
  .site-nav { gap: 20px; }
  .header-content { gap: 13px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 21px; min-height: auto; padding: 27px 24px 20px; }
  .hero-photo { object-position: 65% center; }
  .hero::after { background: linear-gradient(90deg, #040916f5, #07132b69 75%), linear-gradient(0deg, #040812ec, transparent 72%); }
  .featured-match { justify-self: start; align-self: auto; }
}
@media (max-width: 640px) {
  .header-content { grid-template-columns: 1fr auto; gap: 0 8px; }
  .site-header .brand, .favorites-link { margin-block: 9px 5px; }
  .site-nav { grid-row: 2; grid-column: 1 / -1; min-height: 42px; justify-content: space-around; gap: 12px; }
  .nav-link { font-size: .82rem; }
  .featured-picker { grid-template-columns: minmax(0, 1fr) 40px; gap: 6px; margin-top: 8px; }
  .featured-options { gap: 5px; }
  .featured-option { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 4px; padding: 4px 3px 6px; text-align: center; }
  .featured-option img { height: 35px; }
  .featured-option-text { padding: 0; }
  .featured-option-text strong { font-size: .7rem; }
  .featured-option-text > span { font-size: .62rem; }
  .featured-option-name { display: none; }
  .featured-option-short { display: block; }
  .rotation-button { width: 40px; height: 44px; }
}
@media (max-width: 510px) {
  .site-header .brand { font-size: 21px; }
  .hero { margin-top: 16px; padding: 23px 14px 14px; border-radius: 16px; }
  .hero-photo { object-position: 63% center; }
  .hero h1 { font-size: clamp(2.1rem, 9.2vw, 2.9rem); }
  .hero-leagues a { padding-inline: 7px; font-size: .71rem; }
  .hero p { font-size: .91rem; }
  .hero-actions { margin-top: 16px; gap: 7px; }
  .hero-button { font-size: .8rem; padding: 9px 10px; gap: 5px; }
  .hero-button .icon { width: 17px; height: 17px; }
  .featured-match { width: 100%; gap: 8px; padding: 12px 11px 10px; }
  .featured-score .crest { width: 35px; height: 35px; font-size: .68rem; }
  .featured-score .match-value { font-size: 1.72rem; }
  .featured-score .match-value.upcoming { font-size: 1.25rem; }
  .featured-footer > span:last-child { min-height: 34px; }
  .section-heading { gap: 7px; margin-bottom: 11px; }
  .heading-title { gap: 7px; }
  .section-icon { width: 34px; height: 34px; border-radius: 9px; }
  .section-icon .icon { width: 19px; height: 19px; }
  .section-heading h2 { font-size: 1.12rem; }
  .section-heading p { font-size: .72rem; }
  .calendar-field input { max-width: 120px; padding-inline: 4px; font-size: .74rem; }
  .match-controls { gap: 8px; padding: 8px; }
  .search-tools { grid-template-columns: minmax(0, 1fr) minmax(116px, .55fr); gap: 6px; }
  .search-box input { padding-left: 29px; padding-right: 29px; font-size: .75rem; }
  .search-box > .icon { left: 8px; width: 15px; height: 15px; }
  .search-box .icon-button { width: 25px; right: 1px; }
  .select-wrap.match-select select { padding-left: 29px; padding-right: 23px; font-size: .75rem; }
  .select-wrap.match-select .icon { width: 14px; height: 14px; right: 6px; }
  .select-wrap.match-select .select-leading { left: 8px; right: auto; }
  .filters { gap: 1px; padding: 3px; }
  .filters button { min-height: 38px; padding: 8px 3px; gap: 3px; font-size: .72rem; }
  .filters .icon { width: 13px; height: 13px; }
  .match-row { grid-template-columns: minmax(0, 1fr) 44px; }
  .match-open { gap: 4px; grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr); padding: 8px 1px 8px 7px; }
  .match-open .team { display: grid; justify-content: stretch; justify-items: center; gap: 4px; text-align: center; font-size: .83rem; }
  .match-open .team.home .crest { grid-row: 1; }
  .crest { width: 26px; height: 26px; font-size: .54rem; border-radius: 7px; }
  .star-button { width: 44px; min-height: 44px; }
  .followed-options button { min-height: 40px; }
  .match-value { font-size: 1.05rem; }
  .match-value.upcoming { font-size: .84rem; }
  .status { font-size: .59rem; }
  .footer-content { font-size: .68rem; }
  .footer-brand { margin: 0; }
}
@media (max-width: 380px) {
  .filters .icon, .filters .live-dot { display: none; }
}

.results-summary, .data-notice, .schedule-notice, .demo-note, .league-country,
.featured-option-text > span, .match-day, .status { font-size: .875rem; }
.status { max-width: 100%; white-space: normal; text-align: center; }
.league-heading a:hover, .page-breadcrumb a:hover { color: var(--sky); text-decoration: underline; }
.dialog-page-link { display: block; margin-top: 14px; color: var(--sky); font-size: .875rem; text-decoration: underline; }
.game-statistics { margin-top: 20px; }
.game-statistics table { margin-top: 8px; font-size: .875rem; }
.game-statistics th { overflow-wrap: anywhere; }
.game-statistics tbody th { text-align: center; color: var(--muted); font-weight: 500; }
.game-broadcasts { margin-top: 20px; }
.game-broadcasts ul { padding-left: 20px; }
.game-broadcasts p { color: var(--muted); font-size: .875rem; }
.content-page { max-width: 960px; min-height: 65vh; padding-block: 30px 50px; }
.content-page h1 { margin-bottom: 18px; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.4; overflow-wrap: anywhere; }
.content-page h2 { margin-bottom: 12px; font-size: 1.2rem; }
.content-page h3 { font-size: 1rem; }
.reading-panel, .match-page { margin-top: 18px; padding: clamp(16px, 3vw, 28px); }
.reading-panel { line-height: 1.85; }
.reading-panel p + p, .reading-panel h2 { margin-top: 18px; }
.reading-panel a { color: var(--sky); text-decoration: underline; }
.reading-panel input, .reading-panel textarea { display: block; width: 100%; padding: 10px; margin-block: 6px 14px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.reading-panel textarea { resize: vertical; }
.page-breadcrumb { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; font-size: .875rem; color: var(--muted); }
.page-meta { color: var(--muted); font-size: .875rem; line-height: 1.7; }
.page-meta a { color: var(--sky); }
.page-match-score { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 15px; margin: 25px 0; text-align: center; }
.page-match-score > strong { font-size: clamp(1rem, 3vw, 1.6rem); overflow-wrap: anywhere; }
.page-match-score > div { display: grid; gap: 5px; }
.page-match-score b { font-size: clamp(2.2rem, 5vw, 3.5rem); color: var(--sky); }
.page-match-score span { color: var(--muted); font-size: .875rem; }
.page-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block: 18px 25px; }
.page-share button { margin: 0; }
.page-share input { min-width: 0; flex: 1 1 200px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--surface); font-size: .875rem; }
.page-share p { flex-basis: 100%; font-size: .875rem; color: var(--sky); }
.league-date-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.league-date-form input { min-height: 42px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.league-date-form button { margin: 0; }
.league-fixtures { list-style: none; padding: 0; margin: 0; }
.league-fixtures li + li { border-top: 1px solid var(--divider); }
.league-fixtures a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding-block: 14px; text-decoration: none; }
.league-fixtures a > span:last-child { grid-column: 1 / -1; font-size: .875rem; color: var(--muted); }
.table-scroll { overflow-x: auto; }

@media (max-width: 640px) {
  .hero.duel-hero { min-height: 0; padding: 14px 10px 16px; gap: 10px; }
  .duel-hero .featured-match { gap: 10px; padding: 0; }
  .duel-hero .featured-score { grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr); gap: 6px; padding: 6px 0; }
  .duel-center { min-height: 164px; padding: 6px 0 58px; }
  .duel-center::before { width: 138px; height: 164px; bottom: -4px; }
  .duel-emblem { width: 64px; height: 64px; }
  .duel-team { gap: 6px; }
  .duel-team-name { font-size: 1rem; }
  .duel-team::after { top: 47px; }
  .duel-hero .hero-actions { gap: 6px; }
  .duel-hero .hero-button { padding: 8px; font-size: .875rem; }
  .duel-hero .featured-footer { font-size: .8rem; }
  .duel-hero .featured-score .status { font-size: .875rem; }
  .hero-leagues a, .duel-hero .hero-leagues a { font-size: .875rem; }
  .featured-options .featured-option-name, .featured-options .featured-option-text > span { font-size: .875rem; }
  .section-heading p { font-size: .875rem; }
  .calendar-field input { max-width: 142px; font-size: .875rem; }
  .search-tools { grid-template-columns: minmax(0, 1fr) minmax(125px, .55fr); }
  .search-box input, .select-wrap.match-select select, .filters button { font-size: .875rem; }
  .date-controls button { font-size: .875rem; }
  .date-controls button span { font-size: .875rem; }
  .filters { flex-wrap: wrap; }
  .filters button { flex: 1 1 auto; }
  .match-open { grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); }
  .match-open .team, .match-value.upcoming { font-size: .875rem; }
  .footer-content { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-button, .featured-match, .featured-option { transform: none !important; }
  .duel-hero .featured-score { transform: none; }
  .duel-hero .duel-emblem { transform: none !important; }
}
