/* ============ Token warna ============ */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --line: #e6e8ec;
  --text: #0f1419;
  --text-2: #3d4450;
  --muted: #7a828e;
  --accent: #1A73E8;
  --accent-soft: rgba(26, 115, 232, .1);
  --on-accent: #ffffff;
  --home: #1A73E8;
  --away: #a3abb6;
  --win: #15a34a;
  --win-soft: rgba(21, 163, 74, .12);
  --draw: #7a828e;
  --draw-soft: rgba(122, 130, 142, .14);
  --loss: #e5484d;
  --loss-soft: rgba(229, 72, 77, .12);
  --live: #e5484d;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --radius: 16px;
  --radius-sm: 10px;
  --topbar-h: 56px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0e11;
    --surface: #15181d;
    --surface-2: #1d2127;
    --line: #262b32;
    --text: #eceef1;
    --text-2: #c3c8cf;
    --muted: #8a919c;
    --accent: #5AA2FF;
    --accent-soft: rgba(90, 162, 255, .14);
    --on-accent: #04203f;
    --home: #5AA2FF;
    --away: #5d6570;
    --win: #2fd16f;
    --win-soft: rgba(47, 209, 111, .14);
    --draw: #8a919c;
    --draw-soft: rgba(138, 145, 156, .16);
    --loss: #ff6369;
    --loss-soft: rgba(255, 99, 105, .14);
    --live: #ff6369;
    --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0e11;
  --surface: #15181d;
  --surface-2: #1d2127;
  --line: #262b32;
  --text: #eceef1;
  --text-2: #c3c8cf;
  --muted: #8a919c;
  --accent: #5AA2FF;
  --accent-soft: rgba(90, 162, 255, .14);
  --on-accent: #04203f;
  --home: #5AA2FF;
  --away: #5d6570;
  --win: #2fd16f;
  --win-soft: rgba(47, 209, 111, .14);
  --draw: #8a919c;
  --draw-soft: rgba(138, 145, 156, .16);
  --loss: #ff6369;
  --loss-soft: rgba(255, 99, 105, .14);
  --live: #ff6369;
  --shadow: none;
  color-scheme: dark;
}

/* ============ Dasar ============ */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 680px; margin: 0 auto; padding: 0 16px; }

/* ============ Topbar ============ */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}
.topbar-in { height: var(--topbar-h); display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand-logo { width: 30px; height: 30px; display: block; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  color: var(--text-2); transition: background .15s;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 20px; height: 20px; }

main { padding-bottom: 32px; min-height: 70vh; }
.foot { position: relative; display: flex; justify-content: flex-end; padding-top: 8px; padding-bottom: 28px; }
.src-btn {
  border: 0; background: none; padding: 4px 2px; font: inherit; font-size: 12px; color: var(--muted); cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line);
}
.src-btn:hover, .src-btn[aria-expanded="true"] { color: var(--text); }
.src-panel {
  position: absolute; right: 16px; bottom: 56px; z-index: 30; width: min(340px, calc(100vw - 32px));
  max-height: min(70vh, 480px); overflow-y: auto; padding: 14px 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0, 0, 0, .16);
  font-size: 13px; color: var(--text-2);
}
.src-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; color: var(--text); }
.src-x { border: 0; background: none; font-size: 18px; line-height: 1; color: var(--muted); cursor: pointer; padding: 2px 4px; }
.src-x:hover { color: var(--text); }
.src-list { list-style: none; margin: 0; padding: 0; }
.src-list li { padding: 6px 0; border-top: 1px solid var(--line); line-height: 1.45; }
.src-list li:first-child { border-top: 0; }
.src-list a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line); }
.src-list span { display: block; font-size: 12px; color: var(--muted); }
.src-sub { margin: 12px 0 2px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.src-foot { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

/* ============ Bagian menempel (strip tanggal + filter) ============ */
.sticky {
  position: sticky; top: var(--topbar-h); z-index: 20;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  margin: 0 -16px; padding: 4px 16px 10px;
}

.month { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 8px; }
.month strong { font-size: 20px; letter-spacing: -.02em; }
.month-tools { display: flex; gap: 4px; }
.pick { position: relative; }
.pick input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.pick input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }

.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.day {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 0 7px; border-radius: 14px; min-height: 64px;
  color: var(--text-2); transition: background .15s, color .15s;
}
.day:hover { background: var(--surface-2); }
.day small { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.day b { font-size: 17px; font-weight: 600; }
.day i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); opacity: 0; }
.day.has i { opacity: 1; }
.day.none b { color: var(--muted); font-weight: 400; }
.day.today small { color: var(--accent); font-weight: 600; }
.day.on { background: var(--text); color: var(--bg); }
.day.on small { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.day.on i { background: var(--bg); }

.toolbar { display: flex; gap: 8px; margin-top: 10px; }
.search {
  flex: 1; display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 0 12px; height: 42px; transition: border-color .15s;
}
.search:focus-within { border-color: var(--accent); }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; height: 100%; }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search .clear { color: var(--muted); width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; }
.search .clear:hover { background: var(--surface-2); }

.seg { display: flex; gap: 2px; margin-top: 10px; padding: 3px; background: var(--surface-2); border-radius: 12px; }
.seg-btn {
  flex: 1; height: 34px; border-radius: 10px; font-size: 13px; font-weight: 500; color: var(--muted);
  transition: background .15s, color .15s;
}
.seg-btn span { font-weight: 400; opacity: .7; margin-left: 2px; }
.seg-btn:hover { color: var(--text); }
.seg-btn.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
/* Baris chip yang bisa digeser */
.scroller { position: relative; margin-top: 10px; --fl: 0px; --fr: 0px; }
.scroller .chips {
  margin-top: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
}
.scroller.can-left { --fl: 36px; }
.scroller.can-right { --fr: 36px; }
.scroller.overflow .chips { cursor: grab; user-select: none; -webkit-user-select: none; }
.scroller .chips.dragging { cursor: grabbing; }
.scroller .chips.dragging .chip { cursor: grabbing; }
.scroll-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  color: var(--text); font-size: 18px; line-height: 1; padding-bottom: 2px;
  transition: border-color .15s;
}
.scroll-btn:hover { border-color: var(--muted); }
.scroll-btn.left { left: -6px; }
.scroll-btn.right { right: -6px; }
@media (hover: none) { .scroll-btn { display: none !important; } }
.chips { display: flex; gap: 6px; overflow-x: auto; margin-top: 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex: none;
  height: 34px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2);
  transition: background .15s, border-color .15s;
}
.chip:hover { border-color: var(--muted); }
.chip img { width: 16px; height: 16px; object-fit: contain; }
.chip span { color: var(--muted); font-weight: 400; }
.chip.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip.on span { color: color-mix(in srgb, var(--bg) 65%, transparent); }

/* ============ Grup & baris pertandingan ============ */
.group { margin-top: 18px; }
.group-head {
  display: flex; align-items: center; gap: 10px; padding: 0 4px 8px;
  font-size: 13px; font-weight: 600; color: var(--text-2);
}
.group-head img { width: 18px; height: 18px; object-fit: contain; }
.group-head .count { margin-left: auto; color: var(--muted); font-weight: 400; }
.list { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }

.row {
  display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 12px;
  padding: 12px 16px; min-height: 64px; transition: background .12s;
}
.row + .row { border-top: 1px solid var(--line); }
.row:hover { background: var(--surface-2); }
.row-time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1.25; }
.row-time b { display: block; color: var(--text); font-weight: 600; }
.row-time .live { color: var(--live); font-weight: 600; display: flex; align-items: center; gap: 5px; }
.row-teams { display: grid; gap: 4px; min-width: 0; }
.rt { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 10px; min-width: 0; }
.rt .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt .sc { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 16px; text-align: right; }
.row.done .rt.lose { color: var(--muted); }
.row.done .rt.win .nm { font-weight: 600; }
.row.is-live .sc { color: var(--live); }
.fav-mark { color: #f5a524; font-size: 11px; margin-left: 4px; }
.row-date { font-size: 12px; color: var(--muted); }

.crest { width: 20px; height: 20px; object-fit: contain; flex: none; }
.crest-empty { display: inline-block; border-radius: 50%; background: var(--surface-2); }

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); flex: none; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 50%, transparent); } 50% { box-shadow: 0 0 0 5px transparent; } }

/* ============ Kosong / pesan ============ */
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty .big { font-size: 34px; margin-bottom: 6px; }
.empty p { margin: 4px 0 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 42px; padding: 0 18px; border-radius: 12px; font-weight: 600; font-size: 14px;
  background: var(--accent); color: var(--on-accent); transition: filter .15s;
}
.btn:hover { filter: brightness(1.05); }
.btn.ghost { background: var(--surface-2); color: var(--text); }
.notice { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-top: 16px; }
.notice h2 { margin: 0 0 8px; font-size: 18px; }
.notice ol { padding-left: 20px; margin: 8px 0 0; }
.notice li { margin: 6px 0; }
.notice a { color: var(--accent); text-decoration: underline; }
.notice code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: .9em; }

/* ============ Skeleton ============ */
.sk { background: var(--surface-2); border-radius: 8px; position: relative; overflow: hidden; }
.sk::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 60%, transparent), transparent);
  transform: translateX(-100%); animation: shimmer 1.3s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-row { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 14px 16px; }
.sk-row + .sk-row { border-top: 1px solid var(--line); }
.sk-line { height: 12px; margin: 4px 0; }

/* ============ Detail: hero ============ */
.back {
  display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 10px 0 6px; margin: 4px 0 8px -6px;
  border-radius: 10px; color: var(--text-2); font-size: 14px; font-weight: 500;
}
.back:hover { background: var(--surface-2); }
.back svg { width: 18px; height: 18px; }
.hero { text-align: center; padding: 8px 0 20px; }
.hero-comp { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.hero-comp img { width: 18px; height: 18px; object-fit: contain; }
.hero-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 8px; }
.hero-team { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.hero-team .crest-lg { width: 64px; height: 64px; object-fit: contain; }
.hero-team strong { font-size: 15px; font-weight: 600; line-height: 1.3; }
.hero-mid { padding-top: 10px; min-width: 110px; }
.hero-score { font-size: 40px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.hero-score i { font-style: normal; color: var(--muted); font-weight: 400; margin: 0 6px; }
.hero-kick { font-size: 30px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.hero-status { margin-top: 8px; font-size: 13px; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; }
.hero-status.live { color: var(--live); font-weight: 600; }
.hero-meta { margin-top: 16px; font-size: 13px; color: var(--muted); }
.star {
  display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; color: var(--muted); border: 1px solid var(--line); transition: all .15s;
}
.star:hover { color: var(--text); border-color: var(--muted); }
.star.on { color: #c58300; border-color: #f5a52455; background: #f5a52414; }

/* ============ Detail: tab ============ */
.tabs {
  position: sticky; top: var(--topbar-h); z-index: 20;
  display: flex; gap: 4px; margin: 0 -16px; padding: 8px 16px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 1; white-space: nowrap; height: 38px; padding: 0 14px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: var(--muted); transition: background .15s, color .15s;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); border: 1px solid var(--line); }
.panel { animation: fade .18s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-top: 12px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.card-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.card-head .link { font-size: 13px; color: var(--accent); font-weight: 500; }
.card-head small { font-size: 12px; color: var(--muted); }

/* Perbandingan */
.vs-head { display: grid; grid-template-columns: 1fr 1fr; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.vs-head span { display: flex; align-items: center; gap: 6px; }
.vs-head span:last-child { justify-content: flex-end; }
.cmp { padding: 10px 0; }
.cmp + .cmp { border-top: 1px solid var(--line); }
.cmp-top { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; font-variant-numeric: tabular-nums; }
.cmp-top b { font-weight: 600; font-size: 15px; }
.cmp-top b:last-child { text-align: right; }
.cmp-top b.best { color: var(--accent); }
.cmp-top span { text-align: center; font-size: 13px; color: var(--muted); }
.bars { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; display: flex; }
.bar.l { justify-content: flex-end; }
.bar i { display: block; height: 100%; border-radius: 99px; transition: width .4s ease; }
.bar.l i { background: var(--home); }
.bar.r i { background: var(--away); }

/* Form */
.badges { display: flex; gap: 4px; }
.fb {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px;
  font-size: 11px; font-weight: 700;
}
.fb.M { background: var(--win-soft); color: var(--win); }
.fb.S { background: var(--draw-soft); color: var(--draw); }
.fb.K { background: var(--loss-soft); color: var(--loss); }
.form-sum { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 8px 0; }
.form-sum + .form-sum { border-top: 1px solid var(--line); }
.form-sum .who { display: flex; align-items: center; gap: 8px; font-weight: 500; min-width: 0; }
.form-sum .who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.form-team { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 4px; }
.form-list { list-style: none; margin: 0 0 8px; padding: 0; }
.form-list a { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; min-height: 52px; }
.form-list li + li a { border-top: 1px solid var(--line); }
.form-list .opp { display: flex; flex-direction: column; min-width: 0; }
.form-list .opp b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-list .opp small { color: var(--muted); font-size: 12px; }
.form-list .res { font-weight: 600; font-variant-numeric: tabular-nums; }
.form-list a:hover .opp b { text-decoration: underline; text-underline-offset: 2px; }
.split + .split { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 6px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .fb { width: 18px; height: 18px; font-size: 10px; border-radius: 5px; }

/* H2H */
.h2h-sum { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin-bottom: 12px; }
.h2h-sum b { display: block; font-size: 28px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.h2h-sum span { font-size: 12px; color: var(--muted); }
.h2h-sum div:first-child b { color: var(--home); }
.h2h-bar { display: flex; gap: 3px; height: 6px; }
.h2h-bar i { display: block; border-radius: 99px; min-width: 0; }
.h2h-bar .h { background: var(--home); }
.h2h-bar .d { background: var(--draw); opacity: .5; }
.h2h-bar .a { background: var(--away); }
.h2h-goals { text-align: center; font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.h2h-list { margin-top: 14px; border-top: 1px solid var(--line); }
.h2h-list .row { padding-left: 0; padding-right: 0; grid-template-columns: 64px 1fr; }
.h2h-list .row:hover { background: none; }
.h2h-list .row:hover .nm { text-decoration: underline; text-underline-offset: 2px; }

/* Klasemen */
.table-scroll { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
.standings { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.standings th { color: var(--muted); font-weight: 500; font-size: 12px; padding: 0 6px 8px; text-align: center; }
.standings td { padding: 10px 6px; text-align: center; border-top: 1px solid var(--line); white-space: nowrap; }
.standings .l { text-align: left; }
.standings td.l { display: flex; align-items: center; gap: 10px; }
.standings td.l .crest { width: 18px; height: 18px; }
.standings tr.hl td { background: var(--accent-soft); font-weight: 600; }
.standings tr.hl td:first-child { border-radius: 8px 0 0 8px; }
.standings tr.hl td:last-child { border-radius: 0 8px 8px 0; }
.standings tr.gap td { color: var(--muted); padding: 2px; border-top: 0; letter-spacing: 2px; }
.standings .pts { font-weight: 700; }
.group-label { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.note { font-size: 12px; color: var(--muted); margin: 10px 0 0; }

/* ============ Responsif & aksesibilitas ============ */
@media (max-width: 420px) {
  body { font-size: 14px; }
  .row { grid-template-columns: 48px 1fr; padding: 12px 14px; }
  .hero-team .crest-lg { width: 52px; height: 52px; }
  .hero-score { font-size: 34px; }
  .hero-kick { font-size: 26px; }
  .hero-mid { min-width: 92px; }
  .hero-team strong { font-size: 14px; }
  .day b { font-size: 16px; }
  .tab { padding: 0 10px; font-size: 13px; }
  .card { padding: 16px; }
  .table-scroll { margin: 0 -16px; padding: 0 16px; }
  .stat-grid b { font-size: 17px; }
  .scorers li { grid-template-columns: 24px 1fr 44px; }
  .scorers .extra { display: none; }
}
/* ============ Tautan tim/liga ============ */
.tlink { color: inherit; }
.tlink:hover { text-decoration: underline; text-underline-offset: 3px; }
.hero-team .tlink { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero-team .tlink:hover { text-decoration: none; }
.hero-team .tlink:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.form-team .tlink, .standings td.l .tlink, .scorers .tlink { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.standings td.l .tlink span { overflow: hidden; text-overflow: ellipsis; }
.link { color: var(--accent); font-weight: 500; }

/* ============ Aksi di hero ============ */
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pill-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--text-2); background: var(--surface); border: 1px solid var(--line);
  transition: border-color .15s, color .15s;
}
.pill-btn:hover { color: var(--text); border-color: var(--muted); }
.pill-btn svg { width: 16px; height: 16px; }
.hero-actions .star { height: 36px; padding: 0 14px; font-size: 13px; }

/* ============ Toast & offline ============ */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 50;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 12px;
  background: var(--text); color: var(--bg); font-size: 14px; font-weight: 500; text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18); transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.offline {
  text-align: center; font-size: 12px; font-weight: 500; padding: 6px 16px;
  background: var(--surface-2); color: var(--text-2); border-bottom: 1px solid var(--line);
}

.announce {
  text-align: center; font-size: 13px; font-weight: 500; padding: 8px 16px; line-height: 1.45;
  background: var(--accent-soft, rgba(26, 115, 232, .1)); color: var(--text); border-bottom: 1px solid var(--line);
}
.announce.warning { background: rgba(245, 165, 36, .16); }
.top-link {
  display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--text);
}
.top-link:hover, .top-link.on { background: var(--surface-2); }

/* ============ Berita ============ */
.news-list { display: grid; gap: 12px; }
.news-item { display: grid; grid-template-columns: 1fr 120px; gap: 14px; align-items: start; color: inherit; }
.news-item:hover h3 { color: var(--accent); }
.news-item.no-img { grid-template-columns: 1fr; }
.news-item h3 { margin: 4px 0 6px; font-size: 16px; line-height: 1.35; letter-spacing: -.01em; }
.news-item p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.news-item img { width: 120px; height: 84px; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.news-meta { font-size: 12px; color: var(--muted); }
.news-meta b { color: var(--accent); font-weight: 600; }
.article h1 { font-size: 24px; letter-spacing: -.02em; line-height: 1.3; margin: 6px 0 10px; }
.article .lead { font-size: 16px; color: var(--text); line-height: 1.6; margin: 0 0 16px; }
.article p { line-height: 1.75; color: var(--text-2); margin: 0 0 14px; font-size: 15px; }
.article .cover { width: 100%; max-height: 380px; object-fit: cover; border-radius: 14px; margin-bottom: 6px; }
.article .credit { font-size: 12px; color: var(--muted); margin: 0 0 14px; }
@media (max-width: 520px) {
  .news-item { grid-template-columns: 1fr 88px; }
  .news-item img { width: 88px; height: 66px; }
  .article h1 { font-size: 21px; }
}

/* ============ Peluang menang ============ */
.prob-labels { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; margin-bottom: 10px; }
.prob-labels div { display: flex; flex-direction: column; min-width: 0; }
.prob-labels div:nth-child(2) { align-items: center; }
.prob-labels div:last-child { align-items: flex-end; text-align: right; }
.prob-labels b { font-size: 24px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.prob-labels div:first-child b { color: var(--home); }
.prob-labels span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.prob-bar { display: flex; gap: 3px; height: 8px; }
.prob-bar i { display: block; border-radius: 99px; min-width: 4px; }
.prob-bar .h { background: var(--home); }
.prob-bar .d { background: var(--draw); opacity: .5; }
.prob-bar .a { background: var(--away); }
.prob-meta { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.prob-meta b { color: var(--text); font-weight: 600; }
.how { margin-top: 10px; font-size: 13px; color: var(--muted); }
.how summary { cursor: pointer; color: var(--accent); font-weight: 500; width: fit-content; }
.how p { margin: 8px 0 0; line-height: 1.6; }

/* ============ Halaman liga ============ */
.page-head { display: flex; align-items: center; gap: 14px; margin: 4px 0 12px; }
.page-head h1 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.page-head p { margin: 2px 0 0; font-size: 13px; }
.page-emblem { width: 48px; height: 48px; object-fit: contain; }
:root[data-theme="dark"] .page-emblem { background: #fff; border-radius: 10px; padding: 4px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .page-emblem { background: #fff; border-radius: 10px; padding: 4px; } }
.center { text-align: center; }
.scorers { list-style: none; margin: -6px 0; padding: 0; }
.scorers li { display: grid; grid-template-columns: 28px 1fr auto 48px; align-items: center; gap: 10px; padding: 10px 0; }
.scorers li + li { border-top: 1px solid var(--line); }
.scorers .rank { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; text-align: center; }
.scorers li:nth-child(-n+3) .rank { color: var(--accent); font-weight: 700; }
.scorers .who { display: flex; flex-direction: column; min-width: 0; }
.scorers .who b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scorers .who small { font-size: 12px; color: var(--muted); min-width: 0; }
.scorers .who .crest { width: 16px; height: 16px; }
.scorers .extra { font-size: 12px; color: var(--muted); text-align: right; line-height: 1.35; }
.scorers .goals { font-size: 20px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; line-height: 1; }
.scorers .goals small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 2px; }

/* ============ Halaman tim ============ */
.crest-xl { width: 88px; height: 88px; object-fit: contain; margin: 0 auto; }
.team-name { margin: 14px 0 0; font-size: 22px; letter-spacing: -.02em; }
.comp-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.comp-chips .chip { height: 30px; font-size: 12px; }
.muted-chip { color: var(--muted); cursor: default; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 8px; }
.stat-grid b { display: block; font-size: 20px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-grid b small { font-size: 12px; font-weight: 400; color: var(--muted); }
.stat-grid span { font-size: 12px; color: var(--muted); }
.card-head .badges .fb { width: 20px; height: 20px; font-size: 10px; border-radius: 6px; }

/* ============ Akun: tombol di topbar ============ */
.top-actions { display: flex; align-items: center; gap: 6px; }
.acct {
  display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 14px;
  border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--text); color: var(--bg);
  transition: filter .15s;
}
.acct:hover { filter: brightness(1.15); }
.acct.avatar { width: 36px; padding: 0; background: var(--accent); color: var(--on-accent); font-size: 15px; position: relative; }
.acct.avatar.unverified::after {
  content: ""; position: absolute; top: 0; right: 0; width: 10px; height: 10px; border-radius: 50%;
  background: #f5a524; border: 2px solid var(--bg);
}

/* ============ Akun: form ============ */
.auth { max-width: 400px; margin: 24px auto 0; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 28px 24px; }
.auth-card h1 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.02em; }
.auth-sub { margin: 0 0 22px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.auth-sub b { color: var(--text); }
.auth-alt { text-align: center; font-size: 14px; color: var(--muted); margin-top: 18px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.input-wrap { position: relative; }
.field input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input[aria-invalid="true"] { border-color: var(--loss); box-shadow: 0 0 0 3px var(--loss-soft); }
.field input[type="password"], .field .input-wrap:has(.peek) input { padding-right: 46px; }
.peek { position: absolute; right: 4px; top: 4px; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); }
.peek:hover { background: var(--surface-2); color: var(--text); }
.peek[aria-pressed="true"] { color: var(--accent); }
.peek svg { width: 18px; height: 18px; }
.hint { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
.form-row { display: flex; justify-content: flex-end; margin: -6px 0 16px; }
.small { font-size: 13px; }
.form-error {
  background: var(--loss-soft); color: var(--loss); border-radius: 10px; padding: 10px 12px;
  font-size: 13px; font-weight: 500; margin-bottom: 14px;
}
.btn.block { display: flex; width: 100%; height: 46px; }
.btn:disabled { opacity: .6; cursor: progress; }
.dev-note { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; font-size: 12px; color: var(--text-2); margin: 0 0 16px; line-height: 1.5; }

/* ============ Akun: profil ============ */
.profile { text-align: center; padding: 16px 0 8px; }
.avatar-lg {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font-size: 30px; font-weight: 700;
}
.profile h1 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.profile p { margin: 4px 0; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; margin: 8px 0; }
.badge.ok { background: var(--win-soft); color: var(--win); }
.verify-box { text-align: left; background: #f5a5241a; border: 1px solid #f5a52455; border-radius: 14px; padding: 14px; margin: 12px 0; font-size: 13px; }
.verify-box p { margin: 0 0 10px; }
.verify-box .dev-note { margin: 10px 0 0; }
.fav-list { list-style: none; margin: 0; padding: 0; }
.fav-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; }
.fav-list li + li { border-top: 1px solid var(--line); }
.fav-list .tlink { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.icon-btn.sm { width: 32px; height: 32px; border-radius: 8px; color: var(--muted); }
.card form .btn { margin-top: 2px; }
.danger summary { cursor: pointer; font-weight: 600; color: var(--loss); }
.danger[open] summary { margin-bottom: 8px; }
.danger-btn { background: var(--loss); color: #fff; }
main > .btn.block { margin-top: 12px; }

/* ============ Live line & kejadian ============ */
/* Badge LIVE di kotak laga */
.live-badge {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px 0 7px; border-radius: 999px;
  background: var(--live); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; line-height: 1;
}
.live-badge .dot { width: 6px; height: 6px; background: #fff; animation: pulse-white 1.6s ease-in-out infinite; }
@keyframes pulse-white { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.live-sub { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--live); font-variant-numeric: tabular-nums; }
.row.is-live { box-shadow: inset 3px 0 0 var(--live); background: color-mix(in srgb, var(--live) 4%, var(--surface)); }
.row.is-live:hover { background: color-mix(in srgb, var(--live) 8%, var(--surface)); }
.row.is-live .sc { color: var(--live); }
.hero-status.live { flex-direction: column; gap: 0; }
.hero-status.live .live-badge { height: 24px; font-size: 12px; }
.events { list-style: none; margin: 0; padding: 0; }
.events li { display: grid; grid-template-columns: 34px 22px 1fr; align-items: baseline; gap: 6px; padding: 8px 0; font-size: 14px; }
.events li + li { border-top: 1px solid var(--line); }
.ev-min { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; text-align: right; }

/* ============ Konten redaksi ============ */
.editorial h4 { margin: 18px 0 6px; font-size: 14px; font-weight: 600; }
.editorial p { margin: 0 0 10px; line-height: 1.65; color: var(--text-2); }
.editorial .lead { color: var(--text); font-size: 15px; }
.ed-headline { font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--text) !important; margin-bottom: 8px !important; }
.ed-note { font-size: 12px !important; color: var(--muted) !important; margin-top: 14px !important; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.col-title { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text) !important; margin-bottom: 6px !important; }
.absences { list-style: none; margin: 0; padding: 0; }
.absences li { display: flex; flex-direction: column; padding: 7px 0; font-size: 14px; }
.absences li + li { border-top: 1px solid var(--line); }
.absences span { font-size: 12px; color: var(--muted); }
.facts { margin: 0; padding-left: 18px; color: var(--text-2); }
.facts li { margin: 5px 0; line-height: 1.55; }
.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; margin: 12px 0 4px; }
.kv dt { font-size: 12px; color: var(--muted); }
.kv dd { margin: 2px 0 0; font-weight: 500; font-size: 14px; }
.sources { margin-top: 12px; font-size: 13px; }
.sources summary { cursor: pointer; color: var(--accent); font-weight: 500; width: fit-content; }
.sources ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.sources li { margin: 4px 0; line-height: 1.5; }
.sources a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 520px) { .two-col, .kv { grid-template-columns: 1fr; } }

/* Logo kompetisi kadang gelap: beri alas putih tipis di mode gelap */
:root[data-theme="dark"] :is(.chip, .group-head, .hero-comp) img { background: #fff; border-radius: 4px; padding: 1px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) :is(.chip, .group-head, .hero-comp) img { background: #fff; border-radius: 4px; padding: 1px; }
}
@media (max-width: 480px) { .standings .opt { display: none; } }
@media (max-width: 340px) { .standings .opt2 { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.article .actions-row { display: flex; justify-content: flex-end; margin-top: 16px; }

/* ============ Fitur terkunci (member / premium) ============ */
.ico-lock { width: 15px; height: 15px; vertical-align: -2px; margin-right: 6px; }
.card-head h3 > svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; }
.card.locked { position: relative; overflow: hidden; }
.lock-ghost { display: grid; gap: 10px; padding: 4px 0 2px; filter: blur(3px); opacity: .55; }
.lock-ghost i { display: block; height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--accent) 0 38%, var(--line) 38% 62%, var(--text-2) 62%); }
.lock-ghost i:nth-child(2) { width: 82%; }
.lock-ghost i:nth-child(3) { width: 64%; }
.lock-cta { text-align: center; margin-top: 14px; }
.lock-cta p, .lock-inline p { margin: 0 0 12px; font-size: 14px; color: var(--text-2); line-height: 1.55; }
.lock-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lock-actions .btn { min-width: 180px; justify-content: center; background: var(--accent); color: var(--on-accent, #fff); }
.lock-soon { font-size: 13px; font-weight: 600; color: var(--muted); }
.lock-inline { margin: 16px 0 4px; padding: 14px; border-radius: 12px; background: var(--surface-2); text-align: center; }
.lock-inline b { display: block; margin-bottom: 6px; font-size: 14px; }
.tier-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.tier-tag.premium { background: rgba(245, 165, 36, .18); color: #b26b00; }
.tier-tag.free { display: none; }

/* ============ Peringatan laga (halaman akun) ============ */
.opt-title { margin: 14px 0 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.opt-row { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; font-size: 14px; cursor: pointer; }
.opt-row input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--accent); flex: none; }
.opt-row input:disabled + span { opacity: .5; }
#alerts-card .btn { margin-top: 10px; }