/* ================================================================ design tokens */
:root {
  --bg: #f2f5f9;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --surface-3: #edf1f6;
  --line: #e5eaf0;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --primary: #0d9488;
  --primary-strong: #0f766e;
  --primary-soft: #e6f7f5;
  --grad: linear-gradient(135deg, #14b8a6 0%, #0ea5e9 100%);
  --hot: #ef4444;
  --hot-soft: #fdecec;
  --header: #0b1220;
  --header-2: #101a2d;
  --header-line: rgba(255, 255, 255, .07);
  --c-calendar: #0ea5e9;
  --c-star: #f59e0b;
  --c-tv: #8b5cf6;
  --c-medal: #eab308;
  --c-fire: #ef4444;
  --radius-lg: 16px;
  --radius: 12px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .05);
  --shadow-md: 0 12px 28px -14px rgba(15, 23, 42, .22);
  --font-scale: 1;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0a0f1a; --surface: #111a28; --surface-2: #152133; --surface-3: #1b293e; --line: #1f2c40;
  --text: #e6edf6; --text-2: #c5d0dd; --muted: #8b9bb0; --faint: #64748b;
  --primary: #2dd4bf; --primary-strong: #5eead4; --primary-soft: rgba(45, 212, 191, .12);
  --hot-soft: rgba(239, 68, 68, .14); --header: #070b14; --header-2: #0b1220;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35); --shadow-md: 0 12px 28px -14px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ================================================================ base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; scroll-behavior: smooth; }
body {
  margin: 0; font-family: "Estedad", Tahoma, sans-serif; font-size: 14px; line-height: 1.8;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.6; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, select, input { font: inherit; color: inherit; }
svg { fill: currentColor; }
::selection { background: var(--primary-soft); color: var(--text); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.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; }
.container { width: 100%; max-width: 1300px; margin: 0 auto; padding: 0 16px; }
.page { padding-top: 20px; padding-bottom: 40px; min-height: 60vh; }
.w-empty { padding: 26px 16px; text-align: center; color: var(--muted); font-size: 13px; margin: 0; }
.kicker { font-size: 12px; font-weight: 700; color: var(--primary); }
.meta { font-size: 12px; color: var(--muted); }
.btn { display: inline-flex; align-items: center; gap: 6px; background: var(--grad); color: #fff; font-weight: 700; padding: 9px 20px; border-radius: 999px; box-shadow: var(--shadow-md); }
.btn:hover { filter: brightness(1.06); }

/* ================================================================ header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header); color: #e2e8f0; transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 6px 20px -10px rgba(0, 0, 0, .5); }
.header-row { display: flex; align-items: center; gap: 22px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 900; color: #fff; flex: none; letter-spacing: -.2px; }
.logo svg { width: 38px; height: 38px; }

.header-tools { display: flex; align-items: center; gap: 12px; flex: none; margin-inline-start: auto; }
.today { font-size: 12.5px; color: #94a3b8; white-space: nowrap; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--header-line); background: rgba(255, 255, 255, .05); color: #e2e8f0; cursor: pointer; transition: background .15s; }
.icon-btn:hover { background: rgba(255, 255, 255, .12); }
.icon-btn svg { width: 19px; height: 19px; }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }

.nav-row { background: var(--header-2); border-top: 1px solid var(--header-line); }
.nav-scroll { display: flex; gap: 4px; padding-top: 8px; padding-bottom: 8px; overflow-x: auto; scrollbar-width: none; }
.nav-scroll::-webkit-scrollbar { display: none; }
.nav-scroll a {
  display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 6px 15px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: #cbd5e1; white-space: nowrap; transition: background .15s, color .15s;
}
.nav-scroll a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-scroll a.active { background: var(--grad); color: #fff; box-shadow: 0 4px 14px -6px rgba(14, 165, 233, .7); }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 0 3px rgba(239, 68, 68, .25); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ================================================================ box */
.wbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); margin-bottom: 18px; overflow: hidden; }
.wbox-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 12px; }
.wbox-title { display: flex; align-items: center; gap: 10px; font-size: 15.5px; font-weight: 800; color: var(--text); }
.wbox-icon { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.wbox-icon svg { width: 18px; height: 18px; }
.wbox-icon-calendar { color: var(--c-calendar); background: color-mix(in srgb, var(--c-calendar) 13%, transparent); }
.wbox-icon-star { color: var(--c-star); background: color-mix(in srgb, var(--c-star) 14%, transparent); }
.wbox-icon-tv { color: var(--c-tv); background: color-mix(in srgb, var(--c-tv) 14%, transparent); }
.wbox-icon-medal { color: var(--c-medal); background: color-mix(in srgb, var(--c-medal) 16%, transparent); }
.wbox-icon-fire { color: var(--c-fire); background: var(--hot-soft); }
.live-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--hot); background: var(--hot-soft); padding: 2px 10px; border-radius: 999px; }
.live-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--hot); animation: pulse 1.3s infinite; }

/* segmented tabs */
.w-tabs { display: flex; gap: 2px; margin: 0 14px 12px; padding: 4px; border-radius: var(--radius); background: var(--surface-3); overflow-x: auto; scrollbar-width: none; }
.w-tabs::-webkit-scrollbar { display: none; }
.w-tab { flex: 1 0 auto; border: 0; background: none; padding: 6px 12px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.w-tab:hover { color: var(--text); }
.w-tab.active { background: var(--surface); color: var(--text); font-weight: 800; box-shadow: var(--shadow-sm); }

/* selects */
.w-selects { display: flex; gap: 8px; padding: 0 14px 12px; }
.w-select { position: relative; flex: 1; min-width: 0; }
.w-select-sm { flex: 0 0 38%; }
.w-select::after { content: ""; position: absolute; left: 14px; top: 50%; width: 7px; height: 7px; border: solid var(--muted); border-width: 0 0 2px 2px; transform: translateY(-70%) rotate(-45deg); pointer-events: none; }
.w-select select {
  width: 100%; appearance: none; cursor: pointer; padding: 9px 14px 9px 34px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; font-weight: 700; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.w-select select:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.w-select select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }

/* panel loading */
.w-panel { position: relative; }
.w-panel.loading > * { opacity: .35; transition: opacity .15s; }
.w-panel.loading::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--surface) 70%, transparent) 50%, transparent 80%);
  background-size: 200% 100%; animation: shimmer 1.1s linear infinite;
}
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.w-note { margin: 0 14px 10px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--hot-soft); color: var(--hot); font-size: 12.5px; font-weight: 600; text-align: center; }

/* section strips */
.w-bar { display: flex; align-items: center; gap: 8px; padding: 9px 16px; font-size: 12.5px; font-weight: 800; color: var(--text); background: var(--surface-2); border-top: 1px solid var(--line); }
.w-bar::before { content: ""; width: 4px; height: 16px; border-radius: 4px; background: var(--bar, var(--primary)); }
.w-date { padding: 7px 16px; font-size: 12px; font-weight: 700; color: var(--muted); border-top: 1px solid var(--line); background: var(--surface); }

/* matches */
.m-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr) 42px; align-items: center; gap: 6px;
  padding: 9px 16px; font-size: 13px; border-top: 1px solid var(--line); transition: background .15s;
}
.m-row:hover { background: var(--surface-2); }
/* team name + logo: logo on the right of the name; in match rows the away (left) team has it on the left,
   so both logos sit on the outer edges of the row */
.m-team { display: flex; align-items: center; gap: 7px; min-width: 0; font-weight: 600; color: var(--text-2); }
.m-host { justify-content: flex-start; }
.m-guest { justify-content: flex-end; }
.tm { display: inline-flex; align-items: center; gap: 7px; min-width: 0; max-width: 100%; vertical-align: middle; }
.tm-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tlogo { flex: none; width: 20px; height: 20px; object-fit: contain; }
.m-team.win { font-weight: 800; color: var(--text); }

.m-score { display: flex; justify-content: center; align-items: center; gap: 5px; direction: ltr; height: 28px; border-radius: 8px; background: var(--surface-3); font-weight: 800; font-variant-numeric: tabular-nums; }
.m-score i { font-style: normal; color: var(--faint); }
.m-score time { font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.is-done .m-score { background: var(--text); color: var(--surface); }
.is-done .m-score i { color: var(--faint); }
.is-live .m-score { background: var(--hot); color: #fff; }
.m-status { text-align: left; font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.m-status em { font-style: normal; font-weight: 800; color: var(--hot); }
.is-live .m-status em::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 4px; border-radius: 50%; background: var(--hot); animation: pulse 1.2s infinite; }

/* tables */
.w-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.w-table th { padding: 8px 6px; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--muted); background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.w-table td { padding: 9px 6px; text-align: center; color: var(--text-2); border-bottom: 1px solid var(--line); }
.w-table tbody tr:last-child td { border-bottom: 0; }
.w-table tbody tr { transition: background .15s; }
.w-table tbody tr:hover { background: var(--surface-2); }
.w-table .c-rank { width: 48px; padding-inline-start: 12px; }
.w-table .c-rank span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-size: 12px; font-weight: 800; color: var(--muted); }
.w-table tr.zoned .c-rank { box-shadow: inset -3px 0 var(--zone); }
.w-table tr.zoned .c-rank span { color: var(--zone); background: color-mix(in srgb, var(--zone) 13%, transparent); }
.w-table .c-team { text-align: right; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 0; width: 100%; }
.w-table .c-points { font-weight: 900; color: var(--text); font-size: 13.5px; }
.w-table .c-goalDifference { direction: ltr; }
.medal-table .flag { display: inline-block; width: 22px; height: 15px; object-fit: cover; border-radius: 3px; margin-inline-end: 8px; vertical-align: -2px; box-shadow: 0 0 0 1px var(--line); }
.medal { display: inline-grid; place-items: center; min-width: 32px; height: 24px; padding: 0 6px; border-radius: 999px; font-weight: 800; font-size: 12px; }
.medal.gold { background: #fef3c7; color: #92400e; }
.medal.silver { background: #e2e8f0; color: #475569; }
.medal.bronze { background: #fde4d0; color: #9a3412; }
.medal-table tr.is-iran { background: color-mix(in srgb, #22c55e 9%, transparent); }

/* top players */
.top-row { display: grid; grid-template-columns: 46px 44px minmax(0, 1fr); align-items: center; gap: 12px; padding: 9px 16px; border-top: 1px solid var(--line); transition: background .15s; }
.top-row:hover { background: var(--surface-2); }
.top-count { text-align: center; font-size: 19px; font-weight: 900; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.top-count small { display: block; font-size: 10px; font-weight: 700; color: var(--muted); -webkit-text-fill-color: var(--muted); }
.top-row img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--surface-3); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--surface-3); }
.top-name b { display: block; font-size: 13.5px; font-weight: 800; }
.top-name > span { font-size: 12px; color: var(--muted); }
.top-name .tlogo { width: 16px; height: 16px; }

/* TV schedule rows reuse the fixture row (home | time | away | status) plus a centred competition line */
.tv-row { grid-template-areas: "host score guest status" "meta meta meta meta"; row-gap: 3px; }
.tv-row .m-host, .tv-row .tv-event { grid-area: host; }
.tv-row .m-score { grid-area: score; }
.tv-row .m-guest { grid-area: guest; }
.tv-row .m-status { grid-area: status; }
.tv-meta { grid-area: meta; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; }
.tv-title { font-size: 11.5px; color: var(--muted); }

@keyframes fresh { from { background: var(--primary-soft); } to { background: transparent; } }

.k-video { color: var(--c-calendar); }
.k-photo { color: var(--c-tv); }

/* ================================================================ home grid */
/* Left column sits beside one block holding the right/center columns. */
.home-grid { display: grid; gap: 0 18px; align-items: start; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.home-main { min-width: 0; }

.home-cols { display: grid; gap: 0 18px; align-items: start; grid-template-columns: repeat(2, minmax(0, 1fr)); }

@keyframes fadein { from { opacity: .25; } to { opacity: 1; } }

/* ================================================================ inner pages */
.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.crumbs a:hover { color: var(--primary); }
.crumbs a:last-child { color: var(--primary); font-weight: 700; }
.page-head { margin-bottom: 16px; }
.page-head h1 { font-size: 24px; font-weight: 900; }

.article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 28px 36px 32px; }
.article-title { font-size: 28px; font-weight: 900; line-height: 1.65; text-wrap: balance; }

.article-body { font-size: calc(16.5px * var(--font-scale)); line-height: 2.15; color: var(--text); }
.article-body p { margin: 0 0 18px; text-align: justify; }
.article-body h2, .article-body h3 { font-size: calc(18px * var(--font-scale)); font-weight: 800; margin: 26px 0 10px; }

.empty-page { padding: 70px 20px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.empty-page h1 { font-size: 72px; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.empty-page p { color: var(--muted); margin: 6px 0 22px; }

/* ================================================================ footer + floating UI */
.site-footer { background: var(--header); color: #94a3b8; margin-top: 16px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; padding-top: 38px; padding-bottom: 28px; }
.footer-cols h4 { color: #fff; font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.footer-cols a { display: block; width: fit-content; font-size: 13px; padding: 3px 0; transition: color .15s; }
.footer-cols a:hover { color: #5eead4; }
.footer-cols a.tm { display: flex; }
.footer-cols .tlogo { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; border-top: 1px solid var(--header-line); padding-top: 16px; padding-bottom: 20px; font-size: 12px; }
.logo-mini { color: #fff; font-weight: 900; font-size: 15px; }

.to-top { position: fixed; left: 22px; bottom: 22px; z-index: 40; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--grad); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-md); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 22px; height: 22px; }
.bottom-nav { display: none; }

/* ================================================================ responsive */
@media (max-width: 1150px) {
  .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-cols { grid-template-columns: minmax(0, 1fr); }
  .layout-2 { grid-template-columns: minmax(0, 1fr) 320px; }
  .today { display: none; }
}
@media (max-width: 860px) {
  .header-row { height: 58px; gap: 12px; }
  .header-tools { margin-inline-start: auto; }
  /* one column: slider, football news, then the remaining boxes */
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .home-main { display: contents; }
  .col-left { order: 2; }
  .home-cols { order: 3; }
  .layout-2 { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body { padding-bottom: 68px; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0 0; z-index: 45; height: 64px;
    padding-bottom: env(safe-area-inset-bottom); background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  }
  .bottom-nav a, .bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; background: none; cursor: pointer; font-size: 10.5px; font-weight: 700; color: var(--muted); }
  .bottom-nav svg { width: 22px; height: 22px; }
  .bottom-nav .active { color: var(--primary); }
  .to-top { bottom: 82px; left: 16px; width: 42px; height: 42px; }
}
@media (max-width: 600px) {
  .logo { font-size: 18px; }
  .logo svg { width: 34px; height: 34px; }
  .nav-scroll a { padding: 5px 13px; font-size: 13px; }
  .page { padding-top: 14px; }
  .article { padding: 18px 16px 22px; margin-inline: -16px; border-radius: 0; border-inline: 0; }
  .article-title { font-size: 21px; }
  .m-row { grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr) 34px; padding: 9px 12px; }
}

/* ================================================================ live scores */
.box-more { display: block; padding: 11px 16px; border-top: 1px solid var(--line); text-align: center; font-size: 13px; font-weight: 800; color: var(--primary-strong); transition: background .15s; }
.box-more:hover { background: var(--surface-2); }
.m-off { color: var(--hot); font-weight: 700; }
.is-off .m-team { color: var(--faint); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--faint) 60%, transparent); }
.live-box .m-list .m-row:first-child { border-top: 1px solid var(--line); }

.live-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.live-count { color: var(--hot); }
.live-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.day-tabs { display: inline-flex; gap: 2px; padding: 4px; border-radius: var(--radius); background: var(--surface-3); }
.day-tabs a { padding: 7px 22px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 700; color: var(--muted); transition: background .15s, color .15s; }
.day-tabs a:hover { color: var(--text); }
.day-tabs a.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.live-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 700; color: var(--text-2); transition: all .15s; }
.chip:hover { border-color: var(--primary); color: var(--primary-strong); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.live-groups { columns: 2 440px; column-gap: 18px; }
.live-groups > .wbox, .live-groups > .w-note { break-inside: avoid; }
.live-groups > .w-note { column-span: all; }
.league-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.league-head img { width: 24px; height: 24px; object-fit: contain; flex: none; }
.league-head h2 { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 800; }
.league-count { font-size: 12px; color: var(--faint); white-space: nowrap; }

@media (max-width: 600px) {
  .day-tabs { width: 100%; }
  .day-tabs a { flex: 1; text-align: center; padding: 7px 0; }
}

/* ================================================================ «تیم من» */
.mt-edit { border: 0; background: none; color: var(--primary-strong); font-size: 12.5px; font-weight: 800; cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.mt-edit:hover { background: var(--primary-soft); }
.mt-picker { padding: 0 14px 14px; border-bottom: 1px solid var(--line); }
.mt-hint { margin: 0 0 8px; font-size: 12px; color: var(--muted); }
.mt-selected { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.mt-selected:empty { display: none; }
.mt-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-strong); font-size: 12.5px; font-weight: 800; }
.mt-chip button { border: 0; background: none; color: inherit; font-size: 16px; line-height: 1; cursor: pointer; padding: 0 2px; }
.mt-chip .tlogo, .mt-suggest .tlogo, .mt-results .tlogo { width: 18px; height: 18px; }
.mt-search { width: 100%; padding: 9px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: 13.5px; outline: none; }
.mt-search:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.mt-results { margin-top: 6px; }
.mt-results button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border: 0; border-radius: 8px; background: none; text-align: right; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.mt-results button:hover { background: var(--surface-2); color: var(--primary-strong); }
.mt-results small { color: var(--faint); margin-inline-start: auto; }
.mt-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.mt-suggest .chip { cursor: pointer; }
.mt-done { width: 100%; justify-content: center; }
.mt-empty { padding: 4px 16px 18px; text-align: center; font-size: 13px; color: var(--muted); }
.mt-empty p { margin: 0 0 12px; line-height: 2; }
.mt-card { padding: 12px 16px 14px; border-top: 1px solid var(--line); }
.mt-team { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.mt-logo .tlogo { width: 34px; height: 34px; }
.mt-team-info { min-width: 0; display: flex; flex-direction: column; }
.mt-name { font-size: 15px; font-weight: 900; }
.mt-name:hover { color: var(--primary-strong); }
.mt-standing { font-size: 11.5px; color: var(--muted); }
.mt-block { margin-top: 8px; padding: 8px 10px; border-radius: var(--radius); background: var(--surface-2); }
.mt-label { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; color: var(--muted); margin-bottom: 6px; }
.mt-res { font-style: normal; padding: 0 8px; border-radius: 999px; font-size: 11px; }
.mt-win { color: #15803d; background: color-mix(in srgb, #22c55e 16%, transparent); }
.mt-draw { color: #a16207; background: color-mix(in srgb, #eab308 18%, transparent); }
.mt-loss { color: #b91c1c; background: color-mix(in srgb, #ef4444 15%, transparent); }
:root[data-theme="dark"] .mt-win { color: #86efac; }
:root[data-theme="dark"] .mt-draw { color: #fde047; }
:root[data-theme="dark"] .mt-loss { color: #fca5a5; }
.mt-match { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.mt-side { display: flex; align-items: center; gap: 6px; min-width: 0; }
.mt-away { justify-content: flex-end; }
.mt-mid b { display: inline-block; min-width: 54px; text-align: center; padding: 2px 8px; border-radius: 8px; direction: ltr; font-variant-numeric: tabular-nums; }
.mt-time { background: var(--surface-3); }
.mt-score { background: var(--text); color: var(--surface); }
.mt-score.is-live { background: var(--hot); color: #fff; }
.mt-when { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.mt-when [data-countdown] { color: var(--primary-strong); font-weight: 800; }
.mt-live { font-style: normal; color: var(--hot); font-weight: 800; }
.mt-none { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }

.mt-body.loading { opacity: .5; transition: opacity .15s; }

/* ================================================================ reference pages (team / match / league) */
a.tm-name:hover, .m-score[href]:hover { color: var(--primary-strong); }
a.m-score { color: inherit; }
.is-done a.m-score:hover { background: var(--primary-strong); color: #fff; }
.league-head h2 a:hover { color: var(--primary-strong); }

.ent-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; padding: 20px 22px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.ent-logo .tlogo, .ent-league-logo { width: 72px; height: 72px; object-fit: contain; }

.ent-info h1 { font-size: 26px; font-weight: 900; }
.ent-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.ent-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; background: var(--surface-3); font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.ent-chip .tlogo { width: 18px; height: 18px; }
.ent-chip-link:hover, .ent-chip a:hover { color: var(--primary-strong); }
.ent-form { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }

.res { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-style: normal; font-size: 11.5px; font-weight: 900; color: #fff; flex: none; }
.res-win { background: #16a34a; } .res-draw { background: #ca8a04; } .res-loss { background: #dc2626; }
.form-dots { display: inline-flex; gap: 3px; }

.result-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 56px; align-items: center; gap: 10px; padding: 9px 16px; border-top: 1px solid var(--line); }
.rl-opp { display: flex; align-items: center; gap: 6px; font-weight: 700; min-width: 0; }
.rl-league { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.rl-score { text-align: center; padding: 3px 0; border-radius: 8px; background: var(--text); color: var(--surface); font-weight: 800; direction: ltr; }
a.rl-score:hover { background: var(--primary-strong); }

.squad-role { font-size: 13px; font-weight: 800; color: var(--muted); padding: 10px 16px 4px; border-top: 1px solid var(--line); }
.squad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; padding: 6px 12px 12px; }
.squad-grid li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: var(--radius); text-align: center; transition: background .15s; }

.squad-grid img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--surface-3); }
.squad-grid b { font-size: 12.5px; line-height: 1.6; }
.squad-grid small { font-size: 11px; color: var(--muted); }

.w-table tr.is-me td { background: var(--primary-soft); font-weight: 800; }
.table-scroll { overflow-x: auto; }
.full-table { min-width: 560px; }

.match-hero { margin-bottom: 18px; padding: 18px 20px 14px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.mh-meta, .mh-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-size: 12.5px; color: var(--muted); }
.mh-meta a { color: var(--primary-strong); font-weight: 800; }
.mh-board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin: 14px 0; }
.mh-team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.mh-team .tlogo { width: 64px; height: 64px; }
.mh-team h2 { font-size: 17px; font-weight: 900; }
.mh-team h2 a:hover { color: var(--primary-strong); }
.mh-score { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mh-score b { font-size: 34px; font-weight: 900; direction: ltr; padding: 2px 18px; border-radius: 14px; background: var(--text); color: var(--surface); font-variant-numeric: tabular-nums; }
.mh-score b.mh-time { font-size: 22px; background: var(--surface-3); color: var(--text); }
.match-hero.is-live .mh-score b { background: var(--hot); color: #fff; }
.mh-status { font-size: 12px; color: var(--muted); font-weight: 700; }
.mh-status em { font-style: normal; color: var(--hot); }

.events { list-style: none; margin: 0; padding: 4px 0; }
.ev-row { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-top: 1px solid var(--line); }
.ev-row.ev-guest { flex-direction: row-reverse; text-align: left; }
.ev-min { flex: none; width: 34px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; text-align: center; }
.ev { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; font-size: 14px; }
.ev-card { width: 14px; height: 19px; border-radius: 3px; }
.ev-yellow { background: #facc15; } .ev-red { background: #dc2626; }
.ev-sub { color: #16a34a; font-weight: 900; } .ev-miss { color: #dc2626; font-weight: 900; }
.ev-var { font-size: 9px; font-weight: 900; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; width: auto; padding: 0 4px; }
.ev-text { display: flex; flex-direction: column; min-width: 0; font-size: 13.5px; }
.ev-text small { font-size: 11.5px; color: var(--muted); }
.ev-text a:hover { color: var(--primary-strong); }

.lineups { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.lineup { padding: 12px 16px; }
.lineup + .lineup { border-right: 1px solid var(--line); }
.lineup h3 { font-size: 14.5px; font-weight: 900; margin-bottom: 8px; }
.lineup h3 small, .lineup h4 { font-size: 12px; color: var(--muted); font-weight: 700; }
.lineup h4 { margin: 12px 0 6px; }
.lineup li { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; }
.lineup li a:hover { color: var(--primary-strong); }
.ln-num { flex: none; width: 24px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: var(--surface-3); font-size: 11.5px; font-weight: 800; }
.ln-badge { font-style: normal; font-size: 10.5px; font-weight: 800; padding: 0 6px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-strong); }
.ln-motm { background: color-mix(in srgb, #eab308 18%, transparent); color: #a16207; }
.ln-bench li { color: var(--text-2); }
.ln-coach { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }

.stats li { padding: 9px 16px; border-top: 1px solid var(--line); }
.st-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 6px; }
.st-head span { color: var(--muted); font-weight: 600; }
.st-head b { font-weight: 900; font-variant-numeric: tabular-nums; }
.st-bar { height: 6px; border-radius: 99px; background: color-mix(in srgb, #0ea5e9 35%, var(--surface-3)); overflow: hidden; display: flex; }
.st-bar i { display: block; background: var(--primary); border-radius: 99px; }

.leaders li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 16px; border-top: 1px solid var(--line); }
.leaders img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--surface-3); }
.leaders span { display: flex; flex-direction: column; min-width: 0; font-size: 13px; font-weight: 700; }
.leaders span small { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.leaders span a:hover { color: var(--primary-strong); }
.leaders b { font-size: 15px; font-weight: 900; }
.leaders b small { font-size: 10.5px; color: var(--muted); }

.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font-size: 12.5px; font-weight: 700; transition: all .15s; }
.tag .tlogo { width: 18px; height: 18px; }
.tag:hover { border-color: var(--primary); color: var(--primary-strong); }
.tag-player::before { content: "#"; color: var(--primary); }

.footer-trust { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-bottom: 14px; font-size: 13px; }
.footer-trust a:hover { color: #5eead4; }
.page-links nav { display: flex; flex-direction: column; padding: 8px; }
.page-links a { padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 13.5px; }
.page-links a:hover, .page-links a.active { background: var(--primary-soft); color: var(--primary-strong); }
.static-page .article-body h2 { margin-top: 22px; }
.static-page .article-body ul { padding-right: 20px; line-height: 2.1; }
.author-news li { padding: 6px 0; }
.author-news small { color: var(--muted); }

@media (max-width: 600px) {
  .ent-hero { padding: 14px; gap: 12px; }
  .ent-info h1 { font-size: 20px; }
  .ent-logo .tlogo, .ent-league-logo { width: 52px; height: 52px; }
  .mh-team .tlogo { width: 44px; height: 44px; }
  .mh-team h2 { font-size: 14px; }
  .mh-score b { font-size: 26px; padding: 2px 12px; }
  .lineups { grid-template-columns: 1fr; }
  .lineup + .lineup { border-right: 0; border-top: 1px solid var(--line); }
  .result-list li { grid-template-columns: 22px minmax(0, 1fr) 50px; }
  .rl-league { display: none; }
}

.w-bar a:hover { color: var(--primary-strong); }

/* ================================================================ leagues (home box, directory, league page) */
.lb-region { font-size: 12px; font-weight: 800; color: var(--muted); padding: 10px 16px 4px; border-top: 1px solid var(--line); }
.lb-region:first-of-type { border-top: 0; }
.lb-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 6px; padding: 2px 10px 8px; }
.lb-list a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; font-size: 13px; font-weight: 600; min-width: 0; }
.lb-list a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-list a:hover { background: var(--surface-2); color: var(--primary-strong); }
.lb-list img { width: 20px; height: 20px; object-fit: contain; flex: none; }

.league-region { margin-bottom: 26px; }
.lr-title { font-size: 18px; font-weight: 900; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.lr-title::before { content: ""; width: 5px; height: 22px; border-radius: 5px; background: var(--grad); }
.league-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.league-card { margin: 0; display: flex; flex-direction: column; }
.lc-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 8px; }
.lc-head img { width: 32px; height: 32px; object-fit: contain; }
.lc-head h3 { font-size: 15px; font-weight: 800; }
.lc-head:hover h3 { color: var(--primary-strong); }
.lc-top { padding: 0 16px; }
.lc-top li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.lc-rank { color: var(--muted); font-weight: 700; text-align: center; }
.lc-top b { font-weight: 800; }
.lc-note { padding: 0 16px; font-size: 13px; color: var(--muted); }
.lc-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin: auto 0 0; padding: 10px 16px 12px; font-size: 12px; color: var(--muted); }
.lc-foot a { color: var(--primary-strong); font-weight: 700; margin-inline-start: auto; }

.round-nav { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; }
.round-nav .w-select { flex: 0 1 260px; }
.round-step { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: 18px; font-weight: 800; cursor: pointer; }
.round-step.is-off { opacity: .35; cursor: default; }
.round-step:hover { border-color: var(--primary); color: var(--primary); }
.round-title { font-size: 14px; font-weight: 800; padding: 4px 16px 8px; text-align: center; color: var(--muted); }
.pre-table td, .pre-table th { white-space: nowrap; }
.static-page .article-body a { color: var(--primary-strong); font-weight: 600; }

.compare li { display: grid; grid-template-columns: 1fr minmax(0, 2fr) 1fr; align-items: center; gap: 8px; padding: 8px 16px; border-top: 1px solid var(--line); font-size: 13px; text-align: center; }
.compare li span { color: var(--muted); }
.compare li b { font-weight: 800; }
.compare li b.better { color: var(--primary-strong); }
.compare .cmp-head { border-top: 0; font-weight: 800; }
.compare .cmp-head span { color: var(--text); }
.insights { padding: 4px 16px 12px; }
.insights li { position: relative; padding: 8px 18px 8px 0; font-size: 13.5px; line-height: 1.95; border-top: 1px solid var(--line); }
.insights li:first-child { border-top: 0; }
.insights li::before { content: ""; position: absolute; right: 2px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.zone-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 16px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.zone-legend li { display: inline-flex; align-items: center; gap: 6px; }
.zone-legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }

/* ================================================================ SEO page parts */
.h1-season, .h1-date { font-size: .62em; font-weight: 700; color: var(--muted); }
.page-intro { padding: 14px 18px 4px; }
.page-intro p { margin: 0 0 10px; font-size: 14px; line-height: 2.05; color: var(--text-2); text-align: justify; }
.intro-title { font-size: 15px; font-weight: 900; margin: 0 0 6px; }
.round-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 14px; }
.round-chips .chip { font-size: 12px; padding: 3px 10px; }
.round-chips .chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.next-match .nm-body { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 14px 16px; }
.nm-team { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 14px; }
.nm-team .tlogo { width: 44px; height: 44px; }
.nm-mid { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.nm-time { font-size: 22px; font-weight: 900; color: var(--primary-strong); }
.nm-mid span { font-size: 12.5px; font-weight: 700; }
.nm-mid small { font-size: 11.5px; color: var(--muted); }

.outlook li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 16px; border-top: 1px solid var(--line); font-size: 13px; }
.outlook li:first-child { border-top: 0; }
.outlook span { color: var(--muted); }
.outlook b { font-weight: 800; }
.cal-box p { margin: 0; padding: 10px 16px 0; font-size: 12.5px; color: var(--muted); line-height: 1.9; }
.cal-actions { display: flex; align-items: center; gap: 14px; padding: 12px 16px 16px; }
.cal-file { font-size: 12.5px; color: var(--primary-strong); font-weight: 700; }

.form-title { font-size: 13px; font-weight: 800; padding: 12px 16px 4px; border-top: 1px solid var(--line); }
.form-title:first-of-type { border-top: 0; }

.embed-box { padding: 12px 16px; }
.embed-box summary { cursor: pointer; font-weight: 800; font-size: 13.5px; }
.embed-box p { font-size: 12.5px; color: var(--muted); margin: 8px 0; }
.embed-box textarea { width: 100%; direction: ltr; font: 12px/1.6 ui-monospace, Menlo, monospace; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); resize: vertical; }

.scorers-table td, .scorers-table th { white-space: nowrap; }
.sc-player { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.sc-player img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--surface-3); }
.sc-team { text-align: right; }

