/* ============================================
   KOUTFRAP - Style prensipal
   Koulè: #e7fe7b (jòn-vèt) + #14213c (ble fonse)
   ============================================ */

:root {
    --accent: #e7fe7b;
    --accent-strong: #c7db45;
    --dark: #14213c;
    --dark-light: #1c2d52;
    --white: #ffffff;
    --gray-light: #f4f4f6;
    --gray-text: #6b7280;
    --live-red: #ef4444;
    --radius: 10px;
    --shadow: 0 4px 16px rgba(20, 33, 60, 0.08);
    --page-bg: #f4f4f6;
    --surface: #ffffff;
    --surface-muted: #f8fafc;
    --surface-muted-hover: #e9eef7;
    --text-color: #14213c;
    --muted-text: #6b7280;
    --body-copy: #2c354d;
    --header-bg: #14213c;
    --header-bg-alt: #1c2d52;
    --header-text: #ffffff;
    --footer-bg: #14213c;
    --footer-border: rgba(255,255,255,0.1);
    --border-color: #e2e4ea;
    --border-color-strong: #dcdfe6;
    --input-bg: #ffffff;
    --input-text: #14213c;
    --input-border: #dcdfe6;
    --menu-surface: #ffffff;
    --menu-shadow: 0 12px 24px rgba(20, 33, 60, 0.16);
    --card-shadow: 0 4px 16px rgba(20, 33, 60, 0.08);
    --danger-bg: #fff0f0;
    --danger-text: #c0392b;
    --danger-border: #f5c6c6;
    --success-bg: #f0fff4;
    --success-text: #1e7e34;
    --success-border: #b8e6c1;
    --theme-toggle-bg: #ffffff;
    --theme-toggle-text: #14213c;
    --theme-toggle-border: #dcdfe6;
    --theme-toggle-hover: #f8fafc;
    --placeholder-text: rgba(255,255,255,0.34);
    color-scheme: light;
}

/* ===== MATCHES EXAMPLE LAYOUT ===== */
.matches-example-page {
    padding-bottom: 32px;
}

.matches-app-shell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.matches-sidebar {
    background: linear-gradient(180deg, rgba(16, 27, 49, 0.98), rgba(20, 33, 60, 0.94));
    border-radius: 0 24px 24px 0;
    padding: 32px 28px;
    display: grid;
    gap: 20px;
    min-height: 720px;
    border: 1px solid rgba(231, 254, 123, 0.08);
    box-shadow: 0 24px 48px rgba(2, 8, 23, 0.24);
}

.matches-sidebar h2 {
    color: var(--header-text);
    font-size: 1.45rem;
    font-weight: 800;
}

.matches-sidebar-list {
    display: grid;
    gap: 14px;
}

.matches-sidebar-section {
    display: grid;
    gap: 12px;
}

.matches-sidebar-eyebrow {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.matches-sidebar-worldcup {
    display: grid;
}

.sidebar-league,
.fixture-board-header {
    width: 100%;
    border: none;
    background: transparent;
    color: var(--header-text);
    font: inherit;
    cursor: pointer;
}

.sidebar-league {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 12px;
    border-radius: 18px;
    text-align: left;
    font-size: 1rem;
    font-weight: 700;
    opacity: 0.92;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    border: 1px solid transparent;
}

.sidebar-league-link {
    text-decoration: none;
}

.sidebar-league:hover,
.sidebar-league.is-active {
    opacity: 1;
    transform: translateX(3px);
    background: rgba(231, 254, 123, 0.08);
    border-color: rgba(231, 254, 123, 0.18);
}

.sidebar-league-mark {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(231, 254, 123, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 900;
    flex-shrink: 0;
}

.sidebar-league-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(28, 45, 82, 0.94), rgba(15, 24, 43, 0.96));
    border: 1px solid rgba(231, 254, 123, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    padding: 4px;
}

.sidebar-league-name {
    min-width: 0;
    flex: 1;
}

.sidebar-league-count {
    min-width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 900;
}

.sidebar-empty-note {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px dashed rgba(231, 254, 123, 0.14);
    color: rgba(255, 255, 255, 0.64);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.88rem;
    line-height: 1.5;
}

.sidebar-world-cup-card {
    width: 100%;
    border: 1px solid rgba(231, 254, 123, 0.12);
    background:
        radial-gradient(circle at top right, rgba(231, 254, 123, 0.16), transparent 42%),
        linear-gradient(180deg, rgba(36, 52, 70, 0.95), rgba(35, 51, 67, 0.95));
    border-radius: 24px;
    padding: 18px 18px 20px;
    display: grid;
    gap: 16px;
    cursor: pointer;
    color: var(--header-text);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-world-cup-card:hover,
.sidebar-world-cup-card.is-active {
    transform: translateY(-1px);
    border-color: rgba(231, 254, 123, 0.22);
    box-shadow: 0 14px 28px rgba(2, 8, 23, 0.18);
}

.sidebar-world-cup-label {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: left;
}

.sidebar-world-cup-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sidebar-world-cup-card .sidebar-league-logo,
.sidebar-world-cup-card .sidebar-league-mark {
    width: 42px;
    height: 42px;
}

.sidebar-world-cup-card .sidebar-league-name {
    font-size: 1.08rem;
    font-weight: 800;
}

.sidebar-world-cup-card .sidebar-league-count {
    min-width: 34px;
    height: 34px;
    margin-left: auto;
}

.matches-stage {
    display: grid;
    gap: 24px;
    padding-right: 16px;
}

.matches-topbar {
    background: linear-gradient(180deg, rgba(16, 27, 49, 0.98), rgba(20, 33, 60, 0.94));
    border-radius: 0 0 26px 26px;
    overflow: hidden;
    border: 1px solid rgba(231, 254, 123, 0.08);
    box-shadow: 0 24px 48px rgba(2, 8, 23, 0.2);
}

.matches-navrow {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 24px;
    border-bottom: 1px solid rgba(231, 254, 123, 0.08);
}

.matches-day-arrow {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: none;
    background: rgba(231, 254, 123, 0.1);
    color: var(--accent);
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.matches-day-arrow:hover {
    background: rgba(231, 254, 123, 0.18);
    transform: scale(1.03);
}

.matches-day-title {
    color: var(--header-text);
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
}

.matches-toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    flex-wrap: wrap;
}

.matches-status-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.status-tab {
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: var(--header-text);
    padding: 12px 22px;
    border-radius: 999px;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: inset 0 0 0 1px rgba(231, 254, 123, 0.1);
}

.status-tab:hover,
.status-tab.is-active {
    background: var(--accent);
    color: var(--dark);
    box-shadow: none;
}

.matches-toolbar-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.matches-summary-hero,
.matches-refresh-note {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.94rem;
    font-weight: 700;
}

.matches-results-stack {
    display: grid;
    gap: 20px;
}

.league-standings-shell {
    display: grid;
}

.league-standings-card {
    background: linear-gradient(180deg, rgba(16, 27, 49, 0.98), rgba(12, 21, 39, 0.98));
    border-radius: 22px;
    border: 1px solid rgba(231, 254, 123, 0.08);
    box-shadow: 0 20px 42px rgba(2, 8, 23, 0.24);
    padding: 22px;
}

.league-standings-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 8px;
}

.league-standings-head h2 {
    color: var(--header-text);
    font-size: 1.35rem;
    font-weight: 800;
    margin-top: 4px;
}

.league-standings-head p {
    color: rgba(255, 255, 255, 0.66);
    margin-top: 6px;
}

.league-standings-content {
    display: grid;
    gap: 16px;
}

.league-standings-content .standing-table-wrap {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(231, 254, 123, 0.08);
    border-radius: 18px;
    padding: 18px;
}

.fixture-board {
    background: linear-gradient(180deg, rgba(16, 27, 49, 0.98), rgba(12, 21, 39, 0.98));
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(231, 254, 123, 0.08);
    box-shadow: 0 20px 42px rgba(2, 8, 23, 0.24);
}

.fixture-board-header {
    background:
        radial-gradient(circle at top right, rgba(231, 254, 123, 0.22), transparent 36%),
        linear-gradient(120deg, rgba(20, 33, 60, 0.98), rgba(28, 45, 82, 0.98));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 26px;
    color: var(--header-text);
    border-bottom: 1px solid rgba(231, 254, 123, 0.08);
    text-align: left;
    transition: background 0.2s ease, transform 0.2s ease;
}

.fixture-board-header:hover,
.fixture-board-header.is-active {
    background:
        radial-gradient(circle at top right, rgba(231, 254, 123, 0.28), transparent 34%),
        linear-gradient(120deg, rgba(28, 45, 82, 0.98), rgba(20, 33, 60, 0.98));
}

.fixture-board-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.08rem;
    font-weight: 800;
}

.fixture-board-mark {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: rgba(231, 254, 123, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: var(--accent);
}

.fixture-board-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(28, 45, 82, 0.94), rgba(15, 24, 43, 0.96));
    border: 1px solid rgba(231, 254, 123, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    padding: 5px;
    flex-shrink: 0;
}

.fixture-board-total {
    min-width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(231, 254, 123, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--accent);
}

.fixture-group-label {
    display: inline-flex;
    margin: 14px 24px 10px;
    padding: 9px 14px;
    border-radius: 12px;
    border: 1px solid rgba(231, 254, 123, 0.16);
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.95rem;
    font-weight: 700;
}

.fixture-row {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr) 68px;
    align-items: center;
    gap: 12px;
    padding: 0 24px;
    min-height: 94px;
    border: none;
    border-top: 1px solid rgba(231, 254, 123, 0.06);
    background: transparent;
    color: var(--header-text);
    font: inherit;
    text-align: left;
    transition: background 0.2s ease, transform 0.2s ease;
}

.fixture-row:first-of-type {
    border-top: none;
}

.fixture-group-label + .fixture-row {
    border-top: none;
}

.fixture-row.is-selected {
    background: linear-gradient(90deg, rgba(231, 254, 123, 0.08), rgba(28, 45, 82, 0.72));
}

.fixture-row.is-live {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.14), rgba(28, 45, 82, 0.74));
}

.fixture-row.is-finished {
    color: rgba(255, 255, 255, 0.94);
}

.fixture-team {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.05rem;
    font-weight: 800;
}

.fixture-team-home {
    justify-content: flex-end;
    text-align: right;
}

.fixture-team-away {
    justify-content: flex-start;
    text-align: left;
}

.fixture-team-name {
    min-width: 0;
}

.fixture-crest {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(231, 254, 123, 0.12);
}

.fixture-crest-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111;
    font-size: 0.78rem;
    font-weight: 900;
}

.fixture-time {
    text-align: center;
}

.fixture-time-main {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.08rem;
    font-weight: 800;
}

.fixture-row.is-live .fixture-time-main,
.fixture-row.is-finished .fixture-time-main {
    color: var(--header-text);
    font-size: 1.45rem;
}

.fixture-meta {
    text-align: right;
    font-size: 0.88rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.68);
}

.fixture-meta-live {
    color: #ffb2b2;
}

.fixture-meta-finished {
    color: rgba(255, 255, 255, 0.82);
}

.fixture-meta-scheduled {
    color: var(--accent);
}

.home-fixture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
}

.home-matches-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 22px;
    align-items: start;
}

.home-banner-slot {
    min-height: 100%;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(231, 254, 123, 0.08);
    background:
        radial-gradient(circle at top right, rgba(231, 254, 123, 0.14), transparent 36%),
        linear-gradient(180deg, rgba(16, 27, 49, 0.98), rgba(12, 21, 39, 0.98));
    box-shadow: 0 20px 42px rgba(2, 8, 23, 0.24);
    min-height: 260px;
    position: relative;
}

.home-banner-media {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 260px;
}

.home-banner-media img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
}

.home-banner-placeholder {
    min-height: 260px;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 26px;
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
}

.home-banner-placeholder strong {
    display: block;
    color: var(--header-text);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.home-fixture-board .fixture-row {
    cursor: default;
}

.custom-leagues-section {
    display: grid;
    gap: 18px;
    margin-top: 12px;
    padding-bottom: 40px;
}

.custom-leagues-grid {
    display: grid;
    gap: 20px;
}

.custom-league-card {
    background: linear-gradient(180deg, rgba(16, 27, 49, 0.98), rgba(12, 21, 39, 0.98));
    border-radius: 22px;
    border: 1px solid rgba(231, 254, 123, 0.08);
    box-shadow: 0 20px 42px rgba(2, 8, 23, 0.24);
    padding: 22px;
    display: grid;
    gap: 18px;
}

.custom-league-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.custom-league-title {
    color: var(--header-text);
    font-size: 1.35rem;
    font-weight: 800;
    margin-top: 4px;
}

.custom-league-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.custom-league-meta span {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(231, 254, 123, 0.1);
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.82rem;
    font-weight: 800;
}

.custom-league-content {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 20px;
    align-items: start;
}

.custom-league-standings,
.custom-league-matchdays {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(231, 254, 123, 0.08);
    border-radius: 18px;
    padding: 18px;
}

.custom-league-standings .standings-card-head h3,
.custom-league-matchdays .standings-card-head h3 {
    color: var(--header-text);
}

.custom-league-standings .standings-card-head p,
.custom-league-matchdays .standings-card-head p {
    color: rgba(255, 255, 255, 0.66);
}

.custom-league-standings .standing-table th,
.custom-league-standings .standing-table td {
    border-bottom-color: rgba(231, 254, 123, 0.08);
}

.custom-league-standings .standing-table td {
    color: rgba(255, 255, 255, 0.9);
}

.custom-matchday-stack {
    display: grid;
    gap: 14px;
}

.custom-matchday-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(231, 254, 123, 0.08);
    border-radius: 16px;
    padding: 14px;
    display: grid;
    gap: 12px;
}

.custom-matchday-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--header-text);
}

.custom-matchday-head strong {
    font-size: 0.98rem;
}

.custom-matchday-head span {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
}

.custom-fixture-list {
    display: grid;
    gap: 10px;
}

.custom-fixture-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(231, 254, 123, 0.06);
}

.custom-fixture-teams {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--header-text);
    font-weight: 700;
}

.custom-fixture-teams strong {
    color: var(--accent);
    margin: 0 2px;
}

.custom-fixture-teams .team-cell {
    min-width: 0;
}

.custom-fixture-kickoff {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .matches-app-shell {
        grid-template-columns: 1fr;
    }

    .matches-sidebar {
        min-height: auto;
        border-radius: 0 0 24px 24px;
    }

    .matches-stage {
        padding-right: 0;
    }

    .home-matches-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .home-fixture-grid {
        grid-template-columns: 1fr;
    }

    .league-standings-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .custom-league-content {
        grid-template-columns: 1fr;
    }

    .fixture-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 18px 20px;
        min-height: auto;
    }

    .fixture-team-home,
    .fixture-team-away {
        justify-content: center;
        text-align: center;
    }

    .fixture-meta {
        text-align: center;
    }

    .custom-league-card-head,
    .custom-fixture-row,
    .custom-matchday-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .custom-fixture-kickoff {
        white-space: normal;
    }
}

html[data-theme="dark"] {
    --page-bg: #08111f;
    --surface: #101b31;
    --surface-muted: #16233f;
    --surface-muted-hover: #1d2d50;
    --text-color: #edf3ff;
    --muted-text: #a4b2cf;
    --body-copy: #d9e3f7;
    --header-bg: #060d19;
    --header-bg-alt: #16233f;
    --header-text: #edf3ff;
    --footer-bg: #060d19;
    --footer-border: rgba(237,243,255,0.12);
    --border-color: #24385f;
    --border-color-strong: #2f4776;
    --input-bg: #0c162a;
    --input-text: #edf3ff;
    --input-border: #2f4776;
    --menu-surface: #101b31;
    --menu-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
    --card-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
    --danger-bg: rgba(192, 57, 43, 0.18);
    --danger-text: #ffb0a7;
    --danger-border: rgba(255, 176, 167, 0.18);
    --success-bg: rgba(30, 126, 52, 0.18);
    --success-text: #8ee0a1;
    --success-border: rgba(142, 224, 161, 0.2);
    --theme-toggle-bg: #16233f;
    --theme-toggle-text: #edf3ff;
    --theme-toggle-border: #2f4776;
    --theme-toggle-hover: #1d2d50;
    --placeholder-text: rgba(255,255,255,0.48);
    color-scheme: dark;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--page-bg);
    color: var(--text-color);
    line-height: 1.5;
    transition: background 0.25s ease, color 0.25s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== HEADER ===== */
.site-header {
    background: var(--header-bg);
    color: var(--header-text);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--card-shadow);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--accent);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
}

.logo-area .accent {
    color: var(--accent);
}

.logo-img {
    height: 38px;
    border-radius: 6px;
}

.main-nav ul {
    display: flex;
    gap: 28px;
    list-style: none;
}

.main-nav a {
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0.85;
    transition: opacity 0.2s, color 0.2s;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    opacity: 1;
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.theme-toggle {
    width: 188px;
    min-height: 70px;
    padding: 6px 7px 6px 18px;
    border: 1px solid rgba(20, 33, 60, 0.14);
    background: #ececec;
    border-radius: 999px;
    color: #111111;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 8px 18px rgba(20, 33, 60, 0.08);
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(20, 33, 60, 0.12);
}

.theme-toggle-text {
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: left;
}

.theme-toggle-icon {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background: #ffffff;
    border: 2px solid rgba(20, 33, 60, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(20, 33, 60, 0.12);
}

.theme-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.theme-toggle .theme-icon-moon {
    display: none;
}

.theme-toggle[data-theme-current="dark"] {
    background: #050505;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.14);
    flex-direction: row-reverse;
    padding: 6px 18px 6px 7px;
}

.theme-toggle[data-theme-current="dark"] .theme-toggle-icon {
    border-color: rgba(0, 0, 0, 0.12);
}

.theme-toggle[data-theme-current="dark"] .theme-toggle-text {
    text-align: right;
}

.theme-toggle[data-theme-current="dark"] .theme-icon-sun {
    display: none;
}

.theme-toggle[data-theme-current="dark"] .theme-icon-moon {
    display: inline;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-greeting {
    max-width: 180px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.84rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--header-text);
    font-size: 0.86rem;
    font-weight: 700;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.user-link:hover {
    background: rgba(255, 255, 255, 0.08);
}

.user-link.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--dark);
}

.user-link.primary:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
}

/* Switch lang */
.lang-switch {
    position: relative;
}

.lang-dropdown {
    position: relative;
}

.lang-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--header-bg-alt);
    color: var(--header-text);
    border-radius: 999px;
    cursor: pointer;
    list-style: none;
    border: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s;
}

.lang-dropdown-toggle::-webkit-details-marker {
    display: none;
}

.lang-dropdown-toggle span {
    font-size: 0.8rem;
    font-weight: 700;
}

.lang-dropdown-toggle::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    transition: transform 0.2s ease;
}

.lang-dropdown[open] .lang-dropdown-toggle {
    background: var(--accent);
    color: var(--dark);
    border-color: rgba(20, 33, 60, 0.15);
}

.lang-dropdown[open] .lang-dropdown-toggle::after {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 130px;
    padding: 6px;
    display: grid;
    gap: 4px;
    background: var(--menu-surface);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--menu-shadow);
    z-index: 120;
}

.lang-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: inherit;
    transition: background 0.2s, color 0.2s;
}

.lang-dropdown-menu a:hover,
.lang-dropdown-menu a.active {
    background: var(--surface-muted);
    color: var(--text-color);
}

.lang-flag {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 999px;
    flex-shrink: 0;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--header-text);
    font-size: 1.6rem;
    cursor: pointer;
}

/* ===== FEATURED ARTICLE (la une) ===== */
.featured-article {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    margin-bottom: 36px;
}

.featured-image {
    background: linear-gradient(135deg, var(--dark), var(--dark-light));
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--placeholder-text);
    overflow: hidden;
}

.featured-image.has-image {
    position: relative;
    display: block;
}

.featured-image.has-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-body {
    padding: 28px 28px 28px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-body .news-category {
    align-self: flex-start;
}

.featured-body h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 14px 0;
    line-height: 1.25;
}

.featured-body p {
    color: var(--muted-text);
    margin-bottom: 16px;
    font-size: 1rem;
}

.read-more-btn {
    display: inline-block;
    background: var(--header-bg);
    color: var(--header-text);
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 24px;
    font-size: 0.9rem;
    align-self: flex-start;
    transition: background 0.2s;
}

.read-more-btn:hover {
    background: var(--header-bg-alt);
}

@media (max-width: 768px) {
    .featured-article {
        grid-template-columns: 1fr;
    }
    .featured-body {
        padding: 20px;
    }
}

/* ===== CATEGORY FILTER ===== */
.category-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.category-filter a {
    background: var(--surface);
    border: 1px solid var(--border-color);
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.2s;
}

.category-filter a:hover,
.category-filter a.active {
    background: var(--header-bg);
    color: var(--accent);
    border-color: var(--header-bg);
}

/* ===== SINGLE ARTICLE PAGE ===== */
.article-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 30px 20px;
}

.article-page .news-category {
    margin-bottom: 14px;
}

.article-page h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
}

.article-page .article-meta {
    color: var(--muted-text);
    font-size: 0.88rem;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 16px;
}

.article-page .article-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--dark), var(--dark-light));
}

.article-page .article-body {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--body-copy);
}

.article-page .article-body p {
    margin-bottom: 18px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
}

.back-link:hover {
    color: var(--accent-dark, #5a6e00);
    text-decoration: underline;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: "";
    width: 6px;
    height: 22px;
    background: var(--accent);
    border-radius: 3px;
}

/* ===== NEWS CARDS ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.news-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform 0.2s;
}

.news-card:hover {
    transform: translateY(-3px);
}

.news-card .news-image {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, var(--dark), var(--dark-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--placeholder-text);
    font-size: 0.8rem;
    overflow: hidden;
}

.news-card .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-body {
    padding: 16px;
}

.news-category {
    display: inline-block;
    background: var(--accent);
    color: var(--dark);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.news-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.35;
}

.news-card p {
    font-size: 0.88rem;
    color: var(--muted-text);
    margin-bottom: 12px;
}

.news-meta {
    font-size: 0.78rem;
    color: var(--muted-text);
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

/* ===== FOOTBALL HUB ===== */
.section-title.no-bar::before {
    display: none;
}

.section-title.no-bar {
    margin-bottom: 0;
}

.section-split-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-strong);
}

.section-subtitle {
    margin-top: 10px;
    max-width: 720px;
    color: var(--muted-text);
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--text-color);
}

.section-link.small {
    font-size: 0.88rem;
}

.live-priority-section,
.football-section,
.football-hero {
    background: var(--surface);
    border-radius: calc(var(--radius) + 6px);
    box-shadow: var(--card-shadow);
}

.live-priority-section,
.football-section {
    padding: 24px;
    margin-bottom: 28px;
}

.football-page {
    display: grid;
    gap: 28px;
}

.football-hero {
    padding: 28px;
}

.football-hero h1 {
    font-size: 2rem;
    line-height: 1.15;
}

.live-group-stack,
.standings-stack {
    display: grid;
    gap: 20px;
}

.live-match-group {
    display: grid;
    gap: 12px;
}

.group-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted-text);
}

.group-label::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--accent);
}

.live-match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.live-match-card,
.league-card,
.standings-card {
    background: var(--surface-muted);
    border: 1px solid var(--border-color);
    border-radius: 18px;
}

.live-match-card {
    padding: 16px;
}

.live-match-card.highlight {
    background: linear-gradient(135deg, rgba(231, 254, 123, 0.16), var(--surface-muted));
    border-color: rgba(199, 219, 69, 0.45);
}

.match-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.live-badge,
.match-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.76rem;
    font-weight: 800;
}

.live-badge {
    background: var(--live-red);
    color: #ffffff;
}

.match-state {
    background: var(--surface);
    color: var(--text-color);
}

.match-competition {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--muted-text);
}

.match-scoreboard {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin: 14px 0 12px;
}

.match-scoreboard.compact {
    margin-top: 10px;
}

.match-team {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-weight: 700;
}

.match-team.align-right {
    justify-content: flex-end;
    text-align: right;
}

.team-logo {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    object-fit: cover;
    background: var(--surface);
    flex-shrink: 0;
}

.team-logo.small {
    width: 22px;
    height: 22px;
}

.match-team span,
.team-cell span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-score {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--surface);
    font-size: 1.05rem;
}

.match-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 0.8rem;
    color: var(--muted-text);
}

.matches-page {
    gap: 24px;
    display: grid;
}

.matches-hero {
    position: relative;
    overflow: hidden;
}

.matches-hero::after {
    content: "";
    position: absolute;
    inset: auto -12% -30% auto;
    width: 300px;
    height: 300px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(231, 254, 123, 0.2), transparent 68%);
    pointer-events: none;
}

.matches-shell {
    display: grid;
    gap: 20px;
}

.matches-toolbar-meta {
    display: flex;
    align-items: center;
    gap: 10px 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.matches-summary,
.matches-refresh-note {
    font-size: 0.84rem;
    color: var(--muted-text);
    font-weight: 700;
}

.matches-filter-wrap {
    display: grid;
    gap: 18px;
}

.matches-filter-group {
    display: grid;
    gap: 10px;
}

.matches-filter-label {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted-text);
}

.matches-filter-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.matches-filter-chip {
    border: 1px solid var(--border-color);
    background: var(--surface);
    color: var(--text-color);
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.matches-filter-chip:hover {
    transform: translateY(-1px);
    border-color: var(--accent-strong);
}

.matches-filter-chip.is-active {
    background: var(--header-bg);
    border-color: var(--header-bg);
    color: var(--accent);
}

.matches-feedback {
    min-height: 1px;
}

.matches-grid > .api-empty {
    grid-column: 1 / -1;
}

.matches-card {
    padding: 18px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.matches-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(20, 33, 60, 0.08);
}

.matches-card.is-live {
    border-color: rgba(239, 68, 68, 0.35);
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.1);
}

.match-competition-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(231, 254, 123, 0.2);
    color: var(--text-color);
    border: 1px solid rgba(199, 219, 69, 0.4);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.team-logo-fallback {
    background: linear-gradient(135deg, var(--dark), var(--dark-light));
}

.match-score.is-live,
.match-score.is-finished,
.match-score.is-scheduled {
    min-width: 86px;
    justify-content: center;
    font-weight: 800;
}

.match-score.is-live {
    color: var(--live-red);
}

.match-score.is-finished {
    font-size: 1.3rem;
}

.match-score.is-scheduled {
    color: var(--muted-text);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.match-loading-card {
    padding: 18px;
}

.match-loading-line,
.match-loading-score,
.match-loading-pill {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.match-loading-line::after,
.match-loading-score::after,
.match-loading-pill::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    animation: matchShimmer 1.2s infinite;
}

.match-loading-line.short {
    width: 34%;
    height: 12px;
    margin-bottom: 14px;
}

.match-loading-line.medium {
    width: 58%;
    height: 14px;
    margin-bottom: 18px;
}

.match-loading-score {
    width: 40%;
    height: 42px;
    margin: 0 auto 18px;
}

.match-loading-pill {
    width: 44%;
    height: 40px;
    margin: 0 auto 18px;
}

.match-loading-line.long {
    width: 72%;
    height: 12px;
}

.matches-pagination {
    display: flex;
    justify-content: center;
}

.matches-pagination-controls {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--surface-muted);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 8px;
}

.matches-page-button {
    border: none;
    background: var(--surface);
    color: var(--text-color);
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.matches-page-button:hover:not(:disabled) {
    background: var(--header-bg);
    color: var(--accent);
}

.matches-page-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.matches-page-counter {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--muted-text);
}

@keyframes matchShimmer {
    100% {
        transform: translateX(100%);
    }
}

.api-empty {
    padding: 18px;
    border: 1px dashed var(--border-color-strong);
    border-radius: 16px;
    color: var(--muted-text);
    background: var(--surface-muted);
}

.league-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.league-card {
    padding: 18px;
}

.league-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.league-card-top h3 {
    margin-bottom: 4px;
    font-size: 1.08rem;
}

.league-card-top p {
    color: var(--muted-text);
    font-size: 0.86rem;
}

.league-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex-shrink: 0;
}

.league-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.league-meta-list span {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    font-size: 0.78rem;
    color: var(--muted-text);
}

.standings-card {
    padding: 18px;
}

.standings-card-head {
    margin-bottom: 14px;
}

.standings-card-head h3 {
    font-size: 1.16rem;
}

.standings-card-head p {
    color: var(--muted-text);
    margin-top: 4px;
}

.standing-table-wrap + .standing-table-wrap {
    margin-top: 16px;
}

.table-scroll {
    overflow-x: auto;
}

.standing-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
}

.standing-table th,
.standing-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.standing-table th {
    font-size: 0.78rem;
    text-transform: uppercase;
    color: var(--muted-text);
    letter-spacing: 0.04em;
}

.standing-table tbody tr:last-child td {
    border-bottom: none;
}

.team-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
}

/* ===== SHARED FORMS ===== */
.form-group {
    display: grid;
    gap: 6px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 14px;
    border-radius: 16px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--input-text);
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-strong);
    box-shadow: 0 0 0 4px rgba(199, 219, 69, 0.16);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    padding: 13px 18px;
    background: var(--header-bg);
    color: var(--header-text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-primary:hover {
    background: var(--header-bg-alt);
    transform: translateY(-1px);
}

.alert {
    padding: 12px 14px;
    border-radius: 18px;
    margin-bottom: 18px;
    font-size: 0.92rem;
}

.alert-error {
    background: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid var(--danger-border);
}

.alert-success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-border);
}

/* ===== PUBLIC AUTH - SPLIT LAYOUT ===== */
.auth-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 70px);
}

.auth-split-brand {
    background: var(--dark);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
}

.auth-split-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(231, 254, 123, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 20%, rgba(28, 45, 82, 0.9) 0%, transparent 60%);
}

.auth-split-brand::after {
    content: "⚽";
    position: absolute;
    font-size: 18rem;
    opacity: 0.04;
    bottom: -3rem;
    right: -3rem;
    line-height: 1;
    pointer-events: none;
}

.auth-brand-inner {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 380px;
}

.auth-brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 36px;
}

.auth-brand-logo img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: contain;
}

.auth-brand-logo span {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: -0.5px;
}

.auth-brand-inner h2 {
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 16px;
    color: #fff;
}

.auth-brand-inner p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 40px;
    line-height: 1.6;
}

.auth-brand-features {
    display: grid;
    gap: 14px;
}

.auth-brand-feat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.92rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.auth-feat-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.auth-split-form {
    background: var(--page-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    overflow-y: auto;
}

.auth-card {
    background: var(--surface);
    border-radius: 28px;
    box-shadow: var(--card-shadow);
    padding: 36px;
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 420px;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--muted-text);
    margin-bottom: 24px;
    transition: color 0.2s;
}

.auth-back-link:hover {
    color: var(--text-color);
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(199, 219, 69, 0.15);
    color: var(--accent-strong);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.auth-card h1 {
    font-size: 1.9rem;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 8px;
}

.auth-copy {
    color: var(--muted-text);
    margin-bottom: 24px;
    font-size: 0.92rem;
    line-height: 1.55;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-form .form-group {
    margin-bottom: 0;
}

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    pointer-events: none;
    z-index: 1;
}

.input-icon-wrap input {
    padding-left: 40px !important;
}

.btn-auth-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 15px 20px;
    background: var(--dark);
    color: var(--accent);
    font: inherit;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    margin-top: 4px;
}

.btn-auth-submit:hover {
    background: var(--dark-light);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(20, 33, 60, 0.2);
}

.btn-auth-submit span {
    font-size: 1.2rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: var(--muted-text);
    font-size: 0.82rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.btn-auth-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 20px;
    border-radius: 14px;
    border: 1.5px solid var(--border-color-strong);
    background: transparent;
    color: var(--text-color);
    font-weight: 700;
    font-size: 0.95rem;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    text-align: center;
}

.btn-auth-secondary:hover {
    background: var(--surface-muted);
    border-color: var(--accent-strong);
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .auth-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .auth-split-brand {
        display: none;
    }
    .auth-split-form {
        padding: 32px 20px 60px;
    }
}

/* ===== MATCH CARDS - PREMIUM ===== */
.match-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.match-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(20, 33, 60, 0.12);
}

.match-card.is-live {
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.15), 0 8px 24px rgba(239, 68, 68, 0.1);
}

.mc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--surface-muted);
    border-bottom: 1px solid var(--border-color);
    gap: 10px;
}

.mc-competition {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
}

.mc-comp-code {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(231, 254, 123, 0.2);
    border: 1px solid rgba(199, 219, 69, 0.35);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-strong);
    flex-shrink: 0;
}

.mc-comp-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mc-matchday {
    font-size: 0.72rem;
    color: var(--muted-text);
    opacity: 0.7;
    flex-shrink: 0;
}

.mc-live-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--live-red);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    animation: livePulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.mc-body {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 20px 16px;
}

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

.mc-team.away {
    /* mirror layout handled by grid order */
}

.mc-crest-wrap {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mc-crest {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
}

.mc-crest-fallback {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--dark), var(--dark-light));
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mc-team-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-color);
    text-align: center;
    line-height: 1.3;
    max-width: 100px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mc-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.mc-time {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.mc-vs {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--muted-text);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mc-score-live {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--live-red);
    letter-spacing: -0.5px;
}

.mc-score-result {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.mc-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--live-red);
    animation: livePulse 1.2s ease-in-out infinite;
    margin-bottom: 2px;
}

.mc-live-label {
    font-size: 0.66rem;
    font-weight: 900;
    color: var(--live-red);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mc-status-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--muted-text);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.mc-status-label.finished {
    color: var(--muted-text);
}

/* ===== MATCH CARDS - EXACT LAYOUT ===== */
.match-card {
    background: #090d13;
    border: 1px solid #141b24;
    border-radius: 18px;
    padding: 14px 18px 16px;
    overflow: hidden;
    box-shadow: none;
}

.match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    border-color: #202a36;
}

.match-card.is-live {
    border-color: rgba(255, 102, 102, 0.48);
    box-shadow: 0 0 0 1px rgba(255, 102, 102, 0.08);
}

.match-card.is-finished {
    border-color: #202a36;
}

.mc-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    color: #8892a1;
    font-size: 0.9rem;
    font-weight: 700;
}

.mc-topline-main {
    min-width: 0;
}

.mc-topline-side {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: #8d96a5;
}

.mc-topline-side-text,
.mc-topline-main {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mc-meta-icon {
    position: relative;
    display: inline-block;
    width: 11px;
    height: 11px;
    margin-right: 2px;
    flex-shrink: 0;
    color: transparent;
    font-size: 0;
    line-height: 0;
    opacity: 0.9;
    border: 1.7px solid #8d96a5;
    border-radius: 8px 8px 8px 0;
    transform: rotate(-45deg);
}

.mc-meta-icon::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 3px;
    height: 3px;
    border-radius: 999px;
    background: #8d96a5;
}

.mc-pill-row {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.mc-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #0d1420;
    border: 1px solid #162131;
    color: #f7f9fc;
    font-size: 0.94rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-align: center;
}

.mc-body {
    display: grid;
    grid-template-columns: minmax(96px, 1fr) auto minmax(96px, 1fr);
    align-items: center;
    gap: 10px;
    padding: 0;
}

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

.mc-crest-wrap {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mc-crest {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 999px;
}

.mc-crest-fallback {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #f8fafc;
    font-size: 0.74rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mc-team-name {
    max-width: 128px;
    color: #f7f9fc;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    text-wrap: balance;
}

.mc-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 124px;
}

.mc-primary {
    color: #f7f9fc;
    font-size: 3.35rem;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.05em;
    text-align: center;
}

.mc-secondary {
    color: #97a0b0;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
}

.mc-secondary.is-live {
    color: #ff8f8f;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mc-secondary.is-finished,
.mc-secondary.is-scheduled,
.mc-secondary.is-today {
    text-transform: none;
}

/* ===== MATCHES PAGE REDESIGN ===== */
.matches-hero-banner {
    background: var(--dark);
    border-radius: calc(var(--radius) + 6px);
    padding: 32px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.matches-hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(231, 254, 123, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.matches-hero-banner::after {
    content: "⚽";
    position: absolute;
    font-size: 14rem;
    opacity: 0.04;
    right: 2rem;
    bottom: -3rem;
    pointer-events: none;
}

.matches-hero-content {
    position: relative;
    z-index: 1;
}

.matches-hero-content .section-kicker {
    color: var(--accent);
}

.matches-hero-content h1 {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    margin: 8px 0 6px;
    line-height: 1.1;
}

.matches-hero-content p {
    color: rgba(255,255,255,0.6);
    font-size: 0.92rem;
}

.matches-hero-stat {
    position: relative;
    z-index: 1;
    text-align: right;
    flex-shrink: 0;
}

.matches-summary-hero {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
}

.matches-shell {
    background: var(--surface);
    border-radius: calc(var(--radius) + 6px);
    box-shadow: var(--card-shadow);
    padding: 24px;
    display: grid;
    gap: 20px;
}

/* Status tabs */
.matches-filters-panel {
    display: grid;
    gap: 16px;
}

.matches-status-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.status-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1.5px solid var(--border-color);
    background: var(--surface-muted);
    color: var(--muted-text);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.status-tab:hover {
    border-color: var(--accent-strong);
    color: var(--text-color);
}

.status-tab.is-active {
    background: var(--dark);
    border-color: var(--dark);
    color: var(--accent);
}

.status-tab-icon {
    font-size: 1rem;
}

/* League scroll pills */
.matches-league-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.matches-league-scroll::-webkit-scrollbar {
    display: none;
}

.league-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--surface-muted);
    color: var(--text-color);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.league-pill:hover {
    border-color: var(--accent-strong);
    background: var(--surface-muted-hover);
}

.league-pill.is-active {
    background: var(--dark);
    border-color: var(--dark);
    color: var(--accent);
}

.league-pill-icon {
    font-size: 1rem;
}

/* Matches grid */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

/* ===== HOME MATCHES SECTION ===== */
.home-matches-section {
    margin-bottom: 36px;
}

.home-matches-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.home-matches-header .section-title {
    margin-bottom: 0;
}

.home-matches-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent-strong);
    transition: color 0.2s;
    white-space: nowrap;
}

.home-matches-link:hover {
    color: var(--text-color);
}

.home-matches-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--footer-bg);
    color: var(--header-text);
    margin-top: 50px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: var(--accent);
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
    font-size: 0.88rem;
    opacity: 0.75;
}

.footer-bottom {
    border-top: 1px solid var(--footer-border);
    padding-top: 16px;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ===== LOADING / EMPTY STATES ===== */
.loading-text, .empty-text {
    text-align: center;
    padding: 30px;
    color: var(--muted-text);
    font-size: 0.9rem;
    grid-column: 1 / -1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .matches-grid,
    .home-matches-grid {
        grid-template-columns: 1fr;
    }

    .matches-hero-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px 20px;
    }

    .matches-hero-content h1 {
        font-size: 1.5rem;
    }

    .matches-hero-stat {
        text-align: left;
    }

    .mc-body {
        grid-template-columns: minmax(76px, 1fr) auto minmax(76px, 1fr);
        gap: 10px;
    }

    .mc-crest, .mc-crest-fallback {
        width: 36px;
        height: 36px;
    }

    .mc-crest-wrap {
        width: 42px;
        height: 42px;
    }

    .mc-topline {
        font-size: 0.82rem;
        margin-bottom: 12px;
    }

    .mc-pill {
        min-height: 36px;
        padding: 8px 14px;
        font-size: 0.92rem;
    }

    .mc-primary {
        font-size: 2.2rem;
    }

    .mc-secondary {
        font-size: 0.88rem;
    }

    .mc-team-name {
        max-width: 84px;
        font-size: 0.88rem;
    }

    .main-nav { display: none; }
    .menu-toggle { display: block; }

    .header-inner {
        flex-wrap: wrap;
        gap: 16px;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .theme-toggle {
        width: 100%;
        max-width: 230px;
    }

    .user-actions {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .user-greeting {
        max-width: none;
    }

    .section-split-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .matches-toolbar-meta {
        justify-content: flex-start;
    }

    .matches-pagination-controls {
        width: 100%;
        justify-content: space-between;
    }

    .football-hero h1 {
        font-size: 1.6rem;
    }

    .live-priority-section,
    .football-section,
    .football-hero {
        padding: 18px;
    }

    .match-scoreboard,
    .match-scoreboard.compact {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .match-team,
    .match-team.align-right {
        justify-content: space-between;
        text-align: left;
    }

    .match-score {
        justify-self: flex-start;
    }

    .auth-card {
        padding: 22px;
        border-radius: 22px;
    }

    .auth-card h1 {
        font-size: 1.7rem;
    }

    .main-nav.open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--header-bg);
        flex-direction: column;
        padding: 10px 20px 20px;
    }

    .main-nav.open ul {
        flex-direction: column;
        gap: 14px;
    }
}
