/* =========================================
   TOURNAMENT SCORECARD
========================================= */

.tournament-shell {
    padding-bottom: 60px;
}

/* =========================================
   HERO
========================================= */

.tournament-hero {
    width: 100%;
    overflow: hidden;
    margin-bottom: 28px;
    background: #111;
}

.tournament-hero img {
    width: 100%;
    display: block;
}

/* =========================================
   HEADER
========================================= */

.tournament-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 36px;
    flex-wrap: wrap;
    padding: 0px 10px;
}

.tournament-eyebrow {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .22em;
    opacity: .6;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.tournament-title {
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: .95;
    margin: 0 0 14px;
    font-weight: 900;
    letter-spacing: -.03em;
}

.tournament-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: .95rem;
    opacity: .82;
}

.meta-divider {
    opacity: .35;
}

.tournament-controls {
    display: flex;
    flex-direction: row;

    align-items: center;
    justify-content: flex-end;

    gap: 12px;

    flex-wrap: wrap;
}

/* =========================================
   TOURNAMENT DROPDOWN
========================================= */

.ts-dropdown {
    position: relative;
}

.ts-dropbtn {
    background: #1c1c1c !important;
    color: #ffffff !important;

    border: 1px solid rgba(255,255,255,.12) !important;

    padding: 12px 16px;
    border-radius: 999px;

    font-weight: 700;
    font-size: .95rem;

    cursor: pointer;

    transition:
        background .15s ease,
        border-color .15s ease,
        transform .15s ease;
}

.ts-dropbtn:hover {
    background: #2a2a2a !important;
    border-color: rgba(255,255,255,.2) !important;

    transform: translateY(-1px);
}

.ts-dropdown-menu {
    display: none;

    position: absolute;
    right: 0;
    top: calc(100% + 10px);

    min-width: 280px;
    max-height: 420px;

    overflow-y: auto;

    background: #1a1a1a;

    border: 1px solid rgba(255,255,255,.08);

    border-radius: 8px;

    box-shadow: 0 14px 34px rgba(0,0,0,.45);

    z-index: 99999;
}

.ts-dropdown-menu a {
    display: block;

    padding: 13px 16px;

    color: rgba(255,255,255,.9);

    text-decoration: none;

    font-size: .92rem;
    font-weight: 600;

    transition:
        background .12s ease,
        color .12s ease;
}

.ts-dropdown-menu a:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}

/* =========================================
   VIEW TOGGLE
========================================= */

.view-toggle {
    display: inline-flex;

    background: #1a1a1a;

    border: 1px solid rgba(255,255,255,.08);

    border-radius: 999px;

    padding: 4px;

    gap: 4px;
}

.view-btn {
    border: 0;

    background: transparent;

    color: rgba(255,255,255,.72);

    padding: 10px 16px;

    border-radius: 999px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background .15s ease,
        color .15s ease,
        opacity .15s ease;
}

.view-btn:hover {
    color: white;
}

.view-btn.active {
    background: white;

    color: black;

    box-shadow:
        0 2px 8px rgba(0,0,0,.25);
}

/* =========================================
   SECTION HEADER
========================================= */

.leaderboard-title-row {
    margin-bottom: 18px;
    padding: 0px 10px;
}

.section-label {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -.02em;
}

.section-subtitle {
    opacity: .65;
    margin-top: 4px;
}

/* =========================================
   LEADERBOARD
========================================= */

.leaderboard-shell {
    padding: 0px 10px;
}

.leaderboard-header {
    display: grid;

    grid-template-columns: 80px 1fr 120px 100px;

    gap: 14px;

    padding: 0 18px 12px;

    opacity: .55;

    font-size: .82rem;
    font-weight: 800;

    letter-spacing: .12em;

    text-transform: uppercase;
}

.leaderboard-row {
    position: relative;

    display: grid;

    grid-template-columns: 80px 1fr 120px 100px;

    gap: 14px;

    align-items: center;

    margin-bottom: 0;

    padding: 18px;

    background: rgba(255,255,255,.04);

    border: 0;
    border-bottom: 1px solid rgba(0,0,0,.28);

    border-radius: 0;

    cursor: pointer;

    transition:
        background .12s ease,
        border-bottom-color .12s ease;
}

.leaderboard-row:hover {
    transform: none;

    background: rgba(255,255,255,.08);

    border-bottom-color: rgba(0,0,0,.45);
}

.leaderboard-row::after {
    display: none !important;
}

.lb-pos {
    font-size: 1.1rem;
    font-weight: 900;
}

.lb-player {
    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 1.05rem;
    font-weight: 800;
}

.lb-player a {
    color: inherit;
    text-decoration: none;
}

.lb-total {
    font-size: 1.35rem;
    font-weight: 900;
    text-align: center;
}

.lb-points {
    text-align: center;
    font-weight: 800;
}

.toggle-icon {
    opacity: .6;
    font-size: .85rem;
}

/* =========================================
   SCORECARD EXPAND
========================================= */

.scorecard-expand {
    display: none;
    margin: -2px 0 20px;
}

.scorecard-scroll {
    overflow-x: auto;
    padding-bottom: 6px;
}

/* =========================================
   MODERN SCORECARD
========================================= */

.modern-scorecard {
    width: 100%;
    min-width: 1080px;

    border-collapse: separate;
    border-spacing: 0;

    background: rgba(255,255,255,.04);

    border: 1px solid rgba(255,255,255,.08);

    border-radius: 9px;

    overflow: hidden;
}

.modern-scorecard th,
.modern-scorecard td {
    padding: 12px 10px;
    text-align: center;
}

.modern-scorecard thead th {
    background: rgba(255,255,255,.06);

    font-size: .75rem;

    letter-spacing: .08em;

    text-transform: uppercase;
}

.modern-scorecard tbody td {
    border-top: 1px solid rgba(255,255,255,.06);
}

.modern-scorecard td:first-child,
.modern-scorecard th:first-child {
    position: sticky;

    left: 0;

    background: #151515;

    z-index: 2;

    font-weight: 800;
}

.par-row td {
    opacity: .7;
    font-weight: 700;
}

.score-row td {
    font-weight: 800;
}

.score-total {
    font-size: 1.1rem;
    font-weight: 900;
}

/* =========================================
   SCORE COLORS
========================================= */

.dbleagle {
    background: #ffcc00;
    color: black;
    font-weight: 900;
}

.eagle {
    background: #ffdf6e;
    color: black;
}

.birdie {
    background: #4caf50;
    color: white;
}

.par {
    background: rgba(255,255,255,.04);
}

.bogey {
    background: #3949ab;
    color: white;
}

.dblbogey {
    background: #7e57c2;
    color: white;
}

.tplbogey {
    background: #8e24aa;
    color: white;
}

.qdbogey {
    background: #c62828;
    color: white;
}

.qntbogey {
    background: #6d0000;
    color: white;
}

/* =========================================
   EMPTY MESSAGE
========================================= */

.empty-scorecard-message {
    padding: 30px;
    text-align: center;
    opacity: .6;
}

/* =========================================
   FULL VIEW MODE
========================================= */

.full-scorecard-view .scorecard-expand {
    display: block;
}

.full-scorecard-view .toggle-icon {
    visibility: hidden;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 900px) {

.tournament-controls {
    width: 100%;

    justify-content: flex-start;

    align-items: center;
}

    .leaderboard-header {
        display: none;
    }

    .leaderboard-row {
        grid-template-columns: 60px 1fr 70px;
        padding: 16px;
    }

    .lb-points {
        display: none;
    }

    .lb-total {
        font-size: 1.15rem;
    }

    .tournament-title {
        line-height: 1;
    }

    .tournament-meta {
        font-size: .85rem;
    }
}

/* =========================================
   SCORECARD LEFT LABELS ONLY
========================================= */

.modern-scorecard th:first-child,
.modern-scorecard td:first-child {
    color: #ffffff !important;
    background: #202020 !important;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: 1 !important;
}

/* leave regular PAR numbers alone */
.modern-scorecard .par-row td:not(:first-child) {
    color: inherit !important;
    background: inherit;
    opacity: 1 !important;
    
}.modern-scorecard .par-row td:first-child {
    background: #3a3a3a !important;
    color: #ffffff !important;
}

/* =========================================
   SCRAMBLE TEAM MEMBERS
========================================= */
.team-members {
    margin-top: 4px;
    font-size: .78rem;
    font-weight: 600;
    opacity: .58;
    letter-spacing: .02em;
}

/* =========================================
   TOURNAMENT STATS SHELL
========================================= */

.tournament-stats-shell {
    margin-top: 42px;
    padding: 0px 10px;
}

.tournament-stats-table tbody td:first-child {
    background: #202020 !important;
    color: #ffffff !important;
}

.tournament-stats-table {
    width: 100%;
}

.tournament-stats-table .stats-label-col {
    width: 78px;
    text-align: left;
    white-space: nowrap;
}

.tournament-stats-table th,
.tournament-stats-table td {
    padding-left: 6px;
    padding-right: 6px;
}

.tournament-stats-table td:not(.Eagle):not(.Birdie):not(.Par):not(.Bogey):not(.DoubleBogey):not(.TripleBogey):not(.QuadrupleBogey):not(.QuintuplePlusBogey) {
    background: rgba(0,0,0,.56);
}




