/* World Cup page — shares all .as-* fixture/round/odds/modal classes from allsvenskan.css */

.wc-page {
    padding: 90px 0 3rem;
    color: #e2e8f0;
    min-height: 100vh;
}

.wc-page-title {
    color: #fbbf24;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 1.75rem;
}

/* ── Group standings grid ────────────────────────────────── */
.wc-standings-section {
    margin: 1.25rem 0 2rem;
}

.wc-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.6rem;
}

.wc-group-card {
    background: #0f1218;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    overflow: hidden;
}

.wc-group-name {
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #fbbf24;
    padding: 0.3rem 0.6rem;
    margin: 0;
    background: rgba(251, 191, 36, 0.05);
    border-bottom: 1px solid rgba(251, 191, 36, 0.12);
}

/* ── Compact group table — overrides the shared standings styles ── */
.wc-group-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
    color: #c8ccd6;
    border-radius: 0;
}

.wc-group-table thead th {
    background: #13161f;
    color: #525870;
    font-size: 0.62rem;
    font-weight: 600;
    text-align: center;
    padding: 0.28rem 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    white-space: nowrap;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wc-group-table thead th.standings-team {
    text-align: left;
}

.wc-group-table tbody td {
    padding: 0.28rem 0.35rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    white-space: nowrap;
}

.wc-group-table tbody tr:last-child td {
    border-bottom: none;
}

.wc-group-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}

.wc-group-table .standings-team {
    text-align: left;
}

.wc-group-table .standings-team-cell {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.wc-group-table .standings-logo {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex-shrink: 0;
}

.wc-group-table .standings-team-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 110px;
}

.wc-group-table .standings-pts {
    font-weight: 700;
    color: #e2e8f0;
}

.wc-group-table .standings-rank {
    width: 1.5rem;
    color: #475569;
    font-size: 0.68rem;
}

/* Top-2 qualify highlight */
.wc-row--qualify td:first-child {
    border-left: 2px solid #22c55e;
}
.wc-row--qualify {
    background: rgba(34, 197, 94, 0.03);
}

/* ── Compact fixtures — scoped to .wc-page ───────────────── */
.wc-page .as-round-section {
    margin-bottom: 0.25rem;
}

.wc-page .as-round-header {
    padding: 0.38rem 0.65rem;
    gap: 0.55rem;
}

.wc-page .as-round-label {
    font-size: 0.7rem;
}

.wc-page .as-round-count {
    font-size: 0.65rem;
}

.wc-page .as-fixture {
    grid-template-columns: 100px 1fr 150px 1fr;
    height: 38px;
    padding: 0 0.65rem;
    gap: 0.35rem;
}

.wc-page .as-date {
    font-size: 0.68rem;
}

.wc-page .as-team-name {
    font-size: 0.8rem;
}

.wc-page .as-logo {
    width: 18px;
    height: 18px;
}

.wc-page .as-score {
    font-size: 0.85rem;
}

.wc-page .as-badge {
    font-size: 0.58rem;
}

.wc-page .as-odds-btn {
    font-size: 0.7rem;
    padding: 0.15rem 0.35rem;
}

/* ── Override accent colour for WC ──────────────────────── */
.wc-page #wcBetModalOdds { color: #fbbf24; }

@media (max-width: 1000px) {
    .wc-page {
        padding-top: 80px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .wc-groups-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 0.5rem;
    }

    .wc-group-table .standings-team-name {
        max-width: 80px;
    }

    .wc-page .as-fixture {
        grid-template-columns: 20px 1fr 20px;
        grid-template-rows: auto auto;
        height: auto;
        padding: 0.28rem 0.35rem;
        gap: 0.1rem;
    }

    .wc-page .as-date {
        grid-column: 1 / -1;
        font-size: 0.65rem;
        padding-bottom: 0.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        margin-bottom: 0.05rem;
    }

    .wc-page .as-team--home  { grid-column: 1; grid-row: 2; }
    .wc-page .as-center      { grid-column: 2; grid-row: 2; padding: 0; }
    .wc-page .as-team--away  { grid-column: 3; grid-row: 2; }

    .wc-page .as-logo {
        width: 17px;
        height: 17px;
    }

    .wc-page .as-odds-btn {
        font-size: 0.64rem;
        padding: 0.14rem 0.08rem;
    }
}

@media (max-width: 500px) {
    .wc-groups-grid {
        grid-template-columns: 1fr 1fr;
    }
}
