:root {
    --league-bg: #08111f;
    --league-panel: rgba(7, 16, 30, 0.88);
    --league-panel-strong: rgba(12, 23, 42, 0.95);
    --league-card: rgba(21, 34, 58, 0.92);
    --league-card-soft: rgba(255, 255, 255, 0.06);
    --league-border: rgba(255, 255, 255, 0.12);
    --league-text: #eef3ff;
    --league-muted: #b7c4de;
    --league-accent: #ffc63d;
    --league-accent-strong: #ff9b2f;
    --league-success: #22c55e;
    --league-danger: #ef4444;
    --league-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    --league-font-body: "Trebuchet MS", "Segoe UI", sans-serif;
    --league-font-heading: Georgia, "Times New Roman", serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(2, 6, 15, 0.82), rgba(2, 6, 15, 0.96)),
        url('images/football_wallpaper.jpg') center/cover fixed;
    color: var(--league-text);
    font-family: var(--league-font-body);
    font-size: clamp(0.98rem, 0.18vw + 0.94rem, 1.06rem);
    line-height: 1.6;
    overflow-x: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
.page-title,
.header-center h1 {
    font-family: var(--league-font-heading);
    line-height: 1.14;
    letter-spacing: 0.01em;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
}

h2 {
    font-size: clamp(1.7rem, 3vw, 2.45rem);
}

h3 {
    font-size: clamp(1.32rem, 2vw, 1.95rem);
}

h4 {
    font-size: clamp(1.12rem, 1.3vw, 1.45rem);
}

h5 {
    font-size: clamp(1rem, 1vw, 1.18rem);
}

h6 {
    font-size: 0.95rem;
}

a {
    color: inherit;
}

.page-shell {
    width: min(1600px, max(90vw, calc(100% - 1.25rem)));
    margin: 0 auto;
    padding: 1rem 0 2rem;
}

.overlay {
    background: var(--league-panel);
    border: 1px solid var(--league-border);
    border-radius: 24px;
    box-shadow: var(--league-shadow);
    backdrop-filter: blur(8px);
}

@keyframes card-rise-in {
    from {
        opacity: 0;
        transform: translateY(26px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes spotlight-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@keyframes ambient-shimmer {
    0% {
        opacity: 0.22;
        transform: translateX(0);
    }
    50% {
        opacity: 0.42;
        transform: translateX(10px);
    }
    100% {
        opacity: 0.22;
        transform: translateX(0);
    }
}

@keyframes hover-card-wobble {
    0% {
        opacity: 1;
        transform: translateY(-6px) rotate(0deg);
    }
    20% {
        opacity: 1;
        transform: translateY(-6px) rotate(-1.2deg) scale(1.01);
    }
    40% {
        opacity: 1;
        transform: translateY(-6px) rotate(1.2deg) scale(1.015);
    }
    60% {
        opacity: 1;
        transform: translateY(-6px) rotate(-0.8deg) scale(1.01);
    }
    80% {
        opacity: 1;
        transform: translateY(-6px) rotate(0.8deg) scale(1.015);
    }
    100% {
        opacity: 1;
        transform: translateY(-6px) rotate(0deg) scale(1.012);
    }
}

@keyframes chart-shell-glow {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.38;
    }
    50% {
        transform: translate3d(10px, -8px, 0) scale(1.04);
        opacity: 0.7;
    }
}

@keyframes chart-shell-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes leaderboard-card-drift {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7px);
    }
}

@keyframes leaderboard-sheen {
    0% {
        opacity: 0;
        transform: translateX(-115%);
    }
    25% {
        opacity: 0.22;
    }
    100% {
        opacity: 0;
        transform: translateX(135%);
    }
}

@keyframes matchday-card-float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-6px) scale(1.01);
    }
}

@keyframes chart-loading-pulse {
    0%, 100% {
        opacity: 0.35;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.04);
    }
}

.page-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.header-center {
    text-align: center;
}

.season-chip-row,
.page-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: 0.85rem;
}

.season-chip-row {
    justify-content: center;
}

.page-header-meta {
    justify-content: flex-start;
}

.season-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 198, 61, 0.24);
    background: rgba(255, 255, 255, 0.05);
    color: var(--league-text);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.season-chip-accent {
    background: linear-gradient(135deg, rgba(255, 198, 61, 0.24), rgba(255, 155, 47, 0.24));
}

.hero-banner,
.hero-image {
    width: 100%;
    display: block;
    border-radius: 20px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-banner {
    max-height: 168px;
}

.hero-image {
    min-height: 220px;
    max-height: 380px;
}

.hero-card,
.content-card,
.metric-card {
    background: var(--league-card);
    border: 1px solid var(--league-border);
    border-radius: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.motion-card {
    opacity: 1;
    animation: none;
    will-change: transform, opacity;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.motion-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 198, 61, 0.28);
}

.metric-card.motion-card:hover {
    opacity: 1;
    transform-origin: center center;
    background:
        radial-gradient(circle at top right, rgba(255, 198, 61, 0.18), transparent 38%),
        linear-gradient(180deg, rgba(30, 49, 82, 0.98), rgba(18, 31, 56, 0.96));
    animation: hover-card-wobble 0.6s ease-in-out both;
}

.motion-card-soft {
    opacity: 1;
    animation: none;
    will-change: transform, opacity;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.motion-card-soft:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 198, 61, 0.24);
}

.stagger-1 {
    animation-delay: 0.08s;
}

.stagger-2 {
    animation-delay: 0.16s;
}

.stagger-3 {
    animation-delay: 0.24s;
}

.stagger-4 {
    animation-delay: 0.32s;
}

.stagger-5 {
    animation-delay: 0.4s;
}

.stagger-6 {
    animation-delay: 0.48s;
}

.content-card-soft {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--league-border);
    border-radius: 18px;
    padding: 1rem;
}

.hero-card,
.content-card {
    padding: 1rem;
}

.top-showcase-card {
    min-height: 264px;
    height: 264px;
    position: relative;
    overflow: hidden;
}

.top-showcase-card .carousel,
.top-showcase-card .carousel-inner,
.top-showcase-card .carousel-item {
    height: 100%;
}

.showcase-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    object-position: center;
    transform: scale(1.02);
    filter: contrast(1.04) saturate(1.04);
    background: rgba(8, 15, 28, 0.78);
}

.showcase-static-overlay {
    position: absolute;
    inset: 0.72rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 0.72rem;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(8, 15, 28, 0.06), rgba(8, 15, 28, 0.58));
    pointer-events: none;
    overflow: hidden;
}

.showcase-static-overlay .showcase-card-body {
    padding: 0;
}

.showcase-static-overlay .showcase-copy {
    max-width: 26rem;
    font-size: 0.9rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.showcase-card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.75rem;
    height: 100%;
}

.showcase-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.8rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
}

.showcase-stat strong {
    color: var(--league-accent);
    font-size: 0.95rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.showcase-logo-pulse {
    width: min(100%, 172px);
    margin-top: 0.15rem;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.45rem 0.7rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    text-align: center;
    overflow: hidden;
}

.showcase-logo-pulse .stat-label {
    font-size: 0.66rem;
    line-height: 1;
    white-space: nowrap;
}

.showcase-logo-pulse strong {
    display: inline-block;
    max-width: 72px;
    color: var(--league-accent);
    font-size: 0.8rem;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.showcase-copy {
    max-width: 24rem;
}

.carousel-caption.showcase-caption {
    right: 1rem;
    left: 1rem;
    bottom: 1rem;
    padding: 1rem;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(8, 15, 28, 0.25), rgba(8, 15, 28, 0.88));
    backdrop-filter: blur(6px);
}

.carousel-caption.showcase-caption p,
.carousel-caption.showcase-caption h3 {
    margin-bottom: 0.35rem;
}

.countdown-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 94px;
    min-height: 94px;
    padding: 0.65rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 198, 61, 0.32);
    background:
        radial-gradient(circle at center, rgba(255, 198, 61, 0.12), transparent 58%),
        rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 30px rgba(255, 198, 61, 0.08);
    text-align: center;
}

.countdown-ring #countdown {
    font-size: 1.12rem;
    line-height: 1.1;
}

.showcase-club-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
}

.showcase-static-overlay h3 {
    font-size: clamp(1rem, 1vw + 0.7rem, 1.28rem);
    line-height: 1.15;
    margin-bottom: 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.showcase-club-line .team-cell {
    gap: 0.45rem;
    min-width: 0;
}

.showcase-club-line .fw-semibold {
    font-size: 0.92rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.countdown-showcase-body {
    align-items: stretch;
    justify-content: flex-end;
    gap: 0.6rem;
}

.countdown-status-card {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.25rem;
}

.countdown-status-card strong {
    width: 100%;
    text-align: left;
    line-height: 1.2;
}

.metric-card {
    padding: 1rem 1.25rem;
    text-align: center;
    height: 100%;
}

.page-title,
.header-center h1 {
    margin: 0;
    color: var(--league-accent);
    font-weight: 800;
    letter-spacing: 0.02em;
    font-size: clamp(2rem, 4.2vw, 3.35rem);
}

.page-subtitle {
    margin: 0;
    color: var(--league-muted);
    font-size: clamp(1rem, 0.35vw + 0.95rem, 1.08rem);
}

.section-title,
h3 {
    color: var(--league-accent);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.league-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem 0 1.25rem;
}

.league-nav a,
.league-nav button,
.league-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 198, 61, 0.28);
    background: rgba(255, 255, 255, 0.05);
    color: var(--league-text);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.league-nav a:hover,
.league-nav button:hover,
.league-chip:hover {
    transform: translateY(-1px);
    background: rgba(255, 198, 61, 0.14);
    border-color: rgba(255, 198, 61, 0.5);
}

.league-chip.is-active {
    background: linear-gradient(135deg, var(--league-accent), var(--league-accent-strong));
    color: #111827;
    border-color: transparent;
}

.public-fixture-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.5rem 0 0.15rem;
}

.public-fixture-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0.18rem 0.62rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--league-muted);
}

.public-fixture-tag.is-primary {
    background: rgba(255, 198, 61, 0.16);
    border-color: rgba(255, 198, 61, 0.3);
    color: #ffe38a;
}

.public-fixture-tag.is-secondary {
    background: rgba(96, 165, 250, 0.16);
    border-color: rgba(96, 165, 250, 0.28);
    color: #c6ddff;
}

.btn,
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 198, 61, 0.28);
    background: rgba(255, 255, 255, 0.05);
    color: var(--league-text);
    text-decoration: none;
    font-weight: 600;
    box-shadow: none;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover,
.page-link:hover,
.btn:focus-visible,
.page-link:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 198, 61, 0.14);
    border-color: rgba(255, 198, 61, 0.5);
    color: var(--league-text);
    box-shadow: none;
}

.btn-primary,
.btn-warning,
.btn-success,
.btn-outline-warning.active,
.page-item.active .page-link {
    background: linear-gradient(135deg, var(--league-accent), var(--league-accent-strong));
    color: #111827;
    border-color: transparent;
}

.btn-secondary,
.btn-outline-secondary,
.btn-outline-light,
.btn-outline-dark,
.btn-dark {
    background: rgba(255, 255, 255, 0.05);
    color: var(--league-text);
    border-color: rgba(255, 198, 61, 0.28);
}

.btn-danger,
.btn-outline-danger {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.16), rgba(239, 68, 68, 0.24));
    color: #fee2e2;
    border-color: rgba(248, 113, 113, 0.42);
}

.btn-sm {
    min-height: 38px;
    padding: 0.55rem 0.85rem;
}

.btn-lg {
    min-height: 48px;
}

.pagination {
    gap: 0.45rem;
}

.page-link {
    min-width: 44px;
}

.page-item.disabled .page-link {
    opacity: 0.5;
    pointer-events: none;
}

.floating-theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-width: 132px;
    height: 54px;
    padding: 0 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 198, 61, 0.34);
    background: rgba(8, 17, 31, 0.9);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(14px);
    color: #f8fbff;
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.floating-theme-toggle:hover,
.floating-theme-toggle:focus-visible {
    transform: translateY(-2px);
    background: rgba(12, 22, 39, 0.96);
    border-color: rgba(255, 198, 61, 0.54);
}

.theme-toggle-orb {
    position: relative;
    display: inline-flex;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(90deg, #050b14 50%, #f8fafc 50%);
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow: inset 0 0 0 2px rgba(8, 17, 31, 0.1);
}

.theme-toggle-label {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.floating-theme-toggle.is-night {
    background: rgba(8, 17, 31, 0.92);
    border-color: rgba(255, 198, 61, 0.34);
    color: #f8fbff;
}

.floating-theme-toggle.is-light .theme-toggle-orb {
    background: linear-gradient(90deg, #f8fafc 50%, #050b14 50%);
}

.floating-theme-toggle.is-light {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(15, 23, 42, 0.16);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
    color: #111827;
}

.floating-theme-toggle.is-broadcast {
    background: rgba(6, 21, 39, 0.95);
    border-color: rgba(125, 211, 252, 0.34);
    color: #edf6ff;
}

.floating-theme-toggle.is-broadcast .theme-toggle-orb {
    background: linear-gradient(135deg, #03192f 0%, #0ea5e9 100%);
    border-color: rgba(125, 211, 252, 0.42);
}

.floating-theme-toggle.is-club-gold {
    background: rgba(24, 18, 10, 0.95);
    border-color: rgba(255, 198, 61, 0.38);
    color: #fff4d4;
}

.floating-theme-toggle.is-club-gold .theme-toggle-orb {
    background: linear-gradient(135deg, #2f210f 0%, #ffc63d 100%);
    border-color: rgba(255, 215, 130, 0.46);
}

.icon-buttonized {
    min-width: 44px;
    width: 44px;
    padding: 0.75rem !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
}

.icon-button-glyph {
    font-size: 1.05rem;
    line-height: 1;
}

.icon-buttonized-stacked {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
}

.icon-button-caption {
    display: block;
    max-width: 100%;
    font-size: 0.68rem;
    line-height: 1.15;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
    white-space: normal;
}

.icon-buttonized[data-icon-label]::before,
.icon-buttonized[data-icon-label]::after {
    position: absolute;
    left: 50%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 30;
}

.icon-buttonized[data-icon-label]::before {
    content: '';
    bottom: calc(100% + 0.22rem);
    transform: translateX(-50%) translateY(0.3rem);
    border-width: 0.38rem 0.35rem 0;
    border-style: solid;
    border-color: rgba(5, 11, 20, 0.96) transparent transparent;
}

.icon-buttonized[data-icon-label]::after {
    content: attr(data-icon-label);
    bottom: calc(100% + 0.58rem);
    transform: translateX(-50%) translateY(0.3rem);
    padding: 0.42rem 0.6rem;
    border-radius: 999px;
    background: rgba(5, 11, 20, 0.96);
    color: #f8fafc;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    white-space: nowrap;
    box-shadow: 0 14px 26px rgba(5, 11, 20, 0.24);
}

.icon-buttonized[data-icon-label]:hover::before,
.icon-buttonized[data-icon-label]:hover::after,
.icon-buttonized[data-icon-label]:focus-visible::before,
.icon-buttonized[data-icon-label]:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.section-jump-link.icon-buttonized-stacked[data-icon-label]::before,
.section-jump-link.icon-buttonized-stacked[data-icon-label]::after,
.homepage-top-nav a.icon-buttonized-stacked[data-icon-label]::before {
    display: none;
}

.light-mode .icon-buttonized[data-icon-label]::before {
    border-color: rgba(255, 255, 255, 0.98) transparent transparent;
}

.light-mode .icon-buttonized[data-icon-label]::after {
    background: rgba(255, 255, 255, 0.98);
    color: #08111f;
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.14);
}

.section-jumpbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.section-jump-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--league-text);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.section-jump-link:hover {
    transform: translateY(-1px);
    background: rgba(255, 198, 61, 0.12);
    border-color: rgba(255, 198, 61, 0.34);
}

.homepage-top-nav a.icon-buttonized-stacked,
.section-jump-link.icon-buttonized-stacked {
    width: auto;
    min-width: 78px;
    min-height: 68px;
    padding: 0.6rem 0.75rem !important;
    justify-content: center;
}

.homepage-top-nav a.icon-buttonized-stacked::after {
    margin-top: 0.18rem;
}

.homepage-top-nav a.icon-buttonized-stacked .icon-button-glyph,
.section-jump-link.icon-buttonized-stacked .icon-button-glyph {
    font-size: 1.12rem;
}

.report-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.report-card-link:hover {
    color: inherit;
}

.interactive-highlight-card {
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, filter 0.24s ease;
}

.report-card-link:hover .interactive-highlight-card,
.report-card-link:focus-visible .interactive-highlight-card {
    transform: translateY(-7px) scale(1.015);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.28);
    border-color: rgba(255, 198, 61, 0.42);
    filter: saturate(1.08);
    animation: hover-card-wobble 0.7s ease-in-out both;
}

.report-row {
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.report-row:hover td {
    background: rgba(255, 198, 61, 0.06);
}

.table-responsive {
    border-radius: 18px;
    border: 1px solid var(--league-border);
    background: rgba(255, 255, 255, 0.03);
}

.table {
    margin-bottom: 0;
    color: var(--league-text);
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.04);
    --bs-table-striped-color: var(--league-text);
    --bs-table-color: var(--league-text);
}

.table th {
    color: var(--league-accent);
    background: rgba(255, 255, 255, 0.04) !important;
    white-space: nowrap;
}

.table td,
.table th {
    vertical-align: middle;
    padding: 0.9rem 0.85rem;
}

.team-cell {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.team-cell span {
    min-width: 0;
}

.team-cell-stack {
    display: grid;
    gap: 0.35rem;
}

.team-main {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

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

.away-team-cell span {
    text-align: right;
}

.away-column-header {
    text-align: right !important;
}

.right-column-cell {
    text-align: right;
}

.right-column-header {
    text-align: right !important;
}

.team-logo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255, 198, 61, 0.5);
}

.compact-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 198, 61, 0.45);
}

.section-stack {
    display: grid;
    gap: 1rem;
}

.stats-grid,
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.stats-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.media-news-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1rem;
}

.media-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.media-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    min-height: 260px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(18, 30, 51, 0.75), rgba(5, 10, 20, 0.96));
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.28);
    animation: leaderboard-card-drift 6.6s ease-in-out infinite;
    will-change: transform;
}

.media-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.08) 42%, transparent 74%);
    pointer-events: none;
    z-index: 1;
    animation: leaderboard-sheen 7.5s ease-in-out infinite;
}

.media-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.media-card:hover img {
    transform: scale(1.06);
    filter: saturate(1.08);
}

.media-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 12, 24, 0.08), rgba(6, 12, 24, 0.82));
    pointer-events: none;
    z-index: 1;
}

.media-card-copy {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1rem;
    z-index: 2;
}

.media-card-copy h4 {
    margin: 0.25rem 0 0.35rem;
    font-size: 1.05rem;
    color: var(--league-text);
}

.media-card-copy p {
    margin: 0;
    color: var(--league-muted);
    font-size: 0.9rem;
}

.news-stack {
    display: grid;
    gap: 1rem;
}

.news-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        radial-gradient(circle at top right, rgba(255, 198, 61, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(16, 29, 49, 0.96), rgba(8, 16, 29, 0.98));
    padding: 1rem 1rem 1.05rem;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.28);
    animation: leaderboard-card-drift 6.8s ease-in-out infinite;
    will-change: transform;
}

.news-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.08) 42%, transparent 74%);
    opacity: 1;
    pointer-events: none;
    animation: leaderboard-sheen 7.5s ease-in-out infinite;
}

.news-card:hover::before {
    opacity: 1;
}

.media-gallery-grid .media-card:nth-child(2),
.news-stack .news-card:nth-child(2) {
    animation-delay: 1.2s;
}

.media-gallery-grid .media-card:nth-child(3),
.news-stack .news-card:nth-child(3) {
    animation-delay: 2.2s;
}

.media-gallery-grid .media-card:nth-child(4),
.news-stack .news-card:nth-child(4) {
    animation-delay: 3.2s;
}

.media-gallery-grid .media-card:nth-child(5),
.news-stack .news-card:nth-child(5) {
    animation-delay: 4.2s;
}

.media-gallery-grid .media-card:nth-child(6),
.news-stack .news-card:nth-child(6) {
    animation-delay: 5.2s;
}

.news-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}

.news-handle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.news-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--league-accent), var(--league-accent-strong));
    color: #101827;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.news-name {
    display: block;
    font-weight: 700;
    color: var(--league-text);
}

.news-meta {
    display: block;
    font-size: 0.82rem;
    color: var(--league-muted);
}

.news-copy {
    margin: 0;
    color: var(--league-text);
    line-height: 1.55;
    font-size: 0.95rem;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.9rem;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--league-muted);
}

.stat-value {
    font-size: clamp(1.1rem, 3vw, 1.8rem);
    font-weight: 800;
    color: var(--league-text);
}

.stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--league-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.spotlight-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr 0.9fr;
    gap: 1rem;
}

.spotlight-card {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(255, 198, 61, 0.18), transparent 35%),
        linear-gradient(180deg, rgba(20, 36, 61, 0.95), rgba(9, 18, 33, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 22px;
    padding: 1.2rem;
    min-height: 100%;
}

.spotlight-card-feature {
    background:
        radial-gradient(circle at top right, rgba(255, 198, 61, 0.16), transparent 32%),
        radial-gradient(circle at bottom left, rgba(86, 163, 255, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(20, 36, 61, 0.95), rgba(9, 18, 33, 0.96));
}

.spotlight-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 0.65rem;
}

.spotlight-title {
    margin: 0.1rem 0 0;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--league-text);
}

.spotlight-mini-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 198, 61, 0.24);
    background: rgba(255, 198, 61, 0.1);
    color: #ffe7a0;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    white-space: nowrap;
}

.spotlight-card-animated {
    opacity: 1;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.28);
    animation: leaderboard-card-drift 6.8s ease-in-out infinite;
    will-change: transform;
}

.spotlight-card-animated:nth-of-type(3) {
    animation-delay: 1.2s;
}

.spotlight-card::after {
    content: "";
    position: absolute;
    inset: auto -15% -45% auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
    animation: ambient-shimmer 7s ease-in-out infinite;
}

.spotlight-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.045) 35%, transparent 70%);
    transform: translateX(-18%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.spotlight-card-animated::before {
    background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.08) 42%, transparent 74%);
    opacity: 1;
    animation: leaderboard-sheen 7.5s ease-in-out infinite;
}

.spotlight-card:hover::before {
    opacity: 1;
}

.fixture-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin: 1rem 0;
}

.spotlight-subcopy {
    margin: -0.1rem 0 0.9rem;
    color: rgba(223, 231, 245, 0.76);
    font-size: 0.9rem;
    line-height: 1.45;
}

.club-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    min-width: 84px;
    text-align: center;
}

.spotlight-card:hover .club-badge {
    animation: spotlight-float 1.8s ease-in-out infinite;
}

.spotlight-card-animated:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.34);
}

.club-badge span {
    font-weight: 700;
    font-size: 0.93rem;
}

.fixture-versus {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--league-muted);
}

.fixture-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.fixture-meta-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

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

.list-compact li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.title-race-row,
.pulse-row {
    position: relative;
}

.title-race-row.is-leader {
    margin: 0 -0.2rem;
    padding: 0.85rem 0.75rem;
    border-radius: 16px;
    background: linear-gradient(90deg, rgba(255, 198, 61, 0.14), rgba(255, 255, 255, 0.02));
    border-bottom-color: transparent;
}

.title-race-team {
    align-items: center;
}

.title-race-copy {
    min-width: 0;
    display: grid;
    gap: 0.14rem;
}

.title-race-name {
    display: block;
    font-weight: 700;
    color: var(--league-text);
}

.title-race-copy small {
    color: rgba(223, 231, 245, 0.68);
    font-size: 0.76rem;
    line-height: 1.2;
}

.title-race-points {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #f8fbff;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.pulse-copy {
    display: grid;
    gap: 0.2rem;
}

.pulse-label {
    display: block;
    color: rgba(223, 231, 245, 0.72);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.pulse-value {
    color: var(--league-text);
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1.35;
}

.list-compact li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.rank-badge {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 198, 61, 0.18);
    color: var(--league-accent);
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.team-form-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: center;
}

.team-form-inline.is-away {
    justify-content: flex-end;
}

.team-form-inline .form-pill {
    min-width: 24px;
    height: 24px;
    font-size: 0.72rem;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.form-pill {
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    color: #fff;
}

.form-pill.win {
    background: var(--league-success);
}

.form-pill.draw {
    background: #d4a017;
}

.form-pill.loss {
    background: var(--league-danger);
}

.table tr.row-top-four td:first-child {
    border-left: 4px solid #38bdf8;
}

.table tr.row-relegation td:first-child {
    border-left: 4px solid #ef4444;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--league-muted);
}

.section-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
    flex-wrap: wrap;
}

.section-toolbar p {
    margin: 0;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 28px;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid transparent;
    white-space: nowrap;
}

@keyframes publicLivePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.42);
    }
    70% {
        box-shadow: 0 0 0 9px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.status-chip-ft {
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(56, 189, 248, 0.28);
    color: #8fd3ff;
}

.status-chip-live {
    background: rgba(34, 197, 94, 0.16);
    border-color: rgba(34, 197, 94, 0.36);
    color: #c9ffd8;
}

.status-chip-live::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.42);
    animation: publicLivePulse 1.6s infinite;
}

.status-chip-next {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--league-text);
}

.status-chip-today {
    background: rgba(255, 198, 61, 0.16);
    border-color: rgba(255, 198, 61, 0.3);
    color: #ffe38a;
}

.status-chip-tomorrow {
    background: rgba(96, 165, 250, 0.16);
    border-color: rgba(96, 165, 250, 0.3);
    color: #b8d7ff;
}

.status-chip-soon {
    background: rgba(34, 197, 94, 0.16);
    border-color: rgba(34, 197, 94, 0.28);
    color: #90f2b3;
    animation: spotlight-float 1.8s ease-in-out infinite;
}

.matchday-centre-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.matchday-card {
    position: relative;
    overflow: hidden;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at top right, rgba(255, 198, 61, 0.14), transparent 38%),
        linear-gradient(180deg, rgba(18, 31, 53, 0.94), rgba(8, 16, 30, 0.98));
    min-height: 170px;
}

.matchday-card-animated {
    opacity: 1;
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.22);
    animation: matchday-card-float 7.2s ease-in-out infinite;
    will-change: transform;
}

.matchday-card-animated:nth-child(2n) {
    animation-delay: 1.1s;
}

.matchday-card-animated:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 28px 58px rgba(0, 0, 0, 0.3);
}

.matchday-card::after {
    content: "";
    position: absolute;
    inset: auto -15% -30% auto;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.matchday-card-animated::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.08) 40%, transparent 72%);
    opacity: 0.9;
    transform: translateX(-40%);
    animation: leaderboard-sheen 8.2s ease-in-out infinite;
    pointer-events: none;
}

.matchday-card .stat-value {
    margin: 0.55rem 0;
}

.matchday-card .muted-copy {
    font-size: 0.9rem;
}

.quick-search-card {
    display: grid;
    gap: 1rem;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.search-result-card {
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.search-result-card h4 {
    margin: 0 0 0.8rem;
}

.search-result-list {
    display: grid;
    gap: 0.75rem;
}

.search-result-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.8rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.search-result-link:hover {
    transform: translateY(-1px);
    background: rgba(255, 198, 61, 0.1);
}

.search-result-link strong,
.search-result-link small {
    display: block;
}

.storyline-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 1rem;
}

.story-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    padding: 1.1rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at top right, rgba(255, 198, 61, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(15, 28, 49, 0.96), rgba(8, 16, 29, 0.98));
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.28);
    animation: leaderboard-card-drift 6.9s ease-in-out infinite;
    will-change: transform;
    display: flex;
    flex-direction: column;
}

.story-card.featured {
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.16), transparent 36%),
        linear-gradient(180deg, rgba(15, 28, 49, 0.98), rgba(8, 16, 29, 0.99));
}

.story-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.08) 42%, transparent 74%);
    pointer-events: none;
    opacity: 1;
    animation: leaderboard-sheen 7.2s ease-in-out infinite;
}

.story-card-media {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 64px;
    margin-bottom: 0.8rem;
}

.story-card-photo {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.2);
}

.story-card-media-copy {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.story-card-meta {
    font-size: 0.76rem;
    color: var(--league-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.story-card h4 {
    position: relative;
    z-index: 1;
    margin: 0.3rem 0 0.55rem;
    color: var(--league-text);
    min-height: 3.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--league-muted);
    min-height: 4.7rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-stat {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin-top: auto;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--league-text);
    font-weight: 700;
}

.storyline-grid .story-card:nth-child(2) {
    animation-delay: 1s;
}

.storyline-grid .story-card:nth-child(3) {
    animation-delay: 2s;
}

.storyline-grid .story-card:nth-child(4) {
    animation-delay: 3s;
}

.storyline-grid .story-card:nth-child(5) {
    animation-delay: 4s;
}

.featured-club-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
}

.editorial-empty {
    padding: 1rem;
    border-radius: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    color: var(--league-muted);
    background: rgba(255, 255, 255, 0.03);
}

.spotlight-carousel .carousel-item {
    padding: 0.1rem;
}

.spotlight-slide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(255, 198, 61, 0.12), transparent 38%),
        rgba(255, 255, 255, 0.04);
}

.spotlight-slide-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.spotlight-slide-stat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin-top: 0.8rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--league-accent), var(--league-accent-strong));
    color: #111827;
    font-weight: 800;
}

.spotlight-slide-photo {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 198, 61, 0.4);
    flex-shrink: 0;
}

.filter-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 1.25rem;
}

.form-control,
.form-select,
.btn {
    min-height: 44px;
}

.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--league-text);
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 198, 61, 0.5);
    color: var(--league-text);
    box-shadow: 0 0 0 0.2rem rgba(255, 198, 61, 0.14);
}

.form-select option {
    background: #111c31;
    color: #f8fafc;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.form-select optgroup {
    background: #111c31;
    color: #f8fafc;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.table-note,
.muted-copy,
small,
.text-muted {
    color: var(--league-muted) !important;
}

.light-mode {
    --league-text: #111827;
    --league-muted: #374151;
    --league-card: rgba(255, 255, 255, 0.96);
    --league-card-soft: rgba(15, 23, 42, 0.05);
    --league-border: rgba(15, 23, 42, 0.12);
    --league-panel: rgba(255, 255, 255, 0.92);
    --league-panel-strong: rgba(255, 255, 255, 0.97);
    --league-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    background: rgba(248, 250, 255, 0.95);
    color: #111827;
}

.broadcast-mode {
    --league-text: #edf6ff;
    --league-muted: #a7bfd9;
    --league-card: rgba(10, 30, 52, 0.94);
    --league-card-soft: rgba(125, 211, 252, 0.08);
    --league-border: rgba(125, 211, 252, 0.18);
    --league-panel: rgba(6, 21, 39, 0.92);
    --league-panel-strong: rgba(8, 28, 49, 0.97);
    --league-accent: #7dd3fc;
    --league-accent-strong: #38bdf8;
    --league-shadow: 0 20px 50px rgba(2, 12, 27, 0.42);
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.2), transparent 30%),
        radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.14), transparent 24%),
        #071827;
    color: #edf6ff;
}

.club-gold-mode {
    --league-text: #fff7db;
    --league-muted: #dbcba0;
    --league-card: rgba(38, 28, 16, 0.94);
    --league-card-soft: rgba(255, 198, 61, 0.08);
    --league-border: rgba(255, 198, 61, 0.18);
    --league-panel: rgba(19, 14, 8, 0.92);
    --league-panel-strong: rgba(27, 20, 11, 0.97);
    --league-accent: #ffc63d;
    --league-accent-strong: #f59e0b;
    --league-shadow: 0 20px 50px rgba(16, 10, 3, 0.42);
    background:
        radial-gradient(circle at top right, rgba(255, 198, 61, 0.16), transparent 32%),
        radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.12), transparent 26%),
        #130f08;
    color: #fff7db;
}

.broadcast-mode .floating-theme-toggle {
    background: rgba(6, 21, 39, 0.95);
    border-color: rgba(125, 211, 252, 0.34);
}

.club-gold-mode .floating-theme-toggle {
    background: rgba(24, 18, 10, 0.95);
    border-color: rgba(255, 198, 61, 0.38);
}

.light-mode .content-card,
.light-mode .hero-card,
.light-mode .metric-card,
 .light-mode .spotlight-card,
 .light-mode .content-card-soft,
 .light-mode .chart-card,
 .light-mode .news-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.96));
    color: #111827;
    border-color: rgba(37, 99, 235, 0.12);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.light-mode .chart-canvas-shell {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)),
        rgba(255, 255, 255, 0.98);
    border-color: rgba(15, 23, 42, 0.08);
}

.light-mode .news-card,
.light-mode .chart-card,
.light-mode .spotlight-card {
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.light-mode .spotlight-mini-chip,
.light-mode .title-race-points {
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.1);
    color: #101828;
}

.light-mode .spotlight-subcopy,
.light-mode .title-race-copy small,
.light-mode .pulse-label {
    color: rgba(15, 23, 42, 0.66);
}

.light-mode .title-race-row.is-leader {
    background: linear-gradient(90deg, rgba(255, 198, 61, 0.18), rgba(15, 23, 42, 0.02));
}

.light-mode .table {
    color: #f8fbff;
    --bs-table-color: #f8fbff;
    --bs-table-striped-color: #f8fbff;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.04);
}

.light-mode .table th,
.light-mode h3,
.light-mode .page-title,
.light-mode .header-center h1 {
    color: #111827;
}

.light-mode .table-responsive {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 255, 0.95));
    border-color: rgba(37, 99, 235, 0.14);
    color: #111827;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.light-mode .table th {
    color: #f8fbff;
    background: rgba(255, 255, 255, 0.06) !important;
}

.light-mode .table td,
.light-mode .table td span,
.light-mode .table td a,
.light-mode .table .team-cell,
.light-mode .table .team-cell span,
.light-mode .table .score-cell,
.light-mode .table .counter {
    color: #f8fbff !important;
}

.light-mode .page-subtitle,
.light-mode .muted-copy,
.light-mode .table-note,
.light-mode small,
.light-mode .text-muted {
    color: #4b5563 !important;
}

.light-mode .eyebrow,
.light-mode .news-meta,
.light-mode .fixture-subline,
.light-mode .club-badge small,
.light-mode .chart-select-wrap label {
    color: #4b5563;
}

.light-mode .league-nav a,
.light-mode .league-nav button,
.light-mode .btn,
.light-mode .page-link,
.light-mode .news-copy,
.light-mode .chart-card-head h4,
.light-mode .chart-pill,
.light-mode .stat-value,
.light-mode .section-toolbar h3 {
    color: #111827;
}

.light-mode .btn,
.light-mode .page-link {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.12);
}

.light-mode .btn-primary,
.light-mode .btn-warning,
.light-mode .btn-success,
.light-mode .page-item.active .page-link {
    color: #111827;
}

.light-mode .season-chip,
.light-mode .section-jump-link,
.light-mode .search-result-card,
.light-mode .search-result-link,
.light-mode .matchday-card,
.light-mode .story-card,
.light-mode .spotlight-slide,
.light-mode .editorial-empty {
    color: #111827;
}

.light-mode .media-card-copy h4,
.light-mode .media-card-copy p,
.light-mode .media-card .eyebrow {
    color: #f8fbff;
}

.light-mode .news-card .stat-trend,
.light-mode .chart-pill {
    background: rgba(15, 23, 42, 0.06);
    color: #111827;
}

.light-mode .season-chip,
.light-mode .section-jump-link,
.light-mode .search-result-card,
.light-mode .search-result-link,
.light-mode .matchday-card,
.light-mode .story-card,
.light-mode .spotlight-slide,
.light-mode .editorial-empty {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(243,247,255,0.96));
    border-color: rgba(37, 99, 235, 0.12);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.light-mode .story-card.featured {
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 36%),
        rgba(255, 255, 255, 0.98);
}

.light-mode .status-chip-next {
    background: rgba(15, 23, 42, 0.08);
    border-color: rgba(15, 23, 42, 0.12);
    color: #111827;
}

.light-mode .status-chip-ft {
    color: #14658c;
}

.light-mode .status-chip-live {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.26);
    color: #166534;
}

.light-mode .status-chip-today {
    color: #8a6100;
}

.light-mode .status-chip-tomorrow {
    color: #305ea7;
}

.light-mode .status-chip-soon {
    color: #0d7b35;
}

.light-mode .leaderboard-card {
    background:
        radial-gradient(circle at top right, rgba(255, 198, 61, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.light-mode .leaderboard-card-alt {
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
}

.light-mode .leaderboard-card-clean-sheet {
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
}

.light-mode .leaderboard-player strong,
.light-mode .leaderboard-total {
    color: #111827;
}

.light-mode .leaderboard-player small {
    color: #4b5563;
}

.light-mode .form-control,
.light-mode .form-select {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.14);
    color: #111827;
}

.light-mode .form-control:focus,
.light-mode .form-select:focus {
    background: rgba(255, 255, 255, 0.98);
    color: #111827;
}

.light-mode .floating-theme-toggle {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(15, 23, 42, 0.16);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
}

.chart-panel canvas {
    width: 100% !important;
    height: 320px !important;
    position: relative;
    z-index: 1;
}

.chart-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
    gap: 1.25rem;
    align-items: end;
}

.chart-select-wrap {
    display: grid;
    gap: 0.45rem;
    justify-items: stretch;
}

.chart-select-wrap label {
    color: var(--league-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.chart-card {
    position: relative;
    height: 100%;
    padding: 1.25rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
        rgba(8, 17, 31, 0.9);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.chart-card::before {
    content: "";
    position: absolute;
    inset: -10% auto auto -15%;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 198, 61, 0.22), transparent 68%);
    animation: chart-shell-glow 8s ease-in-out infinite;
    pointer-events: none;
}

.scorer-chart-card::before {
    background: radial-gradient(circle, rgba(104, 192, 255, 0.24), transparent 68%);
}

.chart-card-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.chart-card-head h4 {
    margin: 0.25rem 0 0;
    color: var(--league-text);
}

.chart-canvas-shell {
    position: relative;
    min-height: 360px;
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
        radial-gradient(circle at top right, rgba(255, 198, 61, 0.12), transparent 34%),
        rgba(7, 16, 30, 0.84);
    animation: chart-shell-float 6.2s ease-in-out infinite;
}

.chart-canvas-shell.is-loading::after {
    content: "";
    position: absolute;
    inset: 1rem;
    border-radius: 18px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
    animation: ambient-shimmer 1.25s ease-in-out infinite;
}

.chart-canvas-shell.is-loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
    border-radius: 50%;
    border: 4px solid rgba(255, 198, 61, 0.18);
    border-top-color: rgba(255, 198, 61, 0.92);
    animation: chart-loading-pulse 1.1s ease-in-out infinite;
    z-index: 2;
}

.scorer-chart-card .chart-canvas-shell {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
        radial-gradient(circle at top right, rgba(104, 192, 255, 0.14), transparent 34%),
        rgba(7, 16, 30, 0.84);
}

.chart-canvas-shell canvas {
    animation: card-rise-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.chart-pill-row {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.chart-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--league-text);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    background: rgba(255, 255, 255, 0.06);
}

.chart-pill-win {
    background: rgba(43, 212, 126, 0.16);
}

.chart-pill-draw {
    background: rgba(255, 198, 61, 0.16);
}

.chart-pill-loss {
    background: rgba(255, 104, 104, 0.16);
}

.leaderboard-showcase {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.leaderboard-card {
    position: relative;
    overflow: hidden;
    opacity: 1;
    padding: 1.2rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        radial-gradient(circle at top right, rgba(255, 198, 61, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(17, 31, 54, 0.96), rgba(7, 16, 30, 0.98));
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.28);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    animation: leaderboard-card-drift 6.6s ease-in-out infinite;
}

.leaderboard-card-alt {
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(17, 31, 54, 0.96), rgba(7, 16, 30, 0.98));
}

.leaderboard-card-clean-sheet {
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(17, 31, 54, 0.96), rgba(7, 16, 30, 0.98));
}

.leaderboard-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.08) 42%, transparent 74%);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.22s ease;
    animation: leaderboard-sheen 7.5s ease-in-out infinite;
}

.leaderboard-card:hover {
    transform: translateY(-7px) scale(1.012);
    border-color: rgba(255, 198, 61, 0.34);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.3);
    animation: hover-card-wobble 0.68s ease-in-out both;
}

.leaderboard-card:hover::before {
    opacity: 1;
    animation: leaderboard-sheen 1.5s ease-in-out both;
}

.leaderboard-showcase .leaderboard-card:nth-child(2) {
    animation-delay: 1.2s;
}

.leaderboard-showcase .leaderboard-card:nth-child(3) {
    animation-delay: 2.4s;
}

.leaderboard-card-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 0.9rem;
}

.leaderboard-list {
    position: relative;
    z-index: 1;
}

.leaderboard-list li {
    padding: 0.9rem 0;
}

.leaderboard-player {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.leaderboard-player div {
    min-width: 0;
}

.leaderboard-player strong,
.leaderboard-total {
    color: var(--league-text);
}

.leaderboard-player strong {
    display: block;
    font-size: 0.96rem;
}

.leaderboard-player small {
    display: block;
    color: var(--league-muted);
    font-size: 0.84rem;
}

.leaderboard-total {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.leaderboard-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.leaderboard-page-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.8rem;
}

.leaderboard-page-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--league-text);
    font-size: 0.76rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.leaderboard-page-flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.leaderboard-page-context {
    margin-top: 0.65rem;
    color: var(--league-muted);
    font-size: 0.88rem;
}

.toggle-goals-btn {
    color: #06111f;
    font-weight: 800;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 214, 79, 0.88);
    background: linear-gradient(135deg, #ffe15a, #ffb020);
    box-shadow: 0 12px 24px rgba(255, 176, 32, 0.24);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.toggle-goals-btn:hover,
.toggle-goals-btn:focus {
    color: #04101d;
    background: linear-gradient(135deg, #fff07d, #ffbf3b);
    border-color: rgba(255, 234, 137, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(255, 191, 59, 0.3);
    filter: saturate(1.08);
}

.toggle-goals-btn:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 0.18rem rgba(255, 225, 90, 0.28),
        0 16px 28px rgba(255, 191, 59, 0.3);
}

footer {
    color: var(--league-muted);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .motion-card,
    .motion-card-soft {
        opacity: 1;
    }
}

@media (max-width: 991.98px) {
    body {
        background-attachment: scroll;
    }

    .stats-grid,
    .cards-grid,
    .stats-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-bar {
        grid-template-columns: 1fr 1fr;
    }

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

    .matchday-centre-grid,
    .storyline-grid,
    .leaderboard-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .media-news-grid {
        grid-template-columns: 1fr;
    }

    .chart-toolbar {
        grid-template-columns: 1fr;
    }

    .leaderboard-showcase {
        grid-template-columns: 1fr;
    }

    .chart-canvas-shell {
        min-height: 320px;
    }

    .media-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .top-showcase-card {
        min-height: 238px;
        height: 238px;
    }
}

@media (max-width: 767.98px) {
    .page-shell {
        width: min(100% - 0.8rem, 100%);
        padding-top: 0.5rem;
    }

    .overlay {
        border-radius: 18px;
        padding: 1rem !important;
    }

    .hero-banner {
        max-height: 118px;
    }

    .hero-image {
        min-height: 180px;
        max-height: 240px;
    }

    .top-showcase-card {
        min-height: 216px;
        height: 216px;
    }

    .league-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        position: sticky;
        top: 0.5rem;
        z-index: 25;
        padding: 0.65rem;
        border-radius: 18px;
        background: rgba(8, 17, 31, 0.94);
        backdrop-filter: blur(12px);
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
    }

    .league-nav a,
    .league-nav button,
    .league-chip {
        width: 100%;
        padding: 0.8rem 0.75rem;
        text-align: center;
    }

    .stats-grid,
    .cards-grid,
    .stats-grid-3,
    .filter-bar,
    .matchday-centre-grid,
    .storyline-grid,
    .leaderboard-summary-grid,
    .search-results-grid {
        grid-template-columns: 1fr;
    }

    .fixture-meta {
        grid-template-columns: 1fr;
    }

    .fixture-headline {
        flex-direction: column;
    }

    .spotlight-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .title-race-row,
    .pulse-row {
        align-items: flex-start;
    }

    .title-race-points {
        min-width: 0;
    }

    .media-gallery-grid {
        grid-template-columns: 1fr;
    }

    .media-card {
        min-height: 220px;
    }

    .chart-card,
    .chart-toolbar,
    .leaderboard-card {
        padding: 1rem;
    }

    .chart-card-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .chart-panel canvas {
        height: 280px !important;
    }

    .chart-canvas-shell {
        min-height: 290px;
        padding: 0.75rem;
    }

    .countdown-ring {
        min-width: 120px;
        min-height: 120px;
    }

    .season-chip-row,
    .page-header-meta,
    .section-jumpbar {
        justify-content: flex-start;
    }

    .spotlight-slide {
        align-items: flex-start;
        flex-direction: column-reverse;
    }

    .spotlight-slide-photo {
        width: 72px;
        height: 72px;
    }

    .table {
        font-size: 0.88rem;
    }

    .table td,
    .table th {
        padding: 0.75rem 0.65rem;
    }

    .team-cell {
        gap: 0.45rem;
    }

    .compact-logo {
        width: 48px;
        height: 48px;
    }

    .light-mode .league-nav {
        background: rgba(255, 255, 255, 0.96);
    }

    .floating-theme-toggle {
        top: 0.75rem;
        right: 0.75rem;
        min-width: 112px;
        height: 50px;
        padding: 0 0.75rem;
    }

    .theme-toggle-label {
        font-size: 0.69rem;
    }
}

@media (max-width: 480px) {
    .page-shell {
        width: calc(100% - 0.55rem);
        padding-top: 0.35rem;
    }

    .overlay {
        border-radius: 16px;
        padding: 0.8rem !important;
    }

    .league-nav {
        grid-template-columns: 1fr;
        gap: 0.55rem;
        padding: 0.55rem;
    }

    .homepage-top-nav,
    .section-jumpbar,
    .section-toolbar,
    .matchday-head,
    .fixture-headline,
    .showcase-club-line,
    .showcase-stat,
    .countdown-showcase-body {
        flex-direction: column;
        align-items: flex-start;
    }

    .top-showcase-card {
        min-height: 198px;
        height: 198px;
    }

    .showcase-media {
        transform: none;
        object-position: center;
    }

    .showcase-static-overlay,
    .carousel-caption.showcase-caption {
        inset: 0.55rem;
        padding: 0.65rem;
    }

    .showcase-copy,
    .showcase-static-overlay .showcase-copy {
        max-width: 100%;
        font-size: 0.82rem;
        -webkit-line-clamp: 3;
    }

    .countdown-ring {
        min-width: 92px;
        min-height: 92px;
        padding: 0.55rem;
    }

    .countdown-ring #countdown {
        font-size: 0.98rem;
    }

    .showcase-logo-pulse {
        width: 100%;
        max-width: 100%;
    }

    .matchday-centre-grid,
    .storyline-grid,
    .leaderboard-showcase,
    .leaderboard-summary-grid,
    .media-gallery-grid,
    .media-news-grid,
    .spotlight-grid,
    .stats-grid,
    .cards-grid,
    .stats-grid-3 {
        grid-template-columns: 1fr;
    }

    .content-card,
    .hero-card,
    .metric-card,
    .chart-card,
    .leaderboard-card,
    .news-card,
    .story-card,
    .matchday-card {
        min-width: 0;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table {
        min-width: 640px;
    }
}
