:root,
[data-theme="dark"] {
    --bg-primary: #07111f;
    --bg-secondary: #0d1a2b;
    --surface: rgba(13, 26, 43, 0.86);
    --surface-raised: #13233a;
    --surface-soft: rgba(19, 35, 58, 0.72);
    --surface-strong: #18304f;
    --line: rgba(181, 195, 216, 0.14);
    --line-strong: rgba(181, 195, 216, 0.26);
    --text-primary: #f5f9ff;
    --text-secondary: #c1cde0;
    --text-muted: #7c8ea8;
    --brand: #18c17a;
    --brand-strong: #119762;
    --brand-alt: #52b7ff;
    --warning: #ffbf5f;
    --danger: #ff6f61;
    --gold: #f3d26a;
    --hero-wash: linear-gradient(135deg, rgba(9, 19, 35, 0.94), rgba(16, 34, 57, 0.92));
    --hero-line: linear-gradient(90deg, transparent, rgba(82, 183, 255, 0.55), transparent);
    --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.24);
    --shadow-card: 0 18px 48px rgba(0, 0, 0, 0.22);
    --shadow-focus: 0 0 0 4px rgba(24, 193, 122, 0.16);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --transition: 180ms ease;
    --chart-grid: rgba(181, 195, 216, 0.14);
    --chart-label: #c1cde0;
    --chart-tooltip-bg: #102138;
    --chart-tooltip-border: rgba(181, 195, 216, 0.18);
    --surface-board: linear-gradient(180deg, rgba(12, 24, 41, 0.96), rgba(8, 18, 33, 0.92));
    --surface-highlight: rgba(22, 38, 61, 0.9);
    --field-line: rgba(102, 220, 143, 0.1);
    --accent-cyan: #67d5ff;
    --accent-gold: #f3d26a;
    --ease-out-strong: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out-strong: cubic-bezier(0.77, 0, 0.175, 1);
}

[data-theme="light"] {
    --bg-primary: #f4f7fb;
    --bg-secondary: #ffffff;
    --surface: rgba(255, 255, 255, 0.92);
    --surface-raised: #ffffff;
    --surface-soft: rgba(246, 249, 252, 0.86);
    --surface-strong: #eef4fb;
    --line: rgba(18, 37, 63, 0.09);
    --line-strong: rgba(18, 37, 63, 0.18);
    --text-primary: #0c1b30;
    --text-secondary: #30445f;
    --text-muted: #6c7d94;
    --brand: #0f9d61;
    --brand-strong: #0a7d4d;
    --brand-alt: #2684ff;
    --warning: #d98a14;
    --danger: #d6453d;
    --gold: #b98211;
    --hero-wash: linear-gradient(135deg, rgba(250, 252, 255, 0.96), rgba(236, 243, 252, 0.94));
    --hero-line: linear-gradient(90deg, transparent, rgba(38, 132, 255, 0.45), transparent);
    --shadow-soft: 0 20px 60px rgba(9, 27, 47, 0.08);
    --shadow-card: 0 18px 48px rgba(9, 27, 47, 0.1);
    --shadow-focus: 0 0 0 4px rgba(15, 157, 97, 0.14);
    --chart-grid: rgba(18, 37, 63, 0.1);
    --chart-label: #30445f;
    --chart-tooltip-bg: #ffffff;
    --chart-tooltip-border: rgba(18, 37, 63, 0.12);
    --surface-board: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 253, 0.94));
    --surface-highlight: rgba(236, 243, 252, 0.92);
    --field-line: rgba(15, 157, 97, 0.1);
    --accent-cyan: #2684ff;
    --accent-gold: #b98211;
    --ease-out-strong: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out-strong: cubic-bezier(0.77, 0, 0.175, 1);
}

[data-theme="light"] .hero-copy,
[data-theme="light"] .hero-panel,
[data-theme="light"] .overview-card,
[data-theme="light"] .rank-card,
[data-theme="light"] .chart-card,
[data-theme="light"] .detail-card,
[data-theme="light"] .panel-shell,
[data-theme="light"] .legend-card,
[data-theme="light"] .podium-item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 252, 0.96));
    border-color: rgba(18, 37, 63, 0.1);
}

[data-theme="light"] .hero-copy::after,
[data-theme="light"] .hero-orbit {
    border-color: rgba(38, 132, 255, 0.12);
}

[data-theme="light"] .hero-meta-grid,
[data-theme="light"] .hero-ticker,
[data-theme="light"] .nav-pills,
[data-theme="light"] .theme-toggle,
[data-theme="light"] .hero-action.secondary {
    background: rgba(18, 37, 63, 0.035);
}

[data-theme="light"] .hero-panel::before {
    background: linear-gradient(180deg, rgba(38, 132, 255, 0.08), transparent);
}

[data-theme="light"] .stat-icon {
    background: rgba(38, 132, 255, 0.08);
}

[data-theme="light"] .section-index {
    color: rgba(38, 132, 255, 0.12);
}

[data-theme="light"] .scorer-sigla,
[data-theme="light"] .scorer-position,
[data-theme="light"] .detail-stat,
[data-theme="light"] .cmp-summary-team,
[data-theme="light"] .cmp-val,
[data-theme="light"] .cmp-select {
    background: rgba(18, 37, 63, 0.035);
}

[data-theme="light"] .footer {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(231, 239, 248, 0.92));
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Outfit', sans-serif;
    background:
        linear-gradient(90deg, transparent 0, transparent calc(50% - 1px), var(--field-line) calc(50% - 1px), var(--field-line) calc(50% + 1px), transparent calc(50% + 1px)),
        repeating-linear-gradient(0deg, transparent 0, transparent 92px, rgba(255, 255, 255, 0.015) 92px, rgba(255, 255, 255, 0.015) 93px),
        radial-gradient(circle at top left, rgba(103, 213, 255, 0.12), transparent 24rem),
        radial-gradient(circle at bottom right, rgba(24, 193, 122, 0.1), transparent 24rem),
        var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color var(--transition), color var(--transition);
}

body::before,
body::after {
    content: '';
    position: fixed;
    inset: auto;
    pointer-events: none;
    z-index: -1;
}

body::before {
    top: 10%;
    left: -7rem;
    width: 20rem;
    height: 20rem;
    border-radius: 50%;
    background: rgba(24, 193, 122, 0.08);
    filter: blur(70px);
}

body::after {
    right: -8rem;
    bottom: 5%;
    width: 22rem;
    height: 22rem;
    border-radius: 50%;
    background: rgba(82, 183, 255, 0.08);
    filter: blur(90px);
}

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

a {
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

:focus-visible {
    outline: none;
    box-shadow: var(--shadow-focus);
}

.container {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -56px;
    z-index: 50;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--brand);
    color: #052516;
    font-weight: 700;
    text-decoration: none;
    transition: top var(--transition);
}

.skip-link:focus {
    top: 16px;
}

h1,
h2,
h3,
.section-kicker,
.hero-kicker,
.tab-btn,
.section-tag,
.hero-action,
.overview-eyebrow,
.panel-label {
    font-family: 'Barlow Condensed', sans-serif;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 60px 0 46px;
    background:
        radial-gradient(circle at top center, rgba(103, 213, 255, 0.1), transparent 24rem),
        linear-gradient(180deg, rgba(5, 13, 24, 0.2), transparent 40%),
        var(--hero-wash);
    border-bottom: 1px solid var(--line);
}

.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--hero-line);
}

.hero-orbit {
    position: absolute;
    border-radius: 999px;
    border: 1px solid rgba(82, 183, 255, 0.18);
    opacity: 0.55;
    pointer-events: none;
}

.hero-orbit-a {
    top: 48px;
    right: 8%;
    width: 320px;
    height: 320px;
}

.hero-orbit-b {
    bottom: -120px;
    left: -80px;
    width: 260px;
    height: 260px;
    border-color: rgba(24, 193, 122, 0.18);
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.92fr);
    gap: 28px;
    align-items: stretch;
}

.hero-copy {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
    border-radius: calc(var(--radius-lg) + 4px);
    border: 1px solid var(--line);
    background: var(--surface-board);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.hero-copy::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--brand), var(--accent-cyan));
}

.hero-copy::after {
    content: '';
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(103, 213, 255, 0.14);
    border-radius: 50%;
    opacity: 0.6;
}

.hero-kicker,
.section-kicker,
.panel-label,
.overview-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(24, 193, 122, 0.1);
    border: 1px solid rgba(24, 193, 122, 0.18);
    color: var(--brand);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-size: clamp(3.2rem, 7vw, 5.4rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gold), var(--brand-alt));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle,
.section-copy p,
.hero-panel-copy,
.overview-note,
.chart-header p,
.cmp-intro-card p,
.cmp-feature-list,
.table-hint,
.footer-content p {
    margin: 0;
    color: var(--text-secondary);
}

.hero-subtitle {
    max-width: 52ch;
    font-size: 1.02rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.hero-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid var(--line);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: transform 160ms var(--ease-out-strong), background-color 180ms var(--ease-out-strong), border-color 180ms var(--ease-out-strong), color 180ms var(--ease-out-strong), box-shadow 180ms var(--ease-out-strong);
}

.hero-action.primary {
    background: var(--brand);
    border-color: var(--brand);
    color: #052516;
}

.hero-action.secondary {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
}

.hero-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.hero-stat-card,
.overview-card,
.rank-card,
.chart-card,
.cmp-intro-card,
.cmp-panel,
.detail-card,
.legend-card,
.panel-shell,
.hero-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
}

.hero-stat-card,
.overview-card,
.rank-card,
.detail-card,
.cmp-intro-card,
.cmp-panel,
.legend-card,
.panel-shell,
.hero-panel {
    border-radius: var(--radius-lg);
}

.hero-stat-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 16px 17px;
    min-height: 108px;
    border-radius: 0;
    border: 0;
    border-right: 1px solid var(--line);
    box-shadow: none;
    background: transparent;
}

.hero-stat-card:last-child {
    border-right: 0;
}

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(82, 183, 255, 0.12);
    color: var(--brand-alt);
}

.stat-icon svg,
.tab-icon svg,
.theme-toggle svg,
.search-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.stat-value {
    font-size: 1.32rem;
    font-weight: 700;
    line-height: 1.15;
}

.stat-detail {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.hero-ticker {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
}

.hero-ticker-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-right: 1px solid var(--line);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.hero-ticker-item:last-child {
    border-right: 0;
}

.hero-ticker-item strong {
    color: var(--text-primary);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(14, 28, 47, 0.94), rgba(9, 20, 35, 0.96));
}

.hero-panel::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 110px;
    background: linear-gradient(180deg, rgba(82, 183, 255, 0.08), transparent);
    pointer-events: none;
}

.hero-panel>* {
    position: relative;
}

.hero-panel-head,
.hero-panel-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hero-panel-head strong,
.hero-panel-foot span {
    color: var(--text-primary);
    font-size: 0.96rem;
    font-weight: 600;
}

.hero-panel-foot {
    padding-top: 4px;
    border-top: 1px solid var(--line);
}

.hero-panel-foot span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.podium-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.podium-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: var(--surface-soft);
    text-decoration: none;
    transition: transform var(--transition), border-color var(--transition), background-color var(--transition);
}

.podium-item:hover {
    transform: translateY(-1px);
    border-color: var(--line-strong);
    background: var(--surface-strong);
}

.podium-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(243, 210, 106, 0.14);
    color: var(--gold);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.podium-team {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.podium-team strong {
    font-size: 1rem;
}

.podium-team span,
.rank-team {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.podium-points {
    color: var(--brand);
    font-weight: 700;
    font-size: 0.98rem;
}

.nav-tabs {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 14px 0;
    backdrop-filter: blur(18px);
    background: color-mix(in srgb, var(--bg-primary) 82%, transparent);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 6px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.025);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background-color 180ms var(--ease-out-strong), color 180ms var(--ease-out-strong), transform 160ms var(--ease-out-strong), box-shadow 180ms var(--ease-out-strong);
}

.tab-btn.active {
    background: var(--brand);
    color: #052516;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.14);
}

.tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    cursor: pointer;
    transition: transform 160ms var(--ease-out-strong), background-color var(--transition), border-color var(--transition);
    flex-shrink: 0;
}

[data-theme="dark"] .theme-icon-light,
[data-theme="light"] .theme-icon-dark {
    display: none;
}

[data-theme="dark"] .theme-icon-dark,
[data-theme="light"] .theme-icon-light {
    display: inline-flex;
}

.main-content {
    padding: 34px 0 72px;
}

.overview-band {
    margin-bottom: 34px;
}

.overview-grid,
.rank-grid,
.charts-grid,
.detail-grid,
.detail-overview {
    display: grid;
    gap: 18px;
}

.overview-grid,
.detail-overview {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.overview-card {
    position: relative;
    padding: 22px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(15, 28, 46, 0.92), rgba(11, 21, 37, 0.96));
}

.overview-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--accent-cyan));
}

.overview-value {
    display: block;
    margin-top: 12px;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1;
}

.overview-note {
    margin-top: 10px;
    font-size: 0.94rem;
}

.section {
    display: none;
    animation: sectionIn 220ms ease;
}

.section.active {
    display: block;
}

@keyframes sectionIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px;
    padding-top: 8px;
}

.section-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.section-copy-compact {
    margin-bottom: 18px;
}

.section-copy h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.7rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.section-copy h3 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2rem);
    line-height: 1;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(82, 183, 255, 0.18);
    background: rgba(82, 183, 255, 0.08);
    color: var(--brand-alt);
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.section-index {
    flex-shrink: 0;
    color: rgba(103, 213, 255, 0.18);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    font-weight: 800;
    line-height: 0.82;
    letter-spacing: -0.05em;
}

.panel-shell {
    padding: 18px;
    background: linear-gradient(180deg, rgba(13, 26, 43, 0.84), rgba(9, 18, 31, 0.94));
}

.section-utility {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.section-helper {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.table-controls {
    display: grid;
    grid-template-columns: minmax(240px, 1.2fr) auto;
    gap: 16px 20px;
    align-items: center;
    margin-bottom: 16px;
}

.search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface-raised);
}

.search-icon {
    display: inline-flex;
    color: var(--text-muted);
}

.search-input {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.table-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px 14px;
}

.table-count {
    color: var(--text-primary);
    font-weight: 600;
}

.table-hint {
    font-size: 0.92rem;
}

.filter-group {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn,
.cmp-button {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface-raised);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 180ms var(--ease-out-strong), border-color 180ms var(--ease-out-strong), color 180ms var(--ease-out-strong), transform 160ms var(--ease-out-strong), box-shadow 180ms var(--ease-out-strong);
}

.filter-btn.active,
.cmp-button {
    background: var(--brand);
    color: #052516;
    border-color: var(--brand);
}

.cmp-button:disabled {
    background: var(--surface-raised);
    border-color: var(--line);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: calc(var(--radius-lg) - 8px);
}

.table-card {
    min-width: 760px;
    border-radius: calc(var(--radius-lg) - 8px);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface-raised);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.data-table thead {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] .data-table thead {
    background: rgba(18, 37, 63, 0.04);
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.data-table th {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.data-table th[data-sort] {
    cursor: pointer;
}

.data-table th[data-sort]:hover {
    color: var(--text-primary);
}

.data-table th.sort-asc::after {
    content: ' ▲';
    color: var(--brand);
}

.data-table th.sort-desc::after {
    content: ' ▼';
    color: var(--brand);
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.table-row {
    transition: background-color 180ms var(--ease-out-strong), box-shadow 180ms var(--ease-out-strong);
}

.zona-libertadores {
    background: rgba(24, 193, 122, 0.06);
}

.zona-pre-libertadores {
    background: rgba(82, 183, 255, 0.05);
}

.zona-sulamericana {
    background: rgba(255, 191, 95, 0.06);
}

.zona-rebaixamento {
    background: rgba(255, 111, 97, 0.06);
}

.pos-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-weight: 700;
}

.pos-badge.lib {
    background: rgba(24, 193, 122, 0.14);
    color: var(--brand);
}

.pos-badge.prelib {
    background: rgba(82, 183, 255, 0.14);
    color: var(--brand-alt);
}

.pos-badge.sula {
    background: rgba(255, 191, 95, 0.15);
    color: var(--warning);
}

.pos-badge.reb {
    background: rgba(255, 111, 97, 0.15);
    color: var(--danger);
}

.pos-badge.top3 {
    background: linear-gradient(135deg, var(--gold), var(--warning));
    color: #432500;
}

.col-time {
    display: flex;
    align-items: center;
    gap: 12px;
}

.time-escudo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.time-cor {
    width: 16px;
    height: 16px;
    border-radius: 5px;
    flex-shrink: 0;
}

.time-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.time-info strong {
    color: var(--text-primary);
    font-weight: 600;
}

.time-info small {
    color: var(--text-muted);
    font-size: 0.76rem;
}

.time-link {
    text-decoration: none;
}

.time-link:hover {
    color: var(--brand);
}

.fav-btn {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: transform var(--transition), color var(--transition), background-color var(--transition);
}

.fav-btn:hover {
    transform: scale(1.06);
    color: var(--warning);
    background: rgba(255, 191, 95, 0.08);
}

.fav-btn.active {
    color: var(--warning);
}

.table-row.favorito {
    box-shadow: inset 3px 0 0 var(--warning);
}

.col-pontos strong,
.col-v,
.col-saldo.positivo {
    color: var(--brand);
}

.col-d,
.col-saldo.negativo {
    color: var(--danger);
}

.col-gols strong,
.rank-score {
    color: var(--warning);
}

.scorer-sigla,
.scorer-position {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
}

.table-empty,
.cmp-empty,
.cmp-aviso {
    margin: 14px 2px 0;
    color: var(--text-secondary);
}

.legend-card {
    margin-top: 16px;
    padding: 16px 20px;
}

.legenda {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.legenda-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 4px;
}

.dot.lib {
    background: var(--brand);
}

.dot.prelib {
    background: var(--brand-alt);
}

.dot.sula {
    background: var(--warning);
}

.dot.reb {
    background: var(--danger);
}

.rank-grid {
    grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
    margin-bottom: 18px;
}

.rank-card {
    padding: 22px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(16, 29, 47, 0.95), rgba(10, 20, 35, 0.96));
}

.rank-card::before,
.chart-card::before,
.detail-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(103, 213, 255, 0.5), transparent);
}

.rank-card:first-child {
    background:
        radial-gradient(circle at top right, rgba(243, 210, 106, 0.12), transparent 42%),
        linear-gradient(180deg, rgba(21, 35, 57, 0.96), rgba(11, 22, 38, 0.98));
}

.rank-medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(82, 183, 255, 0.12);
    color: var(--brand-alt);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
}

.rank-player {
    display: block;
    margin-top: 18px;
    font-size: 1.24rem;
    line-height: 1.05;
}

.rank-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

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

.chart-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    background: linear-gradient(180deg, rgba(15, 28, 46, 0.92), rgba(10, 19, 33, 0.97));
}

.chart-header {
    padding: 22px 22px 0;
}

.chart-header h3 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1;
}

.chart-header p {
    margin-top: 8px;
    font-size: 0.94rem;
}

.chart-body {
    padding: 18px 18px 22px;
}

.chart-body canvas {
    width: 100% !important;
    min-height: 320px;
    max-height: 340px;
}

.cmp-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
    gap: 18px;
}

.cmp-intro-card,
.cmp-panel {
    padding: 24px;
}

.cmp-feature-list {
    margin: 16px 0 0;
    padding-left: 18px;
}

.cmp-feature-list li+li {
    margin-top: 8px;
}

.cmp-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.cmp-select {
    min-height: 48px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface-raised);
    color: var(--text-primary);
}

.cmp-vs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--text-muted);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
}

.cmp-result {
    margin-top: 18px;
}

.cmp-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
}

.cmp-summary-team {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: var(--surface-raised);
}

.cmp-summary-team strong {
    display: block;
    font-size: 1rem;
}

.cmp-summary-team span {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.cmp-summary-divider {
    color: var(--text-muted);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
}

.cmp-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px 14px;
    align-items: center;
}

.cmp-header {
    padding-bottom: 8px;
    color: var(--text-primary);
    font-weight: 700;
    text-align: center;
}

.cmp-label-center,
.cmp-label {
    color: var(--text-muted);
}

.cmp-label {
    text-align: center;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.cmp-val {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface-raised);
    text-align: center;
    color: var(--text-secondary);
    font-weight: 600;
}

.cmp-val.cmp-win {
    color: var(--brand);
    border-color: rgba(24, 193, 122, 0.28);
    background: rgba(24, 193, 122, 0.08);
}

.hero-mini {
    padding-top: 58px;
    padding-bottom: 46px;
}

.hero-grid-team {
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
}

.back-link {
    width: fit-content;
    text-decoration: none;
    color: var(--brand);
    font-weight: 600;
}

.back-link:hover {
    color: var(--brand-alt);
}

.hero-time-header {
    display: flex;
    align-items: center;
    gap: 18px;
}

.hero-escudo {
    width: 92px;
    height: 92px;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.22));
}

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

.detail-card {
    padding: 24px;
    position: relative;
    background: linear-gradient(180deg, rgba(15, 28, 46, 0.92), rgba(9, 19, 33, 0.97));
}

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

.detail-stat {
    padding: 18px;
    border-radius: 18px;
    background: var(--surface-raised);
    border: 1px solid var(--line);
}

.detail-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.detail-lbl {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.chart-body-detail canvas {
    min-height: 280px;
}

.detail-table-card {
    margin-top: 18px;
}

.footer {
    padding: 28px 0 38px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(5, 12, 22, 0.12));
}

.footer-content {
    text-align: center;
}

.footer-author {
    margin-top: 6px;
}

.footer-content a {
    color: var(--brand);
    text-decoration: none;
}

.footer-content a:hover {
    color: var(--brand-alt);
}

.footer-note {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(24, 193, 122, 0.08);
    border: 1px solid rgba(24, 193, 122, 0.16);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-copy,
.hero-panel,
.overview-card,
.rank-card,
.chart-card,
.detail-card,
.legend-card {
    animation: fadeUp 420ms var(--ease-out-strong) both;
}

.hero-panel {
    animation-delay: 60ms;
}

.hero-meta-grid .hero-stat-card:nth-child(1),
.overview-grid .overview-card:nth-child(1),
.rank-grid .rank-card:nth-child(1) {
    animation-delay: 80ms;
}

.hero-meta-grid .hero-stat-card:nth-child(2),
.overview-grid .overview-card:nth-child(2),
.rank-grid .rank-card:nth-child(2),
.charts-grid .chart-card:nth-child(2) {
    animation-delay: 120ms;
}

.hero-meta-grid .hero-stat-card:nth-child(3),
.overview-grid .overview-card:nth-child(3),
.rank-grid .rank-card:nth-child(3),
.charts-grid .chart-card:nth-child(3) {
    animation-delay: 160ms;
}

.overview-grid .overview-card:nth-child(4),
.charts-grid .chart-card:nth-child(4) {
    animation-delay: 200ms;
}

.podium-list .podium-item {
    animation: fadeUp 360ms var(--ease-out-strong) both;
}

.podium-list .podium-item:nth-child(1) {
    animation-delay: 90ms;
}

.podium-list .podium-item:nth-child(2) {
    animation-delay: 130ms;
}

.podium-list .podium-item:nth-child(3) {
    animation-delay: 170ms;
}

.hero-action:active,
.tab-btn:active,
.filter-btn:active,
.cmp-button:active,
.theme-toggle:active,
.fav-btn:active,
.podium-item:active {
    transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
    .hero-action.primary:hover {
        background: var(--brand-strong);
        border-color: var(--brand-strong);
        transform: translateY(-1px);
    }

    .hero-action.secondary:hover {
        border-color: var(--line-strong);
        background: rgba(255, 255, 255, 0.05);
        transform: translateY(-1px);
    }

    .tab-btn:hover {
        color: var(--text-primary);
        background: rgba(255, 255, 255, 0.05);
    }

    .theme-toggle:hover {
        transform: translateY(-1px);
        background: rgba(255, 255, 255, 0.06);
        border-color: var(--line-strong);
    }

    [data-theme="light"] .theme-toggle:hover,
    [data-theme="light"] .hero-action.secondary:hover,
    [data-theme="light"] .tab-btn:hover {
        background: rgba(18, 37, 63, 0.06);
    }

    .filter-btn:hover,
    .cmp-button:hover:not(:disabled) {
        transform: translateY(-1px);
        border-color: var(--line-strong);
        color: var(--text-primary);
    }

    .table-row:hover {
        background: rgba(255, 255, 255, 0.035);
        box-shadow: inset 4px 0 0 rgba(103, 213, 255, 0.55);
    }

    [data-theme="light"] .table-row:hover {
        background: rgba(18, 37, 63, 0.03);
    }
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(124, 142, 168, 0.45);
    border-radius: 999px;
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 1080px) {
    .hero-grid,
    .hero-grid-team,
    .cmp-layout,
    .charts-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .overview-grid,
    .detail-overview,
    .rank-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .hero {
        padding-top: 56px;
        padding-bottom: 40px;
    }

    .hero-meta-grid,
    .detail-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-stat-card:nth-child(2) {
        border-right: 0;
    }

    .hero-stat-card:nth-child(3) {
        grid-column: 1 / -1;
        border-top: 1px solid var(--line);
    }

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

    .table-controls,
    .cmp-controls {
        grid-template-columns: 1fr;
    }

    .table-meta {
        justify-content: flex-start;
    }

    .cmp-vs {
        display: none;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1240px);
    }

    .nav-tabs {
        padding: 10px 0;
    }

    .nav-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: 12px;
    }

    .nav-pills {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
        border-radius: 24px;
        padding: 8px;
    }

    .tab-btn {
        width: 100%;
        min-width: 0;
        justify-content: center;
        padding: 0 14px;
    }

    .overview-grid,
    .detail-overview,
    .rank-grid,
    .hero-meta-grid,
    .detail-stats {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        padding: 22px 20px;
    }

    .hero-stat-card {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .hero-stat-card:last-child {
        border-bottom: 0;
    }

    .hero-ticker,
    .hero-ticker-team {
        grid-template-columns: 1fr;
    }

    .hero-ticker-item {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .hero-ticker-item:last-child {
        border-bottom: 0;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-action,
    .hero-actions .theme-toggle {
        width: 100%;
    }

    .hero-actions .theme-toggle {
        border-radius: 16px;
        min-height: 46px;
    }

    .nav-inner > .theme-toggle {
        width: 46px;
        height: 46px;
        justify-self: end;
    }

    .hero-time-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-panel-head,
    .hero-panel-foot {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .section-index {
        font-size: 2.6rem;
    }

    .section-utility {
        align-items: flex-start;
    }

    .table-wrapper {
        overflow: visible;
    }

    .table-card {
        min-width: 100%;
        background: transparent;
        border: 0;
    }

    .data-table,
    .data-table tbody {
        display: block;
    }

    .data-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .data-table tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 12px;
        margin-bottom: 12px;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: var(--surface-raised);
        box-shadow: var(--shadow-card);
    }

    .data-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 12px 14px;
        border: 0;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.03);
        white-space: normal;
    }

    [data-theme="light"] .data-table td {
        background: rgba(18, 37, 63, 0.04);
    }

    .data-table td::before {
        content: attr(data-label);
        color: var(--text-muted);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        flex-shrink: 0;
    }

    .data-table td.col-pos,
    .data-table td.col-time {
        grid-column: 1 / -1;
    }

    .data-table td.col-pos {
        justify-content: flex-start;
    }

    .data-table td.col-time {
        display: grid;
        grid-template-columns: auto auto 1fr;
        align-items: center;
        gap: 10px;
    }

    .data-table td.col-time::before {
        grid-column: 1 / -1;
    }

    .data-table td.col-time .time-info {
        min-width: 0;
    }

    .data-table td.col-time .time-info strong,
    .data-table td.col-time .time-info small {
        word-break: break-word;
    }

    .data-table td.col-time .fav-btn {
        background: rgba(255, 191, 95, 0.08);
    }

    .cmp-summary,
    .cmp-grid {
        grid-template-columns: 1fr;
    }

    .cmp-summary-divider,
    .cmp-label-center {
        display: none;
    }
}

@media (max-width: 480px) {
    .tab-btn {
        font-size: 0.92rem;
        padding: 0 12px;
    }

    .tab-btn .tab-icon {
        display: none;
    }

    .data-table th,
    .data-table td {
        padding: 12px 10px;
    }

    .chart-header h3 {
        font-size: 1.3rem;
    }
}
