/* Football Page — GoodStats design language */

/* ─── Variables (match site palette) ────────────────────── */
:root {
    --fb-primary: #3e4ab1;
    --fb-secondary: #636bae;
    --fb-text: #292929;
    --fb-muted: #5e646a;
    --fb-subtle: #8a8a8a;
    --fb-border: #eee;
    --fb-border-md: #ddd;
    --fb-bg: #f9f9f9;
    --fb-white: #fff;
    --fb-success: #22a05c;
    --fb-danger: #d33;
    --fb-warning: #f59e0b;
}

/* ─── Layout ─────────────────────────────────────────────── */
.football-page-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 0 36px;
    align-items: start;
    padding-top: 30px;
}

/* Mobile-only overlay element; kept out of the grid flow on all viewports */
.football-sidebar-overlay {
    display: none;
}

.football-sidebar-wrapper {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.football-sidebar-wrapper::-webkit-scrollbar {
    width: 3px;
}
.football-sidebar-wrapper::-webkit-scrollbar-thumb {
    background: #ddd;
}

.football-main-content {
    min-width: 0;
}

/* ─── Mobile Toggle ──────────────────────────────────────── */
.mobile-sidebar-toggle {
    display: none;
    position: fixed;
    top: 76px;
    left: 16px;
    z-index: 1000;
    background: var(--fb-primary);
    color: var(--fb-white);
    border: none;
    padding: 6px 13px;
    border-radius: 2px;
    cursor: pointer;
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ─── Sidebar ────────────────────────────────────────────── */
.football-sidebar {
}

.sidebar-section {
    margin-bottom: 28px;
}

.sidebar-title {
    text-align: left;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--fb-text);
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--fb-border-md);
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-title::before {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--fb-primary);
}

.sidebar-title i {
    color: var(--fb-primary);
    font-size: 12px;
    width: 14px;
    text-align: center;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav-item {
    border-bottom: 1px solid var(--fb-border);
}

.sidebar-nav-item:last-child {
    border-bottom: none;
}

.sidebar-nav-item a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 4px;
    color: var(--fb-muted);
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-align: left;
    transition: color 0.15s;
    position: relative;
}

.sidebar-nav-item a:hover {
    color: var(--fb-primary);
}

.sidebar-nav-item.active a {
    color: var(--fb-primary);
    font-weight: 700;
}

.sidebar-nav-item.active a::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: var(--fb-primary);
}

.sidebar-nav-item.add-team a {
    color: var(--fb-primary);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.flag-icon {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.wc-league-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0);
    flex-shrink: 0;
}

.countries-list {
    display: flex;
    flex-direction: column;
}

/* ─── Country Accordion ──────────────────────────────────── */
.country-accordion {
    display: flex;
    flex-direction: column;
}

.country-accordion-item {
    border-bottom: 1px solid var(--fb-border);
}

.country-accordion-item:last-child {
    border-bottom: none;
}

.country-accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 4px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.12s;
}

.country-accordion-header:hover {
    background: var(--fb-bg);
}

.country-accordion-item.open {
    background: var(--fb-bg);
}

.country-accordion-item.open > .country-accordion-header {
    color: var(--fb-primary);
}

.country-header-left {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.country-header-name {
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--fb-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.12s;
}

.country-accordion-item.open .country-header-name {
    color: var(--fb-primary);
    font-weight: 600;
}

.country-accordion-chevron {
    font-size: 9px;
    color: var(--fb-subtle);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.country-accordion-item.open .country-accordion-chevron {
    transform: rotate(90deg);
    color: var(--fb-primary);
}

.country-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

/* max-height when open is set dynamically by JS via scrollHeight */

.league-extra-item {
    display: none;
}

.league-extra-item.visible {
    display: list-item;
}

.league-show-more-item {
    list-style: none;
    padding: 2px 4px 4px;
}

.league-show-more-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--fb-primary);
    padding: 3px 0 3px 12px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 5px;
}

.league-show-more-btn:hover {
    text-decoration: underline;
}

.country-league-list {
    list-style: none;
    padding: 2px 4px 6px 4px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.country-league-item a {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 7px;
    padding: 5px 6px;
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: var(--fb-muted);
    text-decoration: none;
    border-radius: 2px;
    transition:
        background 0.12s,
        color 0.12s;
}

.country-league-item a::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--fb-subtle);
    flex-shrink: 0;
    transition: background 0.12s;
}

.country-league-item a:hover {
    background: #eef0fb;
    color: var(--fb-primary);
}

.country-league-item a:hover::before {
    background: var(--fb-primary);
}

.country-league-item.active a {
    color: var(--fb-primary);
    font-weight: 700;
}

.country-league-item.active a::before {
    background: var(--fb-primary);
}

/* ─── League Header ──────────────────────────────────────── */
.football-league-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 0;
    border-bottom: 2px solid var(--fb-border-md);
    position: relative;
}

.football-league-header::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 70px;
    height: 2px;
    background: var(--fb-primary);
}

.league-logo {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--fb-border-md);
    padding: 6px;
    background: var(--fb-white);
}

.league-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.league-details {
    flex: 1;
}

.league-name {
    color: var(--fb-text);
    font-family: "Playfair Display", serif;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.2;
}

.country-flag {
    width: 22px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

.league-season {
    color: var(--fb-muted);
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 500;
    margin: 0;
}

/* ─── Tabs ───────────────────────────────────────────────── */
.football-tabs {
    margin: 0 0 24px 0;
    border-bottom: 1px solid var(--fb-border-md);
}

.tabs-nav {
    overflow-x: auto;
    scrollbar-width: none;
}
.tabs-nav::-webkit-scrollbar {
    display: none;
}

.tabs-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: max-content;
}

.tab-item {
    flex-shrink: 0;
}

.tab-link {
    display: block;
    padding: 14px 18px;
    color: var(--fb-muted);
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition:
        color 0.15s,
        border-color 0.15s;
    white-space: nowrap;
}

.tab-link:hover {
    color: var(--fb-primary);
}

.tab-link.active {
    color: var(--fb-primary);
    border-bottom-color: var(--fb-primary);
}

/* ─── Content Panel ──────────────────────────────────────── */
.football-content-panel {
}

.panel-header {
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--fb-border-md);
    position: relative;
}

.panel-header::before {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 70px;
    height: 1px;
    background: var(--fb-primary);
}

.panel-title {
    color: var(--fb-text);
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-season-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--fb-primary);
    background: rgba(62, 74, 177, 0.08);
    border: 1px solid rgba(62, 74, 177, 0.2);
    border-radius: 4px;
    padding: 1px 7px;
    letter-spacing: 0.3px;
}

.panel-content {
}

/* ─── Archive Table ──────────────────────────────────────── */
.archive-table-container {
    overflow-x: auto;
}

.archive-table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
}

.archive-table thead tr {
    background: var(--fb-primary);
}

.archive-table th {
    padding: 10px 14px;
    text-align: left;
    color: var(--fb-white);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.winner-col {
    text-align: right;
}

.archive-row {
    border-bottom: 1px solid var(--fb-border);
    transition: background 0.1s;
}

.archive-row:hover {
    background: var(--fb-bg);
}

.season-cell {
    padding: 10px 14px;
    color: var(--fb-text);
    font-weight: 600;
    text-align: left;
}

.winner-cell {
    padding: 10px 14px;
    text-align: left !important;
}

.winner-info {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.winner-info .team-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.winner-name {
    color: var(--fb-text);
    font-weight: 600;
}

.no-winner {
    color: var(--fb-subtle);
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

/* ─── Standings Table ────────────────────────────────────── */
.standings-table-container {
    overflow-x: auto;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
}

.standings-table thead tr {
    background: var(--fb-primary);
}

.standings-table th {
    padding: 10px 8px;
    text-align: center;
    color: var(--fb-white);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.rank-col,
.points-col {
    width: 40px;
}
.team-col {
    text-align: left;
    min-width: 160px;
}
.form-col {
    min-width: 110px;
}
.goals-col,
.goals-cell {
    min-width: 56px;
}

.standings-row {
    border-bottom: 1px solid var(--fb-border);
    transition: background 0.1s;
}

.standings-row:hover {
    background: var(--fb-bg);
}

.standings-row:nth-child(even) {
    background: #fafafa;
}
.standings-row:nth-child(even):hover {
    background: var(--fb-bg);
}

.standings-row.promotion {
    border-left: 3px solid var(--fb-success);
}
.standings-row.secondary-promotion {
    border-left: 3px solid #f39c12;
}
.standings-row.relegation {
    border-left: 3px solid var(--fb-danger);
}

.rank-cell {
    padding: 9px 8px;
    text-align: center;
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 11px;
    font-weight: 700;
    color: var(--fb-muted);
    border-radius: 2px;
}

.standings-row:nth-child(-n + 4) .rank-number {
    background: var(--fb-primary);
    color: var(--fb-white);
}

.team-cell {
    padding: 9px 8px;
}

.team-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-info .team-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.team-name {
    color: var(--fb-text);
    font-size: 12px;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
}

.stats-cell {
    padding: 9px 8px;
    text-align: center;
    color: var(--fb-muted);
    font-size: 12px;
}

.points-cell {
    padding: 9px 8px;
    text-align: center;
}

.points-cell strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    padding: 3px 6px;
    background: var(--fb-primary);
    color: var(--fb-white);
    border-radius: 2px;
    font-size: 12px;
    font-weight: 700;
    font-family: "Poppins", sans-serif;
}

.form-cell {
    padding: 9px 8px;
}

.form-indicators {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.form-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 700;
    color: var(--fb-white);
    font-family: "Poppins", sans-serif;
}

.form-w {
    background: var(--fb-success);
}
.form-d {
    background: var(--fb-subtle);
}
.form-l {
    background: var(--fb-danger);
}

.standings-legend {
    display: flex;
    gap: 20px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--fb-border);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 7px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
}

.legend-color.promotion {
    background: var(--fb-success);
}
.legend-color.secondary-promotion {
    background: #f39c12;
}
.legend-color.relegation-zone {
    background: var(--fb-danger);
}

.legend-text {
    color: var(--fb-muted);
    font-family: "Poppins", sans-serif;
    font-size: 11px;
}

/* ─── Match League Header ────────────────────────────────── */
.match-league-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 8px;
    background: var(--fb-bg);
    border-bottom: 1px solid var(--fb-border);
}

.match-league-info {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--fb-text);
}

.match-league-star {
    color: var(--fb-subtle);
    font-size: 11px;
    cursor: pointer;
}

.match-league-pin {
    color: var(--fb-primary);
    font-size: 10px;
}

.match-klasemen-link {
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--fb-primary);
    text-decoration: none;
}

.match-klasemen-link:hover {
    text-decoration: underline;
}

/* ─── Round Header ───────────────────────────────────────── */
.match-round-header {
    padding: 6px 8px;
    font-family: "Poppins", sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: var(--fb-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f4f4f6;
    border-bottom: 1px solid var(--fb-border);
}

/* ─── Match Row ──────────────────────────────────────────── */
.match-row {
    display: grid;
    grid-template-columns: 28px 58px 1fr 36px 30px;
    align-items: center;
    border-bottom: 1px solid var(--fb-border);
    cursor: pointer;
    transition: background 0.1s;
}

.match-row:last-child {
    border-bottom: none;
}
.match-row:hover {
    background: var(--fb-bg);
}

.match-fav {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    color: #ccc;
    font-size: 11px;
    transition: color 0.1s;
}

.match-fav:hover {
    color: var(--fb-warning);
}

.match-time {
    padding: 8px 4px 8px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.match-date {
    font-family: "Poppins", sans-serif;
    font-size: 10px;
    color: var(--fb-subtle);
    font-weight: 500;
}

.match-kickoff {
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--fb-text);
}

.match-teams {
    padding: 7px 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.match-team {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.match-team-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.match-team-name {
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--fb-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-score-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 0;
}

.match-score-val {
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--fb-text);
    line-height: 1;
    text-align: center;
    min-width: 16px;
}

.match-score-val.pending {
    color: var(--fb-subtle);
    font-weight: 400;
}

.match-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 11px;
}

/* ─── Hasil Row (stacked home/away) ─────────────────────── */
.match-row.hasil-row {
    grid-template-columns: 58px 1fr 28px;
}

.match-teams-stacked {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 7px 8px 7px 0;
    min-width: 0;
}

.match-team-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.match-team-row .match-team-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.match-team-row .match-team-name {
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--fb-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-score-stacked {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 0;
    min-width: 28px;
}

/* ─── Show More ──────────────────────────────────────────── */
.show-more-matches {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--fb-primary);
    text-decoration: none;
    border-top: 1px solid var(--fb-border);
    transition: background 0.1s;
}

.show-more-matches:hover {
    background: var(--fb-bg);
}

/* ─── Ringkasan Sections ─────────────────────────────────── */
.ringkasan-section {
    margin-bottom: 28px;
}

.ringkasan-section-title {
    font-family: "Playfair Display", serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--fb-text);
    padding-bottom: 12px;
    margin-bottom: 0;
    border-bottom: 1px solid var(--fb-border-md);
    position: relative;
    text-align: left;
}

.ringkasan-section-title::before {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 70px;
    height: 1px;
    background: var(--fb-primary);
}

.match-block {
    border: 1px solid var(--fb-border);
    border-top: none;
}

/* ─── Standings Sub-tabs ─────────────────────────────────── */
.standings-subtabs {
    display: flex;
    border-bottom: 1px solid var(--fb-border-md);
    overflow-x: auto;
    scrollbar-width: none;
}

.standings-subtabs::-webkit-scrollbar {
    display: none;
}

.standings-subtab {
    padding: 10px 14px;
    font-family: "Poppins", sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--fb-muted);
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
    transition:
        color 0.15s,
        border-color 0.15s;
}

.standings-subtab:hover {
    color: var(--fb-primary);
}
.standings-subtab.active {
    color: var(--fb-primary);
    border-bottom-color: var(--fb-primary);
}

/* ─── Standings Filter ───────────────────────────────────── */
.standings-filter {
    display: flex;
    margin: 14px 0;
}

.standings-filter-btn {
    padding: 5px 13px;
    font-family: "Poppins", sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--fb-muted);
    cursor: pointer;
    border: 1px solid var(--fb-border-md);
    background: var(--fb-white);
    margin-right: -1px;
    transition:
        background 0.1s,
        color 0.1s;
    border-radius: 0;
}

.standings-filter-btn:first-child {
    border-radius: 2px 0 0 2px;
}
.standings-filter-btn:last-child {
    border-radius: 0 2px 2px 0;
    margin-right: 0;
}

.standings-filter-btn:hover {
    background: var(--fb-bg);
    color: var(--fb-primary);
}
.standings-filter-btn.active {
    background: var(--fb-primary);
    color: var(--fb-white);
    border-color: var(--fb-primary);
    z-index: 1;
    position: relative;
}

/* ─── Summary ────────────────────────────────────────────── */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px;
    background: var(--fb-border);
    border: 1px solid var(--fb-border);
    margin-bottom: 24px;
}

.summary-card {
    background: var(--fb-white);
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: background 0.1s;
}

.summary-card:hover {
    background: var(--fb-bg);
}

.summary-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fb-primary);
    color: var(--fb-white);
    font-size: 15px;
    flex-shrink: 0;
    border-radius: 2px;
}

.summary-info {
    flex: 1;
    min-width: 0;
}

.summary-title {
    color: var(--fb-muted);
    font-family: "Poppins", sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin: 0 0 5px 0;
}

.summary-value {
    color: var(--fb-text);
    font-family: "Playfair Display", serif;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.summary-subtitle {
    color: var(--fb-subtle);
    font-family: "Poppins", sans-serif;
    font-size: 10px;
    margin: 3px 0 0 0;
}

.summary-description {
    border-top: 1px solid var(--fb-border-md);
    padding-top: 18px;
    position: relative;
}

.summary-description::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 50px;
    height: 1px;
    background: var(--fb-primary);
}

.summary-description h3 {
    color: var(--fb-text);
    font-family: "Playfair Display", serif;
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-align: left;
}

.summary-description p {
    color: var(--fb-muted);
    font-size: 12px;
    line-height: 1.8;
    margin: 0;
    padding: 0;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .football-page-layout {
        grid-template-columns: 1fr;
        padding-top: 20px;
    }

    .football-sidebar-wrapper {
        position: static;
        max-height: none;
    }

    .football-sidebar {
        position: fixed;
        top: 0;
        left: -250px;
        width: 230px;
        height: 100vh;
        z-index: 1001;
        overflow-y: auto;
        transition: left 0.25s ease;
        background: var(--fb-white);
        border-right: 1px solid var(--fb-border-md);
        padding: 20px 16px;
    }

    .football-sidebar.mobile-open {
        left: 0;
    }

    .mobile-sidebar-toggle {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 16px;
        position: relative;
        top: auto;
        left: auto;
    }

    .football-sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition:
            opacity 0.25s ease,
            visibility 0.25s ease;
    }

    .football-sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 768px) {
    .football-league-header {
        gap: 14px;
    }

    .league-name {
        font-size: 18px;
    }

    .tab-link {
        padding: 11px 13px;
        font-size: 10px;
    }

    .fixture-card {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .fixture-meta {
        border-left: none !important;
        padding-left: 0 !important;
    }
    .fixture-meta {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .fixture-teams {
        justify-content: flex-start;
    }

    .summary-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }

    .standings-table th:nth-child(n + 7),
    .standings-table td:nth-child(n + 7) {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MATCH DETAIL (result page)
   ═══════════════════════════════════════════════════════════════ */

/* ─── Fix: anchor hasil-row inherits grid layout ─────────────── */
a.match-row {
    text-decoration: none;
    color: inherit;
}

/* ─── Match Header Card ──────────────────────────────────────── */
.result-match-header {
    background: var(--fb-white);
    border: 1px solid var(--fb-border);
    border-radius: 4px;
    padding: 18px 20px 14px;
    margin-bottom: 0;
}

.result-match-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
    font-family: "Poppins", sans-serif;
}

.result-match-date {
    font-size: 12px;
    color: var(--fb-muted);
    font-weight: 500;
}

.result-match-round {
    font-size: 11px;
    color: var(--fb-subtle);
    background: var(--fb-bg);
    border: 1px solid var(--fb-border);
    border-radius: 2px;
    padding: 2px 7px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.result-teams-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
}

.result-team-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.result-team-home {
    align-items: center;
}

.result-team-away {
    align-items: center;
}

.result-team-logo-wrap {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-team-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.result-team-name {
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--fb-text);
    text-align: center;
    line-height: 1.3;
}

.result-score-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.result-score-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-score-num {
    font-family: "Poppins", sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--fb-text);
    line-height: 1;
    min-width: 30px;
    text-align: center;
}

.result-score-sep {
    font-family: "Poppins", sans-serif;
    font-size: 28px;
    font-weight: 400;
    color: var(--fb-subtle);
    line-height: 1;
}

.result-status-badge {
    font-family: "Poppins", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: var(--fb-muted);
    text-transform: uppercase;
    background: var(--fb-bg);
    border-radius: 2px;
    padding: 3px 8px;
}

.result-halftime-score {
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    color: var(--fb-subtle);
    font-weight: 500;
}

/* ─── Tabs ───────────────────────────────────────────────────── */
.result-tabs {
    display: flex;
    border-bottom: 2px solid var(--fb-border);
    background: var(--fb-white);
    border-left: 1px solid var(--fb-border);
    border-right: 1px solid var(--fb-border);
}

.result-tab-btn {
    background: none;
    border: none;
    padding: 12px 18px;
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--fb-muted);
    letter-spacing: 0.4px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition:
        color 0.15s,
        border-color 0.15s;
}

.result-tab-btn:hover {
    color: var(--fb-text);
}

.result-tab-btn.active {
    color: var(--fb-primary);
    border-bottom-color: var(--fb-primary);
}

.result-tab-content {
    display: none;
}

.result-tab-content.active {
    display: block;
}

/* ─── Sub-tabs ───────────────────────────────────────────────── */
.result-subtabs {
    display: flex;
    gap: 2px;
    padding: 10px 12px 0;
    background: var(--fb-white);
    border-left: 1px solid var(--fb-border);
    border-right: 1px solid var(--fb-border);
}

.result-subtab-btn {
    background: none;
    border: none;
    padding: 7px 14px;
    font-family: "Poppins", sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: var(--fb-muted);
    letter-spacing: 0.4px;
    cursor: pointer;
    border-radius: 2px 2px 0 0;
    transition:
        background 0.1s,
        color 0.1s;
}

.result-subtab-btn:hover {
    background: var(--fb-bg);
    color: var(--fb-text);
}

.result-subtab-btn.active {
    background: var(--fb-primary);
    color: var(--fb-white);
}

.result-subtab-content {
    display: none;
    background: var(--fb-white);
    border: 1px solid var(--fb-border);
    border-top: none;
}

.result-subtab-content.active {
    display: block;
}

/* ─── Events ─────────────────────────────────────────────────── */
.result-events {
    padding-bottom: 8px;
}

.result-half-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px;
    background: #f4f4f6;
    border-bottom: 1px solid var(--fb-border);
    border-top: 1px solid var(--fb-border);
}

.result-half-label {
    font-family: "Poppins", sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: var(--fb-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-half-score {
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--fb-text);
}

.result-event-row {
    display: flex;
    align-items: center;
    padding: 7px 12px;
    border-bottom: 1px solid var(--fb-border);
    min-height: 36px;
}

.result-event-row:last-child {
    border-bottom: none;
}

.result-event-row.home {
    justify-content: flex-start;
}

.result-event-row.away {
    justify-content: flex-end;
}

.result-event-content {
    display: flex;
    align-items: center;
    gap: 5px;
    max-width: 80%;
}

.result-event-minute {
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--fb-muted);
    min-width: 32px;
    flex-shrink: 0;
}

.result-event-row.away .result-event-minute {
    text-align: right;
    min-width: 32px;
    order: 10;
}

.result-event-icon {
    font-size: 12px;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.result-event-score {
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: var(--fb-text);
    background: var(--fb-bg);
    border: 1px solid var(--fb-border);
    border-radius: 2px;
    padding: 1px 5px;
    flex-shrink: 0;
}

.result-event-player {
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--fb-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-event-assist {
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: var(--fb-subtle);
    white-space: nowrap;
}

.result-event-own-goal {
    font-size: 10px;
    color: var(--fb-danger);
    font-weight: 700;
}

/* ─── Statistics ─────────────────────────────────────────────── */
.result-stats {
    padding: 12px 0 4px;
}

.result-stats-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px 10px;
    border-bottom: 1px solid var(--fb-border);
    margin-bottom: 4px;
}

.result-stats-team-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #3e4ab1;
}

.result-stats-team-away {
    flex-direction: row-reverse;
    color: #e8652a;
}

.result-stats-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.result-stat-row {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-bottom: 1px solid var(--fb-border);
}

.result-stat-row:last-child {
    border-bottom: none;
}

.result-stat-value {
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--fb-text);
}

.result-stat-value.home {
    text-align: left;
    color: #3e4ab1;
}

.result-stat-value.away {
    text-align: right;
    color: #e8652a;
}

.result-stat-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.result-stat-label {
    font-family: "Poppins", sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: var(--fb-muted);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.result-stat-bar {
    display: flex;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    background: var(--fb-border);
}

.result-stat-bar-home {
    background: #3e4ab1;
    height: 100%;
    border-radius: 3px 0 0 3px;
    transition: width 0.3s ease;
}

.result-stat-bar-away {
    background: #e8652a;
    height: 100%;
    border-radius: 0 3px 3px 0;
    transition: width 0.3s ease;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .result-teams-row {
        gap: 8px;
    }

    .result-team-logo-wrap {
        width: 48px;
        height: 48px;
    }

    .result-team-logo {
        width: 44px;
        height: 44px;
    }

    .result-score-num {
        font-size: 28px;
    }

    .result-team-name {
        font-size: 11px;
    }

    .result-tab-btn {
        padding: 10px 12px;
        font-size: 10px;
    }

    .result-event-content {
        max-width: 95%;
    }

    .result-stat-row {
        grid-template-columns: 36px 1fr 36px;
    }
}

/* ─── World Cup 2026 ───────────────────────────────────────────────────────── */

/* Sidebar hero */
.wc-hero-section {
    padding-bottom: 0;
}

.wc-hero {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 4px;
}

.wc-hero-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
}

.wc-hero-title {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.wc-hero-dates,
.wc-hero-host {
    color: rgba(255, 255, 255, 0.78);
    font-size: 10px;
    line-height: 1.5;
}

/* Phase nav badge */
.wc-phase-count {
    margin-left: auto;
    background: var(--fb-primary, #1a73e8);
    color: #fff;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    flex-shrink: 0;
}

.wc-phase-disabled {
    opacity: 0.38;
    pointer-events: none;
}

.wc-phase-empty a {
    opacity: 0.45;
    font-style: italic;
}

/* Group grid in sidebar */
.wc-group-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    margin-top: 6px;
}

.wc-group-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 2px;
    background: var(--fb-bg, #f5f5f5);
    border: 1px solid var(--fb-border-md, #ddd);
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    color: var(--fb-muted, #666);
    text-decoration: none;
    transition:
        background 0.12s,
        color 0.12s,
        border-color 0.12s;
}

.wc-group-badge:hover,
.wc-group-badge.active {
    background: var(--fb-primary, #1a73e8);
    color: #fff;
    border-color: var(--fb-primary, #1a73e8);
}

/* Main WC banner */
.wc-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: #0d1b6e url("/icons/landscape-ven.jpg") center/cover no-repeat;
    border-radius: 8px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

/* Gradient circular overlay over the background image */
.wc-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(13, 27, 110, 0.45) 0%,
        rgba(13, 27, 110, 0.6) 45%,
        rgba(13, 27, 110, 0.95) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.wc-banner::before {
    content: "2026";
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 84px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.08);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 2;
}

.wc-banner-logo,
.wc-banner-info,
.wc-live-badge {
    position: relative;
    z-index: 2;
}

.wc-banner-logo {
    flex-shrink: 0;
}

.wc-banner-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transform-origin: center bottom;
    animation: wc-ball-appear 0.9s cubic-bezier(0.22, 1.2, 0.36, 1) both;
}

/* Ball drops in, bounces, and settles with a spin */
@keyframes wc-ball-appear {
    0% {
        opacity: 0;
        transform: translateY(-60px) scale(0.3) rotate(-90deg);
    }
    55% {
        opacity: 1;
        transform: translateY(8px) scale(1.08) rotate(8deg);
    }
    75% {
        transform: translateY(-4px) scale(0.98) rotate(-3deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .wc-banner-logo img {
        animation: none;
    }
}

.wc-banner-info {
    flex: 1;
    min-width: 0;
}

.wc-banner-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.wc-banner-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
}

.wc-banner-meta i {
    margin-right: 4px;
    opacity: 0.8;
}

/* Live badge in banner */
.wc-live-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 20px;
    padding: 6px 14px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.wc-live-dot {
    width: 8px;
    height: 8px;
    background: #ef5350;
    border-radius: 50%;
    animation: wcLivePulse 1.2s ease-in-out infinite;
    flex-shrink: 0;
}

.wc-live-dot-inline {
    color: #ef5350;
    font-size: 8px;
    margin-right: 4px;
    animation: wcLivePulse 1.2s ease-in-out infinite;
}

@keyframes wcLivePulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.45;
        transform: scale(1.35);
    }
}

/* Live match rows */
.match-row.wc-live-row {
    background: rgba(239, 83, 80, 0.04);
}

.wc-live-time {
    color: #ef5350 !important;
    font-weight: 700;
    animation: wcLivePulse 1.2s infinite;
}

/* Ringkasan sections */
.ringkasan-section {
    margin-bottom: 4px;
}

/* Show-all link at bottom of match block */
.match-show-all {
    padding: 10px 16px;
    border-top: 1px solid var(--fb-border-md, #eee);
    text-align: center;
}

.match-show-all a {
    color: var(--fb-primary, #1a73e8);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.match-show-all a:hover {
    text-decoration: underline;
}

/* Group filter pills */
.wc-group-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--fb-border-md, #eee);
}

.wc-group-pill {
    padding: 5px 12px;
    border: 1px solid var(--fb-border-md, #ddd);
    border-radius: 20px;
    background: var(--fb-white, #fff);
    font-size: 11px;
    font-weight: 600;
    color: var(--fb-muted, #666);
    cursor: pointer;
    transition:
        background 0.12s,
        color 0.12s,
        border-color 0.12s;
}

.wc-group-pill:hover,
.wc-group-pill.active {
    background: var(--fb-primary, #1a73e8);
    color: #fff;
    border-color: var(--fb-primary, #1a73e8);
}

/* Group block in klasemen tab */
.wc-group-block {
    margin-bottom: 28px;
}

.wc-group-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--fb-primary, #1a73e8);
    margin: 0 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--fb-primary, #1a73e8);
    display: inline-block;
}

.wc-group-table thead th,
.wc-group-table tbody td {
    font-size: 11px;
}

/* Score pending state */
.match-score-val.score-pending {
    color: var(--fb-subtle, #aaa);
}

/* 2-column group grid on wider screens */
@media (min-width: 900px) {
    .wc-groups-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px 32px;
    }
}

/* Responsive: stack WC banner on mobile */
@media (max-width: 600px) {
    .wc-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }

    .wc-banner::before {
        display: none;
    }

    .wc-banner-title {
        font-size: 16px;
        text-align: left;
    }

    .wc-live-badge {
        align-self: flex-start;
    }

    /* Logo bleeds off the right edge on mobile */
    .wc-banner-logo {
        position: absolute;
        top: 50%;
        right: -32px;
        transform: translateY(-50%);
        z-index: 2;
        pointer-events: none;
        opacity: 0.6;
    }

    .wc-banner-logo img {
        width: 140px;
        height: 140px;
    }

    .wc-banner-info {
        padding-right: 90px;
    }
}

/* ─── WC Article Section ──────────────────────────────────────────────────── */

.wc-articles-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid var(--fb-border-md, #e8e8e8);
}

.wc-articles-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.wc-articles-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--fb-text, #1a1a1a);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wc-articles-title i {
    color: var(--fb-primary, #1a73e8);
    font-size: 14px;
}

.wc-articles-see-all {
    font-size: 11px;
    font-weight: 600;
    color: var(--fb-primary, #1a73e8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.wc-articles-see-all:hover {
    text-decoration: underline;
}

.wc-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.wc-article-card {
    display: flex;
    flex-direction: column;
    background: var(--fb-white, #fff);
    border: 1px solid var(--fb-border-md, #e8e8e8);
    border-radius: 6px;
    overflow: hidden;
    transition:
        box-shadow 0.15s,
        transform 0.15s;
}

.wc-article-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.wc-article-img-wrap {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f0;
}

.wc-article-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.wc-article-card:hover .wc-article-img-wrap img {
    transform: scale(1.04);
}

.wc-article-img-wrap.wc-no-img {
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
}

.wc-article-topic {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--fb-primary, #1a73e8);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 7px;
    border-radius: 3px;
    pointer-events: none;
}

.wc-article-body {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wc-article-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wc-article-title a {
    color: var(--fb-text, #1a1a1a);
    text-decoration: none;
}

.wc-article-title a:hover {
    color: var(--fb-primary, #1a73e8);
}

.wc-article-date {
    font-size: 10px;
    color: var(--fb-subtle, #999);
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 2-col on tablet */
@media (max-width: 860px) {
    .wc-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wc-articles-grid .wc-article-card:last-child:nth-child(odd) {
        display: none;
    }
}

/* 1-col on mobile */
@media (max-width: 540px) {
    .wc-articles-grid {
        grid-template-columns: 1fr;
    }

    .wc-articles-grid .wc-article-card:last-child:nth-child(odd) {
        display: flex;
    }

    .wc-article-card {
        flex-direction: row;
        height: 80px;
    }

    .wc-article-img-wrap {
        width: 100px;
        aspect-ratio: unset;
        flex-shrink: 0;
    }

    .wc-article-topic {
        display: none;
    }

    .wc-article-title {
        -webkit-line-clamp: 2;
        font-size: 12px;
    }
}

/* ─── Lineup ──────────────────────────────────────────────────────────────── */
.lineup-wrap {
    padding: 12px 0 4px;
}

.lineup-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1px;
    background: var(--fb-border);
}

.lineup-team {
    background: var(--fb-white);
    padding: 12px 14px 14px;
}

.lineup-team-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--fb-border-md);
}

.lineup-team.away .lineup-team-header {
    flex-direction: row-reverse;
    text-align: right;
}

.lineup-team-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.lineup-team-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.lineup-team.away .lineup-team-info {
    align-items: flex-end;
}

.lineup-team-name {
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--fb-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lineup-formation {
    font-family: "Poppins", sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: var(--fb-primary);
    background: rgba(62, 74, 177, 0.08);
    padding: 1px 6px;
    border-radius: 3px;
    display: inline-block;
}

.lineup-section-label {
    font-family: "Poppins", sans-serif;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--fb-muted);
    margin: 0 0 6px 0;
    padding-top: 4px;
}

.lineup-section-subs {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed var(--fb-border-md);
}

.lineup-player-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lineup-player-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    border-bottom: 1px solid var(--fb-border);
}

.lineup-player-row:last-child {
    border-bottom: none;
}

.lineup-player-row.sub {
    opacity: 0.75;
}

.lineup-team.away .lineup-player-row {
    flex-direction: row-reverse;
    text-align: right;
}

.lineup-player-num {
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--fb-white);
    background: var(--fb-primary);
    width: 20px;
    height: 20px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.lineup-subs-list .lineup-player-num {
    background: var(--fb-muted);
}

.lineup-player-name {
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--fb-text);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lineup-player-pos {
    font-family: "Poppins", sans-serif;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    flex-shrink: 0;
    text-transform: uppercase;
}

.lineup-coach {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed var(--fb-border-md);
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    color: var(--fb-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.lineup-team.away .lineup-coach {
    flex-direction: row-reverse;
    text-align: right;
}

.lineup-coach i {
    font-size: 11px;
    color: var(--fb-subtle);
}

/* ─── Pitch Lineup ───────────────────────────────────────────────────────── */

/* Formation header */
.pitch-formation-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 8px;
    background: var(--fb-bg);
    border-bottom: 1px solid var(--fb-border);
    font-family: "Poppins", sans-serif;
}
.pitch-formation-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--fb-muted);
    text-transform: uppercase;
}
.pitch-formation-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--fb-text);
}

/* Pitch field */
.pitch-field {
    position: relative;
    display: flex;
    min-height: 300px;
    background: #2e7d32;
    background-image: repeating-linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.04) 0px,
        rgba(255, 255, 255, 0.04) 40px,
        transparent 40px,
        transparent 80px
    );
    overflow: hidden;
}
.pitch-center-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.25);
    z-index: 1;
}
.pitch-center-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

/* Each half */
.pitch-half {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    padding: 12px 6px;
    gap: 4px;
}
.pitch-half-away {
    flex-direction: row-reverse;
}

/* Formation column (one per formation row) */
.pitch-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    gap: 6px;
}

/* Player card on pitch */
.pitch-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: default;
}
.pitch-player-photo-wrap {
    position: relative;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}
.pitch-player-photo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: #1b5e20;
    display: block;
}
.pitch-player-no-photo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    font-family: "Poppins", sans-serif;
}
.pitch-rating {
    position: absolute;
    bottom: -2px;
    right: -4px;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    font-family: "Poppins", sans-serif;
    line-height: 1.4;
    white-space: nowrap;
}
.pitch-rating.pr-gold {
    background: #f59e0b;
    color: #fff;
}
.pitch-rating.pr-green {
    background: #22a05c;
    color: #fff;
}
.pitch-rating.pr-yellow {
    background: #84cc16;
    color: #fff;
}
.pitch-rating.pr-red {
    background: #d33;
    color: #fff;
}

.pitch-player-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 56px;
}
.pitch-player-num {
    font-size: 9px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    font-family: "Poppins", sans-serif;
    line-height: 1.2;
}
.pitch-player-name {
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    font-family: "Poppins", sans-serif;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 56px;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Substitutes section */
.pitch-subs-section {
    border-top: 1px solid var(--fb-border);
    padding-bottom: 4px;
}
.pitch-subs-title {
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--fb-muted);
    text-align: center;
    padding: 10px 16px 6px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--fb-border);
}
.pitch-subs-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1px;
    background: var(--fb-border);
}
.pitch-subs-col {
    background: var(--fb-white);
    display: flex;
    flex-direction: column;
}
.pitch-subs-col-away {
}

.pitch-sub-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-bottom: 1px solid var(--fb-border);
}
.pitch-sub-row:last-child {
    border-bottom: none;
}
.pitch-sub-row-away {
    flex-direction: row-reverse;
}
.pitch-sub-photo-wrap {
    flex-shrink: 0;
}
.pitch-sub-photo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--fb-bg);
    display: block;
    border: 1px solid var(--fb-border-md);
}
/* Letter-avatar fallback: initials show through if there's no photo */
.pitch-avatar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--fb-muted);
    text-transform: uppercase;
    line-height: 1;
}
.pitch-avatar-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.pitch-sub-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pitch-sub-info-away {
    align-items: flex-end;
}
.pitch-sub-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.pitch-sub-name {
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--fb-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pitch-rating-sm {
    position: static;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    font-family: "Poppins", sans-serif;
    flex-shrink: 0;
}
.pitch-sub-event {
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    color: var(--fb-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}
.pitch-sub-event-away {
    justify-content: flex-end;
}
.pitch-sub-icon {
    font-size: 10px;
    color: var(--fb-success);
}

/* Coach row */
.pitch-coaches {
    display: flex;
    justify-content: space-between;
    padding: 10px 16px;
    border-top: 1px solid var(--fb-border);
    background: var(--fb-bg);
}
.pitch-coach-side {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pitch-coach-photo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--fb-border);
}
.pitch-coach-label {
    font-family: "Poppins", sans-serif;
    font-size: 10px;
    color: var(--fb-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.pitch-coach-name {
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--fb-text);
}

/* Shared section wrapper — used by subs + player list */
.pitch-section {
    border-top: 1px solid var(--fb-border);
}
.pitch-section-title {
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--fb-muted);
    text-align: center;
    padding: 10px 16px 6px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--fb-border);
    background: var(--fb-bg);
}
.pitch-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1px;
    background: var(--fb-border);
}
.pitch-two-col-side {
    background: var(--fb-white);
    display: flex;
    flex-direction: column;
}

/* Player list rows */
.pitch-list-team-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px 8px;
    border-bottom: 1px solid var(--fb-border);
    background: var(--fb-bg);
}
.pitch-list-team-header-away {
    flex-direction: row-reverse;
}
.pitch-list-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}
.pitch-list-team-name {
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--fb-text);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pitch-list-formation {
    font-family: "Poppins", sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: var(--fb-primary);
    background: rgba(62, 74, 177, 0.08);
    padding: 1px 6px;
    border-radius: 3px;
    flex-shrink: 0;
}
.pitch-list-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 7px;
    padding: 6px 14px;
    border-bottom: 1px solid var(--fb-border);
    font-family: "Poppins", sans-serif;
}
.pitch-list-row:last-child {
    border-bottom: none;
}
/* Each row groups its cells in two <span>s; keep their contents on one line */
.pitch-list-row > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    min-width: 0;
}
.pitch-list-row-away {
    flex-direction: row;
    flex-wrap: nowrap;
}

/* Left-align both teams in Susunan Pemain (away rows/header are reversed,
   so flex-end packs them toward the left while keeping element order). */
.pitch-list-team-header-away,
.pitch-list-row-away,
.pitch-list-row-home {
    justify-content: space-between;
    flex-wrap: nowrap;
}
.pitch-list-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--fb-muted);
    min-width: 18px;
    text-align: center;
    flex-shrink: 0;
    display: inline-block;
}
.pitch-list-photo {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--fb-bg);
    border: 1px solid var(--fb-border-md);
}
.pitch-list-name {
    flex: 1;
    font-size: 12px;
    font-weight: 500;
    color: var(--fb-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pitch-list-pos {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    flex-shrink: 0;
}

/* Pitch scaler: shrinks the whole pitch proportionally on narrow screens
   (JS sets the field transform + scaler height; desktop proportions kept). */
.pitch-field-scaler {
    overflow: hidden;
}
.pitch-field-scaler > .pitch-field {
    transform-origin: top left;
}

/* Responsive */
@media (max-width: 600px) {
    .pitch-sub-row {
        padding: 6px 10px;
        gap: 7px;
    }
    .pitch-two-col {
        grid-template-columns: 1fr 1fr;
    }

    /* Susunan pemain: one scrollbar on the wrapper holding both teams —
       not the outer section, not each home/away column individually. */
    .pitch-list-scroll {
        overflow-x: auto;
    }
    .pitch-list-scroll .pitch-two-col {
        grid-template-columns: minmax(50%, max-content) minmax(50%, max-content);
        width: max-content;
        min-width: 100%;
    }
    .pitch-list-name {
        flex: 0 0 auto;
        overflow: visible;
        text-overflow: clip;
    }
}

/* ─── Player Ratings ─────────────────────────────────────────────────────── */
.ratings-wrap {
    padding: 12px 0 4px;
}

.ratings-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1px;
    background: var(--fb-border);
}

.ratings-team {
    background: var(--fb-white);
    padding: 12px 14px 14px;
}

.ratings-team-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--fb-border-md);
}

.ratings-team-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.ratings-team-name {
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--fb-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ratings-empty {
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    color: var(--fb-muted);
    padding: 8px 0;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--fb-border);
}

.rating-row:last-child {
    border-bottom: none;
}

.rating-row.rating-sub {
    opacity: 0.65;
}

.rating-player-num {
    font-family: "Poppins", sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: var(--fb-muted);
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.rating-player-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rating-player-name {
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--fb-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rating-player-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.rating-minutes {
    font-family: "Poppins", sans-serif;
    font-size: 9px;
    color: var(--fb-subtle);
}

.rating-badge-goal,
.rating-badge-assist {
    font-family: "Poppins", sans-serif;
    font-size: 9px;
    font-weight: 600;
    color: var(--fb-muted);
    display: flex;
    align-items: center;
    gap: 2px;
}

.rating-badge-goal i {
    color: var(--fb-primary);
}
.rating-badge-assist i {
    color: var(--fb-success);
}

.rating-badge-card {
    display: inline-block;
    width: 8px;
    height: 11px;
    border-radius: 1px;
    flex-shrink: 0;
}

.rating-badge-card.yellow {
    background: var(--fb-warning);
}
.rating-badge-card.red {
    background: var(--fb-danger);
}

.rating-badge {
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 700;
    min-width: 34px;
    text-align: center;
    padding: 3px 6px;
    border-radius: 4px;
    flex-shrink: 0;
    line-height: 1.3;
}

.rating-good {
    background: #e8f5e9;
    color: #2e7d32;
}
.rating-avg {
    background: #fff8e1;
    color: #f59e0b;
}
.rating-poor {
    background: #ffebee;
    color: var(--fb-danger);
}
.rating-na {
    background: var(--fb-bg);
    color: var(--fb-subtle);
}

/* Position colour pills (shared by lineup + ratings) */
.pos-g {
    background: #fff3e0;
    color: #e65100;
}
.pos-d {
    background: #e3f2fd;
    color: #1565c0;
}
.pos-m {
    background: #e8f5e9;
    color: #2e7d32;
}
.pos-f {
    background: #fce4ec;
    color: #c62828;
}

/* ─── Responsive: stack lineup / ratings on mobile ───────────────────────── */
@media (max-width: 600px) {
    .lineup-columns,
    .ratings-columns {
        grid-template-columns: 1fr;
        gap: 1px;
    }
}

/* ─── Peringkat (standings in result page) ───────────────── */
.peringkat-group {
    margin-bottom: 0;
    border-bottom: 1px solid var(--fb-border);
}
.peringkat-group:last-child {
    border-bottom: none;
}
.peringkat-group-header {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fb-muted);
    padding: 10px 16px 6px;
    background: var(--fb-bg);
}
/* Horizontal scroll when a standings table is wider than the viewport */
.peringkat-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.peringkat-table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
}
.peringkat-table-wrap .peringkat-table {
    min-width: max-content;
}
.peringkat-table thead th {
    padding: 6px 8px;
    text-align: center;
    color: var(--fb-muted);
    font-weight: 600;
    font-size: 11px;
    border-bottom: 1px solid var(--fb-border);
    background: var(--fb-bg);
}
.peringkat-table thead th.peringkat-team-col {
    text-align: left;
    padding-left: 16px;
}
.peringkat-table tbody td {
    padding: 8px 8px;
    text-align: center;
    color: var(--fb-text);
    border-bottom: 1px solid var(--fb-border);
}
.peringkat-table tbody tr:last-child td {
    border-bottom: none;
}
.peringkat-rank {
    color: var(--fb-muted);
    font-weight: 600;
}
.peringkat-team {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    padding-left: 16px !important;
}
.peringkat-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}
.peringkat-pts {
    font-weight: 700;
}
/* Qualification zone row accent via left border on first td */
.ks-zone-direct td:first-child {
    border-left: 3px solid #3e4ab1;
}
.ks-zone-third td:first-child {
    border-left: 3px solid var(--fb-success);
}

.peringkat-highlight td {
    background: #fff8f0;
}

/* Klasemen table specifics */
.ks-table {
    border-collapse: collapse;
}
.ks-rank-col {
    width: 28px;
    padding: 0 !important;
}
.ks-pts-col {
    color: var(--fb-primary);
}
.ks-pola-col {
    min-width: 90px;
    text-align: right;
}
.ks-rank {
    padding: 0 !important;
}
.ks-rank-badge {
    display: inline-block;
    padding: 6px 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--fb-muted);
}
.ks-zone-direct.ks-rank-badge {
    color: #3e4ab1;
}
.ks-zone-third.ks-rank-badge {
    color: var(--fb-success);
}
.ks-goals {
    font-weight: 600;
    letter-spacing: 0.02em;
}
.ks-pts {
    font-weight: 800;
    color: var(--fb-primary);
    font-size: 14px;
}
.ks-pola {
    white-space: nowrap;
    text-align: right;
    padding-right: 12px !important;
}

/* POLA form badges */
.pola-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    font-family: "Poppins", sans-serif;
    margin-left: 2px;
}
.pola-w {
    background: #d4edda;
    color: var(--fb-success);
}
.pola-d {
    background: #f5f5f5;
    color: var(--fb-muted);
    border: 1px solid var(--fb-border-md);
}
.pola-l {
    background: #fde8e8;
    color: var(--fb-danger);
}
.pola-ns {
    background: var(--fb-bg);
    color: var(--fb-subtle);
    border: 1px solid var(--fb-border-md);
}

/* Legend */
.ks-legend {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 16px 6px;
}
.ks-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--fb-muted);
    font-family: "Poppins", sans-serif;
}
.ks-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
}
.ks-legend-dot.ks-zone-direct-dot {
    background: #3e4ab1;
}
.ks-legend-dot.ks-zone-third-dot {
    background: var(--fb-success);
}

/* Tiebreaker note */
.ks-tiebreaker {
    padding: 8px 16px 14px;
    font-size: 11px;
    color: var(--fb-subtle);
    font-family: "Poppins", sans-serif;
    line-height: 1.6;
    margin: 0;
}

/* Statistik sub-tabs */
.stat-subtabs {
    display: flex;
    border-bottom: 1px solid var(--fb-border);
    background: var(--fb-bg);
}
.stat-subtab-btn {
    flex: 1;
    padding: 10px 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--fb-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-family: "Poppins", sans-serif;
    transition:
        color 0.15s,
        border-color 0.15s;
    text-transform: uppercase;
}
.stat-subtab-btn.active,
.stat-subtab-btn:hover {
    color: var(--fb-primary);
    border-bottom-color: var(--fb-primary);
}
.stat-subtab-content {
    display: none;
}
.stat-subtab-content.active {
    display: block;
}

/* Peringkat sub-tabs (reuse result-subtabs shell) */
.peringkat-subtabs {
    border-bottom: 1px solid var(--fb-border);
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
}
.peringkat-subtabs::-webkit-scrollbar {
    display: none;
}
.peringkat-subtab-btn {
    flex-shrink: 0;
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--fb-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-family: "Poppins", sans-serif;
    transition:
        color 0.15s,
        border-color 0.15s;
}
.peringkat-subtab-btn.active,
.peringkat-subtab-btn:hover {
    color: var(--fb-primary);
    border-bottom-color: var(--fb-primary);
}
.peringkat-subtab-content {
    display: none;
}
.peringkat-subtab-content.active {
    display: block;
}

/* Over/Under threshold pills */
.ou-thresholds {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--fb-border);
    overflow-x: auto;
    scrollbar-width: none;
}
.ou-thresholds::-webkit-scrollbar {
    display: none;
}
.ou-threshold-btn {
    padding: 5px 13px;
    border-radius: 20px;
    border: 1px solid var(--fb-border-md);
    background: var(--fb-white);
    color: var(--fb-text);
    font-size: 13px;
    font-weight: 500;
    font-family: "Poppins", sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition:
        background 0.15s,
        color 0.15s,
        border-color 0.15s;
}
.ou-threshold-btn.active {
    background: var(--fb-primary);
    color: #fff;
    border-color: var(--fb-primary);
    font-weight: 700;
}
.ou-threshold-btn:hover:not(.active) {
    border-color: var(--fb-primary);
    color: var(--fb-primary);
}

/* O/U table specifics */
.ou-table .ou-rank-col {
    width: 28px;
}
.ou-val-over {
    color: var(--fb-success);
    font-weight: 700;
}
.ou-val-under {
    color: var(--fb-muted);
}
.ou-goals {
    font-weight: 600;
    color: var(--fb-text);
    letter-spacing: 0.02em;
}
.ou-recent {
    white-space: nowrap;
}
.ou-recent-col {
    min-width: 100px;
    text-align: right;
}

/* Last-5 badges */
.ou-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    font-family: "Poppins", sans-serif;
    margin-left: 2px;
}
.ou-badge-over {
    background: #d4edda;
    color: var(--fb-success);
}
.ou-badge-under {
    background: #fde8e8;
    color: var(--fb-danger);
}
.ou-badge-ns {
    background: var(--fb-bg);
    color: var(--fb-subtle);
    border: 1px solid var(--fb-border-md);
}
.ou-badge-empty {
    background: transparent;
    border: none;
}

/* HT/FT column shading */
.htft-header-ht {
    background: #f0f4ff;
    color: #3e4ab1;
    font-size: 11px;
}
.htft-header-ft {
    background: #fff3e8;
    color: #e8652a;
    font-size: 11px;
}
.htft-ht {
    background: #f7f9ff;
}
.htft-ft {
    background: #fffaf5;
}
.htft-win {
    color: var(--fb-success);
    font-weight: 700;
}
.htft-lose {
    color: var(--fb-danger);
}

/* Top skorer player photo */
.peringkat-player-photo {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.topskorer-table td {
    vertical-align: middle;
}

/* ─── Ringkasan additions ────────────────────────────────── */
.ringkasan-section {
    border-top: 1px solid var(--fb-border);
    margin-top: 0;
}
.ringkasan-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 8px;
    background: var(--fb-bg);
    border-bottom: 1px solid var(--fb-border);
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--fb-muted);
    text-transform: uppercase;
}

/* Stats summary */
.ringkasan-stats {
    padding: 0;
}
.ringkasan-stats-teams {
    display: flex;
    justify-content: space-between;
    padding: 10px 16px 4px;
}
.ringkasan-stat-team {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--fb-text);
}
.ringkasan-team-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}
.ringkasan-stat-row {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-bottom: 1px solid var(--fb-border);
}
.ringkasan-stat-row:last-of-type {
    border-bottom: none;
}
.ringkasan-stat-val {
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 700;
}
.ringkasan-stat-val.home {
    color: #3e4ab1;
    text-align: left;
}
.ringkasan-stat-val.away {
    color: #e8652a;
    text-align: right;
}
.ringkasan-stat-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.ringkasan-stat-label {
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    color: var(--fb-muted);
    text-align: center;
    line-height: 1.3;
}
.ringkasan-stat-bar {
    display: flex;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    background: var(--fb-border-md);
}
.ringkasan-bar-home {
    background: #3e4ab1;
    height: 100%;
    border-radius: 3px 0 0 3px;
    transition: width 0.3s;
}
.ringkasan-bar-away {
    background: #e8652a;
    height: 100%;
    border-radius: 0 3px 3px 0;
    transition: width 0.3s;
}
.ringkasan-show-more {
    display: flex;
    justify-content: center;
    padding: 10px 16px;
    border-top: 1px solid var(--fb-border);
}
.ringkasan-show-more-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--fb-primary);
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
}
.ringkasan-show-more-btn:hover {
    text-decoration: underline;
}

/* Match info */
.ringkasan-info {
    padding: 2px 0 4px;
}
.ringkasan-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 16px;
    border-bottom: 1px solid var(--fb-border);
    gap: 12px;
    font-family: "Poppins", sans-serif;
}
.ringkasan-info-row:last-child {
    border-bottom: none;
}
.ringkasan-info-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--fb-muted);
    text-transform: uppercase;
    white-space: nowrap;
}
.ringkasan-info-icon {
    color: var(--fb-subtle);
    font-size: 12px;
    width: 14px;
    height: 14px;
    text-align: center;
    flex-shrink: 0;
}
.ringkasan-info-val {
    font-size: 13px;
    font-weight: 600;
    color: var(--fb-text);
    text-align: right;
}
.ringkasan-info-sub {
    font-size: 11px;
    font-weight: 400;
    color: var(--fb-muted);
    margin-left: 3px;
}

/* ─── H2H ────────────────────────────────────────────────── */
.h2h-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--fb-bg);
    border-bottom: 1px solid var(--fb-border);
}
.h2h-summary-team {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}
.h2h-summary-away {
    flex-direction: row-reverse;
}
.h2h-team-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
.h2h-team-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--fb-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
}
.h2h-team-name.home {
    color: #3e4ab1;
}
.h2h-team-name.away {
    color: #e8652a;
}
.h2h-wins {
    font-size: 20px;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}
.h2h-wins.home {
    color: #3e4ab1;
}
.h2h-wins.away {
    color: #e8652a;
}
.h2h-summary-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.h2h-draws {
    font-size: 11px;
    color: var(--fb-muted);
    font-weight: 600;
}
.h2h-bar {
    display: flex;
    width: 100px;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    background: var(--fb-border-md);
}
.h2h-bar-home {
    background: #3e4ab1;
    height: 100%;
}
.h2h-bar-draw {
    background: #aaa;
    height: 100%;
}
.h2h-bar-away {
    background: #e8652a;
    height: 100%;
}

.h2h-matches {
    display: flex;
    flex-direction: column;
}
.h2h-match-row {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--fb-border);
    font-family: "Poppins", sans-serif;
}
.h2h-match-row:last-child {
    border-bottom: none;
}
.h2h-match-date {
    font-size: 11px;
    color: var(--fb-muted);
    white-space: nowrap;
}
.h2h-match-league {
    font-size: 11px;
    color: var(--fb-subtle);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.h2h-match-teams {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}
.h2h-match-team {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--fb-text);
    font-weight: 500;
}
.h2h-match-team.away {
    flex-direction: row-reverse;
}
.h2h-match-team.winner {
    font-weight: 700;
    color: var(--fb-text);
}
.h2h-match-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
}
.h2h-match-score {
    font-size: 13px;
    font-weight: 700;
    color: var(--fb-text);
    background: var(--fb-bg);
    border: 1px solid var(--fb-border-md);
    border-radius: 4px;
    padding: 2px 7px;
    white-space: nowrap;
    min-width: 42px;
    text-align: center;
}

@media (max-width: 600px) {
    .h2h-match-row {
        grid-template-columns: 60px 1fr;
        grid-template-rows: auto auto;
    }
    .h2h-match-league {
        grid-column: 2;
        grid-row: 1;
    }
    .h2h-match-teams {
        grid-column: 1 / -1;
        justify-content: space-between;
    }
    .h2h-team-name {
        max-width: 70px;
    }
}
