/* Design tokens — change these to re-theme the site */
:root {
    /* Backgrounds */
    --bg-start: #0a0a0a;
    --bg-end: #1a0000;
    --bg-overlay: rgba(0, 0, 0, 0.95);

    /* Accent (red) */
    --accent: #ff3333;
    --accent-light: #ff6666;
    --accent-soft: rgba(255, 51, 51, 0.3);

    /* Text */
    --text: #e8e8e8;
    --text-secondary: #e0e6ed;
    --text-muted: #b8c5d6;
    --text-subtle: #8a9bb0;
    --text-faint: #6a7a8f;
    --text-inverse: #ffffff;

    /* Medal colors */
    --gold: #ffd700;
    --silver: #c0c0c0;
    --bronze: #cd7f32;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, var(--bg-start) 0%, var(--bg-end) 100%);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Links */
a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

a:hover,
a:active {
    color: var(--accent-light);
    text-decoration: none;
}

a:active {
    opacity: 0.7;
}

/* Header - Top Navigation */
.header {
    background: rgba(0, 0, 0, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(255, 51, 51, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 2rem;
}

.header-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 0 0 auto;
}

.page-title {
    font-size: 1.8em;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 4px rgba(255, 51, 51, 0.4));
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger:hover .hamburger-line {
    background: var(--accent-light);
}

.hamburger:hover {
    transform: scale(1.05);
}

/* Main Container */
.container {
    display: flex;
    flex-direction: column;
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0;
}

/* Top Navigation Bar */
.sidebar {
    background: transparent;
    padding: 0;
    position: static;
    width: auto;
    height: auto;
    border: none;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    justify-content: flex-end;
}

.sidebar-header {
    display: none;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    margin: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95em;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 51, 51, 0.1) 0%, rgba(255, 102, 102, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 51, 51, 0.15);
    color: var(--accent-light);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(255, 51, 51, 0.25) 0%, rgba(255, 102, 102, 0.2) 100%);
    color: var(--accent-light);
    font-weight: 600;
    border: 1px solid rgba(255, 51, 51, 0.4);
}

/* Main Content */
.content {
    flex: 1;
    padding: 3rem 2rem;
    overflow-y: auto;
}

.page {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typography */
.xlarge {
    font-size: 2.2em;
    margin-bottom: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.large {
    font-size: 1.4em;
    font-weight: 600;
}

.medium {
    font-size: 1.05em;
    line-height: 1.8;
    color: var(--text-muted);
}

.small {
    font-size: 0.9em;
    color: var(--text-subtle);
}

.section-header {
    color: var(--accent);
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
    border-radius: 2px;
}

.update-date {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--accent);
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 51, 51, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 51, 51, 0.3);
}

.signature {
    font-family: 'Brush Script MT', cursive;
    font-size: 1.5em;
    font-weight: normal;
    font-style: italic;
    color: var(--accent);
    margin-top: 1rem;
}

/* Winner Cards */
.winner-card {
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.winner-card:hover {
    transform: translateY(-4px);
}

.medal-emoji {
    font-size: 4em;
    margin: 0 auto 1rem;
    display: block;
    text-align: center;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: medalFloat 3s ease-in-out infinite;
}

@keyframes medalFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.winner-card:hover .medal-emoji {
    animation: medalBounce 0.6s ease-in-out;
}

@keyframes medalBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.winner-1st {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
    border: 2px solid rgba(255, 215, 0, 0.4);
}

.winner-1st:hover {
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.3);
}

.winner-2nd {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15) 0%, rgba(192, 192, 192, 0.05) 100%);
    border: 2px solid rgba(192, 192, 192, 0.4);
}

.winner-2nd:hover {
    box-shadow: 0 8px 32px rgba(192, 192, 192, 0.3);
}

.winner-3rd {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.15) 0%, rgba(205, 127, 50, 0.05) 100%);
    border: 2px solid rgba(205, 127, 50, 0.4);
}

.winner-3rd:hover {
    box-shadow: 0 8px 32px rgba(205, 127, 50, 0.3);
}

.winner-rank {
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.winner-1st .winner-rank {
    color: var(--gold);
}

.winner-2nd .winner-rank {
    color: var(--silver);
}

.winner-3rd .winner-rank {
    color: var(--bronze);
}

.winner-name {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.winner-1st .winner-name {
    color: var(--gold);
}

.winner-2nd .winner-name {
    color: var(--silver);
}

.winner-3rd .winner-name {
    color: var(--bronze);
}

.winner-points {
    font-size: 1.1em;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.winner-prize {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.winner-note {
    margin: 0;
    font-size: 0.9em;
    color: var(--text-muted);
    font-style: italic;
}

/* Welcome Section */
.welcome-section p {
    margin-bottom: 1.5rem;
}

.image-container {
    margin: 3rem 0;
    text-align: center;
}

.championship-photo {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(255, 0, 0, 0.3);
    margin-bottom: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.championship-photo:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 48px rgba(255, 0, 0, 0.4);
}

.contenders-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contenders-pair .championship-photo {
    margin-bottom: 0;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

@media (max-width: 600px) {
    .contenders-pair {
        grid-template-columns: 1fr;
    }
}

.nav-link-inline {
    color: var(--accent);
    cursor: pointer;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.nav-link-inline:hover {
    border-bottom-color: var(--accent);
}

/* Standings Table */
.standings-container {
    overflow-x: auto;
    margin-top: 2rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 51, 51, 0.4) transparent;
}

.standings-container::-webkit-scrollbar {
    height: 8px;
}

.standings-container::-webkit-scrollbar-track {
    background: transparent;
}

.standings-container::-webkit-scrollbar-thumb {
    background: rgba(255, 51, 51, 0.4);
    border-radius: 4px;
}

.standings-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 51, 51, 0.6);
}

.standings-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.75rem;
    background-color: transparent;
    color: var(--text-secondary);
}

.standings-table thead {
    background: transparent;
}

.standings-table th {
    color: var(--accent);
    padding: 1rem;
    text-align: left;
    font-size: 0.95em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.standings-table td {
    padding: 1.25rem 1rem;
    border: none;
}

.participant-row {
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    min-height: 60px;
}

.participant-row td:first-child {
    border-radius: 12px 0 0 12px;
}

.participant-row td:last-child {
    border-radius: 0 12px 12px 0;
}

.participant-row:hover {
    background: rgba(255, 51, 51, 0.1);
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.3);
}

.participant-row:active {
    background: rgba(255, 51, 51, 0.15);
    transform: scale(0.98);
}

@media (hover: none) {
    .participant-row:hover {
        transform: none;
    }
}

.participant-row.rank-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.participant-row.rank-1 td:first-child {
    color: var(--gold);
    font-weight: 700;
    font-size: 1.3em;
}

.participant-row.rank-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15) 0%, rgba(192, 192, 192, 0.05) 100%);
    border: 1px solid rgba(192, 192, 192, 0.3);
}

.participant-row.rank-2 td:first-child {
    color: var(--silver);
    font-weight: 700;
    font-size: 1.2em;
}

.participant-row.rank-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.15) 0%, rgba(205, 127, 50, 0.05) 100%);
    border: 1px solid rgba(205, 127, 50, 0.3);
}

.participant-row.rank-3 td:first-child {
    color: var(--bronze);
    font-weight: 700;
    font-size: 1.1em;
}

.participant-row.perfect-team-row {
    background: linear-gradient(135deg, rgba(120, 180, 255, 0.12) 0%, rgba(120, 180, 255, 0.04) 100%);
    border: 1px dashed rgba(120, 180, 255, 0.4);
    min-height: 0;
}

.participant-row.perfect-team-row td {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.participant-row.perfect-team-row td:first-child {
    color: #78b4ff;
    font-weight: 700;
    font-size: 1.2em;
}

.participant-row.perfect-team-row .perfect-team-meta {
    color: var(--text-secondary, #bbb);
    font-weight: 400;
    font-size: 0.9em;
    margin-left: 0.25rem;
}

.participant-row.perfect-team-row .perfect-team-hide {
    display: none;
}

.participant-row.perfect-team-row:hover {
    background: rgba(120, 180, 255, 0.15);
    box-shadow: 0 4px 20px rgba(120, 180, 255, 0.25);
}

.expand-icon {
    font-size: 0.8em;
    margin-left: 8px;
    transition: transform 0.3s ease;
    color: var(--accent);
}

.participant-row.expanded .expand-icon {
    transform: rotate(180deg);
}

.participant-details {
    display: none;
}

.participant-details.show {
    display: table-row;
}

.participant-details td {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 0;
}

.player-list {
    padding: 2rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 51, 51, 0.08) 0%, rgba(255, 102, 102, 0.03) 100%);
    border: 1px solid rgba(255, 51, 51, 0.2);
}

.player-list h3 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 1.3em;
    font-weight: 600;
}

.player-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
    margin-bottom: 1rem;
}

.player-table th {
    background: rgba(255, 51, 51, 0.15);
    color: var(--accent);
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.9em;
    font-weight: 600;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.player-table th:first-child {
    border-radius: 8px 0 0 8px;
}

.player-table th:last-child {
    border-radius: 0 8px 8px 0;
}

.player-table td {
    padding: 0.75rem 1rem;
    background: rgba(20, 20, 20, 0.4);
    border: none;
}

.player-table tr td:first-child {
    border-radius: 8px 0 0 8px;
}

.player-table tr td:last-child {
    border-radius: 0 8px 8px 0;
}

.player-table tr.eliminated {
    opacity: 0.5;
}

.player-table tr.eliminated td {
    color: var(--text-faint);
    text-decoration: line-through;
}

/* Team color stripes on player rows — left border is the team primary,
   background is a very light wash of the same color for quick scanning. */
.player-table tr[class*="team-"] td:first-child {
    border-left: 4px solid transparent;
}
.player-table tr.team-ANA td:first-child { border-left-color: #F47A38; }
.player-table tr.team-ANA { background: rgba(244, 122, 56, 0.08); }
.player-table tr.team-BOS td:first-child { border-left-color: #FFB81C; }
.player-table tr.team-BOS { background: rgba(255, 184, 28, 0.08); }
.player-table tr.team-BUF td:first-child { border-left-color: #002654; }
.player-table tr.team-BUF { background: rgba(0, 38, 84, 0.14); }
.player-table tr.team-CGY td:first-child { border-left-color: #C8102E; }
.player-table tr.team-CGY { background: rgba(200, 16, 46, 0.08); }
.player-table tr.team-CAR td:first-child { border-left-color: #CC0000; }
.player-table tr.team-CAR { background: rgba(204, 0, 0, 0.08); }
.player-table tr.team-CHI td:first-child { border-left-color: #CF0A2C; }
.player-table tr.team-CHI { background: rgba(207, 10, 44, 0.08); }
.player-table tr.team-COL td:first-child { border-left-color: #6F263D; }
.player-table tr.team-COL { background: rgba(111, 38, 61, 0.14); }
.player-table tr.team-CBJ td:first-child { border-left-color: #002654; }
.player-table tr.team-CBJ { background: rgba(0, 38, 84, 0.14); }
.player-table tr.team-DAL td:first-child { border-left-color: #006847; }
.player-table tr.team-DAL { background: rgba(0, 104, 71, 0.1); }
.player-table tr.team-DET td:first-child { border-left-color: #CE1126; }
.player-table tr.team-DET { background: rgba(206, 17, 38, 0.08); }
.player-table tr.team-EDM td:first-child { border-left-color: #FF4C00; }
.player-table tr.team-EDM { background: rgba(255, 76, 0, 0.08); }
.player-table tr.team-FLA td:first-child { border-left-color: #C8102E; }
.player-table tr.team-FLA { background: rgba(200, 16, 46, 0.08); }
.player-table tr.team-LAK td:first-child { border-left-color: #A2AAAD; }
.player-table tr.team-LAK { background: rgba(162, 170, 173, 0.1); }
.player-table tr.team-MIN td:first-child { border-left-color: #154734; }
.player-table tr.team-MIN { background: rgba(21, 71, 52, 0.12); }
.player-table tr.team-MTL td:first-child { border-left-color: #AF1E2D; }
.player-table tr.team-MTL { background: rgba(175, 30, 45, 0.08); }
.player-table tr.team-NSH td:first-child { border-left-color: #FFB81C; }
.player-table tr.team-NSH { background: rgba(255, 184, 28, 0.08); }
.player-table tr.team-NJD td:first-child { border-left-color: #CE1126; }
.player-table tr.team-NJD { background: rgba(206, 17, 38, 0.08); }
.player-table tr.team-NYI td:first-child { border-left-color: #F47D30; }
.player-table tr.team-NYI { background: rgba(244, 125, 48, 0.08); }
.player-table tr.team-NYR td:first-child { border-left-color: #0038A8; }
.player-table tr.team-NYR { background: rgba(0, 56, 168, 0.1); }
.player-table tr.team-OTT td:first-child { border-left-color: #C8102E; }
.player-table tr.team-OTT { background: rgba(200, 16, 46, 0.08); }
.player-table tr.team-PHI td:first-child { border-left-color: #F74902; }
.player-table tr.team-PHI { background: rgba(247, 73, 2, 0.08); }
.player-table tr.team-PIT td:first-child { border-left-color: #FCB514; }
.player-table tr.team-PIT { background: rgba(252, 181, 20, 0.08); }
.player-table tr.team-SJS td:first-child { border-left-color: #006D75; }
.player-table tr.team-SJS { background: rgba(0, 109, 117, 0.1); }
.player-table tr.team-SEA td:first-child { border-left-color: #99D9D9; }
.player-table tr.team-SEA { background: rgba(153, 217, 217, 0.1); }
.player-table tr.team-STL td:first-child { border-left-color: #002F87; }
.player-table tr.team-STL { background: rgba(0, 47, 135, 0.14); }
.player-table tr.team-TBL td:first-child { border-left-color: #00205B; }
.player-table tr.team-TBL { background: rgba(0, 32, 91, 0.14); }
.player-table tr.team-TOR td:first-child { border-left-color: #00205B; }
.player-table tr.team-TOR { background: rgba(0, 32, 91, 0.14); }
.player-table tr.team-UTA td:first-child { border-left-color: #69B3E7; }
.player-table tr.team-UTA { background: rgba(105, 179, 231, 0.08); }
.player-table tr.team-VAN td:first-child { border-left-color: #00843D; }
.player-table tr.team-VAN { background: rgba(0, 132, 61, 0.1); }
.player-table tr.team-VGK td:first-child { border-left-color: #B4975A; }
.player-table tr.team-VGK { background: rgba(180, 151, 90, 0.1); }
.player-table tr.team-WSH td:first-child { border-left-color: #C8102E; }
.player-table tr.team-WSH { background: rgba(200, 16, 46, 0.08); }
.player-table tr.team-WPG td:first-child { border-left-color: #AC162C; }
.player-table tr.team-WPG { background: rgba(172, 22, 44, 0.08); }

.player-summary {
    color: var(--accent);
    font-weight: 600;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 51, 51, 0.08);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}

.loading-cell {
    text-align: center;
    padding: 3rem !important;
}

/* History Page Styles */
.history-subheader {
    color: var(--accent);
    font-size: 1.5em;
    font-weight: 600;
    margin: 2rem 0 1rem;
}

/* Money Leaders Table */
.money-leaders-table-container {
    max-width: 800px;
    margin: 2rem 0;
    overflow-x: auto;
}

.money-leaders-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
}

.money-leaders-table thead {
    background: rgba(255, 51, 51, 0.15);
}

.money-leaders-table th {
    color: var(--accent);
    padding: 1rem;
    text-align: left;
    font-size: 0.95em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(255, 51, 51, 0.3);
}

.money-leaders-table th:first-child {
    width: 100px;
    text-align: center;
}

.money-leaders-table th:last-child {
    width: 150px;
    text-align: right;
}

.leader-row {
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 51, 51, 0.1);
}

.leader-row:hover {
    background: rgba(255, 51, 51, 0.1);
}

.leader-row td {
    padding: 1rem;
    color: var(--text-secondary);
}

.leader-row:last-child {
    border-bottom: none;
}

.rank-cell {
    text-align: center;
    font-weight: 600;
    font-size: 1.1em;
}

.amount-cell {
    text-align: right;
    font-weight: 700;
    font-size: 1.2em;
    color: var(--accent);
}

/* Top 3 special styling */
.leader-row.rank-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
}

.leader-row.rank-1:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
}

.leader-row.rank-1 .rank-cell {
    color: var(--gold);
    font-size: 1.3em;
}

.leader-row.rank-1 .amount-cell {
    color: var(--gold);
    font-size: 1.4em;
}

.leader-row.rank-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15) 0%, rgba(192, 192, 192, 0.05) 100%);
}

.leader-row.rank-2:hover {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.2) 0%, rgba(192, 192, 192, 0.1) 100%);
}

.leader-row.rank-2 .rank-cell {
    color: var(--silver);
    font-size: 1.2em;
}

.leader-row.rank-2 .amount-cell {
    color: var(--silver);
    font-size: 1.3em;
}

.leader-row.rank-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.15) 0%, rgba(205, 127, 50, 0.05) 100%);
}

.leader-row.rank-3:hover {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.2) 0%, rgba(205, 127, 50, 0.1) 100%);
}

.leader-row.rank-3 .rank-cell {
    color: var(--bronze);
    font-size: 1.2em;
}

.leader-row.rank-3 .amount-cell {
    color: var(--bronze);
    font-size: 1.3em;
}

/* Hidden leaders (21-47) */
.hidden-leader {
    display: none;
}

.hidden-leader.show {
    display: table-row;
}

/* Toggle button */
.toggle-leaders-btn {
    display: block;
    margin: 1.5rem auto 0;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, rgba(255, 51, 51, 0.2) 0%, rgba(255, 102, 102, 0.1) 100%);
    border: 2px solid rgba(255, 51, 51, 0.4);
    border-radius: 8px;
    color: var(--accent);
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.toggle-leaders-btn:hover {
    background: linear-gradient(135deg, rgba(255, 51, 51, 0.3) 0%, rgba(255, 102, 102, 0.2) 100%);
    border-color: rgba(255, 51, 51, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.toggle-leaders-btn:active {
    transform: translateY(0);
}

.btn-icon {
    transition: transform 0.3s ease;
    font-size: 0.8em;
}

.toggle-leaders-btn.expanded .btn-icon {
    transform: rotate(180deg);
}

.past-winners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.past-winner-card {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 51, 51, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.past-winner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(255, 0, 0, 0.3);
}

.past-winner-card.no-pool {
    background: rgba(100, 100, 100, 0.2);
    border: 1px solid rgba(150, 150, 150, 0.3);
    text-align: center;
}

.past-year {
    color: var(--accent);
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.past-subtitle {
    color: var(--text-muted);
    font-size: 0.95em;
    margin-bottom: 1rem;
    font-style: italic;
}

.past-list {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.past-photo {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

/* Info Page Styles */
.info-content {
    max-width: 900px;
}

.info-image-container {
    float: right;
    margin: 0 0 2rem 2rem;
    max-width: 400px;
}

.info-photo {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(255, 0, 0, 0.3);
    margin-bottom: 0.5rem;
}

.intro-text {
    color: var(--accent);
    font-size: 1.1em;
    margin-bottom: 1.5rem;
}

.info-subheader {
    color: var(--accent);
    font-size: 1.5em;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
}

.rules-list {
    list-style-type: square;
    color: var(--accent);
    padding-left: 2rem;
    margin: 1rem 0;
}

.rules-list li {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.rules-notes {
    background: rgba(255, 51, 51, 0.08);
    border-left: 3px solid var(--accent);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.rules-notes p {
    margin-bottom: 0.75rem;
}

.rules-notes ul {
    list-style-type: disc;
    padding-left: 2rem;
    color: var(--text-muted);
}

.rules-notes li {
    margin-bottom: 0.5rem;
}

.info-table {
    width: 100%;
    max-width: 600px;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
}

.info-table th,
.info-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 51, 51, 0.1);
    color: var(--text-secondary);
}

.info-table th {
    background: rgba(255, 51, 51, 0.15);
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9em;
}

.info-table td:nth-child(3) {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.1em;
}

.info-table tr:hover {
    background: rgba(255, 51, 51, 0.05);
}

.info-table tr:last-child td {
    border-bottom: none;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-top: 2px solid rgba(255, 51, 51, 0.3);
    padding: 2rem;
    text-align: center;
    margin-top: auto;
}

.footer a {
    color: var(--accent);
}

/* Loading State */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--accent);
    font-size: 1.2em;
}

.spinner {
    border: 4px solid rgba(255, 51, 51, 0.2);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 1.5rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content {
        padding: 2rem 1.5rem;
    }
    
    .nav-menu {
        gap: 0.25rem;
    }
    
    .nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.9em;
        min-height: 44px;
    }
    
    .winner-card {
        min-width: 250px;
    }
    
    .info-image-container {
        float: none;
        margin: 0 auto 2rem;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .header {
        padding: 0;
        display: block;
    }

    .header-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.5rem;
        position: relative;
        z-index: 1001;
        min-height: 60px;
        width: 100%;
    }

    .sidebar {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 280px;
        height: calc(100vh - 60px);
        z-index: 2;
        transition: left 0.3s ease;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 1.5rem;
        background: rgba(0, 0, 0, 0.98);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        border-right: 2px solid rgba(255, 51, 51, 0.4);
        box-shadow: 4px 0 20px rgba(255, 0, 0, 0.3);
        overflow-y: auto;
    }

    .sidebar.open {
        left: 0;
    }

    .sidebar-header {
        display: none;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    .nav-link {
        width: 100%;
        padding: 1rem;
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    .page-title {
        font-size: 1.4em;
    }
    
    .hamburger {
        display: flex;
    }
    
    .container {
        flex-direction: column;
    }
    
    .content {
        padding: 1.5rem 1rem;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .xlarge {
        font-size: 1.8em;
    }
    
    .section-header {
        font-size: 1.6em;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .standings-table {
        font-size: 0.9em;
        border-spacing: 0 0.5rem;
        min-width: 100%;
    }
    
    .standings-table th,
    .standings-table td {
        padding: 0.75rem 0.5rem;
        white-space: nowrap;
    }
    
    .standings-table th:nth-child(3),
    .standings-table td:nth-child(3) {
        display: none;
    }
    
    .championship-photo {
        border-radius: 8px;
    }
    
    .image-container {
        margin: 2rem 0;
    }
    
    .winner-card {
        margin-bottom: 1rem;
    }
    
    .nav-link-inline {
        display: inline-block;
        padding: 0.25rem 0;
        margin: 0.25rem 0;
    }
    
    .footer {
        padding: 1.5rem 1rem;
        font-size: 0.85em;
    }
    
    .past-winners-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.1em;
    }
    
    .logo-icon {
        width: 24px;
        height: 24px;
    }
    
    .medal-emoji {
        font-size: 3em;
    }
    
    .xlarge {
        font-size: 1.4em;
        line-height: 1.3;
    }
    
    .section-header {
        font-size: 1.3em;
    }
    
    .medium {
        font-size: 1em;
        line-height: 1.7;
    }
    
    .standings-table {
        font-size: 0.85em;
    }
    
    body {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .welcome-section p {
        margin-bottom: 1.25rem;
    }
    
    .standings-table thead {
        display: none;
    }
    
    .participant-row {
        display: block;
        margin-bottom: 1rem;
        border-radius: 12px;
        padding: 1rem;
        min-height: auto;
    }
    
    .participant-row td {
        display: block;
        border: none;
        padding: 0.5rem 0;
        border-radius: 0 !important;
        white-space: normal;
    }
    
    .participant-row td:first-child {
        font-size: 1.5em;
        margin-bottom: 0.5rem;
    }
    
    .participant-row td:first-child::before {
        content: "#";
        font-weight: bold;
        color: var(--accent);
        margin-right: 0.25rem;
    }

    .participant-row.perfect-team-row td:first-child::before {
        content: "";
        margin-right: 0;
    }

    .participant-row.perfect-team-row {
        padding: 0.6rem 1rem;
    }

    .participant-row.perfect-team-row td:first-child,
    .participant-row.perfect-team-row td:nth-child(2) {
        display: inline;
        font-size: 1em;
        margin-bottom: 0;
        padding: 0;
    }

    .participant-row.perfect-team-row td:first-child {
        margin-right: 0.4rem;
    }
    
    .participant-row td:nth-child(2) {
        font-size: 1.2em;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }
    
    .participant-row td:nth-child(4)::before {
        content: "Points: ";
        font-weight: 600;
        color: var(--accent);
    }
    
    .participant-row td:nth-child(5)::before {
        content: "Prize: ";
        font-weight: 600;
        color: var(--accent);
    }

    .participant-details.show {
        display: block;
    }

    .participant-details td {
        display: block;
    }
    
    .player-list {
        padding: 1rem;
    }
    
    .player-table {
        width: 100%;
        font-size: 0.85em;
    }
    
    .player-table th,
    .player-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.9em;
    }

    .player-table td {
        overflow-wrap: anywhere;
    }

    .player-table thead {
        display: none;
    }

    .player-table,
    .player-table tbody,
    .player-table tr,
    .player-table td {
        display: block;
        width: 100%;
    }

    .player-table tr {
        margin-bottom: 0.75rem;
        padding: 0.5rem;
        border: 1px solid rgba(255, 51, 51, 0.15);
        border-radius: 10px;
        background: rgba(20, 20, 20, 0.35);
    }

    .player-table td {
        text-align: left;
        white-space: normal;
        padding: 0.35rem 0;
        background: transparent;
        border-radius: 0 !important;
    }

    .player-table td::before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: var(--accent);
    }

    .player-table tr td:first-child,
    .player-table tr td:last-child {
        border-radius: 0;
    }

    .player-table tr[class*="team-"] td:first-child {
        border-left-width: 0;
        padding-left: 0;
    }
    
    .winner-card {
        padding: 1.25rem;
    }
    
    .winner-name {
        font-size: 1.2em;
    }
    
    .winner-prize {
        font-size: 1.3em;
    }
}

/* Overlay for mobile menu */
.overlay {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100% - 60px);
    background-color: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    z-index: 999;
}

.overlay.show {
    display: block;
}

/* Accessibility */
.nav-link:focus,
.hamburger:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: rgba(255, 51, 51, 0.3);
    color: #ffffff;
}

/* Content utility classes (replaces inline styles) */
.error-text {
    color: var(--accent);
    font-weight: 600;
}

.section-subheader {
    color: var(--accent);
    font-size: 1.5em;
    margin: 2rem 0 1rem;
}

.winners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.spacer-top-sm {
    margin-top: 1.5rem;
}

.spacer-top-md {
    margin-top: 2rem;
}

.spacer-top-lg {
    margin-top: 3rem;
}

.spacer-bottom-sm {
    margin-bottom: 1.5rem;
}

.spacer-bottom-md {
    margin-bottom: 2rem;
}

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

.divider {
    border: none;
    border-top: 1px solid rgba(255, 51, 51, 0.3);
    margin: 3rem 0;
}

/* Print styles */
@media print {
    .header,
    .sidebar,
    .footer {
        display: none;
    }
    
    .content {
        padding: 0;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Made with Bob */
