:root {
    --bg:        #0d1117;
    --panel:     #161b22;
    --row:       #161b22;
    --row-alt:   #1b2129;
    --row-hover: #21282f;
    --border:    #262d38;
    --text:      #e6edf3;
    --muted:     #8b98a9;
    --green:     #1f9d57;
    --green-br:  #2ee089;
    --live:      #ff4d4f;
    --amber:     #f0a830;
    --radius:    8px;
    --mono:      "JetBrains Mono", ui-monospace, monospace;
    --sans:      "Barlow Semi Condensed", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 40px;
}

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 14px; }
.hidden { display: none !important; }

/* ---------- Topbar ---------- */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: linear-gradient(180deg, #11161d, #0d1117);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(6px);
}
.topbar-inner {
    display: flex; align-items: center; gap: 18px;
    height: 54px;
}
.brand {
    display: flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: 22px; letter-spacing: .5px;
    color: var(--text); text-decoration: none; text-transform: uppercase;
}
.brand-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--green-br); box-shadow: 0 0 10px var(--green-br);
}
.tabs { display: flex; gap: 4px; flex: 1; }
.tab {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 6px;
    color: var(--muted); text-decoration: none; font-weight: 600;
    text-transform: uppercase; font-size: 14px; letter-spacing: .4px;
    transition: background .15s, color .15s;
}
.tab:hover { color: var(--text); background: var(--row-hover); }
.tab.active { color: var(--text); background: var(--row-hover); box-shadow: inset 0 -2px 0 var(--green-br); }
.live-badge {
    display: none;
    background: var(--live); color: #fff; font-family: var(--mono);
    font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 10px;
    min-width: 18px; text-align: center;
}
.status-meter {
    display: flex; align-items: center; gap: 7px;
    color: var(--muted); font-size: 12px; font-family: var(--mono);
}
.pulse {
    width: 8px; height: 8px; border-radius: 50%; background: var(--green-br);
    animation: pulse 1.6s infinite;
}
@keyframes pulse {
    0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(46,224,137,.5); }
    50%     { opacity: .5; box-shadow: 0 0 0 5px rgba(46,224,137,0); }
}

/* ---------- Toolbar ---------- */
.toolbar {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
    justify-content: space-between; margin: 16px 0;
}
.search-box { flex: 1; min-width: 200px; }
.search-box input {
    width: 100%; padding: 9px 12px; border-radius: 6px;
    background: var(--panel); border: 1px solid var(--border);
    color: var(--text); font-family: var(--sans); font-size: 15px;
}
.search-box input:focus { outline: none; border-color: var(--green); }
.filters { display: flex; gap: 6px; }
.chip {
    padding: 7px 13px; border-radius: 20px; cursor: pointer;
    background: var(--panel); border: 1px solid var(--border);
    color: var(--muted); font-family: var(--sans); font-weight: 600;
    font-size: 13px; text-transform: uppercase; letter-spacing: .3px;
    transition: all .15s;
}
.chip:hover { color: var(--text); border-color: #3a4452; }
.chip.active { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- Board / Leagues ---------- */
.league-group { margin-bottom: 14px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.league-head {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 13px; cursor: pointer; user-select: none;
    background: #11161d; border-bottom: 1px solid var(--border);
}
.league-flag { width: 18px; height: 13px; object-fit: cover; border-radius: 2px; background: var(--border); }
.league-country { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
.league-name { font-weight: 700; font-size: 15px; }
.league-count { margin-left: auto; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.league-caret { color: var(--muted); transition: transform .2s; }
.league-group.collapsed .league-caret { transform: rotate(-90deg); }
.league-group.collapsed .league-body { display: none; }

/* ---------- Match Row ---------- */
.match-row {
    display: grid;
    grid-template-columns: 56px 1fr 54px 1fr;
    align-items: center; gap: 8px;
    padding: 8px 13px; cursor: pointer; text-decoration: none; color: var(--text);
    border-bottom: 1px solid rgba(38,45,56,.5);
    transition: background .12s;
}
.match-row:last-child { border-bottom: none; }
.match-row:nth-child(even) { background: var(--row-alt); }
.match-row:hover { background: var(--row-hover); }

.m-status { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: center; }
.m-status .min { color: var(--live); font-weight: 700; }
.m-status .min::after { content: "'"; }
.m-status.ft { color: var(--muted); }

.m-home { text-align: right; font-weight: 500; }
.m-away { text-align: left;  font-weight: 500; }
.m-team.win { font-weight: 700; }

.m-score {
    font-family: var(--mono); font-weight: 700; font-size: 16px;
    text-align: center; letter-spacing: 1px;
    padding: 2px 0; border-radius: 4px; background: rgba(0,0,0,.25);
}
.match-row.live .m-score { color: var(--green-br); }
.match-row.upcoming .m-score { color: var(--muted); font-size: 13px; font-weight: 500; background: none; }

/* flash saat skor berubah */
@keyframes scoreflash {
    0% { background: var(--amber); color: #111; }
    100% { background: rgba(0,0,0,.25); }
}
.m-score.flash { animation: scoreflash 1.4s ease-out; }

/* ---------- Match detail ---------- */
.back-link { display: inline-block; margin: 16px 0 10px; color: var(--muted); text-decoration: none; font-weight: 600; }
.back-link:hover { color: var(--text); }
.match-hero {
    background: var(--panel); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px; text-align: center;
}
.match-hero.is-live { border-color: rgba(255,77,79,.4); }
.match-league { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px; }
.match-score-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.team-block .team-name { font-size: 22px; font-weight: 700; }
.score-block { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.score-block .score { font-family: var(--mono); font-size: 34px; font-weight: 700; }
.score-block .vs { font-size: 24px; color: var(--muted); font-weight: 700; }
.status-line { font-size: 13px; color: var(--muted); }
.status-line .min { color: var(--live); font-weight: 700; font-family: var(--mono); }
.match-tabs { display: flex; gap: 4px; margin: 18px 0 0; border-bottom: 1px solid var(--border); }
.match-tab { padding: 9px 14px; font-weight: 600; text-transform: uppercase; font-size: 13px; cursor: pointer; color: var(--muted); }
.match-tab.active { color: var(--text); box-shadow: inset 0 -2px 0 var(--green-br); }
.match-tab.disabled { opacity: .4; cursor: not-allowed; }
.panel { background: var(--panel); border: 1px solid var(--border); border-top: none;
         border-radius: 0 0 var(--radius) var(--radius); padding: 18px; color: var(--muted); }

/* ---------- Misc ---------- */
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.footer { color: var(--muted); font-size: 12px; text-align: center; margin-top: 30px; }
.skeleton-wrap { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.skeleton-row { height: 38px; border-radius: 6px;
    background: linear-gradient(90deg, var(--panel) 25%, var(--row-hover) 50%, var(--panel) 75%);
    background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

@media (max-width: 560px) {
    .match-row { grid-template-columns: 46px 1fr 48px 1fr; font-size: 14px; }
    .brand { font-size: 18px; }
    .status-meter span:not(.pulse) { display: none; }
    .team-block .team-name { font-size: 18px; }
}

/* ---------- Probability bar di baris daftar ---------- */
.row-prob { grid-column: 1 / -1; display: flex; height: 4px; margin-top: 6px;
    border-radius: 3px; overflow: hidden; background: #0a0d12; }
.row-prob .pb { height: 100%; }
.row-prob .pb.home { background: var(--green); }
.row-prob .pb.draw { background: #4a5666; }
.row-prob .pb.away { background: #c9893f; }

/* ---------- Odds panel (halaman detail) ---------- */
.odds-loading, .odds-empty { color: var(--muted); text-align: center; padding: 18px 0; }
.odds-note { color: var(--muted); font-size: 12px; margin-bottom: 14px; line-height: 1.5; }
.mkt { margin-bottom: 16px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.mkt-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px;
    background: #11161d; border-bottom: 1px solid var(--border); }
.mkt-name { font-weight: 700; text-transform: uppercase; letter-spacing: .4px; font-size: 14px; }
.mkt-line { font-family: var(--mono); font-size: 13px; color: var(--text); }
.line-moved { color: var(--amber); font-size: 12px; }
.mkt-books { margin-left: auto; color: var(--muted); font-size: 11px; font-family: var(--mono); }

.o-row { display: grid; grid-template-columns: 130px 1fr 92px; align-items: center;
    gap: 12px; padding: 9px 12px; border-bottom: 1px solid rgba(38,45,56,.5); }
.o-row:last-child { border-bottom: none; }
.o-sel { font-weight: 600; }
.o-bar { position: relative; height: 18px; background: #0a0d12; border-radius: 4px; overflow: hidden; }
.o-bar-fill { position: absolute; left: 0; top: 0; height: 100%; background: linear-gradient(90deg, var(--green), var(--green-br)); opacity: .35; }
.o-prob { position: absolute; left: 8px; top: 0; line-height: 18px; font-family: var(--mono); font-size: 12px; color: var(--text); }
.o-price { font-family: var(--mono); font-weight: 700; font-size: 15px; text-align: right; }
.o-row.down .o-price { color: var(--green-br); }
.o-row.up .o-price { color: var(--live); }
.ar { font-size: 10px; }
.ar.down { color: var(--green-br); }
.ar.up { color: var(--live); }
.ar.flat { color: var(--muted); }
.o-open { grid-column: 3; text-align: right; font-size: 11px; color: var(--muted); font-family: var(--mono); }

@media (max-width: 560px) {
    .o-row { grid-template-columns: 96px 1fr 78px; gap: 8px; }
    .o-sel { font-size: 13px; }
}

/* ---------- Statistik ---------- */
.st-head { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 14px; padding: 0 4px; }
.st-row { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; gap: 10px; margin-bottom: 12px; }
.st-val { font-family: var(--mono); font-weight: 700; font-size: 15px; text-align: center; }
.st-mid { text-align: center; }
.st-label { font-size: 12px; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .3px; }
.st-bar { display: flex; height: 7px; border-radius: 4px; overflow: hidden; background: #0a0d12; }
.st-bar .st-h { background: var(--green); }
.st-bar .st-a { background: #c9893f; }

/* ---------- Lineup / Lapangan ---------- */
.lineup-form { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
    font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.lineup-form b { color: var(--text); }
.pitch { position: relative; width: 100%; max-width: 460px; margin: 0 auto 18px; aspect-ratio: 2 / 3;
    background: linear-gradient(180deg, #15803d, #166534); border: 2px solid rgba(255,255,255,.25);
    border-radius: 8px; overflow: hidden; }
.pitch-line.mid { position: absolute; top: 50%; left: 0; right: 0; height: 2px; background: rgba(255,255,255,.25); }
.pitch-circle { position: absolute; top: 50%; left: 50%; width: 80px; height: 80px; transform: translate(-50%,-50%);
    border: 2px solid rgba(255,255,255,.25); border-radius: 50%; }
.pl { position: absolute; transform: translate(-50%,-50%); width: 56px; text-align: center; }
.pl-dot { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
    border-radius: 50%; font-family: var(--mono); font-weight: 700; font-size: 12px; color: #fff;
    border: 2px solid rgba(255,255,255,.85); }
.pl-dot.h { background: #0d6e3a; }
.pl-dot.a { background: #b9762f; }
.pl-name { display: block; font-size: 10px; color: #fff; margin-top: 2px; text-shadow: 0 1px 2px rgba(0,0,0,.7);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.subs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.subs-grid h4 { font-size: 13px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; letter-spacing: .3px; }
.subs { list-style: none; }
.subs li { padding: 5px 0; border-bottom: 1px solid rgba(38,45,56,.5); font-size: 14px; }
.subs li em { color: var(--muted); font-style: normal; font-size: 11px; float: right; }
.sub-num { display: inline-block; min-width: 22px; font-family: var(--mono); color: var(--muted); }

/* ---------- H2H ---------- */
.h2h-sum { margin-bottom: 16px; }
.h2h-counts { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 6px; flex-wrap: wrap; gap: 4px; }
.h2h-counts .hw { color: var(--green-br); }
.h2h-counts .aw { color: #d59a52; }
.h2h-counts .dw { color: var(--muted); }
.h2h-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: #0a0d12; }
.h2h-bar .hw { background: var(--green); }
.h2h-bar .dw { background: #4a5666; }
.h2h-bar .aw { background: #c9893f; }
.h2h-row { display: grid; grid-template-columns: 84px 1fr 56px 1fr; align-items: center; gap: 8px;
    padding: 9px 4px; border-bottom: 1px solid rgba(38,45,56,.5); }
.h2h-date { font-size: 11px; color: var(--muted); font-family: var(--mono); }
.h2h-t { font-size: 14px; }
.h2h-t.win { font-weight: 700; color: var(--green-br); }
.h2h-score { font-family: var(--mono); font-weight: 700; text-align: center; background: rgba(0,0,0,.25); border-radius: 4px; padding: 2px 0; }
.h2h-lg { grid-column: 1 / -1; font-size: 11px; color: var(--muted); margin-top: -2px; }

@media (max-width: 560px) {
    .subs-grid { grid-template-columns: 1fr; }
    .pl { width: 44px; }
    .pl-dot { width: 22px; height: 22px; font-size: 11px; }
}

/* ====================================================
   FASE 4 — Klasemen + polish layout
   ==================================================== */

/* --- Pelebaran kontainer; papan 1 kolom (vertikal) --- */
.wrap { max-width: 1180px; }
/* --- Picker liga (klasemen) --- */
.league-picker { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }

/* --- Header & tabel klasemen --- */
.standings-wrap { margin-top: 6px; }
.std-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.std-head b { font-size: 18px; }
.std-head .muted, .muted { color: var(--muted); font-size: 13px; }
.grp-name { font-weight: 700; color: var(--amber); margin: 14px 0 6px; text-transform: uppercase; font-size: 13px; }

.std-table { width: 100%; border-collapse: collapse; font-size: 14px;
    border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.std-table th { background: #11161d; color: var(--muted); font-weight: 600; text-transform: uppercase;
    font-size: 11px; letter-spacing: .3px; padding: 9px 6px; text-align: center; }
.std-table td { padding: 8px 6px; text-align: center; font-family: var(--mono);
    border-top: 1px solid rgba(38,45,56,.5); }
.std-table tbody tr:nth-child(even) { background: var(--row-alt); }
.std-table tbody tr:hover { background: var(--row-hover); }
.r-rank { width: 34px; color: var(--muted); }
.r-team { text-align: left !important; font-family: var(--sans) !important; }
.r-name { font-weight: 600; }
.r-pts { font-weight: 700; color: var(--green-br); }
.std-table td.pos { color: var(--green-br); }
.std-table td.neg { color: var(--live); }
.z-top td.r-rank { box-shadow: inset 3px 0 0 var(--green-br); }

/* form 5 laga terakhir */
.form { display: inline-flex; gap: 3px; }
.fb { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px;
    border-radius: 3px; font-size: 10px; font-style: normal; font-weight: 700; color: #fff; }
.fb.w { background: var(--green); }
.fb.d { background: #4a5666; }
.fb.l { background: var(--live); }

.std-legend { margin-top: 10px; color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.lg-top { display: inline-block; width: 10px; height: 10px; background: var(--green-br); border-radius: 2px; }

/* sembunyikan kolom sekunder di layar kecil */
@media (max-width: 620px) {
    .std-table .hide-sm { display: none; }
    .std-table { font-size: 13px; }
}

/* ====================================================
   FASE 5A — Timeline, Sparkline, Notifikasi
   ==================================================== */

/* --- Timeline kejadian --- */
.timeline { position: relative; padding: 6px 0; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
    width: 2px; background: var(--border); transform: translateX(-50%); }
.tl-row { display: grid; grid-template-columns: 1fr 50px 1fr; align-items: center; padding: 7px 0; position: relative; }
.tl-min { text-align: center; font-family: var(--mono); font-size: 11px; color: var(--muted);
    background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 1px 0; z-index: 1; }
.tl-h { text-align: right; }
.tl-a { text-align: left; }
.tl-ev { display: inline-flex; align-items: center; gap: 7px; }
.tl-h .tl-ev { flex-direction: row-reverse; }
.ev-ic { font-size: 15px; line-height: 1; }
.ev-ic.var { font-size: 9px; font-weight: 700; background: #333; padding: 2px 4px; border-radius: 3px; }
.ev-card { display: inline-block; width: 11px; height: 15px; border-radius: 2px; }
.ev-card.yellow { background: #f1c40f; }
.ev-card.red { background: var(--live); }
.ev-pl { font-size: 14px; }
.ev-assist { color: var(--muted); font-size: 12px; }

/* --- Odds sparkline (override grid baris odds) --- */
.o-row { grid-template-columns: 116px 1fr 64px 88px; }
.o-spark { display: flex; align-items: center; justify-content: center; }
.spark { display: block; }
.spark-empty { color: var(--muted); font-family: var(--mono); }
.o-price-wrap { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; }
.o-price-wrap .o-open { position: static; font-size: 11px; }

/* --- Tombol notifikasi --- */
.notif-chip { font-size: 15px; padding: 6px 10px; }
.notif-chip.active { background: var(--amber); border-color: var(--amber); color: #111; }

/* --- Toast gol --- */
.goal-toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px);
    background: linear-gradient(135deg, var(--green), var(--green-br)); color: #06140c;
    font-weight: 700; padding: 12px 20px; border-radius: 10px; z-index: 200;
    box-shadow: 0 8px 30px rgba(0,0,0,.5); opacity: 0; transition: all .3s ease;
    max-width: 90vw; text-align: center; }
.goal-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 560px) {
    .o-row { grid-template-columns: 92px 1fr 50px 72px; gap: 6px; }
    .ev-pl { font-size: 13px; }
}

/* ====================================================
   FASE 5B + 5C — Penjelajahan, Review, Halaman statis
   ==================================================== */

/* nav bisa di-scroll horizontal di layar sempit */
.tabs { overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { white-space: nowrap; }

/* --- Semua Liga --- */
.leagues-list { margin-top: 8px; }
.league-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-bottom: 18px; }
.league-pill { display: flex; align-items: center; gap: 10px; padding: 10px 12px; text-decoration: none;
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); transition: all .15s; }
.league-pill:hover { border-color: var(--green); background: var(--row-hover); }
.league-pill span { display: flex; flex-direction: column; line-height: 1.2; }
.league-pill em { color: var(--muted); font-style: normal; font-size: 12px; }

/* --- Per-liga / mini button --- */
.mini-btn { margin-left: 8px; padding: 4px 10px; border-radius: 6px; background: var(--green);
    color: #fff; text-decoration: none; font-size: 12px; font-weight: 600; }
.mini-btn:hover { background: var(--green-br); color: #06140c; }
.m-score.upcoming { color: var(--muted); font-size: 13px; font-weight: 500; background: none; }
.team-link { color: var(--text); text-decoration: none; }
.team-link:hover { color: var(--green-br); text-decoration: underline; }

/* --- Per-tim --- */
.team-hero { display: flex; align-items: center; gap: 14px; padding: 18px; margin: 8px 0 14px;
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
.team-logo { width: 54px; height: 54px; object-fit: contain; }
.team-hero h2 { font-size: 22px; }

/* --- Review --- */
.rev-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0; }
.rev-tab { padding: 8px 18px; border-radius: 22px; background: var(--panel); border: 1px solid var(--border);
    color: var(--muted); font-weight: 700; font-size: 13px; text-transform: uppercase; cursor: pointer; letter-spacing: .4px; }
.rev-tab.active { background: var(--green); border-color: var(--green); color: #fff; }
.rev-meta { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 12px 16px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.rev-authors { display: flex; gap: 28px; flex-wrap: wrap; }
.rev-author { display: flex; flex-direction: column; line-height: 1.2; }
.rev-author b { color: var(--green-br); font-size: 14px; }
.rev-author em { color: var(--muted); font-style: normal; font-size: 12px; }
.rev-cat { display: none; }
.rev-cat.active { display: block; }
.rev-title { color: var(--green-br); font-size: 20px; margin-bottom: 6px; }
.rev-intro { margin-bottom: 14px; }
.rev-cards { display: flex; flex-direction: column; gap: 12px; }
.rev-card { display: grid; grid-template-columns: 48px 1.4fr 1.4fr auto; align-items: center; gap: 14px;
    padding: 18px; border-radius: 10px; border: 1px solid #1d3a63;
    background: linear-gradient(135deg, #15233f, #0f1830); position: relative; }
.rev-rank { position: absolute; top: 0; left: 0; width: 30px; height: 30px; display: flex; align-items: center;
    justify-content: center; background: #060b16; color: #fff; font-family: var(--mono); font-weight: 700;
    border-radius: 10px 0 10px 0; }
.rev-brand { padding-left: 6px; }
.rev-name { display: block; font-size: 26px; font-weight: 700; letter-spacing: .5px; }
.rev-rating { color: var(--amber); font-weight: 700; font-size: 14px; }
.rev-badges { display: inline-flex; gap: 6px; margin-left: 8px; flex-wrap: wrap; }
.rev-badges i { font-style: normal; font-size: 10px; background: #1d3a63; color: #cfe0ff; padding: 2px 7px; border-radius: 10px; }
.rev-bonus-label { display: block; color: #9db4d6; font-size: 11px; letter-spacing: .5px; }
.rev-bonus-val { display: block; font-weight: 700; font-size: 17px; }
.rev-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.rev-review { color: #6fa8ff; text-decoration: none; font-size: 13px; }
.rev-review:hover { text-decoration: underline; }
.rev-play { background: #e11d2a; color: #fff; font-weight: 700; padding: 10px 22px; border-radius: 6px;
    text-decoration: none; text-transform: uppercase; font-size: 13px; letter-spacing: .5px; }
.rev-play:hover { background: #f0303c; }
.rev-disclaimer { margin-top: 20px; padding: 12px 16px; border: 1px solid var(--amber); border-radius: var(--radius);
    color: var(--amber); font-size: 13px; background: rgba(240,168,48,.06); }

/* --- Halaman statis --- */
.static-page { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; margin-top: 8px; max-width: 760px; }
.static-page h1 { font-size: 26px; margin-bottom: 14px; }
.static-page h3 { font-size: 16px; margin: 16px 0 6px; color: var(--green-br); }
.static-page p { color: #c5d0dd; line-height: 1.7; margin-bottom: 8px; }

/* --- Footer --- */
.footer-nav { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: 13px; }
.footer-nav a:hover { color: var(--green-br); }
.footer-18 { color: var(--amber); font-size: 11px; margin-top: 4px; }

@media (max-width: 620px) {
    .rev-card { grid-template-columns: 1fr; gap: 10px; }
    .rev-actions { align-items: stretch; }
    .rev-play { text-align: center; }
    .rev-name { font-size: 22px; }
}

/* ====================================================
   FASE 6A — Logo, Favorit, Pencarian Global
   ==================================================== */

/* --- Badge logo / inisial --- */
.ls-badge { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    border-radius: 50%; object-fit: contain; vertical-align: middle; }
.ls-badge.sm { width: 18px; height: 18px; font-size: 9px; }
.ls-badge.lg { width: 44px; height: 44px; font-size: 17px; }
.ls-init { color: #fff; font-weight: 700; }
.ls-badge.ls-init:not([style]) { background: var(--border); }

/* baris match: ikut logo -> jadikan flex */
.m-home, .m-away { display: flex; align-items: center; gap: 6px; min-width: 0; }
.m-home { justify-content: flex-end; }
.m-away { justify-content: flex-start; }
.m-home .tnm, .m-away .tnm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fav-star { color: var(--amber); font-size: 11px; flex: 0 0 auto; }

/* hero match */
.team-block { display: flex; flex-direction: column; align-items: center; gap: 8px; }

/* --- Favorit (bintang & tombol) --- */
.fav-toggle { cursor: pointer; color: var(--muted); margin-right: 6px; font-size: 14px; user-select: none; }
.fav-toggle.on, .fav-toggle:hover { color: var(--amber); }
.chip[data-filter="fav"].active { background: var(--amber); border-color: var(--amber); color: #111; }
.follow-btn { margin-left: auto; padding: 8px 16px; border-radius: 8px; cursor: pointer;
    background: var(--panel); border: 1px solid var(--border); color: var(--text); font-weight: 600; font-family: var(--sans); }
.follow-btn.on { background: var(--amber); border-color: var(--amber); color: #111; }

/* --- Pencarian global --- */
.search-toggle { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 15px; padding: 4px; }
.search-toggle:hover { color: var(--text); }
.search-overlay { position: fixed; inset: 0; background: rgba(5,8,12,.75); z-index: 150;
    display: flex; justify-content: center; padding: 70px 14px; backdrop-filter: blur(3px); }
.search-panel { width: 100%; max-width: 600px; height: max-content; background: var(--panel);
    border: 1px solid var(--border); border-radius: 12px; padding: 16px; position: relative; }
#globalSearch { width: 100%; padding: 12px 40px 12px 14px; border-radius: 8px; background: var(--bg);
    border: 1px solid var(--border); color: var(--text); font-size: 16px; font-family: var(--sans); }
#globalSearch:focus { outline: none; border-color: var(--green); }
.search-close { position: absolute; top: 22px; right: 24px; background: none; border: none; color: var(--muted); cursor: pointer; font-size: 16px; }
.search-results { margin-top: 12px; max-height: 60vh; overflow-y: auto; }
.sr-group h4 { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; margin: 10px 0 4px; }
.sr-item { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 6px;
    text-decoration: none; color: var(--text); }
.sr-item:hover { background: var(--row-hover); }
.sr-item span { display: flex; flex-direction: column; line-height: 1.2; }
.sr-item em { color: var(--muted); font-style: normal; font-size: 12px; }
.sr-empty { color: var(--muted); padding: 14px 8px; }

/* ====================================================
   FASE 6B — Papan Pasaran, Pergerakan, Kalkulator
   ==================================================== */

/* sub-navigasi */
.subnav { display: flex; gap: 6px; margin: 14px 0; flex-wrap: wrap; }
.subnav a { padding: 7px 14px; border-radius: 6px; text-decoration: none; color: var(--muted);
    background: var(--panel); border: 1px solid var(--border); font-weight: 600; font-size: 13px; }
.subnav a.active, .subnav a:hover { color: var(--text); border-color: var(--green); }
.subnav a.active { background: var(--green); border-color: var(--green); color: #fff; }

/* --- Papan Pasaran --- */
.cp-league { display: flex; align-items: center; gap: 8px; margin: 16px 0 6px; font-size: 15px; }
.cp-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.cp-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 620px; }
.cp-table th { background: #11161d; color: var(--muted); font-size: 11px; text-transform: uppercase;
    padding: 7px 4px; text-align: center; white-space: nowrap; }
.cp-table td { padding: 6px 4px; text-align: center; border-top: 1px solid rgba(38,45,56,.5); font-family: var(--mono); }
.cp-table tbody tr:nth-child(even) { background: var(--row-alt); }
.cp-time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.cp-time .min { color: var(--live); font-weight: 700; }
.cp-match { text-align: left !important; font-family: var(--sans) !important; min-width: 150px; }
.cp-match a { color: var(--text); text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.cp-match a:hover { color: var(--green-br); }
.cp-side { display: flex; align-items: center; gap: 5px; }
.cp-line { color: var(--amber); font-weight: 700; }
.oc { color: var(--text); }
.oc-down { color: var(--green-br); }
.oc-up { color: var(--live); }

/* --- Pergerakan --- */
.mover-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px;
    padding: 11px 12px; text-decoration: none; color: var(--text);
    border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; background: var(--panel); }
.mover-row:hover { border-color: var(--green); }
.mover-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mover-match { font-weight: 600; }
.mover-match em { color: var(--muted); font-style: normal; }
.mover-meta { color: var(--muted); font-size: 12px; }
.mover-meta .min { color: var(--live); font-weight: 700; }
.mover-mkt { font-size: 13px; color: var(--muted); text-align: right; }
.mover-mkt b { color: var(--text); }
.mover-odds { font-family: var(--mono); white-space: nowrap; }
.mover-odds.down { color: var(--green-br); }
.mover-odds.up { color: var(--live); }
.mo-open { color: var(--muted); }
.mo-pct { font-weight: 700; margin-left: 4px; }
.goal-toast.mover { background: linear-gradient(135deg, #b9762f, var(--amber)); color: #1a0f02; }

/* --- Kalkulator --- */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.calc-card.calc-wide { grid-column: 1 / -1; }
.calc-card h3 { font-size: 16px; margin-bottom: 12px; color: var(--green-br); }
.calc-card label { display: block; color: var(--muted); font-size: 12px; margin: 8px 0 4px; }
.calc-card input { width: 100%; padding: 9px 12px; border-radius: 6px; background: var(--bg);
    border: 1px solid var(--border); color: var(--text); font-family: var(--mono); font-size: 15px; }
.calc-card input:focus { outline: none; border-color: var(--green); }
.conv-out, .pay-out { margin-top: 12px; }
.conv-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid rgba(38,45,56,.5); }
.conv-row b { font-family: var(--mono); }
.conv-row b.pos, .pos { color: var(--green-br); }
.leg-row { display: flex; gap: 8px; margin-bottom: 8px; }
.leg-row .leg-odd { flex: 1; }
.leg-del { background: var(--row-hover); border: 1px solid var(--border); color: var(--muted);
    border-radius: 6px; cursor: pointer; padding: 0 12px; }
.leg-del:hover { color: var(--live); border-color: var(--live); }

@media (max-width: 620px) {
    .calc-grid { grid-template-columns: 1fr; }
    .mover-row { grid-template-columns: 1fr; gap: 6px; }
    .mover-mkt, .mover-odds { text-align: left; }
}

/* ====================================================
   FASE 6B — Papan Pasaran, Movers, Kalkulator
   ==================================================== */

/* --- Papan Pasaran --- */
.board-league { margin-bottom: 14px; border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; }
.board-league .league-head { padding: 8px 12px; background: #11161d; border-bottom: 1px solid var(--border);
    display: flex; gap: 8px; align-items: baseline; }
.board-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
.board-table th { background: #0f141b; color: var(--muted); font-size: 11px; text-transform: uppercase;
    padding: 7px 8px; text-align: center; letter-spacing: .3px; }
.board-table td { padding: 8px; text-align: center; border-top: 1px solid rgba(38,45,56,.5); cursor: pointer; }
.board-table tbody tr:hover { background: var(--row-hover); }
.bt-time { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.bt-time .min { color: var(--live); font-weight: 700; }
.bt-match { text-align: left !important; line-height: 1.5; min-width: 150px; }
.bt-match div { display: flex; align-items: center; gap: 6px; }
.bt-ah, .bt-ou, .bt-1x2 { font-family: var(--mono); white-space: nowrap; }
.bt-line { color: var(--amber); font-weight: 700; }
.bt-1x2 i { color: var(--muted); font-style: normal; margin: 0 4px; }

/* --- Movers --- */
.movers-box { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 16px; }
.movers-box h3 { font-size: 14px; margin-bottom: 10px; }
.movers-list { display: flex; flex-direction: column; gap: 6px; }
.mover { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px;
    text-decoration: none; color: var(--text); background: var(--bg); border: 1px solid var(--border); }
.mover:hover { background: var(--row-hover); }
.mv-arrow { font-size: 12px; font-weight: 700; }
.mover.down .mv-arrow { color: var(--green-br); }
.mover.up .mv-arrow { color: var(--live); }
.mv-match { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-detail { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }

/* --- Kalkulator --- */
.calc-tabs { display: flex; gap: 6px; margin: 8px 0 16px; }
.calc-tab { padding: 8px 18px; border-radius: 22px; background: var(--panel); border: 1px solid var(--border);
    color: var(--muted); font-weight: 700; font-size: 13px; cursor: pointer; }
.calc-tab.active { background: var(--green); border-color: var(--green); color: #fff; }
.calc-pane { display: none; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; max-width: 520px; }
.calc-pane.active { display: block; }
.calc-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.calc-row label { min-width: 110px; color: var(--muted); font-size: 14px; }
.calc-row input, .calc-row select { flex: 1; padding: 9px 12px; background: var(--bg); border: 1px solid var(--border);
    border-radius: 6px; color: var(--text); font-family: var(--mono); font-size: 15px; }
.calc-row input:focus, .calc-row select:focus { outline: none; border-color: var(--green); }
.calc-out { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.big-num { font-family: var(--mono); font-size: 30px; font-weight: 700; color: var(--green-br); }
.conv-table { width: 100%; }
.conv-table td { padding: 8px 4px; border-bottom: 1px solid rgba(38,45,56,.5); font-size: 15px; }
.conv-table td:first-child { color: var(--muted); }
.conv-table td:last-child { text-align: right; font-family: var(--mono); font-weight: 700; }
.mix-leg .mix-del { background: none; border: none; color: var(--live); cursor: pointer; font-size: 14px; padding: 4px; }

/* ====================================================
   FASE 6C — Berita & Prediksi
   ==================================================== */

/* tab match bisa di-scroll (6 tab) */
.match-tabs { overflow-x: auto; scrollbar-width: none; }
.match-tabs::-webkit-scrollbar { display: none; }
.match-tab { white-space: nowrap; }

/* --- Strip berita di beranda --- */
.news-strip { display: flex; align-items: center; gap: 16px; overflow-x: auto; white-space: nowrap;
    padding: 8px 12px; margin-bottom: 12px; background: var(--panel); border: 1px solid var(--border);
    border-radius: var(--radius); scrollbar-width: none; }
.news-strip::-webkit-scrollbar { display: none; }
.news-strip-label { color: var(--amber); font-weight: 700; font-size: 13px; flex: 0 0 auto; }
.news-strip a { color: var(--text); text-decoration: none; font-size: 14px; flex: 0 0 auto; }
.news-strip a:hover { color: var(--green-br); }
.news-strip a:not(:last-child)::after { content: "·"; color: var(--muted); margin-left: 16px; }

/* --- Grid & kartu berita --- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.news-card { display: flex; flex-direction: column; text-decoration: none; color: var(--text);
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .15s; }
.news-card:hover { border-color: var(--green); }
.news-thumb { height: 150px; background-size: cover; background-position: center; background-color: var(--row-hover); }
.news-thumb-empty { display: flex; align-items: center; justify-content: center; font-size: 34px; color: var(--muted); }
.news-body { padding: 12px 14px; }
.news-body h3 { font-size: 16px; margin: 6px 0; line-height: 1.3; }
.news-body p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.news-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.news-tags span { font-size: 10px; background: var(--row-hover); color: #cfe0ff; padding: 2px 8px; border-radius: 10px; text-transform: uppercase; letter-spacing: .3px; }

/* --- Artikel --- */
.news-article { max-width: 760px; margin-top: 8px; }
.news-hero { height: 260px; background-size: cover; background-position: center; border-radius: var(--radius); margin-bottom: 14px; }
.news-article h1 { font-size: 28px; margin: 8px 0; line-height: 1.25; }
.news-meta { margin-bottom: 16px; }
.news-content { color: #c5d0dd; line-height: 1.8; }
.news-content p { margin-bottom: 14px; }

/* --- Prediksi --- */
.pv { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; max-width: 560px; }
.pv-head { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 12px; }
.pv-engine { background: var(--row-hover); color: var(--muted); padding: 2px 8px; border-radius: 10px; font-size: 11px; }
.pv-engine.ai { background: var(--green); color: #fff; }
.pv-score { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 6px 0 14px; }
.pv-score b { font-family: var(--mono); font-size: 30px; font-weight: 700; color: var(--green-br); }
.pv-pick { text-align: center; margin-bottom: 16px; font-size: 15px; }
.pv-pick b { color: var(--text); }
.pv-pick em { font-style: normal; font-family: var(--mono); color: var(--amber); font-weight: 700; }
.pv-probs { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.pv-prob { display: grid; grid-template-columns: 90px 1fr 42px; align-items: center; gap: 10px; font-size: 13px; }
.pv-prob .pv-bar { height: 8px; background: #0a0d12; border-radius: 4px; overflow: hidden; }
.pv-prob .pv-bar span { display: block; height: 100%; background: var(--green); }
.pv-prob .pv-bar span.d { background: #4a5666; }
.pv-prob .pv-bar span.a { background: #c9893f; }
.pv-prob b { font-family: var(--mono); text-align: right; }
.pv-text { color: #c5d0dd; line-height: 1.7; margin-bottom: 12px; }
.pv-disc { color: var(--amber); font-size: 12px; }

/* ====================================================
   FASE 6C+ — SEO: breadcrumb & internal link
   ==================================================== */
.breadcrumb { font-size: 13px; color: var(--muted); margin: 14px 0 10px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--green-br); }
.breadcrumb span { color: var(--text); }
/* internal link otomatis di dalam artikel */
.news-content a.il, .news-content a { color: var(--green-br); text-decoration: none; border-bottom: 1px dotted var(--green); }
.news-content a:hover { border-bottom-style: solid; }

/* ====================================================
   FASE 6D — Tombol share (kartu match)
   ==================================================== */
.match-hero { position: relative; }
.share-btn { position: absolute; top: 10px; right: 10px; background: var(--panel); border: 1px solid var(--border);
    color: var(--green-br); font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 20px; cursor: pointer; }
.share-btn:hover { background: var(--row-hover); border-color: var(--green); }

/* ====================================================
   FASE 6E — Tema terang + popover pengaturan
   ==================================================== */
[data-theme="light"] {
    --bg:        #f4f6f9;
    --panel:     #ffffff;
    --row:       #ffffff;
    --row-alt:   #f0f3f7;
    --row-hover: #eaeef4;
    --border:    #dde3ea;
    --text:      #1a2230;
    --muted:     #6a7686;
    --green:     #138a47;
    --green-br:  #0f9a52;
    --live:      #e23436;
    --amber:     #c47e12;
}
[data-theme="light"] body { background: var(--bg); }
[data-theme="light"] .topbar { background: #ffffff; border-bottom-color: var(--border); }
[data-theme="light"] .goal-toast { color: #fff; }

/* popover pengaturan */
.settings-popover { position: absolute; top: 54px; right: 14px; z-index: 60; width: 230px;
    background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0; font-size: 14px; }
.set-row span { color: var(--muted); }
.set-row select { background: var(--bg); border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 5px 8px; font-size: 13px; }
.set-seg { display: inline-flex; border: 1px solid var(--border); border-radius: 7px; overflow: hidden; }
.set-seg button { background: var(--bg); border: none; color: var(--muted); padding: 5px 12px; font-size: 12px; cursor: pointer; }
.set-seg button.active { background: var(--green); color: #fff; }

/* widget generator */
.wg-form { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; max-width: 520px; }
.wg-code { width: 100%; max-width: 620px; background: var(--bg); border: 1px solid var(--border); color: var(--green-br);
    font-family: var(--mono); font-size: 12px; border-radius: 6px; padding: 10px; resize: vertical; }

/* ====================================================
   Halaman pemain + foto + fallback inisial
   ==================================================== */
.sec-title { font-size: 15px; margin: 22px 0 10px; }
.player-hero { display: flex; gap: 18px; align-items: center; background: var(--panel);
    border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.player-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
    background: var(--row-hover); border: 2px solid var(--border); }
.player-init, .player-photo.ls-init { display: flex; align-items: center; justify-content: center;
    font-size: 38px; font-weight: 700; color: var(--green-br); }
.player-meta h1 { font-size: 26px; margin-bottom: 6px; }
.player-sub { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.player-sub span { background: var(--row-hover); color: var(--muted); font-size: 12px; padding: 3px 10px; border-radius: 12px; }
.player-club a { color: var(--green-br); text-decoration: none; }
.player-club a:hover { text-decoration: underline; }
.pstat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.pstat { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; text-align: center; }
.pstat b { display: block; font-family: var(--mono); font-size: 26px; color: var(--green-br); }
.pstat b.yc { color: var(--amber); } .pstat b.rc { color: var(--live); }
.pstat span { font-size: 12px; color: var(--muted); }
.pbio { display: flex; gap: 22px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; }
.pbio div span { display: block; font-size: 12px; color: var(--muted); }
.pbio div b { font-family: var(--mono); }
/* foto kecil di tabel top skor */
.r-photo { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; vertical-align: middle;
    margin-right: 8px; background: var(--row-hover); }
.r-init { display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
    color: var(--green-br); border: 1px solid var(--border); }
.r-team a { color: var(--text); text-decoration: none; }
.r-team a:hover { color: var(--green-br); }

/* ====================================================
   Hub Prediksi Bola Hari Ini
   ==================================================== */
.pred-league { margin-bottom: 14px; border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; }
.pred-league .league-head { padding: 8px 12px; background: #11161d; border-bottom: 1px solid var(--border); display: flex; gap: 8px; align-items: baseline; }
[data-theme="light"] .pred-league .league-head { background: var(--row-alt); }
.pred-league .league-name { color: var(--text); text-decoration: none; font-weight: 700; }
.pred-league .league-name:hover { color: var(--green-br); }
.pred-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
.pred-table th { background: #0f141b; color: var(--muted); font-size: 11px; text-transform: uppercase; padding: 7px 10px; text-align: left; letter-spacing: .3px; }
[data-theme="light"] .pred-table th { background: var(--row-alt); }
.pred-table td { padding: 9px 10px; border-top: 1px solid rgba(38,45,56,.5); cursor: pointer; }
.pred-table tbody tr:hover { background: var(--row-hover); }
.pt-time { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.pt-time .min { color: var(--live); font-weight: 700; }
.pt-match { font-weight: 600; }
.pt-match .vs { color: var(--muted); font-weight: 400; margin: 0 4px; }
.pt-pick b { color: var(--text); }
.pt-pick em { font-style: normal; font-family: var(--mono); color: var(--amber); font-weight: 700; }
.pt-score { font-family: var(--mono); font-weight: 700; color: var(--green-br); }
.pt-ou { font-family: var(--mono); color: var(--muted); white-space: nowrap; }
.pred-faq { margin-top: 24px; }
.pred-faq h2 { font-size: 17px; margin-bottom: 10px; }
.pred-faq details { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; margin-bottom: 8px; }
.pred-faq summary { cursor: pointer; font-weight: 600; }
.pred-faq details p { color: var(--muted); margin-top: 8px; line-height: 1.6; }

/* logo liga di header grup */
.league-logo { width: 18px; height: 18px; object-fit: contain; vertical-align: middle; margin-right: 4px;
    border-radius: 3px; background: transparent; }
.league-logo.ls-init { display: inline-flex; align-items: center; justify-content: center; font-size: 10px;
    font-weight: 700; color: var(--green-br); }

/* ====================================================
   Slot banner sponsor
   ==================================================== */
.sponsor-banner { display: block; text-align: center; margin: 0 0 14px; }
.sponsor-banner img { max-width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.sponsor-banner + .sponsor-banner { margin-top: -4px; }

/* ====================================================
   HOME DIGEST
   ==================================================== */
.card-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.card-head h2 { font-size: 15px; font-weight: 700; }
.see-all { font-size: 12px; color: var(--green-br); text-decoration: none; white-space: nowrap; }
.see-all:hover { text-decoration: underline; }
.hl-skel { color: var(--muted); font-size: 13px; padding: 10px 0; }
.hc-empty { color: var(--muted); font-size: 13px; padding: 6px 0; }
.hc-empty a { color: var(--green-br); }

.home-hero { margin-bottom: 18px; }
.home-live { display: flex; flex-direction: column; gap: 8px; }
.hl-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--panel);
    border: 1px solid var(--border); border-radius: 8px; text-decoration: none; color: var(--text); }
.hl-row:hover { background: var(--row-hover); }
.hl-status { font-family: var(--mono); font-size: 12px; color: var(--muted); min-width: 40px;
    text-align: center; flex: 0 0 auto; }
.hl-status.live { color: var(--live); font-weight: 700; }
.hl-teams { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.hl-t { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; min-width: 0; flex: 1;
    overflow: hidden; white-space: nowrap; }
.hl-t:last-child { justify-content: flex-end; text-align: right; }
.hl-sc { font-family: var(--mono); font-weight: 700; color: var(--green-br); flex: 0 0 auto;
    min-width: 46px; text-align: center; }
.hl-odds { display: flex; gap: 8px; flex: 0 0 auto; }

.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.home-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (max-width: 860px) { .home-grid { grid-template-columns: 1fr; gap: 14px; } .home-col { gap: 14px; } }
.hcard { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; min-width: 0; }
.hcard-wide { min-width: 0; }
.sw-body { overflow-x: auto; }

.hp-list, .hn-list, .hs-list, .hm-list { list-style: none; margin: 0; padding: 0; }
.hp-list li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0;
    border-top: 1px solid rgba(38,45,56,.5); cursor: pointer; font-size: 13px; }
.hp-list li:first-child { border-top: 0; }
.hp-list li:hover { color: var(--green-br); }
.hp-match .vs { color: var(--muted); }
.hp-pick { font-family: var(--mono); white-space: nowrap; color: var(--muted); }
.hp-pick b { color: var(--green-br); }

.hn-list li { padding: 7px 0; border-top: 1px solid rgba(38,45,56,.5); font-size: 13px; }
.hn-list li:first-child { border-top: 0; }
.hn-list a { color: var(--text); text-decoration: none; }
.hn-list a:hover { color: var(--green-br); }

/* ---- widget klasemen ---- */
.sw-title { font-size: 16px; font-weight: 800; margin: 0 0 8px; }
.sw-pills { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 6px;
    scrollbar-width: thin; }
.sw-pills::-webkit-scrollbar { height: 4px; }
.sw-pill { flex: 0 0 auto; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border);
    background: #11161d; color: var(--muted); font-size: 11px; font-weight: 700; cursor: pointer;
    white-space: nowrap; letter-spacing: .3px; }
.sw-pill:hover { color: var(--text); }
.sw-pill.active { background: var(--green); color: #fff; border-color: var(--green); }
[data-theme="light"] .sw-pill { background: var(--row-alt); }
.sw-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sw-table th { color: var(--muted); font-size: 10px; text-transform: uppercase; text-align: center;
    padding: 4px 6px; font-weight: 600; }
.sw-table th.sw-team { text-align: left; }
.sw-table td { padding: 6px; border-top: 1px solid rgba(38,45,56,.5); text-align: center; }
.sw-table td.sw-team { text-align: left; }
.sw-team a { display: inline-flex; align-items: center; gap: 6px; color: var(--text); text-decoration: none;
    max-width: 150px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sw-team a:hover { color: var(--green-br); }
.sw-rank { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px;
    border-radius: 5px; background: #2a313c; color: #fff; font-size: 11px; font-weight: 700; }
.sw-rank.z-ucl, .sw-rank.z-promo { background: var(--green); }
.sw-rank.z-uel { background: var(--amber); color: #1a1206; }
.sw-rank.z-uecl { background: #14b8a6; }
.sw-rank.z-rel { background: var(--live); }
.sw-pts { font-weight: 800; color: var(--amber); }
.sw-table td.pos { color: var(--green-br); }
.sw-table td.neg { color: var(--live); }
.sw-legend { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; padding-top: 8px;
    border-top: 1px solid var(--border); }
.lg-item { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); }
.lg-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.lg-dot.z-ucl, .lg-dot.z-promo { background: var(--green); }
.lg-dot.z-uel { background: var(--amber); }
.lg-dot.z-uecl { background: #14b8a6; }
.lg-dot.z-rel { background: var(--live); }

/* ---- top skor mini ---- */
.hs-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0;
    border-top: 1px solid rgba(38,45,56,.5); font-size: 13px; }
.hs-list li:first-child { border-top: 0; }
.hs-rank { font-family: var(--mono); color: var(--muted); width: 16px; }
.hs-name { color: var(--text); text-decoration: none; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hs-name:hover { color: var(--green-br); }
.hs-goals { font-family: var(--mono); font-weight: 800; color: var(--green-br); }

/* ---- movers mini ---- */
.hm-list li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0;
    border-top: 1px solid rgba(38,45,56,.5); cursor: pointer; font-size: 13px; }
.hm-list li:first-child { border-top: 0; }
.hm-list li:hover { color: var(--green-br); }
.hm-delta { font-family: var(--mono); white-space: nowrap; }
.hm-delta.up { color: var(--green-br); }
.hm-delta.down { color: var(--live); }

.hcard-cta { display: flex; flex-direction: column; }
.cta-btn { margin-top: auto; align-self: flex-start; padding: 8px 16px; background: var(--green);
    color: #fff; border-radius: 8px; text-decoration: none; font-size: 13px; font-weight: 600; }
.cta-btn:hover { background: var(--green-br); }

/* ---- penyesuaian mobile khusus home ---- */
@media (max-width: 560px) {
    .hcard { padding: 13px; }
    .home-hero { margin-bottom: 14px; }
    .hl-row { padding: 9px 11px; gap: 8px; }
    .hl-status { min-width: 34px; font-size: 11px; }
    .hl-t { font-size: 12px; gap: 5px; }
    .hl-sc { min-width: 40px; font-size: 13px; }
    .hl-odds { display: none; }
    .card-head h2 { font-size: 14px; }
    .sw-title { font-size: 15px; }
}

/* ====================================================
   Landing liga (programmatic SEO)
   ==================================================== */
.jl-head { font-size: 15px; margin: 18px 0 8px; }
.jl-list { display: flex; flex-direction: column; gap: 6px; }
.jl-row { display: flex; align-items: center; gap: 12px; padding: 9px 12px; background: var(--panel);
    border: 1px solid var(--border); border-radius: 8px; text-decoration: none; color: var(--text); }
.jl-row:hover { background: var(--row-hover); }
.jl-date { font-family: var(--mono); font-size: 12px; color: var(--muted); min-width: 92px; }
.jl-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; flex: 1; }
.jl-t { font-size: 13px; }
.jl-teams .jl-t:first-child { text-align: right; }
.jl-t.win { font-weight: 700; color: var(--green-br); }
.jl-sc { font-family: var(--mono); font-weight: 700; min-width: 54px; text-align: center; }
.jl-sc .live { color: var(--live); }

.ll-other { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--border); }
.ll-other h2 { font-size: 15px; margin-bottom: 10px; }
.ll-links { display: flex; flex-wrap: wrap; gap: 8px; }
.ll-links a { font-size: 12px; padding: 6px 12px; background: var(--panel); border: 1px solid var(--border);
    border-radius: 999px; color: #c5d0dd; text-decoration: none; }
.ll-links a:hover { color: var(--green-br); border-color: var(--green); }

/* ====================================================
   Tim Saya (favorit + reminder)
   ==================================================== */
.search-toggle.active { color: var(--amber); }
.notif-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between;
    background: var(--panel); border: 1px solid var(--green); border-radius: var(--radius);
    padding: 12px 14px; margin-bottom: 16px; font-size: 13px; color: #c5d0dd; }
.empty-state { text-align: center; padding: 30px 16px; }
.empty-state .muted { max-width: 460px; margin: 8px auto 0; line-height: 1.6; }
.mt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 720px) { .mt-grid { grid-template-columns: 1fr; } }
.mt-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.mt-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px;
    padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.mt-team { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; }
.mt-team:hover { color: var(--green-br); }
.mt-unfav { background: none; border: 0; color: var(--amber); font-size: 18px; cursor: pointer; line-height: 1; }
.mt-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.mt-label { font-size: 11px; text-transform: uppercase; color: var(--muted); min-width: 72px; letter-spacing: .3px; }
.mt-fx { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; flex: 1;
    text-decoration: none; color: var(--text); font-size: 13px; }
.mt-fx .mt-side:first-child { text-align: right; }
.mt-sc { font-family: var(--mono); font-weight: 700; min-width: 50px; text-align: center; }
.mt-sc .live { color: var(--live); }
.mt-fx .ts-line { grid-column: 1 / -1; text-align: center; font-size: 11px; color: var(--muted); font-family: var(--mono); }
.mt-fx:hover { color: var(--green-br); }

/* ====================================================
   Mobile nav drawer (list vertikal) + polish mobile
   ==================================================== */
.nav-toggle { display: none; background: none; border: 0; color: var(--text);
    font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px; }

@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; align-items: center; }
    .tabs {
        position: absolute; top: 54px; left: 0; right: 0; z-index: 60;
        flex-direction: column; gap: 0; flex: none;
        background: var(--panel); border-bottom: 1px solid var(--border);
        box-shadow: 0 14px 28px rgba(0,0,0,.45);
        max-height: 0; overflow: hidden; transition: max-height .26s ease;
    }
    body.nav-open .tabs { max-height: 82vh; overflow-y: auto; }
    .tabs .tab {
        width: 100%; padding: 15px 20px; border-radius: 0; font-size: 15px;
        justify-content: flex-start; border-bottom: 1px solid var(--border);
    }
    .tabs .tab:last-child { border-bottom: 0; }
    .tab.active { background: var(--row-hover); box-shadow: inset 3px 0 0 var(--green-br); }
    .topbar-inner { gap: 10px; }
    .brand { flex: 1; }
    /* backdrop tipis saat drawer terbuka */
    body.nav-open::after {
        content: ""; position: fixed; inset: 54px 0 0; z-index: 40;
        background: rgba(0,0,0,.35);
    }
}

/* polish mobile umum */
@media (max-width: 560px) {
    .wrap { padding-left: 12px; padding-right: 12px; }
    .card-head h2 { font-size: 14px; }
    .hcard { padding: 12px; }
    .sponsor-banner { margin-bottom: 10px; }
    h1 { font-size: 22px; }
}

/* ====================================================
   Livescore baris tunggal (mr-line) + kartu sponsor + banner samping + partner
   ==================================================== */
.match-row.mr-line { display: grid; grid-template-columns: 46px minmax(0,1fr) 50px minmax(0,1fr) auto;
    align-items: center; column-gap: 10px; row-gap: 6px; }
.mr-line .m-home { justify-content: flex-end; text-align: right; }
.mr-line .m-away { justify-content: flex-start; }
.mr-line .m-odds { justify-self: end; }
.mr-line .row-prob { grid-column: 1 / -1; }
.mr-line .m-status { min-width: 48px; text-align: left; flex: 0 0 auto; }
.mr-line .m-side { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-weight: 500; }
.mr-line .m-side.win { font-weight: 700; }
.mr-line .m-side .tnm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.mr-line .m-score { flex: 0 0 auto; min-width: 44px; text-align: center;
    font-family: var(--mono); font-weight: 700; font-size: 15px; letter-spacing: 1px;
    padding: 2px 8px; border-radius: 4px; background: rgba(0,0,0,.25); }
.match-row.mr-line.live .m-score { color: var(--green-br); }
.match-row.mr-line.upcoming .m-score { color: var(--muted); background: none; font-size: 13px; font-weight: 500; }
.mr-line .row-prob { flex-basis: 100%; width: 100%; margin-top: 4px; }

/* kartu sponsor tiap 5 laga */
.spon-card { display: flex; align-items: center; gap: 12px; padding: 11px 14px; margin: 3px 0;
    background: linear-gradient(90deg, rgba(34,197,94,.08), rgba(34,197,94,0));
    border: 1px solid var(--border); border-radius: 8px; text-decoration: none; color: var(--text); }
.spon-card:hover { border-color: var(--green); }
.sc-logo { height: 30px; width: auto; max-width: 84px; object-fit: contain; }
.sc-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sc-text b { font-size: 14px; }
.sc-text span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-arrow { color: var(--muted); font-size: 22px; line-height: 1; }

/* banner samping kiri/kanan — diposisikan tepat di luar kolom konten (gap rapi) */
.side-banner { position: fixed; top: 96px; z-index: 20; width: 160px; display: none; }
.side-banner img { max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--border); }
.side-left  { left:  calc((100vw - 1180px) / 2 - 178px); right: auto; }
.side-right { right: calc((100vw - 1180px) / 2 - 178px); left: auto; }
@media (min-width: 1560px) { .side-banner { display: block; } }

/* partner bar header (pemisah |) */
.partner-bar { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
    padding: 5px 12px; background: #0a0d12; border-bottom: 1px solid var(--border); }
[data-theme="light"] .partner-bar { background: var(--row-alt); }
.pb-label { color: var(--muted); text-transform: uppercase; font-size: 10px; letter-spacing: .5px; margin-right: 4px; }
.pb-sep { color: var(--border); }
.partner-bar img { height: 20px; width: auto; object-fit: contain; vertical-align: middle; }
@media (max-width: 560px) { .partner-bar .pb-label { display: none; } .partner-bar img { height: 16px; } }

/* logo situs di header */
.brand-logo { height: 32px; width: auto; max-width: 180px; object-fit: contain; display: block; }

/* ====================================================
   Halaman prediksi per-laga
   ==================================================== */
.pm-card { display: flex; flex-wrap: wrap; gap: 18px; background: var(--panel);
    border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.pm-pick { display: flex; flex-direction: column; gap: 3px; }
.pm-label { font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: .4px; }
.pm-val { font-size: 18px; font-weight: 700; }
.pm-val em { font-style: normal; font-family: var(--mono); color: var(--amber); }
.pm-val.score { font-family: var(--mono); color: var(--green-br); }
.pm-prob { margin-bottom: 16px; }
.pm-bar { display: flex; height: 8px; border-radius: 5px; overflow: hidden; background: #0a0d12; }
.pm-bar .pb.home { background: var(--green); }
.pm-bar .pb.draw { background: var(--muted); }
.pm-bar .pb.away { background: var(--amber); }
.pm-legend { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px;
    font-size: 12px; color: var(--muted); flex-wrap: wrap; }

/* prediksi: pasaran + statistik + form */
.pred-odds { display: flex; flex-wrap: wrap; gap: 10px; }
.po-market { flex: 1; min-width: 200px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.po-head { font-size: 12px; text-transform: uppercase; color: var(--muted); letter-spacing: .4px; margin-bottom: 8px; }
.po-line { color: var(--amber); font-family: var(--mono); }
.po-sels { display: flex; flex-direction: column; gap: 6px; }
.po-sel { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.po-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.po-price { font-family: var(--mono); font-weight: 700; }
.po-price.trend-up { color: var(--green-br); }
.po-price.trend-down { color: var(--live); }
.po-prob { font-size: 12px; color: var(--muted); min-width: 36px; text-align: right; }

.stat-compare { width: 100%; border-collapse: collapse; margin: 4px 0 8px; }
.stat-compare th, .stat-compare td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: center; }
.stat-compare thead th { font-size: 13px; color: var(--text); }
.stat-compare thead th small { color: var(--muted); font-weight: 400; }
.stat-compare td:nth-child(2) { color: var(--muted); font-size: 13px; }
.stat-compare td:first-child, .stat-compare td:last-child { font-family: var(--mono); font-weight: 700; }

.h2h-list { list-style: none; padding: 0; margin: 8px 0; }
.h2h-list li { display: flex; align-items: center; gap: 10px; padding: 5px 0; border-bottom: 1px solid rgba(38,45,56,.5); font-size: 14px; }
.h2h-tm { flex: 1; text-align: right; } .h2h-tm.right { text-align: left; }
.h2h-sc { font-family: var(--mono); color: var(--green-br); min-width: 54px; text-align: center; }

.form-block { display: flex; flex-direction: column; gap: 4px; }
.form-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.form-team { font-weight: 600; min-width: 120px; }
.form-badges { display: inline-flex; gap: 4px; }
.fb { width: 20px; height: 20px; border-radius: 4px; font-size: 11px; font-weight: 700; font-style: normal;
    display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.fb.w { background: var(--green); } .fb.d { background: var(--muted); } .fb.l { background: var(--live); }
.form-detail { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); margin: 2px 0 4px 0; }
.form-detail b { color: var(--text); font-family: var(--mono); }

/* profil kaya entitas (liga/klub/pemain) */
.entity-profile { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); }
.entity-profile h2 { margin: 0 0 10px; }
.prof-content { line-height: 1.8; color: #c5d0dd; }
.prof-content h2 { font-size: 16px; margin: 18px 0 6px; color: var(--text); }
.prof-content p { margin: 0 0 10px; }
.prof-content .prof-intro { font-size: 15px; color: var(--text); }
.prof-content a { color: var(--green-br); }

/* ====================================================
   Papan skor: filter pills + bar tanggal + VIEW ALL
   ==================================================== */
.board-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 12px 0 10px; }
.fpill { background: var(--panel); border: 1px solid var(--border); color: var(--muted);
    border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
    display: inline-flex; align-items: center; gap: 7px; transition: all .12s; }
.fpill:hover { color: var(--text); }
.fpill.active { background: var(--accent, #1d4ed8); border-color: var(--accent, #1d4ed8); color: #fff; }
.fp-count { background: rgba(255,255,255,.18); border-radius: 999px; padding: 0 7px; font-size: 11px;
    font-family: var(--mono); min-width: 18px; text-align: center; }
.fpill:not(.active) .fp-count { background: rgba(255,255,255,.06); color: var(--muted); }
.fp-count.live { background: var(--live); color: #fff; }
.fpill.notif-chip { margin-left: auto; }

.date-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
    background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 6px 8px; }
.date-track { display: flex; gap: 4px; overflow-x: auto; flex: 1; scrollbar-width: thin; }
.date-track::-webkit-scrollbar { height: 5px; }
.datebtn { flex: 0 0 auto; background: transparent; border: none; color: var(--muted);
    border-radius: 8px; padding: 6px 12px; cursor: pointer; text-align: center; line-height: 1.25;
    display: flex; flex-direction: column; min-width: 58px; transition: background .12s, color .12s; }
.datebtn:hover { background: var(--row-hover); color: var(--text); }
.datebtn.active { background: var(--accent, #1d4ed8); color: #fff; }
.db-top { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.db-bot { font-size: 11px; opacity: .85; }
.datebtn.active .db-bot { opacity: 1; }

.viewall { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    font-size: 12px; font-weight: 600; color: var(--muted); padding-right: 4px; white-space: nowrap; }
.viewall input { display: none; }
.viewall i { width: 38px; height: 21px; background: var(--border); border-radius: 999px; position: relative;
    transition: background .15s; flex: 0 0 auto; }
.viewall i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px;
    background: #fff; border-radius: 50%; transition: left .15s; }
.viewall input:checked + i { background: var(--green); }
.viewall input:checked + i::after { left: 19px; }
@media (max-width: 560px) { .viewall span { display: none; } }

/* kartu Review di home (data-driven) */
.hr-list { list-style: none; padding: 0; margin: 0 0 10px; }
.hr-list li a { display: flex; align-items: center; gap: 8px; padding: 7px 0;
    border-bottom: 1px solid rgba(38,45,56,.5); text-decoration: none; color: var(--text); }
.hr-list li:last-child a { border-bottom: none; }
.hr-name { font-weight: 700; }
.hr-bonus { flex: 1; min-width: 0; font-size: 12px; color: var(--muted);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hr-rating { font-family: var(--mono); font-size: 12px; color: var(--amber); }

/* date picker (pilih tanggal bebas) */
.date-pick { flex: 0 0 auto; background: var(--row-alt); border: 1px solid var(--border);
    color: var(--text); border-radius: 8px; padding: 6px 8px; font-size: 12px; color-scheme: dark; }
[data-theme="light"] .date-pick { color-scheme: light; }

/* odds 1X2 di hero live (home) */
.hl-odds { display: inline-flex; gap: 10px; flex: 0 0 auto; font-family: var(--mono); font-size: 12px; }
.hl-odds i { font-style: normal; color: var(--muted); margin-right: 3px; }
@media (max-width: 560px) { .hl-odds { display: none; } }

/* Home: kartu Pasaran full-width + papan scrollable */
.hcard-wide { grid-column: 1 / -1; }
.home-board { max-height: 560px; overflow: auto; }
.home-board .board-league { margin-bottom: 12px; }
.home-board .bt-od.up { color: var(--green-br); }
.home-board .bt-od.down { color: var(--live); }

/* Sub-tabs (Berita: Semua / Hasil Pertandingan) */
.subtabs { display: flex; gap: 8px; margin: 0 0 16px; border-bottom: 1px solid var(--border); }
.subtab { padding: 9px 14px; text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 600;
    border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subtab:hover { color: var(--text); }
.subtab.active { color: var(--text); border-bottom-color: var(--green); }

/* Timeline & statistik di artikel hasil pertandingan */
.match-timeline { list-style: none; padding: 0; margin: 6px 0 14px; }
.match-timeline li { padding: 7px 0; border-bottom: 1px solid rgba(38,45,56,.5); line-height: 1.5; }
.match-timeline .tl-min { display: inline-block; min-width: 38px; font-family: var(--mono); color: var(--amber); font-weight: 700; }
.match-timeline .tl-team { color: var(--muted); }
.match-timeline .tl-assist { color: var(--muted); font-size: 13px; }
.match-stats { list-style: none; padding: 0; margin: 6px 0 14px; }
.match-stats li { padding: 6px 0; border-bottom: 1px solid rgba(38,45,56,.5); font-family: var(--mono); font-size: 14px; }

/* Odds 1X2 di tiap baris papan Skor & Jadwal */
.m-odds { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px;
    font-family: var(--mono); font-size: 11.5px; color: var(--text); white-space: nowrap; margin-left: 8px; }
.m-odds i { font-style: normal; color: var(--muted); margin-left: 4px; }
.m-odds i:first-child { margin-left: 0; }
.m-odds-empty { min-width: 0; }
@media (max-width: 700px) { .m-odds { display: none; } .match-row.mr-line { grid-template-columns: 42px minmax(0,1fr) 46px minmax(0,1fr); } }

/* Kartu Video Highlight (home) */
.hv-list { list-style: none; padding: 0; margin: 0; }
.hv-list li a { display: flex; align-items: center; gap: 10px; padding: 7px 0; text-decoration: none;
    color: var(--text); border-bottom: 1px solid rgba(38,45,56,.5); }
.hv-list li:last-child a { border-bottom: none; }
.hv-thumb { flex: 0 0 auto; width: 86px; height: 50px; border-radius: 7px; background-size: cover;
    background-position: center; background-color: var(--row-alt); position: relative; display: grid; place-items: center; }
.hv-thumb-empty { color: var(--muted); }
.hv-play { color: #fff; font-size: 14px; text-shadow: 0 1px 4px rgba(0,0,0,.7);
    background: rgba(0,0,0,.35); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.hv-meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hv-title { font-size: 13px; font-weight: 600; line-height: 1.3; overflow: hidden;
    text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hv-comp { font-size: 11px; color: var(--muted); }

/* badge live tampil hanya saat ada laga berlangsung */
.live-badge.on { display: inline-block; }
/* cegah scroll horizontal penuh di mobile */
html, body { max-width: 100%; overflow-x: hidden; }

/* Modal pemutar highlight inline (home) */
.hl-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.hl-modal[hidden] { display: none; }
.hl-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.78); }
.hl-modal-box { position: relative; width: 100%; max-width: 760px; background: var(--panel);
    border: 1px solid var(--border); border-radius: 12px; padding: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.hl-modal-close { position: absolute; top: 6px; right: 10px; background: none; border: 0; color: var(--muted);
    font-size: 26px; line-height: 1; cursor: pointer; z-index: 2; }
.hl-modal-close:hover { color: var(--text); }
.hl-modal-title { font-size: 14px; font-weight: 700; margin: 0 30px 10px 2px; color: var(--text); }
.hl-modal-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; }
.hl-modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Tombol play highlight pada laga live (hero) */
.hl-live-btn { flex: 0 0 auto; margin-left: 8px; width: 30px; height: 30px; border-radius: 50%;
    background: var(--green); color: #fff; border: 0; font-size: 11px; cursor: pointer;
    display: inline-grid; place-items: center; line-height: 1; }
.hl-live-btn:hover { background: var(--green-br); }

/* Video Highlight: pemutar video + daftar lengkap */
.hv-player { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000;
    border-radius: 8px; overflow: hidden; margin-bottom: 10px; }
.hv-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hv-list { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; }
.hv-list::-webkit-scrollbar { width: 5px; }
.hv-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.hv-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
    background: none; border: 0; cursor: pointer; padding: 7px 4px; color: var(--text);
    border-bottom: 1px solid rgba(38,45,56,.5); }
.hv-list li:last-child .hv-item { border-bottom: none; }
.hv-item:hover { background: var(--row-hover); }
.hv-item.active { background: var(--row-alt); }
.hv-item .hv-thumb { width: 72px; height: 42px; }
/* toggle Top Skor/Assist */
.hs-tabs { margin-bottom: 8px; }

/* ===== Anti-CLS: cadangkan ruang sebelum konten dinamis & banner dimuat ===== */
#homeLive { min-height: 170px; }
#homeBoard { min-height: 300px; }
#homeScorers { min-height: 215px; }
#homeHighlights { min-height: 180px; }
#stdWidget .sw-body { min-height: 205px; }
.sponsor-banner { min-height: 90px; }
.partner-bar { min-height: 40px; }
.hl-skel { min-height: 60px; }

/* Facade poster highlight (iframe dimuat saat diklik) */
.hv-facade { width: 100%; height: 100%; position: absolute; inset: 0; border: 0; cursor: pointer;
  background: #000 center/cover no-repeat; display: grid; place-items: center; }
.hv-facade-play { width: 54px; height: 54px; border-radius: 50%; background: rgba(0,0,0,.55);
  color: #fff; font-size: 20px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.85); }
.hv-facade:hover .hv-facade-play { background: var(--green); }

/* ---- Halaman indeks profil entitas (/tim, /pemain) ---- */
.entity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.entity-link { display: block; padding: 9px 12px; background: var(--panel); border: 1px solid var(--border);
    border-radius: 8px; color: var(--text); text-decoration: none; font-size: 14px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entity-link:hover { background: var(--row-hover); border-color: var(--green); }
.entity-cross a { color: var(--green-br); text-decoration: none; }
.entity-cross a:hover { text-decoration: underline; }
@media (max-width: 560px) { .entity-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } }

/* ---- Pagination berita ---- */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin: 22px 0 6px; }
.pagination .pg { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px;
    padding: 0 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel);
    color: var(--text); text-decoration: none; font-size: 14px; }
.pagination a.pg:hover { background: var(--row-hover); border-color: var(--green); }
.pagination .pg-cur { background: var(--green); border-color: var(--green); color: #fff; font-weight: 700; }
.pagination .pg-gap { color: var(--muted); padding: 0 4px; }
.pg-info { text-align: center; color: var(--muted); font-size: 12px; margin: 8px 0 0; }

/* ---- Banner Popup (1:1 + tombol link) ---- */
.promo-popup { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center;
    justify-content: center; background: rgba(0,0,0,.72); padding: 16px; touch-action: manipulation; }
.promo-popup.is-open { display: flex; }
.promo-box { position: relative; width: min(92vw, 72vh, 420px); display: flex;
    flex-direction: column; align-items: center; animation: promoIn .22s ease-out; }
@keyframes promoIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
.promo-media { position: relative; width: 100%; }
.promo-close { position: absolute; top: 8px; right: 8px; width: 42px; height: 42px; border-radius: 50%;
    border: none; background: rgba(0,0,0,.62); color: #fff; font-size: 26px; line-height: 42px;
    text-align: center; cursor: pointer; z-index: 4; padding: 0; -webkit-tap-highlight-color: transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.promo-close:hover, .promo-close:active { background: rgba(0,0,0,.85); }
.promo-title { color: #fff; font-weight: 700; font-size: 17px; margin-bottom: 10px; text-align: center; }
.promo-imglink, .promo-img { display: block; width: 100%; }
.promo-img { aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; }
.promo-cta { margin-top: 12px; padding: 12px 30px; background: var(--green); color: #fff; border-radius: 10px;
    text-decoration: none; font-weight: 700; font-size: 15px; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.promo-cta:hover { background: var(--green-br); }
.promo-dismiss { margin-top: 10px; background: transparent; border: none; color: rgba(255,255,255,.85);
    font-size: 14px; text-decoration: underline; cursor: pointer; padding: 8px 16px;
    -webkit-tap-highlight-color: transparent; }
.promo-dismiss:hover { color: #fff; }
html.promo-open { overflow: hidden; }
@media (max-width: 480px) { .promo-close { width: 44px; height: 44px; line-height: 44px; } }
