@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
    color-scheme: light;
    --bg: #f4f6f8;
    --surface: #ffffff;
    --surface-soft: #edf1f2;
    --ink: #142326;
    --muted: #6e7d80;
    --line: #dce4e4;
    --accent: #ccff4d;
    --accent-deep: #92bb12;
    --coral: #ff745e;
    --shadow: 0 20px 60px rgba(20, 35, 38, .08);
    --radius: 22px;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #101719;
    --surface: #182224;
    --surface-soft: #202d2f;
    --ink: #edf7f4;
    --muted: #9cafb0;
    --line: #2d3c3d;
    --accent: #d2ff54;
    --accent-deep: #b0d936;
    --coral: #ff8a76;
    --shadow: 0 20px 70px rgba(0, 0, 0, .24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Manrope", system-ui, sans-serif;
    line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 10px; z-index: 10; padding: 10px 14px; background: var(--accent); color: #111; }
.skip-link:focus { left: 10px; }

.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(18px); border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent); }
.header-inner { display: flex; min-height: 78px; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; width: clamp(190px, 22vw, 270px); height: 54px; margin-right: auto; overflow: hidden; }
.brand-logo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 57%; }
.main-nav { display: flex; align-items: center; gap: 24px; color: var(--muted); font-size: 13px; font-weight: 700; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--ink); }
.theme-toggle { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; font-size: 12px; }
.theme-toggle:hover { border-color: var(--accent-deep); }
.theme-toggle [data-theme-icon] { color: var(--accent-deep); font-size: 17px; line-height: 1; }
.page-content { min-height: calc(100vh - 160px); padding: 62px 0 100px; }
.page-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); align-items: start; gap: 28px; }
.page-main { min-width: 0; }
.competition-sidebar { position: sticky; top: 104px; }
.sidebar-label { display: block; margin: 0 0 12px 5px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.competition-nav { display: grid; gap: 3px; }
.competition-nav-link { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 2px 8px; padding: 8px 11px; border: 1px solid transparent; border-radius: 13px; color: var(--muted); }
.competition-nav-link img { grid-row: span 2; align-self: center; width: 20px; height: 15px; border-radius: 2px; object-fit: cover; }
.competition-nav-link strong { color: var(--ink); font-size: 12px; letter-spacing: -.02em; line-height: 1.2; }
.competition-nav-link small { font-family: "DM Mono", monospace; font-size: 9px; line-height: 1.2; }
.competition-nav-link:hover, .competition-nav-link.active { border-color: var(--line); background: var(--surface); box-shadow: 0 8px 24px color-mix(in srgb, var(--ink) 5%, transparent); }
.competition-nav-link.active { border-left: 3px solid var(--accent-deep); padding-left: 9px; }
.sidebar-empty { color: var(--muted); font-size: 12px; }
.competition-menu-toggle { display: none; }
.competition-menu-icon { display: grid; flex: 0 0 20px; gap: 4px; }
.competition-menu-icon span { height: 2px; border-radius: 2px; background: currentColor; }
.competition-menu-copy { display: grid; min-width: 0; flex: 1 1 auto; }
.competition-menu-copy small { color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.competition-menu-copy strong { overflow: hidden; color: var(--ink); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.competition-menu-season { color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; }
.competition-menu-chevron { color: var(--accent-deep); font-size: 20px; line-height: 1; transition: transform .2s; }
.competition-sidebar[data-open="true"] .competition-menu-chevron { transform: rotate(180deg); }
.language-switcher select { border: 1px solid var(--line); border-radius: 999px; padding: 8px 9px; background: var(--surface); color: var(--ink); font: inherit; font-size: 10px; font-weight: 800; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; letter-spacing: .02em; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) 380px; align-items: center; gap: 50px; min-height: 420px; }
.eyebrow, .panel-kicker, .stat-label { color: var(--accent-deep); font-family: "DM Mono", monospace; font-size: 10px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 700px; margin-bottom: 22px; font-size: clamp(3.3rem, 7vw, 6.6rem); letter-spacing: -.085em; line-height: .93; }
h1 em { color: var(--accent-deep); font-style: normal; }
h2 { margin-bottom: 8px; font-size: clamp(1.55rem, 3vw, 2.4rem); letter-spacing: -.06em; line-height: 1.05; }
h3 { margin-bottom: 0; font-size: 1.08rem; letter-spacing: -.04em; }
.hero-copy { max-width: 510px; color: var(--muted); font-size: 16px; }
.home-eyebrow { font-size: 15px; }
.home-title { max-width: 680px; font-size: clamp(2.5rem, 4.7vw, 4.6rem); line-height: .98; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; gap: 12px; min-height: 45px; border-radius: 999px; padding: 0 19px; font-size: 12px; font-weight: 800; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: #17211b; }
.button-primary:hover { background: var(--accent-deep); }
.button-quiet { background: var(--surface); border: 1px solid var(--line); }
.button-quiet:hover { border-color: var(--accent-deep); }
.hero-orbit { position: relative; width: 340px; height: 340px; margin: auto; }
.orbit { position: absolute; inset: 10%; border: 1px solid var(--line); border-radius: 50%; transform: rotate(-22deg) skewX(-8deg); }
.orbit-two { inset: 23%; transform: rotate(35deg) skewX(12deg); border-color: color-mix(in srgb, var(--accent-deep) 50%, var(--line)); }
.orbit-core { position: absolute; inset: 34%; display: grid; place-items: center; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); text-align: center; font-family: "DM Mono", monospace; font-size: 27px; font-weight: 500; line-height: .9; }
.orbit-core::before { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); content: ""; transform: translate(60px, -53px); box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 25%, transparent); }
.orbit-core small { color: var(--muted); font-size: 12px; }
.orbit-label { position: absolute; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: .08em; }
.orbit-label-one { right: 5px; top: 70px; }
.orbit-label-two { bottom: 55px; left: 1px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.split-section + .stats-grid { margin-top: 14px; }
.stat-card { min-height: 112px; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 8px 30px color-mix(in srgb, var(--ink) 4%, transparent); }
.stat-card-link { color: var(--ink); transition: transform .15s, border-color .15s; }
.stat-card-link:hover { transform: translateY(-2px); border-color: var(--accent-deep); }
.stat-card-link:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }
.stat-card strong { font-size: 19px; letter-spacing: -.05em; }
.stat-card small { color: var(--muted); font-size: 11px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 92px 0 24px; }
.section-note, .disclaimer { color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 1fr); gap: 14px; }
.hero + .dashboard-grid { margin-top: 14px; }
.split-section { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: 14px; margin-top: 14px; }
.panel, .method-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.panel { padding: 25px; }
.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 19px; }
.panel-kicker { display: block; margin-bottom: 8px; font-size: 9px; }
.panel-link, .text-link { color: var(--accent-deep); font-size: 11px; font-weight: 800; white-space: nowrap; }
.panel-link:hover, .text-link:hover { color: var(--ink); }
.heading-link { color: inherit; }
.heading-link:hover, .heading-link:focus-visible { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.difficulty-list { display: grid; gap: 1px; }
.difficulty-list-heading, .difficulty-metrics { display: grid; grid-template-columns: 44px 88px; align-items: center; gap: 8px; }
.difficulty-list-heading { justify-content: end; margin: 0 2px 5px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: .02em; text-align: right; text-transform: uppercase; }
.difficulty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.difficulty-row:last-child { border-bottom: 0; }
.mini-team { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 12px; }
.difficulty-rank { width: 20px; flex: 0 0 20px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; font-weight: 700; text-align: right; }
.difficulty-metrics { flex: 0 0 auto; }
.difficulty-value { color: var(--accent-deep); font-family: "DM Mono", monospace; font-size: 13px; text-align: right; white-space: nowrap; }
.difficulty-match-count { color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; text-align: right; white-space: nowrap; }
.difficulty-flag { width: 18px; height: 14px; flex: 0 0 auto; margin-left: 0; }
.difficulty-note { margin: 13px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.method-card { display: flex; flex-direction: column; justify-content: center; padding: 34px; background: #8eb169; color: #142326; }
.method-card .panel-kicker, .method-card .text-link { color: #142326; }
.method-card .text-link:hover { color: #0b1710; }
.method-card h3 { max-width: 260px; margin: 12px 0; font-size: 28px; letter-spacing: -.07em; line-height: 1.03; }
.method-card p { color: #26352a; font-size: 13px; }
.empty-state { display: flex; flex-direction: column; gap: 7px; min-height: 130px; justify-content: center; color: var(--muted); font-size: 13px; }
.empty-state strong { color: var(--ink); }
.empty-state.compact { min-height: 100px; }
.empty-page { align-items: flex-start; min-height: 450px; justify-content: center; }
.empty-page h1 { max-width: 600px; font-size: clamp(2.8rem, 6vw, 5rem); }

.page-hero { max-width: 760px; margin-bottom: 42px; }
.compact-hero h1 { margin-bottom: 15px; font-size: clamp(2.7rem, 6vw, 5.6rem); }
.ranking-page-title { margin-bottom: 12px; font-size: clamp(2rem, 4vw, 3.6rem) !important; line-height: 1; }
.ranking-season-title { margin-bottom: 16px; font-size: 20px; letter-spacing: .08em; }
.page-hero p:not(.eyebrow) { max-width: 590px; color: var(--muted); font-size: 15px; }
.view-tabs { display: flex; gap: 4px; width: fit-content; margin-bottom: 14px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.view-tabs a { padding: 8px 15px; border-radius: 999px; color: var(--muted); font-size: 11px; font-weight: 800; }
.view-tabs a.active { background: var(--accent); color: #1a241c; }
.ranking-panel { padding: 28px; }
.disclaimer { margin: 16px 2px; }
.back-link { display: inline-block; margin-bottom: 32px; color: var(--muted); font-size: 12px; font-weight: 700; }
.back-link:hover { color: var(--accent-deep); }
.team-hero { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.team-identity { display: flex; align-items: center; gap: 20px; }
.team-identity h1 { margin-bottom: 8px; font-size: clamp(2.5rem, 6vw, 5rem); }
.team-identity p:not(.eyebrow) { margin-bottom: 0; color: var(--muted); }
.team-meta { min-width: 160px; padding: 14px 0 3px; border-top: 1px solid var(--line); color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; }
.team-meta strong { display: block; margin-top: 5px; color: var(--ink); font-family: "Manrope", sans-serif; font-size: 14px; }
.team-stats { margin-bottom: 14px; }
.club-fallback { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; background: var(--badge-bg); color: var(--badge-fg); font-family: "DM Mono", monospace; font-size: 10px; font-weight: 700; letter-spacing: -.06em; }
.club-fallback.small { width: 25px; height: 25px; flex-basis: 25px; border-radius: 8px; font-size: 8px; }
.hero-badge { width: 86px; height: 86px; flex-basis: 86px; border-radius: 50%; font-size: 23px; }
.hero-logo { font-size: 23px; }
.club-link { display: flex; align-items: center; gap: 11px; min-width: 190px; }
.club-link strong, .club-link small { display: block; }
.club-link small { color: var(--muted); font-size: 10px; font-weight: 500; }
.country-flag { display: inline-block; width: 18px; height: 14px; margin-left: 5px; border-radius: 2px; object-fit: cover; vertical-align: middle; }
.ranking-table, .calendar-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ranking-table th, .calendar-table th { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; font-weight: 500; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.ranking-table td, .calendar-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ranking-table tbody tr:last-child td, .calendar-table tbody tr:last-child td { border-bottom: 0; }
.ranking-table tbody tr:hover, .calendar-table tbody tr:hover { background: var(--surface-soft); }
.ranking-table tbody tr.zone-green td { background: #bbf7d0 !important; border-bottom-color: #86efac; }
.ranking-table tbody tr.zone-yellow td { background: #fef08a !important; border-bottom-color: #facc15; }
.ranking-table tbody tr.zone-orange td { background: #fed7aa !important; border-bottom-color: #fb923c; }
.ranking-table tbody tr.zone-red td { background: #18090b !important; border-bottom-color: #4a151b; color: #fff; }
.ranking-table tbody tr.zone-green-yellow td { background: #a3e635 !important; border-bottom-color: #65a30d; color: #1a2e05; }
.ranking-table tbody tr.zone-red-light td { background: #dc2626 !important; border-bottom-color: #991b1b; color: #fff; }
.ranking-table tbody tr.zone-red-dark td { background: #7f1d1d !important; border-bottom-color: #450a0a; color: #fff; }
.ranking-table tbody tr.zone-green:hover td, .ranking-table tbody tr.zone-yellow:hover td, .ranking-table tbody tr.zone-orange:hover td, .ranking-table tbody tr.zone-red:hover td, .ranking-table tbody tr.zone-green-yellow:hover td, .ranking-table tbody tr.zone-red-light:hover td { background: var(--surface-soft); }
.ranking-table tbody tr.zone-red:hover td, .ranking-table tbody tr.zone-red-dark:hover td { background: #251013 !important; }
.rank-number { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: var(--surface-soft); color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; }
.ranking-table th { padding: 5px 9px; }
.ranking-table td { padding: 2px 8px; }
.ranking-table th[title] { cursor: help; text-decoration: underline dotted; text-underline-offset: 4px; }
.ranking-table .club-link { gap: 8px; }
.ranking-table .club-link strong { display: flex; align-items: center; min-width: 0; gap: 5px; }
.ranking-table .club-fallback { width: 22px; height: 22px; flex-basis: 22px; }
.ranking-table .rank-number { width: 18px; height: 18px; border-radius: 5px; }
.value-emphasis { color: var(--accent-deep); font-family: "DM Mono", monospace; font-weight: 600; }
.empty-cell { padding: 35px !important; color: var(--muted); text-align: center; }
.zone-legend { display: flex; flex-wrap: wrap; gap: 12px 18px; margin: 14px 2px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; }
.zone-legend span { display: inline-flex; align-items: center; gap: 6px; }
.zone-dot { width: 9px; height: 9px; border-radius: 50%; }
.zone-dot-green { background: #22c55e; }
.zone-dot-yellow { background: #eab308; }
.zone-dot-orange { background: #f97316; }
.zone-dot-red { background: #18090b; }
.zone-dot-green-yellow { background: #a3e635; }
.zone-dot-red-light { background: #dc2626; }
.zone-dot-red-dark { background: #7f1d1d; }
html[data-theme="dark"] .ranking-table tbody tr.zone-green td { background: #14532d !important; border-bottom-color: #22c55e; }
html[data-theme="dark"] .ranking-table tbody tr.zone-yellow td { background: #713f12 !important; border-bottom-color: #eab308; }
html[data-theme="dark"] .ranking-table tbody tr.zone-orange td { background: #7c2d12 !important; border-bottom-color: #f97316; }
html[data-theme="dark"] .ranking-table tbody tr.zone-red td { background: #100507 !important; border-bottom-color: #5b1720; color: #fff; }
html[data-theme="dark"] .ranking-table tbody tr.zone-green-yellow td { background: #4d7c0f !important; border-bottom-color: #a3e635; color: #fff; }
html[data-theme="dark"] .ranking-table tbody tr.zone-red-light td { background: #b91c1c !important; border-bottom-color: #f87171; color: #fff; }
html[data-theme="dark"] .ranking-table tbody tr.zone-red-dark td { background: #450a0a !important; border-bottom-color: #7f1d1d; color: #fff; }
html[data-theme="dark"] .ranking-table tbody tr.zone-red:hover td, html[data-theme="dark"] .ranking-table tbody tr.zone-red-dark:hover td { background: #19080b !important; }
.muted { display: block; color: var(--muted); font-size: 10px; }
.fixture-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; min-width: 280px; }
.fixture-team { display: inline-flex; align-items: center; gap: 7px; min-width: 0; font-weight: 700; }
.fixture-team:hover, .fixture-team:focus-visible { color: var(--accent-deep); }
.fixture-team:last-child { justify-content: flex-end; text-align: right; }
.fixture-team .club-fallback { flex: 0 0 25px; }
.fixture-vs { color: var(--muted); font-family: "DM Mono", monospace; }
.expected-match-points { color: var(--accent-deep); font-family: "DM Mono", monospace; font-weight: 600; }
.status { display: inline-block; border-radius: 999px; padding: 4px 8px; background: var(--surface-soft); color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; }
.status-finished { color: var(--accent-deep); }
.status-scheduled, .status-postponed { color: var(--coral); }
.prose-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.prose { padding: 30px; }
.prose h2 { margin-bottom: 16px; font-size: 1.65rem; }
.prose p, .prose dd { color: var(--muted); font-size: 14px; }
.formula { margin-top: 24px; padding: 16px; border-radius: 12px; background: var(--surface-soft); color: var(--accent-deep); font-family: "DM Mono", monospace; font-size: 12px; }
.source-panel { margin-bottom: 14px; }
.prose dl { display: grid; grid-template-columns: 160px 1fr; gap: 18px 28px; margin: 28px 0; }
.prose dt { color: var(--ink); font-size: 13px; font-weight: 800; }
.prose dd { margin: 0; }
.callout { margin-bottom: 0; padding: 15px; border-left: 3px solid var(--accent); background: var(--surface-soft); }
.reveal { animation: rise .5s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
    .page-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .competition-sidebar { position: relative; top: auto; z-index: 6; min-width: 0; }
    .sidebar-label { display: none; }
    .competition-menu-toggle { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; text-align: left; }
    .competition-menu-toggle:hover, .competition-menu-toggle:focus-visible, .competition-menu-toggle[aria-expanded="true"] { border-color: var(--accent-deep); outline-color: var(--accent-deep); }
    .competition-nav { position: absolute; top: calc(100% + 8px); left: 0; z-index: 10; display: none; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; width: min(100%, 680px); max-height: min(65vh, 520px); overflow-y: auto; padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
    .competition-sidebar[data-open="true"] .competition-nav { display: grid; }
    .competition-nav-link { min-width: 0; min-height: 54px; padding: 9px 10px; background: var(--surface); }
    .dashboard-grid, .split-section { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; min-height: 0; padding-bottom: 35px; }
    .hero-orbit { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
    .shell { width: min(100% - 24px, 1180px); }
    .header-inner { min-height: 70px; flex-wrap: wrap; gap: 12px; padding: 10px 0; }
    .main-nav { order: 3; width: 100%; justify-content: space-between; gap: 8px; overflow-x: auto; }
    .language-switcher { margin-left: auto; }
    .theme-toggle-label { display: none; }
    .page-content { padding-top: 36px; }
    h1 { font-size: clamp(3rem, 16vw, 5rem); }
    .stats-grid { gap: 8px; }
    .stat-card { min-height: 100px; padding: 14px; }
    .section-heading { align-items: start; flex-direction: column; margin-top: 55px; }
    .panel { padding: 17px; border-radius: 17px; }
    .panel-heading { margin-bottom: 12px; }
    .table-wrap { margin: 0 -4px; overflow: visible; }
    .ranking-table-wrap { overflow-x: auto; overflow-y: hidden; padding-bottom: 6px; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
    .ranking-table-wrap .ranking-table { width: max-content; min-width: 884px; table-layout: auto; }
    .ranking-table-wrap .ranking-table.compact { min-width: 460px; }
    .calendar-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .calendar-table, .calendar-table tbody, .calendar-table tr, .calendar-table td { display: block; width: 100%; }
    .calendar-table tr { margin-bottom: 8px; padding: 9px; border: 1px solid var(--line); border-radius: 13px; }
    .calendar-table td { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 7px 5px; border: 0; text-align: right; }
    .calendar-table td::before { content: attr(data-label); color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; text-transform: uppercase; }
    .team-hero { align-items: flex-start; flex-direction: column; }
    .team-identity h1 { font-size: 3rem; }
    .ranking-page-title { font-size: 2.15rem !important; }
    .ranking-season-title { font-size: 14px; }
    .team-meta { width: 100%; }
    .prose-grid { grid-template-columns: 1fr; }
    .prose dl { display: block; }
    .prose dt { margin-top: 20px; }
    .prose dd { margin-top: 5px; }
    .footer-inner { align-items: flex-start; flex-direction: column; }
}
