/* CSS Custom Properties (Variables) */
:root {
    --sb-orange: #eb8d28;
    --sb-blue-dark: #054161;
}

.nav-link {
    color: var(--sb-blue-dark);
}

/* Responsive page headings (mobile-first) */
.page-title {
    font-size: 1.2rem; /* ~Bootstrap fs-4 */
    line-height: 1.15;
    font-weight: 500;
    margin-top: 3px;
}

@media (min-width: 576px) {
    .page-title {
        font-size: 1.2rem;
    }
}

@media (min-width: 768px) {
    .page-title {
        font-size: 1.75rem;
    }
}

@media (min-width: 992px) {
    .page-title {
        font-size: 2.0rem; /* ~Bootstrap fs-1 */
    }
}

.login-link {
    color: var(--sb-blue-dark) !important;
    font-weight: 600;
    text-decoration: none;
}

.login-link:hover {
    color: var(--sb-orange) !important;
}

.btn-primary {
    background-color: var(--sb-orange) !important;
    color: #FFFFFF !important;
    font-weight: 600;
    border: none !important;
}

.btn-secondary {
    background-color: var(--sb-blue-dark) !important;
    color: #FFFFFF !important;
    font-weight: 600;
    border: none !important;
}

.btn-primary:hover {
    background-color: var(--sb-orange) !important;
}

.btn-outline-primary {
    background-color: transparent !important;
    color: var(--sb-blue-dark) !important;
    font-weight: 600;
    border: 1px solid var(--sb-blue-dark) !important;
}

.btn-outline-primary:hover {
    background-color: var(--sb-blue-dark) !important;
    color: #FFFFFF !important;
}

.small-table-custom {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

/* Custom styles for StatBetting Laravel app */
.table th,
.table thead th,
table thead th {
    background-color: var(--sb-blue-dark) !important;
    color: #fff !important;
    border-color: #ffffff;
    border: none;
}

.sb-card-header {
    background-color: var(--sb-blue-dark) !important;
    color: #fff !important;
    border-radius: 0 !important;
    padding: 12px 16px !important;
    font-weight: 600;
    font-size: 16px;
}

/* Fixtures sidebar headers (Filter / Leagues) */
.sidebar-headers {
    background-color: var(--sb-orange) !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 16px;
    padding: 16px 20px !important;
    border-radius: 0 !important;
    letter-spacing: 0.3px;
}

/* Card styling to match fixtures table wrapper */
.card {
    border-radius: 16px;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.5);
    border: none;
    overflow: hidden;
}

.card-header:first-child {
    border-radius: 16px 16px 0 0;
}

/* Chat header styling */
.chat-header {
    background-color: var(--sb-orange);
    color: #fff;
    padding: 9px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 56px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    border-radius: 16px 16px 0 0;
}

.chat-header-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.chat-header-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-header-name {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
}

.chat-header-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    opacity: 0.9;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #4caf50;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 4px rgba(76, 175, 80, 0.5);
    animation: pulseStatus 2s ease-in-out infinite;
}

@keyframes pulseStatus {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 4px rgba(76, 175, 80, 0.5);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
        box-shadow: 0 0 8px rgba(76, 175, 80, 0.8);
    }
}

.status-text {
    font-size: 12px;
    opacity: 0.9;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #f9f9f9;
}

.table > tbody > tr.success > td {
    background-color: #dff0d8;
}

.table > tbody > tr.danger > td {
    background-color: #f2dede;
}

.table > tbody > tr.active > td {
    background-color: #f5f5f5;
}

.team_logo {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.top_banner {
    background-image: var(--top-banner-image, url('../images/banners/top_banner.png'));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 30px 20px;
    margin-bottom: 20px;
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.top_banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.top_banner .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.top_banner_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.top_banner_teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

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

.top_banner_team.home_team {
    flex-direction: row;
}

.top_banner_team.away_team {
    flex-direction: row;
}

.team_jersey {
    width: 70px;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    flex-shrink: 0;
}

.team_jersey svg {
    width: 100%;
    height: 100%;
}

.team_name {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    text-align: center;
    white-space: nowrap;
}

.top_banner_vs {
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    letter-spacing: 2px;
    margin: 0 10px;
}

.top_banner_datetime {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.match_date {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.match_time_separator {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.match_time {
    font-size: 1rem;
    font-weight: 700;
    color: var(--sb-orange);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.top_banner_competition {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.competition_flag {
    width: 20px;
    height: auto;
    vertical-align: middle;
    margin-right: 6px;
}

.competition_name {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    display: inline-block;
}

.top_banner h3 {
    margin: 10px 0;
    font-weight: bold;
    color: white;
}

.top_banner img {
    width: auto;
    height: 120px;
    max-width: 100%;
}

/* Player stats page — top banner */
.player-top-banner .team_name {
    margin-left: auto;
    margin-right: auto;
}

.player-banner-meta {
    flex-direction: column;
    gap: 6px;
}

.player-banner-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 10px;
    line-height: 1.35;
}

.player-banner-meta-label {
    color: var(--sb-orange);
    font-weight: 700;
}

.player-banner-meta-sep {
    color: rgba(255, 255, 255, 0.55);
    user-select: none;
}

.player-event-match-cell .fixture_td_badge svg,
.player-event-match-cell .fixture_td_badge {
    vertical-align: middle;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .top_banner {
        padding: 20px 15px;
        min-height: 180px;
        margin-left: 15px;
        margin-right: 15px;
    }

    .top_banner_teams {
        gap: 15px;
    }

    .team_jersey {
        width: 55px;
        height: 70px;
    }

    .team_name {
        font-size: 1.2rem;
        white-space: normal;
        max-width: 44vw;
        overflow-wrap: anywhere;
        white-space: nowrap;
    }

    .top_banner_vs {
        font-size: 1.1rem;
        margin: 0 8px;
    }

    .top_banner_team {
        gap: 8px;
    }

    .competition_name {
        font-size: 0.85rem;
    }

    .player-top-banner .team_name {
        max-width: 100%;
        white-space: normal;
    }

    .match_date,
    .match_time {
        font-size: 0.9rem;
    }
}

.advert-alert {
    background-color: var(--sb-orange);
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.advert-alert a {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .top_banner {
        padding: 15px 10px;
        min-height: 160px;
        margin-left: 15px;
        margin-right: 15px;
    }

    .top_banner_content {
        gap: 12px;
    }

    .top_banner_teams {
        gap: 10px;
        flex-wrap: wrap;
    }

    .team_jersey {
        width: 45px;
        height: 55px;
    }

    .team_name {
        font-size: 1rem;
        white-space: normal;
        max-width: 48vw;
        overflow-wrap: anywhere;
        white-space: nowrap;
    }

    .top_banner_vs {
        font-size: 0.95rem;
        letter-spacing: 1px;
        margin: 0 5px;
        width: 100%;
        order: 3;
    }

    .top_banner_team {
        gap: 6px;
        flex: 1;
        min-width: 45%;
    }

    .top_banner_team.home_team {
        flex-direction: column;
    }
    
    .top_banner_team.away_team {
        flex-direction: column;
    }

    .match_date,
    .match_time {
        font-size: 0.85rem;
    }
}

/* Stats/event top banner */
.stats-top-banner {
    overflow: hidden;
}

.stats-top-banner-matchup {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 4vw, 36px);
    width: 100%;
}

.stats-top-banner-team {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.stats-top-banner-jersey {
    width: clamp(54px, 10vw, 78px);
    height: clamp(66px, 12vw, 92px);
}

.stats-top-banner-name {
    max-width: 100%;
    line-height: 1.12;
    white-space: normal;
    overflow-wrap: anywhere;
}

.stats-top-banner-vs {
    margin: 0;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .top_banner.stats-top-banner {
        min-height: auto;
        padding: 18px 8px;
        margin-right: 0;
        margin-left: 0;
    }

    .stats-top-banner .container {
        padding-right: 8px;
        padding-left: 8px;
    }

    .stats-top-banner .top_banner_content {
        gap: 10px;
    }

    .stats-top-banner-matchup {
        gap: 8px;
    }

    .stats-top-banner-team {
        gap: 7px;
    }

    .stats-top-banner-jersey {
        width: clamp(40px, 13vw, 50px);
        height: clamp(50px, 16vw, 62px);
    }

    .stats-top-banner-name {
        display: -webkit-box;
        font-size: clamp(0.9rem, 4vw, 1.05rem);
        line-height: 1.15;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .stats-top-banner-vs {
        width: auto;
        order: 0;
        font-size: 0.85rem;
        letter-spacing: 0.08em;
    }

    .stats-top-banner .top_banner_datetime {
        flex-wrap: wrap;
        gap: 4px 8px;
    }
}

/* Responsive table helper for dense stats tables (mobile/iPad scrolling) */
.stats-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    width: 100%;
    /* Lets wide tables scroll inside Bootstrap flex columns (default min-width: auto blocks shrink) */
    min-width: 0;
}

/* Fixtures table wrapper - prevent horizontal scrolling */
.fixtures-table-wrapper {
    overflow-x: hidden !important;
    max-width: 100%;
    width: 100%;
    border-radius: 16px;
    background-color: #00008b;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.fixtures-table-wrapper.table-responsive {
    overflow-x: hidden !important;
}

.fixtures-table-wrapper table {
    table-layout: auto;
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
    border-radius: 16px;
    overflow: hidden;
    background-color: #fff;
}

/* Team stats league tables — single wrapper, no stretched card shell */
.league-table-card {
    height: fit-content;
}

/* Navy date / league section headers — home fixtures + ESPN fixtures (shared) */
.fixtures-table-wrapper .fixtures-section-header-cell {
    padding: 16px 20px !important;
    font-size: 16px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Ensure fixtures section header rows are always navy (independent of striping mode) */
.fixtures-table-wrapper table > tbody > tr.fixtures-section-header-row {
    background-color: transparent !important;
}

.fixtures-table-wrapper table > tbody > tr.fixtures-section-header-row > td {
    background-color: var(--sb-blue-dark) !important;
}

/* Mobile odds “divider” row — consistent vertical rhythm inside fixtures tables */
.fixtures-table-wrapper table.table-compact tbody tr.mobile-odds-row td {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Explicit zebra striping per fixture (not nth-of-type — avoids hidden mobile rows + per-league tbody resets) */
.fixtures-table-wrapper table.fixtures-table-zebra tbody tr.row-accent td {
    transition: background-color 0.2s ease;
    background-color: #fff !important;
}

.fixtures-table-wrapper table.fixtures-table-zebra tbody tr.row-accent.fixtures-row-stripe td {
    background-color: #f9f9f9 !important;
}

.fixtures-table-wrapper table.fixtures-table-zebra tbody tr.mobile-odds-row td {
    background-color: #fff !important;
}

.fixtures-table-wrapper table.fixtures-table-zebra tbody tr.mobile-odds-row.fixtures-row-stripe td {
    background-color: #f9f9f9 !important;
}

/* Hover state for normal fixture rows */
.fixtures-table-wrapper table.fixtures-table-zebra tbody tr.row-accent.clickable-row:hover td {
    background-color: #f0f7fa !important;
}

.fixtures-table-wrapper table.fixtures-table-zebra tbody tr.mobile-odds-row.clickable-row:hover td {
    background-color: #f0f7fa !important;
}

/* Add padding to table cells for better spacing - ONLY normal fixture rows with row-accent class */
.fixtures-table-wrapper table.table-compact tbody tr.row-accent.clickable-row td {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Mobile odds row styling */
.mobile-odds-row {
    border-bottom: 2px solid #042d47;
}

.mobile-odds-row td {
    padding: 8px 15px !important;
}

/* Compact layout when odds/stats cols are hidden (Bootstrap lg and below = max-width 991.98px) */
@media (max-width: 991.98px) {
    .fixtures-table-wrapper {
        overflow-x: hidden;
    }

    .fixtures-table-wrapper table {
        font-size: 0.9rem;
    }

    /* Reduce padding when fixture row is condensed */
    .fixtures-table-wrapper table.table-compact tbody tr.row-accent.clickable-row td {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .fixtures-table-wrapper .competition-name-cell,
    .fixtures-table-wrapper .team-name-cell {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
    }

    .fixtures-table-wrapper .fixture-date-cell {
        white-space: nowrap;
        max-width: 72px;
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    .fixtures-table-wrapper table.team-upcoming-fixtures-table .team-name-cell {
        max-width: 88px;
    }
}

/* ESPN fixtures sidebar: mini month calendar */
.fixtures-date-calendar {
    background-color: #fff;
    --sb-cal-selected-bg: var(--sb-blue-dark);
    --sb-cal-selected-fg: #fff;
}

.fixtures-cal-dow .col {
    font-size: 0.65rem;
    letter-spacing: 0.02em;
    padding: 2px 0;
}

.fixtures-cal-week .fixtures-cal-day {
    min-height: 1.75rem;
    line-height: 1.2;
    font-size: 0.8rem;
    font-weight: 500;
}

.fixtures-cal-day--empty {
    min-height: 1.75rem;
}

a.fixtures-cal-day:hover {
    background-color: rgba(5, 65, 97, 0.08);
    color: var(--sb-blue-dark) !important;
}

.fixtures-cal-day--today:not(.fixtures-cal-day--selected) {
    box-shadow: inset 0 0 0 2px var(--sb-orange);
}

.fixtures-cal-day--selected {
    background-color: var(--sb-cal-selected-bg) !important;
    color: var(--sb-cal-selected-fg) !important;
    font-weight: 700;
}

.fixtures-cal-day--selected:hover {
    background-color: var(--sb-cal-selected-bg) !important;
    color: var(--sb-cal-selected-fg) !important;
    filter: brightness(1.08);
}

/* Full-width hero banner */
.hero-banner-full {
    width: 100%;
}

.hero-banner-container {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
}

.hero-banner-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.5);
}

.bet365_yellow {
    color: #fedf1b;
}

.betting_row {
    background-color: #017b5b !important;
    color: white;
    text-align: center;
    font-size: 11px;
}

.betting_row a {
    color: white;
}

.td_betodds {
    text-align: center;
}

.td_SBI {
    text-align: center;
    font-weight: bold;
}

.td_score {
    text-align: center;
    font-weight: bold;
    white-space: nowrap;
}

.no_padding {
    padding-left: 0;
    padding-right: 0;
}

.dont_wrap {
    white-space: nowrap;
}

.head_to_head {
    margin-top: 10px;
}

.head_to_head > tbody > tr > td {
    vertical-align: middle;
}

.head_to_head .fixture_td_badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 35px;
}

.head_to_head .fixture_td_badge svg {
    width: 30px;
    height: 35px;
}

.books_table > thead > tr > th,
.books_table > tbody > tr > th,
.books_table > tfoot > tr > th,
.books_table > thead > tr > td,
.books_table > tbody > tr > td,
.books_table > tfoot > tr > td {
    padding: 8px;
}

/* Sidebar layout */
.sb-sidebar {
    width: 260px;
    background-color: #0b1e2a; /* dark blue/teal to match brand */
    color: #ffffff;
    position: relative;
    height: auto;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.sb-brand {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sb-nav .nav {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.sb-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #cfe6f3;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
}

.sb-nav-link:hover,
.sb-nav-link:focus {
    background-color: rgba(255,255,255,0.06);
    color: #ffffff;
    border-left-color: var(--sb-orange); /* brand accent */
}

.sb-icon {
    width: 1.25rem;
    display: inline-flex;
    justify-content: center;
}

.sb-footer {
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* Right feedbar */
.sb-feedbar {
    width: 320px;
    background-color: #0b1e2a;
    color: #ffffff;
    border-left: 1px solid rgba(255,255,255,0.08);
}

.sb-feedbar-header {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sb-feedbar-content {
    overflow: auto;
}

/* Compact tables for dense data */
.table-compact th,
.table-compact td {
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
}

.table-compact {
    font-size: 0.9rem;
}

@media (max-width: 767.98px) {
    .sb-sidebar {
        display: none !important; /* rely on top nav for small screens */
    }
}

@media (max-width: 991.98px) {
    .sb-feedbar {
        display: none !important;
    }
}

/* Lighten overall page background slightly and keep center content bright */
body.bg-light {
    background-color: rgb(0, 0, 0,0.1) !important;
    overflow-x: hidden; /* Prevent horizontal scrolling on mobile */
}

/* Prevent horizontal overflow on html element */
html {
    overflow-x: hidden;
    max-width: 100%;
}

/* Centered content wrapper for Option A */
.center-wrap {
    width: 1320px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
    background-color: #ffffff;
    /* background-color: #ffffff;
    border-radius: 0 0 0 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
    overflow-x: hidden; */
}

/* Remove container-fluid padding on responsive screens when inside center-wrap to avoid double padding */
/* Keep padding on desktop (normal size) */
@media (max-width: 991.98px) {
    .center-wrap > .container-fluid,
    .center-wrap .container-fluid {
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }
    
    /* Also remove center-wrap padding on responsive for more width */
    .center-wrap {
        padding-left: 0;
        padding-right: 0;
        width: 100%;
        max-width: 100%;
    }
}

/* Reusable container class for consistent page width */
.content-container {
    width: 1320px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Modern Main Navigation */
.sb-main-nav {
    background-color: #000000 !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    max-width: 100%;
    overflow-x: visible; /* Changed to allow dropdown to overflow */
}

.sb-main-nav .container-fluid {
    max-width: 100%;
    overflow-x: visible; /* Changed to allow dropdown to overflow */
}

.sb-main-nav.sticky {
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.sb-main-nav .navbar-brand {
    margin-top: 0;
    transition: transform 0.2s ease;
}

.sb-main-nav .navbar-brand:hover {
    transform: scale(1.05);
}

.sb-main-nav .nav-link {
    color: #ffffff !important;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    margin: 0 0.25rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    position: relative;
}

.sb-main-nav .nav-separator {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 0.5rem;
    font-weight: 300;
}

.sb-main-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.sb-main-nav .nav-link.active {
    font-weight: 600;
}

.sb-main-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background-color: var(--sb-orange);
    border-radius: 2px;
}

.sb-main-nav .sb-nav-search {
    position: relative;
    flex: 1 1 420px;
    max-width: 460px;
    min-width: 260px;
    z-index: 1051;
}

.sb-nav-search-form {
    position: relative;
}

.sb-nav-search-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.65);
    pointer-events: none;
}

.sb-nav-search-input {
    height: 42px;
    padding-left: 2.55rem;
    padding-right: 2.25rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    box-shadow: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sb-nav-search-form.is-searching .sb-nav-search-input {
    padding-right: 4rem;
}

.sb-nav-search-spinner-wrap {
    position: absolute;
    right: 2.75rem;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    pointer-events: none;
}

.sb-nav-search-spinner-wrap[hidden] {
    display: none;
}

.sb-nav-search-input::placeholder {
    color: rgba(255, 255, 255, 0.68);
}

.sb-nav-search-input:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--sb-orange);
    box-shadow: 0 0 0 0.2rem rgba(255, 126, 0, 0.22);
}

.sb-nav-search-results {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0;
    right: 0;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    background: #ffffff;
    color: #111827;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
    padding: 0.5rem;
}

.sb-nav-search-results[hidden] {
    display: none;
}

.sb-nav-search-group + .sb-nav-search-group {
    border-top: 1px solid rgba(17, 24, 39, 0.08);
    margin-top: 0.35rem;
    padding-top: 0.35rem;
}

.sb-nav-search-heading {
    padding: 0.45rem 0.65rem 0.25rem;
    color: #6b7280;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sb-nav-search-result {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.72rem 0.65rem;
    color: #111827;
    text-decoration: none;
    border-radius: 12px;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.sb-nav-search-result:hover,
.sb-nav-search-result:focus,
.sb-nav-search-result.is-active {
    background: rgba(255, 126, 0, 0.12);
    color: #111827;
    outline: none;
    transform: translateY(-1px);
}

.sb-nav-search-result-icon {
    position: relative;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    color: var(--sb-orange);
    background: rgba(255, 126, 0, 0.12);
    border-radius: 50%;
}

.sb-nav-search-result-icon > i[hidden] {
    display: none;
}

.sb-nav-search-result-icon .spinner-border[hidden] {
    display: none;
}

.sb-nav-search-result-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.sb-nav-search-result-title {
    font-size: 0.94rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sb-nav-search-result-meta {
    margin-top: 0.18rem;
    color: #6b7280;
    font-size: 0.78rem;
}

.sb-nav-search-result.is-loading {
    pointer-events: none;
    opacity: 0.85;
}

.sb-nav-search-status {
    padding: 0.85rem 0.75rem;
    color: #6b7280;
    font-size: 0.9rem;
}


.sb-main-nav .user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0.75rem !important;
    border-radius: 10px;
    transition: all 0.2s ease;
    border-color: #00ce05;
}

.sb-main-nav .user-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sb-main-nav .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--sb-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: #ffffff;
}

.sb-main-nav .user-name {
    font-size: 0.9rem;
}

.sb-main-nav .btn-nav-link {
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.sb-main-nav .btn-nav-link-primary {
    background-color: var(--sb-orange);
    color: #FFFFFF !important;
    font-weight: 600;
}

.sb-main-nav .btn-nav-link-primary:hover {
    background-color: var(--sb-orange);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(var(--sb-orange), 0.3);
}

/* Dropdown Menu Fixes */
.sb-main-nav .dropdown {
    position: relative; /* Bootstrap dropdown needs relative parent for absolute positioning */
}

.sb-main-nav .sb-dropdown {
    position: absolute !important;
    z-index: 1050 !important; /* Higher than navbar z-index (1030) */
    margin-top: 0.5rem;
    background-color: #000000;
    color: #ffffff;
    border-radius: 0px 0px 10px 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    min-width: 180px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.sb-main-nav .sb-dropdown .dropdown-item {
    padding: 0.75rem 1.25rem;
    color: #ffffff;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.sb-main-nav .sb-dropdown .dropdown-item:hover,
.sb-main-nav .sb-dropdown .dropdown-item:focus {
    background-color: #ffffff;
    color: #000000;
}

.sb-main-nav .sb-dropdown .dropdown-divider {
    margin: 0.5rem 0;
    border-color: rgba(255, 255, 255, 0.1);
}

.sb-main-nav .sb-dropdown button.dropdown-item {
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
}

/* Header sub-navigation */
.sb-subnav {
    background-color: var(--sb-blue-dark);
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

.sb-subnav-container {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

.sb-subnav.sticky {
    position: sticky;
    top: 64px; /* Height of main nav */
    z-index: 1029;
}

.sb-subnav-container {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

.sb-subnav .nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.sb-subnav .subnav-link {
    color: #ffffff;
    text-decoration: none;
    padding: 0.75rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
    font-weight: 500;
}

.sb-subnav .subnav-link:hover,
.sb-subnav .subnav-link:focus {
    background-color: rgba(255,255,255,0.12);
    color: #ffffff;
    transform: translateY(-1px);
}

.sb-subnav .subnav-link.active {
    font-weight: 600;
}

.sb-subnav .subnav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 2px;
    background-color: var(--sb-orange);
    border-radius: 2px;
}

/* Mobile Navigation Improvements */
@media (max-width: 991.98px) {
    .sb-main-nav .sb-nav-search {
        width: 100%;
        max-width: none;
        min-width: 0;
        flex-basis: auto;
    }

    .sb-nav-search-results {
        max-height: 65vh;
    }

    .sb-main-nav .sb-nav-mobile-menu {
        margin: 0.25rem 0 0;
        padding: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .sb-main-nav .sb-nav-mobile-menu .nav-item {
        width: 100%;
    }

    .sb-main-nav .sb-nav-mobile-menu .nav-link {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0.75rem 1rem !important;
        text-align: left;
        justify-content: flex-start;
        border-radius: 0;
        transform: none;
    }

    .sb-main-nav .sb-nav-mobile-menu .nav-link:hover {
        transform: none;
        background-color: rgba(255, 255, 255, 0.08);
    }

    .sb-main-nav .sb-nav-mobile-menu .nav-link.active::after {
        display: none;
    }

    .sb-main-nav .sb-nav-mobile-menu .nav-link.active {
        background-color: rgba(255, 126, 0, 0.15);
        box-shadow: inset 3px 0 0 var(--sb-orange);
    }

    .sb-main-nav .sb-nav-mobile-menu .sb-nav-logout-btn {
        width: 100%;
        border: 0;
        background: transparent;
        color: #ffffff !important;
        cursor: pointer;
        font: inherit;
    }

    .sb-main-nav .sb-nav-mobile-menu .sb-nav-logout-btn:hover {
        background-color: rgba(255, 255, 255, 0.08);
    }
    
    /* Make subnav horizontally scrollable on mobile */
    .sb-subnav-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(255,255,255,0.3) transparent;
    }
    
    .sb-subnav-container::-webkit-scrollbar {
        height: 4px;
    }
    
    .sb-subnav-container::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .sb-subnav-container::-webkit-scrollbar-thumb {
        background-color: rgba(255,255,255,0.3);
        border-radius: 2px;
    }
    
    .sb-subnav-container::-webkit-scrollbar-thumb:hover {
        background-color: rgba(255,255,255,0.5);
    }
    
    .sb-subnav .nav {
        flex-wrap: nowrap;
        min-width: max-content;
        padding-bottom: 4px;
    }
    
    .sb-subnav .subnav-link {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .sb-subnav.sticky {
        top: auto;
    }
}

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

/* Hero utility strip */
.hero-strip {
    background: linear-gradient(180deg, rgba(5,65,97,0.08), rgba(5,65,97,0.02));
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.hero-banner {
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    min-height: 140px;
    position: relative;
}

.kpi-tile {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 8px;
    padding: 6px 8px;
}

.kpi-label {
    color: #667788;
    font-size: 0.8rem;
}

.kpi-value {
    font-weight: 700;
    font-size: 1.1rem;
}

/* Enhanced KPI Tile Styles */
.kpi-tile-enhanced {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid var(--sb-blue-dark);
    box-shadow: 0 2px 8px rgba(5, 65, 97, 0.15);
}

.kpi-label-enhanced {
    color: var(--sb-blue-dark);
    font-weight: 900;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.kpi-stats-container {
    font-size: 0.85em;
    padding-top: 2px;
}

.kpi-stats-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.kpi-stats-table thead th {
    padding: 0 4px 4px 4px;
    border-bottom: 2px solid var(--sb-blue-dark);
    text-align: center;
    font-weight: bold;
    color: var(--sb-blue-dark) !important;
    background-color: transparent !important;
    font-size: 0.85em;
}

.kpi-stats-table thead th:first-child {
    text-align: right;
    padding-right: 8px;
}

.kpi-stats-table tbody td {
    padding: 2px 4px;
    text-align: center;
    font-weight: 600;
}

.kpi-stats-table tbody td:first-child {
    padding-right: 8px;
    color: #495057;
}

.kpi-stats-table tbody td:first-child .kpi-jersey-icon {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 0.75em;
    color: #6c757d;
}

.kpi-stats-table thead th .kpi-jersey-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.kpi-stats-table tbody tr:last-child td {
    padding-bottom: 0;
}

.featured-match-tablelike .row > [class^="col-"] {
    min-width: 0;
}

.featured-match-tablelike .featured-match-table {
    width: 100%;
    table-layout: fixed;
}

.featured-match-tablelike .featured-match-table td {
    padding: 0;
    border: 0;
}

.featured-match-tablelike .fm-jersey-cell {
    width: 38px;
}

.featured-match-tablelike .fm-vs-cell {
    width: 100px;
}

.featured-match-tablelike .kpi-jersey-icon {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 0;
}

.featured-match-tablelike .kpi-jersey-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.featured-match-tablelike .fm-team-name {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kpi-stats-separator {
    color: #adb5bd;
    padding: 0 2px;
}

.kpi-stats-separator-header {
    color: var(--sb-blue-dark);
    padding: 0 2px;
}

/* Quick filters */
.quick-filters {
    padding: 6px 0;
}

.filter-pill {
    display: inline-block;
    padding: 6px 10px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    color: var(--sb-blue-dark);
    border-radius: 999px;
    font-size: 0.9rem;
    margin-right: 8px;
}

.filter-pill.active {
    background: var(--sb-blue-dark);
    color: #ffffff;
    border-color: var(--sb-blue-dark);
}

/* Table enhancements */
.table-sticky thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--sb-blue-dark) !important;
    color: #fff !important;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.table-hover tbody tr:hover {
    background-color: rgba(5,65,97,0.06);
}

.row-accent:hover {
    box-shadow: inset 3px 0 0 var(--sb-orange);
}

.clickable-row {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.clickable-row:hover {
    background-color: rgba(5, 65, 97, 0.05) !important;
}

.table-density-comfortable .table-compact th,
.table-density-comfortable .table-compact td {
    padding-top: 0.6rem !important;
    padding-bottom: 0.6rem !important;
}

/* League chips and team icons */
.league-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef4f8;
    color: var(--sb-blue-dark);
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.75rem;
}

.team-ico {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #dde7ee;
    display: inline-block;
}

/* Prevent text wrapping for competition and team names */
.competition-name-cell,
.team-name-cell {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Inline sparkline */
.sparkline {
    width: 60px;
    height: 18px;
}

/* Form table indicators */
.form-indicator {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    vertical-align: middle;
}

.form-indicator.form-win {
    background-color: #00ce05; /* Green for win */
}

.form-indicator.form-draw {
    background-color: #d2d2d2; /* Grey for draw */
}

.form-indicator.form-loss {
    background-color: #ce0000; /* Red for loss */
}

.form-indicator.form-empty {
    background-color: transparent;
    border: 1px solid #e0e0e0;
}

/* Corners page specific styles */
.corners-season-select {
    max-width: 200px;
}

.corners-empty-icon {
    opacity: 0.3;
    display: inline-block;
}

.corners-kpi-tile {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
}

.corners-table-row td {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

.corners-table-row td:first-child {
    width: 52px;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

.corners-table-row td.separator {
    width: 1px;
}

/* Stats page table styles - smaller font for dense data tables */
.stats-page-table tbody td,
.stats-page-table tbody td span,
.stats-page-table tbody td div {
    font-size: 0.9rem !important;
}

.stats-page-table thead th {
    font-size: inherit !important; /* Keep headers at default size */
}

/*
 * Nav Goals / Corners / Bookings — mobile only (≤768px, iPhone 12 ≈ 390px).
 * Desktop/tablet keeps default table styling; parent hides overflow so phones must fit.
 */
@media (min-width: 769px) {
    .fixtures-table-wrapper .season-stats-table .season-stats-team-row {
        display: contents;
    }
}

@media (max-width: 768px) {
    .fixtures-table-wrapper .season-stats-table {
        table-layout: fixed;
        width: 100%;
    }

    .fixtures-table-wrapper .season-stats-table thead th,
    .fixtures-table-wrapper .season-stats-table tbody td {
        padding: 0.3rem 0.1rem !important;
        white-space: nowrap;
        vertical-align: middle;
    }

    .fixtures-table-wrapper .season-stats-table thead th {
        font-size: 0.62rem;
        line-height: 1.2;
    }

    .fixtures-table-wrapper .season-stats-table thead th a {
        font-size: inherit;
    }

    .fixtures-table-wrapper .season-stats-table tbody td {
        font-size: 0.72rem;
    }

    .fixtures-table-wrapper .season-stats-table tbody td:first-child {
        width: 1.75rem;
        padding-left: 0.25rem !important;
        padding-right: 0.1rem !important;
        font-size: 0.65rem;
        color: #6c757d;
    }

    .fixtures-table-wrapper .season-stats-table th:nth-child(2),
    .fixtures-table-wrapper .season-stats-table td.season-stats-team-cell {
        width: 28%;
    }

    .fixtures-table-wrapper .season-stats-table td.season-stats-team-cell {
        overflow: hidden;
        text-align: left;
    }

    .fixtures-table-wrapper .season-stats-table .season-stats-team-row {
        display: flex;
        align-items: center;
        gap: 0.15rem;
        min-width: 0;
        flex-wrap: nowrap;
    }

    .fixtures-table-wrapper .season-stats-table .season-stats-team-name {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .fixtures-table-wrapper .season-stats-table .season-stats-team-row .fixture_td_badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 16px;
        height: 18px;
        flex-shrink: 0;
    }

    .fixtures-table-wrapper .season-stats-table .season-stats-team-row .fixture_td_badge svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .fixtures-table-wrapper .season-stats-table thead th {
        font-size: 0.58rem;
        letter-spacing: -0.02em;
    }

    .fixtures-table-wrapper .season-stats-table tbody td {
        font-size: 0.68rem;
    }

    .fixtures-table-wrapper .season-stats-table .season-stats-team-row .fixture_td_badge {
        width: 14px;
        height: 16px;
    }

    .fixtures-table-wrapper .season-stats-table .season-stats-team-row .fixture_td_badge svg {
        width: 14px;
        height: 14px;
    }
}

/* Stats page table styles - smaller font for dense data tables */
.stats-page-bets-table {
    border: 1px solid #000;
}

.stats-page-bets-table tbody td,
.stats-page-bets-table tbody td span,
.stats-page-bets-table tbody td div {
    font-size: 0.9rem !important;
}

.stats-page-bets-table thead th {
    font-size: inherit !important; /* Keep headers at default size */
}

/* Mobile card layout styles for bet-table */
.bet-card-mobile {
    border: 1px solid #ddd;
    border-radius: 4px;
}

.bet-card-mobile.success {
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

.bet-card-mobile.danger {
    background-color: #f2dede;
    border-color: #ebccd1;
}

.bet-card-mobile.active {
    background-color: #f5f5f5;
    border-color: #e0e0e0;
}

.bet-text-mobile {
    font-size: 0.9rem;
    line-height: 1.4;
}

.bet-odds-mobile {
    font-size: 0.9rem;
}

.bet-sbi-mobile {
    font-size: 0.9rem;
    text-align: right;
}

@media (max-width: 575.98px) {
    .bet-card-mobile .card-body {
        padding: 12px;
    }
    
    .bet-text-mobile {
        font-size: 0.85rem;
    }
    
    .bet-odds-mobile,
    .bet-sbi-mobile {
        font-size: 0.85rem;
    }
    
    .bet-card-mobile .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px;
    }
    
    .bet-sbi-mobile {
        text-align: left;
    }
}

/* Combined head-to-head and stats-page-table styles for event match tables */
.h2h-stats-table {
    margin-top: 10px;
    border: 1px solid #000;
    width: 100%;
}

/* Four-column ESPN tables: fixed % widths so stacked tables share the same column grid */
.h2h-stats-table.h2h-stats-table-cols-4 {
    table-layout: fixed;
}

.h2h-stats-table.h2h-stats-table-cols-4 col.h2h-col-season {
    width: 13%;
}

.h2h-stats-table.h2h-stats-table-cols-4 col.h2h-col-home {
    width: 31%;
}

.h2h-stats-table.h2h-stats-table-cols-4 col.h2h-col-score {
    width: 18%;
}

.h2h-stats-table.h2h-stats-table-cols-4 col.h2h-col-away {
    width: 38%;
}

.h2h-stats-table.h2h-stats-table-cols-5:not(.h2h-stats-table-cols-5--bookings) col.h2h-col-season {
    width: 12%;
}

.h2h-stats-table.h2h-stats-table-cols-5:not(.h2h-stats-table-cols-5--bookings) col.h2h-col-home {
    width: 30%;
}

.h2h-stats-table.h2h-stats-table-cols-5:not(.h2h-stats-table-cols-5--bookings) col.h2h-col-score {
    width: 18%;
}

.h2h-stats-table.h2h-stats-table-cols-5:not(.h2h-stats-table-cols-5--bookings) col.h2h-col-away {
    width: 33%;
}

.h2h-stats-table.h2h-stats-table-cols-5 col.h2h-col-info {
    width: 7%;
}

/*
 * mode=bookings: wider middle column (card / booking counts). Tune % here — must sum to 100%.
 * Default grid above: 13 / 31 / 18 / 38
 */
.h2h-stats-table.h2h-stats-table-cols-4--bookings col.h2h-col-season {
    width: 11%;
}

.h2h-stats-table.h2h-stats-table-cols-4--bookings col.h2h-col-home {
    width: 26%;
}

.h2h-stats-table.h2h-stats-table-cols-4--bookings col.h2h-col-score {
    width: 28%;
}

.h2h-stats-table.h2h-stats-table-cols-4--bookings col.h2h-col-away {
    width: 35%;
}

.h2h-stats-table.h2h-stats-table-cols-5--bookings col.h2h-col-season {
    width: 10%;
}

.h2h-stats-table.h2h-stats-table-cols-5--bookings col.h2h-col-home {
    width: 24%;
}

.h2h-stats-table.h2h-stats-table-cols-5--bookings col.h2h-col-score {
    width: 26%;
}

.h2h-stats-table.h2h-stats-table-cols-5--bookings col.h2h-col-away {
    width: 32%;
}

.h2h-stats-table.h2h-stats-table-cols-5--bookings col.h2h-col-info {
    width: 8%;
}

.h2h-stats-table > tbody > tr > td {
    vertical-align: middle;
    white-space: nowrap;
}

/* Dense horizontal padding — small gaps between columns only */
.h2h-stats-table.table-sm > :not(caption) > * > * {
    padding-left: 0.1875rem !important;
    padding-right: 0.1875rem !important;
}

.h2h-stats-table.table-sm > tbody > tr > td:first-child {
    padding-left: 0.35rem !important;
}

.h2h-stats-table.table-sm > tbody > tr > td:last-child {
    padding-right: 0.35rem !important;
}

.h2h-stats-table.table-sm thead > tr > th {
    padding-left: 0.35rem !important;
    padding-right: 0.35rem !important;
}

.h2h-stats-table.table-sm tbody > tr > td.match-score {
    padding: 0.2rem 0.5rem !important;
}

.h2h-stats-table .fixture_td_badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 28px;
    flex-shrink: 0;
}

.h2h-stats-table .fixture_td_badge svg {
    width: 25px;
    height: 25px;
}

.h2h-stats-table .home-team-name .d-flex.gap-2,
.h2h-stats-table .away-team-name .d-flex.gap-2 {
    gap: 0.25rem !important;
    flex-wrap: nowrap;
}

.h2h-stats-table tbody td,
.h2h-stats-table tbody td span,
.h2h-stats-table tbody td div {
    font-size: 0.9rem !important;
}

.h2h-stats-table thead th {
    font-size: inherit !important; /* Keep headers at default size */
}

.h2h-stats-table tbody > tr > td.season-name {
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
}

.h2h-stats-table tbody > tr > td.season-name .competition_flag {
    margin-right: 3px;
    vertical-align: middle;
}

.h2h-stats-table tbody > tr > td.home-team-name {
    text-align: right;
}

.h2h-stats-table tbody > tr > td.home-team-name > div {
    justify-content: flex-end;
    min-width: 0;
    max-width: 100%;
}

.h2h-stats-table tbody > tr > td.home-team-name > div > span:first-child {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.h2h-stats-table tbody > tr > td.match-score {
    text-align: center;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
}

.h2h-stats-table tbody > tr > td.match-score a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Bookings: show full score cell content; scroll inside cell if still wider than column */
.h2h-stats-table.h2h-stats-table-cols-4--bookings tbody > tr > td.match-score {
    overflow-x: auto;
    overflow-y: hidden;
    text-overflow: unset;
}

.h2h-stats-table.h2h-stats-table-cols-4--bookings tbody > tr > td.match-score a {
    display: inline-block;
    max-width: none;
    overflow: visible;
    text-overflow: unset;
    white-space: nowrap;
}

.h2h-stats-table tbody > tr > td.away-team-name {
    text-align: left;
}

.h2h-stats-table tbody > tr > td.away-team-name > div {
    justify-content: flex-start;
    min-width: 0;
    max-width: 100%;
}

.h2h-stats-table tbody > tr > td.away-team-name > div > span:last-child {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.h2h-stats-table tbody > tr > td.match-knockout-info {
    text-align: center;
    white-space: nowrap;
}

.h2h-stats-table tbody td span.h2h-knockout-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.95rem !important;
    font-weight: 400;
    line-height: 1;
    cursor: default;
    user-select: none;
}

.h2h-stats-table tbody td span.h2h-knockout-info .bi {
    font-size: 0.95rem;
}

.tooltip.h2h-knockout-tooltip {
    --bs-tooltip-bg: #fff;
    --bs-tooltip-color: #212529;
    --bs-tooltip-opacity: 1;
}

.tooltip.h2h-knockout-tooltip .tooltip-inner {
    max-width: 280px;
    padding: 8px 12px;
    background: #fff;
    color: #212529;
    border: 1px solid #dee2e6;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
}

.tooltip.h2h-knockout-tooltip .h2h-knockout-tip-loss {
    color: #dc3545;
    margin-right: 0.35rem;
    vertical-align: -1px;
}

.tooltip.h2h-knockout-tooltip .h2h-knockout-tip-win {
    color: #198754;
    margin-right: 0.35rem;
    vertical-align: -1px;
}

/* ESPN preview stat tabs (O2.5, BTTS, corners, bookings) — fit iPhone-width viewports without horizontal scroll */
@media (max-width: 768px) {
    .kpi-label-enhanced {
        font-size: 0.78rem;
    }

    .kpi-stats-container {
        font-size: 0.78em;
    }

    .kpi-stats-table thead th {
        font-size: 0.78em;
    }

    .h2h-stats-table tbody td,
    .h2h-stats-table tbody td span,
    .h2h-stats-table tbody td div {
        font-size: 0.78rem !important;
    }

    .h2h-stats-table .fixture_td_badge {
        width: 18px;
        height: 20px;
    }

    .h2h-stats-table .fixture_td_badge svg {
        width: 18px;
        height: 18px;
    }

    .h2h-stats-table .home-team-name .d-flex.gap-2,
    .h2h-stats-table .away-team-name .d-flex.gap-2 {
        gap: 0.15rem !important;
    }

    /* Slightly wider score column for corners / score modes */
    .h2h-stats-table.h2h-stats-table-cols-4:not(.h2h-stats-table-cols-4--bookings) col.h2h-col-season {
        width: 12%;
    }

    .h2h-stats-table.h2h-stats-table-cols-4:not(.h2h-stats-table-cols-4--bookings) col.h2h-col-home {
        width: 30%;
    }

    .h2h-stats-table.h2h-stats-table-cols-4:not(.h2h-stats-table-cols-4--bookings) col.h2h-col-score {
        width: 20%;
    }

    .h2h-stats-table.h2h-stats-table-cols-4:not(.h2h-stats-table-cols-4--bookings) col.h2h-col-away {
        width: 38%;
    }

    .h2h-stats-table.h2h-stats-table-cols-5:not(.h2h-stats-table-cols-5--bookings) col.h2h-col-season {
        width: 11%;
    }

    .h2h-stats-table.h2h-stats-table-cols-5:not(.h2h-stats-table-cols-5--bookings) col.h2h-col-home {
        width: 28%;
    }

    .h2h-stats-table.h2h-stats-table-cols-5:not(.h2h-stats-table-cols-5--bookings) col.h2h-col-score {
        width: 20%;
    }

    .h2h-stats-table.h2h-stats-table-cols-5:not(.h2h-stats-table-cols-5--bookings) col.h2h-col-away {
        width: 34%;
    }

    .h2h-stats-table.h2h-stats-table-cols-5 col.h2h-col-info {
        width: 7%;
    }

    .h2h-stats-table .card-badge {
        min-width: 15px;
        height: 18px;
        line-height: 18px;
        font-size: 9px;
        padding: 0 2px;
    }

    .h2h-stats-table.h2h-stats-table-cols-4--bookings tbody > tr > td.match-score .mx-2 {
        margin-left: 0.15rem !important;
        margin-right: 0.15rem !important;
    }

    .h2h-stats-table.h2h-stats-table-cols-4--bookings tbody > tr > td.match-score .gap-1 {
        gap: 0.15rem !important;
    }

    .h2h-stats-table.h2h-stats-table-cols-4--bookings tbody > tr > td.match-score {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .h2h-stats-table.h2h-stats-table-cols-4--bookings tbody > tr > td.match-score a {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 480px) {
    .kpi-label-enhanced {
        font-size: 0.72rem;
    }

    .kpi-stats-container {
        font-size: 0.72em;
    }

    .h2h-stats-table tbody td,
    .h2h-stats-table tbody td span,
    .h2h-stats-table tbody td div {
        font-size: 0.72rem !important;
    }

    .h2h-stats-table.table-sm > :not(caption) > * > * {
        padding-left: 0.125rem !important;
        padding-right: 0.125rem !important;
    }

    .h2h-stats-table.table-sm tbody > tr > td.match-score {
        padding: 0.15rem 0.25rem !important;
    }

    .h2h-stats-table .fixture_td_badge {
        width: 16px;
        height: 18px;
    }

    .h2h-stats-table .fixture_td_badge svg {
        width: 16px;
        height: 16px;
    }

    .h2h-stats-table .card-badge {
        min-width: 13px;
        height: 16px;
        line-height: 16px;
        font-size: 8px;
        padding: 0 1px;
        border-radius: 2px;
    }
}

/* Footer Styles */
.bs-docs-footer {
    padding-top: 60px;
    padding-bottom: 30px;
    margin-top: 0px;
    color: #dbdbdb;
    background-color: #000;
}

/* Footer columns container - using flexbox for better layout */
.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 30px;
    margin-bottom: 50px;
}

.footer-column {
    flex: 1 1 250px;
    min-width: 150px;
}

.footer-heading {
    color: var(--sb-orange);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(255, 149, 45, 0.3);
    padding-bottom: 8px;
}

.footer-heading-stacked {
    margin-top: 28px;
}

.footer-links {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.footer-links li {
    padding-bottom: 8px;
    transition: transform 0.2s ease;
}

.footer-links li:hover {
    transform: translateX(3px);
}

.bs-docs-footer a {
    color: #dbdbdb;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    padding: 2px 0;
}

.bs-docs-footer a:hover {
    color: var(--sb-orange);
    text-decoration: none;
    transform: translateX(2px);
}

/* Footer bottom section with logos */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 20px;
    text-align: center;
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-logo {
    height: 45px;
    width: auto;
    opacity: 0.9;
    transition: all 0.3s ease;
    filter: grayscale(0%);
}

.footer-logo:hover {
    opacity: 1;
    transform: translateY(-2px) scale(1.05);
    filter: grayscale(0%);
}

.footer-version {
    color: #999;
    font-size: 0.875rem;
    font-weight: normal;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Legacy support for old span-based layout */
.bs-docs-footer span {
    float: left;
    width: 190px;
}

.footer_icon {
    width: 20px;
    height: auto;
    margin-top: -9px;
    margin-right: 6px;
    vertical-align: middle;
}

.flag_icon {
    width: 20px;
    height: auto;
    vertical-align: middle;
    margin-right: 6px;
    border: 1px solid #ddd;
    border-radius: 2px;
}

/* Odds badges styling */
.odds-container {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: center;
    flex-direction: row;
}

.odds-container .btn {
    flex-shrink: 0;
    white-space: nowrap;
    margin: 0;
}

.odds-badge-plain {
    display: inline-block;
    background-color: transparent;
    color: #000000;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: normal;
    font-size: 12px;
    min-width: 45px;
    text-align: center;
    white-space: nowrap;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.odds-badge {
    display: inline-block;
    background-color: transparent;
    color: #017b5b;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: normal;
    font-size: 12px;
    min-width: 45px;
    text-align: center;
    white-space: nowrap;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.odds-badge-lowest {
    background-color: #017b5b;
    color: #fedf1b;
}

.odds-badge-lowest:hover {
    background-color: #015a44;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

a.odds-badge {
    text-decoration: none;
}

a.odds-badge:hover {
    color: #fedf1b;
    text-decoration: none;
}

@media (max-width: 991.98px) {

    .odds-badge-plain {
        font-size: 12px;
        padding: 3px 8px;
        min-width: 35px;
    }

    .odds-badge {
        font-size: 12px;
        padding: 3px 8px;
        min-width: 35px;
    }

    .odds-container {
        gap: 4px;
        flex-wrap: wrap;
    }
}

/* Stats button styling */
.btn-stats {
    color: #042d47;
    border: 1px solid #042d47;
}

.btn-stats:hover {
    background-color: #042d47;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    text-decoration: none;
}

.btn-stats:focus {
    background-color: #042d47;
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(5, 65, 97, 0.25);
}

/* Clear floats for footer container */
.bs-docs-footer .container::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive footer */
@media (max-width: 991.98px) {
    .bs-docs-footer {
        padding-top: 40px;
        padding-bottom: 25px;
    }
    
    .footer-columns {
        gap: 30px 20px;
        margin-bottom: 40px;
    }
    
    .footer-column {
        flex: 1 1 calc(50% - 20px);
        min-width: 140px;
    }
    
    .footer-logos {
        gap: 15px;
    }
    
    .footer-logo {
        height: 40px;
    }
    
    /* Legacy support */
    .bs-docs-footer span {
        width: 100%;
        float: none;
        margin-bottom: 30px;
    }
}

@media (max-width: 575.98px) {
    .footer-column {
        flex: 1 1 100%;
    }
    
    .footer-logos {
        gap: 12px;
    }
    
    .footer-logo {
        height: 35px;
    }
    
    .footer-heading {
        font-size: 0.9rem;
    }
}

/* Extra small button - smaller than btn-sm */
.btn-xs {
    padding: 0.125rem 0.375rem;
    font-size: 0.75rem;
    line-height: 1.4;
    border-radius: 0.2rem;
}

/* Free bet button styling - match odds-badge green color */
.btn-outline-primary.free_bet1 {
    color: #017b5b;
    border-color: #017b5b;
}

.btn-outline-primary.free_bet1:hover {
    color: #fedf1b;
    background-color: #017b5b;
    border-color: #017b5b;
    
}

.btn-outline-primary.free_bet1:focus,
.btn-outline-primary.free_bet1:active {
    color: #fff;
    background-color: #015a44;
    border-color: #015a44;
    box-shadow: 0 0 0 0.2rem rgba(1, 123, 91, 0.25);
}

/* Card badge styles for yellow and red cards */
.card-badge {
    display: inline-block;
    min-width: 20px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    font-weight: bold;
    font-size: 11px;
    color: white;
    border-radius: 3px;
    padding: 0 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.card-badge-yellow {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    border: 1px solid #DAA520;
}

.card-badge-red {
    background: linear-gradient(135deg, #DC143C 0%, #8B0000 100%);
    border: 1px solid #8B0000;
}

.sbi-tooltip {
    color: white;
    text-align: center;
}

/* Collapsible section styles */
.collapsible-header-bar {
    background-color: var(--sb-blue-dark);
    color: white;
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 0;
}

.collapsible-header-bar strong {
    color: white;
    font-size: 1.1em;
}

.collapsible-header-bar .bi-chevron-down {
    transition: transform 0.3s ease;
    display: inline-block;
    color: white;
}

.collapsible-header-bar[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.bookings-section-collapsible,
.corners-section-collapsible,
.btts-section-collapsible {
    margin-top: 20px;
}

/* Chat widget styles - embedded seamless design */
.chat-widget {
    height: 800px;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    background-color: #fff;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    margin-bottom: 1rem;
}

.chat-content {
    flex: 1;
    overflow-y: auto;
    background-color: #f8f9fa;
    background-image: linear-gradient(135deg, rgba(5, 65, 97, 0.03) 0%, rgba(5, 65, 97, 0.08) 100%);
    display: flex;
    flex-direction: column;
}

.chat-message-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 10px 8px;
    overflow-y: auto;
    min-height: 0;
}

.chat-buttons-container {
    padding: 12px 8px 8px 8px;
    border-top: 1px solid rgba(5, 65, 97, 0.1);
    background-color: #fff;
    flex-shrink: 0;
}

.chat-input-container {
    padding: 12px 8px 8px 8px;
    border-top: 1px solid rgba(5, 65, 97, 0.1);
    background-color: #fff;
    flex-shrink: 0;
}

.chat-input-form {
    margin-bottom: 0;
}

.chat-input-form .input-group {
    display: flex;
    gap: 8px;
}

.chat-input-form .form-control {
    flex: 1;
    border: 1px solid rgba(5, 65, 97, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
}

.chat-input-form .form-control:focus {
    border-color: var(--sb-blue-dark);
    outline: none;
    box-shadow: 0 0 0 2px rgba(5, 65, 97, 0.1);
}

.chat-input-form .btn {
    border-radius: 8px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
}

.chat-input-form .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.chat-messages-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 100%;
    padding-bottom: 8px;
}

/* Chat message wrapper */
.chat-message-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    animation: messageEnter 0.4s ease-out forwards;
}

.chat-message-wrapper.message-right {
    flex-direction: row;
    justify-content: flex-end;
}

.chat-message-wrapper.message-enter {
    animation: messageEnter 0.4s ease-out forwards;
}

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

/* Chat avatar */
.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
    background-color: var(--sb-blue-dark);
}

/* Chat message content */
.chat-message-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: calc(100% - 50px);
}

.chat-message-wrapper.message-right .chat-message-content {
    align-items: flex-end;
}

.chat-message-name {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 2px;
    text-align: left;
}

.chat-message-wrapper.message-right .chat-message-name {
    text-align: right;
}

/* Chat message bubble */
.chat-message-bubble {
    background-color: #f1f1f1;
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 100%;
    word-wrap: break-word;
    line-height: 1.4;
    font-size: 14px;
    color: #333;
    position: relative;
    border: 1px solid #d0d0d0;
}

/* Markdown formatting within chat bubbles */
.chat-message-bubble p {
    margin: 0 0 8px 0;
}

.chat-message-bubble p:last-child {
    margin-bottom: 0;
}

.chat-message-bubble strong,
.chat-message-bubble b {
    font-weight: 600;
    color: #054161;
}

.chat-message-bubble em,
.chat-message-bubble i {
    font-style: italic;
}

.chat-message-bubble ul,
.chat-message-bubble ol {
    margin: 8px 0;
    padding-left: 20px;
}

.chat-message-bubble li {
    margin: 4px 0;
}

.chat-message-bubble h1,
.chat-message-bubble h2,
.chat-message-bubble h3,
.chat-message-bubble h4,
.chat-message-bubble h5,
.chat-message-bubble h6 {
    margin: 12px 0 8px 0;
    font-weight: 600;
    color: #054161;
}

.chat-message-bubble h1 { font-size: 1.5em; }
.chat-message-bubble h2 { font-size: 1.3em; }
.chat-message-bubble h3 { font-size: 1.1em; }
.chat-message-bubble h4,
.chat-message-bubble h5,
.chat-message-bubble h6 { font-size: 1em; }

.chat-message-bubble code {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
}

.chat-message-bubble pre {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 8px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 8px 0;
}

.chat-message-bubble pre code {
    background: none;
    padding: 0;
}

.chat-message-bubble hr {
    border: none;
    border-top: 1px solid #d0d0d0;
    margin: 12px 0;
}

.chat-message-bubble blockquote {
    border-left: 3px solid #054161;
    padding-left: 12px;
    margin: 8px 0;
    color: #666;
}

.chat-message-bubble::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 12px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #f1f1f1;
    box-shadow: -1px 0 0 0 #d0d0d0;
}

.chat-message-bubble.bubble-right {
    background-color: #e3f2fd;
    color: #333;
    border: 1px solid #90caf9;
}

.chat-message-bubble.bubble-right::before {
    left: auto;
    right: -9px;
    border-right: none;
    border-left: 8px solid #e3f2fd;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    box-shadow: 1px 0 0 0 #90caf9;
}

/* System message bubble */
.chat-message-bubble.bubble-system {
    background-color: #f1f1f1;
    color: #333;
    border: 1px solid #d0d0d0;
}

.chat-message-bubble.bubble-system::before {
    border-right-color: #f1f1f1;
    box-shadow: -1px 0 0 0 #d0d0d0;
}

/* Typing indicator */
.typing-indicator-wrapper {
    opacity: 1;
    transform: translateY(0);
    animation: none;
}

.typing-bubble {
    background-color: #f1f1f1;
    padding: 10px 14px;
    border-radius: 12px;
    width: 50px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-message-wrapper.message-right .typing-bubble {
    background-color: #e3f2fd;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #999;
    animation: typingDot 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

.btn-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}

/* Register page feature styles */
.register-features-title {
    color: var(--sb-blue-dark);
    font-weight: 700;
}

.register-feature-heading {
    color: var(--sb-blue-dark);
    font-weight: 600;
}

.register-feature-icon {
    width: 40px;
    height: 40px;
    background-color: var(--sb-blue-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-feature-icon.highlight {
    background-color: var(--sb-orange);
}

/* Register page section headers - matching fixtures table date headers */
.register-section-header {
    background-color: var(--sb-blue-dark) !important;
    color: #fff !important;
    font-weight: 600;
    font-size: 16px;
    padding: 16px 20px !important;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.3px;
    margin: 0;
}

/* Register page KPI value styling */
.register-kpi-value {
    color: var(--sb-blue-dark);
}

.register-kpi-value-small {
    font-size: 0.9rem;
}

/* World Cup Player Picks (games) */
.wc-picks-banner-jerseys {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: center;
    gap: 0.5rem 0.65rem;
    max-width: 36rem;
    margin: 0 auto;
}

.wc-picks-banner-jersey {
    width: 44px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.wc-picks-banner-jersey svg {
    width: 100%;
    height: 100%;
}

.wc-picks-top-banner .team_name {
    font-size: 1.5rem;
    max-width: 28rem;
    white-space: normal;
    line-height: 1.25;
}

.wc-picks-top-banner .match_date {
    font-size: 1.05rem;
}

.wc-entry-user-name {
    font-size: 1.05rem;
    line-height: 1.3;
    word-break: break-word;
}

.wc-entry-picks-table {
    width: auto;
    max-width: 100%;
}

.wc-entry-picks-table th,
.wc-entry-picks-table td {
    padding: 0.15rem 0.45rem;
    vertical-align: middle;
}

.wc-entry-picks-table .wc-pick-col {
    width: 2.25rem;
    white-space: nowrap;
    padding-right: 0.25rem !important;
}

.wc-entry-picks-table .wc-goals-col,
.wc-entry-picks-table .wc-goals-cell {
    width: 1%;
    white-space: nowrap;
    text-align: center;
    padding-left: 0.65rem !important;
    padding-right: 0.65rem !important;
}

.wc-entry-picks-table .wc-chip-jersey svg {
    width: 16px;
    height: 16px;
}

.wc-entry-picks-table .wc-chip-name {
    font-size: 0.8125rem;
}

.wc-entry-picks-table .wc-chip-team-logo {
    width: 16px;
    height: 16px;
}

.wc-entry-picks-table thead th {
    font-size: 0.75rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.wc-entry-picks-table tfoot td {
    padding-top: 0.25rem;
    padding-bottom: 0.35rem;
    font-size: 0.875rem;
}

.wc-player-chip,
.wc-team-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    min-width: 0;
    line-height: 1.25;
}

.wc-chip-jersey {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.wc-chip-jersey svg {
    width: 20px;
    height: 20px;
}

.wc-jersey-num {
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 1rem;
    text-align: center;
}

.wc-chip-name {
    font-size: 0.9rem;
    word-break: break-word;
}

.wc-chip-team-logo {
    object-fit: contain;
    flex-shrink: 0;
}

.wc-stats-table .wc-player-chip,
.wc-stats-table .wc-team-chip {
    font-size: 0.9rem;
}

.wc-rank-col {
    width: 2rem;
    padding-left: 0.75rem !important;
}

.wc-picker-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.wc-picker-field .form-select {
    flex: 1;
    min-width: 0;
}

.wc-team-logo-preview {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wc-team-logo-preview:empty {
    display: none;
}

.wc-player-jersey-preview {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    min-width: 2rem;
}

.wc-player-jersey-preview:empty {
    display: none;
}

.wc-player-jersey-preview .wc-jersey-num {
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    min-width: 1.1rem;
    text-align: center;
}

.wc-player-jersey-preview svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 767.98px) {
    .wc-picks-banner-jersey {
        width: 36px;
        height: 42px;
    }

    .wc-picks-banner-jerseys {
        gap: 0.35rem 0.45rem;
    }

    .wc-picks-table thead {
        display: none;
    }

    .wc-pick-row {
        display: block;
    }

    .wc-pick-row > td {
        display: block;
        width: 100%;
        border: none;
    }

    .wc-pick-row > td:first-child {
        padding-bottom: 0 !important;
        font-size: 0.85rem;
    }

    .wc-picks-table > tbody > tr.wc-player-pick-row:nth-child(odd),
    .wc-picks-table > tbody > tr.wc-player-pick-row:nth-child(odd) > td {
        background-color: #f9f9f9;
    }

    .wc-player-pick-row > td[data-label="Team"] {
        padding-top: 0.65rem !important;
        padding-bottom: 0.25rem !important;
    }

    .wc-player-pick-row > td[data-label="Player"] {
        padding-top: 0 !important;
        padding-bottom: 0.65rem !important;
    }

    .wc-player-pick-row > td[data-label="Player"] .form-label {
        margin-bottom: 0.25rem;
    }

    .wc-bonus-row > td[colspan] {
        padding-top: 0.75rem !important;
    }
}

.wc-rules-link {
    color: var(--sb-orange) !important;
    font-weight: 600;
    text-decoration: underline;
}

.wc-rules-link:hover,
.wc-rules-link:focus {
    color: var(--sb-blue-dark) !important;
}

.wc-rules-modal .modal-dialog {
    max-width: calc(100% - 1rem);
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 576px) {
    .wc-rules-modal .modal-dialog {
        max-width: min(56rem, calc(100% - 2rem));
    }
}

/* Admin portal responsive layout */
.admin-page {
    min-width: 0;
}

/* Admin home-card preview: badges sit above cards; avoid height:100% overlap */
.admin-home-cards-grid {
    --bs-gutter-x: 1.25rem;
    --bs-gutter-y: 1.75rem;
}

.admin-home-card-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 100%;
}

.admin-home-card-meta {
    flex: 0 0 auto;
    min-height: 1.5rem;
    position: relative;
    z-index: 2;
}

.admin-home-card-frame {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    z-index: 1;
}

.admin-home-card-frame .home-match-card {
    height: auto;
}

.admin-home-card-frame .home-match-card-inner {
    height: auto;
}

.admin-home-card-frame .home-match-card:hover .home-match-card-inner {
    transform: none;
}

.min-w-0 {
    min-width: 0;
}

.admin-nav {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.admin-nav .nav-link {
    white-space: nowrap;
}

.admin-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    width: 100%;
    border-radius: 16px;
}

.admin-table-wrapper table {
    margin-bottom: 0;
}

.admin-users-table {
    min-width: 860px;
}

.admin-access-codes-table {
    min-width: 780px;
}

.admin-activity-table {
    min-width: 680px;
}

.admin-detail-grid {
    display: grid;
    grid-template-columns: minmax(7.25rem, max-content) minmax(0, 1fr);
    gap: 0.4rem 0.75rem;
}

.admin-detail-grid dt {
    color: var(--bs-secondary-color);
    font-weight: 600;
}

.admin-detail-grid dd {
    margin-bottom: 0;
    min-width: 0;
}

.admin-card-actions {
    display: grid;
    gap: 0.5rem;
}

.admin-card-actions .btn,
.admin-card-actions form,
.admin-card-actions form .btn {
    width: 100%;
}

@media (max-width: 767.98px) {
    .admin-page {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .admin-page-header {
        align-items: stretch !important;
    }

    .admin-page-heading,
    .admin-summary-card,
    .admin-page-header > .btn {
        width: 100%;
    }

    .admin-page h1 {
        font-size: clamp(1.5rem, 8vw, 2rem);
        line-height: 1.1;
    }

    .admin-summary-card .card-body {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    .admin-nav {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        scrollbar-width: thin;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .admin-card-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.lbs-page .lbs-bankroll-card {
    border-left: 4px solid var(--sb-orange, #f57c00);
}

.lbs-page .lbs-match-card .card-header {
    background-color: #f8f9fa;
}

.lbs-leaderboard-table .lbs-rank-col {
    width: 3rem;
}

.lbs-fixture-row:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.lbs-page .fixtures-table-wrapper .lbs-bet-cell {
    min-width: 5rem;
}

.lbs-fixtures-table {
    table-layout: fixed;
    width: 100%;
}

@media (max-width: 991.98px) {
    .lbs-page .fixtures-table-wrapper table.lbs-fixtures-table {
        font-size: 0.8rem;
    }

    .lbs-page .lbs-fixtures-table .lbs-col-team {
        width: 26%;
    }

    .lbs-page .lbs-fixtures-table .lbs-col-jersey {
        width: 28px;
    }

    .lbs-page .lbs-fixtures-table .lbs-col-time {
        width: 48px;
    }

    .lbs-page .lbs-fixtures-table .lbs-col-bet {
        width: 36px;
    }

    .lbs-page .fixtures-table-wrapper table.table-compact tbody tr.lbs-fixture-row td {
        padding-left: 4px !important;
        padding-right: 4px !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    .lbs-page .fixtures-table-wrapper .team-name-cell {
        max-width: none;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .lbs-page .fixtures-table-wrapper tbody tr.lbs-fixture-row td.lbs-jersey-cell {
        width: 26px;
    }

    .lbs-page .fixtures-table-wrapper tbody tr.lbs-fixture-row td.lbs-time-cell {
        width: 46px;
    }

    .lbs-page .fixtures-table-wrapper tbody tr.lbs-fixture-row td.lbs-time-cell .badge {
        font-size: 0.65rem;
        padding: 0.2em 0.35em;
    }

    .lbs-page .fixtures-table-wrapper .fixture_td_badge svg {
        width: 22px;
        height: 22px;
    }

    .lbs-page .fixtures-table-wrapper .lbs-bet-cell {
        width: 2.25rem;
        min-width: 2.25rem;
        max-width: 2.25rem;
        padding-left: 2px !important;
        padding-right: 2px !important;
    }

    .lbs-page .lbs-bet-btn {
        padding: 0.15rem 0.3rem;
        line-height: 1;
    }

    .lbs-page .lbs-bet-btn .bi-chevron-right {
        font-size: 1rem;
    }

    .lbs-page .lbs-mobile-bet-indicator {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 1.15rem;
        height: 1.15rem;
        font-size: 0.65rem;
        font-weight: 700;
        line-height: 1;
        border-radius: 50%;
        background-color: var(--bs-primary);
        color: #fff;
    }
}

.lbs-bet-modal .modal-dialog {
    max-width: min(25rem, calc(100% - 2rem));
    width: calc(100% - 2rem);
    margin-left: auto;
    margin-right: auto;
}

.lbs-modal-content {
    overflow: hidden;
}

.lbs-modal-content .modal-body {
    padding-left: 1rem;
    padding-right: 1rem;
}

.lbs-modal-content .modal-body .row.mx-0 {
    margin-left: 0;
    margin-right: 0;
}

.lbs-modal-content .modal-header.sb-card-header {
    border-radius: 0;
}

.lbs-modal-markets-wrap {
    width: 100%;
    max-width: 100%;
}

.lbs-market-section {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1.25rem;
    text-align: center;
}

.lbs-market-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
    text-align: center;
}

.lbs-odds-tiles {
    width: 100%;
    max-width: 100%;
    justify-content: center;
}

.lbs-odds-tile {
    display: block;
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background: #fff;
    padding: 0.5rem 0.65rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
}

.lbs-odds-tile:hover {
    border-color: var(--sb-orange, #f57c00);
}

.lbs-odds-tile.is-selected {
    border-color: var(--sb-orange, #f57c00);
    background-color: rgba(245, 124, 0, 0.08);
    box-shadow: 0 0 0 1px var(--sb-orange, #f57c00);
}

.lbs-odds-tile-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.lbs-odds-tile-price {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #054161;
}

.lbs-bet-panel {
    width: 100%;
    margin-top: 0.5rem;
}

.lbs-existing-bet {
    width: 100%;
    text-align: center;
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background: #f8f9fa;
}

.lbs-existing-bet-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.lbs-existing-bet-selection {
    font-size: 1.1rem;
    font-weight: 700;
    color: #054161;
    margin-bottom: 0.25rem;
}

.lbs-existing-bet-market {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.lbs-existing-bet-details {
    font-size: 0.9rem;
    color: #495057;
}

.lbs-bet-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.lbs-bet-list .lbs-existing-bet {
    margin-bottom: 0;
}

.lbs-lb-bets-btn,
.wcp-points-btn {
    font-weight: 700;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    min-width: 2.5rem;
    line-height: 1.2;
}

.wcp-leaderboard-table .wcp-rank-col {
    width: 3rem;
}

.wcp-fixture-row:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.wcp-fixtures-table {
    table-layout: fixed;
    width: 100%;
}

.wcp-page .wcp-score-input {
    max-width: 3.25rem;
    min-width: 2.75rem;
    text-align: center;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.wcp-page .wcp-score-input:disabled {
    background-color: #e9ecef;
    opacity: 1;
    cursor: default;
}

.wcp-page .fixtures-table-wrapper .wcp-action-cell {
    min-width: 4.25rem;
}

.wcp-page .wcp-score-row-cell {
    background-color: #f8f9fa;
    border-top: none !important;
    padding-top: 0 !important;
}

.wcp-page .wcp-points-badge {
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .wcp-page .fixtures-table-wrapper table.wcp-fixtures-table {
        font-size: 0.8rem;
    }

    .wcp-page .wcp-fixtures-table .wcp-col-team {
        width: 26%;
    }

    .wcp-page .wcp-fixtures-table .wcp-col-jersey {
        width: 28px;
    }

    .wcp-page .wcp-fixtures-table .wcp-col-time {
        width: 48px;
    }

    .wcp-page .wcp-fixtures-table .wcp-col-score {
        width: 0;
        display: none;
    }

    .wcp-page .wcp-fixtures-table .wcp-col-action {
        width: 0;
        display: none;
    }

    .wcp-page .fixtures-table-wrapper table.table-compact tbody tr.wcp-fixture-row td {
        padding-left: 4px !important;
        padding-right: 4px !important;
        padding-top: 8px !important;
        padding-bottom: 4px !important;
    }

    .wcp-page .fixtures-table-wrapper .team-name-cell {
        max-width: none;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .wcp-page .fixtures-table-wrapper tbody tr.wcp-fixture-row td.wcp-jersey-cell {
        width: 26px;
    }

    .wcp-page .fixtures-table-wrapper tbody tr.wcp-fixture-row td.wcp-time-cell {
        width: 46px;
    }

    .wcp-page .fixtures-table-wrapper tbody tr.wcp-fixture-row td.wcp-time-cell .badge {
        font-size: 0.65rem;
        padding: 0.2em 0.35em;
    }

    .wcp-page .fixtures-table-wrapper .fixture_td_badge svg {
        width: 22px;
        height: 22px;
    }
}

@media (min-width: 992px) {
    .wcp-page .wcp-fixtures-table .wcp-col-score {
        width: 3.25rem;
    }

    .wcp-page .wcp-fixtures-table .wcp-col-action {
        width: 4.5rem;
    }

    .wcp-page .wcp-fixtures-table .wcp-col-time {
        width: 4rem;
    }
}

@media (max-width: 991.98px) {
    .wcp-page .wcp-desktop-thead {
        display: none;
    }
}

/* World Cup home page */
.home-wc-intro-grid {
    display: grid;
    gap: 1rem;
    grid-template-areas:
        "title"
        "buttons"
        "banner"
        "games";
}

.home-wc-intro-title { grid-area: title; }
.home-wc-intro-buttons { grid-area: buttons; }
.home-wc-intro-banner { grid-area: banner; }
.home-wc-intro-games { grid-area: games; }

.home-wc-intro-banner-img {
    display: block;
    border-radius: 0.375rem;
}

@media (min-width: 992px) {
    .home-wc-intro-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "title banner"
            "buttons banner"
            "games banner";
        align-items: start;
        gap: 1.5rem;
    }
}

.home-wc-game-kpi .btn {
    min-width: 7rem;
}

.home-wc-group-accordion .accordion-item,
.home-wc-group-accordion .accordion-item:first-of-type,
.home-wc-group-accordion .accordion-item:last-of-type,
.home-wc-group-accordion .accordion-item:first-of-type .accordion-button,
.home-wc-group-accordion .accordion-item:last-of-type .accordion-button,
.home-wc-group-accordion .accordion-button,
.home-wc-group-accordion .accordion-button.collapsed,
.home-wc-group-accordion .accordion-collapse,
.home-wc-group-accordion .league-table-embedded,
.home-wc-group-accordion .league-table-embedded table {
    border-radius: 0 !important;
}

.home-wc-group-accordion .accordion-button {
    font-size: 0.95rem;
    font-weight: 600;
    background-color: #f8f9fa;
}

.home-wc-group-accordion .accordion-button:not(.collapsed) {
    background-color: #054161;
    color: #fff;
}

.home-wc-group-accordion .accordion-item {
    border-color: rgba(5, 65, 97, 0.15) !important;
}

.home-wc-group-accordion .league-table-embedded {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    box-shadow: none;
    background-color: transparent;
}

.home-wc-group-accordion .league-table-embedded table {
    margin-bottom: 0;
}

.wc-squads-accordion .accordion-item,
.wc-squads-accordion .accordion-item:first-of-type,
.wc-squads-accordion .accordion-item:last-of-type,
.wc-squads-accordion .accordion-item:first-of-type .accordion-button,
.wc-squads-accordion .accordion-item:last-of-type .accordion-button,
.wc-squads-accordion .accordion-button,
.wc-squads-accordion .accordion-button.collapsed,
.wc-squads-accordion .accordion-collapse,
.wc-squads-accordion .wc-squads-stats-scroll,
.wc-squads-accordion .wc-squads-stats-table {
    border-radius: 0 !important;
}

.wc-squads-accordion .wc-squads-stats-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    min-width: 0;
}

.wc-squads-accordion .wc-squads-stats-table {
    table-layout: auto;
    width: max-content;
    min-width: 100%;
    margin-bottom: 0;
}

.wc-squads-accordion .wc-squads-stats-table .wc-squads-player-col {
    white-space: nowrap;
    width: auto;
    max-width: none;
    vertical-align: middle;
}

.wc-squads-accordion .wc-squads-stats-table .wc-squads-player-inner {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.35rem;
    white-space: nowrap;
}

.wc-squads-accordion .wc-squads-stats-table .wc-squads-player-inner .fixture_td_badge,
.wc-squads-accordion .wc-squads-stats-table .wc-squads-player-inner a {
    flex-shrink: 0;
    white-space: nowrap;
}

.wc-squads-accordion .wc-squads-stats-table .wc-squads-player-inner .fixture_td_badge {
    display: inline-flex;
    align-items: center;
}

.wc-squads-accordion .wc-squads-stats-table .wc-squads-pos-col,
.wc-squads-accordion .wc-squads-stats-table .wc-squads-stat-col {
    width: 3.25rem;
    min-width: 3.25rem;
    max-width: 3.25rem;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
}

.wc-squads-accordion .wc-squads-stats-table .wc-squads-stat-col {
    font-variant-numeric: tabular-nums;
}

.wc-squads-accordion .accordion-button {
    font-size: 0.95rem;
    font-weight: 600;
    background-color: #f8f9fa;
}

.wc-squads-accordion .accordion-button:not(.collapsed) {
    background-color: #054161;
    color: #fff;
    box-shadow: none;
}

.wc-squads-accordion .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.wc-squads-accordion .accordion-item {
    border-color: rgba(5, 65, 97, 0.15) !important;
}

.sb-leaderboard-pending-wrap {
    position: relative;
    min-height: 12rem;
}

.sb-leaderboard-pending-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(3px);
}

.sb-leaderboard-pending-overlay--top {
    align-items: flex-start;
    justify-content: center;
    padding-top: 1rem;
}

.sb-leaderboard-pending-message {
    max-width: 16rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #495057;
    line-height: 1.4;
}

.sb-leaderboard-pending-content {
    filter: blur(5px);
    opacity: 0.35;
    pointer-events: none;
    user-select: none;
}

.sb-leaderboard-placeholder-bar {
    display: inline-block;
    width: 7rem;
    height: 0.9rem;
    border-radius: 0.25rem;
    background: linear-gradient(90deg, #dee2e6 0%, #e9ecef 50%, #dee2e6 100%);
}

.sb-leaderboard-placeholder-btn {
    display: inline-block;
    width: 3.5rem;
    height: 1.75rem;
    border-radius: 0.25rem;
    background: linear-gradient(90deg, #ced4da 0%, #dee2e6 50%, #ced4da 100%);
}

/* Home today match board — orange + brand blue */
.home-page {
    --home-ink: #000000;
    --home-card: #ffffff;
    background: #fff;
    padding-bottom: 1rem;
    color: #000;
}

.home-theo-accent {
    color: var(--sb-orange);
    font-weight: 800;
}

.home-intro-band {
    /* Uses .kpi-tile + .kpi-tile-enhanced for the familiar KPI look */
    overflow: visible;
    position: relative;
    z-index: 4;
    padding: 0;
}

.home-intro-band-inner {
    display: grid;
    gap: 1.25rem;
    padding: 1.15rem 1.25rem 1.25rem;
}

@media (min-width: 992px) {
    .home-intro-band-inner {
        grid-template-columns: 1.6fr 0.9fr;
        gap: 1.75rem;
        padding: 1.35rem 1.5rem;
        align-items: stretch;
    }
}

.home-intro-title {
    margin: 0 0 0.7rem;
    color: #000;
    font-size: clamp(1.55rem, 2.5vw, 2.15rem);
    font-weight: 800;
    line-height: 1.15;
}

.home-intro-text {
    margin: 0;
    max-width: 40rem;
    color: #000;
    font-size: 0.98rem;
    line-height: 1.55;
}

.home-intro-signup-link {
    color: var(--sb-orange);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.home-intro-signup-link:hover {
    color: var(--sb-blue-dark);
}

.home-intro-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--sb-blue-dark);
    border: 1px solid rgba(235, 141, 40, 0.45);
    border-radius: 12px;
    padding: 1.1rem 1.15rem;
}

.home-intro-cta-title {
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.home-intro-cta-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.45;
}

.home-intro-cta-btn {
    min-width: 10rem;
}

.home-intro-cta-search {
    align-items: stretch;
    overflow: visible;
    position: relative;
    z-index: 5;
}

.home-intro-search {
    position: relative;
    width: 100%;
    margin: 0;
    z-index: 6;
}

.home-intro-search .sb-nav-search-input {
    background: #fff;
    border-color: rgba(255, 255, 255, 0.35);
    color: #000;
}

.home-intro-search .sb-nav-search-input::placeholder {
    color: rgba(5, 65, 97, 0.55);
}

.home-intro-search .sb-nav-search-input:focus {
    color: #000;
    background: #fff;
    border-color: var(--sb-orange);
    box-shadow: 0 0 0 0.2rem rgba(235, 141, 40, 0.25);
}

.home-intro-search .sb-nav-search-icon {
    color: var(--sb-blue-dark);
}

.home-intro-search .sb-nav-search-results {
    z-index: 30;
    text-align: left;
}

.home-intro-search .sb-nav-search-spinner-wrap .spinner-border {
    color: var(--sb-orange);
}

.home-today-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .home-today-header {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 1.25rem;
    }
}

.home-today-heading {
    border-left: 4px solid var(--sb-orange);
    padding-left: 0.85rem;
}

.home-today-pill {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.45rem;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    background: var(--sb-blue-dark);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    width: fit-content;
}

.home-today-title {
    margin: 0;
    color: #000;
    font-size: clamp(1.55rem, 2.2vw, 1.9rem);
    font-weight: 800;
    line-height: 1.1;
}

.home-today-date {
    color: #000;
    font-size: 0.95rem;
}

.home-today-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.home-count-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(5, 65, 97, 0.18);
    box-shadow: 0 2px 8px rgba(5, 65, 97, 0.06);
    color: #000;
    font-size: 0.82rem;
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
}

.home-count-chip strong {
    color: #000;
    font-size: 0.95rem;
    font-weight: 800;
}

.home-count-chip-accent {
    background: var(--sb-blue-dark);
    border-color: var(--sb-blue-dark);
    color: #fff;
}

.home-count-chip-accent strong {
    color: var(--sb-orange);
}

.home-board-zone {
    padding: 1.25rem 0 1.5rem;
    background: transparent;
}

.home-match-grid {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

@media (min-width: 992px) {
    .home-match-grid {
        --bs-gutter-x: 1.25rem;
        --bs-gutter-y: 1.25rem;
    }
}

.home-match-card {
    display: block;
    color: #000;
    height: 100%;
    animation: homeCardIn 0.45s ease both;
}

.home-matches-loaded .home-match-card:nth-child(2) { animation-delay: 0.05s; }
.home-matches-loaded .home-match-card:nth-child(3) { animation-delay: 0.1s; }

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

.home-match-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--home-card);
    border: 1px solid rgba(5, 65, 97, 0.15);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(5, 65, 97, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.home-match-card:hover {
    color: #000;
}

.home-match-card:hover .home-match-card-inner {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(5, 65, 97, 0.14);
    border-color: rgba(235, 141, 40, 0.55);
}

.home-match-card.is-live .home-match-card-inner {
    border-color: rgba(235, 141, 40, 0.7);
    box-shadow: 0 10px 24px rgba(235, 141, 40, 0.18);
}

.home-match-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--sb-blue-dark);
    color: #fff;
}

.home-match-card-league {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.84rem;
    font-weight: 700;
    min-width: 0;
}

.home-match-card-league span,
.home-match-card-date {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-match-card-date {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.home-match-card-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.home-match-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-width: 3.25rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #fff;
}

.home-match-badge-time,
.home-match-badge-ft,
.home-match-badge-featured {
    background: var(--sb-orange);
    color: #000;
}

.home-match-badge-live {
    background: #fff;
    border: 1px solid var(--sb-orange);
    color: var(--sb-blue-dark);
}

.home-live-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--sb-orange);
    box-shadow: 0 0 0 0 rgba(235, 141, 40, 0.7);
    animation: homeLivePulse 1.4s infinite;
}

@keyframes homeLivePulse {
    0% { box-shadow: 0 0 0 0 rgba(235, 141, 40, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(235, 141, 40, 0); }
    100% { box-shadow: 0 0 0 0 rgba(235, 141, 40, 0); }
}

.home-match-card-body {
    padding: 1.15rem 1.15rem 0.85rem;
    flex: 1 1 auto;
    background: #fff;
}

.home-match-card-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.85rem;
    align-items: center;
    margin-bottom: 0.95rem;
}

.home-match-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    min-width: 0;
}

.home-match-jersey svg {
    width: 3rem;
    height: 3rem;
}

.home-match-team {
    font-size: 1.02rem;
    font-weight: 800;
    color: #000;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.home-match-scorewrap {
    text-align: center;
}

.home-match-score {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    font-size: 2.1rem;
    font-weight: 900;
    color: #000;
    line-height: 1;
}

.home-match-score-sep {
    opacity: 0.45;
}

.home-match-vs {
    font-size: 0.95rem;
    font-weight: 800;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.home-match-day {
    margin-top: 0.15rem;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.1;
    color: rgba(5, 65, 97, 0.72);
}

.home-match-ko {
    margin-top: 0.2rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--sb-orange);
}

.home-match-odds {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.95rem;
}

.home-match-odds span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-align: center;
    background: #fff;
    border: 1px solid rgba(5, 65, 97, 0.18);
    border-radius: 8px;
    padding: 0.4rem 0.45rem;
    font-weight: 800;
    font-size: 0.92rem;
    color: #000;
}

.home-match-odds em {
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 700;
    color: #000;
}

.home-match-enrich {
    margin-top: 0.85rem;
}

.home-match-enrich-pending {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.25rem;
    font-weight: 600;
}

.home-match-chips {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.home-match-events {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 0.15rem;
}

.home-match-section-rule {
    height: 1px;
    width: 100%;
    background: rgba(5, 65, 97, 0.12);
}

.home-match-events-block-title {
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--sb-blue-dark);
}

.home-match-event-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.home-match-event-line {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.55rem;
    border: 1px solid rgba(5, 65, 97, 0.12);
    border-radius: 8px;
    background: #fff;
    color: #000;
    font-size: 0.86rem;
    font-weight: 700;
}

.home-match-event-line.is-away {
    flex-direction: row;
}

.home-match-event-text {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-match-event-minute {
    flex-shrink: 0;
    color: var(--sb-orange);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.home-match-event-icon {
    flex-shrink: 0;
    font-size: 0.95rem;
    line-height: 1;
}

.home-match-event-card-icon {
    width: 0.7rem;
    height: 0.95rem;
    border-radius: 2px;
    flex-shrink: 0;
}

.home-match-event-card-icon.is-yellow {
    background: #f1c40f;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.home-match-event-card-icon.is-red {
    background: #c0392b;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.home-match-event-jersey svg {
    width: 1.25rem;
    height: 1.25rem;
}

.home-match-events.is-finished .home-match-event-columns {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 0.65rem;
}

.home-match-event-pair {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.35rem 0.65rem;
    align-items: start;
}

.home-match-event-pair.is-cards {
    padding-top: 0.35rem;
    border-top: 1px solid rgba(5, 65, 97, 0.1);
}

.home-match-event-side {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.home-match-events.is-finished .home-match-event-line {
    padding: 0.15rem 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 0.8rem;
    font-weight: 700;
    gap: 0.3rem;
}

.home-match-events.is-finished .home-match-event-side.is-home .home-match-event-line {
    justify-content: flex-end;
    text-align: right;
}

.home-match-events.is-finished .home-match-event-side.is-away .home-match-event-line {
    justify-content: flex-start;
    text-align: left;
}

.home-match-events.is-finished .home-match-event-text {
    flex: 0 1 auto;
}

.home-match-team-stats {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-top: 0.15rem;
    border-top: 1px solid rgba(5, 65, 97, 0.12);
}

.home-match-stat-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.5rem;
    padding: 0.28rem 0.15rem;
    font-size: 0.84rem;
    color: #000;
}

.home-match-stat-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--sb-blue-dark);
    text-align: center;
    white-space: nowrap;
}

.home-match-stat-value {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.home-match-stat-value.is-home {
    text-align: left;
}

.home-match-stat-value.is-away {
    text-align: right;
}

.home-match-chips-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #000;
}

.home-theo-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: var(--sb-blue-dark);
    color: #fff;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
}

.home-match-chip {
    background: #fff;
    border: 1px solid rgba(5, 65, 97, 0.12);
    border-left: 4px solid var(--sb-orange);
    border-radius: 10px;
    padding: 0.7rem 0.8rem;
    box-shadow: none;
}

.home-match-chip.is-form { border-left-color: var(--sb-blue-dark); }
.home-match-chip.is-goals { border-left-color: var(--sb-orange); }
.home-match-chip.is-corners { border-left-color: var(--sb-blue-dark); }
.home-match-chip.is-cards { border-left-color: var(--sb-orange); }
.home-match-chip.is-h2h { border-left-color: var(--sb-blue-dark); }
.home-match-chip.is-shots { border-left-color: var(--sb-orange); }

.home-match-chip-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.25rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sb-orange);
}

.home-match-chip-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: currentColor;
}

.home-match-chip-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: #000;
    line-height: 1.35;
}

.home-match-chip-detail {
    margin-top: 0.28rem;
    font-size: 0.8rem;
    color: #000;
    line-height: 1.4;
}

.home-match-chip-jersey svg {
    width: 1.55rem;
    height: 1.55rem;
}

.home-match-card-cta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem 1.15rem;
    border-top: 1px solid rgba(5, 65, 97, 0.12);
    background: #fff;
    font-size: 0.86rem;
    font-weight: 800;
    color: #000;
}

.home-match-card-cta-arrow {
    color: var(--sb-orange);
    transition: transform 0.15s ease;
}

.home-match-card:hover .home-match-card-cta-arrow {
    transform: translateX(3px);
}

.home-match-empty {
    background: #fff;
    border: 1px solid rgba(5, 65, 97, 0.15);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(5, 65, 97, 0.06);
    color: #000;
}

.home-nextup-link {
    color: #000;
    font-weight: 700;
    text-decoration: none;
}

.home-nextup-link:hover {
    color: var(--sb-orange);
}

.home-day-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .home-day-meta {
        align-items: flex-end;
    }
}

.home-footer-strip {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    border-radius: 12px;
    background: var(--sb-blue-dark);
    color: #fff;
    border: 1px solid rgba(235, 141, 40, 0.35);
}

@media (min-width: 768px) {
    .home-footer-strip {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.home-footer-strip-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

.home-footer-dot {
    margin: 0 0.35rem;
    opacity: 0.5;
}

.home-footer-strip .btn-outline-dark {
    background: transparent !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
}

.home-footer-strip .btn-outline-dark:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.home-site-stat-tile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 6.25rem;
    padding: 0.85rem 0.9rem;
    text-align: center;
}

@media (max-width: 575.98px) {
    .home-site-stat-tile {
        min-height: 5.5rem;
        padding: 0.65rem 0.45rem;
    }

    .home-site-stat-tile .kpi-label-enhanced {
        font-size: 0.68rem;
    }

    .home-site-stat-value {
        font-size: 1.05rem;
    }

    .home-site-stat-cta-text {
        font-size: 0.72rem;
    }

    .home-site-stat-cta-action {
        font-size: 0.82rem;
    }
}

.home-site-stat-tile .kpi-label-enhanced {
    margin-bottom: 0.35rem;
    line-height: 1.2;
    font-weight: 600;
}

.home-site-stat-value {
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 500;
    line-height: 1.1;
    color: #000;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.home-site-stat-cta {
    background: linear-gradient(135deg, var(--sb-blue-dark) 0%, #0a5a82 100%);
    border-color: var(--sb-blue-dark);
    color: #fff;
}

.home-site-stat-cta .kpi-label-enhanced {
    color: #fff;
}

.home-site-stat-cta-text {
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.25;
}

.home-site-stat-cta-action {
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--sb-orange);
}

.home-site-stat-cta:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(5, 65, 97, 0.22);
}

.home-match-skeleton-card {
    background: #fff;
    border: 1px solid rgba(5, 65, 97, 0.12);
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 6px 16px rgba(5, 65, 97, 0.05);
}

.home-skel-bar {
    height: 0.7rem;
    border-radius: 999px;
    margin-bottom: 0.7rem;
    background: linear-gradient(90deg, #e8eef2 0%, #f5f8fa 45%, #e8eef2 100%);
    background-size: 200% 100%;
    animation: homeSkelShine 1.2s linear infinite;
}

.home-skel-bar-lg { width: 55%; height: 0.9rem; }
.home-skel-bar-sm { width: 2.5rem; margin: 0; }

.home-skel-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1rem 0 1.1rem;
}

.home-skel-circle {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: linear-gradient(90deg, #e8eef2 0%, #f5f8fa 45%, #e8eef2 100%);
    background-size: 200% 100%;
    animation: homeSkelShine 1.2s linear infinite;
}

.home-skel-caption {
    color: #000;
    font-weight: 600;
}

@keyframes homeSkelShine {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@media (max-width: 575.98px) {
    /* Match other pages: clear side margin between screen edge and content */
    .home-page > .container,
    .home-board-zone > .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .home-match-grid {
        --bs-gutter-x: 0;
        --bs-gutter-y: 0.85rem;
        margin-left: 0;
        margin-right: 0;
    }

    .home-match-grid > [class*='col-'] {
        padding-left: 0;
        padding-right: 0;
    }

    .home-intro-band-inner,
    .home-match-card-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .home-match-jersey svg {
        width: 2.4rem;
        height: 2.4rem;
    }

    .home-match-team {
        font-size: 0.92rem;
    }

    .home-match-score {
        font-size: 1.65rem;
    }

    .home-today-counts {
        gap: 0.4rem;
    }

    .home-count-chip {
        padding: 0.4rem 0.65rem;
    }
}

.stat-board {
    max-width: 28rem;
    margin: 0 auto;
    padding: 0.5rem 1rem 1.5rem;
}

.stat-board-header {
    margin-bottom: 0.85rem;
}

.stat-board-lede {
    color: #667788;
    font-size: 0.92rem;
}

.stat-board-tabs {
    display: flex;
    margin-top: 0.75rem;
    padding: 0.2rem;
    border: 2px solid var(--sb-blue-dark);
    border-radius: 0.85rem;
    background: #fff;
    gap: 0.2rem;
}

.stat-board-tab {
    flex: 1;
    border: 0;
    background: transparent;
    color: var(--sb-blue-dark);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.45rem 0.6rem;
    border-radius: 0.65rem;
}

.stat-board-tab.is-active {
    background: var(--sb-blue-dark);
    color: #fff;
}

.stat-board[data-tab="all"] [data-stat-board-summary="guaranteed"],
.stat-board[data-tab="guaranteed"] [data-stat-board-summary="all"],
.stat-board[data-tab="guaranteed"] .stat-board-card[data-guaranteed="0"] {
    display: none;
}

.stat-board-summary {
    margin-top: 0.75rem;
    padding: 0.85rem 0.95rem 0.8rem;
    border: 2px solid var(--sb-blue-dark);
    border-radius: 0.85rem;
    background: #fff;
}

.stat-board-summary-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}

.stat-board-summary-label {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sb-blue-dark);
}

.stat-board-summary-value {
    font-size: 2.15rem;
    font-weight: 800;
    line-height: 1;
    color: #000;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
}

.stat-board-summary-delta {
    margin-top: 0.4rem;
    font-size: 0.92rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.stat-board-summary-delta.is-plus {
    color: #0a7a3e;
}

.stat-board-summary-delta.is-minus {
    color: #b42318;
}

.stat-board-summary-delta.is-level {
    color: #667788;
}

.stat-board-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-board-card {
    padding: 0.9rem 0.95rem 0.7rem;
}

.stat-board-card-top {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 0.7rem;
}

.stat-board-card-index {
    flex-shrink: 0;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    background: var(--sb-blue-dark);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.1rem;
}

.stat-board-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--sb-blue-dark);
    line-height: 1.2;
    margin: 0;
}

.stat-board-card-subtitle {
    color: #667788;
    font-size: 0.78rem;
    margin-top: 0.15rem;
}

.stat-board-rows {
    list-style: none;
    margin: 0;
    padding: 0;
}

.stat-board-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-top: 1px solid rgba(5, 65, 97, 0.1);
}

.stat-board-row-team {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.stat-board-jersey {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-board-jersey svg {
    width: 100%;
    height: 100%;
}

.stat-board-team-name {
    font-size: 1.02rem;
    font-weight: 800;
    color: #000;
    line-height: 1.2;
}

.stat-board-row-value {
    text-align: right;
    flex-shrink: 0;
}

.stat-board-value {
    display: block;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1;
    color: #000;
    font-variant-numeric: tabular-nums;
}

.stat-board-meta {
    display: block;
    margin-top: 0.15rem;
    color: #667788;
    font-size: 0.72rem;
    font-weight: 600;
}

.stat-board-headline {
    text-align: center;
    padding: 0.15rem 0 0.45rem;
}

.stat-board-headline-value {
    display: block;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    color: #000;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
}

.stat-board-headline .stat-board-meta {
    margin-top: 0.4rem;
    font-size: 0.78rem;
}

.stat-board-score {
    margin-top: 0.35rem;
    padding-top: 0.65rem;
    border-top: 2px solid var(--sb-blue-dark);
}

.stat-board-score-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}

.stat-board-score-label {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sb-blue-dark);
}

.stat-board-score-value {
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1;
    color: #000;
    font-variant-numeric: tabular-nums;
}

.stat-board-note {
    margin-top: 0.35rem;
    color: #667788;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.35;
}
