@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
    --bg: #050710;
    --bg-secondary: #0b1022;
    --grid-line: rgba(255, 255, 255, 0.04);
    --text-main: #f5f7ff;
    --text-muted: #a6afc9;
    --accent: #2be6c9;
    --card-radius: 18px;
    --shadow-strong: 0 25px 50px rgba(0, 0, 0, 0.55);
    --shadow-soft: 0 18px 35px rgba(0, 0, 0, 0.35);
    --font-display: "Barlow", "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-body: "Space Grotesk", "Barlow", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: radial-gradient(circle at 20% 20%, rgba(72, 112, 255, 0.12), transparent 35%), radial-gradient(circle at 80% 10%, rgba(255, 67, 176, 0.14), transparent 32%), radial-gradient(circle at 50% 75%, rgba(43, 230, 201, 0.08), transparent 45%), var(--bg);
    color: var(--text-main);
    min-height: 100vh;
    font-family: var(--font-body);
    display: flex;
    flex-direction: column;
}

.ambient-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding: 22px 32px 14px;
    backdrop-filter: blur(12px);
    background: linear-gradient(120deg, rgba(8, 11, 24, 0.9), rgba(13, 18, 32, 0.8));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand h1 {
    margin: 4px 0 6px;
    font-size: 1.9rem;
    letter-spacing: -0.01em;
    font-family: var(--font-display);
}

.brand .subtitle {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.98rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    margin: 0;
    color: var(--accent);
}

.header-controls {
    display: flex;
    gap: 16px;
    align-items: center;
}

.provider-dropdown {
    position: relative;
}

.provider-toggle {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #f5f7ff;
    padding: 8px 12px;
    font-weight: 700;
    cursor: pointer;
}

.provider-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: rgba(8, 10, 20, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    min-width: 220px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    padding: 6px;
    display: none;
    z-index: 20;
}

.provider-menu.open {
    display: block;
}

.provider-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    color: #f4f6ff;
    font-weight: 700;
    font-size: 0.82rem;
}

.provider-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04);
}

.status-available {
    background: #3cd698;
}

.status-cooldown {
    background: #ffb147;
}

.status-error,
.status-rate_limited {
    background: #ff6878;
}

.status-unknown {
    background: #9ea4c7;
}

.zoom-control {
    position: relative;
}

.logo-zoom-btn {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #f5f7ff;
    padding: 6px 8px;
    cursor: pointer;
    font-weight: 700;
}

.zoom-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: rgba(8, 10, 20, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 8px 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    display: none;
    z-index: 15;
    min-width: 180px;
    color: #f4f6ff;
    font-size: 0.85rem;
}

.zoom-panel.open {
    display: block;
}

.zoom-panel input[type="range"] {
    width: 100%;
}

.zoom-value {
    display: inline-block;
    margin-top: 4px;
    font-weight: 700;
}

.add-league-dropdown {
    position: relative;
}

.add-league-btn {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(72, 112, 255, 0.12);
    color: #f5f7ff;
    padding: 8px 12px;
    font-weight: 800;
    cursor: pointer;
}

.add-league-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: rgba(8, 10, 20, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    min-width: 240px;
    max-height: 320px;
    overflow-y: auto;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    padding: 6px;
    display: none;
    z-index: 20;
}

.add-league-menu.open {
    display: block;
}

.add-league-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    color: #f4f6ff;
    font-weight: 700;
    font-size: 0.9rem;
}

.add-league-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.league-badge {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.06);
}

.control {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.control.checkbox {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.control.checkbox input {
    width: 18px;
    height: 18px;
}

.control select {
    background: var(--bg-secondary);
    color: var(--text-main);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 12px;
    font-weight: 700;
    font-family: var(--font-body);
    outline: none;
    box-shadow: var(--shadow-soft);
}

.league-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    padding: 14px 18px 28px;
    position: relative;
    z-index: 1;
}

.league-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--card-radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
    box-shadow: var(--shadow-soft);
    padding: 10px 12px 12px;
}

.league-card .card-accent {
    position: absolute;
    inset: -30% 40% 50% -40%;
    background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.07), transparent 60%);
    filter: blur(24px);
    opacity: 0.8;
    pointer-events: none;
}

.league-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 6px;
}

.league-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.league-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.league-text h2 {
    margin: 2px 0 6px;
    font-size: 1.25rem;
    font-family: var(--font-display);
    letter-spacing: -0.01em;
}

.level-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.76rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.status-pill {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
}

.status-loading {
    border-color: rgba(255, 211, 90, 0.7);
    color: #ffd35a;
}

.status-ok {
    border-color: rgba(60, 214, 152, 0.7);
    color: #3cd698;
}

.status-warn {
    border-color: rgba(255, 177, 71, 0.75);
    color: #ffb147;
}

.status-error {
    border-color: rgba(255, 104, 120, 0.7);
    color: #ff6878;
}

.reload-btn {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    color: var(--text-main);
    padding: 8px 12px;
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.reload-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(43, 230, 201, 0.7);
    box-shadow: 0 8px 18px rgba(43, 230, 201, 0.18);
}

.meta-row {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 4px 2px 10px;
}

.standings-wrapper {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(6, 9, 20, 0.82);
    overflow: hidden;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.standings-table tbody {
    transition: opacity 0.25s ease, filter 0.25s ease;
}

.standings-table tbody.is-updating {
    opacity: 0.35;
    filter: blur(0.4px);
}

.standings-table thead th {
    text-align: right;
    padding: 7px 8px;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(12, 16, 30, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 1;
}

.standings-table th:first-child,
.standings-table td:first-child {
    text-align: center;
}

.standings-table th:nth-child(2),
.standings-table td:nth-child(2) {
    text-align: left;
}

.standings-table tbody tr {
    transition: background 0.18s ease;
}

.standings-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.standings-table tbody tr:hover {
    background: rgba(43, 230, 201, 0.06);
}

.theme-league.theme-pl .standings-table tbody tr:hover {
    background: rgba(69, 240, 194, 0.08);
}

.theme-league.theme-laliga .standings-table tbody tr:hover {
    background: rgba(255, 176, 64, 0.08);
}

.theme-league.theme-ucl .standings-table tbody tr:hover {
    background: rgba(71, 142, 255, 0.08);
}

.standings-table td {
    padding: 7px 10px;
    text-align: right;
    color: #e8ebf7;
    white-space: nowrap;
}

.col-pos {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.col-team {
    min-width: 160px;
    position: relative;
}

.team-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--chip-bg, linear-gradient(120deg, #0e1425, #172338));
    border-radius: 12px;
    border: none;
    padding: 4px 8px 4px 6px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.team-chip::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.08) 40%, transparent 60%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.team-chip:hover::after {
    opacity: 1;
}

.team-logo-wrap {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    isolation: isolate;
}

.team-logo-wrap.placeholder {
    background: rgba(255, 255, 255, 0.04);
}

.team-logo-tilt {
    transform: scale(0.9);
}

.team-logo-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(var(--logo-zoom, 1));
}

.team-chip-text {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
}

.team-code {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fdfdfd;
    font-size: 0.82rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.live-pill {
    padding: 4px 8px;
    border-radius: 999px;
    background: #e71d36;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow: 0 0 0 1px rgba(231, 29, 54, 0.4);
}

.col-gd {
    font-variant-numeric: tabular-nums;
}

.col-gd.positive {
    color: #41d695;
}

.col-gd.negative {
    color: #ff6b81;
}

.col-points {
    font-weight: 800;
}

.placeholder-row td {
    text-align: center !important;
    padding: 14px 12px;
    color: var(--text-muted);
}

.placeholder-row.error td {
    color: #ff6b81;
}

.is-stale td {
    opacity: 0.9;
}

.show-more-row td {
    text-align: center !important;
    padding: 8px 6px;
}

.show-more-btn {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: #f4f6ff;
    padding: 7px 10px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: background 0.15s ease, transform 0.15s ease;
}

.show-more-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.qual-row td {
    padding: 0;
    background: transparent;
}

.qual-band {
    display: block;
    width: 100%;
    padding: 3px 10px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #fff;
    text-transform: uppercase;
    background: var(--qual-color, #1c4bff);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.qual-band .qual-line {
    display: none;
}

.qual-band .qual-label {
    display: inline-block;
    padding: 2px 0;
}

/* Conference League green accent (detects inline style color) */
.qual-band[style*="#00ff57" i] {
    --qual-color: #00ff57;
}

.playoff-banner {
    display: inline-block;
    margin-bottom: 4px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #e8ebf7;
}

/* UCL tier styling (league theme) */
.league-card.theme-league.theme-ucl .standings-row.ucl-tier-r16 td {
    background: linear-gradient(90deg, rgba(20, 44, 120, 0.9), rgba(14, 36, 102, 0.9));
    border-left: 4px solid #00c8ff;
}

.league-card.theme-league.theme-ucl .standings-row.ucl-tier-playoff td {
    background: linear-gradient(90deg, rgba(16, 29, 78, 0.9), rgba(10, 23, 62, 0.9));
    border-left: 4px solid #0096ff;
}

.league-card.theme-league.theme-ucl .standings-row.ucl-tier-out td {
    background: linear-gradient(90deg, rgba(10, 18, 48, 0.9), rgba(7, 14, 36, 0.9));
    border-left: 4px solid #ff4d6d;
}

.league-card.theme-league.theme-ucl .standings-table tbody tr:nth-child(even) td {
    background: transparent;
}

.trophy-row {
    display: none;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.trophy-pill {
    padding: 3px 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.65rem;
    font-weight: 700;
    color: #f7f8fc;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.trophy-year {
    color: #b7c3ff;
    font-weight: 800;
}

.show-extras .trophy-row {
    display: flex;
}

.site-footer {
    padding: 12px 24px 24px;
    color: var(--text-muted);
    font-size: 0.86rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(4, 6, 14, 0.9);
    position: relative;
    z-index: 1;
}

/* THEME OVERRIDES ---------------------------------------------------------- */

.theme-logo-bg .team-chip {
    background-image: linear-gradient(120deg, rgba(4, 6, 14, 0.82), rgba(6, 10, 20, 0.6)), var(--row-logo, linear-gradient(120deg, #0e1425, #172338));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.theme-logo-bg .team-logo-wrap {
    display: none;
}

.theme-logo-bg .team-chip-text {
    gap: 10px;
}

.league-card.theme-neutral {
    --chip-bg: linear-gradient(120deg, #10172b, #1b2438);
    --chip-border: transparent;
    --chip-accent: #10172b;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.league-card.theme-league.theme-pl {
    --chip-bg: linear-gradient(115deg, #0f1230, #2a0f4d);
    --chip-border: transparent;
    --chip-accent: linear-gradient(135deg, #45f0c2, #13c7a0);
    border-color: rgba(122, 255, 200, 0.45);
    background: radial-gradient(circle at 15% 20%, rgba(69, 240, 194, 0.12), transparent 45%), linear-gradient(140deg, #0b0d1f, #1c1042 55%, #0b0d1f 90%);
}
.league-card.theme-league.theme-pl .team-chip {
    position: relative;
    padding-left: 6px;
}

.league-card.theme-league.theme-laliga {
    --chip-bg: linear-gradient(110deg, #e9362f 0%, #c6231f 45%, #1b1b1b 100%);
    --chip-border: #c6231f;
    --chip-accent: #e9362f;
    border-color: rgba(233, 54, 47, 0.35);
    background: radial-gradient(circle at 70% 10%, rgba(233, 54, 47, 0.28), transparent 50%), linear-gradient(150deg, #1b1b22 0%, #240f1b 45%, #0f0b15 100%);
}
.league-card.theme-league.theme-laliga .team-chip {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}
.league-card.theme-league.theme-laliga .team-chip::before,
.league-card.theme-league.theme-laliga .team-chip::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.league-card.theme-league.theme-laliga .team-chip::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), transparent 40%);
}
.league-card.theme-league.theme-laliga .team-chip::after {
    background: linear-gradient(270deg, rgba(0, 0, 0, 0.35), transparent 35%);
}
.league-card.theme-league.theme-laliga .team-code {
    color: #fdfdfd;
}

.league-card.theme-league.theme-ucl {
    --chip-bg: linear-gradient(120deg, #0a1230, #071841);
    --chip-border: transparent;
    --chip-accent: linear-gradient(135deg, #0f2d72, #2b5cff);
    border-color: rgba(71, 142, 255, 0.55);
    background: radial-gradient(circle at 30% 20%, rgba(43, 92, 255, 0.2), transparent 50%), radial-gradient(circle at 70% 60%, rgba(15, 45, 114, 0.2), transparent 50%), linear-gradient(160deg, #050914, #0c162f);
}
.league-card.theme-league.theme-ucl .team-chip {
    position: relative;
    box-shadow: 0 0 12px rgba(69, 119, 255, 0.35), var(--shadow-soft);
}
.league-card.theme-league.theme-ucl .team-chip::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(69, 119, 255, 0.35), transparent 55%), radial-gradient(circle at 80% 40%, rgba(21, 206, 255, 0.25), transparent 50%);
    opacity: 0.9;
}
.league-card.theme-league.theme-ucl .standings-table tbody tr td {
    background: linear-gradient(90deg, rgba(9, 22, 68, 0.9), rgba(6, 15, 44, 0.9));
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    border-left: none;
}

.league-card.theme-league.theme-ucl .standings-table tbody tr:nth-child(even) td {
    background: linear-gradient(90deg, rgba(12, 30, 85, 0.9), rgba(8, 19, 58, 0.9));
}

.league-card.theme-league.theme-ucl .standings-row.ucl-tier-r16 td {
    background: linear-gradient(90deg, rgba(18, 52, 140, 0.95), rgba(13, 36, 104, 0.95));
    border-left: 4px solid #00c8ff;
}

.league-card.theme-league.theme-ucl .standings-row.ucl-tier-playoff td {
    background: linear-gradient(90deg, rgba(10, 35, 104, 0.95), rgba(6, 24, 78, 0.95));
    border-left: 4px solid #00a9ff;
}

.league-card.theme-league.theme-ucl .standings-row.ucl-tier-out td {
    background: linear-gradient(90deg, rgba(7, 16, 48, 0.95), rgba(5, 11, 34, 0.95));
    border-left: 4px solid #ff4d6d;
}

.league-card.theme-league.theme-ucl .qual-row td {
    padding: 0;
}

.league-card.theme-league.theme-ucl .qual-band {
    background: var(--qual-color, #0076ff);
    box-shadow: none;
    font-size: 0.7rem;
    padding: 6px 10px;
    letter-spacing: 0.08em;
}

.league-card.theme-league.theme-ucl .standings-table tbody tr:hover td {
    background: linear-gradient(90deg, rgba(28, 74, 176, 0.95), rgba(18, 49, 132, 0.95));
}

.league-card.theme-league.theme-ucl .standings-table td,
.league-card.theme-league.theme-ucl .standings-table th {
    border-left: none !important;
}

.standings-table th:last-child,
.standings-table td:last-child {
    padding-right: 12px;
}

.league-card.theme-logo-bg .team-chip {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}
.league-card.theme-logo-bg .team-logo-wrap {
    display: none;
}
.league-card.theme-logo-bg .team-chip-text {
    gap: 10px;
    width: 100%;
    justify-content: space-between;
}

.league-card.theme-logo-bg .standings-row .col-team {
    position: relative;
    display: flex;
    align-items: center;
    background-image:
        linear-gradient(90deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.05)),
        var(--row-logo, linear-gradient(120deg, #0e1425, #172338));
    background-size: calc(100% * var(--row-logo-scale, 1));
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    overflow: hidden;
    padding: 4px 10px;
    min-height: 52px;
}

.league-card.theme-logo-bg .standings-row .col-team::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.02));
    pointer-events: none;
}

.league-card.theme-logo-bg .standings-row .col-team > * {
    position: relative;
    z-index: 1;
}
.league-card.theme-league.theme-ucl .standings-table tbody tr:hover {
    background: rgba(71, 142, 255, 0.08);
}

.league-card.theme-league.theme-pl .standings-table tbody tr:hover {
    background: rgba(69, 240, 194, 0.08);
}

.league-card.theme-league.theme-laliga .standings-table tbody tr:hover {
    background: rgba(255, 176, 64, 0.08);
}

@media (max-width: 900px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        position: static;
    }

    .header-controls {
        width: 100%;
        flex-wrap: wrap;
    }

    .league-grid {
        grid-template-columns: 1fr;
        padding-inline: 16px;
    }
}

@media (max-width: 520px) {
    .standings-table th,
    .standings-table td {
        padding: 7px 6px;
        font-size: 0.78rem;
    }

    .col-team {
        min-width: 0;
    }
}
