/* ==========================================================================
   MADRAJAT — Arabic football platform
   Design system, components and responsive layouts
   ========================================================================== */

/* ------------------------------------------------------------------ tokens */
:root {
  --font-display: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Cairo", "Segoe UI", Tahoma, sans-serif;

  --bg: #050a13;
  --bg-soft: #07101f;
  --surface: #0a1424;
  --surface-2: #0e1b2f;
  --surface-3: #132440;
  --surface-4: #182c4b;
  --line: rgba(146, 178, 222, 0.13);
  --line-strong: rgba(146, 178, 222, 0.24);
  --text: #f1f7ff;
  --text-soft: #c3d4ea;
  --muted: #8ba0bd;
  --muted-2: #6d819f;
  --brand: #2ee6a0;
  --brand-2: #38bdf8;
  --brand-3: #7c5cff;
  --brand-ink: #041810;
  --gold: #f7c75c;
  --gold-2: #e8a838;
  --live: #ff4d6d;
  --danger: #ff5d73;
  --warn: #f6c453;
  --blue: #4da3ff;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.85);
  --shadow-soft: 0 12px 34px -20px rgba(0, 0, 0, 0.65);
  --glow: 0 0 0 1px rgba(46, 230, 160, 0.22), 0 18px 44px -16px rgba(46, 230, 160, 0.3);
  --header-h: 72px;
  --container: 1240px;
  --ease: cubic-bezier(0.2, 0.65, 0.25, 1);
}

[data-theme="light"] {
  --bg: #f2f6fb;
  --bg-soft: #eaf1f9;
  --surface: #ffffff;
  --surface-2: #f5f8fc;
  --surface-3: #eaf0f8;
  --surface-4: #dfe8f4;
  --line: rgba(16, 44, 78, 0.1);
  --line-strong: rgba(16, 44, 78, 0.18);
  --text: #0b1a2c;
  --text-soft: #24384f;
  --muted: #5c7290;
  --muted-2: #7b8da6;
  --brand: #059669;
  --brand-2: #0284c7;
  --brand-3: #6d4aff;
  --brand-ink: #ffffff;
  --gold: #b57e10;
  --gold-2: #9a6a08;
  --live: #e11d48;
  --shadow: 0 24px 55px -30px rgba(15, 42, 74, 0.35);
  --shadow-soft: 0 10px 28px -18px rgba(15, 42, 74, 0.28);
  --glow: 0 0 0 1px rgba(5, 150, 105, 0.2), 0 16px 36px -18px rgba(5, 150, 105, 0.22);
}

/* -------------------------------------------------------------------- reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(1100px 520px at 88% -8%, rgba(56, 189, 248, 0.11), transparent 62%),
    radial-gradient(900px 480px at 4% 2%, rgba(46, 230, 160, 0.09), transparent 58%),
    var(--bg);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(148, 177, 219, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 177, 219, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, rgba(0, 0, 0, 0.55), transparent 75%);
  pointer-events: none;
}

[data-theme="light"] body::before {
  opacity: 0.5;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: rgba(46, 230, 160, 0.3);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--surface-4);
  border-radius: 99px;
  border: 2px solid var(--bg);
}

/* ---------------------------------------------------------------- utilities */
.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.site-main {
  min-height: 62vh;
  padding-bottom: 18px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 999;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 700;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

.icon {
  flex: none;
  display: inline-block;
  vertical-align: -0.18em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid rgba(46, 230, 160, 0.28);
  background: rgba(46, 230, 160, 0.08);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.eyebrow--gold {
  color: var(--gold);
  border-color: rgba(247, 199, 92, 0.3);
  background: rgba(247, 199, 92, 0.08);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(255, 77, 109, 0.7);
  animation: livePulse 1.8s infinite;
  flex: none;
  display: inline-block;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 109, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(255, 77, 109, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 109, 0); }
}

/* ------------------------------------------------------------------ buttons */
.btn {
  --btn-bg: var(--surface-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 99px;
  background: var(--btn-bg);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: linear-gradient(135deg, var(--brand) 0%, #43f0c2 45%, var(--brand-2) 100%);
  color: #041810;
  box-shadow: 0 12px 30px -14px rgba(46, 230, 160, 0.7);
}

[data-theme="light"] .btn--primary {
  color: #fff;
}

.btn--primary:hover {
  box-shadow: 0 18px 38px -14px rgba(46, 230, 160, 0.75);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn--soft {
  background: var(--surface-3);
  border-color: var(--line);
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #2a1a00;
}

.btn--sm {
  min-height: 36px;
  padding: 0 15px;
  font-size: 12.5px;
}

.btn--xs {
  min-height: 30px;
  padding: 0 12px;
  font-size: 12px;
}

.btn--block {
  width: 100%;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-soft);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.icon-btn:hover {
  background: var(--surface-3);
  color: var(--text);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.theme-toggle__light {
  display: none;
}

[data-theme="light"] .theme-toggle__dark {
  display: none;
}

[data-theme="light"] .theme-toggle__light {
  display: inline-flex;
}

/* --------------------------------------------------------------- top + nav */
.topbar {
  background: rgba(4, 9, 17, 0.92);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  position: relative;
  z-index: 60;
}

[data-theme="light"] .topbar {
  background: var(--surface-2);
  color: var(--muted);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
}

.topbar__meta,
.topbar__links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar__date,
.topbar__tz,
.topbar__rss,
.topbar__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar__rss {
  opacity: 0.75;
}

.topbar__rss:hover {
  opacity: 1;
  color: var(--brand);
}

.topbar__live {
  color: var(--text-soft);
  font-weight: 600;
}

.topbar__live:hover {
  color: var(--live);
}

.topbar__sep {
  width: 1px;
  height: 13px;
  background: var(--line-strong);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 11, 21, 0.74);
  backdrop-filter: blur(22px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease), background 0.25s;
}

[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.82);
}

.site-header.is-scrolled {
  box-shadow: 0 14px 40px -28px rgba(0, 0, 0, 0.9);
  background: rgba(5, 11, 21, 0.92);
}

[data-theme="light"] .site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
}

.header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 8px 24px -12px rgba(46, 230, 160, 0.55);
}

.brand__mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__text strong {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand__text small {
  font-size: 8.5px;
  letter-spacing: 0.34em;
  color: var(--muted);
  font-weight: 700;
  margin-top: 4px;
}

.brand--sm .brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}

.brand--sm .brand__text strong {
  font-size: 18px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 11px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 13.5px;
  font-family: var(--font-display);
  transition: color 0.18s, background 0.18s;
  position: relative;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.nav-link.is-active {
  color: var(--text);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  inset-inline: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.nav-link--live {
  color: var(--live);
}

.nav-link--live:hover {
  color: #ff7a92;
}

.nav-link--drop {
  cursor: pointer;
}

.nav-dropdown {
  position: relative;
}

.nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-start: 50%;
  transform: translate(50%, 8px);
  width: 560px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: rgba(9, 18, 32, 0.97);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 70;
}

[data-theme="light"] .nav-menu {
  background: rgba(255, 255, 255, 0.98);
}

.nav-dropdown:hover .nav-menu,
.nav-dropdown:focus-within .nav-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(50%, 0);
}

.nav-menu__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.nav-menu__item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 13px;
  transition: background 0.18s;
}

.nav-menu__item:hover {
  background: var(--surface-3);
}

.nav-menu__text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  min-width: 0;
}

.nav-menu__text strong {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-menu__text small {
  font-size: 10.5px;
  color: var(--muted);
}

.nav-menu__all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 700;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}

.menu-btn {
  display: none;
}

/* --------------------------------------------------------------- search box */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 12vh 20px 20px;
}

.search-overlay[hidden] {
  display: none;
}

.search-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 13, 0.72);
  backdrop-filter: blur(10px);
}

.search-panel {
  position: relative;
  width: min(720px, 100%);
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background: rgba(9, 18, 32, 0.98);
  box-shadow: var(--shadow);
  animation: panelIn 0.22s var(--ease);
}

[data-theme="light"] .search-panel {
  background: #fff;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  padding-inline-start: 16px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
}

.search-form__icon {
  color: var(--muted);
  display: grid;
  place-items: center;
}

.search-form input {
  flex: 1;
  min-width: 0;
  height: 42px;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 15px;
}

.search-form input::placeholder {
  color: var(--muted-2);
}

.search-panel__hints {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
}

.search-panel__hints a {
  padding: 5px 11px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  transition: 0.18s;
}

.search-panel__hints a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.search-panel__kbd {
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 11.5px;
}

kbd {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  background: var(--surface-3);
  font-family: var(--font-body);
  font-size: 10.5px;
  direction: ltr;
}

/* ------------------------------------------------------------- mobile menu */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 210;
}

.mobile-drawer[hidden] {
  display: none;
}

.mobile-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 13, 0.7);
  backdrop-filter: blur(6px);
}

.mobile-drawer__panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(360px, 88vw);
  padding: 18px;
  background: var(--surface);
  border-inline-end: 1px solid var(--line-strong);
  box-shadow: 30px 0 80px -40px rgba(0, 0, 0, 0.9);
  overflow-y: auto;
  animation: drawerIn 0.25s var(--ease);
}

@keyframes drawerIn {
  from { transform: translateX(-103%); }
  to { transform: none; }
}

.mobile-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 0;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 12px;
  color: var(--text-soft);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
}

.mobile-nav a:hover {
  background: var(--surface-3);
  color: var(--text);
}

.mobile-drawer__comps {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.mobile-drawer__comps h4 {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.mobile-drawer__comps a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-soft);
}

.mobile-drawer__comps a:hover {
  background: var(--surface-3);
}

.mobile-drawer__live {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 77, 109, 0.3);
  background: rgba(255, 77, 109, 0.08);
  color: var(--live);
  font-weight: 700;
  font-size: 13px;
}

/* ------------------------------------------------------------------- crests */
.crest,
.emblem {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: var(--crest, 32px);
  height: var(--crest, 32px);
  flex: none;
  border-radius: 50%;
}

.emblem {
  border-radius: 12px;
}

.crest-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}

.crest-fb {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  border-radius: inherit;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: calc(var(--crest, 32px) * 0.32);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.crest-fb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), transparent 55%);
}

.crest-fb--comp {
  border-radius: 12px;
  font-size: calc(var(--crest, 32px) * 0.3);
}

/* ------------------------------------------------------------------- badges */
.badge,
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 7px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

.badge--done {
  background: rgba(148, 177, 219, 0.12);
  color: var(--muted);
}

.badge--time {
  background: rgba(56, 189, 248, 0.1);
  color: var(--brand-2);
}

.badge--off {
  background: rgba(246, 196, 83, 0.12);
  color: var(--warn);
}

.live-pill {
  background: rgba(255, 77, 109, 0.12);
  color: var(--live);
  border: 1px solid rgba(255, 77, 109, 0.18);
}

.live-pill--sm {
  font-size: 9.5px;
  padding: 2px 6px;
}

/* --------------------------------------------------------------- section UI */
.section {
  padding: clamp(26px, 4vw, 44px) 0 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head__titles {
  min-width: 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(18px, 2.3vw, 25px);
  font-weight: 800;
  position: relative;
  padding-inline-start: 14px;
}

.section-title::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 12%;
  bottom: 12%;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
}

.section-title__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(46, 230, 160, 0.1);
  color: var(--brand);
}

.section-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
  padding-inline-start: 14px;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  padding: 7px 13px;
  border-radius: 99px;
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
  transition: 0.18s;
}

.section-link:hover {
  border-color: rgba(46, 230, 160, 0.4);
  color: var(--brand);
  background: rgba(46, 230, 160, 0.06);
}

/* -------------------------------------------------------------- match cards */
.match-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.match-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 74px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 13px;
  border: 1px solid transparent;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
  position: relative;
}

.match-row + .match-row {
  border-top-color: var(--line);
}

.match-row:hover {
  background: var(--surface-2);
  border-color: var(--line);
  transform: translateX(-2px);
}

.match-row.is-live {
  background: linear-gradient(90deg, rgba(255, 77, 109, 0.06), transparent 60%);
}

.match-row.is-live:hover {
  background: linear-gradient(90deg, rgba(255, 77, 109, 0.09), var(--surface-2));
}

.match-row__status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.match-row__date {
  font-size: 10px;
  color: var(--muted-2);
}

.match-row__comp {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--muted);
  max-width: 100%;
}

.match-row__comp span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-row__team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.match-row__team--home {
  justify-content: flex-start;
}

.match-row__team--away {
  justify-content: flex-end;
}

.match-row__name {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-row__team--home .match-row__name {
  text-align: start;
}

.match-row__team--away .match-row__name {
  text-align: end;
}

.match-row__score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  min-height: 32px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  letter-spacing: 0.02em;
}

.match-row__score i {
  font-style: normal;
  color: var(--muted-2);
  font-size: 13px;
}

.match-row__score.is-live {
  color: var(--live);
  border-color: rgba(255, 77, 109, 0.24);
  background: rgba(255, 77, 109, 0.08);
}

.match-row__vs {
  font-size: 10.5px;
  color: var(--muted-2);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.match-row__go {
  color: var(--muted-2);
  display: grid;
  place-items: center;
  transition: color 0.18s, transform 0.18s;
}

.match-row:hover .match-row__go {
  color: var(--brand);
  transform: translateX(-3px);
}

.match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 12px;
}

.mcard {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 45%),
    var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s var(--ease), border-color 0.22s, box-shadow 0.22s;
  position: relative;
  overflow: hidden;
}

.mcard::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0;
  transition: opacity 0.22s;
}

.mcard:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.mcard:hover::before {
  opacity: 1;
}

.mcard--live {
  border-color: rgba(255, 77, 109, 0.26);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(255, 77, 109, 0.11), transparent 60%),
    var(--surface);
}

.mcard--live::before {
  background: linear-gradient(90deg, transparent, var(--live), transparent);
  opacity: 1;
}

.mcard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mcard__comp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
}

.mcard__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.mcard__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-align: center;
}

.mcard__team span {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mcard__score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  min-width: 70px;
  direction: ltr;
}

.mcard__score em {
  font-style: normal;
  font-size: 17px;
  color: var(--muted-2);
}

.mcard__score.is-live {
  color: var(--live);
}

.mcard__time {
  font-size: 18px;
  color: var(--text-soft);
  font-weight: 700;
}

.mcard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10.5px;
}

.mcard__foot span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ------------------------------------------------------------------- ticker */
.ticker {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  display: flex;
  align-items: stretch;
}

.ticker__label {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(255, 77, 109, 0.15), rgba(255, 77, 109, 0.05));
  color: var(--live);
  font-weight: 800;
  font-size: 11px;
  border-inline-end: 1px solid var(--line);
  z-index: 2;
}

.ticker__viewport {
  overflow: hidden;
  flex: 1;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.ticker__track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  padding: 9px 18px;
  animation: tickerMove 42s linear infinite;
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

@keyframes tickerMove {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  white-space: nowrap;
  color: var(--text-soft);
}

.ticker__item b {
  color: var(--live);
  font-variant-numeric: tabular-nums;
  font-family: var(--font-display);
  font-size: 13px;
}

.ticker__item .crest {
  --crest: 18px;
}

.ticker__item i {
  font-style: normal;
  color: var(--muted-2);
  font-size: 10px;
}

/* --------------------------------------------------------------------- hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5vw, 58px) 0 clamp(34px, 5vw, 62px);
  color: #f4f9ff;
  background:
    radial-gradient(900px 480px at 82% 18%, rgba(56, 189, 248, 0.18), transparent 62%),
    radial-gradient(780px 460px at 12% 8%, rgba(46, 230, 160, 0.14), transparent 60%),
    linear-gradient(180deg, #071226 0%, #050b16 88%);
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0 2px, transparent 2px 9%),
    radial-gradient(circle at 50% 120%, transparent 0 22%, rgba(255, 255, 255, 0.045) 22.2%, transparent 22.6%),
    radial-gradient(circle at 50% 120%, transparent 0 36%, rgba(255, 255, 255, 0.035) 36.2%, transparent 36.6%);
  opacity: 0.8;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  border: 1px solid rgba(46, 230, 160, 0.13);
  inset-inline-start: -220px;
  bottom: -330px;
  box-shadow: 0 0 0 80px rgba(46, 230, 160, 0.025), 0 0 0 160px rgba(46, 230, 160, 0.02);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.hero-copy {
  min-width: 0;
}

.hero-title {
  margin: 16px 0 12px;
  font-size: clamp(30px, 4.6vw, 56px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-title em {
  font-style: normal;
  display: inline-block;
  margin: 0 6px;
  color: var(--brand);
  font-size: 0.72em;
  transform: translateY(-0.06em);
}

.hero-title span {
  display: inline;
}

.hero-sub {
  color: #a9bcd6;
  font-size: clamp(13px, 1.3vw, 15px);
  max-width: 56ch;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-actions .btn--ghost {
  color: #e7f1ff;
}

.hero-stats {
  display: flex;
  gap: clamp(18px, 3vw, 38px);
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stat b {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.hero-stat span {
  font-size: 10.5px;
  color: #8ba0bd;
}

.hero-match {
  position: relative;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02) 45%),
    rgba(8, 17, 31, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.hero-match:hover {
  transform: translateY(-4px);
  box-shadow: 0 48px 90px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(46, 230, 160, 0.18);
}

.hero-match::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 220px;
  background: radial-gradient(closest-side, rgba(46, 230, 160, 0.22), transparent);
  filter: blur(16px);
  pointer-events: none;
}

.hero-match__top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-match__comp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #c6d5e9;
  font-weight: 600;
}

.hero-match__comp .emblem {
  --crest: 32px;
}

.hero-scoreline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 22px 0 18px;
}

.hero-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-align: center;
}

.hero-team .crest {
  --crest: clamp(54px, 6vw, 76px);
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.4));
}

.hero-team b {
  font-family: var(--font-display);
  font-size: clamp(13px, 1.4vw, 17px);
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.hero-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  direction: ltr;
}

.hero-score__nums {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hero-score__nums i {
  font-style: normal;
  color: rgba(255, 255, 255, 0.28);
  font-size: 0.55em;
}

.hero-score__nums--time {
  font-size: clamp(24px, 3.2vw, 38px);
  letter-spacing: 0.02em;
}

.hero-score__meta {
  font-size: 10.5px;
  color: #a9bcd6;
  letter-spacing: 0.02em;
}

.hero-match__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9fb2cc;
  font-size: 10.5px;
}

.hero-match__bottom span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hero-countdown {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--brand-2);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ panels */
.panel {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.panel__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
}

.panel__title .icon {
  color: var(--brand);
}

.panel__body {
  padding: 8px;
}

.panel__link {
  font-size: 11px;
  color: var(--muted);
}

.panel__link:hover {
  color: var(--brand);
}

.panel--flush .panel__body {
  padding: 0;
}

/* ------------------------------------------------------------------- table */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12.5px;
  min-width: 560px;
}

.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 10px 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}

.data-table thead th.col-team,
.data-table thead th.col-player {
  text-align: start;
}

.data-table tbody td {
  padding: 9px 8px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
  color: var(--text-soft);
}

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

.data-table tbody tr {
  transition: background 0.15s;
}

.data-table tbody tr:hover {
  background: var(--surface-2);
}

.data-table .col-team,
.data-table .col-player {
  text-align: start;
  min-width: 150px;
}

.col-pos {
  width: 40px;
}

.col-pts b {
  color: var(--text);
  font-size: 13.5px;
}

.col-num {
  width: 60px;
}

.pos-num {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
}

.data-table tr.zone-ucl .col-pos {
  box-shadow: inset -3px 0 0 #2ee6a0;
}

.data-table tr.zone-uel .col-pos {
  box-shadow: inset -3px 0 0 #38bdf8;
}

.data-table tr.zone-rel .col-pos {
  box-shadow: inset -3px 0 0 #ff4d6d;
}

.data-table tr.zone-ucl .pos-num {
  color: #2ee6a0;
  background: rgba(46, 230, 160, 0.1);
}

.data-table tr.zone-uel .pos-num {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
}

.data-table tr.zone-rel .pos-num {
  color: #ff4d6d;
  background: rgba(255, 77, 109, 0.1);
}

.data-table tr.is-highlight {
  background: rgba(46, 230, 160, 0.06);
}

.table-team {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  color: var(--text);
  min-width: 0;
}

.table-team:hover {
  color: var(--brand);
}

.table-team span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-table .pos {
  color: #2ee6a0;
}

.data-table .neg {
  color: #ff6b81;
}

.form {
  display: inline-flex;
  gap: 3px;
  direction: ltr;
}

.form-dot {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  font-size: 8.5px;
  font-style: normal;
  font-weight: 800;
  color: #041810;
}

.form-w { background: #2ee6a0; }
.form-d { background: #94a3b8; color: #0b1a2c; }
.form-l { background: #ff4d6d; color: #fff; }

.is-compact .data-table,
.data-table.is-compact {
  min-width: 480px;
}

.data-table.is-compact tbody td {
  padding: 7px 8px;
}

/* --------------------------------------------------------------- player row */
.player {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.player__avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--surface-4), var(--surface-2));
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 800;
  flex: none;
}

.player__name {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
  min-width: 0;
}

.player__name small {
  font-size: 9.5px;
  color: var(--muted-2);
  font-weight: 500;
  direction: ltr;
  text-align: start;
}

.goal-num {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 26px;
  padding: 0 7px;
  border-radius: 8px;
  background: rgba(46, 230, 160, 0.1);
  color: var(--brand);
  font-size: 14px;
}

/* ------------------------------------------------------------- comp cards */
.comp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.comp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.22s var(--ease), border-color 0.22s;
  isolation: isolate;
}

.comp-card__glow {
  position: absolute;
  inset: auto -30% -60% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--comp-accent, var(--brand));
  opacity: 0.12;
  filter: blur(28px);
  z-index: -1;
  transition: opacity 0.22s;
}

.comp-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--comp-accent, var(--brand)) 45%, var(--line));
}

.comp-card:hover .comp-card__glow {
  opacity: 0.24;
}

.comp-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.comp-card__tag {
  font-size: 9.5px;
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 99px;
  border: 1px solid var(--line);
}

.comp-card h3 {
  font-size: 15px;
  font-weight: 800;
}

.comp-card p {
  color: var(--muted);
  font-size: 11px;
}

.comp-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  color: var(--comp-accent, var(--brand));
  font-size: 11px;
  font-weight: 700;
}

/* -------------------------------------------------------------------- tabs */
.tabs {
  position: sticky;
  top: calc(var(--header-h) + 8px);
  z-index: 30;
  display: flex;
  gap: 4px;
  padding: 6px;
  margin: 18px 0;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(10, 20, 36, 0.85);
  backdrop-filter: blur(16px);
  overflow-x: auto;
  scrollbar-width: none;
}

[data-theme="light"] .tabs {
  background: rgba(255, 255, 255, 0.88);
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  transition: 0.18s;
}

.tab:hover {
  color: var(--text);
  background: var(--surface-2);
}

.tab.is-active {
  color: var(--brand-ink);
  background: linear-gradient(135deg, var(--brand), #48f2c6);
  box-shadow: 0 8px 20px -12px rgba(46, 230, 160, 0.6);
}

[data-theme="light"] .tab.is-active {
  color: #fff;
}

/* ------------------------------------------------------------- page headers */
.page-head {
  position: relative;
  padding: clamp(26px, 4vw, 44px) 0 22px;
  overflow: hidden;
}

.page-head__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.page-title {
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-top: 10px;
}

.page-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  max-width: 70ch;
}

.page-head__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.crumbs {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 2px;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.crumbs li + li::before {
  content: "‹";
  color: var(--muted-2);
  font-size: 13px;
}

.crumbs a:hover {
  color: var(--brand);
}

.crumbs [aria-current] {
  color: var(--text-soft);
}

/* -------------------------------------------------------------- date nav */
.date-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 20px;
  flex-wrap: wrap;
}

.date-nav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
  transition: 0.18s;
}

.date-nav__btn:hover {
  border-color: var(--line-strong);
  color: var(--brand);
}

.date-nav__current {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 18px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  line-height: 1.35;
  min-width: 170px;
}

.date-nav__current strong {
  font-family: var(--font-display);
  font-size: 13px;
}

.date-nav__current small {
  font-size: 10px;
  color: var(--muted);
}

.date-nav__today {
  margin-inline-start: auto;
}

/* ---------------------------------------------------------------- day tabs */
.day-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
  margin-bottom: 18px;
}

.day-strip::-webkit-scrollbar {
  display: none;
}

.day-chip {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
  padding: 7px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  transition: 0.18s;
}

.day-chip strong {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--text-soft);
}

.day-chip:hover {
  border-color: var(--line-strong);
}

.day-chip.is-active {
  border-color: rgba(46, 230, 160, 0.42);
  background: rgba(46, 230, 160, 0.08);
  color: var(--brand);
}

.day-chip.is-active strong {
  color: var(--brand);
}

/* ----------------------------------------------------------- competition UI */
.comp-hero {
  position: relative;
  overflow: hidden;
  margin-top: 14px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--comp-accent, #2ee6a0) 22%, transparent), transparent 60%),
    linear-gradient(150deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow-soft);
}

.comp-hero::after {
  content: "";
  position: absolute;
  inset-inline-end: -60px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--comp-accent, #2ee6a0) 30%, transparent);
  box-shadow: 0 0 0 40px color-mix(in srgb, var(--comp-accent, #2ee6a0) 5%, transparent),
    0 0 0 90px color-mix(in srgb, var(--comp-accent, #2ee6a0) 3%, transparent);
  pointer-events: none;
}

.comp-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.comp-hero__emblem {
  --crest: clamp(64px, 8vw, 92px);
  border-radius: 24px;
}

.comp-hero__text {
  flex: 1;
  min-width: 220px;
}

.comp-hero__text h1 {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.comp-hero__text p {
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 4px;
}

.comp-hero__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-size: 10.5px;
  font-weight: 600;
}

.chip--brand {
  color: var(--brand);
  border-color: rgba(46, 230, 160, 0.25);
  background: rgba(46, 230, 160, 0.07);
}

.comp-hero__side {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.season-select {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 11.5px;
}

.season-select select {
  border: 0;
  background: transparent;
  outline: none;
  font-weight: 700;
  font-size: 12px;
  color: var(--text);
}

/* ------------------------------------------------------------ match center */
.scoreboard {
  position: relative;
  overflow: hidden;
  margin-top: 14px;
  padding: clamp(20px, 3.4vw, 34px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(100% 130% at 50% -20%, rgba(46, 230, 160, 0.14), transparent 60%),
    linear-gradient(160deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
}

.scoreboard::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 2px, transparent 2px 8%);
  pointer-events: none;
}

.scoreboard__inner {
  position: relative;
  z-index: 2;
}

.scoreboard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.scoreboard__comp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 600;
}

.scoreboard__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
}

.scoreboard__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 3vw, 40px);
  padding: clamp(20px, 3vw, 34px) 0;
}

.score-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-align: center;
}

.score-team .crest {
  --crest: clamp(64px, 9vw, 104px);
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.32));
}

.score-team a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
}

.score-team b {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.8vw, 22px);
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.score-team small {
  font-size: 10.5px;
  color: var(--muted);
  direction: ltr;
}

.score-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 150px;
}

.score-center__nums {
  display: flex;
  align-items: center;
  gap: 10px;
  direction: ltr;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 70px);
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.score-center__nums i {
  font-style: normal;
  font-size: 0.45em;
  color: var(--muted-2);
}

.score-center__nums.is-live {
  color: var(--live);
}

.score-center__nums--time {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0.02em;
}

.score-center__status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
}

.score-center__pens {
  font-size: 11px;
  color: var(--gold);
  font-weight: 700;
}

.scoreboard__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: center;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.scoreboard__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.scoreboard__meta b {
  color: var(--text-soft);
  font-weight: 600;
}

.scoreboard__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 18px;
}

/* ------------------------------------------------------------------ events */
.events {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
}

.event {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 11px;
  transition: background 0.15s;
}

.event:hover {
  background: var(--surface-2);
}

.event--away {
  direction: ltr;
  grid-template-columns: 30px minmax(0, 1fr) 46px;
}

.event--away > * {
  direction: rtl;
}

.event__minute {
  display: grid;
  place-items: center;
  height: 26px;
  border-radius: 7px;
  background: var(--surface-3);
  color: var(--text-soft);
  font-size: 10.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.event__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.4;
}

.event__player {
  font-weight: 600;
  font-size: 12.5px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event__assist {
  font-size: 10px;
  color: var(--muted);
}

.event__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.event__icon--goal,
.event__icon--penalty {
  color: var(--brand);
  background: rgba(46, 230, 160, 0.08);
  border-color: rgba(46, 230, 160, 0.2);
}

.event__icon--yellow_card {
  background: transparent;
  border-color: transparent;
}

.event__icon--red_card,
.event__icon--second_yellow {
  background: transparent;
  border-color: transparent;
}

.event__score {
  grid-column: 2;
}

/* ------------------------------------------------------------------- stats */
.stat-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat__top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
}

.stat__top b {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.stat__top b:first-child {
  text-align: start;
}

.stat__top b:last-child {
  text-align: end;
}

.stat__top span {
  color: var(--muted);
  font-size: 10.5px;
  text-align: center;
}

.stat__bar {
  display: flex;
  height: 7px;
  border-radius: 99px;
  background: var(--surface-3);
  overflow: hidden;
  direction: ltr;
}

.stat__bar span {
  background: linear-gradient(90deg, var(--brand), #45f0c4);
  border-radius: 99px;
  transition: width 0.5s var(--ease);
}

.stat__bar i {
  background: linear-gradient(90deg, #4da3ff, #38bdf8);
  border-radius: 99px;
  margin-inline-start: 2px;
  transition: width 0.5s var(--ease);
}

/* ------------------------------------------------------------------- h2h */
.h2h-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.h2h {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 11px;
  font-size: 12px;
  transition: background 0.15s;
}

.h2h:hover {
  background: var(--surface-2);
}

.h2h__date {
  color: var(--muted);
  font-size: 10px;
}

.h2h__teams {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.h2h__teams span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.h2h__score {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  direction: ltr;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.h2h-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}

.h2h-summary b {
  color: var(--text);
  font-size: 13px;
}

.h2h-summary__score {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-weight: 700;
}

/* ---------------------------------------------------------------- team page */
.team-hero {
  position: relative;
  overflow: hidden;
  margin-top: 14px;
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(110% 160% at 0% 0%, rgba(56, 189, 248, 0.14), transparent 55%),
    linear-gradient(150deg, var(--surface-2), var(--surface));
}

.team-hero__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.team-hero__crest {
  --crest: clamp(76px, 10vw, 116px);
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.3));
}

.team-hero__info {
  flex: 1;
  min-width: 240px;
}

.team-hero__info h1 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.team-hero__en {
  color: var(--muted);
  font-size: 12px;
  direction: ltr;
  text-align: start;
}

.team-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.team-hero__standing {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.team-hero__standing b {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--brand);
  line-height: 1;
}

.team-hero__standing span {
  font-size: 10.5px;
  color: var(--muted);
  display: block;
}

/* -------------------------------------------------------------- live & home */
.live-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-head h2 {
  font-size: clamp(18px, 2.4vw, 24px);
}

.live-updated {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.live-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  background: var(--surface);
  flex-wrap: wrap;
}

.live-empty p {
  color: var(--muted);
  font-size: 12px;
}

.live-empty strong {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14px;
  margin-bottom: 2px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 16px;
  align-items: start;
}

.two-col > * {
  min-width: 0;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.three-col > * {
  min-width: 0;
}

.feature {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(46, 230, 160, 0.09);
  color: var(--brand);
  flex: none;
}

.feature h3 {
  font-size: 13.5px;
  margin-bottom: 3px;
}

.feature p {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.archive-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 34px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 150% at 100% 0%, rgba(124, 92, 255, 0.16), transparent 60%),
    var(--surface);
}

.archive-band h2 {
  font-size: clamp(18px, 2.4vw, 24px);
}

.archive-band p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.archive-band__stats {
  display: flex;
  gap: 22px;
}

.archive-band__stats b {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--brand);
  line-height: 1.2;
}

.archive-band__stats span {
  font-size: 10px;
  color: var(--muted);
}

/* -------------------------------------------------------------------- prose */
.prose {
  max-width: 780px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.95;
}

.prose h2 {
  margin: 28px 0 10px;
  font-size: 20px;
  color: var(--text);
}

.prose h3 {
  margin: 22px 0 8px;
  font-size: 16px;
  color: var(--text);
}

.prose p {
  margin-bottom: 12px;
}

.prose ul {
  margin: 0 0 14px;
  padding-inline-start: 20px;
  list-style: disc;
}

.prose li {
  margin-bottom: 5px;
}

.prose a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose .callout {
  padding: 14px 18px;
  margin: 18px 0;
  border-radius: 14px;
  border: 1px solid rgba(46, 230, 160, 0.22);
  background: rgba(46, 230, 160, 0.06);
  color: var(--text-soft);
  font-size: 13px;
}

/* -------------------------------------------------------------------- misc */
.alert {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 12px;
  margin-bottom: 16px;
}

.alert--ok {
  border-color: rgba(46, 230, 160, 0.3);
  background: rgba(46, 230, 160, 0.07);
  color: var(--brand);
}

.alert--error {
  border-color: rgba(255, 77, 109, 0.3);
  background: rgba(255, 77, 109, 0.07);
  color: var(--live);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 34px 18px;
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  background: var(--surface);
}

.empty-state__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: var(--surface-3);
  color: var(--muted);
  margin-bottom: 4px;
}

.empty-state h3 {
  font-size: 15px;
}

.empty-state p {
  color: var(--muted);
  font-size: 12px;
  max-width: 46ch;
}

.empty-state .btn {
  margin-top: 8px;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.htmx-indicator {
  display: none;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  display: inline-flex;
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-bottom: 30px;
}

.search-group h2 {
  font-size: 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-group h2 span {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
}

.result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: 0.18s;
}

.result-item:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.result-item__text {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
  min-width: 0;
}

.result-item__text strong {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-item__text small {
  font-size: 10px;
  color: var(--muted);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.matchday-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.matchday-chips {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: none;
  max-width: 100%;
}

.matchday-chips::-webkit-scrollbar {
  display: none;
}

.md-chip {
  flex: none;
  min-width: 36px;
  padding: 5px 9px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.md-chip:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.md-chip.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
  font-weight: 700;
}

.group-block {
  margin-bottom: 18px;
}

.group-block__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
}

.group-block__head a:hover {
  color: var(--brand);
}

.stage-block + .stage-block {
  margin-top: 22px;
}

.stage-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 8px;
  padding-inline-start: 10px;
  border-inline-start: 3px solid var(--brand);
  font-size: 14px;
  font-weight: 800;
}

.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

/* ------------------------------------------------------------------- footer */
.site-footer {
  margin-top: 48px;
  color: #dfe9f7;
  background: #050a13;
  border-top: 1px solid rgba(146, 178, 222, 0.12);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 300px at 88% 0%, rgba(46, 230, 160, 0.07), transparent 70%),
    radial-gradient(600px 300px at 8% 20%, rgba(56, 189, 248, 0.05), transparent 70%);
  pointer-events: none;
}

.footer-band {
  position: relative;
  border-bottom: 1px solid rgba(146, 178, 222, 0.1);
  background: linear-gradient(120deg, rgba(46, 230, 160, 0.06), rgba(56, 189, 248, 0.04));
}

.footer-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 30px 0;
}

.footer-band__text h2 {
  font-size: clamp(20px, 2.6vw, 28px);
  margin-top: 9px;
  color: #fff;
}

.footer-band__text h2 span {
  background: linear-gradient(90deg, #2ee6a0, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-band__text p {
  color: #93a8c4;
  font-size: 12px;
  margin-top: 5px;
  max-width: 62ch;
}

.footer-band__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 30px;
  padding: 38px 0;
}

.footer__brand p {
  color: #8ea3be;
  font-size: 12px;
  margin: 14px 0;
  max-width: 42ch;
  line-height: 1.8;
}

.footer__brand .brand__text strong {
  color: #fff;
}

.footer__brand .brand__text small {
  color: #6f86a3;
}

.footer__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.footer__pills span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 99px;
  border: 1px solid rgba(146, 178, 222, 0.15);
  color: #93a8c4;
  font-size: 10px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer__col h3 {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #6f86a3;
  margin-bottom: 6px;
  text-transform: uppercase;
  font-weight: 700;
}

.footer__col a {
  color: #b5c6db;
  font-size: 12px;
  width: fit-content;
  transition: color 0.18s, transform 0.18s;
}

.footer__col a:hover {
  color: #2ee6a0;
  transform: translateX(-2px);
}

.footer__demo {
  display: inline-flex;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(247, 199, 92, 0.08);
  border: 1px solid rgba(247, 199, 92, 0.2);
  color: var(--gold);
  font-size: 9.5px;
  width: fit-content;
}

.footer-credit {
  position: relative;
  border-top: 1px solid rgba(146, 178, 222, 0.1);
  background: rgba(0, 0, 0, 0.22);
}

.footer-credit__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 0;
}

.footer-credit__copy {
  color: #7d92ae;
  font-size: 10.5px;
}

.dev-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 7px;
  border-radius: 99px;
  border: 1px solid rgba(247, 199, 92, 0.28);
  background: linear-gradient(135deg, rgba(247, 199, 92, 0.11), rgba(247, 199, 92, 0.03));
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.dev-credit:hover {
  border-color: rgba(247, 199, 92, 0.55);
  box-shadow: 0 8px 26px -14px rgba(247, 199, 92, 0.5);
  transform: translateY(-1px);
}

.dev-credit__badge {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f7c75c, #e8a838);
  color: #2a1a00;
  flex: none;
}

.dev-credit__label {
  color: #9fb2cc;
  font-size: 10px;
}

.dev-credit__name {
  color: #f7c75c;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.dev-credit__phone {
  color: #e9f2ff;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  padding-inline-start: 7px;
  border-inline-start: 1px solid rgba(247, 199, 92, 0.25);
  font-variant-numeric: tabular-nums;
}

.footer-credit__social {
  display: flex;
  gap: 6px;
}

.footer-credit__social a {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid rgba(146, 178, 222, 0.15);
  color: #8ea3be;
  transition: 0.18s;
}

.footer-credit__social a:hover {
  color: #2ee6a0;
  border-color: rgba(46, 230, 160, 0.3);
  background: rgba(46, 230, 160, 0.06);
}

/* --------------------------------------------------------------- bottom nav */
.bottom-nav {
  display: none;
  position: fixed;
  inset-inline: 10px;
  bottom: 10px;
  z-index: 90;
  padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: rgba(8, 16, 29, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8);
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
}

[data-theme="light"] .bottom-nav {
  background: rgba(255, 255, 255, 0.94);
}

.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 2px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  transition: color 0.18s, background 0.18s;
}

.bottom-nav__item.is-active {
  color: var(--brand);
  background: rgba(46, 230, 160, 0.07);
}

.bottom-nav__item--live {
  color: var(--live);
}

.bottom-nav__live {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-top: -16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff4d6d, #ff7a5c);
  color: #fff;
  border: 3px solid var(--bg);
  box-shadow: 0 10px 22px -8px rgba(255, 77, 109, 0.7);
}

[data-theme="light"] .bottom-nav__live {
  border-color: #f2f6fb;
}

/* -------------------------------------------------------------------- 404 */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(50px, 10vw, 100px) 0;
  gap: 8px;
}

.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(90px, 18vw, 180px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.06em;
  background: linear-gradient(135deg, var(--brand), var(--brand-2) 60%, var(--brand-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
}

.error-page h1 {
  font-size: clamp(20px, 3vw, 30px);
}

.error-page p {
  color: var(--muted);
  max-width: 52ch;
  font-size: 13px;
}

.error-page__actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ------------------------------------------------------------------- admin */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.admin-card {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.admin-card b {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--brand);
}

.admin-card span {
  font-size: 11px;
  color: var(--muted);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0;
}

.log-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.log-table th,
.log-table td {
  border-bottom: 1px solid var(--line);
  padding: 7px 8px;
  text-align: start;
  vertical-align: top;
}

.log-table th {
  color: var(--muted);
  font-size: 10px;
}

.log-status--ok { color: #2ee6a0; }
.log-status--error { color: #ff4d6d; }
.log-status--skipped { color: #f6c453; }

/* -------------------------------------------------------------- animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------- responsive */
@media (max-width: 1120px) {
  .main-nav {
    gap: 0;
  }

  .nav-link {
    padding: 9px 10px;
    font-size: 12.5px;
  }

  .nav-menu {
    width: 500px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-copy {
    max-width: 780px;
  }

  .hero-match {
    max-width: 620px;
  }

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

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

  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .footer__col:last-child {
    grid-column: span 3;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    border-top: 1px solid rgba(146, 178, 222, 0.1);
    padding-top: 16px;
  }

  .footer__col:last-child h3 {
    width: 100%;
    margin-bottom: 2px;
  }
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .menu-btn {
    display: inline-grid;
  }

  .header__inner {
    gap: 14px;
  }

  .brand__text strong {
    font-size: 19px;
  }

  .topbar__tz,
  .topbar__rss {
    display: none;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__col:last-child {
    grid-column: span 2;
  }

  .bottom-nav {
    display: grid;
  }

  .site-main {
    padding-bottom: 84px;
  }

  .site-footer {
    margin-bottom: 74px;
  }

  .scoreboard__main {
    gap: 10px;
  }

  .score-team b {
    font-size: 13px;
  }

  .score-center__nums {
    font-size: 38px;
  }

  .score-center {
    min-width: 108px;
  }

  .event {
    grid-template-columns: 40px minmax(0, 1fr) 28px;
  }

  .event--away {
    grid-template-columns: 28px minmax(0, 1fr) 40px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 64px;
  }

  .container {
    width: calc(100% - 28px);
  }

  .topbar__meta {
    gap: 8px;
  }

  .topbar__date {
    font-size: 10.5px;
  }

  .topbar__sep,
  .topbar__tz {
    display: none;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .brand__text strong {
    font-size: 17px;
  }

  .brand__text small {
    font-size: 7.5px;
  }

  .header__actions .icon-btn {
    width: 38px;
    height: 38px;
  }

  .hero {
    padding-top: 26px;
  }

  .hero-title {
    font-size: clamp(28px, 8vw, 38px);
  }

  .hero-stats {
    gap: 18px;
  }

  .hero-match {
    padding: 16px;
  }

  .hero-scoreline {
    padding: 16px 0 13px;
  }

  .hero-team b {
    font-size: 12px;
  }

  .hero-score__nums {
    font-size: 32px;
  }

  .match-row {
    grid-template-columns: minmax(0, 1fr) 62px minmax(0, 1fr);
    grid-template-areas:
      "home score away"
      "status status status";
    gap: 3px 8px;
    padding: 9px 8px;
  }

  .match-row__status {
    grid-area: status;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 3px;
    padding-top: 6px;
    border-top: 1px dashed var(--line);
  }

  .match-row__team--home {
    grid-area: home;
  }

  .match-row__score {
    grid-area: score;
    font-size: 16px;
    min-height: 28px;
  }

  .match-row__team--away {
    grid-area: away;
  }

  .match-row__go {
    display: none;
  }

  .match-row__name {
    font-size: 12px;
  }

  .match-row__team .crest {
    --crest: 26px;
  }

  .match-row__comp {
    display: none;
  }

  .match-row__date {
    display: inline;
  }

  .mcard__team span {
    font-size: 11.5px;
  }

  .mcard__score {
    font-size: 24px;
    min-width: 62px;
  }

  .section-head {
    align-items: center;
  }

  .section-link {
    font-size: 10.5px;
    padding: 5px 10px;
  }

  .section-sub {
    font-size: 11px;
  }

  .comp-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .comp-card {
    padding: 12px;
  }

  .comp-card h3 {
    font-size: 13px;
  }

  .comp-card__cta {
    font-size: 10px;
  }

  .tabs {
    top: calc(var(--header-h) + 4px);
    margin: 12px 0;
  }

  .tab {
    padding: 7px 11px;
    font-size: 11.5px;
  }

  .tab .icon {
    display: none;
  }

  .page-head {
    padding-top: 20px;
  }

  .page-head__inner {
    align-items: flex-start;
  }

  .page-title {
    font-size: 24px;
  }

  .comp-hero__inner {
    gap: 14px;
  }

  .comp-hero__emblem {
    --crest: 60px;
    border-radius: 16px;
  }

  .comp-hero__side {
    width: 100%;
  }

  .scoreboard {
    padding: 16px;
  }

  .scoreboard__main {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 6px;
    padding: 18px 0;
  }

  .score-team .crest {
    --crest: 54px;
  }

  .score-team b {
    font-size: 12px;
  }

  .score-team small {
    display: none;
  }

  .score-center {
    min-width: 88px;
  }

  .score-center__nums {
    font-size: 32px;
    gap: 6px;
  }

  .scoreboard__meta {
    gap: 6px 14px;
    font-size: 10px;
  }

  .scoreboard__actions .btn {
    min-height: 38px;
    font-size: 12px;
    padding: 0 14px;
  }

  .data-table,
  .data-table.is-compact,
  .is-compact .data-table {
    font-size: 11.5px;
    min-width: 0;
    width: 100%;
  }

  .data-table thead th {
    font-size: 9px;
    padding: 8px 4px;
  }

  .data-table tbody td {
    padding: 8px 4px;
  }

  .data-table .col-team,
  .data-table .col-player {
    min-width: 92px;
    padding-inline-start: 8px;
  }

  .data-table .col-pos {
    width: 28px;
  }

  .table-team {
    gap: 7px;
  }

  .hide-sm {
    display: none;
  }

  .hide-md {
    display: none;
  }

  .three-col {
    grid-template-columns: 1fr;
  }

  .archive-band {
    padding: 18px;
  }

  .archive-band__stats {
    gap: 16px;
  }

  .footer-band__inner {
    padding: 24px 0;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 26px 0;
  }

  .footer__col:last-child {
    grid-column: span 1;
    border-top: 0;
    padding-top: 0;
  }

  .footer__col {
    gap: 5px;
  }

  .footer-credit__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 10px;
  }

  .dev-credit {
    justify-content: center;
  }

  .footer-credit__social {
    justify-content: center;
  }

  .footer-credit__copy {
    order: 3;
  }

  .search-overlay {
    padding: 8vh 12px 12px;
  }

  .search-panel {
    padding: 14px;
  }

  .search-form {
    flex-wrap: wrap;
  }

  .search-form input {
    width: calc(100% - 120px);
    flex: 1;
  }

  .search-panel__hints {
    display: none;
  }

  .h2h {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    padding: 9px 8px;
  }

  .h2h__date {
    font-size: 9px;
  }

  .team-hero__inner {
    gap: 14px;
  }

  .team-hero__crest {
    --crest: 72px;
  }

  .team-hero__info h1 {
    font-size: 26px;
  }

  .team-hero__standing {
    width: 100%;
    justify-content: center;
  }

  .search-form .btn {
    min-height: 38px;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .footer-band__actions {
    width: 100%;
  }

  .footer-band__actions .btn {
    flex: 1;
  }
}

@media (max-width: 420px) {
  .comp-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-team .crest {
    --crest: 48px;
  }

  .hero-score__nums {
    font-size: 27px;
  }

  .brand__text small {
    display: none;
  }

  .score-team .crest {
    --crest: 46px;
  }

  .score-center__nums {
    font-size: 26px;
  }

  .live-pill {
    font-size: 9px;
  }

  .day-chip {
    min-width: 56px;
  }
}

/* ------------------------------------------------------------------- print */
@media print {
  .site-header,
  .topbar,
  .site-footer,
  .bottom-nav,
  .tabs,
  .hero-actions,
  .scoreboard__actions,
  .section-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .scoreboard,
  .panel,
  .mcard {
    border: 1px solid #ccc;
    box-shadow: none;
  }
}
