:root {
    --bg: #111315;
    --panel: #1a1d20;
    --panel-2: #202428;
    --text: #f4f4f4;
    --muted: #9ea4aa;
    --line: #2d3338;
    --accent: #f4c400;
    --danger: #e83757;
    --radius: 12px;
    --shell: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
}

body.league-sidebar-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select {
    font: inherit;
}

[hidden] {
    display: none !important;
}

.shell {
    width: min(calc(100% - 32px), var(--shell));
    margin: 0 auto;
}

/* =========================================================
   Shared header
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(17, 19, 21, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.header-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    flex: 0 0 auto;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    padding: 10px 14px;
    border-radius: 9px;
    color: var(--muted);
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--accent);
    color: #111;
}

/* =========================================================
   Shared page structure
   ========================================================= */

.page-shell {
    padding: 28px 0 44px;
}

.site-footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    padding: 24px 0;
}

.page-title {
    margin: 0 0 20px;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.1;
}

.page-subtitle {
    margin: -10px 0 20px;
    color: var(--muted);
}

/* =========================================================
   Shared controls
   ========================================================= */

.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.toolbar input,
.toolbar select,
.toolbar button {
    min-height: 42px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
    border-radius: 9px;
    padding: 9px 12px;
}

.toolbar input[type="search"] {
    min-width: 220px;
}

.toolbar select {
    min-width: 130px;
}

.toolbar button {
    cursor: pointer;
    font-weight: 600;
}

.toolbar button:hover {
    border-color: #4b535a;
    background: var(--panel-2);
}

.toolbar > a {
    color: var(--text);
    white-space: nowrap;
}

.toolbar > a:hover {
    color: var(--accent);
}

.toolbar > strong {
    font-variant-numeric: tabular-nums;
}

/* =========================================================
   Shared panels
   ========================================================= */

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
}

.empty {
    border: 1px dashed var(--line);
    color: var(--muted);
    padding: 28px;
    border-radius: var(--radius);
    text-align: center;
}

/* =========================================================
   Live score layout
   ========================================================= */

.livescore-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.livescore-main {
    min-width: 0;
}

.livescore-toolbar {
    margin-bottom: 12px;
}

.livescore-toolbar input[type="search"] {
    flex: 1 1 240px;
}

.livescore-date-nav {
    min-height: 30px;
    margin-bottom: 14px;
}

/* =========================================================
   League sidebar
   ========================================================= */

.league-sidebar {
    position: sticky;
    top: 82px;
    z-index: 10;
    min-width: 0;
    max-height: calc(100vh - 100px);
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.league-sidebar-header {
    min-height: 48px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
}

.league-sidebar-header strong {
    font-size: 15px;
}

.league-sidebar-close {
    display: none;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.league-list {
    max-height: calc(100vh - 149px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding: 6px 10px 6px 6px;
    scrollbar-width: thin;
    scrollbar-gutter: stable;
}

/* Semua Liga */

.league-list-all {
    min-height: 42px;
    padding: 0 10px;
    margin-bottom: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text);
}

.league-list-all:hover {
    background: var(--panel-2);
}

.league-list-all.active {
    background: var(--accent);
    color: #111;
}

.league-list-all-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 10px;
}

.league-list-all.active .league-list-all-icon {
    color: #111;
}

.league-list-all .league-list-name {
    font-size: 13px;
    font-weight: 750;
}

/* Negara */

.league-tree {
    display: grid;
    gap: 1px;
}

.league-tree-group {
    margin: 0;
    padding: 0;
}

.league-tree-group > summary {
    list-style: none;
}

.league-tree-group > summary::-webkit-details-marker {
    display: none;
}

.league-tree-country {
    min-height: 40px;
    padding: 0 8px;
    border-radius: 8px;
    display: grid;
    grid-template-columns:
        15px
        23px
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: 7px;
    color: var(--text);
    cursor: pointer;
    user-select: none;
}

.league-tree-country:hover {
    background: var(--panel-2);
}

.league-tree-group[open] > .league-tree-country {
    background: rgba(255, 255, 255, 0.025);
}

.league-tree-arrow {
    width: 15px;
    height: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 16px;
    line-height: 1;
    transform: rotate(0deg);
    transition: transform 0.15s ease;
}

.league-tree-group[open]
> .league-tree-country
.league-tree-arrow {
    transform: rotate(90deg);
}

.league-tree-country-flag {
    display: block;
    width: 23px;
    height: 17px;
    max-width: 23px;
    max-height: 17px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.league-tree-country-name {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

.league-tree-count {
    min-width: 24px;
    padding: 2px 6px;
    border-radius: 999px;
    background: var(--panel-2);
    color: var(--muted);
    text-align: center;
    font-size: 10px;
    line-height: 1.35;
    font-variant-numeric: tabular-nums;
}

/* Anak liga */

.league-tree-children {
    position: relative;
    display: grid;
    gap: 2px;
    margin: 2px 0 7px 20px;
    padding: 2px 0 2px 11px;
    border-left: 1px solid var(--line);
}

.league-tree-league {
    position: relative;
    min-height: 40px;
    padding: 6px 8px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.league-tree-league::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 50%;
    width: 8px;
    border-top: 1px solid var(--line);
}

.league-tree-league:hover {
    background: var(--panel-2);
}

.league-tree-league.active {
    background: var(--accent);
    color: #111;
}

.league-list-logo,
.league-list-logo-fallback {
    width: 22px;
    height: 22px;
    max-width: 22px;
    max-height: 22px;
    flex: 0 0 22px;
}

.league-list-logo {
    object-fit: contain;
}

.league-list-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 9px;
}

.league-list-content {
    min-width: 0;
    flex: 1 1 auto;
}

.league-list-name {
    min-width: 0;
    display: block;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.3;
}

/*
 * Nama liga anak sengaja boleh menjadi beberapa baris.
 * Jangan memakai ellipsis pada item tree.
 */
.league-tree-league .league-list-name {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
}

.league-tree-league.active .league-list-name {
    color: #111;
}

.league-tree-league.active .league-list-logo-fallback {
    color: #111;
}

.league-sidebar-trigger {
    display: none;
}

.league-sidebar-backdrop {
    display: none;
}

/* Mobile tree */

@media (max-width: 720px) {
    .league-list {
        padding: 7px 10px 7px 7px;
    }

    .league-list-all {
        min-height: 44px;
    }

    .league-tree-country {
        min-height: 44px;
        grid-template-columns:
            16px
            24px
            minmax(0, 1fr)
            auto;
        padding: 0 9px;
    }

    .league-tree-country-flag {
        width: 24px;
        height: 18px;
        max-width: 24px;
        max-height: 18px;
    }

    .league-tree-country-name {
        font-size: 14px;
    }

    .league-tree-children {
        margin-left: 21px;
        padding-left: 11px;
    }

    .league-tree-league {
        min-height: 43px;
        padding: 7px 8px;
    }

    .league-tree-league .league-list-name {
        font-size: 13px;
    }

    .league-list-logo,
    .league-list-logo-fallback {
        width: 22px;
        height: 22px;
        max-width: 22px;
        max-height: 22px;
        flex-basis: 22px;
    }
}
/* =========================================================
   League blocks
   ========================================================= */

.league-block {
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 14px;
}

.livescore-main .league-head {
    min-height: 50px;
    padding: 9px 13px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-weight: 700;
}

.livescore-main .league-head > span:first-child {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    line-height: 1.3;
}

.livescore-main .league-head > span:last-child {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.2;
    text-align: right;
}

.livescore-main .league-head img {
    width: 28px;
    height: 28px;
    max-width: 28px;
    max-height: 28px;
    flex: 0 0 28px;
    object-fit: contain;
}

/* =========================================================
   Match rows
   ========================================================= */

.match-row {
    display: grid;
    grid-template-columns:
        82px
        minmax(0, 1fr)
        68px
        minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    min-height: 60px;
    padding: 10px 13px;
    border-bottom: 1px solid var(--line);
    transition: background 0.15s ease;
}

.match-row:last-child {
    border-bottom: 0;
}

.match-row:hover {
    background: var(--panel-2);
}

.match-time {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.team {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.team span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team.away {
    justify-content: flex-end;
    text-align: right;
}

.team img {
    width: 24px;
    height: 24px;
    max-width: 24px;
    max-height: 24px;
    flex: 0 0 24px;
    object-fit: contain;
}

.score {
    min-width: 68px;
    text-align: center;
    font-weight: 800;
    font-size: 17px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.status-live,
.status-special {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 23px;
    border-radius: 999px;
    padding: 3px 7px;
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
}

.status-live {
    color: #fff;
    background: var(--danger);
}

.status-special {
    color: var(--muted);
    background: var(--panel-2);
    border: 1px solid var(--line);
}

[data-favorite-toggle] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    border-radius: 50%;
    color: var(--muted);
    cursor: pointer;
    user-select: none;
    font-size: 15px;
    line-height: 1;
}

[data-favorite-toggle]:hover,
[data-favorite-toggle][data-favorite-active="1"] {
    color: var(--accent);
}

/* =========================================================
   Mobile livescore performance + league drawer access
   ========================================================= */

@media (max-width: 720px) {

    /*
     * Kurangi beban render ketika banyak pertandingan.
     */
    .livescore-main .league-block {
        content-visibility: auto;
        contain-intrinsic-size: auto 260px;
    }

    /*
     * Tombol Liga berada di toolbar.
     * Tidak floating lagi.
     */
    .league-sidebar-trigger {
        position: static;
        order: 6;

        display: inline-flex;
        align-items: center;
        justify-content: space-between;

        width: 100%;
        min-height: 42px;

        margin: 0;
        padding: 9px 12px;

        border: 1px solid var(--line);
        border-radius: 9px;

        background: var(--panel);
        color: var(--text);

        box-shadow: none;

        font-weight: 650;
        line-height: 1;
        cursor: pointer;
    }

    .league-sidebar-trigger::after {
        content: "\25BE";
        margin-left: 12px;
        color: var(--muted);
        font-size: 10px;
    }

    .league-sidebar-trigger:hover {
        border-color: #4b535a;
        background: var(--panel-2);
        color: var(--text);
    }

    body.league-sidebar-open .league-sidebar-trigger {
        visibility: visible;
        pointer-events: auto;
    }

    body.league-sidebar-open .league-sidebar-trigger::after {
        content: "\25B4";
    }

    /*
     * Sidebar tetap menjadi drawer saat tombol Liga ditekan.
     */
    .league-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;

        z-index: 100;

        width: min(88vw, 340px);
        max-height: none;

        border: 0;
        border-right: 1px solid var(--line);
        border-radius: 0;

        transform: translateX(-105%);
        transition: transform 0.2s ease;

        box-shadow: 16px 0 40px rgba(0, 0, 0, 0.38);
    }

    body.league-sidebar-open .league-sidebar {
        transform: translateX(0);
    }

    .league-sidebar-header {
        min-height: 58px;
    }

    .league-sidebar-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .league-list {
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .league-sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 90;

        display: block;

        background: rgba(0, 0, 0, 0.58);
    }
}
/* =========================================================
   Match detail
   ========================================================= */

.match-page {
    display: grid;
    gap: 16px;
}

.match-back {
    display: flex;
    align-items: center;
}

.match-back a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.match-back a:hover {
    color: var(--text);
}

.match-league {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.match-league-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.match-league-logo {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    object-fit: contain;
}

.match-league-main strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-league-country {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 13px;
}

.match-hero {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(120px, auto)
        minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    text-align: center;
}

.match-team {
    display: grid;
    justify-items: center;
    gap: 12px;
    min-width: 0;
}

.match-team-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.match-team-name {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 16px;
    line-height: 1.35;
}

.match-center {
    display: grid;
    justify-items: center;
    gap: 8px;
}

.match-status {
    min-height: 22px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.match-score {
    color: var(--text);
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.match-kickoff {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

.match-favorite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-top: 2px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.match-favorite:hover {
    background: var(--panel-2);
    color: var(--accent);
}

.match-info h2,
.match-timeline h2 {
    margin: 0 0 18px;
    font-size: 18px;
}

.match-info-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}

.match-info-grid > div {
    min-width: 0;
    padding: 13px 14px;
    border-radius: 9px;
    background: var(--panel-2);
}

.match-info-grid dt {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.match-info-grid dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.match-event-list {
    display: grid;
}

.match-event {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.match-event:last-child {
    border-bottom: 0;
}

.match-event-minute {
    color: var(--muted);
    text-align: right;
}

.match-event-content {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.match-event-content span {
    overflow-wrap: anywhere;
}

.match-event-content small {
    color: var(--muted);
}

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 980px) {
    .livescore-layout {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 14px;
    }

    .match-row {
        grid-template-columns:
            72px
            minmax(0, 1fr)
            62px
            minmax(0, 1fr);
        gap: 8px;
    }

    .team img {
        width: 22px;
        height: 22px;
        max-width: 22px;
        max-height: 22px;
        flex-basis: 22px;
    }

    .score {
        min-width: 62px;
        font-size: 16px;
    }
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 720px) {
    .shell {
        width: min(calc(100% - 24px), var(--shell));
    }

    .header-inner {
        min-height: auto;
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 0;
        gap: 10px;
    }

    .main-nav {
        width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .main-nav a {
        padding: 9px 12px;
    }

    .page-shell {
        padding: 22px 0 36px;
    }

    .page-title {
        margin-bottom: 16px;
        font-size: 28px;
    }

    /* Live score becomes single column */

    .livescore-layout {
        display: block;
    }

    .livescore-main {
        width: 100%;
    }

    /* Mobile toolbar */

    .livescore-toolbar {
        display: flex;
        gap: 8px;
        margin-bottom: 12px;
    }

    .livescore-toolbar input[type="search"] {
        order: 1;
        width: 100%;
        min-width: 0;
        flex: 1 1 100%;
    }

    .league-sidebar-trigger {
        order: 2;
        position: relative;
        display: block;
        flex: 1 1 90px;
        min-width: 80px;
        padding-right: 30px;
        overflow: hidden;
        text-align: left;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .livescore-toolbar .league-sidebar-trigger::after {
        position: absolute;
        top: 50%;
        right: 12px;
        margin-left: 0;
        transform: translateY(-50%);
    }

    .livescore-toolbar input[type="date"] {
        order: 3;
        flex: 1 1 150px;
        min-width: 140px;
    }

    .livescore-toolbar select[name="tab"] {
        order: 4;
        flex: 1 1 130px;
        min-width: 120px;
    }

    .livescore-toolbar button[type="submit"] {
        order: 5;
        flex: 0 0 auto;
    }

    .livescore-date-nav {
        gap: 14px;
        margin-bottom: 14px;
        font-size: 14px;
    }

    /* Sidebar drawer */

    .league-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 100;
        width: min(84vw, 320px);
        max-height: none;
        border: 0;
        border-right: 1px solid var(--line);
        border-radius: 0;
        transform: translateX(-105%);
        transition: transform 0.22s ease;
        box-shadow: 16px 0 40px rgba(0, 0, 0, 0.32);
    }

    body.league-sidebar-open .league-sidebar {
        transform: translateX(0);
    }

    .league-sidebar-header {
        min-height: 58px;
        padding: 0 14px;
    }

    .league-sidebar-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .league-sidebar-close:hover {
        background: var(--panel-2);
        color: var(--text);
    }

    .league-list {
        max-height: calc(100vh - 58px);
        padding: 7px;
    }

    .league-list-item {
        min-height: 48px;
        padding: 8px 9px;
    }

    .league-list-logo {
        width: 24px;
        height: 24px;
        max-width: 24px;
        max-height: 24px;
        flex-basis: 24px;
    }

    .league-list-name {
        font-size: 14px;
    }

    .league-list-country {
        font-size: 11px;
    }

    .league-sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 90;
        display: block;
        background: rgba(0, 0, 0, 0.58);
    }

    /* Compact league header */

    .league-block {
        margin-bottom: 12px;
        border-radius: 12px;
    }

    .livescore-main .league-head {
        min-height: 44px;
        padding: 8px 10px;
        gap: 8px;
    }

    .livescore-main .league-head > span:first-child {
        gap: 7px;
        font-size: 14px;
        line-height: 1.25;
    }

    .livescore-main .league-head > span:last-child {
        font-size: 11px;
    }

    .livescore-main .league-head img {
        width: 24px;
        height: 24px;
        max-width: 24px;
        max-height: 24px;
        flex: 0 0 24px;
    }

    /* Compact match rows */

    .match-row {
        grid-template-columns: 62px minmax(0, 1fr) 54px;
        grid-template-areas:
            "time home score"
            "time away score";
        gap: 5px 8px;
        min-height: 72px;
        padding: 9px 10px;
    }

    .match-time {
        grid-area: time;
        align-self: center;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 3px;
        font-size: 11px;
    }

    .match-row > .team:not(.away) {
        grid-area: home;
    }

    .match-row > .team.away {
        grid-area: away;
        justify-content: flex-start;
        text-align: left;
    }

    .match-row > .score {
        grid-area: score;
        align-self: center;
        justify-self: end;
    }

    .team {
        gap: 7px;
    }

    .team img {
        width: 21px;
        height: 21px;
        max-width: 21px;
        max-height: 21px;
        flex: 0 0 21px;
    }

    .team span {
        font-size: 14px;
    }

    .score {
        min-width: 54px;
        font-size: 16px;
    }

    .status-live,
    .status-special {
        min-height: 21px;
        padding: 3px 6px;
        font-size: 9px;
    }

    [data-favorite-toggle] {
        width: 19px;
        height: 19px;
        flex-basis: 19px;
        font-size: 14px;
    }

    /* Match detail */

    .match-page {
        gap: 12px;
    }

    .match-league {
        align-items: flex-start;
        gap: 10px;
    }

    .match-league-country {
        font-size: 12px;
    }

    .match-hero {
        grid-template-columns:
            minmax(0, 1fr)
            auto
            minmax(0, 1fr);
        gap: 10px;
    }

    .match-team {
        gap: 8px;
    }

    .match-team-logo {
        width: 52px;
        height: 52px;
    }

    .match-team-name {
        font-size: 13px;
        line-height: 1.3;
    }

    .match-center {
        gap: 6px;
    }

    .match-status {
        min-height: 18px;
        font-size: 10px;
    }

    .match-score {
        font-size: 26px;
    }

    .match-kickoff {
        font-size: 11px;
    }

    .match-favorite {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
        font-size: 21px;
    }

    .match-info h2,
    .match-timeline h2 {
        margin-bottom: 14px;
        font-size: 17px;
    }

    .match-info-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .match-info-grid > div {
        padding: 11px 12px;
    }

    .match-event {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 12px;
    }
}

/* =========================================================
   Mobile league search
   ========================================================= */

.league-sidebar-search {
    display: none;
}

.league-search-empty {
    padding: 24px 12px;
    color: var(--muted);
    text-align: center;
    font-size: 13px;
}

@media (max-width: 720px) {

    .league-sidebar-search {
        position: relative;
        display: block;
        padding: 10px;
        border-bottom: 1px solid var(--line);
        background: var(--panel);
    }

    .league-sidebar-search-input {
        width: 100%;
        height: 42px;

        padding: 9px 40px 9px 12px;

        border: 1px solid var(--line);
        border-radius: 9px;

        outline: none;

        background: var(--bg);
        color: var(--text);

        font-size: 14px;
    }

    .league-sidebar-search-input::placeholder {
        color: var(--muted);
    }

    .league-sidebar-search-input:focus {
        border-color: var(--accent);
    }

    .league-sidebar-search-clear {
        position: absolute;
        top: 50%;
        right: 18px;

        width: 28px;
        height: 28px;

        padding: 0;
        border: 0;
        border-radius: 50%;

        transform: translateY(-50%);

        display: inline-flex;
        align-items: center;
        justify-content: center;

        background: var(--panel-2);
        color: var(--muted);

        cursor: pointer;

        font-size: 18px;
        line-height: 1;
    }

    .league-sidebar-search-clear:hover {
        color: var(--text);
    }

    .league-sidebar-search-clear[hidden] {
        display: none !important;
    }

    /*
     * Header drawer 58px
     * Search sekitar 63px
     * Sisanya khusus daftar liga.
     */
    .league-sidebar .league-list {
        max-height: calc(100dvh - 121px);
    }

    .league-search-empty {
        padding: 28px 10px;
        font-size: 13px;
    }
}

/* =========================================================
   End mobile league search
   ========================================================= */

/* =========================================================
   Mobile favorite fix
   ========================================================= */

@media (max-width: 720px) {

    /*
     * Beri ruang cukup untuk status + tombol favorit.
     */
    .match-row {
        grid-template-columns: 78px minmax(0, 1fr) 54px;
    }

    /*
     * Status/waktu dan bintang harus sejajar,
     * bukan bertumpuk vertikal.
     */
    .match-time {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        gap: 5px;
        min-width: 0;
    }

    /*
     * Tombol favorit dibuat stabil dan mudah ditekan.
     */
    .match-time [data-favorite-toggle] {
        width: 24px;
        height: 24px;
        min-width: 24px;
        flex: 0 0 24px;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        margin: 0;
        padding: 0;

        border-radius: 50%;

        color: var(--muted);

        font-family: Arial, "Segoe UI Symbol", sans-serif;
        font-size: 17px;
        font-weight: 400;
        line-height: 1;

        text-align: center;
        vertical-align: middle;
    }

    .match-time [data-favorite-toggle][data-favorite-active="1"] {
        color: var(--accent);
    }

    .match-time [data-favorite-toggle]:active {
        background: var(--panel-2);
    }

    /*
     * Status LIVE tetap compact supaya tidak mendorong bintang.
     */
    .match-time .status-live,
    .match-time .status-special {
        flex: 0 0 auto;
        min-width: 0;
        white-space: nowrap;
    }
}

/* =========================================================
   End mobile favorite fix
   ========================================================= */

/* =========================================================
   Standings page
   ========================================================= */

.standings-page {
    display: grid;
    gap: 18px;
}

.standings-featured {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.standings-featured-head {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
}

.standings-featured-head h2 {
    margin: 0;
    color: var(--text);
    font-size: 17px;
    line-height: 1.2;
}

.standings-featured-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
}

.standings-featured-card {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    min-height: 74px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel-2);
    color: var(--text);
    text-decoration: none;
    transition:
        border-color 0.15s ease,
        transform 0.15s ease;
}

.standings-featured-card:hover {
    border-color: var(--muted);
    transform: translateY(-1px);
}

.standings-featured-card.active {
    border-color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--accent);
}

.standings-featured-logo {
    display: grid;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    place-items: center;
    padding: 7px;
    border-radius: 50%;
    background: #ffffff;
}

.standings-featured-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.standings-featured-logo-fallback {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    border-radius: 50%;
    color: #20242a;
    font-size: 16px;
    font-weight: 800;
}

.standings-featured-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.standings-featured-copy strong {
    overflow: hidden;
    color: var(--text);
    font-size: 14px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.standings-featured-card.active
.standings-featured-copy strong {
    color: var(--accent);
}

.standings-featured-copy span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

@media (max-width: 1100px) and (min-width: 721px) {
    .standings-featured-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) and (min-width: 721px) {
    .standings-featured-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.standings-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.standings-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.standings-filter label {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.standings-filter select {
    width: min(100%, 420px);
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--panel-2);
    color: var(--text);
    padding: 9px 36px 9px 12px;
    cursor: pointer;
}

.standings-filter select:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.standings-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.standings-heading img {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    padding: 7px;
    border-radius: 50%;
    background: #ffffff;
    object-fit: contain;
}

.standings-heading > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.standings-heading strong {
    overflow: hidden;
    color: var(--text);
    font-size: 17px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.standings-heading span {
    overflow: hidden;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.standings-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    -webkit-overflow-scrolling: touch;
}

.standings-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    border-spacing: 0;
}

.standings-table th,
.standings-table td {
    height: 52px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--line);
    text-align: center;
    white-space: nowrap;
}

.standings-table th {
    height: 44px;
    background: var(--panel-2);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.standings-table tbody tr {
    transition: background 0.15s ease;
}

.standings-table tbody tr:hover {
    background: var(--panel-2);
}

.standings-table tbody tr:last-child td {
    border-bottom: 0;
}

.standings-table th:nth-child(2),
.standings-table td:nth-child(2) {
    text-align: left;
}

.standings-position {
    width: 48px;
    color: var(--muted);
    font-weight: 700;
}

.standings-team {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
    font-weight: 600;
}

.standings-team img {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.standings-team-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.standings-team-name {
    overflow: hidden;
    color: var(--text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.standings-description {
    overflow: hidden;
    max-width: 300px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.standings-points {
    color: var(--text);
    font-weight: 800;
}

.standings-form-cell {
    min-width: 132px;
}

.standings-form {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.standings-form-result {
    display: inline-grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.standings-form-result.win {
    background: #22c55e;
}

.standings-form-result.draw {
    background: #64748b;
}

.standings-form-result.loss {
    background: #ef4444;
}

.standings-form-empty {
    color: var(--muted);
}

@media (max-width: 720px) {
    .standings-page {
        gap: 14px;
    }

    .standings-featured-head {
        min-height: 48px;
        padding: 0 13px;
    }

    .standings-featured-head h2 {
        font-size: 16px;
    }

    .standings-featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 10px;
    }

    .standings-featured-card {
        gap: 9px;
        min-height: 66px;
        padding: 9px 10px;
    }

    .standings-featured-logo {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        padding: 6px;
    }

    .standings-featured-logo img {
        width: 100%;
        height: 100%;
    }

    .standings-featured-logo-fallback {
        width: 100%;
        height: 100%;
        font-size: 14px;
    }

    .standings-featured-copy {
        gap: 3px;
    }

    .standings-featured-copy strong {
        font-size: 13px;
    }

    .standings-featured-copy span {
        font-size: 11px;
    }

    .standings-toolbar {
        padding: 12px;
    }

    .standings-filter {
        display: grid;
        gap: 7px;
    }

    .standings-filter select {
        width: 100%;
        max-width: none;
    }

    .standings-heading {
        padding: 13px 14px;
    }

    .standings-heading img {
        width: 42px;
        height: 42px;
        padding: 6px;
    }

    .standings-heading strong {
        font-size: 16px;
    }

    .standings-table {
        min-width: 860px;
    }

    .standings-description {
        max-width: 240px;
        font-size: 9px;
    }

    .standings-form-cell {
        min-width: 118px;
    }

    .standings-form {
        gap: 3px;
    }

    .standings-form-result {
        width: 20px;
        height: 20px;
        font-size: 9px;
    }

    .standings-table th,
    .standings-table td {
        height: 48px;
        padding: 7px 10px;
    }

    .standings-team {
        min-width: 190px;
    }
}
/* =========================================================
   Knockout bracket
   ========================================================= */

/* Knockout bracket */

.standings-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.standings-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 18px;
    border-radius: 8px;
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.standings-tab:hover {
    background: var(--panel-2);
    color: var(--text);
}

.standings-tab.active {
    background: var(--accent);
    color: var(--bg);
}

.knockout-bracket {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(250px, 1fr));
    gap: 42px;

    min-height: 920px;
    padding: 18px;

    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;

    border: 1px solid var(--line);
    border-radius: var(--radius);

    background: var(--panel);
}

.knockout-stage {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 250px;
}

.knockout-stage-title {
    flex: 0 0 auto;

    margin: 0 0 16px;
    padding: 0 4px;

    color: var(--text);

    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.knockout-ties {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: space-around;

    gap: 14px;
}

.knockout-tie {
    position: relative;

    flex: 0 0 auto;

    border: 1px solid var(--line);
    border-radius: 10px;

    background: var(--panel-2);

    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.02);
}

/*
 * Garis horizontal antar tahap.
 * Tidak mengubah struktur data maupun layout Klasemen.
 */
.knockout-stage:not(:last-child)
.knockout-tie::after {
    content: "";

    position: absolute;
    top: 50%;
    right: -43px;

    width: 43px;

    border-top: 1px solid var(--line);

    pointer-events: none;
}

.knockout-team {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    min-height: 45px;
    padding: 7px 10px;
}

.knockout-team + .knockout-team {
    border-top: 1px solid var(--line);
}

.knockout-team-main {
    display: flex;
    align-items: center;

    gap: 9px;

    min-width: 0;
}

.knockout-team-logo {
    display: block;

    flex: 0 0 28px;

    width: 28px;
    height: 28px;

    object-fit: contain;
}

.knockout-team-name {
    overflow: hidden;

    min-width: 0;

    color: var(--text);

    font-size: 13px;
    font-weight: 650;
    line-height: 1.25;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.knockout-score {
    flex: 0 0 auto;

    min-width: 24px;

    color: var(--text);

    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

.knockout-legs {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 5px 10px;

    min-height: 28px;
    padding: 5px 8px;

    border-top: 1px solid var(--line);

    color: var(--muted);

    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
}

.knockout-leg {
    white-space: nowrap;
}

@media (max-width: 720px) {

    .standings-tabs {
        padding: 4px;
    }

    .standings-tab {
        flex: 1 1 0;

        min-height: 40px;
        padding: 8px 10px;

        font-size: 13px;
    }

    .knockout-bracket {
        grid-template-columns:
            repeat(4, 230px);

        gap: 28px;

        min-height: 860px;

        padding: 12px;
    }

    .knockout-stage {
        min-width: 230px;
    }

    .knockout-stage-title {
        margin-bottom: 12px;

        font-size: 13px;
    }

    .knockout-ties {
        gap: 11px;
    }

    .knockout-stage:not(:last-child)
    .knockout-tie::after {
        right: -29px;

        width: 29px;
    }

    .knockout-team {
        min-height: 42px;

        padding: 6px 9px;
    }

    .knockout-team-logo {
        flex-basis: 25px;

        width: 25px;
        height: 25px;
    }

    .knockout-team-name {
        font-size: 12px;
    }

    .knockout-score {
        font-size: 14px;
    }

    .knockout-legs {
        min-height: 26px;

        padding: 5px 7px;

        font-size: 9px;
    }
}

/* =========================================================
   End knockout bracket
   ========================================================= */
/* =========================================================
   Home page
   ========================================================= */

.home-page {
    display: grid;
    gap: 16px;
}

/* Ringkasan */

.home-summary {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.home-summary-card {
    min-width: 0;
    min-height: 62px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    color: var(--text);
    transition:
        border-color 0.15s ease,
        background 0.15s ease;
}

.home-summary-card:hover {
    border-color: var(--accent);
    background: var(--panel-2);
}

.home-summary-card span {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-summary-card strong {
    flex: 0 0 auto;
    color: var(--text);
    font-size: 22px;
    font-weight: 850;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.home-summary-live {
    border-color: rgba(244, 196, 0, 0.35);
}

.home-summary-live span,
.home-summary-live strong {
    color: var(--accent);
}

/* Section */

.home-section {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.home-section-head {
    min-height: 48px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    background: var(--panel);
}

.home-section-head h2 {
    margin: 0;
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.home-section-head a {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.home-section-head a:hover {
    color: var(--accent);
}

.home-section-note {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

/* Pertandingan */

.home-match-list {
    display: grid;
}

.home-match {
    min-width: 0;
    min-height: 54px;
    padding: 8px 12px;
    display: grid;
    grid-template-columns:
        58px
        minmax(0, 1fr)
        126px
        minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    transition: background 0.15s ease;
}

.home-match:last-child {
    border-bottom: 0;
}

.home-match:hover {
    background: var(--panel-2);
}

.home-match-status {
    min-width: 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

.home-match-status.status-live {
    justify-self: center;
    min-width: 48px;
    padding: 5px 7px;
    border-radius: 999px;
    background: var(--danger);
    color: #ffffff;
}

.home-match-status.status-special {
    justify-self: center;
    min-width: 48px;
    padding: 5px 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel-2);
    color: var(--muted);
}

.home-match-team {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-match-team img {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    object-fit: contain;
}

.home-match-team span {
    min-width: 0;
    overflow: hidden;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-match-team-away {
    justify-content: flex-end;
    text-align: right;
}

.home-match-score {
    color: var(--text);
    font-size: 15px;
    font-weight: 850;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Tablet */

@media (max-width: 820px) {
    .home-summary {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */

@media (max-width: 720px) {
    .home-page {
        gap: 12px;
    }

    .home-summary {
        gap: 7px;
    }

    .home-summary-card {
        min-height: 54px;
        padding: 9px 11px;
    }

    .home-summary-card span {
        font-size: 11px;
    }

    .home-summary-card strong {
        font-size: 19px;
    }

    .home-section-head {
        min-height: 44px;
        padding: 0 10px;
    }

    .home-section-head h2 {
        font-size: 14px;
    }

    .home-section-head a,
    .home-section-note {
        font-size: 10px;
    }

    .home-match {
        min-height: 52px;
        padding: 7px 8px;
        grid-template-columns:
            44px
            minmax(0, 1fr)
            82px
            minmax(0, 1fr);
        gap: 6px;
    }

    .home-match-status {
        font-size: 9px;
    }

    .home-match-status.status-live,
    .home-match-status.status-special {
        min-width: 40px;
        padding: 4px 5px;
    }

    .home-match-team {
        gap: 5px;
    }

    .home-match-team img {
        width: 22px;
        height: 22px;
        flex-basis: 22px;
    }

    .home-match-team span {
        font-size: 11px;
    }

    .home-match-score {
        font-size: 13px;
    }
}

@media (max-width: 420px) {
    .home-summary-card {
        min-height: 50px;
    }

    .home-summary-card span {
        font-size: 10px;
    }

    .home-summary-card strong {
        font-size: 17px;
    }

    .home-match {
        grid-template-columns:
            40px
            minmax(0, 1fr)
            72px
            minmax(0, 1fr);
        gap: 5px;
    }

    .home-match-team img {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
    }

    .home-match-team span {
        font-size: 10px;
    }

    .home-match-score {
        font-size: 12px;
    }
}
/* =========================================================
   Home featured leagues
   ========================================================= */

.home-page .standings-featured-grid {
    grid-template-columns:
        repeat(
            6,
            minmax(0, 1fr)
        );
}

@media (max-width: 1000px) {
    .home-page .standings-featured-grid {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }
}

@media (max-width: 600px) {
    .home-page .standings-featured-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }
}
/* =========================================================
   Home prediction grid
   ========================================================= */

.home-predictions-section {
    position: relative;
}

.home-prediction-grid {
    padding: 10px;
    display: grid;
    grid-template-columns:
        repeat(
            5,
            minmax(0, 1fr)
        );
    gap: 10px;
    align-items: stretch;
}

.home-prediction-card {
    min-width: 0;
    aspect-ratio: 6 / 5;
    padding: 10px;
    display: grid;
    grid-template-rows:
        auto
        minmax(0, 1fr)
        auto
        auto;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel-2);
    color: var(--text);
    overflow: hidden;
    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        transform 0.15s ease;
}

.home-prediction-card:hover {
    border-color: var(--accent);
    background: var(--panel);
    transform: translateY(-1px);
}

.home-prediction-meta {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

.home-prediction-meta span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-prediction-meta time {
    flex: 0 0 auto;
    padding: 4px 6px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.24);
    color: var(--text);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.home-prediction-teams {
    min-width: 0;
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        28px
        minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}

.home-prediction-team {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.home-prediction-team-away {
    justify-content: center;
    text-align: center;
}

.home-prediction-team-away img {
    order: 1;
}

.home-prediction-team-away span {
    order: 2;
}

.home-prediction-teams {
    align-items: start;
}

.home-prediction-vs {
    align-self: start;
    margin-top: 16px;
}

.home-prediction-team img {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    object-fit: contain;
}

.home-prediction-team span {
    width: 100%;
    min-width: 0;
    min-height: 30px;
    display: -webkit-box;
    overflow: hidden;
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-prediction-vs {
    color: var(--text);
    font-size: 12px;
    font-weight: 900;
    text-align: center;
}

.home-prediction-pick {
    min-width: 0;
    padding-top: 9px;
    border-top: 1px solid var(--line);
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-prediction-pick strong {
    color: var(--accent);
    font-weight: 800;
}

.home-prediction-percent {
    display: grid;
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );
    border: 1px solid var(--line);
    border-radius: 7px;
    overflow: hidden;
}

.home-prediction-percent span {
    min-width: 0;
    padding: 5px 3px;
    color: var(--muted);
    font-size: 9px;
    text-align: center;
}

.home-prediction-percent span + span {
    border-left: 1px solid var(--line);
}

.home-prediction-percent strong {
    margin-left: 3px;
    color: var(--text);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
    .home-prediction-grid {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }
}

@media (max-width: 600px) {
    .home-prediction-grid {
        padding: 8px;
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
        gap: 8px;
    }

    .home-prediction-card {
        aspect-ratio: auto;
        min-height: 190px;
        padding: 9px;
        gap: 7px;
    }

    .home-prediction-meta {
        font-size: 9px;
    }

    .home-prediction-meta time {
        padding: 3px 4px;
        font-size: 9px;
    }

    .home-prediction-teams {
        grid-template-columns:
            minmax(0, 1fr)
            20px
            minmax(0, 1fr);
        gap: 4px;
    }

    .home-prediction-team {
        gap: 5px;
    }

    .home-prediction-team img {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .home-prediction-team span {
        min-height: 26px;
        font-size: 9px;
        line-height: 1.25;
    }

    .home-prediction-vs {
        margin-top: 12px;
        font-size: 10px;
    }

    .home-prediction-pick {
        padding-top: 6px;
        font-size: 9px;
    }

    .home-prediction-percent span {
        padding: 4px 1px;
        font-size: 8px;
    }
}
/* =========================================================
   Prediction page
   ========================================================= */

.predictions-page {
    display: grid;
    gap: 16px;
}

.predictions-toolbar {
    display: grid;
    grid-template-columns:
        42px
        minmax(0, 330px)
        42px
        minmax(240px, 340px);
    grid-template-areas:
        "prev date next search";
    justify-content: center;
    align-items: end;
    gap: 9px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.predictions-date-nav {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--panel-2);
    color: var(--text);
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.predictions-date-nav:first-of-type {
    grid-area: prev;
}

.predictions-date-nav:last-of-type {
    grid-area: next;
}

.predictions-date-nav:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.predictions-date-form {
    grid-area: date;
    min-width: 0;
    display: grid;
    gap: 5px;
}

.predictions-date-form label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.predictions-date-form input {
    width: 100%;
    min-height: 42px;
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--panel-2);
    color: var(--text);
    font: inherit;
}

.predictions-date-form input:focus {
    outline: none;
    border-color: var(--accent);
}

/* Search */

.prediction-search-toolbar {
    grid-area: search;
    min-width: 0;
}

.prediction-search-control {
    position: relative;
    min-width: 0;
    width: 100%;
}

.prediction-search-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    z-index: 2;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    color: var(--muted);
    pointer-events: none;
    transform: translateY(-50%);
}

.prediction-search-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.prediction-search-input {
    width: 100%;
    min-height: 42px;
    padding: 8px 38px 8px 40px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--panel-2);
    color: var(--text);
    font: inherit;
    font-size: 13px;
}

.prediction-search-input::placeholder {
    color: var(--muted);
    opacity: 1;
}

.prediction-search-input:focus {
    outline: none;
    border-color: var(--accent);
}

.prediction-search-control:focus-within
.prediction-search-icon {
    color: var(--accent);
}

.prediction-search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.prediction-search-clear {
    position: absolute;
    top: 50%;
    right: 7px;
    z-index: 2;
    width: 28px;
    height: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.prediction-search-clear:hover {
    background: var(--panel);
    color: var(--text);
}

.prediction-search-clear[hidden] {
    display: none;
}

/* League */

.prediction-league {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.prediction-league-head {
    min-height: 54px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--line);
    background: var(--panel-2);
}

.prediction-league-logo {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    padding: 4px;
    border-radius: 50%;
    background: #ffffff;
}

.prediction-league-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.prediction-league-copy {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.prediction-league-copy strong {
    overflow: hidden;
    color: var(--text);
    font-size: 14px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prediction-league-copy span {
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Match rows */

.prediction-compact-list {
    display: block;
}

.prediction-compact-row {
    min-width: 0;
    padding: 9px 12px;
    border-bottom: 1px solid var(--line);
}

.prediction-compact-row:last-child {
    border-bottom: 0;
}

.prediction-compact-row:hover {
    background: var(--panel-2);
}

.prediction-match-main {
    min-width: 0;
    display: grid;
    grid-template-columns:
        52px
        minmax(0, 1fr)
        auto
        auto;
    align-items: center;
    gap: 10px;
}

.prediction-match-time {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.prediction-match-teams {
    min-width: 0;
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        56px
        minmax(0, 1fr);
    align-items: center;
    gap: 9px;
}

.prediction-home-team,
.prediction-away-team {
    min-width: 0;
    overflow: hidden;
    color: var(--text);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prediction-home-team {
    text-align: right;
}

.prediction-away-team {
    text-align: left;
}

.prediction-match-score {
    min-width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text);
    font-size: 14px;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.prediction-match-score span {
    color: var(--muted);
    font-weight: 500;
}

.prediction-status {
    min-height: 22px;
    padding: 3px 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel-2);
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.prediction-status-live {
    border-color: transparent;
    background: var(--danger);
    color: #ffffff;
}

.prediction-status-ns {
    border-color: rgba(244, 196, 0, 0.35);
    color: var(--accent);
}

.prediction-status-ft,
.prediction-status-aet,
.prediction-status-pen {
    color: var(--text);
}

.prediction-compact-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 3px 7px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.prediction-compact-detail:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.prediction-match-prediction {
    min-width: 0;
    margin-top: 5px;
    margin-left: 62px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.3;
}

.prediction-pick-text,
.prediction-percent-text {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.prediction-pick-text strong {
    color: var(--accent);
    font-weight: 750;
}

.prediction-percent-text strong {
    color: var(--text);
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.prediction-percent-text > span {
    color: var(--line);
}

.prediction-unavailable {
    color: var(--muted);
    font-size: 11px;
}

/* Tablet / Mobile */

@media (max-width: 860px) {
    .predictions-toolbar {
        grid-template-columns:
            40px
            minmax(0, 1fr)
            40px;
        grid-template-areas:
            "prev date next"
            "search search search";
        align-items: end;
        gap: 8px;
        padding: 10px;
    }

    .prediction-search-toolbar {
        margin-top: 2px;
    }

    .prediction-search-input {
        min-height: 40px;
    }
}

@media (max-width: 720px) {
    .predictions-page {
        gap: 12px;
    }

    .predictions-date-nav {
        width: 40px;
        height: 40px;
    }

    .predictions-date-form input {
        min-height: 40px;
        padding: 7px 9px;
        font-size: 13px;
    }

    .prediction-league-head {
        min-height: 50px;
        padding: 7px 9px;
    }

    .prediction-league-logo {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .prediction-compact-row {
        padding: 9px;
    }

    .prediction-match-main {
        grid-template-columns:
            42px
            minmax(0, 1fr)
            auto
            auto;
        gap: 6px;
    }

    .prediction-match-time {
        font-size: 11px;
    }

    .prediction-match-teams {
        grid-template-columns:
            minmax(0, 1fr)
            44px
            minmax(0, 1fr);
        gap: 5px;
    }

    .prediction-home-team,
    .prediction-away-team {
        font-size: 11px;
    }

    .prediction-match-score {
        min-width: 44px;
        gap: 4px;
        font-size: 12px;
    }

    .prediction-status {
        padding: 3px 5px;
        font-size: 8px;
    }

    .prediction-compact-detail {
        min-height: 22px;
        padding: 2px 5px;
        font-size: 9px;
    }

    .prediction-match-prediction {
        margin-top: 4px;
        margin-left: 48px;
        gap: 4px 10px;
        font-size: 10px;
    }

    .prediction-unavailable {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .predictions-toolbar {
        grid-template-columns:
            38px
            minmax(0, 1fr)
            38px;
        padding: 8px;
        gap: 6px;
    }

    .predictions-date-nav {
        width: 38px;
        height: 38px;
    }

    .predictions-date-form input {
        min-height: 38px;
    }

    .prediction-search-input {
        min-height: 38px;
        padding-left: 38px;
        padding-right: 36px;
        font-size: 12px;
    }

    .prediction-search-icon {
        left: 11px;
        width: 17px;
        height: 17px;
    }

    .prediction-search-icon svg {
        width: 17px;
        height: 17px;
    }

    .prediction-match-main {
        grid-template-columns:
            38px
            minmax(0, 1fr)
            auto;
    }

    .prediction-compact-detail {
        display: none;
    }

    .prediction-match-teams {
        grid-template-columns:
            minmax(0, 1fr)
            40px
            minmax(0, 1fr);
    }

    .prediction-match-score {
        min-width: 40px;
    }

    .prediction-match-prediction {
        margin-left: 44px;
    }
}
/* =========================================================
   Authentication UI
   ========================================================= */

/* Header authentication */

.header-auth {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.header-auth-link,
.header-logout {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.header-auth-link:hover,
.header-logout:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.header-auth-primary {
    border-color: var(--accent);
    background: var(--accent);
    color: #111;
}

.header-auth-primary:hover {
    color: #111;
}

.header-user {
    max-width: 160px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-logout-form {
    margin: 0;
}

/* Login / Register */

.auth-page {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 24px 0;
}

.auth-card {
    width: min(100%, 480px);
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.auth-card-head {
    margin-bottom: 22px;
}

.auth-card-head h1 {
    margin: 0 0 7px;
    font-size: 28px;
    line-height: 1.15;
}

.auth-card-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-field {
    display: grid;
    gap: 7px;
}

.auth-field label {
    font-size: 14px;
    font-weight: 700;
}

.auth-field input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    outline: none;
    background: var(--bg);
    color: var(--text);
    font: inherit;
}

.auth-field input:focus {
    border-color: var(--accent);
}

.auth-field small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.auth-submit {
    width: 100%;
    min-height: 44px;
    margin-top: 2px;
    border: 1px solid var(--accent);
    border-radius: 9px;
    background: var(--accent);
    color: #111;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.auth-submit:hover {
    filter: brightness(1.05);
}

.auth-message {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 9px;
    line-height: 1.5;
}

.auth-message p {
    margin: 0;
}

.auth-message p + p {
    margin-top: 5px;
}

.auth-message-success {
    border-color: var(--accent);
}

.auth-message-error {
    border-color: #e35d6a;
}

.auth-form-footer {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.auth-form-footer a {
    color: var(--accent);
    font-weight: 700;
}

/* Mobile auth */

@media (max-width: 720px) {

    .header-auth {
        width: 100%;
        justify-content: flex-end;
        gap: 7px;
    }

    .header-auth-link,
    .header-logout {
        min-height: 36px;
        padding: 7px 11px;
        font-size: 13px;
    }

    .header-user {
        margin-right: auto;
        max-width: 150px;
    }

    .auth-page {
        padding: 8px 0 20px;
    }

    .auth-card {
        padding: 18px;
    }

    .auth-card-head {
        margin-bottom: 18px;
    }

    .auth-card-head h1 {
        font-size: 24px;
    }

    .auth-field input,
    .auth-submit {
        min-height: 43px;
    }
}

@media (max-width: 420px) {

    .header-auth {
        justify-content: stretch;
    }

    .header-auth-link {
        flex: 1 1 0;
    }

    .header-logout-form {
        flex: 0 0 auto;
    }

    .auth-card {
        padding: 16px;
    }
}

/* Mobile auth compact top-right */
@media (max-width: 720px) {

    .site-header .header-inner {
        position: relative;
        align-items: flex-start;
        padding-top: 10px;
    }

    .header-auth {
        position: absolute;
        top: 10px;
        right: 0;
        width: auto;
        gap: 6px;
        justify-content: flex-end;
        align-items: center;
    }

    .header-user {
        display: none;
    }

    .header-auth-link,
    .header-logout {
        min-height: 30px;
        padding: 5px 10px;
        border-radius: 8px;
        font-size: 12px;
        line-height: 1;
    }

    .header-logout-form {
        margin: 0;
    }
}

@media (max-width: 420px) {

    .header-auth {
        top: 8px;
        right: 0;
        gap: 5px;
    }

    .header-auth-link,
    .header-logout {
        min-height: 28px;
        padding: 4px 9px;
        font-size: 11px;
    }
}

/* Match live streaming */

.match-live {
    overflow: hidden;
}

.match-live-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.match-live-head h2 {
    margin: 6px 0 0;
}

.match-live-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid var(--accent);
    border-radius: 999px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.match-live-note {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

.match-live-list {
    display: grid;
    gap: 14px;
}

.match-live-source {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
}

.match-live-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.match-live-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.match-live-source-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
}

.match-live-source-footer strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-live-watch {
    flex: 0 0 auto;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 1px solid var(--accent);
    border-radius: 9px;
    background: var(--accent);
    color: #111;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.match-live-watch:hover {
    filter: brightness(1.05);
    color: #111;
}

@media (max-width: 720px) {

    .match-live-head {
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 13px;
    }

    .match-live-head h2 {
        font-size: 20px;
    }

    .match-live-note {
        padding-top: 4px;
        font-size: 11px;
    }

    .match-live-source-footer {
        gap: 10px;
        padding: 10px;
    }

    .match-live-watch {
        min-height: 34px;
        padding: 7px 11px;
        font-size: 12px;
    }
}

@media (max-width: 420px) {

    .match-live-head {
        display: block;
    }

    .match-live-note {
        display: block;
        margin-top: 7px;
        padding: 0;
    }

    .match-live-source-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .match-live-source-footer strong {
        white-space: normal;
    }

    .match-live-watch {
        width: 100%;
    }
}

/* Home live stream indicator */

.home-match-score-wrap {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.home-match-live-indicator {
    width: 26px;
    height: 26px;
    min-height: 26px;
    flex: 0 0 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: var(--danger);
    color: #ffffff;
    line-height: 1;
    cursor: pointer;
}

.home-match-live-indicator-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 1px;
    border-radius: 5px;
    background: var(--danger);
    color: #ffffff;
    font-size: 8px;
    line-height: 1;
}

.home-match-live-indicator-text {
    display: none;
}

@media (max-width: 720px) {

    .home-match-score-wrap {
        gap: 5px;
    }

    .home-match-live-indicator {
        width: 22px;
        height: 22px;
        min-height: 22px;
        padding: 0;
        border: 0;
        border-radius: 6px;
        background: var(--danger);
    }

    .home-match-live-indicator-icon {
        width: auto;
        height: auto;
        padding: 0 0 0 1px;
        background: transparent;
        font-size: 9px;
    }

    .home-match-live-indicator-text {
        display: none;
    }
}

/* Live Score stream indicator spacing */

.live-score-stream-indicator {
    margin-left: 14px;
    flex: 0 0 auto;
}

@media (max-width: 720px) {
    .live-score-stream-indicator {
        margin-left: 10px;
    }
}

/* Mobile away team same direction */

@media (max-width: 720px) {
    .livescore-main .match-row > .team.away img {
        order: -1;
    }
}

/* Home SEO footer styling */

.home-seo-footer {
    margin-top: 18px;
    padding: 0;
    overflow: hidden;
}

.home-seo-footer .home-section-head {
    padding: 18px 22px 14px;
    border-bottom: 1px solid var(--border);
}

.home-seo-footer .home-section-head h2 {
    margin: 0;
    color: #ffffff;
    font-size: 24px;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.home-seo-footer .home-seo-content {
    padding: 22px;
}

.home-seo-footer p {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.75;
}

.home-seo-footer strong {
    color: #ffffff;
    font-weight: 800;
}

.home-seo-footer h3 {
    margin: 26px 0 12px;
    color: var(--primary);
    font-size: 18px;
    line-height: 1.4;
    font-weight: 800;
}

.home-seo-footer h4 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 800;
}

.home-seo-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.home-seo-footer a:hover {
    text-decoration: underline;
}

.home-seo-footer .home-seo-links {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.home-seo-footer .home-seo-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(255, 208, 0, 0.28);
    border-radius: 999px;
    background: rgba(255, 208, 0, 0.08);
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.home-seo-footer .home-seo-links a:hover {
    background: rgba(255, 208, 0, 0.14);
    border-color: rgba(255, 208, 0, 0.45);
    text-decoration: none;
}

.home-seo-footer .home-seo-faq {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.home-seo-footer .home-seo-faq h3 {
    margin-top: 0;
}

.home-seo-footer .home-seo-faq > p {
    margin-bottom: 0;
}

.home-seo-footer .home-seo-faq h4 + p {
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 720px) {

    .home-seo-footer .home-section-head {
        padding: 14px 16px 12px;
    }

    .home-seo-footer .home-section-head h2 {
        font-size: 18px;
        line-height: 1.35;
    }

    .home-seo-footer .home-seo-content {
        padding: 16px;
    }

    .home-seo-footer p {
        font-size: 14px;
        line-height: 1.7;
    }

    .home-seo-footer h3 {
        margin: 22px 0 10px;
        font-size: 16px;
    }

    .home-seo-footer h4 {
        font-size: 14px;
    }

    .home-seo-footer .home-seo-links {
        gap: 8px;
    }

    .home-seo-footer .home-seo-links a {
        min-height: 34px;
        padding: 0 12px;
        font-size: 12px;
    }

    .home-seo-footer .home-seo-faq h4 + p {
        padding: 10px 12px;
        border-radius: 10px;
    }
}

/* Home SEO accordion compact */

.home-seo-footer .home-seo-intro {
    margin-bottom: 18px;
}

.home-seo-footer .home-seo-intro p:last-child {
    margin-bottom: 0;
}

.home-seo-footer .home-seo-links {
    margin: 18px 0 22px;
}

.home-seo-footer .home-seo-accordions {
    display: grid;
    gap: 10px;
}

.home-seo-footer .home-seo-accordion {
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
    overflow: hidden;
}

.home-seo-footer .home-seo-accordion[open] {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 208, 0, 0.2);
}

.home-seo-footer .home-seo-accordion > summary {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 13px 44px 13px 15px;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.home-seo-footer .home-seo-accordion > summary::-webkit-details-marker {
    display: none;
}

.home-seo-footer .home-seo-accordion > summary::after {
    content: '+';
    position: absolute;
    top: 50%;
    right: 15px;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 208, 0, 0.26);
    border-radius: 50%;
    color: var(--primary);
    background: rgba(255, 208, 0, 0.06);
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
}

.home-seo-footer .home-seo-accordion[open] > summary::after {
    content: '−';
}

.home-seo-footer .home-seo-accordion > summary:hover {
    background: rgba(255, 255, 255, 0.025);
}

.home-seo-footer .home-seo-accordion[open] > summary {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--primary);
}

.home-seo-footer .home-seo-accordion-body {
    padding: 16px;
}

.home-seo-footer .home-seo-accordion-body h3 {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.45;
}

.home-seo-footer .home-seo-accordion-body h3:not(:first-child) {
    margin-top: 22px;
}

.home-seo-footer .home-seo-accordion-body h4 {
    margin: 0 0 7px;
    font-size: 14px;
    line-height: 1.45;
}

.home-seo-footer .home-seo-accordion-body h4:not(:first-child) {
    margin-top: 18px;
}

.home-seo-footer .home-seo-accordion-body p {
    margin: 0 0 13px;
    font-size: 14px;
    line-height: 1.7;
}

.home-seo-footer .home-seo-accordion-body p:last-child {
    margin-bottom: 0;
}

/*
 * FAQ sekarang memakai struktur accordion utama.
 * Hilangkan gaya card lama yang tidak lagi diperlukan.
 */
.home-seo-footer .home-seo-faq {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.home-seo-footer .home-seo-faq h4 + p {
    margin-bottom: 14px;
    padding: 11px 13px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.025);
}

@media (max-width: 720px) {

    .home-seo-footer {
        margin-top: 16px;
    }

    .home-seo-footer .home-section-head h2 {
        font-size: 17px;
        line-height: 1.4;
    }

    .home-seo-footer .home-seo-content {
        padding: 15px;
    }

    .home-seo-footer .home-seo-intro p {
        font-size: 13.5px;
        line-height: 1.68;
    }

    .home-seo-footer .home-seo-links {
        margin: 16px 0 18px;
        gap: 7px;
    }

    .home-seo-footer .home-seo-links a {
        min-height: 32px;
        padding: 0 11px;
        font-size: 11.5px;
    }

    .home-seo-footer .home-seo-accordions {
        gap: 8px;
    }

    .home-seo-footer .home-seo-accordion {
        border-radius: 10px;
    }

    .home-seo-footer .home-seo-accordion > summary {
        min-height: 44px;
        padding: 11px 42px 11px 13px;
        font-size: 13.5px;
        line-height: 1.4;
    }

    .home-seo-footer .home-seo-accordion > summary::after {
        right: 12px;
        width: 24px;
        height: 24px;
        font-size: 16px;
    }

    .home-seo-footer .home-seo-accordion-body {
        padding: 13px;
    }

    .home-seo-footer .home-seo-accordion-body h3 {
        font-size: 14px;
    }

    .home-seo-footer .home-seo-accordion-body h4 {
        font-size: 13px;
    }

    .home-seo-footer .home-seo-accordion-body p {
        font-size: 13px;
        line-height: 1.68;
    }
}
