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

body {
    font-family: 'Inter', sans-serif;
    background: #f5f7fb;
    color: #111827;
    line-height: 1.5;
}

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

.site-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #dbe2ea;
    padding: 18px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-box {
    width: 62px;
    height: 62px;
    border: 2px solid #FFFFFF;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    overflow: hidden;
    flex-shrink: 0;
}

.site-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brand-text {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.main-nav a {
    padding: 11px 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 14px;
    background: #ffffff;
    font-weight: 600;
    transition: 0.2s ease;
}

.main-nav a:hover {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}

.homepage-shell {
    max-width: 1400px;
    margin: 0 auto;
    padding: 28px 24px 40px;
}

.scores-strip {
    background: #ffffff;
    border: 1px solid #dbe2ea;
    border-radius: 24px;
    padding: 18px 22px;
    margin-bottom: 28px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.scores-strip-label {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.scores-marquee {
    overflow: hidden;
    width: 100%;
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
}

.scores-track {
    display: flex;
    align-items: center;
    gap: 18px;
    width: max-content;
    animation: scrollScores 35s linear infinite;
    color: #334155;
}

@keyframes scrollScores {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.score-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 8px 12px;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.score-value {
    font-weight: 800;
    color: #0f172a;
    min-width: 16px;
    text-align: center;
}

.score-separator {
    color: #94a3b8;
    font-weight: 700;
}

.homepage-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 280px;
    gap: 24px;
    align-items: start;
}

.home-card {
    background: #ffffff;
    border: 1px solid #dbe2ea;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.home-card h1,
.home-card h2 {
    margin-bottom: 12px;
    color: #0f172a;
}

.home-card h1 {
    font-size: 2rem;
    line-height: 1.15;
}

.home-card h2 {
    font-size: 1.2rem;
    font-weight: 800;
}

.home-card p {
    color: #475569;
}

.home-center {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.info-card {
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 14px 20px;
    border-radius: 16px;
    font-weight: 700;
    width: fit-content;
    transition: 0.2s ease;
}

.primary-button {
    background: #111827;
    color: #ffffff;
}

.primary-button:hover {
    background: #1f2937;
}

.secondary-button {
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    color: #111827;
}

.secondary-button:hover {
    background: #e2e8f0;
}

.team-pill {
    --team-bg: #e5e7eb;
    --team-text: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--team-bg);
    color: var(--team-text);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    border: 1px solid rgba(15, 23, 42, 0.08);
    white-space: nowrap;
}

.score-team-pill {
    font-size: 0.75rem;
    padding: 5px 10px;
}

.performance-team-pill {
    font-size: 0.72rem;
    padding: 4px 9px;
}

.standings-team-pill {
    font-size: 0.76rem;
    padding: 5px 10px;
    max-width: 100%;
}

.stat-leaders-card {
    min-height: 100%;
}

.leader-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 14px;
}

.leader-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
}

.leader-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.leader-rank {
    font-size: 1.1rem;
    font-weight: 800;
    color: #111827;
    min-width: 24px;
}

.leader-content {
    min-width: 0;
    flex: 1;
}

.leader-top-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.player-name {
    display: inline;
    margin-bottom: 0;
}

.leader-item p {
    font-size: 0.95rem;
}

.revisit-card,
.rules-card {
    min-height: 170px;
}

.standings-card {
    min-height: 100%;
}

.standings-note {
    margin-bottom: 14px;
    font-size: 0.95rem;
    color: #64748b;
}

.standings-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 16px;
    color: #1e293b;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.standings-entry {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.standings-rank {
    font-weight: 800;
    color: #0f172a;
}

.standings-record {
    font-size: 0.9rem;
    font-weight: 700;
    color: #475569;
    white-space: nowrap;
}

.inline-link {
    color: #2563eb;
    font-weight: 700;
}

.inline-link:hover {
    text-decoration: underline;
}

.site-footer {
    padding: 24px;
    text-align: center;
    color: #64748b;
    font-size: 0.95rem;
}

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

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

    .main-nav {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .site-header {
        padding: 18px 20px;
    }

    .homepage-shell {
        padding: 20px 16px 32px;
    }

    .brand-text {
        font-size: 1.25rem;
        line-height: 1.2;
    }

    .home-card h1 {
        font-size: 1.6rem;
    }

    .main-nav a {
        padding: 10px 14px;
        font-size: 0.95rem;
    }

    .standings-entry {
        grid-template-columns: 24px 1fr;
    }

    .standings-record {
        grid-column: 2 / 3;
        margin-left: 0;
    }
}