:root {
  --bg: #0a0c10;
  --bg-2: #0e1117;
  --surface: #12161e;
  --surface-2: #181d27;
  --surface-3: #1e2430;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #eef1f6;
  --text-2: #a4adbd;
  --text-3: #6b7587;
  --accent: #ff3b4e;
  --accent-2: #ff6a3d;
  --gold: #f5c451;
  --green: #37d67a;
  --blue: #5b8cff;
  --radius: 14px;
  --radius-sm: 9px;
  --ease: cubic-bezier(0.22, 0.8, 0.28, 1);
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: radial-gradient(1200px 500px at 50% -200px, rgba(255, 59, 78, 0.09), transparent 70%);
  background-repeat: no-repeat;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
img { display: block; max-width: 100%; }
::selection { background: rgba(255, 59, 78, 0.35); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #232a37; border-radius: 10px; border: 2px solid var(--bg); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

/* ------------------------------------------------------------ Top bar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 12, 16, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  max-width: 1440px; margin: 0 auto; padding: 0 24px; height: 62px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.18em; font-size: 15px; }
.brand__mark { color: var(--accent); display: grid; place-items: center; transition: transform 0.4s var(--ease); }
.brand:hover .brand__mark { transform: translateY(-2px) scale(1.06); }
.nav { display: flex; gap: 4px; }
.nav a {
  padding: 8px 14px; border-radius: 999px; color: var(--text-2); font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav a.is-active { color: var(--text); background: rgba(255, 255, 255, 0.08); }

.search { position: relative; flex: 1; max-width: 460px; margin-left: auto; }
.search input {
  width: 100%; height: 40px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); padding: 0 44px 0 40px; font: inherit; outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.search input::placeholder { color: var(--text-3); }
.search input::-webkit-search-cancel-button { display: none; }
.search input:focus { border-color: rgba(91, 140, 255, 0.55); background: var(--surface-2); box-shadow: 0 0 0 4px rgba(91, 140, 255, 0.12); }
.search__icon { position: absolute; left: 14px; top: 11px; color: var(--text-3); pointer-events: none; }
.search__kbd {
  position: absolute; right: 12px; top: 9px; font: 600 11px/1 inherit; color: var(--text-3);
  border: 1px solid var(--line-2); border-radius: 6px; padding: 5px 7px; pointer-events: none;
}
.search:focus-within .search__kbd { opacity: 0; }
.search__panel {
  position: absolute; top: 48px; left: 0; right: 0; background: var(--surface-2);
  border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow);
  max-height: 70vh; overflow: auto; padding: 8px; animation: pop 0.18s var(--ease);
}
.search__group { padding: 8px 10px 4px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.search__item {
  display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; width: 100%; text-align: left;
  transition: background 0.15s;
}
.search__item:hover, .search__item.is-sel { background: rgba(255, 255, 255, 0.06); }
.search__item .grow { flex: 1; min-width: 0; }
.search__item .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search__item .s { color: var(--text-3); font-size: 12px; }
.search__empty { padding: 18px; text-align: center; color: var(--text-3); }

.status-btn {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text-2); font-size: 12px; font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.status-btn:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); display: inline-block; flex: none; }
.dot--live { background: var(--green); box-shadow: 0 0 0 0 rgba(55, 214, 122, 0.6); animation: ping 2s infinite; }
.dot--red { background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 59, 78, 0.6); animation: ping-red 1.6s infinite; }
.dot--off { background: var(--text-3); animation: none; }

/* --------------------------------------------------------------- Layout */
.view { flex: 1; max-width: 1440px; width: 100%; margin: 0 auto; padding: 26px 24px 60px; outline: none; }
.view.is-entering > * { animation: rise 0.5s var(--ease) both; }
.view.is-entering > *:nth-child(2) { animation-delay: 0.05s; }
.view.is-entering > *:nth-child(3) { animation-delay: 0.1s; }

.grid-home { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 22px; }
.sidebar { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 18px; }

.page-title { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 4px; }
.page-sub { color: var(--text-3); margin: 0 0 22px; }

/* ------------------------------------------------------- Date + filters */
.toolbar { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.dates { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.dates::-webkit-scrollbar { display: none; }
.date-pill {
  flex: none; min-width: 74px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); text-align: center; transition: all 0.2s var(--ease);
}
.date-pill small { display: block; color: var(--text-3); font-size: 11px; font-weight: 500; }
.date-pill b { font-weight: 600; }
.date-pill:hover { border-color: var(--line-2); transform: translateY(-1px); }
.date-pill.is-active { background: var(--text); color: #0a0c10; border-color: var(--text); }
.date-pill.is-active small { color: #4b5363; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--text-2); font-weight: 500; font-size: 13px; transition: all 0.2s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip.is-active { background: rgba(255, 255, 255, 0.09); color: var(--text); border-color: var(--line-2); }
.chip .n { font-size: 11px; color: var(--text-3); font-weight: 600; }
.chip.is-live .n { color: var(--accent); }

/* ------------------------------------------------------------- Sections */
.section { display: flex; flex-direction: column; gap: 10px; }
.section__head { display: flex; align-items: center; gap: 12px; padding: 6px 2px; }
.section__head h2 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.03em; display: flex; align-items: center; gap: 10px; }
.section__head .count { color: var(--text-3); font-weight: 500; font-size: 12px; }
.section__head .lg-logo { width: 20px; height: 20px; object-fit: contain; border-radius: 4px; }
.section__head .flag { color: var(--text-3); font-weight: 400; font-size: 12px; }

.feature {
  position: relative; padding: 18px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 59, 78, 0.10), rgba(255, 106, 61, 0.03) 40%, transparent 70%), var(--surface);
  border: 1px solid rgba(255, 59, 78, 0.18);
}
.feature__title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.feature__title h2 { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.badge-sl {
  font-size: 10px; font-weight: 800; letter-spacing: 0.08em; padding: 4px 8px; border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
}
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }

/* ----------------------------------------------------------- Match card */
.mcard {
  display: block; position: relative; padding: 16px; border-radius: var(--radius); background: var(--surface-2);
  border: 1px solid var(--line); transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s, box-shadow 0.25s;
  overflow: hidden;
}
.mcard:hover { transform: translateY(-3px); border-color: var(--line-2); background: var(--surface-3); box-shadow: var(--shadow); }
.mcard.is-live { border-color: rgba(255, 59, 78, 0.35); }
.mcard.is-live::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: sweep 2.6s linear infinite;
}
.mcard__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 12px; color: var(--text-3); }
.mcard__league { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.mcard__teams { display: flex; flex-direction: column; gap: 10px; }
.mteam { display: flex; align-items: center; gap: 12px; }
.mteam__name { flex: 1; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mteam__score { font-weight: 800; font-size: 18px; min-width: 22px; text-align: right; font-variant-numeric: tabular-nums; }
.mteam.is-win .mteam__name { color: #fff; }
.mteam:not(.is-win).is-done .mteam__name, .mteam.is-lose .mteam__name { color: var(--text-2); }
.mcard__foot { display: flex; align-items: center; gap: 6px; margin-top: 14px; flex-wrap: wrap; }

.mrow {
  display: grid; grid-template-columns: 74px minmax(0, 1fr) auto minmax(0, 1fr) 150px 18px; align-items: center; gap: 14px;
  padding: 11px 16px; border-radius: 12px; background: var(--surface); border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.mrow:hover { background: var(--surface-2); border-color: var(--line); transform: translateX(2px); }
.mrow__time { font-size: 12px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.mrow__home { display: flex; align-items: center; gap: 10px; justify-content: flex-end; min-width: 0; text-align: right; }
.mrow__away { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mrow__name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow__score { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 64px; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.mrow__score .sep { color: var(--text-3); font-weight: 500; }
.mrow__score .vs { color: var(--text-3); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; }
.mrow__ch { display: flex; gap: 5px; justify-content: flex-end; }
.mrow__go { color: var(--text-3); transition: transform 0.2s var(--ease), color 0.2s; }
.mrow:hover .mrow__go { color: var(--text); transform: translateX(3px); }
.mrow.is-live .mrow__time { color: var(--accent); }

.rows { display: flex; flex-direction: column; gap: 4px; }

.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-variant-numeric: tabular-nums; }
.status--live { color: var(--accent); }
.status--ht { color: var(--gold); }
.status--post { color: var(--text-3); }
.status--pre { color: var(--text-2); }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 1.2s ease-in-out infinite; }

.tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 600;
  background: rgba(255, 255, 255, 0.06); color: var(--text-2); white-space: nowrap;
}
.tag--play { background: rgba(55, 214, 122, 0.12); color: var(--green); }
.tag .tv { width: 8px; height: 8px; border-radius: 2px; background: currentColor; opacity: 0.7; }

.logo { width: 26px; height: 26px; object-fit: contain; flex: none; }
.logo--lg { width: 38px; height: 38px; }
.logo--xl { width: 64px; height: 64px; }
.logo-fallback {
  width: 26px; height: 26px; border-radius: 50%; background: var(--surface-3); color: var(--text-2);
  display: grid; place-items: center; font-size: 10px; font-weight: 700; flex: none;
}
.logo-fallback.logo--lg { width: 38px; height: 38px; font-size: 12px; }
.logo-fallback.logo--xl { width: 64px; height: 64px; font-size: 18px; }

.flash { animation: flash 1.6s var(--ease); }

/* -------------------------------------------------------------- Panels */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; }
.panel__head h3 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; }
.panel__head a { font-size: 12px; color: var(--text-3); transition: color 0.2s; }
.panel__head a:hover { color: var(--text); }

.table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.table th { text-align: center; color: var(--text-3); font-weight: 600; font-size: 11px; padding: 8px 6px; letter-spacing: 0.04em; }
.table td { padding: 8px 6px; text-align: center; border-top: 1px solid var(--line); }
.table th:nth-child(2), .table td:nth-child(2) { text-align: left; }
.table td.rank { width: 30px; color: var(--text-3); font-weight: 600; position: relative; }
.table td.rank i { position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px; border-radius: 3px; }
.table td.team { display: flex; align-items: center; gap: 9px; font-weight: 600; text-align: left; border-top: 0; }
.table tr { border-top: 1px solid var(--line); }
.table tr.is-hl td { background: rgba(255, 59, 78, 0.06); }
.table td.pts { font-weight: 800; }
.table--lg { font-size: 14px; }
.table--lg td { padding: 11px 8px; }

.chan-list { display: flex; flex-direction: column; padding: 0 8px 8px; }
.chan-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 10px; transition: background 0.2s;
}
.chan-item:hover { background: rgba(255, 255, 255, 0.05); }
.chan-item .meta { flex: 1; min-width: 0; }
.chan-item .meta b { display: block; font-weight: 600; }
.chan-item .meta span { display: block; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ch-badge {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: -0.02em; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

/* ------------------------------------------------------------- Channels */
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ch-card {
  display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--line); transition: all 0.25s var(--ease); position: relative;
}
.ch-card:hover { transform: translateY(-3px); border-color: var(--line-2); background: var(--surface-3); box-shadow: var(--shadow); }
.ch-card__head { display: flex; align-items: center; gap: 12px; }
.ch-card__head .txt { flex: 1; min-width: 0; }
.ch-card__head .name { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-card__head .grp { color: var(--text-3); font-size: 12px; }
.ch-card__now { font-size: 13px; color: var(--text-2); min-height: 38px; }
.ch-card__now b { color: var(--text); font-weight: 600; }
.ch-card__state { flex: none; }
.ch-card.is-offline { opacity: 0.62; }

/* ---------------------------------------------------------------- Watch */
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; align-items: start; }
.watch__main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 13px; margin-bottom: 16px; }
.crumbs a:hover { color: var(--text); }
.crumbs .sep { opacity: 0.5; }

.watch-options { display: flex; align-items: center; justify-content: flex-start; gap: 10px; flex-wrap: wrap; margin-bottom: -6px; }
.src-switch { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 8px; }
.src-switch__label { font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; padding-left: 4px; }
.src-switch__group { display: inline-flex; align-items: center; gap: 4px; }
.src-switch__btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 600;
  border: 1px solid transparent; background: transparent; color: var(--text-2); cursor: pointer; transition: all 0.18s var(--ease);
}
.src-switch__btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.src-switch__btn.is-active {
  background: var(--surface-2); color: #fff; border-color: rgba(255, 255, 255, 0.16); box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.src-switch__btn .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.src-switch__btn.is-active .dot { background: var(--green); box-shadow: 0 0 6px var(--green); }

.sources { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sources__label { font-size: 12px; color: var(--text-3); margin-right: 4px; font-weight: 500; }
.src-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text-2); font-weight: 600; font-size: 13px; transition: all 0.2s var(--ease);
}
.src-chip:hover { color: var(--text); border-color: var(--line-2); }
.src-chip.is-active { background: rgba(255, 255, 255, 0.09); color: var(--text); border-color: var(--line-2); }
.src-chip.is-off { opacity: 0.55; }
.src-chip .ch-mini { width: 8px; height: 8px; border-radius: 50%; }

.scoreboard {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; padding: 24px 20px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: 20px;
}
.sb-team { display: flex; align-items: center; gap: 16px; min-width: 0; }
.sb-team.away { flex-direction: row-reverse; text-align: right; }
.sb-team .nm { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-mid { text-align: center; min-width: 150px; }
.sb-score { font-size: 44px; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; display: flex; gap: 14px; justify-content: center; align-items: center; }
.sb-score .sep { color: var(--text-3); font-weight: 400; }
.sb-status { margin-top: 10px; font-size: 13px; }
.sb-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; color: var(--text-3); font-size: 12px; padding-top: 14px; border-top: 1px solid var(--line); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 12px 16px; color: var(--text-3); font-weight: 600; position: relative; white-space: nowrap; transition: color 0.2s; }
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--text); }
.tab::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform 0.3s var(--ease); }
.tab.is-active::after { transform: scaleX(1); }
.tabpane { animation: fade 0.35s var(--ease); }

.timeline { display: flex; flex-direction: column; gap: 2px; }
.tl-row { display: grid; grid-template-columns: 1fr 54px 1fr; align-items: center; gap: 12px; padding: 9px 0; }
.tl-row .min { text-align: center; font-weight: 700; color: var(--text-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.tl-ev { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tl-ev.home { justify-content: flex-end; text-align: right; }
.tl-ev.away { flex-direction: row; }
.tl-ev .who { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-ev .sub { color: var(--text-3); font-size: 12px; }
.ev-ico { width: 22px; height: 22px; display: grid; place-items: center; flex: none; font-size: 13px; }
.ev-card { width: 12px; height: 16px; border-radius: 2px; display: block; }
.ev-card.y { background: #f5c451; }
.ev-card.r { background: #ff3b4e; }
.ev-card.yr { background: linear-gradient(135deg, #f5c451 50%, #ff3b4e 50%); }
.tl-row.is-goal .who { color: #fff; }

.stat { padding: 10px 0; }
.stat__top { display: flex; align-items: center; justify-content: space-between; font-weight: 700; margin-bottom: 7px; font-variant-numeric: tabular-nums; }
.stat__top span:nth-child(2) { color: var(--text-2); font-weight: 500; font-size: 12px; }
.stat__bar { display: flex; gap: 4px; height: 5px; }
.stat__bar i { display: block; border-radius: 5px; transition: flex 0.7s var(--ease); }
.stat__bar i:first-child { background: var(--blue); }
.stat__bar i:last-child { background: var(--accent); }

.lineups { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.lu h4 { margin: 0 0 4px; font-size: 14px; display: flex; justify-content: space-between; }
.lu h4 small { color: var(--text-3); font-weight: 500; }
.lu .grp { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin: 14px 0 6px; font-weight: 600; }
.pl { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.pl .no { width: 24px; text-align: center; color: var(--text-3); font-weight: 700; font-variant-numeric: tabular-nums; }
.pl .nm { flex: 1; font-weight: 500; }
.pl .pos { color: var(--text-3); font-size: 11px; font-weight: 600; }

.comm { display: flex; flex-direction: column; }
.comm__row { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); color: var(--text-2); }
.comm__row:first-child { border-top: 0; }
.comm__row b { color: var(--text); font-variant-numeric: tabular-nums; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.info-card { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.info-card small { display: block; color: var(--text-3); font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 4px; font-weight: 600; }
.info-card b { font-weight: 600; }

.form-dots { display: inline-flex; gap: 4px; }
.fd { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: #0a0c10; }
.fd.W { background: var(--green); } .fd.D { background: #9aa4b6; } .fd.L { background: var(--accent); color: #fff; }

.empty {
  padding: 40px 20px; text-align: center; color: var(--text-3); background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius);
}
.empty b { display: block; color: var(--text-2); font-size: 15px; margin-bottom: 6px; }

.skeleton { border-radius: 12px; background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.sk-row { height: 56px; margin-bottom: 4px; }

/* ----------------------------------------------------------- Footer etc */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer__inner { max-width: 1440px; margin: 0 auto; padding: 18px 24px; display: flex; gap: 20px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.footer__note { margin: 0; color: var(--text-3); font-size: 12px; }
.providers { display: flex; gap: 8px; flex-wrap: wrap; }
.prov { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-2); padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; }
.prov.off { color: var(--text-3); }
.prov .dot.bad { background: var(--accent); animation: none; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--text); color: #0a0c10; padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: 13px;
  transition: all 0.35s var(--ease); z-index: 200; box-shadow: var(--shadow);
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

.modal-back { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); z-index: 100; display: grid; place-items: center; padding: 20px; animation: fade 0.2s; }
.modal { width: min(520px, 100%); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); animation: pop 0.25s var(--ease); }
.modal h3 { margin: 0 0 14px; font-size: 16px; }
.prov-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.prov-row:first-of-type { border-top: 0; }
.prov-row .grow { flex: 1; }
.prov-row small { color: var(--text-3); display: block; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 10px; font-weight: 600;
  background: var(--text); color: #0a0c10; transition: transform 0.15s, opacity 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn--ghost { background: rgba(255, 255, 255, 0.07); color: var(--text); }

/* -------------------------------------------------------------- Anim */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(55, 214, 122, 0.55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(55, 214, 122, 0); } }
@keyframes ping-red { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 78, 0.55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(255, 59, 78, 0); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes flash { 0% { background: rgba(245, 196, 81, 0.45); color: #fff; transform: scale(1.15); } 100% { background: transparent; transform: none; } }

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

/* ---------------------------------------------------------- Responsive */
@media (max-width: 1180px) {
  .grid-home, .watch { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
}
@media (max-width: 820px) {
  .topbar__inner { padding: 0 14px; gap: 12px; height: 56px; flex-wrap: nowrap; }
  .nav a { padding: 8px 10px; font-size: 13px; }
  .brand__name { display: none; }
  .status-btn #statusText { display: none; }
  .search__kbd { display: none; }
  .view { padding: 18px 14px 50px; }
  .mrow { grid-template-columns: 52px minmax(0, 1fr) auto minmax(0, 1fr) 14px; gap: 8px; padding: 10px 10px; }
  .mrow__ch { display: none; }
  .sb-team .nm { font-size: 15px; }
  .sb-score { font-size: 34px; }
  .sb-mid { min-width: 100px; }
  .scoreboard { padding: 18px 12px; gap: 10px; }
  .logo--xl { width: 46px; height: 46px; }
  .lineups { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav a[data-nav="table"] { display: none; }
  .cards { grid-template-columns: 1fr; }
  .mrow__name { font-size: 13px; }
}
