body {
    background: #f4f7fc;
    color: #000000;
    font: 12px/20px sans-serif;
    padding: 0;
    margin: 0;
}

/* ── SCOREBAR ROW (wraps scorebar + champion) ─────────────────────────── */
#scoresbar-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    height: 53px;
    background: #ffffff;
    border-bottom: 1px solid #CCCCCC;
    overflow: hidden;
    position: relative;
}

#scoresbar-row::before,
#scoresbar-row::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 18px;
    pointer-events: none;
}

#scoresbar-row::before {
    left: 0;
    background: linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0));
}

#scoresbar-row::after {
    right: 0;
    background: linear-gradient(to left, #ffffff, rgba(255, 255, 255, 0));
}

/* ── SCOREBAR ─────────────────────────────────────────────────────────── */
#scoresbar {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    flex: 1 1 0;
    min-width: 0;            /* critical — stops flex children overflowing  */
    overflow-x: auto;
    overflow-y: hidden;
    padding: 3px 0 3px 14px;
    height: 53px;
    background: #ffffff;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #b8bec8 #f8fafc;
}

#scoresbar::-webkit-scrollbar {
    display: block;
    height: 6px;
}

#scoresbar::-webkit-scrollbar-track {
    background: #f8fafc;
}

#scoresbar::-webkit-scrollbar-thumb {
    background: #b8bec8;
    border-radius: 999px;
}

/* ── CHAMPION LOGO ────────────────────────────────────────────────────── */
#champion {
    flex: 0 0 auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    overflow: visible;
}

#scoresbar-row #champion {
    flex: 0 0 70px;          /* fixed width, won't grow or shrink           */
    height: 53px;
    padding: 2px 4px;
    background: #ffffff;
    overflow: hidden;
}

.nsl-banner-wrapper #champion {
    flex: 0 0 auto;
    height: 24px;
    padding: 0;
    margin-left: 4px;
    background: transparent !important;
    overflow: visible;
}

#champion img {
    max-height: 48px;
    max-width: 68px;
    width: auto;
    height: auto;
}

.nsl-banner-wrapper #champion img {
    max-height: 22px;
    max-width: none;
}

/* ── INDIVIDUAL GAME BOX ─────────────────────────────────────────────── */
.sb-box {
    flex: 0 0 auto;          /* never grow, never shrink, never wrap        */
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    width: 123px;
    height: 47px;
    padding: 2px 2px 2px 4px;
    border-right: 1px solid #CCCCCC;
    background: #ffffff;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
    transition: background 0.15s, box-shadow 0.15s, border-color 0.15s;
    cursor: pointer;
    overflow: hidden;
}

.sb-box:hover {
    background: #f8fafc;
    box-shadow: inset 0 0 0 1px #c8ccd4;
}

.sb-box-live {
    border-left: 3px solid #CC0000;
    padding-left: 4px;
    background: #fff5f5;
}

/* ── EACH TEAM ROW ───────────────────────────────────────────────────── */
.sb-row {
    display: grid;
    grid-template-columns: 42px 39px 28px;
    align-items: center;
    gap: 2px;
    height: 21px;
    overflow: hidden;
}

.sb-logo {
    width: 42px;
    height: 23px;
    object-fit: contain;
    flex-shrink: 0;
}

.sb-name {
    flex-shrink: 0;
    width: 39px;
    margin-left: 0;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 21px;
    overflow: hidden;
    white-space: nowrap;
    color: #000000;
}

.sb-score {
    margin-left: 0;
    min-width: 28px;
    text-align: right;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 21px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.sb-winner .sb-name,
.sb-winner .sb-score {
    color: #000000 !important;
    font-weight: 600;
}

.sb-loser .sb-name,
.sb-loser .sb-score {
    color: #8b8f97 !important;
}

/* ── GAME STATUS ─────────────────────────────────────────────────────── */
.sb-status {
    position: absolute;
    top: 1px;
    right: 24px;
    display: block;
    text-align: center;
    font-size: 9px;
    line-height: 11px;
    font-weight: 700;
    border-radius: 2px;
    padding: 0 3px;
    letter-spacing: 0.5px;
}

.sb-status-live {
    color: #fff;
    background: #CC0000;
}

.sb-status-final {
    color: #737780;
    background: #eeeeee;
}

.sb-all-scores {
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 38px;
    margin: 4px 8px 4px 4px;
    border: 1px solid #c8ccd4;
    border-radius: 5px;
    color: #111827;
    background: #f8fafc;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0;
}

.sb-all-scores:hover {
    background: #e8edf5;
    box-shadow: inset 0 0 0 1px #b8bec8;
}

/* ── BANNER (PURPLE/COLOUR BAR) ──────────────────────────────────────── */
.nsl-banner-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    padding: 0 15px;
    background-color: #660066;
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
}

.nsl-banner-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

.nsl-banner-wrapper a {
    color: #fff !important;
}

.nsl-banner-logo a {
    color: #fff !important;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.nsl-banner-logo img {
    margin-right: 10px;
}

.nsl-banner-ticker {
    flex-grow: 1;
    margin: 0 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
    min-width: 0;
}

.ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 40px;
    min-width: max-content;
    font-size: 13px;
    color: #FFFFFF;
    font-family: sans-serif;
    line-height: 20px;
    white-space: nowrap;
    animation: ticker-scroll 45s linear infinite;
}

.nsl-banner-ticker:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-item {
    color: #FFFFFF;
    text-decoration: none;
    white-space: nowrap;
}

.ticker-item strong,
.ticker-league {
    color: #FFD700;
    font-weight: bold;
}

@keyframes ticker-scroll {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

.nsl-banner-user {
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
    flex: 0 0 auto;
}

.banner-login-form {
    align-items: center;
    display: flex;
    gap: 6px;
    margin: 0;
}

.nsl-banner-user img,
.user-team-logo,
.user-icon {
    height: 22px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

.user-icon   { height: 18px; }
.user-team-logo { height: 20px; }

/* ── LOGIN INPUTS ────────────────────────────────────────────────────── */
.login-mini {
    margin: 0;
    height: 22px;
    width: 90px;
    font-size: 11px;
    border: 1px solid #ccc;
    padding: 2px 5px;
    border-radius: 3px;
    vertical-align: middle;
}

.login-submit {
    vertical-align: middle;
    height: 18px;
    cursor: pointer;
}

/* ── MENU ────────────────────────────────────────────────────────────── */
#menubar {
    background: #d6d8dd;
    position: relative;
    left: 0;
    color: #111827;
    font: 700 12px/20px 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
    padding: 0 12px;
    width: 100%;
    min-height: 44px;
    border-bottom: 1px solid #b8bec8;
    box-shadow: 0 1px 4px rgba(15,23,42,0.10);
    box-sizing: border-box;
    z-index: 20;
}

.site-menu-toggle {
    display: none;
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 0;
    background: transparent;
    color: #111827;
    font: 800 12px/18px 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
    text-align: left;
    text-transform: uppercase;
    cursor: pointer;
}

.site-menu-toggle::after {
    content: "+";
    float: right;
    font-size: 16px;
    line-height: 18px;
}

#menubar.menu-expanded .site-menu-toggle::after {
    content: "-";
}

.third-level-menu {
    position: absolute;
    top: -8px;
    left: 100%;
    width: 180px;
    list-style: none;
    padding: 8px;
    margin: 0;
    display: none;
    z-index: 40;
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 6px;
    box-shadow: 0 14px 32px rgba(15,23,42,0.18);
}

.third-level-menu > li {
    min-height: 34px;
    background: transparent;
    border-radius: 4px;
}
.third-level-menu > li:hover { background: #f1f5f9; }

.second-level-menu {
    position: absolute;
    top: 44px;
    left: 0;
    width: 190px;
    list-style: none;
    padding: 8px;
    margin: 0;
    display: none;
    z-index: 35;
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 14px 32px rgba(15,23,42,0.18);
}

.second-level-menu > li {
    position: relative;
    min-height: 34px;
    background: transparent;
    border-radius: 4px;
}
.second-level-menu > li:hover { background: #f1f5f9; }

.top-level-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: stretch;
    gap: 2px;
    min-height: 44px;
    overflow: visible;
}

.top-level-menu > li {
    position: relative;
    float: none;
    min-height: 44px;
    background: transparent;
}
.top-level-menu > li:hover { background: #c8ccd4; }

.top-level-menu li:hover > ul,
.top-level-menu li:focus-within > ul,
.top-level-menu li.menu-open > ul {
    display: block;
}

.top-level-menu a {
    color: #111827;
    text-decoration: none;
    padding: 12px 13px;
    display: flex;
    align-items: center;
    min-height: 44px;
    box-sizing: border-box;
    white-space: nowrap;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.top-level-menu > li > a {
    text-transform: uppercase;
    letter-spacing: 0;
}

.second-level-menu a,
.third-level-menu a {
    min-height: 34px;
    padding: 7px 10px;
    color: #111827;
    font-weight: 600;
    line-height: 18px;
    text-transform: none;
}

.top-level-menu a:hover,
.top-level-menu a:focus {
    color: #8b0000;
    outline: none;
}

.second-level-menu a:hover,
.third-level-menu a:hover,
.second-level-menu a:focus,
.third-level-menu a:focus {
    color: #b91c1c;
}

#playersearchblock {
    position: absolute;
    right: 0;
    top: 0;
    margin: 10px;
    width: 160px;
    text-align: right;
}

@media only screen and (max-width: 960px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .nsl-banner-wrapper {
        align-items: center;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 7px 10px;
        height: auto;
        min-height: 50px;
        padding: 7px 8px;
        width: 100%;
    }

    .nsl-banner-logo {
        gap: 8px;
        overflow: hidden;
    }

    .nsl-banner-logo a {
        font-size: 12px;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nsl-banner-logo img {
        flex: 0 0 auto;
        height: 18px;
        margin-right: 6px;
    }

    .nsl-banner-wrapper #champion {
        display: none;
    }

    .nsl-banner-user {
        gap: 8px;
        justify-self: end;
        min-width: 0;
    }

    .user-icon {
        height: 17px;
    }

    .user-team-logo {
        height: 18px;
        max-width: 34px;
    }

    .banner-login-form {
        display: grid;
        gap: 4px;
        grid-template-columns: minmax(0, 66px) minmax(0, 66px) 22px;
        max-width: min(100%, 170px);
    }

    .login-mini {
        box-sizing: border-box;
        height: 24px;
        min-width: 0;
        width: 100%;
    }

    .login-submit {
        height: 18px;
        width: 18px;
    }

    .nsl-banner-ticker {
        grid-column: 1 / -1;
        margin: 0;
        min-height: 20px;
        width: 100%;
    }

    .ticker-track {
        font-size: 12px;
        gap: 28px;
        line-height: 18px;
    }

    #menubar {
        padding: 0;
        overflow: visible;
        width: 100%;
        text-align: left;
    }

    .site-menu-toggle {
        display: block;
    }

    .top-level-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        min-height: 0;
    }

    #menubar.menu-expanded .top-level-menu {
        display: flex;
    }

    .top-level-menu > li {
        min-height: 0;
        border-top: 1px solid rgba(15,23,42,0.08);
    }

    .top-level-menu a {
        min-height: 38px;
        padding-left: 11px;
        padding-right: 11px;
    }

    .second-level-menu,
    .third-level-menu {
        position: static;
        width: auto;
        margin: 0 8px 8px 18px;
        border-radius: 6px;
        box-shadow: none;
    }

    #playersearchblock { display: none; }
}

/* ── CONTENT AREA ────────────────────────────────────────────────────── */
#content {
    z-index: 0;
    background: #FFFFFF;
    position: relative;
    top: 0;
    margin: auto;
    max-width: 1278px;
    padding: 10px;
    box-sizing: border-box;
}

/* ── Responsive breakpoints ────────────────────────────────────────────── */
@media screen and (max-width: 1024px) {
    #content { max-width: 100%; padding: 8px; }
    .contact-page { max-width: 100%; }
}

@media screen and (max-width: 768px) {
    #content { max-width: 100%; padding: 6px; }
    .contact-page { max-width: 100%; padding: 10px 8px 20px; }
    .team-navigation { flex-direction: column; align-items: flex-start; }
    .team-nav-jump { width: 100%; margin-top: 10px; }
}

/* ── CONTENT BLOCKS ──────────────────────────────────────────────────── */
#powblock {
    width: 480px;
    float: left;
    position: relative;
    margin-top: 10px;
    margin-left: 0;
    padding: 0;
}

#leadimage {
    width: 480px;
    height: 250px;
    margin: 0;
    overflow: hidden;
    position: relative;
}

#leadimage span {
    z-index: 1;
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    background: black;
    color: white;
    font-size: 12pt;
    font-weight: normal;
}

#leadimage img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.transparent {
    opacity: 0.75;
}

#leaguenewsblock {
    width: 450px;
    height: 250px;
    margin-top: 10px;
    margin-left: 10px;
    float: left;
    position: relative;
    padding: 0;
    overflow: hidden;
}

#leaguenewsblock a {
    text-decoration: none;
    color: #000000;
}

#leaguenewsblock h1 {
    border: none;
    margin: 0;
    padding: 2px;
    text-align: left;
    font-size: 12pt;
    font-weight: bold;
}

#leaguenewsblock h2 {
    border: none;
    margin: 0 0 10px 0;
    padding: 2px;
    text-align: left;
    font-size: 10pt;
    font-weight: bold;
}

#leaguenewsblock p {
    text-align: justify;
    margin: 0 0 10px 0;
    font-size: 10pt;
}

#rumorMillBlock2 {
    width: 100%;
    height: 40px;
    margin-top: 10px;
    float: left;
    position: relative;
    background: #FFFFFF;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
}

#transactionsblock {
    width: 480px;
    height: 320px;
    margin-top: 10px;
    margin-left: 0;
    float: left;
    position: relative;
    padding: 0;
    overflow-y: auto;
}

#draftboardblock {
    width: 480px;
    height: 320px;
    margin-top: 10px;
    margin-left: 0;
    float: left;
    position: relative;
    padding: 0;
    overflow-y: auto;
}

#pollblock {
    width: 450px;
    height: 320px;
    margin-top: 10px;
    margin-left: 10px;
    float: left;
    position: relative;
    padding: 0;
    overflow-y: auto;
    box-sizing: border-box;
}

#nslheadlinesblock {
    width: 480px;
    height: 300px;
    margin-top: 10px;
    margin-left: 0;
    float: left;
    position: relative;
    padding: 0;
    overflow: hidden;
}

#nslpremiumblock {
    width: 450px;
    height: 320px;
    margin-top: 10px;
    margin-left: 10px;
    float: left;
    position: relative;
    padding: 0;
    overflow: hidden;
}

#todaygamesblock h1, #upcominggamesblock h1, #playoffgamesblock h1 {
    width: 100%;
    margin: 0 0 10px 0;
    padding: 0;
    text-align: left;
    clear: both;
    box-sizing: border-box;
}

.game-box {
    transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
    cursor: pointer;
    float: left;
    margin-bottom: 4px;
}

.game-box:hover {
    background: #f0f4ff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transform: scale(1.02);
}

#todaygamesblock, #upcominggamesblock, #playoffgamesblock {
    width: 460px;
    height: 150px;
    margin-top: 5px;
    margin-left: 10px;
    float: left;
    position: relative;
    padding: 0;
    overflow: hidden;
}

#todaygames-content {
    width: 100%;
}

#sideimage {
    width: 200px;
    float: left;
    position: relative;
    margin-top: 10px;
    margin-left: 10px;
    padding: 0 5px 0 10px;
}

#siderightimage {
    width: 200px;
    float: right;
    position: relative;
    margin-top: 10px;
    margin-left: 10px;
    padding: 0 10px 0 5px;
}

/* ── TYPOGRAPHY & LINKS ──────────────────────────────────────────────── */

/* ── TEAM SELECTION LISTS ───────────────────────────────────────────── */
.team-selection-teambar, .roster-teambar, .clubhouse-teambar, .statistics-teambar, .ratings-teambar,
.ratingschange-teambar, .rosterfreeze-teambar, .salaries-teambar, .salaryhistory-teambar,
.schedule-teambar, .statisticsnba-teambar, .transactions-teambar, .depthchart-teambar,
.indepth-teambar, .pods-teambar, .news-teambar, .ranking-header, .teams-header, .standings-header {
    background: linear-gradient(135deg, #172554 0%, #1e3a8a 50%, #1e40af 100%) !important;
    padding: 10px 16px;
    border-radius: 8px;
    color: #fff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.standings-header select, .teams-header select, .standings-header .jump-menu-wrap,
.teams-header .jump-menu-wrap {
    margin-left: auto;
}

@media screen and (max-width: 768px) {
    .standings-header, .teams-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .standings-header select, .teams-header select,
    .standings-header .jump-menu-wrap, .teams-header .jump-menu-wrap {
        margin-left: 0;
        width: 100%;
    }
}

.team-selection-teambar h1, .roster-teambar h1, .clubhouse-teambar h1, .statistics-teambar h1, .ratings-teambar h1,
.ratingschange-teambar h1, .rosterfreeze-teambar h1, .salaries-teambar h1, .salaryhistory-teambar h1,
.schedule-teambar h1, .statisticsnba-teambar h1, .transactions-teambar h1, .depthchart-teambar h1,
.indepth-teambar h1, .pods-teambar h1, .news-teambar h1, .ranking-header h1, .teams-header h1, .standings-header h1 {
    margin: 0 !important;
    font-size: 18px;
    font-weight: 700;
    background: none !important;
    height: auto !important;
    padding: 0 !important;
}

/* ── PODS & NEWS LISTS ───────────────────────────────────────────────── */
.pods-card, .news-card {
    background: #fff;
    border: 1px solid #dde3ec;
    border-radius: 8px;
    padding: 22px 24px;
    margin-bottom: 16px;
}

.pods-list, .news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media screen and (max-width: 768px) {
    .pods-list, .news-list {
        grid-template-columns: 1fr;
    }
}

.pods-list li, .news-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border: 1px solid #eef0f4;
    border-radius: 8px;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.pods-list li:hover, .news-list li:hover {
    background-color: #f8fafc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.pods-list li img, .news-list li img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.pods-list li a, .news-list li a {
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    flex: 1;
    line-height: 1.4;
    display: block;
}

.pods-list li a:hover, .news-list li a:hover {
    text-decoration: underline;
}

.news-date, .pods-date {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

.pods-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.pods-type-badge {
    display: inline-block;
    padding: 4px 8px;
    background-color: #f1f5f9;
    border-radius: 4px;
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    flex-shrink: 0;
}

.team-selection-list, .roster-list, .clubhouse-list, .statistics-list, .ratings-list, 
.ratingschange-list, .rosterfreeze-list, .salaries-list, .salaryhistory-list, 
.schedule-list, .statisticsnba-list, .transactions-list, .depthchart-list, 
.indepth-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
    justify-content: flex-start;
}

@media screen and (min-width: 768px) {
    .team-selection-list {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 16px;
    }
}

@media screen and (max-width: 480px) {
    .team-selection-list, .roster-list, .clubhouse-list, .statistics-list, .ratings-list, 
    .ratingschange-list, .rosterfreeze-list, .salaries-list, .salaryhistory-list, 
    .schedule-list, .statisticsnba-list, .transactions-list, .depthchart-list, 
    .indepth-list {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 8px;
    }
}

.team-selection-list li, .roster-list li, .clubhouse-list li, .statistics-list li, 
.ratings-list li, .ratingschange-list li, .rosterfreeze-list li, .salaries-list li, 
.salaryhistory-list li, .schedule-list li, .statisticsnba-list li, .transactions-list li, 
.depthchart-list li, .indepth-list li {
    display: inline-block;
}

.team-selection-list li a, .roster-list li a, .clubhouse-list li a, .statistics-list li a, 
.ratings-list li a, .ratingschange-list li a, .rosterfreeze-list li a, .salaries-list li a, 
.salaryhistory-list li a, .schedule-list li a, .statisticsnba-list li a, .transactions-list li a, 
.depthchart-list li a, .indepth-list li a {
    display: inline-block;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.team-selection-list li a:hover, .roster-list li a:hover, .clubhouse-list li a:hover, 
.statistics-list li a:hover, .ratings-list li a:hover, .ratingschange-list li a:hover, 
.rosterfreeze-list li a:hover, .salaries-list li a:hover, .salaryhistory-list li a:hover, 
.schedule-list li a:hover, .statisticsnba-list li a:hover, .transactions-list li a:hover, 
.depthchart-list li a:hover, .indepth-list li a:hover {
    background-color: #f1f5f9;
}

.team-selection-list li img, .roster-list li img, .clubhouse-list li img, .statistics-list li img, 
.ratings-list li img, .ratingschange-list li img, .rosterfreeze-list li img, .salaries-list li img, 
.salaryhistory-list li img, .schedule-list li img, .statisticsnba-list li img, .transactions-list li img, 
.depthchart-list li img, .indepth-list li img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: transform 0.2s ease-in-out;
}

.team-selection-list li img:hover, .roster-list li img:hover, .clubhouse-list li img:hover, 
.statistics-list li img:hover, .ratings-list li img:hover, .ratingschange-list li img:hover, 
.rosterfreeze-list li img:hover, .salaries-list li img:hover, .salaryhistory-list li img:hover, 
.schedule-list li img:hover, .statisticsnba-list li img:hover, .transactions-list li img:hover, 
.depthchart-list li img:hover, .indepth-list li img:hover {
    transform: scale(1.15);
}

a, a:visited { color: #000000; }

.bold { text-decoration: none; font-weight: bold; }
.head { color: #000000; font-weight: normal; text-decoration: none; }

h1 { height: 20px; padding: 2px; margin: 0; color: #FFFFFF; font-weight: bold; font-size: 18px; background-color: transparent; }

/* Team page headers - override global h1 background */
.statistics-teambar h1,
.roster-teambar h1,
.schedule-teambar h1,
.salaries-teambar h1,
.salaryhistory-teambar h1,
.ratingslive-teambar h1,
.rosterfreeze-teambar h1,
.clubhouse-teambar h1,
.demographics-header h1,
.floorunits-teambar h1,
.indepth-teambar h1,
.teams-header h1,
.standings-header h1 { background: transparent; }

/* Common teambar class for all team pages */
.teambar { display:flex; align-items:center; gap:10px; padding:10px 16px; border-radius:8px; color:#fff; margin-bottom:16px; }
.teambar img { height:28px; }
.teambar h1 { margin:0; font-size:18px; font-weight:700; background: transparent; }
.teambar-jump { margin-left:auto; display:block; }
.teambar-jump select { display:block; }

/* Draft page header */
.draft-header { background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); color: #fff; padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; }
.draft-header h1 { margin: 0; font-size: 20px; font-weight: 700; background: transparent; }

/* Admin page header */
.admin-header { background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%); color: #fff; padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; }
.admin-header h1 { margin: 0; font-size: 20px; font-weight: 700; background: transparent; }

h2 { font-size: 12pt; color: #000000; font-weight: bold; background-color: transparent; }
h3 { font-size: 14pt; }

/* ── TABLES ──────────────────────────────────────────────────────────── */
table { overflow: hidden; width: 100%; border-collapse: collapse; margin: 10px 0; }
td    { vertical-align: top; overflow: hidden;}

td.alt        { background-color: #f2f2f2; }
th            { text-align: left; font-weight: bold; color: #000000; padding: 10px 12px; background-color: #e8e8e8; }
td.forum      { background-color: #efede4; padding: 5px; vertical-align: middle; }
td.forumAlt   { background-color: #f4f3ee; padding: 5px; vertical-align: middle; }
td.forumSpacer { background-color: transparent; }

/* Site-standard responsive data tables emitted by printTableResponsive(). */
.bs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #d7e0eb !important;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    color: #172033;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 12px;
    line-height: 1.35;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.bs-table thead tr,
.bs-table th {
    background: #edf3fa !important;
    color: #17365f !important;
}

.bs-table th {
    padding: 9px 10px !important;
    border-bottom: 1px solid #d7e0eb;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.bs-table th[role="button"] {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 20px !important;
}

.bs-table th[role="button"]::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #7890ad;
    opacity: .55;
    transform: translateY(-45%);
}

.bs-table th[role="button"][aria-sort="ascending"]::after {
    border-top: 0;
    border-bottom: 5px solid #17365f;
    opacity: 1;
}

.bs-table th[role="button"][aria-sort="descending"]::after {
    border-top-color: #17365f;
    opacity: 1;
}

.bs-table td {
    padding: 8px 10px !important;
    border-bottom: 1px solid #edf1f6;
    color: #172033;
    background: #ffffff;
    vertical-align: middle;
}

.bs-table td.alt {
    background: #ffffff !important;
}

.bs-table tbody tr:hover td {
    background: #f5f8fc !important;
}

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

.bs-table a {
    color: #064f8f;
    font-weight: 700;
    text-decoration: none;
}

.bs-table a:hover,
.bs-table a:focus {
    color: #0b2f57;
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
    table:not(.bs-table):not(.contact-table) { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
    td, th { padding: 6px 8px; font-size: 11px; }
    .bs-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    .bs-table th,
    .bs-table td {
        padding: 7px 8px !important;
        font-size: 11px;
    }
}

/* ── MISC ────────────────────────────────────────────────────────────── */
img { padding: 0; margin: 0; }

input.submit      { width: 50px; font-size: 10px; font-weight: bold; margin: 2px; }

/* Gold Gradient Styles for Admin */
.gold-gradient-btn {
    background: 
        linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 50%),
        linear-gradient(135deg, 
            #2a1e06 0%, 
            #5e4410 30%, 
            #f7e1a0 45%, 
            #ffce45 50%, 
            #5e4410 70%, 
            #1a1204 100%
        ) !important;
    color: #fff !important;
    text-decoration: none;
    border: 1px solid #947125 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255,255,255,0.2);
    width: auto !important;
}

.gold-gradient-header {
    background: 
        linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 50%),
        linear-gradient(135deg, 
            #2a1e06 0%, 
            #5e4410 30%, 
            #f7e1a0 45%, 
            #ffce45 50%, 
            #5e4410 70%, 
            #1a1204 100%
        ) !important;
    color: #fff !important;
    padding: 10px 16px;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255,255,255,0.2);
}

/* ── ADMIN BUTTONS (Navy + Gold Theme) ─────────────────────────────────── */
.admin-btn {
    padding: 7px 18px;
    background: #0f172a;
    color: #ffce45;
    border: 1px solid #ffce45;
    border-radius: 5px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.admin-btn:hover {
    background: #ffce45;
    color: #0f172a;
}

.admin-btn-sec {
    background: #6b7280;
    color: #fff;
    border: 1px solid #6b7280;
}

.admin-btn-sec:hover {
    background: #4b5563;
}

.admin-btn-sm {
    padding: 4px 10px;
    font-size: 12px;
    background: #0f172a;
    color: #ffce45;
    border: 1px solid #ffce45;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.admin-btn-sm:hover {
    background: #ffce45;
    color: #0f172a;
}

.admin-btn-del {
    background: #dc2626;
    color: #fff;
    border: 1px solid #dc2626;
}

.admin-btn-del:hover {
    background: #b91c1c;
}

/* ── ADMIN TABLE HEADER (Navy + Gold) ─────────────────────────────────── */
.admin-table-header {
    background: #0a0f1a;
    border-bottom: 3px solid #ffce45;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 12px 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

input.login       { height: 16px; width: 80px; font-size: 10px; border-style: none; background-color: #FFFFFF; color: #CCCCCC; padding: 1px; margin: 2px; vertical-align: middle; }
input.submitLogin { height: 16px; border-style: solid; border-width: 0; padding-left: 0; margin: 0; }

a.scoreBox { text-decoration: none; font-weight: bold; color: #000000; }

div.post       { width: 620px; overflow: hidden; }
div.forumQuote { font-style: italic; border: 1px solid #000000; padding: 5px; }

.admin-link {
    background: none;
    border: none;
    color: #000;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font-size: inherit;
}

.panel, .flip {
    padding: 5px;
    text-align: left;
    background-color: #EEE8EB;
    border: 1px solid #c3c3c3;
}

.panel { display: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   CONTACT PAGE  (contact.php)
   ═══════════════════════════════════════════════════════════════════════════ */

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

/* ── Override #content so the table wrapper can scroll ───────────────── */
.contact-page-wrapper #content {
    overflow: visible;
}

/* ── Page shell ──────────────────────────────────────────────────────── */
.contact-page {
    max-width: 1278px;
    margin: 0 auto;
    padding: 12px 12px 24px;
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
}

/* ── Hero header ─────────────────────────────────────────────────────── */
.contact-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px 16px;
    margin-bottom: 16px;
    background: #0b1120;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 90% 50%, rgba(99,102,241,.18) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 10% 80%, rgba(16,185,129,.10) 0%, transparent 60%);
    pointer-events: none;
}

.contact-hero-text {
    position: relative;
}

.contact-hero-eyebrow {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #818cf8;
    margin-bottom: 6px;
}

.contact-hero h2 {
    margin: 0;
    padding: 0;
    font-size: 26px;
    font-weight: 600;
    color: #f1f5f9;
    background: none;
    letter-spacing: -.02em;
    line-height: 1.1;
}

.contact-hero-count {
    position: relative;
    font-family: 'DM Mono', monospace;
    font-size: 38px;
    font-weight: 500;
    color: rgba(255,255,255,.08);
    line-height: 1;
    letter-spacing: -.04em;
    flex-shrink: 0;
}

/* ── Card ────────────────────────────────────────────────────────────── */
.contact-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

/* ── Scrollable table wrapper ────────────────────────────────────────── */
.contact-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background:
        linear-gradient(to right, #fff 0%, transparent 30px) left / 30px 100% no-repeat,
        linear-gradient(to left, #f1f5f9 0%, transparent 40px) right / 40px 100% no-repeat;
    background-attachment: local, scroll;
}

/* ── Contact table ───────────────────────────────────────────────────── */
.contact-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    font-size: 12.5px;
    table-layout: fixed;
}

/* Column widths */
.contact-table th:nth-child(1),
.contact-table td:nth-child(1) { width: 52px; }   /* logo */
.contact-table th:nth-child(2),
.contact-table td:nth-child(2) { width: auto; }    /* GM name */
.contact-table th:nth-child(3),
.contact-table td:nth-child(3) { width: auto; }    /* email */
.contact-table th:nth-child(4),
.contact-table td:nth-child(4) { width: auto; }    /* discord */
.contact-table th:nth-child(5),
.contact-table td:nth-child(5) { width: 90px; }   /* status */
.contact-table th:nth-child(6),
.contact-table td:nth-child(6) { width: 60px; }   /* gm pts */
.contact-table th:nth-child(7),
.contact-table td:nth-child(7) { width: 80px; }   /* time diff */
.contact-table th:nth-child(8),
.contact-table td:nth-child(8) { width: auto; }   /* location */

.contact-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 10px 14px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
}

.contact-table td:nth-child(8) {
    white-space: normal;
    word-break: break-word;
}

.contact-table thead tr {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.contact-table th {
    padding: 10px 14px;
    text-align: left;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #64748b;
    background: #f8fafc;
}

.contact-table tbody tr:last-child td { border-bottom: none; }
.contact-table tbody tr { transition: background .12s; }
.contact-table tbody tr:hover td { background: #f8faff; }

/* ── Team logo ───────────────────────────────────────────────────────── */
.team-logo-link {
    display: inline-block;
    line-height: 0;
}

.team-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    vertical-align: middle;
    transition: opacity .15s;
}

.team-logo-link:hover .team-logo { opacity: .75; }

/* ── GM name link ────────────────────────────────────────────────────── */
a.gm-link {
    color: #3b5bdb;
    text-decoration: none;
    font-weight: 500;
}

a.gm-link:hover { text-decoration: underline; }

/* ── Email link ──────────────────────────────────────────────────────── */
a.email-link {
    color: #0369a1;
    text-decoration: none;
    font-size: 12px;
}

a.email-link:hover { text-decoration: underline; }

/* ── Discord tag ─────────────────────────────────────────────────────── */
.discord-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #5865f2;
    font-size: 12px;
}

.discord-tag::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #5865f2;
    border-radius: 2px;
    flex-shrink: 0;
}

/* ── Status badge ────────────────────────────────────────────────────── */
.contact-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.contact-status-full         { background: #dcfce7; color: #15803d; }
.contact-status-probationary { background: #fef3c7; color: #92400e; }

/* ── GM Points ───────────────────────────────────────────────────────── */
.contact-gm-pts {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    color: #0f172a;
}

/* ── Muted placeholder ───────────────────────────────────────────────── */
.contact-muted { color: #cbd5e1; }

/* ── Notice footer ───────────────────────────────────────────────────── */
.contact-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    font-size: 12px;
    color: #64748b;
}

.contact-notice a {
    color: #3b5bdb;
    font-weight: 600;
    text-decoration: none;
}

.contact-notice a:hover { text-decoration: underline; }

/* ── Empty state ─────────────────────────────────────────────────────── */
.contact-empty {
    padding: 40px 24px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

.contact-mobile-list {
    display: none;
}

@media screen and (max-width: 768px) {
    .contact-card {
        background: transparent;
        border: none;
        box-shadow: none;
        overflow: visible;
    }

    .contact-table-wrap {
        display: none;
    }

    .contact-mobile-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact-mobile-card {
        display: grid;
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 12px;
        padding: 14px;
        background: #ffffff;
        border: 1px solid #dbe5ee;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(15,23,42,.06);
    }

    .contact-mobile-logo {
        display: flex;
        justify-content: center;
    }

    .contact-mobile-logo .team-logo {
        width: 52px;
        height: 52px;
    }

    .contact-mobile-main {
        min-width: 0;
    }

    .contact-mobile-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 6px;
    }

    .contact-mobile-name {
        color: #1d4ed8;
        font-size: 14px;
        font-weight: 800;
        text-decoration: none;
        overflow-wrap: anywhere;
    }

    .contact-mobile-email {
        display: block;
        color: #0369a1;
        font-size: 12px;
        font-weight: 600;
        text-decoration: none;
        overflow-wrap: anywhere;
        margin-bottom: 8px;
    }

    .contact-mobile-meta {
        display: grid;
        gap: 4px;
        color: #475569;
        font-size: 11px;
        line-height: 1.35;
    }

    .contact-mobile-meta strong {
        color: #64748b;
        font-weight: 800;
        text-transform: uppercase;
        font-size: 10px;
    }

    .contact-status-badge {
        flex-shrink: 0;
    }
}

/* ── LIVE RECAP V2 ───────────────────────────────────────────────────── */
.live-recap {
  margin-top: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
  margin-top: 10px;
  margin-bottom: 20px;
  border-top: 2px solid #e2e8f0;
  padding-top: 10px;

}
.live-recap-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #0b2440, #123a63);
  color: #fff;
}

.live-recap-head h2 {
  margin: 0;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ffffff;
}

.live-recap-sub {
  font-size: 11px;
  color: #b9d6ff;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.live-feed {
  list-style: none;
  margin: 0;
  padding: 12px 14px 6px;
}
.live-feed li {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 10px;
  padding: 8px 2px;
  border-bottom: 1px dashed #e5e7eb;
}
.live-feed li:last-child { border-bottom: none; padding-bottom: 12px; }
.live-stamp {
  font-size: 11px;
  color: #64748b;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 700;
}
.live-line {
  font-size: 13px;
  color: #0f172a;
  line-height: 1.25;
}
.live-pulses {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 14px;
}
.live-chip {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1e40af;
}
.live-chip.red { border-color:#fecaca; background:#fef2f2; color:#991b1b; }
.live-chip.green { border-color:#bbf7d0; background:#f0fdf4; color:#166534; }
.live-chip.slate { border-color:#e2e8f0; background:#f8fafc; color:#334155; }

@media (max-width: 640px) {
  .live-feed li { grid-template-columns: 70px 1fr; }
  .live-line { font-size: 12px; }
}

.recap-insight {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  margin-top: 6px;
}

.recap-insight h2 {
  font-size: 12px;
  color: #1e40af;
  margin-bottom: 6px;
}

.recap-insight ul {
  margin: 0;
  padding-left: 18px;
}

.recap-insight li {
  font-size: 13px;
  margin-bottom: 6px;
}

.recap-summary {
  border-left: 4px solid #1d4ed8;
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 6px;
}


.recap-summary p {
  margin: 0 0 6px;
  font-size: 13px;
  color: #0f172a;
  line-height: 1.3;
}

.recap-summary p strong {
  font-weight: 700;
}

.recap-summary p:last-child {
  margin-bottom: 0;
}

.recap-stats-grid {
  margin-top: 20px;
  margin-bottom: 16px;
}

/* 🔹 Main page heading */
.recap-content h1 {
  margin-bottom: 14px;
}

/* 🔹 Live Recap header already strong (blue bar) ✅ */

/* 🔹 Insight header softer */
.recap-insight h2 {
  font-size: 12px;
  color: #1e40af;
  margin-bottom: 6px;
}

.recap-stat-card {
  padding: 14px 12px;
}

.recap-stat-label {
  margin-bottom: 6px;
}

/* ── TEAM NAVIGATION ───────────────────────────────────────────────────── */
.team-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.team-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  font-size: 12px;
}

.team-nav-jump {
  flex-shrink: 0;
}

.team-nav-link {
  text-decoration: none;
  color: #1e293b;
  transition: color 0.2s ease;
}

.team-nav-link:hover {
  color: #2563eb;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .team-navigation {
    flex-direction: column;
    align-items: flex-start;
  }
  .team-nav-jump {
    width: 100%;
  }
}

/* ── MOBILE NAVIGATION TOGGLE (shared) ─────────────────────────────────── */
.mobile-nav { display:flex; flex-direction:column; gap:8px; padding:12px 0; margin:20px 0; }
.mobile-nav-toggle { display:none; cursor:pointer; font-size:14px; color:#fff; padding:10px 16px; text-align:center; background:#1a2740; border-radius:6px; font-weight:600; }
.mobile-nav-toggle:hover { background:#2d3e5e; }
.mobile-nav-links { display:flex; gap:8px; flex-wrap:wrap; }
.mobile-nav-links a { padding:8px 16px; background-color:#f0f0f0; border:1px solid #ccc; border-radius:4px; text-decoration:none; color:#333; font-weight:500; transition:background-color 0.2s,border-color 0.2s; white-space:nowrap; }
.mobile-nav-links a:hover { background-color:#e0e0e0; border-color:#999; }
.mobile-nav-links a.active { color:#fff; }
.mobile-nav > span { border-left:1px solid #ccc; margin:0 5px; }
@media (max-width:768px) {
    .mobile-nav-toggle { display:block; }
    .mobile-nav-links { display:none; flex-direction:column; gap:4px; }
    .mobile-nav-links.show { display:flex; }
    .mobile-nav-links a { width:100%; text-align:left; padding:10px 12px; border:none; border-bottom:1px solid #eef0f4; border-radius:0; }
    .mobile-nav-links a:last-child { border-bottom:none; }
    .mobile-nav > span { display:none; }
}

/* ── HOMEPAGE RESPONSIVE LAYOUT ───────────────────────────────────────── */
.home-page #content {
    width: min(100%, 1278px);
    padding: 12px;
    overflow: hidden;
}

.home-page #content > a > img,
.home-page #content > img {
    max-width: 100%;
    height: auto !important;
}

.home-page .playoff-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    width: min(100%, 1020px);
    margin: 4px auto 12px;
    padding: 4px;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 6px;
    background:
        linear-gradient(135deg, #0f172a, #1e293b) padding-box,
        linear-gradient(135deg, #b91c1c, #f8fafc 46%, #2563eb) border-box;
    box-shadow:
        0 9px 22px rgba(15, 23, 42, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.85) inset;
    box-sizing: border-box;
}

.home-page .playoff-hero img {
    display: block;
    width: 100%;
    max-width: 960px;
    height: auto;
    border-radius: 4px;
    filter: saturate(1.12) contrast(1.08);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.18),
        0 7px 18px rgba(0, 0, 0, 0.24);
}

.home-page #powblock,
.home-page #leaguenewsblock,
.home-page #transactionsblock,
.home-page #draftboardblock,
.home-page #pollblock,
.home-page #nslheadlinesblock,
.home-page #nslpremiumblock,
.home-page #todaygamesblock,
.home-page #upcominggamesblock,
.home-page #playoffgamesblock {
    width: calc(50% - 6px);
    margin: 12px 0 0 0;
    box-sizing: border-box;
}

.home-page #powblock,
.home-page #transactionsblock,
.home-page #draftboardblock,
.home-page #nslheadlinesblock,
.home-page #todaygamesblock,
.home-page #playoffgamesblock {
    clear: left;
}

.home-page #leaguenewsblock,
.home-page #pollblock,
.home-page #nslpremiumblock,
.home-page #upcominggamesblock {
    float: right;
    clear: none;
}

.home-page #leadimage {
    width: 100%;
    aspect-ratio: 16 / 8.35;
    height: auto;
    min-height: 220px;
}

.home-page #leadimage img {
    height: 100% !important;
}

.home-page #leaguenewsblock,
.home-page #transactionsblock,
.home-page #draftboardblock,
.home-page #pollblock,
.home-page #nslpremiumblock {
    height: 320px;
}

.home-page #nslheadlinesblock {
    height: 300px;
}

.home-page #todaygamesblock,
.home-page #upcominggamesblock,
.home-page #playoffgamesblock {
    height: auto;
    min-height: 150px;
    overflow: visible;
}

.home-page #todaygames-content {
    overflow: hidden;
}

.home-page .game-box {
    width: calc(50% - 4px) !important;
    max-width: 310px;
    min-width: 0;
    box-sizing: border-box;
}

.home-page #rumorMillBlock2 {
    clear: both;
    height: auto;
    min-height: 40px;
}

.home-page .home-gotw-block,
.home-page .home-watch-block {
    float: none;
    clear: none;
    width: 100%;
    margin: 12px 0 0;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    box-sizing: border-box;
    overflow: hidden;
}

.home-page .home-gotw-block,
.home-page .home-watch-block {
    height: 320px;
    overflow-y: auto;
}

.home-page .home-gotw-block h1,
.home-page .home-watch-block h1 {
    position: sticky;
    top: 0;
    z-index: 2;
    height: auto;
    min-height: 0;
    width: 100%;
    margin: 0 0 14px;
    padding: 10px 14px 10px 20px;
    background: linear-gradient(90deg, #111827, #1f2937);
    border-left: 0;
    border-bottom: 2px solid #b91c1c;
    border-radius: 5px;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
    color: #ffffff;
    font-size: 13px;
    line-height: 18px;
    letter-spacing: 0;
    box-sizing: border-box;
}

.home-page .home-gotw-block table {
    margin: 0 0 10px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    background: #ffffff;
    box-sizing: border-box;
}

.home-page .home-gotw-block td {
    padding: 6px 8px;
}

.home-page .home-watch-block p {
    margin: 0;
    padding: 8px 14px !important;
    border-top: 1px solid #eef2f7;
    line-height: 18px;
}

.home-page .home-watch-block h1 + p {
    border-top: 0;
}

.home-page .home-watch-block a,
.home-page .home-watch-block a:visited,
.home-page .home-gotw-block a,
.home-page .home-gotw-block a:visited {
    color: #1d4ed8;
}

.home-page .home-watch-block a:hover,
.home-page .home-gotw-block a:hover {
    color: #b91c1c;
    text-decoration: underline !important;
}

@media screen and (max-width: 900px) {
    .home-page #content {
        padding: 10px;
    }

    .home-page #powblock,
    .home-page #leaguenewsblock,
    .home-page #transactionsblock,
    .home-page #draftboardblock,
    .home-page #pollblock,
    .home-page #nslheadlinesblock,
    .home-page #nslpremiumblock,
    .home-page #todaygamesblock,
    .home-page #upcominggamesblock,
    .home-page #playoffgamesblock {
        float: none;
        clear: both;
        width: 100%;
        margin-left: 0;
    }

    .home-page #leadimage {
        min-height: 0;
    }

    .home-page #leaguenewsblock,
    .home-page #transactionsblock,
    .home-page #draftboardblock,
    .home-page #pollblock,
    .home-page #nslheadlinesblock,
    .home-page #nslpremiumblock {
        height: auto;
        max-height: none;
        overflow: visible;
    }
}

@media screen and (max-width: 560px) {
    .home-page #content {
        padding: 8px;
    }

    .home-page #content h1 {
        font-size: 15px;
        line-height: 20px;
    }

    .home-page #leadimage span {
        font-size: 14px;
        line-height: 18px;
        padding: 8px;
    }

    .home-page .playoff-hero {
        padding: 3px;
        margin: 4px auto 10px;
    }

    .home-page .game-box,
    .home-page #todaygames-content table {
        width: 100% !important;
        max-width: none;
        min-width: 0;
        float: none !important;
    }
}

/* ── HOMEPAGE GRID LAYOUT ─────────────────────────────────────────────── */
.home-page .home-grid {
    clear: both;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    width: 100%;
}

.home-page .home-lower-grid {
    clear: both;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    width: 100%;
}

.home-page .home-lower-grid > .home-gotw-block,
.home-page .home-lower-grid > .home-watch-block {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    margin: 12px 0 0 !important;
    box-sizing: border-box;
}

.home-page .home-lower-grid > .home-watch-block {
    height: 320px !important;
    max-height: 320px !important;
    overflow-y: scroll !important;
    scrollbar-gutter: stable;
}

.home-page .home-grid > div {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    box-sizing: border-box;
}

.home-page .home-grid #rumorMillBlock2 {
    grid-column: 1 / -1;
    padding: 8px 12px;
    background: #111827;
    border-color: #111827;
    color: #ffffff;
}

.home-page .home-grid #rumorMillBlock2 a {
    color: #ffffff;
}

.home-page .home-grid #rumorMillBlock2 p {
    margin: 0;
    padding: 0 !important;
}

.home-page .home-grid #leadimage {
    width: 100%;
    border-radius: 5px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22);
}

.home-page .home-grid #powblock {
    padding: 0;
    overflow: hidden;
}

.home-page .home-grid #leadimage span {
    bottom: 0 !important;
    padding: 12px;
    font-size: 17px;
    line-height: 22px;
    letter-spacing: 0;
    background: linear-gradient(180deg, rgba(15,23,42,0.04), rgba(15,23,42,0.92));
    text-shadow: 0 1px 2px rgba(0,0,0,0.55);
}

.home-page .home-grid #todaygamesblock,
.home-page .home-grid #upcominggamesblock,
.home-page .home-grid #playoffgamesblock {
    min-height: 150px;
}

.home-page .home-grid #todaygamesblock h1,
.home-page .home-grid #upcominggamesblock h1,
.home-page .home-grid #playoffgamesblock h1 {
    margin-bottom: 16px;
    padding: 10px 14px 10px 25px;
}

.home-page .home-grid #todaygames-content,
.home-page .home-grid #upcominggamesblock,
.home-page .home-grid #playoffgamesblock {
    overflow: hidden;
}

.home-page .home-grid #todaygames-content {
    padding-left: 5px;
    box-sizing: border-box;
}

.home-page .home-grid #leaguenewsblock,
.home-page .home-grid #transactionsblock,
.home-page .home-grid #pollblock,
.home-page .home-grid #nslheadlinesblock,
.home-page .home-grid #nslpremiumblock {
    height: auto;
    min-height: 260px;
    max-height: 340px;
    overflow-y: auto;
}

.home-page .home-grid #nslheadlinesblock {
    overflow-y: auto;
}

.home-page .home-grid #nslheadlinesblock,
.home-page .home-grid #nslpremiumblock {
    height: 320px;
    min-height: 0;
    max-height: none;
}

.home-page .home-grid #powblock {
    min-height: 260px;
}

.home-page .home-grid .game-box {
    width: calc(50% - 9px) !important;
    max-width: none;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: none;
    margin: 0 4px 8px 5px !important;
}

.home-page .home-grid h1 {
    position: sticky;
    top: 0;
    z-index: 2;
    height: auto;
    min-height: 0;
    margin: 0 0 14px;
    padding: 10px 14px 10px 20px;
    background: linear-gradient(90deg, #111827, #1f2937);
    border-left: 0;
    border-bottom: 2px solid #b91c1c;
    border-radius: 5px;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
    color: #ffffff;
    font-size: 13px;
    line-height: 18px;
    letter-spacing: 0;
}

.home-page .home-grid p {
    margin: 0;
    padding: 8px 6px !important;
    border-color: #e5e7eb !important;
    line-height: 18px;
}

.home-page .home-grid p + p {
    border-top: 1px solid #eef2f7;
}

.home-page .home-grid a,
.home-page .home-grid a:visited {
    color: #1d4ed8;
}

.home-page .home-grid a:hover {
    color: #b91c1c;
    text-decoration: underline !important;
}

.home-page .home-grid #leaguenewsblock h2 {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 8px 10px 4px 14px !important;
    color: #111827;
    font-size: 13px;
    line-height: 17px;
    border-top: 1px solid #eef2f7;
}

.home-page .home-grid #leaguenewsblock a:first-child h2 {
    padding-top: 0;
    border-top: 0;
}

.home-page .home-grid #leaguenewsblock p {
    color: #475569;
    padding-left: 14px !important;
    padding-right: 10px !important;
}

.home-page .home-grid #leaguenewsblock a {
    display: block;
    padding-left: 0;
    box-sizing: border-box;
}

@media screen and (min-width: 1180px) {
    .home-page .home-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

@media screen and (max-width: 900px) {
    .home-page .home-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .home-page .home-lower-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .home-page .home-grid #rumorMillBlock2 {
        grid-column: auto;
    }

    .home-page .home-grid #leaguenewsblock,
    .home-page .home-grid #transactionsblock,
    .home-page .home-grid #pollblock,
    .home-page .home-grid #nslheadlinesblock,
    .home-page .home-grid #nslpremiumblock {
        min-height: 0;
        max-height: none;
        overflow: visible;
    }

    .home-page .home-gotw-block,
    .home-page .home-watch-block {
        height: auto;
        overflow: visible;
    }

    .home-page .home-lower-grid > .home-watch-block {
        height: 320px !important;
        max-height: 320px !important;
        overflow-y: scroll !important;
    }
}

@media screen and (max-width: 560px) {
    .home-page .home-grid {
        gap: 8px;
    }

    .home-page .home-lower-grid {
        gap: 8px;
    }

    .home-page .home-grid .game-box {
        width: 100% !important;
        float: none !important;
        margin-left: 0 !important;
    }
}

/* ── HOMEPAGE REFRESH ─────────────────────────────────────────────────── */
.home-page {
    background:
        linear-gradient(180deg, #eef3f9 0, #f7f9fc 240px, #eef2f7 100%);
}

.home-page #content.home-content {
    width: min(1278px, calc(100% - 16px));
    max-width: 1278px;
    margin: 0 auto;
    padding: 12px 0 30px !important;
    background: transparent;
    box-sizing: border-box;
}

.home-allstar-banner {
    display: block;
    width: min(1278px, calc(100% - 16px));
    margin: 10px auto 0;
}

.home-allstar-banner img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 160px;
    object-fit: contain;
}

.home-page .home-grid,
.home-page .home-lower-grid {
    gap: 14px;
}

.home-page .home-grid > div,
.home-page .home-lower-grid > div {
    border-color: #d7e0ec;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
}

.home-page .home-grid h1,
.home-page .home-lower-grid h1 {
    background: linear-gradient(90deg, #07111f 0%, #17358f 70%, #8a1422 100%);
    border-bottom: 0;
    border-radius: 7px 7px 0 0;
    box-sizing: border-box;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    line-height: 18px;
    margin: -12px -12px 12px !important;
    padding: 10px 18px !important;
    width: calc(100% + 24px) !important;
}

.home-page .home-grid #powblock {
    background: #0f172a;
}

.home-page .home-grid #leadimage {
    aspect-ratio: 16 / 9;
    min-height: 240px;
    overflow: hidden;
}

.home-page .home-grid #leadimage .home-feature-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
}

.home-page .home-grid #leadimage span {
    box-sizing: border-box;
    width: 100%;
}

.home-page .home-grid #todaygamesblock,
.home-page .home-grid #upcominggamesblock,
.home-page .home-grid #playoffgamesblock {
    overflow: hidden;
}

.home-page .home-grid #todaygames-content table,
.home-page .home-grid .game-box,
.home-page .home-gotw-block table {
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.home-page .home-grid #todaygames-content table img,
.home-page .home-grid .game-box img,
.home-page .home-gotw-block table img {
    max-width: 64px;
    height: auto;
    object-fit: contain;
}

.home-page .home-lower-grid > .home-watch-block {
    border: 1px solid #d7e0ec;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
}

@media screen and (max-width: 768px) {
    .home-page #content.home-content {
        width: min(100%, calc(100% - 12px));
        padding-top: 8px !important;
    }

    .home-allstar-banner {
        width: min(100%, calc(100% - 12px));
    }

    .home-page .home-grid > div,
    .home-page .home-lower-grid > div {
        border-radius: 8px;
        padding: 10px;
    }

    .home-page .home-grid h1,
    .home-page .home-lower-grid h1 {
        position: sticky;
        top: -10px;
        z-index: 3;
        margin: -10px -10px 10px !important;
        padding: 9px 16px !important;
        width: calc(100% + 20px) !important;
    }

    .home-page .home-grid #leadimage,
    .home-page .home-grid #leadimage .home-feature-image {
        min-height: 210px;
    }

    .home-page .home-grid table:not(.bs-table),
    .home-page .home-grid table:not(.bs-table) tbody,
    .home-page .home-grid table:not(.bs-table) tr,
    .home-page .home-grid table:not(.bs-table) td,
    .home-page .home-lower-grid table:not(.bs-table),
    .home-page .home-lower-grid table:not(.bs-table) tbody,
    .home-page .home-lower-grid table:not(.bs-table) tr,
    .home-page .home-lower-grid table:not(.bs-table) td {
        display: table;
        width: auto;
        padding-left: 0;
        white-space: normal;
    }

    .home-page .home-grid table:not(.bs-table),
    .home-page .home-lower-grid table:not(.bs-table) {
        display: table !important;
        width: 100% !important;
        overflow: hidden;
    }

    .home-page .home-grid table:not(.bs-table) tbody,
    .home-page .home-lower-grid table:not(.bs-table) tbody {
        display: table-row-group;
    }

    .home-page .home-grid table:not(.bs-table) tr,
    .home-page .home-lower-grid table:not(.bs-table) tr {
        display: table-row;
        border: 0;
        margin-bottom: 0;
    }

    .home-page .home-grid table:not(.bs-table) td,
    .home-page .home-lower-grid table:not(.bs-table) td {
        display: table-cell;
        border-bottom: 0;
        position: static;
        vertical-align: middle;
    }

    .home-page .home-grid table:not(.bs-table) td:before,
    .home-page .home-lower-grid table:not(.bs-table) td:before {
        content: none;
    }

    .home-page .home-grid #leaguenewsblock,
    .home-page .home-grid #transactionsblock,
    .home-page .home-grid #draftboardblock,
    .home-page .home-grid #pollblock,
    .home-page .home-grid #nslheadlinesblock,
    .home-page .home-grid #nslpremiumblock,
    .home-page .home-grid #todaygamesblock,
    .home-page .home-grid #upcominggamesblock,
    .home-page .home-grid #playoffgamesblock,
    .home-page .home-gotw-block,
    .home-page .home-lower-grid > .home-watch-block {
        height: auto !important;
        max-height: min(420px, 62vh) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-gutter: stable;
    }

    .home-page .home-grid #nslheadlinesblock,
    .home-page .home-grid #nslpremiumblock,
    .home-page .home-lower-grid > .home-watch-block {
        min-height: 280px;
    }
}

@media screen and (max-width: 560px) {
    .home-page .home-grid #leadimage,
    .home-page .home-grid #leadimage .home-feature-image {
        min-height: 180px;
    }

    .home-page .home-grid p,
    .home-page .home-lower-grid p {
        line-height: 17px;
    }

    .home-page .home-grid #todaygames-content table img,
    .home-page .home-grid .game-box img,
    .home-page .home-gotw-block table img {
        max-width: 46px;
    }
}

.page-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
    padding: 10px;
    border: 1px solid #dde3ec;
    border-radius: 8px;
    background: #f8fafc;
}

.page-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background: #fff;
    color: #1a2740;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.page-tab:hover,
.page-tab:focus {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #111827;
}

.page-tab.active {
    background: #1f2937;
    border-color: #1f2937;
    color: #fff;
}

@media screen and (max-width: 768px) {
    .page-tabs {
        padding: 8px;
        gap: 6px;
    }

    .page-tab {
        flex: 1 1 130px;
        font-size: 12px;
    }
}

/* ── STATS PAGE STYLING ───────────────────────────────────────────────────── */
.stats-page {
    max-width: 1278px;
    margin: 0 auto;
    padding: 18px 12px 40px;
    font-family: Inter, 'Segoe UI', Arial, sans-serif;
    font-size: 13px;
}

.stats-card {
    background: #fff;
    border: 1px solid #dde3ec;
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 16px;
}

.stats-card-head {
    margin-bottom: 20px;
}

.stats-card-head h1,
.stats-card-head h2 {
    margin: 0 0 14px !important;
    padding: 0 0 9px !important;
    height: auto !important;
    min-height: 0 !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #1a2740 !important;
    text-indent: 0 !important;
}

.stats-card-head h1 {
    font-size: 20px !important;
    line-height: 25px !important;
}

.stats-card-head h2 {
    font-size: 16px !important;
    line-height: 21px !important;
    border-bottom: 1px solid #eef0f4 !important;
}

/* Stats Index Filters */
.stats-index-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.stats-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 150px;
}

.stats-filter-group label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.stats-filter-group select {
    padding: 8px 12px;
    border: 1px solid #d7e0eb;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    background: #fff;
}

/* Stats Section Title */
.stats-section-title {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    color: #1a2740;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
}

/* Stats Cards Grid */
.stats-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

/* Stats Card Bubble */
.stats-card-bubble {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease;
}

.stats-card-bubble:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stats-card-bubble-header {
    padding: 8px 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    font-size: 11px;
    font-weight: 700;
    color: #1a2740;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stats-card-bubble-content {
    padding: 8px;
}

.stats-card-bubble-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    border-bottom: 1px solid #f1f5f9;
}

.stats-card-bubble-item:last-child {
    border-bottom: none;
}

.stats-card-bubble-item--first {
    background: #f8fafc;
    border-radius: 6px;
    margin-bottom: 6px;
    border-bottom: none;
    padding: 6px 8px;
}

.stats-card-bubble-img {
    width: 32px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.stats-card-bubble-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.stats-card-bubble-name {
    font-size: 12px;
    font-weight: 600;
    color: #1a2740;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.stats-card-bubble-name a {
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 700;
}

.stats-card-bubble-name a:hover {
    text-decoration: underline;
}

.stats-card-bubble-team {
    font-size: 10px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.stats-card-bubble-team a {
    color: #64748b;
    text-decoration: none;
}

.stats-card-bubble-team a:hover {
    color: #1d4ed8;
}

.stats-card-bubble-value {
    font-size: 12px;
    font-weight: 700;
    color: #155e75;
    margin-left: auto;
    flex-shrink: 0;
}

/* Stats More Section */
.stats-more-section {
    margin-top: 32px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

/* Stats Form Grid */
.stats-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stats-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stats-form-group label {
    font-size: 12px;
    font-weight: 600;
    color: #1a2740;
}

.stats-radio-group,
.stats-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stats-radio-group label,
.stats-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 400;
    color: #475569;
    cursor: pointer;
}

.stats-radio-group input,
.stats-checkbox-group input {
    cursor: pointer;
}

.stats-submit-btn {
    padding: 10px 20px;
    background: #155e75;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.stats-submit-btn:hover {
    background: #0e4a5c;
}

.stats-help-text {
    margin: 12px 0 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}

/* Mobile Responsive Styles */
@media (max-width: 760px) {
    .stats-index-filters {
        flex-direction: column;
        gap: 12px;
    }
    
    .stats-filter-group {
        min-width: 100%;
    }
    
    .stats-cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stats-card-bubble {
        border-radius: 8px;
    }
    
    .stats-card-bubble-header {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .stats-card-bubble-content {
        padding: 10px;
    }
    
    .stats-card-bubble-item {
        padding: 6px;
    }
    
    .stats-card-bubble-img {
        width: 40px;
        height: 32px;
    }
    
    .stats-card-bubble-name {
        font-size: 12px;
    }
    
    .stats-card-bubble-team {
        font-size: 10px;
    }
    
    .stats-card-bubble-value {
        font-size: 13px;
    }
    
    .stats-form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stats-radio-group,
    .stats-checkbox-group {
        flex-direction: column;
        gap: 6px;
    }
    
    .stats-section-title {
        font-size: 14px;
    }
    
    .stats-more-section {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .stats-page {
        padding: 14px 10px 32px;
    }
    
    .stats-card {
        padding: 14px 16px;
    }
    
    .stats-index-filters {
        padding: 12px;
    }
}

.stats-table-wrap {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

/* Admin table header styling - Navy with gold rail */
.admin-table-header {
    background: #0a0f1a;
    border-bottom: 3px solid #ffce45;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 12px 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* Admin button styling - Navy with gold border */
.admin-btn {
    background: #0a0f1a !important;
    border: 2px solid #ffce45 !important;
    color: #ffffff !important;
    padding: 7px 18px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}
.admin-btn:hover {
    background: #1a2744 !important;
    border-color: #f7e1a0 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 206, 69, 0.3);
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 880px;
}

.stats-table th,
.stats-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #edf1f6;
    text-align: left;
    vertical-align: middle;
}

.stats-table th {
    background: #f7f9fc;
    color: #334155;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}

.stats-table th a {
    color: #334155;
    text-decoration: none;
}

.stats-table td {
    color: #1f2937;
}

.stats-table td.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.stats-table a.player-link {
    color: #1d4ed8;
    font-weight: 800;
    text-decoration: none;
}

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

.stats-form select,
.stats-form input[type="submit"],
.stats-form input[type="text"] {
    padding: 6px 10px;
    border: 1px solid #d7e0eb;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
}

.stats-form input[type="submit"] {
    background: #155e75;
    color: #fff;
    border-color: #155e75;
    font-weight: 800;
    cursor: pointer;
}

.stats-form input[type="submit"]:hover {
    background: #0e4a5c;
}

.stats-history-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.stats-history-link:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #111827;
}

.stats-award-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.stats-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stats-table-wrap {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.stats-table thead {
    background: #f8fafc;
}

.stats-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    color: #1a2740;
    border-bottom: 2px solid #e2e8f0;
}

.stats-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}

.stats-table tr:hover {
    background: #f8fafc;
}

.stats-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 20px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
}

.stats-form select,
.stats-form input[type="submit"] {
    padding: 8px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    color: #1a2740;
}

.stats-form input[type="submit"] {
    background: #1f2937;
    color: #fff;
    border-color: #1f2937;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.stats-form input[type="submit"]:hover {
    background: #374151;
}

.stats-form select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

@media screen and (max-width: 768px) {
    .stats-page {
        padding: 12px;
    }

    .stats-card {
        padding: 16px;
        margin-bottom: 16px;
    }

    .stats-award-grid {
        grid-template-columns: 1fr;
    }

    .stats-feature-grid {
        grid-template-columns: 1fr;
    }

    .stats-card-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .stats-form {
        flex-direction: column;
        align-items: stretch;
    }

    .stats-form select,
    .stats-form input[type="submit"] {
        width: 100%;
    }
}
@media screen and (max-width: 768px) {
    /* Stack the hero section vertically */
    .contact-hero {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    /* Force the table to behave like a list of blocks */
    .contact-table, 
    .contact-table thead, 
    .contact-table tbody, 
    .contact-table th, 
    .contact-table td, 
    .contact-table tr { 
        display: block; 
    }

    /* Hide the header row (labels will be handled via pseudo-elements) */
    .contact-table thead tr { 
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    /* Each row becomes a standalone card */
    .contact-table tr {
        border: 1px solid #eee;
        border-radius: 12px;
        margin-bottom: 20px;
        padding: 15px;
        background: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    /* Align row data for readability */
    .contact-table td {
        border: none;
        position: relative;
        padding-left: 45% !important;
        text-align: right;
        margin-bottom: 8px;
        min-height: 24px;
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    /* Insert labels using the data-label attribute from your HTML */
    .contact-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 40%;
        text-align: left;
        font-weight: 700;
        color: #666;
        font-size: 11px;
        text-transform: uppercase;
    }

    /* Highlight the Team Logo at the top of the card */
    .contact-table td[data-label="Team"] {
        padding-left: 0 !important;
        justify-content: center;
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 15px;
        margin-bottom: 15px;
    }

    .contact-table td[data-label="Team"]:before {
        display: none;
    }
}
