/* Tab3 Live Yalla Shoot – design system */
:root {
  --bg: #eef0f5;
  --surface: #ffffff;
  --surface-2: #f6f7fa;
  --surface-3: #edeff4;
  --line: #e4e7ee;
  --text: #1a1d29;
  --text-2: #5b6275;
  --text-3: #8b92a5;
  --primary: #3b5bfd;
  --primary-2: #2c47d8;
  --primary-soft: #e9edff;
  --live: #e5243b;
  --live-soft: #fde8eb;
  --win: #1ea672;
  --draw: #f0a202;
  --loss: #e5243b;
  --home: #3b5bfd;
  --away: #ff8a3d;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .04);
  --shadow-lg: 0 8px 24px rgba(16, 24, 40, .08);
  --radius: 14px;
  --radius-sm: 10px;
  --top-h: 64px;
  --font: "Cairo", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: "Inter", system-ui, sans-serif;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0e1118;
  --surface: #171b25;
  --surface-2: #1d2230;
  --surface-3: #252b3b;
  --line: #262c3b;
  --text: #eef0f6;
  --text-2: #a8afc2;
  --text-3: #6f778c;
  --primary: #6b85ff;
  --primary-2: #8fa2ff;
  --primary-soft: #1f2849;
  --live-soft: #3a1820;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

html[lang="en"] { --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s, color .2s;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; }
p { margin: 0; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.muted { color: var(--text-2); }
.num, .mrow-score, .mhead-score, .c-pts, .count { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 16px; }
.page { padding-block: 20px 40px; min-height: calc(100vh - var(--top-h) - 160px); }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(30, 50, 180, .18);
}
[data-theme="dark"] .topbar { background: #131826; border-bottom: 1px solid var(--line); box-shadow: none; }
.topbar-in { height: var(--top-h); display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { color: #fff; display: flex; }
.brand-mark svg rect { fill: rgba(255, 255, 255, .18); }
.brand-mark svg path { stroke: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 17px; font-weight: 700; }
.brand-text small { font-size: 11px; opacity: .8; letter-spacing: .02em; }
.mainnav { display: flex; gap: 4px; }
.mainnav a {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px;
  font-weight: 600; font-size: 14px; color: rgba(255, 255, 255, .82);
  transition: background .15s, color .15s;
}
.mainnav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.mainnav a.is-on { background: #fff; color: var(--primary); }
[data-theme="dark"] .mainnav a.is-on { background: var(--primary); color: #fff; }
.search {
  flex: 1; max-width: 360px; margin-inline-start: auto;
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding-inline: 14px;
  background: rgba(255, 255, 255, .16); border-radius: 999px;
  color: rgba(255, 255, 255, .85);
  transition: background .15s;
}
.search:focus-within { background: rgba(255, 255, 255, .26); }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: #fff; font-size: 14px; }
.search input::placeholder { color: rgba(255, 255, 255, .7); }
.search input::-webkit-search-cancel-button { filter: invert(1); }
.actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .14); color: #fff;
  transition: background .15s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .26); }
.i-sun { display: none; }
[data-theme="dark"] .i-sun { display: block; }
[data-theme="dark"] .i-moon { display: none; }
.lang-btn {
  height: 40px; padding-inline: 14px; border-radius: 999px;
  display: flex; align-items: center; font-weight: 600; font-size: 13px;
  border: 1px solid rgba(255, 255, 255, .35);
  transition: background .15s;
}
.lang-btn:hover { background: rgba(255, 255, 255, .14); }

.dot-live {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--live); display: inline-block; flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(229, 36, 59, .6);
  animation: pulse 1.6s infinite;
}
.mainnav a .dot-live { background: #ff6b7c; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(229, 36, 59, .55); }
  70% { box-shadow: 0 0 0 7px rgba(229, 36, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 36, 59, 0); }
}

/* ---------- Layout ---------- */
.layout-3 { display: grid; grid-template-columns: 250px minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.center { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(var(--top-h) + 16px); }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.card-title {
  display: block; font-size: 15px; font-weight: 700; margin-bottom: 12px;
}
.card-more { display: block; margin-top: 10px; text-align: center; padding: 8px; border-radius: 8px; font-weight: 600; color: var(--primary); }
.card-more:hover { background: var(--primary-soft); }
.page-title { font-size: 22px; font-weight: 700; }
.page-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.empty { color: var(--text-2); text-align: center; padding: 28px 16px; }
.note { font-size: 13px; color: var(--text-2); background: var(--surface-2); padding: 8px 12px; border-radius: 8px; margin-bottom: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding-inline: 18px; border-radius: 999px;
  background: var(--primary); color: #fff; font-weight: 600;
  transition: background .15s, transform .1s;
}
.btn:hover { background: var(--primary-2); }
.btn:active { transform: scale(.98); }

.pill {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding-inline: 8px; border-radius: 999px;
  font-size: 12px; font-weight: 700; font-family: var(--font-num);
  background: var(--surface-3); color: var(--text-2);
  white-space: nowrap;
}
.pill-live { background: var(--live-soft); color: var(--live); }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); margin-bottom: 14px; }
.crumbs > * + *::before { content: "›"; margin-inline-end: 6px; color: var(--text-3); }
[dir="rtl"] .crumbs > * + *::before { content: "‹"; }
.crumbs a:hover { color: var(--primary); }

/* ---------- Sidebar league list ---------- */
.leaguelist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.leaguelist a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 10px; font-weight: 500;
  transition: background .12s;
}
.leaguelist a:hover { background: var(--surface-2); }
.leaguelist img { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }
.leaguelist .tvmini { width: 36px; height: 20px; }
.leaguelist .ellip { flex: 1; }
.count { font-size: 12px; font-weight: 600; color: var(--text-3); background: var(--surface-2); padding: 1px 8px; border-radius: 999px; }

/* ---------- Date strip & chips ---------- */
.dnav {
  display: flex; align-items: stretch; gap: 6px;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px;
}
.dnav-btn {
  flex: 0 0 auto; min-width: 92px;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 8px 10px; border-radius: 10px; background: var(--surface-2);
  font-weight: 600; font-size: 13px; color: var(--text-2); transition: background .12s, color .12s;
}
.dnav-btn:hover { background: var(--primary); color: #fff; }
.dnav-btn svg { flex-shrink: 0; }
[dir="rtl"] .dnav-next svg, [dir="ltr"] .dnav-prev svg { transform: scaleX(-1); }
.dnav-cur {
  position: relative; flex: 1; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 6px 8px; border-radius: 10px; cursor: pointer; line-height: 1.3;
  background: var(--primary); color: #fff;
}
.dnav-day { font-weight: 800; font-size: 17px; }
.dnav-date { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; opacity: .9; white-space: nowrap; }
.dnav-cur input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; }
.dnav-today {
  align-self: center; font-size: 13px; font-weight: 600; color: var(--primary);
  padding: 4px 14px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow);
}
@media (max-width: 380px) {
  .dnav-btn { min-width: 0; padding: 8px; }
  .dnav-btn span { display: none; }
}

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding-inline: 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  font-weight: 600; font-size: 13px; color: var(--text-2);
  transition: all .15s;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.is-on { background: var(--text); border-color: var(--text); color: var(--surface); }
.chip-live.is-on { background: var(--live); border-color: var(--live); color: #fff; }
.chip-live.is-on .dot-live { background: #fff; }
.chip-n { font-family: var(--font-num); font-size: 12px; opacity: .7; }

/* ---------- League card with match rows ---------- */
.lcards { display: flex; flex-direction: column; gap: 12px; }
.lcard { padding: 0; overflow: hidden; }
.lcard-top { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.lcard-head {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  transition: background .12s;
}
.lcard-toggle {
  display: flex; align-items: center; gap: 4px; flex-shrink: 0;
  padding-inline: 12px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 600; color: var(--text-3);
}
.lcard-toggle:hover { color: var(--primary); background: var(--surface-2); }
.lcard-toggle span { display: none; }
.lcard-toggle svg { transform: rotate(180deg); transition: transform .15s; }
.lcard.is-collapsed .lcard-toggle span { display: inline; }
.lcard.is-collapsed .lcard-toggle svg { transform: none; }
.lcard.is-collapsed .lcard-top { border-bottom: 0; }
.lcard.is-collapsed .lcard-body { display: none; }
.is-filtering .lcard.is-collapsed .lcard-body { display: block; }
.is-filtering .lcard.is-collapsed .lcard-top { border-bottom: 1px solid var(--line); }
.is-filtering .lcard-toggle { display: none; }
.lcard-head:hover { background: var(--surface-2); }
.lcard-head img { width: 24px; height: 24px; object-fit: contain; }
.lcard-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.lcard-title strong { font-size: 14px; font-weight: 700; }
.lcard-title small { font-size: 12px; color: var(--text-3); }
.chev { color: var(--text-3); flex-shrink: 0; }
[dir="rtl"] .chev { transform: scaleX(-1); }

.mrow {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) 36px 22px;
  align-items: center; gap: 10px;
  padding: 9px 14px; position: relative;
  transition: background .12s;
}
.mrow + .mrow { border-top: 1px solid var(--line); }
.mrow:hover { background: var(--surface-2); }
.mrow-status { display: flex; flex-direction: column; align-items: center; line-height: 1.2; font-size: 12px; color: var(--text-2); font-family: var(--font-num); text-align: center; }
.mrow-date { font-size: 11px; color: var(--text-3); }
.mrow-label { font-weight: 600; }
.mrow.is-live .mrow-label { color: var(--live); }
.mrow-teams { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.mrow-team { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; color: var(--text); }
.mrow-team img { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }
.mrow-team.is-win { font-weight: 700; }
.mrow-score { display: flex; flex-direction: column; gap: 5px; align-items: center; font-size: 14px; font-weight: 600; color: var(--text-2); }
.mrow-score b { font-weight: 600; min-height: 20px; line-height: 20px; }
.mrow-score b.is-win { color: var(--text); font-weight: 800; }
.mrow.is-live .mrow-score b { color: var(--live); font-weight: 700; }
.mrow-tv { color: var(--text-3); display: grid; place-items: center; }
.mrow.flash .mrow-score b { animation: flash 1.2s ease 2; }
@keyframes flash { 50% { background: var(--live-soft); border-radius: 4px; } }

.mlist { display: flex; flex-direction: column; }
.mlist-item + .mlist-item { border-top: 1px solid var(--line); }
.mlist-league { display: flex; align-items: center; gap: 6px; padding: 8px 14px 0; font-size: 12px; color: var(--text-3); }
.mlist-league img { width: 14px; height: 14px; object-fit: contain; }
.mlist-league:hover { color: var(--primary); }
.card > .mlist { margin: -8px -16px -16px; }
.mlist .mrow + .mrow { border-top: 0; }

/* ---------- Featured / promo ---------- */
.feat { padding: 14px; }
.feat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.feat-top .card-title { margin: 0; }
.feat-league { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); min-width: 0; }
.feat-league img { width: 16px; height: 16px; object-fit: contain; }
.feat-body {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
  padding: 16px 8px; border-radius: 12px; background: var(--surface-2);
  transition: background .15s;
}
.feat-body:hover { background: var(--surface-3); }
.feat-team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-weight: 600; font-size: 13px; }
.feat-team img { width: 52px; height: 52px; object-fit: contain; }
.feat-mid { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.feat-score, .feat-time { font-family: var(--font-num); font-size: 26px; font-weight: 800; white-space: nowrap; }
.feat-mid small { font-size: 11px; color: var(--text-3); text-align: center; }
.promo {
  background: linear-gradient(135deg, var(--primary), #7b4dff);
  color: #fff; display: flex; flex-direction: column; gap: 8px;
}
.promo strong { font-size: 16px; }
.promo p { font-size: 13px; opacity: .9; }
.promo .btn { background: #fff; color: var(--primary); align-self: flex-start; height: 36px; margin-top: 4px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line); margin: 16px -16px -16px; padding-inline: 12px; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; flex-shrink: 0;
  padding: 13px 14px; border: 0; background: none; cursor: pointer;
  font-weight: 600; color: var(--text-2);
  transition: color .15s;
}
.tab:hover { color: var(--text); }
.tab.is-on { color: var(--primary); }
.tab.is-on::after { content: ""; position: absolute; inset-inline: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--primary); }
.tabpanel { display: flex; flex-direction: column; gap: 14px; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- Match header ---------- */
.mhead { padding-bottom: 16px; }
.mhead-league { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--text-2); font-weight: 500; }
.mhead-league img { width: 18px; height: 18px; object-fit: contain; }
.mhead-league:hover { color: var(--primary); }
.mhead-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding-top: 20px; }
.mhead-team { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.mhead-team img { width: 72px; height: 72px; object-fit: contain; transition: transform .2s; }
.mhead-team:hover img { transform: scale(1.05); }
.mhead-team h2 { font-size: 16px; font-weight: 700; }
.mhead-mid { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 130px; }
.mhead-score { display: flex; align-items: center; gap: 12px; font-size: 42px; font-weight: 800; line-height: 1; direction: ltr; }
[dir="rtl"] .mhead-score { flex-direction: row-reverse; }
.mhead-score i { font-style: normal; color: var(--text-3); font-weight: 400; }
.mhead.is-live .mhead-score { color: var(--live); }
.mhead-time { font-family: var(--font-num); font-size: 36px; font-weight: 800; line-height: 1; }
.mhead-date { font-size: 12px; color: var(--text-3); }
.mhead-count { font-family: var(--font-num); font-size: 13px; font-weight: 600; color: var(--primary); background: var(--primary-soft); padding: 3px 10px; border-radius: 999px; }
.mhead-count:empty { display: none; }
.mhead-goals { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; margin-top: 16px; font-size: 12px; color: var(--text-2); }
.mhead-goals ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.gl-home { text-align: end; }
.gl-away { text-align: start; }
.mhead-goals b { font-family: var(--font-num); color: var(--text); }
.gl-ball { color: var(--text-3); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 50%; width: 2px; margin-inline-start: -1px; background: var(--line); }
.tl-row { display: grid; grid-template-columns: 1fr 52px 1fr; align-items: center; padding-block: 6px; position: relative; }
.tl-min {
  justify-self: center; z-index: 1;
  font-family: var(--font-num); font-size: 12px; font-weight: 700;
  background: var(--surface); border: 2px solid var(--line); border-radius: 999px;
  min-width: 40px; text-align: center; padding: 2px 6px;
}
.tl-side { display: flex; align-items: center; gap: 10px; justify-content: flex-end; text-align: end; }
.tl-away .tl-side:first-child { order: 3; justify-content: flex-start; text-align: start; flex-direction: row-reverse; }
.tl-away .tl-min { order: 2; }
.tl-away .tl-empty { order: 1; }
.tl-home .tl-side:first-child { flex-direction: row-reverse; }
.tl-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); flex-shrink: 0; color: var(--text); }
.tl-txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.tl-txt a, .tl-txt > span { font-weight: 600; }
.tl-txt a:hover { color: var(--primary); }
.tl-txt small { font-size: 12px; color: var(--text-3); }
.tl-txt .in { color: var(--win); }
.tl-txt .out { color: var(--text-3); font-weight: 500; font-size: 12px; }
.tl-goal .tl-min, .tl-penalty .tl-min { background: var(--text); color: var(--surface); border-color: var(--text); }
.tl-own_goal .tl-min { background: var(--live); color: #fff; border-color: var(--live); }

/* ---------- Pitch ---------- */
.pitch-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; font-weight: 600; font-size: 13px; }
.pitch-head span { display: flex; align-items: center; gap: 8px; }
.pitch-head img { width: 20px; height: 20px; object-fit: contain; }
.pitch-head b { direction: ltr; unicode-bidi: isolate; font-family: var(--font-num); color: var(--primary); background: var(--primary-soft); padding: 1px 8px; border-radius: 6px; }
.pitch {
  position: relative; aspect-ratio: 68 / 105; max-height: 860px; margin-inline: auto; width: 100%; max-width: 560px;
  border-radius: 12px; overflow: hidden;
  background:
    repeating-linear-gradient(0deg, #2f9a57 0 7.14%, #34a55e 7.14% 14.28%);
}
[data-theme="dark"] .pitch { background: repeating-linear-gradient(0deg, #1f6b3d 0 7.14%, #237543 7.14% 14.28%); }
.pitch-lines i { position: absolute; border: 2px solid rgba(255, 255, 255, .45); }
.pl-mid { left: 0; right: 0; top: 50%; border-width: 2px 0 0 0 !important; }
.pl-circle { width: 26%; aspect-ratio: 1; left: 37%; top: 50%; transform: translateY(-50%); border-radius: 50%; }
.pl-box { left: 22%; width: 56%; height: 15%; }
.pl-box-a { top: -2px; border-top: 0 !important; }
.pl-box-b { bottom: -2px; border-bottom: 0 !important; }
.pp {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px; width: 84px; z-index: 1;
}
.pp-shirt {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-num); font-weight: 700; font-size: 13px; color: #fff;
  border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
  transition: transform .15s;
}
.pp-home .pp-shirt { background: var(--home); }
.pp-away .pp-shirt { background: var(--away); }
.pp:hover .pp-shirt { transform: scale(1.1); }
.pp .rating { position: absolute; top: -6px; inset-inline-end: 12px; font-size: 10px; padding: 0 4px; height: 16px; }
.pp-name {
  font-size: 11px; font-weight: 600; color: #fff; text-align: center; line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
  max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rating {
  display: inline-grid; place-items: center; height: 20px; min-width: 30px; padding: 0 5px;
  border-radius: 5px; font-family: var(--font-num); font-size: 12px; font-weight: 700; color: #fff;
  background: var(--text-3);
}
.r-top { background: #1d8cf8; }
.r-good { background: #1ea672; }
.r-ok { background: #7bc043; }
.r-mid { background: #f0a202; }
.r-low { background: #e5243b; }
.subs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.subs h4 { font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.subs ul { list-style: none; margin: 0; padding: 0; }
.subs a { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-radius: 8px; }
.subs a:hover { background: var(--surface-2); }
.subs .ellip { flex: 1; }
.num-badge { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 7px; background: var(--surface-3); font-family: var(--font-num); font-size: 12px; font-weight: 700; color: var(--text-2); }

/* ---------- Stats ---------- */
.stat-cat { margin-top: 8px; color: var(--text-2); font-size: 13px; text-transform: uppercase; letter-spacing: .02em; }
.stat + .stat-cat { margin-top: 18px; }
.stat { padding-block: 8px; }
.stat-top { display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; margin-bottom: 6px; font-size: 13px; }
.stat-top span { text-align: center; color: var(--text-2); }
.stat-top b { font-family: var(--font-num); font-weight: 700; padding: 1px 8px; border-radius: 6px; justify-self: start; }
.stat-top b:last-child { justify-self: end; }
.stat-top b.is-lead { background: var(--home); color: #fff; }
.stat-top b.is-lead.is-away { background: var(--away); }
.stat-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bar { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; display: flex; }
.bar i { display: block; height: 100%; border-radius: 6px; transition: width .6s ease; }
.bar-home { justify-content: flex-end; }
.bar-home i { background: var(--home); }
.bar-away i { background: var(--away); }

/* ---------- H2H ---------- */
.h2h-sum { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: 10px; margin-bottom: 12px; }
.h2h-sum div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.h2h-sum img { width: 36px; height: 36px; object-fit: contain; }
.h2h-sum b { font-family: var(--font-num); font-size: 24px; font-weight: 800; }
.h2h-sum small { color: var(--text-3); font-size: 12px; }
.h2h-bar { display: flex; height: 8px; border-radius: 8px; overflow: hidden; gap: 3px; margin-bottom: 16px; }
.h2h-bar i { display: block; min-width: 3px; }
.hb-home { background: var(--home); }
.hb-draw { background: var(--text-3); }
.hb-away { background: var(--away); }

/* ---------- Standings ---------- */
.table-wrap { overflow-x: auto; margin-inline: -16px; }
.table-wrap + .table-wrap { margin-top: 16px; }
.table-cap { font-size: 14px; padding: 0 16px 8px; }
.stable { width: 100%; border-collapse: collapse; font-size: 13px; }
.stable th { font-size: 12px; font-weight: 600; color: var(--text-3); padding: 8px 6px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.stable td { padding: 8px 6px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; font-family: var(--font-num); }
.stable tr:last-child td { border-bottom: 0; }
.stable tbody tr { transition: background .12s; }
.stable tbody tr:hover { background: var(--surface-2); }
.stable tr.is-hl { background: var(--primary-soft); }
.stable .c-pos { width: 44px; padding-inline-start: 16px; }
.stable .c-team { text-align: start; width: 100%; font-family: var(--font); }
.stable .c-team a { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 260px; font-weight: 600; }
.stable .c-team a:hover { color: var(--primary); }
.stable .c-team img { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }
.stable .c-pts { font-size: 14px; }
.stable th:last-child, .stable td:last-child { padding-inline-end: 16px; }
.pos {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px;
  font-weight: 700; font-size: 12px;
  background: var(--zone, transparent); color: var(--text);
}
.pos[style] { color: #fff; }
.form { display: inline-flex; gap: 3px; }
.form i, .form a {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px;
  font-style: normal; font-size: 11px; font-weight: 700; color: #fff; font-family: var(--font);
}
.f-W { background: var(--win); }
.f-D { background: var(--text-3); }
.f-L { background: var(--loss); }
.form-lg { margin-top: 10px; }
.form-lg a { width: 26px; height: 26px; font-size: 12px; border-radius: 7px; transition: transform .12s; }
.form-lg a:hover { transform: translateY(-2px); }
.zones { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; color: var(--text-2); }
.zones li { display: flex; align-items: center; gap: 6px; }
.zones i { width: 10px; height: 10px; border-radius: 3px; }

/* ---------- Info & TV ---------- */
.infolist { margin: 0; display: flex; flex-direction: column; }
.infolist div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.infolist div:last-child { border-bottom: 0; }
.infolist dt { color: var(--text-3); }
.infolist dd { margin: 0; font-weight: 600; text-align: end; }
.tvlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tvlist a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; background: var(--surface-2); font-weight: 600; transition: background .12s; }
.tvlist a:hover { background: var(--surface-3); }
.tvlist img { width: 56px; height: 32px; object-fit: contain; background: #fff; border-radius: 6px; padding: 2px; }

/* ---------- Hero (league / team / player / channel) ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-bottom: 14px; }
.hero h1 { font-size: 24px; font-weight: 800; }
.hero .muted a { color: var(--primary); font-weight: 600; }
.hero-logo { width: 72px; height: 72px; object-fit: contain; padding: 8px; background: var(--surface-2); border-radius: 18px; }
.hero-tabs { flex-basis: 100%; margin-top: 0; }
.hero-photo { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; background: var(--surface-2); border: 4px solid var(--surface-2); }
.hero-club { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-weight: 600; }
.hero-club img { width: 22px; height: 22px; object-fit: contain; }
.hero-club:hover { background: var(--primary-soft); color: var(--primary); }
.hero-player { background: linear-gradient(135deg, var(--primary-soft), var(--surface) 60%); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 14px; }
.fact { display: flex; flex-direction: column; gap: 4px; }
.fact small { color: var(--text-3); font-size: 12px; }
.fact b { font-size: 16px; }

.scorers { list-style: none; margin: 0; padding: 0; }
.scorers li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.scorers li:last-child { border-bottom: 0; }
.sc-rank { width: 24px; text-align: center; font-family: var(--font-num); font-weight: 700; color: var(--text-3); }
.scorers li:nth-child(-n+3) .sc-rank { color: var(--primary); }
.sc-player { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.sc-player > span { display: flex; flex-direction: column; min-width: 0; }
.sc-player strong { font-weight: 600; }
.sc-player small { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-3); }
.sc-player small img { width: 14px; height: 14px; object-fit: contain; }
.sc-player:hover strong { color: var(--primary); }
.sc-goals { font-family: var(--font-num); font-size: 18px; font-weight: 800; }
.sc-goals small { font-size: 11px; font-weight: 500; color: var(--text-3); font-family: var(--font); }
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--surface-2); flex-shrink: 0; }

.squad { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.squad a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: var(--surface-2); transition: background .12s, transform .12s; }
.squad a:hover { background: var(--surface-3); transform: translateY(-1px); }
.squad .avatar { width: 44px; height: 44px; }
.squad-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.squad-txt small { font-size: 12px; color: var(--text-3); }

.nextm-body { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; text-align: center; padding: 12px 4px; border-radius: 12px; background: var(--surface-2); }
.nextm-body > span { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.nextm-body img { width: 44px; height: 44px; object-fit: contain; }
.nextm-body small { font-size: 12px; font-weight: 600; max-width: 100%; }
.nextm-mid b { font-family: var(--font-num); font-size: 20px; font-weight: 800; }
.nextm-mid small { color: var(--text-3); font-weight: 500 !important; }
.nextm-league { text-align: center; font-size: 12px; margin-top: 8px; }

/* ---------- Leagues directory ---------- */
.finder { display: flex; align-items: center; gap: 8px; max-width: 420px; height: 42px; padding-inline: 14px; margin-top: 6px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); color: var(--text-3); }
.finder input { flex: 1; border: 0; background: none; outline: none; }
.lgrid { columns: 3 300px; column-gap: 14px; }
.lgroup { break-inside: avoid; margin-bottom: 14px; }
.lgroup ul { list-style: none; margin: 0; padding: 0; }
.lgroup a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; font-weight: 500; }
.lgroup a:hover { background: var(--surface-2); }
.lgroup img { width: 24px; height: 24px; object-fit: contain; }
.lgroup .ellip { flex: 1; }

/* ---------- Channels ---------- */
.chgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.chcard { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; transition: transform .15s, box-shadow .15s; }
.chcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.chcard-logo { display: grid; place-items: center; width: 100%; height: 76px; background: #fff; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 6px; }
.chcard-logo img { max-width: 84px; max-height: 48px; object-fit: contain; }
.chcard strong { font-size: 15px; max-width: 100%; }
.chcard > small { color: var(--text-3); font-size: 12px; }
.chcard-next { display: flex; flex-direction: column; gap: 3px; width: 100%; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-2); }
.chcard-next b { font-family: var(--font-num); color: var(--text); }
.hero-ch { width: 140px; height: 84px; margin: 0; }
.hero-ch img { max-width: 112px; max-height: 64px; }

/* ---------- 404 ---------- */
.notfound { max-width: 480px; margin: 40px auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 24px; }
.nf-code { font-family: var(--font-num); font-size: 72px; font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--primary), #7b4dff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound .btn { margin-top: 10px; }

/* ---------- Footer ---------- */
.footer { background: #111a3a; color: #c9d1ee; padding-block: 36px 18px; margin-top: 28px; }
.sec-women .footer { background: #3a0f24; color: #f1cfdd; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px 36px; }
.footer-logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 18px; font-weight: 800; }
.footer-logo svg { color: var(--primary); flex: none; }
.footer-brand p { margin-top: 12px; font-size: 13px; line-height: 1.9; color: inherit; opacity: .85; max-width: 340px; }
.footer-lang {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22); color: #fff; font-size: 13px; font-weight: 600;
}
.footer-lang:hover { background: rgba(255, 255, 255, .08); }
.footer-col { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.footer-col h2 { color: #fff; font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.footer-col a { font-size: 13px; color: inherit; opacity: .85; width: fit-content; transition: opacity .12s, color .12s; }
.footer-col a:hover { opacity: 1; color: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; margin-top: 28px; padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12px; opacity: .75;
}
.footer-home { color: #fff; font-weight: 700; }
.footer-home:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .footer { padding-bottom: 20px; }
  .footer-grid { gap: 22px 18px; }
}

/* ---------- Mobile tab bar ---------- */
.tabbar { display: none; }
.tabbar-ico { width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.tabbar-matches { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='m12 7 3.2 2.3-1.2 3.7H10l-1.2-3.7Z' fill='%23000'/%3E%3C/svg%3E"); }
.tabbar-live { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='3.5' fill='%23000'/%3E%3Cpath d='M6.3 6.3a8 8 0 0 0 0 11.4M17.7 6.3a8 8 0 0 1 0 11.4' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.tabbar-leagues { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4h10v4a5 5 0 0 1-10 0V4Zm5 9v4m-4 3h8M7 6H4v1a3 3 0 0 0 3 3m10-4h3v1a3 3 0 0 1-3 3' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.tabbar-women { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='9' r='5.5' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M12 14.5V22M8.5 18.5h7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.lcard-top .lcard-head .chev { display: none; }
.tabbar-channels { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='6' width='18' height='12' rx='2' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M8 21h8M9 2l3 4 3-4' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* ---------- Match page layout ---------- */
.layout-match { grid-template-areas: "main side" "comm side"; }
.layout-match > .center { grid-area: main; }
.layout-match > .side { grid-area: side; }
.comments-slot { grid-area: comm; min-width: 0; }

/* ---------- Match header extras ---------- */
.form-sm i { width: 16px; height: 16px; font-size: 9px; border-radius: 4px; }
.mhead-meta { list-style: none; margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 18px; font-size: 12px; color: var(--text-2); }
.mhead-meta li { display: inline-flex; align-items: center; gap: 6px; }
.mhead-meta svg { flex-shrink: 0; color: var(--text-3); }
.mhead-meta a:hover { color: var(--primary); }
.mhead-tv { gap: 6px; }
.mhead-tv img { width: 44px; height: 24px; object-fit: contain; background: #fff; border-radius: 5px; padding: 2px; border: 1px solid var(--line); }

/* ---------- Top performers ---------- */
.tperf { display: flex; flex-direction: column; gap: 10px; }
.tperf-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.tperf-cat { order: 0; font-size: 11px; font-weight: 700; color: var(--text-3); text-align: center; max-width: 90px; }
.tperf-p { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: var(--surface-2); min-width: 0; transition: background .12s; }
.tperf-p:hover { background: var(--surface-3); }
.tperf-away { flex-direction: row-reverse; text-align: end; }
.tperf-p .avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--surface-3); flex-shrink: 0; border: 2px solid var(--home); }
.tperf-away .avatar { border-color: var(--away); }
.tperf-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tperf-txt strong { font-size: 13px; }
.tperf-txt small { font-size: 11px; color: var(--text-3); }
.tperf-stats { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 11px; color: var(--text-2); }
.tperf-away .tperf-stats { justify-content: flex-end; }
.tperf-stats em { font-style: normal; }
.tperf-stats b { font-family: var(--font-num); color: var(--text); }

/* ---------- Recent form lists ---------- */
.recent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.flist { display: flex; flex-direction: column; min-width: 0; }
.flist-head { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.flist-head img { width: 24px; height: 24px; object-fit: contain; }
.flist-head strong { flex: 1; }
.flist-head:hover strong { color: var(--primary); }
.frow { display: grid; grid-template-columns: 40px 14px minmax(0, 1fr) auto 20px; align-items: center; gap: 8px; padding: 7px 4px; border-radius: 8px; font-size: 13px; }
.frow:hover { background: var(--surface-2); }
.frow-date { font-family: var(--font-num); font-size: 11px; color: var(--text-3); }
.frow img { width: 14px; height: 14px; object-fit: contain; }
.frow-opp small { color: var(--text-3); font-size: 11px; }
.frow-score { font-family: var(--font-num); font-weight: 700; }
.frow-r { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; }

/* ---------- Frequencies ---------- */
.freqtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.freqtable th { font-size: 12px; font-weight: 600; color: var(--text-3); padding: 8px 10px; text-align: start; border-bottom: 1px solid var(--line); white-space: nowrap; }
.freqtable td { padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.freqtable tr:last-child td { border-bottom: 0; }
.freqtable th:first-child, .freqtable td:first-child { padding-inline-start: 16px; }
.freqtable td small { display: block; font-size: 11px; color: var(--text-3); margin-top: 2px; }
.freq-big { font-size: 18px; font-weight: 800; color: var(--primary); }
.pol { display: inline-flex; align-items: center; height: 22px; padding-inline: 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-3); }
.pol-h { background: var(--primary-soft); color: var(--primary); }
.pol-v { background: #fff3e6; color: #c25e00; }
[data-theme="dark"] .pol-v { background: #3a2a1a; color: #ffb36b; }
.freq-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding-inline: 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-family: var(--font-num); font-size: 12px; font-weight: 600; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.freq-chip::before { content: ""; width: 12px; height: 12px; flex-shrink: 0; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 10a8 8 0 0 1 8-8M4 14a8 8 0 0 0 8 8M8 12a4 4 0 0 1 4-4' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3Ccircle cx='15' cy='15' r='3' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 10a8 8 0 0 1 8-8M4 14a8 8 0 0 0 8 8M8 12a4 4 0 0 1 4-4' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3Ccircle cx='15' cy='15' r='3' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat; }
.hero .freq-chip { margin-top: 8px; }
.chcard .freq-chip { align-self: flex-start; }
.tvfreq { margin-top: 4px; padding-inline: 8px; font-size: 12px; }
.tvfreq summary { cursor: pointer; color: var(--primary); font-weight: 600; padding: 4px 0; list-style: none; display: flex; gap: 6px; flex-wrap: wrap; }
.tvfreq summary::-webkit-details-marker { display: none; }
.tvfreq summary::after { content: "▾"; margin-inline-start: auto; }
.tvfreq[open] summary::after { content: "▴"; }
.tvfreq summary span { color: var(--text-2); font-family: var(--font-num); font-weight: 500; }
.freqmini { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.freqmini li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; background: var(--surface-2); border-radius: 8px; }
.freqmini span { font-family: var(--font-num); color: var(--text-2); }

/* ---------- Predictions ---------- */
.predict-q { font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.popts { display: grid; gap: 8px; }
.popt { position: relative; display: flex; align-items: center; gap: 10px; height: 44px; padding-inline: 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; overflow: hidden; transition: border-color .15s; isolation: isolate; }
.popt::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; background: var(--primary-soft); z-index: -1; transition: width .6s ease; }
.popt:hover { border-color: var(--primary); }
.popt input { position: absolute; opacity: 0; pointer-events: none; }
.popt:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.popt img { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.popt-x { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--surface-3); font-size: 11px; font-weight: 800; color: var(--text-2); flex-shrink: 0; }
.popt-label { flex: 1; font-weight: 600; font-size: 14px; }
.popt-pct { font-family: var(--font-num); font-weight: 800; font-size: 14px; display: none; }
.predict.is-voted .popt { cursor: default; }
.predict.is-voted .popt::before { width: var(--p); }
.predict.is-voted .popt-pct { display: block; }
.predict.is-voted .popt.is-mine { border-color: var(--primary); }
.predict.is-voted .popt.is-mine::before { background: color-mix(in srgb, var(--primary) 22%, transparent); }
.pscore { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 13px; color: var(--text-2); }
.pscore-in { display: flex; align-items: center; gap: 6px; }
.pscore-in input { width: 46px; height: 38px; text-align: center; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface-2); font-family: var(--font-num); font-size: 16px; font-weight: 700; -moz-appearance: textfield; }
.pscore-in input::-webkit-inner-spin-button, .pscore-in input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pscore-in input:focus { outline: none; border-color: var(--primary); }
.pscore-in i { font-style: normal; color: var(--text-3); }
.btn-block { display: flex; width: 100%; margin-top: 12px; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.predict-msg { font-size: 13px; font-weight: 600; color: var(--win); margin-top: 8px; min-height: 0; }
.predict-msg:empty { display: none; }
.predict-msg.is-error, .cform-msg.is-error { color: var(--loss); }
.predict-total { font-size: 12px; color: var(--text-3); margin-top: 10px; }
.predict-total span { font-family: var(--font-num); font-weight: 700; color: var(--text-2); }
.ptop { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.ptop small { font-size: 12px; color: var(--text-3); }
.ptop div { display: flex; flex-wrap: wrap; gap: 6px; }
.ptop span { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding-inline: 10px; border-radius: 999px; background: var(--surface-2); font-family: var(--font-num); font-weight: 700; font-size: 13px; }
.ptop em { font-style: normal; font-weight: 500; font-size: 11px; color: var(--text-3); }
.pfans { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.pfans small { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.pfans-bar { display: flex; gap: 3px; height: 22px; border-radius: 8px; overflow: hidden; }
.pfans-bar i { display: grid; place-items: center; font-style: normal; font-family: var(--font-num); font-size: 11px; font-weight: 700; color: #fff; min-width: 26px; }
.pf-0 { background: var(--home); }
.pf-1 { background: var(--text-3); }
.pf-2 { background: var(--away); }

/* ---------- Comments ---------- */
.comments .card-title { display: flex; align-items: center; gap: 8px; }
.comments .count { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); }
.cform { margin-bottom: 14px; }
.cform-row { display: flex; gap: 12px; align-items: flex-start; }
.cform-fields { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cform input[type="text"], .cform textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface-2); padding: 10px 12px; font: inherit; font-size: 14px; color: var(--text); resize: vertical; transition: border-color .15s, background .15s; }
.cform input[type="text"] { max-width: 260px; height: 40px; }
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--primary); background: var(--surface); }
.cform-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cform-foot small { font-size: 12px; }
.cform-foot [data-char-count] { font-family: var(--font-num); }
.cform-msg { font-size: 13px; font-weight: 600; color: var(--win); }
.cform-msg:empty { display: none; }
.hp { position: absolute !important; inset-inline-start: 0; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; opacity: 0; }
.cavatar { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: 15px; }
.clist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.citem { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.citem.is-new { animation: fade .4s ease; }
.cbody { flex: 1; min-width: 0; }
.chead { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; font-size: 13px; }
.chead time { font-size: 11px; color: var(--text-3); }
.cbody p { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }

/* ---------- Referee ---------- */
.kicker { display: inline-block; font-size: 12px; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: 2px 10px; border-radius: 999px; margin-bottom: 6px; }
.hero-initials { display: grid; place-items: center; font-size: 36px; font-weight: 800; color: var(--primary); background: var(--primary-soft); }
.statgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.statbox { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.statbox b { font-size: 28px; font-weight: 800; line-height: 1.1; }
.statbox small { font-size: 12px; color: var(--text-3); }
.sb-yellow { box-shadow: inset 0 3px 0 #f5c518, var(--shadow); }
.sb-red { box-shadow: inset 0 3px 0 #e5243b, var(--shadow); }
.refcards { display: inline-flex; gap: 4px; margin-inline-start: auto; }
.rc { display: inline-grid; place-items: center; min-width: 14px; height: 18px; padding: 0 3px; border-radius: 3px; font-style: normal; font-family: var(--font-num); font-size: 10px; font-weight: 700; }
.rc-y { background: #f5c518; color: #1a1d29; }
.rc-r { background: #e5243b; color: #fff; }

/* ---------- Player ---------- */
.phero-photo { position: relative; }
.phero-num { position: absolute; bottom: 2px; inset-inline-end: 0; min-width: 34px; height: 34px; display: grid; place-items: center; padding: 0 6px; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 800; font-size: 15px; border: 3px solid var(--surface); }
.phero-links { display: flex; flex-wrap: wrap; gap: 8px; }
.phero-links small { font-weight: 500; font-size: 12px; }
.injury { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; background: var(--live-soft); color: var(--live); }
.injury-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--live); color: #fff; font-weight: 800; font-size: 20px; flex-shrink: 0; }
.injury div { display: flex; flex-direction: column; gap: 2px; }
.injury small { color: var(--text-2); }
.pstats + .pstats { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.pstats-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.pstats-head img { width: 18px; height: 18px; object-fit: contain; }
.pstats-head:hover { color: var(--primary); }
.pstats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.pstat { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.pstat b { font-size: 20px; font-weight: 800; }
.pstat small { font-size: 12px; color: var(--text-3); }
.pstat b .pstat-note, .pmore .pstat-note { font-size: 11px; font-weight: 600; color: var(--text-3); }
.pstat.is-top { background: var(--primary-soft); }
.pstat.is-top b { color: var(--primary); }
.plast { display: flex; flex-direction: column; }
.plast-row { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.plast-row:last-child { border-bottom: 0; }
.plast-match { flex: 1; min-width: 0; }
.plast-match .mrow { border-bottom: 0; }
.plast-me { display: flex; align-items: center; gap: 6px; flex-shrink: 0; min-width: 76px; justify-content: flex-end; }
.plast-min { font-size: 12px; color: var(--text-3); }
.plast-dnp { font-size: 11px; color: var(--text-3); max-width: 90px; text-align: end; line-height: 1.3; }
.subhead { font-size: 13px; color: var(--text-2); margin: 14px 0 6px; }
.ctable .ctable-name { text-align: start; width: 100%; font-family: var(--font); padding-inline-start: 16px; }
.ctable-t { display: flex; align-items: center; gap: 8px; max-width: 280px; }
.ctable-t img { width: 16px; height: 16px; object-fit: contain; flex-shrink: 0; }
.bio { font-size: 14px; line-height: 1.8; color: var(--text-2); }
.transfers { list-style: none; margin: 0; padding: 0; position: relative; }
.transfers::before { content: ""; position: absolute; top: 14px; bottom: 14px; inset-inline-start: 19px; width: 2px; background: var(--line); }
.transfers li { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; }
.transfers .tl-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.transfers img { width: 40px; height: 40px; object-fit: contain; padding: 6px; background: var(--surface); border: 2px solid var(--line); border-radius: 50%; position: relative; }
.transfers .tl-team span { display: flex; flex-direction: column; min-width: 0; }
.transfers b { font-size: 13px; }
.transfers small { font-size: 11px; color: var(--text-3); }
.transfers .tl-team:hover b { color: var(--primary); }
.tl-price { font-size: 12px; font-weight: 700; color: var(--win); white-space: nowrap; }
.trophies { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.trophies li { border-radius: 12px; background: var(--surface-2); font-size: 13px; }
.trophies summary { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; list-style: none; }
.trophies summary::-webkit-details-marker { display: none; }
.trophies img { width: 26px; height: 26px; object-fit: contain; }
.trophies .ellip { flex: 1; font-weight: 600; }
.trophies b { color: #c69200; font-size: 15px; font-weight: 800; }
.trophy-seasons { padding: 0 12px 10px; font-size: 12px; color: var(--text-2); line-height: 1.7; }

/* ---------- Player extras ---------- */
.phero-body { flex: 1; min-width: 200px; }
.phero-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 2px 0 2px; }
.phero-sub img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }
.phero-trophy { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 84px; padding: 10px 14px; border-radius: 14px; background: #fff7e0; color: #9a6b00; }
[data-theme="dark"] .phero-trophy { background: #3a2f12; color: #f5c518; }
.phero-trophy b { font-size: 26px; font-weight: 800; line-height: 1.1; }
.phero-trophy small { font-size: 11px; font-weight: 600; }
.pteam-head { display: flex; align-items: center; gap: 12px; padding: 10px; margin-bottom: 6px; border-radius: 12px; background: var(--surface-2); transition: background .12s; }
.pteam-head:hover { background: var(--surface-3); }
.pteam-head img { width: 48px; height: 48px; object-fit: contain; }
.pteam-head strong { flex: 1; font-size: 15px; }
.pteam-go { font-size: 22px; color: var(--text-3); }
[dir="rtl"] .pteam-go { transform: scaleX(-1); }
.pteam-next { display: block; font-size: 12px; color: var(--text-3); margin: 10px 0 2px; }
.pteam .mrow { margin-inline: -8px; border-radius: 10px; }
.pmore { margin-top: 10px; }
.pmore summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--primary); padding: 4px 0; }
.rchart { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 4px; overflow-x: auto; }
.rbar { flex: 1; min-width: 34px; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.rbar i { display: block; width: 100%; max-width: 30px; border-radius: 6px 6px 3px 3px; background: var(--text-3); transition: opacity .12s; }
.rbar:hover i { opacity: .8; }
.rbar .rating { font-size: 11px; min-width: 28px; height: 18px; }
.rbar small { font-family: var(--font-num); font-size: 10px; color: var(--text-3); }
.ctable-team { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); }
.ctable-team img { width: 18px; height: 18px; object-fit: contain; }
.ctable-total td { font-weight: 800; background: var(--surface-2); }
.ppitch { position: relative; aspect-ratio: 68 / 100; max-width: 220px; margin: 0 auto; border-radius: 12px; background: repeating-linear-gradient(180deg, #2f9e5b 0 12.5%, #2a9254 12.5% 25%); border: 2px solid rgba(255, 255, 255, .5); overflow: hidden; }
.ppitch i { position: absolute; border: 2px solid rgba(255, 255, 255, .55); }
.ppitch-mid { left: 0; right: 0; top: 50%; border-width: 2px 0 0 !important; }
.ppitch-circle { left: 50%; top: 50%; width: 26%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); }
.ppitch-box { left: 22%; right: 22%; height: 15%; }
.ppitch-top { top: -2px; }
.ppitch-bottom { bottom: -2px; }
.ppitch-dot { position: absolute; transform: translate(-50%, -50%); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: #fff; font-family: var(--font-num); font-weight: 800; font-size: 13px; border: 3px solid #fff; box-shadow: 0 0 0 8px rgba(59, 91, 253, .3), 0 4px 10px rgba(0, 0, 0, .25); }
.ppitch-label { text-align: center; font-weight: 700; margin-top: 10px; }
.mates { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mates a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 12px; text-align: center; font-size: 12px; font-weight: 600; transition: background .12s; }
.mates a:hover { background: var(--surface-2); }
.mates .avatar { width: 44px; height: 44px; }
.mates .ellip { max-width: 100%; }
.mates small { font-size: 11px; color: var(--text-3); }

/* ---------- Team ---------- */
.thero { position: relative; overflow: hidden; }
.thero[style]::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 5px; background: linear-gradient(90deg, var(--tc1) 0 50%, var(--tc2) 50% 100%); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .08); }
.thero-body { flex: 1; min-width: 200px; }
.thero-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 2px; }
.thero-sub img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }
.thero-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.thero-facts li { display: flex; flex-direction: column; gap: 2px; padding: 8px 14px; border-radius: 12px; background: var(--surface-2); min-width: 110px; }
.thero-facts small { font-size: 11px; color: var(--text-3); }
.thero-facts a, .thero-facts b { font-size: 14px; font-weight: 700; }
.thero-facts a:hover { color: var(--primary); }
.tcoach { display: flex; align-items: center; gap: 12px; padding: 10px; margin-bottom: 8px; border-radius: 12px; background: var(--surface-2); transition: background .12s; }
.tcoach:hover { background: var(--surface-3); }
.tcoach .avatar { width: 48px; height: 48px; }
.tcoach > span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tcoach small { font-size: 11px; color: var(--text-3); }
.tcoach strong { font-size: 15px; }
.tcoach em { display: flex; align-items: center; gap: 5px; font-style: normal; font-size: 12px; color: var(--text-2); }
.tcoach em img { width: 14px; height: 14px; border-radius: 50%; }
.tinfo .infolist dd small { font-weight: 500; }
.tinfo .infolist dd a { color: var(--primary); }
.dd-flag { display: inline-flex; align-items: center; gap: 6px; }
.dd-flag img { width: 16px; height: 16px; border-radius: 50%; }
.tsocial { display: flex; gap: 8px; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line); }
.tsocial a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); transition: background .12s, color .12s; }
.tsocial a:hover { background: var(--primary-soft); color: var(--primary); }
.tinfo-load { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); padding-top: 10px; }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tabout-src { display: inline-block; margin-top: 8px; font-size: 12px; color: var(--primary); font-weight: 600; }
.card-title .count { margin-inline-start: 4px; vertical-align: middle; }
.leaders { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.leader { padding: 12px; border-radius: 12px; background: var(--surface-2); }
.leader h3 { font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.leader ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.leader a { display: flex; align-items: center; gap: 8px; padding: 4px; border-radius: 8px; font-size: 13px; }
.leader a:hover { background: var(--surface-3); }
.leader .ellip { flex: 1; }
.leader small { display: block; font-size: 11px; color: var(--text-3); }
.leader b { font-size: 14px; font-weight: 800; }
.leader .avatar { width: 30px; height: 30px; }
.leader .is-first a { padding-block: 6px; }
.leader .is-first .avatar { width: 44px; height: 44px; border: 2px solid var(--primary); }
.leader .is-first b { font-size: 20px; color: var(--primary); }
.leader .is-first .ellip { font-weight: 700; font-size: 14px; }
.squad-txt small img { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; }

/* ---------- Home extras ---------- */
.topm { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.topm-title { font-size: 15px; font-weight: 700; }
.topm-scroll { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: thin; }
.topm-card {
  flex: 0 0 230px; scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px 12px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow);
  border: 1.5px solid transparent; transition: border-color .12s;
}
.topm-card:hover { border-color: var(--primary); }
.topm-card.is-live { border-color: #ff4d5e; }
.topm-league { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-3); min-width: 0; }
.topm-league img { width: 14px; height: 14px; object-fit: contain; }
.topm-body { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; }
.topm-team { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; font-size: 12px; font-weight: 600; text-align: center; }
.topm-team .ellip { max-width: 100%; }
.topm-team img { width: 36px; height: 36px; object-fit: contain; }
.topm-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.topm-score, .topm-time { font-family: var(--font-num); font-size: 18px; font-weight: 800; white-space: nowrap; direction: ltr; }
.topm-soon { font-size: 10px; color: var(--text-3); }


.wbanner {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius);
  background: linear-gradient(135deg, #c2185b, #7b1fa2); color: #fff; box-shadow: var(--shadow);
}
.sec-women .wbanner { background: linear-gradient(135deg, #3b5bfd, #7b4dff); }
.wbanner-ico { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.wbanner-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wbanner-txt strong { font-size: 15px; }
.wbanner-txt small { font-size: 12px; opacity: .9; }
[dir="rtl"] .wbanner .chev { transform: scaleX(-1); }

.whero {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 16px; border-radius: var(--radius); color: #fff;
  background: linear-gradient(135deg, #c2185b, #7b1fa2);
}
.whero .page-title { color: #fff; margin: 0 0 4px; }
.whero p { font-size: 13px; opacity: .92; max-width: 560px; }
.whero-back { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .2); font-size: 13px; font-weight: 700; white-space: nowrap; }
.whero-back:hover { background: rgba(255, 255, 255, .3); }

.faq details { border-top: 1px solid var(--line); }
.faq details:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; padding: 12px 0; font-weight: 600; font-size: 14px; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 18px; line-height: 1; color: var(--primary); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 12px; font-size: 13px; color: var(--text-2); line-height: 1.8; }

.sec-women, .is-w { --primary: #c2185b; --primary-2: #a3134b; --primary-soft: #fde7ef; }
[data-theme="dark"] .sec-women, [data-theme="dark"] .is-w { --primary: #f06292; --primary-2: #f48fb1; --primary-soft: #3a1a2a; }
/* Women's items listed on general pages carry the section colour as an edge mark. */
.mrow.is-w, .lgroup li.is-w a { box-shadow: inset -3px 0 0 var(--primary); }
[dir="ltr"] .mrow.is-w, [dir="ltr"] .lgroup li.is-w a { box-shadow: inset 3px 0 0 var(--primary); }
.lcard.is-w { border-top: 3px solid var(--primary); }
.lcard.is-w .lcard-title strong, .lgroup li.is-w .ellip { color: var(--primary); }
.sec-women .mrow.is-w, .sec-women .lgroup li.is-w a { box-shadow: none; }
.sec-women .lcard.is-w { border-top: 0; }
.sec-women .lcard.is-w .lcard-title strong { color: inherit; }
.brand-sec { display: inline-block; margin-inline-start: 2px; padding: 0 6px; border-radius: 6px; background: rgba(255, 255, 255, .22); font-weight: 700; }
.search-btn { display: none; }

/* ---------- Upcoming ---------- */
.upbtn {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow); color: var(--primary); font-weight: 700; font-size: 14px;
  border: 1.5px solid var(--primary-soft);
}
.upbtn:hover { border-color: var(--primary); }
.upbtn span { flex: 1; }
.upbtn small { font-size: 12px; font-weight: 600; color: var(--text-3); }
[dir="rtl"] .upbtn small::after { content: " ←"; }
[dir="ltr"] .upbtn small::after { content: " →"; }
.upnext-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.upnext-head a { font-size: 13px; font-weight: 600; color: var(--primary); }
.uphero { padding: 16px; border-radius: var(--radius); background: linear-gradient(135deg, var(--primary), #7b4dff); color: #fff; }
.uphero .page-title { color: #fff; margin: 0 0 4px; }
.uphero p { font-size: 13px; opacity: .92; }
.updays { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.updays::-webkit-scrollbar { display: none; }
.updays a {
  flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 82px;
  padding: 8px 10px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); font-weight: 700; font-size: 13px;
}
.updays a:hover { color: var(--primary); }
.updays small { font-size: 11px; font-weight: 500; color: var(--text-3); font-family: var(--font-num); }
.upday { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: calc(var(--top-h) + 12px); }
.upday-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 18px; font-weight: 800; padding-top: 6px; }
.upday-title small { font-size: 13px; font-weight: 500; color: var(--text-3); }
.upday-more { align-self: center; padding: 8px 18px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 13px; font-weight: 700; }
.upday-more:hover { background: var(--primary); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .layout-3 { grid-template-columns: 220px minmax(0, 1fr); }
  .layout-3 .side-end { display: none; }
}
@media (max-width: 960px) {
  .mainnav { display: none; }
  .layout-3, .layout-2 { grid-template-columns: minmax(0, 1fr); }
  .layout-3 .side-start { display: none; }
  .side { position: static; }
  .layout-match { grid-template-areas: "main" "side" "comm"; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: var(--surface); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 16px rgba(16, 24, 40, .06);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 7px; font-size: 11px; font-weight: 600; color: var(--text-3); }
  .tabbar a.is-on { color: var(--primary); }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .hide-md { display: none; }
}
@media (max-width: 640px) {
  :root { --top-h: 56px; }
  .wrap { padding-inline: 10px; }
  .page { padding-top: 12px; }
  .topbar-in { gap: 10px; }
  .brand { gap: 8px; }
  .brand-mark svg { width: 30px; height: 30px; }
  .brand-text strong { font-size: 15px; }
  .brand-text small { font-size: 11px; }
  .actions { margin-inline-start: auto; }
  .search-btn { display: inline-flex; }
  .search { display: none; flex: 1; height: 36px; max-width: none; padding-inline: 10px; }
  .topbar.is-search .search { display: flex; }
  .topbar.is-search .brand, .topbar.is-search [data-theme-toggle], .topbar.is-search .lang-btn { display: none; }
  .topbar.is-search .actions { margin-inline-start: 0; }
  .topm-card { flex-basis: 200px; }
  .icon-btn, .lang-btn { height: 36px; }
  .icon-btn { width: 36px; }
  .lang-btn { padding-inline: 10px; font-size: 12px; }
  .card { padding: 14px; border-radius: 12px; }
  .tabs { margin: 14px -14px -14px; }
  .card > .mlist { margin: -8px -14px -14px; }
  .table-wrap { margin-inline: -14px; }
  .page-title { font-size: 19px; }
  .mrow { grid-template-columns: 52px minmax(0, 1fr) 30px 16px; gap: 8px; padding-inline: 10px; }
  .mhead-team img { width: 54px; height: 54px; }
  .mhead-team h2 { font-size: 14px; }
  .mhead-score { font-size: 34px; }
  .mhead-time { font-size: 28px; }
  .mhead-mid { min-width: 96px; }
  .hide-sm { display: none; }
  .subs { grid-template-columns: 1fr; }
  .pp { width: 64px; }
  .pp-name { font-size: 10px; max-width: 64px; }
  .pp-shirt { width: 28px; height: 28px; font-size: 11px; }
  .pp .rating { inset-inline-end: 4px; }
  .hero { gap: 12px; }
  .hero h1 { font-size: 20px; }
  .hero-logo { width: 56px; height: 56px; }
  .hero-photo { width: 84px; height: 84px; }
  .footer-in { grid-template-columns: 1fr; }
  .chgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .recent-grid { grid-template-columns: 1fr; gap: 20px; }
  .facts { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .fact { padding: 10px; gap: 2px; }
  .fact small { font-size: 11px; }
  .fact b { font-size: 13px; }
  .phero-trophy { min-width: 64px; padding: 8px 10px; }
  .phero-trophy b { font-size: 20px; }
  .thero-facts { flex-basis: 100%; }
  .thero-facts li { flex: 1; min-width: 0; padding: 8px 10px; }
  .thero-facts a, .thero-facts b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tperf-row { grid-template-columns: 1fr 1fr; }
  .tperf-cat { grid-column: 1 / -1; grid-row: 1; max-width: none; }
  .tperf-p .avatar { width: 36px; height: 36px; }
  .mhead-meta { gap: 6px 12px; }
  .statgrid { grid-template-columns: repeat(2, 1fr); }
  .statbox b { font-size: 24px; }
  .pstats-grid { grid-template-columns: repeat(3, 1fr); }
  .pstat b { font-size: 17px; }
  .cform-row > .cavatar { display: none; }
  .cform input[type="text"] { max-width: none; }
}
@media (max-width: 380px) {
  .brand-text strong { font-size: 14px; }
  .lang-btn { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Top-matches filter chip */
.chip-star { color: #f5a623; font-size: 12px; line-height: 1; }
.chip.is-on .chip-star { color: inherit; }
@media (max-width: 640px) {
  .chips { gap: 6px; }
  .chip { padding: 6px 11px; font-size: 13px; }
}

/* Curated top competitions */
.tcomp-title { font-size: 12px; font-weight: 700; color: var(--text-3); margin: 10px 4px 4px; }
.tcomp-title:first-of-type { margin-top: 2px; }
.leaguelist .count, .leaguelist .pill { margin-inline-start: auto; }
.lgrid-head { grid-column: 1 / -1; font-size: 16px; font-weight: 800; margin: 8px 2px 0; }
.lgroup-top .card-title { color: var(--primary); }

/* Mobile top-competitions grid (the sidebar is hidden below 960px) */
.tgrid { display: none; }
@media (max-width: 960px) {
  .tgrid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
    background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 6px 6px;
  }
  .tgrid a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px; border-radius: 10px; min-width: 0; }
  .tgrid a:hover { background: var(--surface-2); }
  .tgrid-logo { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); }
  .tgrid-logo img { width: 28px; height: 28px; object-fit: contain; }
  .tgrid-live { position: absolute; top: 0; inset-inline-end: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--live, #e53935); border: 2px solid var(--surface); }
  .tgrid-name {
    font-size: 11px; font-weight: 600; line-height: 1.3; text-align: center; color: var(--text-2);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .tgrid a.tgrid-all { grid-column: 1 / -1; flex-direction: row; justify-content: center; font-size: 13px; font-weight: 600; color: var(--primary); padding: 6px; }
}

/* ---------- Favourites & alerts ---------- */
.mrow { grid-template-columns: 64px minmax(0, 1fr) 36px 26px; }
.mrow-end { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.fav-star {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  color: var(--text-3); cursor: pointer; background: none; border: 0; padding: 0; flex-shrink: 0;
  transition: color .15s, transform .15s, background .15s;
}
.fav-star svg, .fav-btn svg, .fav-link svg, .chip-heart svg, .favhero-ico svg { fill: none; }
.fav-star:hover { color: #f5a623; background: var(--surface-3); }
.fav-star:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.fav-star.is-on, .mrow.is-followed .fav-star { color: #f5a623; }
.fav-star.is-on svg { fill: currentColor; }
.fav-star.is-on { animation: favpop .35s ease; }
@keyframes favpop { 50% { transform: scale(1.3); } }
.mrow-end .mrow-tv { line-height: 0; }

.fav-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding-inline: 12px 14px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: background .15s, border-color .15s, color .15s;
}
.fav-btn svg { color: #f5a623; }
.fav-btn:hover { border-color: #f5a623; }
.fav-btn.is-on { background: #fff4dc; border-color: #f5c46b; color: #9a5b00; }
.fav-btn.is-on svg { fill: currentColor; color: #f5a623; }
[data-theme="dark"] .fav-btn.is-on { background: #3a2c10; border-color: #7a5a1c; color: #ffcf73; }
.hero > .fav-btn { margin-inline-start: auto; }
.hero-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.mhead { position: relative; }
.mhead-league { padding-inline: 44px; }
.mhead-fav { position: absolute; top: 10px; inset-inline-end: 10px; }
.mhead-fav .fav-btn { height: 32px; padding-inline: 9px 11px; }
.mhead-share { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 5; }
.mhead-share .share-btn { width: 32px; height: 32px; padding: 0; justify-content: center; }
.mhead-share .share-btn span { display: none; }
.mhead-share .share-menu { inset-inline-start: 0; inset-inline-end: auto; }
.hero-acts { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }

.share { position: relative; display: inline-flex; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding-inline: 12px 14px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.share-btn svg { color: var(--primary); }
.share-btn:hover, .share-btn[aria-expanded="true"] { border-color: var(--primary); }
.share-menu {
  position: absolute; z-index: 40; top: calc(100% + 8px); inset-inline-end: 0; width: 264px; padding: 10px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 40px rgba(16, 24, 40, .2);
}
.share-menu[hidden] { display: none; }
.share-it {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 2px; border: 0; border-radius: 12px;
  background: none; color: var(--text); font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; text-align: center;
}
.share-it:hover { background: var(--surface-2); }
.share-it i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; }
.share-wa i { background: #25d366; }
.share-fb i { background: #1877f2; }
.share-tg i { background: #229ed9; }
.share-x i { background: #111; }
.share-ig i { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.share-copy i, .share-more i { background: var(--surface-3); color: var(--text); }
[data-theme="dark"] .share-x i { background: #000; box-shadow: inset 0 0 0 1px #444; }

.fav-link { position: relative; }
.fav-link.is-on { background: #fff; color: #f5a623; }
.fav-link.is-on svg { fill: currentColor; }
.fav-badge {
  position: absolute; top: -3px; inset-inline-end: -3px; min-width: 18px; height: 18px; padding-inline: 4px;
  border-radius: 999px; background: #f5a623; color: #1a1d29; font: 700 11px/18px var(--font-num); text-align: center;
  box-shadow: 0 0 0 2px var(--primary);
}
.chip-heart { color: #f5a623; display: inline-flex; }
.chip-heart svg { fill: currentColor; }
.chip-fav.is-on { background: #f5a623; border-color: #f5a623; color: #1a1d29; }
.chip-fav.is-on .chip-heart { color: inherit; }

.toasts {
  position: fixed; z-index: 90; bottom: 20px; inset-inline-end: 20px; width: min(380px, calc(100vw - 20px));
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; padding: 12px 12px 12px 14px;
  background: var(--surface); color: var(--text); border-radius: 14px; box-shadow: 0 12px 32px rgba(16, 24, 40, .22);
  border-inline-start: 4px solid var(--primary);
  opacity: 0; transform: translateY(12px); transition: opacity .22s, transform .22s;
}
.toast.is-in { opacity: 1; transform: none; }
.toast img { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; }
.toast-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.toast-txt b { font-size: 14px; font-weight: 700; }
.toast-txt span { font-size: 13px; color: var(--text-2); white-space: pre-line; }
.toast-x { border: 0; background: none; color: var(--text-3); font-size: 20px; line-height: 1; cursor: pointer; padding: 0 2px; }
.toast-goal { border-inline-start-color: var(--win); }
.toast-goal .toast-txt b { color: var(--win); }
.toast-red { border-inline-start-color: var(--live); }
.toast-fav { border-inline-start-color: #f5a623; }

.favhero { display: flex; align-items: center; gap: 14px; }
.favhero h1 { font-size: 22px; font-weight: 800; }
.favhero-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #fff4dc; color: #f5a623; flex-shrink: 0; }
.favhero-ico svg { fill: currentColor; }
[data-theme="dark"] .favhero-ico { background: #3a2c10; }
.favempty { text-align: center; padding: 28px 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.favempty h2 { font-size: 17px; }
.favempty p { max-width: 460px; }
.favnone { padding: 6px 2px; }
.favlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.favitem { display: flex; align-items: center; gap: 4px; background: var(--surface-2); border-radius: 12px; padding-inline-end: 4px; }
.favitem-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 9px 10px; }
.favitem-link:hover b { color: var(--primary); }
.favitem-pics { display: flex; flex-shrink: 0; }
.favitem-pics img { width: 28px; height: 28px; object-fit: contain; }
.favitem-pics img + img { margin-inline-start: -6px; }
.favitem-pics.is-round img { border-radius: 50%; object-fit: cover; background: var(--surface-3); }
.favitem-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.favitem-txt b { font-size: 14px; font-weight: 600; }
.favitem-txt small { font-size: 12px; color: var(--text-3); }
.favset p.muted { font-size: 13px; margin-bottom: 12px; }
.favmsg { font-size: 13px; color: var(--text-2); margin-top: 10px; }
.favmsg:empty { display: none; }
.favmsg.is-error { color: var(--live); }
.btn { border: 0; cursor: pointer; }
.btn:disabled { opacity: .6; cursor: default; }
.btn-block { display: flex; width: 100%; }
.btn-ghost { background: var(--surface-2); color: var(--text); }
.btn-ghost:hover { background: var(--surface-3); }
.toggles { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; }
.toggles li + li { border-top: 1px solid var(--line); }
.toggle { display: flex; align-items: center; gap: 10px; padding: 10px 0; cursor: pointer; font-size: 14px; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-ui { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--surface-3); flex-shrink: 0; transition: background .15s; }
.toggle-ui::after {
  content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s;
}
.toggle input:checked + .toggle-ui { background: var(--win); }
.toggle input:checked + .toggle-ui::after { transform: translateX(16px); }
[dir="rtl"] .toggle input:checked + .toggle-ui::after { transform: translateX(-16px); }
.toggle input:focus-visible + .toggle-ui { outline: 2px solid var(--primary); outline-offset: 2px; }

@media (max-width: 960px) {
  .toasts { bottom: calc(72px + env(safe-area-inset-bottom)); inset-inline: 10px; width: auto; }
}
@media (max-width: 640px) {
  .mrow { grid-template-columns: 50px minmax(0, 1fr) 28px 26px; gap: 6px; padding-inline: 8px; }
  .fav-star { width: 26px; height: 26px; }
  .mhead-fav .fav-btn span { display: none; }
  .mhead-fav .fav-btn { width: 32px; padding: 0; justify-content: center; }
  .hero > .fav-btn, .hero-acts { margin-inline-start: 0; }
  .share-menu { position: fixed; top: auto; bottom: calc(80px + env(safe-area-inset-bottom)); inset-inline: 10px; width: auto; z-index: 95; }
  .mhead-share .share-menu { inset-inline: 10px; }
  .favlist { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .actions { gap: 6px; }
  .icon-btn { width: 34px; height: 34px; }
}

/* Home: standings of the day's strongest competition (desktop sidebar) */
.daytable { padding-bottom: 10px; }
.daytable-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.daytable-head img { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.daytable-head span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.daytable-head b { font-size: 15px; font-weight: 700; }
.daytable-head small { font-size: 12px; color: var(--text-3); }
.daytable-head:hover b { color: var(--primary); }
.daytable .table-wrap { margin-inline: -16px; }
.daytable .stable { font-size: 13px; }
.daytable .card-more { margin-top: 4px; }

/* Pre-match card */
.mprev-kick { margin: 0 0 12px; color: var(--text-2); font-size: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mprev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mprev-team { background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mprev-head { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; min-width: 0; }
.mprev-head img { object-fit: contain; flex: none; }
.mprev-line { margin: 0; font-size: 13px; }
.flist-none { font-size: 13px; margin: 8px 0 0; }
@media (max-width: 560px) { .mprev-grid { grid-template-columns: 1fr; } }

.evlist { list-style: none; margin: 0; padding: 0; }
.evlist li { display: grid; grid-template-columns: 44px 24px 1fr auto; gap: 8px; align-items: center; padding: 8px 0; font-size: 14px; }
.evlist li + li { border-top: 1px solid var(--line); }
.evlist-min { font-family: var(--font-num); color: var(--text-2); }
.evlist-away .evlist-min { color: var(--away); }
.evlist-home .evlist-min { color: var(--home); }

/* Trends */
.trends { list-style: none; margin: 0; padding: 0; }
.trends li { display: grid; grid-template-columns: 44px 1fr 56px; gap: 10px; align-items: center; padding: 10px 0; }
.trends li + li { border-top: 1px solid var(--line); }
.trends-who { display: flex; gap: 2px; justify-content: center; }
.trends-who img { object-fit: contain; }
.trends-txt { font-size: 14px; display: flex; flex-direction: column; gap: 2px; }
.trends-txt small { font-size: 12px; }
.trends-pct { font-family: var(--font-num); text-align: center; border-radius: 999px; padding: 4px 0; font-size: 13px;
  background: linear-gradient(90deg, var(--primary-soft) var(--p), var(--surface-3) var(--p)); color: var(--primary-2); }
[data-theme="dark"] .trends-pct { color: #c9d3ff; }

/* Match rows: live pill, clearer kick-off time, dimmed loser */
.mrow-label { font-size: 13px; }
.mrow[data-filter="upcoming"] .mrow-label { font-size: 14px; font-weight: 700; color: var(--text); }
.mrow.is-live .mrow-label { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 999px; background: var(--live-soft); color: var(--live); font-weight: 700; direction: ltr; }
.mrow.is-live .mrow-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--live); animation: livepulse 1.4s ease-in-out infinite; }
@keyframes livepulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.mrow[data-filter="finished"] .mrow-label { font-size: 12px; color: var(--text-3); }
.mrow-team { font-size: 14.5px; font-weight: 500; }
.mrow-team.is-lose { color: var(--text-2); }
.mrow[data-filter="finished"] .mrow-team.is-lose { opacity: .8; }
.mrow-score b { font-size: 15px; }
.tznote { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 8px 0 0; font-size: 12px; color: var(--text-3); }
@media (prefers-reduced-motion: reduce) { .mrow.is-live .mrow-label::before { animation: none; } }

/* Pre-match card: pills, tappable form chips, W/D/L tally, last meeting scoreboard */
.mprev-team { gap: 10px; }
.mprev-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.mprev-pill { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 12px; color: var(--text-2); }
.mprev-pill b { color: var(--text); }
.mprev-sub { font-size: 12px; color: var(--text-3); margin-bottom: -4px; }
.fchips { display: flex; gap: 5px; }
.fchip { position: relative; width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; outline: none; transition: transform .12s; }
.fchip:hover, .fchip:focus { transform: translateY(-2px); }
.fchip:focus-visible { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--primary); }
.fchip-tip { position: absolute; bottom: calc(100% + 8px); inset-inline-start: 50%; transform: translateX(50%); z-index: 20; display: none; align-items: center; gap: 6px; white-space: nowrap; max-width: 280px; padding: 6px 10px; border-radius: 10px; background: var(--text); color: var(--surface); font-size: 12px; font-weight: 500; box-shadow: 0 6px 18px rgba(0,0,0,.18); text-decoration: none; }
[dir="ltr"] .fchip-tip { transform: translateX(-50%); }
.fchip-tip::after { content: ""; position: absolute; top: 100%; inset-inline-start: 50%; margin-inline-start: -5px; border: 5px solid transparent; border-top-color: var(--text); }
.fchip-tip::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.fchip-tip img { background: #fff; border-radius: 50%; padding: 1px; object-fit: contain; }
.fchip-tip small { opacity: .65; }
.fchip:hover .fchip-tip, .fchip:focus .fchip-tip, .fchip:focus-within .fchip-tip { display: inline-flex; }
.fchips .fchip:first-child .fchip-tip { inset-inline-start: 0; transform: none; }
.fchips .fchip:first-child .fchip-tip::after { inset-inline-start: 14px; }
.fchips .fchip:last-child .fchip-tip { inset-inline-start: auto; inset-inline-end: 0; transform: none; }
.fchips .fchip:last-child .fchip-tip::after { inset-inline-start: auto; inset-inline-end: 9px; }
.ftally { display: flex; gap: 12px; font-size: 12px; color: var(--text-2); }
.ftally span { display: inline-flex; align-items: center; gap: 4px; }
.ftally span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.ftally-W::before { background: var(--win); }
.ftally-D::before { background: var(--text-3); }
.ftally-L::before { background: var(--loss); }
.ftally b { color: var(--text); font-size: 13px; }
.mprev-last { display: block; margin-top: 12px; padding: 10px 12px 12px; border-radius: var(--radius-sm); background: var(--surface-2); color: inherit; text-decoration: none; transition: background .12s; }
.mprev-last:hover { background: var(--surface-3); }
.mprev-last-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); margin-bottom: 8px; }
.mprev-last-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.mprev-last-team { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; font-size: 14px; }
.mprev-last-team.is-away { justify-content: flex-end; }
.mprev-last-team img { object-fit: contain; flex: none; }
.mprev-last-score { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 3px 12px; font-size: 16px; }
.fchip-opp { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.mprev-last-score { display: inline-flex; gap: 8px; }
.mprev-last-score i { font-style: normal; color: var(--text-3); }
.fchip-tip { width: max-content; }

/* Match events: period separators, goal emphasis with running score, compact substitutions */
.tl-period { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 6px; padding: 7px 14px; border-radius: 999px; background: var(--surface-2); font-size: 13px; font-weight: 700; color: var(--text-2); }
.tl-period:first-child { margin-top: 0; }
.tl-pair { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.tl-pair i { font-style: normal; color: var(--text-3); font-weight: 500; }
.tl-period .tl-pair { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1px 10px; font-size: 14px; }
.tl-pair-sm { gap: 3px; padding: 0 6px; border-radius: 6px; background: var(--surface-2); font-size: 12px; }
.tl-name { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tl-home .tl-name { justify-content: flex-end; }
.tl-row { padding-block: 5px; }
.tl-major .tl-txt a, .tl-major .tl-txt .tl-name > span { font-weight: 800; }
.tl-major .tl-ico { background: rgba(30, 166, 114, .14); color: var(--win); }
.tl-own_goal .tl-ico { background: rgba(229, 36, 59, .12); }
.tl-red .tl-ico { background: rgba(229, 36, 59, .1); }
.tl-sub .tl-txt a.in { color: var(--win); font-weight: 600; font-size: 13px; }
.tl-sub .tl-txt a.in::before { content: "↑ "; }
.tl-sub .tl-txt .out::before { content: "↓ "; color: var(--loss); }
.tl-sub .tl-ico { width: 26px; height: 26px; }
.tl-sub .tl-min { opacity: .8; }
.tl-min, .mhead-goals b, .evlist-min, [data-label] { direction: ltr; unicode-bidi: isolate; }

/* Live centre (our own, no third-party widget) */
.lc-time { padding-block: 12px; }
.lc-time-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.lc-time-top b { color: var(--text); }
.lc-time-bar { display: block; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.lc-time-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--win), #3fcf95); }
.lc-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--text-3); margin-bottom: 8px; }
.lc-latest-row { display: flex; align-items: center; gap: 12px; }
.lc-latest-row .tl-ico { width: 40px; height: 40px; }
.lc-latest-row .tl-ico svg { width: 22px; height: 22px; }
.lc-latest-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.lc-latest-txt strong { font-size: 15px; }
.lc-latest-txt span { display: flex; align-items: center; gap: 5px; font-size: 13px; flex-wrap: wrap; }
.lc-latest-txt img { object-fit: contain; }
.lc-latest-min { flex: none; }
.lc-latest.lc-goal, .lc-latest.lc-penalty { background: linear-gradient(135deg, rgba(30, 166, 114, .12), var(--surface) 60%); }
.lc-latest.lc-goal .tl-ico, .lc-latest.lc-penalty .tl-ico { background: rgba(30, 166, 114, .16); color: var(--win); }
.lc-latest.lc-red .tl-ico { background: rgba(229, 36, 59, .12); }
.lc-waiting { margin: 0; text-align: center; }

.lc-teams { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.lc-team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lc-team-away { flex-direction: row-reverse; text-align: end; }
.lc-team img { object-fit: contain; flex: none; }
.lc-team-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.lc-team-txt small { font-size: 12px; color: var(--text-3); }
.lc-team-home .lc-team-txt b { color: var(--home); }
.lc-team-away .lc-team-txt b { color: var(--away); }
.lc-pitch { display: block; width: 100%; height: auto; border-radius: 10px; direction: ltr; }
.lc-lines rect, .lc-lines line, .lc-lines circle, .lc-lines path { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: .35; }
.lc-spots circle { fill: rgba(255, 255, 255, .7); }
.lc-shot { cursor: pointer; outline: none; }
.lc-shot circle { stroke-width: .45; transition: stroke-width .15s; }
.lc-home circle { --c: var(--home); }
.lc-away circle { --c: var(--away); }
.lc-shot circle { fill: var(--c); stroke: #fff; }
.lc-r-off circle, .lc-r-post circle { fill: rgba(255, 255, 255, .15); stroke: var(--c); stroke-width: .6; }
.lc-r-blocked circle { fill: none; stroke: var(--c); stroke-width: .5; stroke-dasharray: .8 .6; }
.lc-r-goal circle { stroke: #fff; stroke-width: .7; }
.lc-r-goal .lc-core { fill: #fff; stroke: none; }
.lc-shot:hover circle, .lc-shot:focus circle, .lc-shot.is-sel circle { stroke: #fff; stroke-width: 1; }
.lc-shot.is-sel { filter: drop-shadow(0 0 1.5px #fff); }
.lc-ring { fill: none !important; stroke: #fff !important; stroke-width: .5 !important; transform-box: fill-box; transform-origin: center; animation: lcRing 1.6s ease-out infinite; }
@keyframes lcRing { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
.lc-info { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); font-size: 13px; color: var(--text-2); min-height: 20px; text-align: center; }
.lc-legend { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 12px; color: var(--text-2); }
.lc-legend li { display: inline-flex; align-items: center; gap: 5px; }
.lc-legend i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--text-2); }
.lc-legend .lg-goal { background: var(--text-2); box-shadow: inset 0 0 0 2.5px var(--surface); }
.lc-legend .lg-on { background: var(--text-2); }
.lc-legend .lg-blocked { border-style: dashed; }
.lc-legend .lg-size { width: 7px; height: 7px; box-shadow: 9px 0 0 2px var(--surface), 9px 0 0 3.5px var(--text-2); margin-inline-end: 10px; }

.lc-mom { display: block; width: 100%; height: 96px; direction: ltr; }
.lc-mom-mid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.lc-mom-ht { stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; opacity: .6; }
.lc-mom-now { stroke: var(--live); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.lc-mom-home { fill: var(--home); }
.lc-mom-away { fill: var(--away); }
.lc-mom-axis { position: relative; height: 16px; margin-top: 4px; font-size: 11px; color: var(--text-3); font-family: var(--font-num); }
.lc-mom-axis span { position: absolute; transform: translateX(-50%); }
.lc-mom-axis span:first-child { transform: none; }
.lc-mom-axis span:last-child { transform: translateX(-100%); }
.lc-mom-keys { display: flex; justify-content: center; gap: 16px; margin-top: 6px; font-size: 12px; color: var(--text-2); }
.lc-mom-keys span { display: inline-flex; align-items: center; gap: 6px; }
.lc-mom-keys i { width: 10px; height: 10px; border-radius: 3px; }
.lc-key-home i { background: var(--home); }
.lc-key-away i { background: var(--away); }
.lc-note { margin: 8px 0 0; font-size: 12px; text-align: center; }
.lc-more { display: block; width: 100%; margin-top: 12px; padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--primary); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.lc-more:hover { background: var(--surface-2); }
.lc .evlist img { object-fit: contain; flex: none; }
@media (prefers-reduced-motion: reduce) { .lc-ring { animation: none; display: none; } }

/* Match page title (the page H1) */
.mhead-h1 { margin: 6px 0 0; padding-inline: 44px; text-align: center; font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.5; }
@media (min-width: 900px) { .mhead-h1 { font-size: 15px; } }

/* About / privacy / contact */
.doc { max-width: 860px; margin-inline: auto; padding: 22px 24px 26px; line-height: 1.9; }
.doc h1 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.doc h2 { font-size: 18px; font-weight: 800; margin: 22px 0 6px; }
.doc p, .doc li { color: var(--text-2); font-size: 15px; }
.doc p + p { margin-top: 10px; }
.doc ul { padding-inline-start: 20px; display: grid; gap: 6px; }
.doc a { color: var(--primary); font-weight: 600; }
.doc-lead { font-size: 16px !important; color: var(--text) !important; }
.doc .doc-grid { list-style: none; padding: 0; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.doc-grid li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); line-height: 1.6; }
.doc-grid strong { color: var(--text); }
.doc-grid span { font-size: 13px; }
.cform { display: grid; gap: 12px; margin: 18px 0 14px; }
.cform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cform label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: var(--text); }
.cform input, .cform textarea {
  width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; font-size: 15px; font-weight: 400;
}
.cform input:focus, .cform textarea:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: transparent; }
.cform textarea { resize: vertical; min-height: 140px; }
.cform .btn { justify-self: start; }
.cform-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cform-msg { padding: 10px 12px; border-radius: var(--radius-sm); background: #e7f7ee; color: #146c43; font-weight: 600; font-size: 14px; }
.cform-msg.is-error { background: #fdecec; color: #b42318; }
@media (max-width: 640px) {
  .doc { padding: 16px; }
  .doc h1 { font-size: 22px; }
  .cform-row { grid-template-columns: 1fr; }
}

/* AdSense placements: the reserved height avoids the page jumping when an ad loads */
.ad { margin: 0 0 14px; text-align: center; min-height: 100px; }
.ad-label { display: block; font-size: 10px; letter-spacing: .04em; color: var(--text-3); margin-bottom: 4px; }
.ad-sidebar { min-height: 250px; }
.lcards .ad { margin: 10px 0; }
.ad-preview .ad-box {
  display: grid; place-items: center; height: 90px; border-radius: var(--radius-sm);
  border: 2px dashed var(--line); background: var(--surface-2); color: var(--text-3); font-weight: 700; direction: ltr;
}
.ad-sidebar.ad-preview .ad-box { height: 250px; }
.ad-match.ad-preview .ad-box { height: 120px; }
