/*
 * BetPlusWin — Ruby Ice theme
 * Load this file after every other BetPlusWin stylesheet.
 * Palette: #080a0d #12171d #1c232b #c5163c #e32945 #dce2e8 #ffffff
 */

:root {
    --v2-bg: #080a0d;
    --v2-panel: #12171d;
    --v2-panel2: #1c232b;
    --v2-line: #303a45;
    --v2-green: #c5163c;
    --v2-text: #ffffff;
    --v2-muted: #9da8b3;
    --v2-light: #f2f5f7;
    --v2-dark: #111820;
    --bpw-green: #c5163c;
    --bpw-green2: #e32945;
    --bpw-border: #303a45;
    --bpw-muted: #9da8b3;
    --ruby: #c5163c;
    --ruby-live: #e32945;
    --ruby-soft: rgba(197, 22, 60, .14);
    --ice: #dce2e8;
    --graphite: #12171d;
    --graphite-2: #1c232b;
}

html, body, .h2h-app-shell { background: #080a0d !important; }
body.h2h-body {
    color: #fff;
    background:
        radial-gradient(circle at 51% -12%, rgba(197, 22, 60, .17), transparent 30%),
        linear-gradient(180deg, #080a0d 0%, #0a0d11 48%, #080a0d 100%) !important;
}

/* Header */
.h2h-header {
    background: rgba(8, 10, 13, .98) !important;
    border-top: 2px solid #c5163c !important;
    border-bottom: 1px solid #303a45 !important;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .34) !important;
}
.bpw-logo strong, .bpw-footer-logo { color: #fff !important; }
.bpw-logo strong span, .bpw-footer-logo span { color: #e32945 !important; }
.h2h-nav a, .h2h-nav-dropbtn { color: #dce2e8 !important; }
.h2h-nav a:hover, .h2h-nav a.active, .h2h-nav-dropdown.active > a { color: #fff !important; }
.h2h-nav a.active::after { background: #c5163c !important; box-shadow: 0 0 16px rgba(227, 41, 69, .5); }
.h2h-nav-dropdown-menu,
.bpw-live-search-panel {
    background: linear-gradient(180deg, #171d24, #0d1116) !important;
    border-color: #303a45 !important;
}
.h2h-search, .h2h-header-action {
    background: #0e1318 !important;
    border-color: #303a45 !important;
}
.h2h-search:focus-within { border-color: #c5163c !important; box-shadow: 0 0 0 3px rgba(197,22,60,.12); }
.bpw-vip-btn,
.h2h-telegram-btn {
    background: linear-gradient(135deg, #e32945, #a90f31) !important;
    border-color: #e32945 !important;
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(197,22,60,.24) !important;
}

/* Left sidebar */
.h2h-sidebar, .h2h-side-section {
    background: #12171d !important;
    border-color: #303a45 !important;
}
.h2h-sidebar { box-shadow: 0 16px 40px rgba(0,0,0,.2); }
.h2h-side-section { border-bottom-color: #29323b !important; }
.h2h-sidebar a { color: #cbd3db !important; }
.h2h-sidebar a i { color: #9ca7b1 !important; }
.h2h-sidebar a:hover {
    color: #fff !important;
    background: rgba(255,255,255,.045) !important;
}
.h2h-sidebar a.active {
    color: #fff !important;
    background: linear-gradient(90deg, rgba(197,22,60,.92), rgba(197,22,60,.5)) !important;
    border-color: #e32945 !important;
    box-shadow: inset 3px 0 #fff, 0 8px 24px rgba(197,22,60,.17);
}
.h2h-sidebar a.active i { color: #fff !important; }
.h2h-side-title, .h2h-sidebar h3, .h2h-sidebar h4 { color: #e32945 !important; }

/* Homepage shell and hero */
.bpw-landing-grid { grid-template-columns: 270px minmax(0, 1fr) 340px !important; }
.bpw-landing-hero {
    border-color: #303a45 !important;
    background-image:
        linear-gradient(90deg, rgba(7,9,12,.99) 0%, rgba(7,9,12,.90) 37%, rgba(7,9,12,.24) 68%, rgba(7,9,12,.03) 100%),
        url('/images/betpluswin-hero-ruby-ice.png') !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.018), 0 18px 45px rgba(0,0,0,.22);
}
.bpw-landing-copy h1 { color: #fff !important; text-shadow: 0 3px 16px rgba(0,0,0,.65); }
.bpw-landing-copy p { color: #c7d0d8 !important; }
.bpw-landing-copy > a,
.bpw-market-tabs a.active,
.bpw-landing-title nav a.active {
    background: linear-gradient(135deg, #e32945, #b51134) !important;
    border-color: #e32945 !important;
    color: #fff !important;
    box-shadow: 0 8px 22px rgba(197,22,60,.22);
}
.bpw-landing-title h2 { color: #f7f9fb !important; letter-spacing: -.25px; }
.bpw-landing-title > a, .bpw-view-predictions { color: #e32945 !important; }

/* Prediction rows */
.bpw-pick-list { gap: 5px !important; }
.bpw-pick-row {
    background: linear-gradient(90deg, #f5f7f9, #edf1f4) !important;
    border: 1px solid #fff !important;
    box-shadow: 0 5px 14px rgba(0,0,0,.12);
    color: #111820 !important;
}
.bpw-pick-row:hover {
    background: #fff !important;
    border-color: rgba(227,41,69,.65) !important;
    transform: translateY(-1px);
}
.bpw-pick-row em,
.bpw-best-tip {
    color: #9e102e !important;
    background: #f7dce2 !important;
    border-color: #e8aab8 !important;
}
.bpw-pick-confidence i, .bpw-side-confidence i, .bpw-v2-market i { background: #d2d9df !important; }
.bpw-pick-confidence i b,
.bpw-side-confidence i b,
.bpw-v2-market i b,
.h2h-mini-bar span,
.bpw-probs i b {
    background: linear-gradient(90deg, #a90f31, #e32945) !important;
}
.bpw-pick-row mark, .bpw-side-pick mark {
    color: #fff !important;
    background: #111820 !important;
    border: 1px solid #303a45;
    box-shadow: 0 0 18px rgba(197,22,60,.12) !important;
}

/* v28 homepage prediction rows — Ruby Ice dark cards */
.bpw-landing .bpw-pick-row {
    background: linear-gradient(90deg, #101820 0%, #0b1117 58%, #0e151d 100%) !important;
    border: 1px solid #2b3742 !important;
    box-shadow: 0 5px 15px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.025) !important;
    color: #f4f7fa !important;
}
.bpw-landing .bpw-pick-row:hover {
    background: linear-gradient(90deg, #151f29, #101820) !important;
    border-color: #d91b43 !important;
    box-shadow: 0 7px 20px rgba(0,0,0,.3), 0 0 0 1px rgba(217,27,67,.12) !important;
}
.bpw-landing .bpw-pick-row .bpw-pick-league span,
.bpw-landing .bpw-pick-row .bpw-pick-team span,
.bpw-landing .bpw-pick-row .bpw-result-score,
.bpw-landing .bpw-pick-row .bpw-result-score span {
    color: #f4f7fa !important;
    -webkit-text-fill-color: #f4f7fa !important;
}
.bpw-landing .bpw-pick-row .bpw-pick-league small,
.bpw-landing .bpw-pick-row .bpw-pick-time,
.bpw-landing .bpw-pick-row .bpw-pick-versus,
.bpw-landing .bpw-pick-row .bpw-result-vs {
    color: #aeb9c3 !important;
    -webkit-text-fill-color: #aeb9c3 !important;
}
.bpw-landing .bpw-pick-row em {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: rgba(204,13,52,.22) !important;
    border: 1px solid rgba(239,43,80,.58) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04) !important;
}
.bpw-landing .bpw-pick-row .bpw-pick-confidence strong {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}
.bpw-landing .bpw-pick-row .bpw-pick-confidence small {
    color: #8f9ca7 !important;
    -webkit-text-fill-color: #8f9ca7 !important;
}
.bpw-landing .bpw-pick-row .bpw-pick-confidence i {
    background: #2b3540 !important;
}
.bpw-landing .bpw-pick-row mark {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: #080d12 !important;
    border: 1px solid #3a4652 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,.28) !important;
}
.bpw-pick-time.is-live, .bpw-match-time.live, [data-bpw-live-time].is-live {
    color: #e32945 !important;
    animation: rubyLivePulse 1s infinite;
}
@keyframes rubyLivePulse { 50% { opacity: .45; text-shadow: 0 0 10px rgba(227,41,69,.8); } }

/* Right sidebar */
.bpw-dynamic-rightbar > section,
.h2h-rightbar .h2h-card {
    background: linear-gradient(145deg, #171d24, #0e1217) !important;
    border-color: #303a45 !important;
    box-shadow: 0 14px 34px rgba(0,0,0,.19);
}
.bpw-dynamic-rightbar section > header { border-color: #303a45 !important; }
.bpw-dynamic-rightbar section > header i,
.bpw-dynamic-rightbar section > header > a,
.bpw-side-trends mark,
.bpw-side-content small { color: #e32945 !important; }
.bpw-side-featured {
    background:
        radial-gradient(circle at 100% 0, rgba(197,22,60,.18), transparent 40%),
        linear-gradient(145deg, #191e24, #0e1217) !important;
    border-color: rgba(227,41,69,.58) !important;
}
.bpw-side-featured > header > b { color: #fff !important; background: #c5163c !important; }
.bpw-side-featured > a { border-color: rgba(227,41,69,.45) !important; background: rgba(197,22,60,.08) !important; }
.bpw-side-featured > a:hover { background: #c5163c !important; color: #fff !important; }
.bpw-side-live time, .bpw-side-live .is-live { color: #e32945 !important; }

/* Guides, insights and real database blocks */
.bpw-guide-grid > a, .bpw-guide-grid > article,
.bpw-home-stats, .bpw-match-insights, .bpw-database-overview,
.bpw-spotlight, .bpw-fact-feed, .bpw-insights-lower > article,
.bpw-db-panel, .bpw-db-today, .bpw-db-markets,
.bpw-stat-kpis article, .bpw-home-analytics > article,
.bpw-key-stats, .bpw-popular-markets {
    background: #12171d !important;
    border-color: #303a45 !important;
}
.bpw-guide-placeholder {
    color: #e32945 !important;
    background: radial-gradient(circle at 50% 55%, rgba(197,22,60,.25), transparent 54%), #171d24 !important;
}
.bpw-guide-grid small,
.bpw-guide-grid span i,
.bpw-insights-head > small,
.bpw-insights-head > div > span,
.bpw-spotlight-facts p > i,
.bpw-spotlight-facts p strong,
.bpw-spotlight > footer,
.bpw-fact-feed h3 i,
.bpw-insights-lower h3 i,
.bpw-fact-feed > a > i,
.bpw-fact-feed > a > b,
.bpw-insights-lower article > a > b,
.bpw-db-section-head > small,
.bpw-db-panel h3 i, .bpw-db-today h3 i,
.bpw-db-panel header span, .bpw-db-today header span, .bpw-db-markets header span,
.bpw-db-today article > i, .bpw-db-markets a > i, .bpw-db-markets a > b,
.bpw-stat-kpis i, .bpw-key-stats article > i, .bpw-popular-markets i {
    color: #e32945 !important;
}
.bpw-insights-head > div > span,
.bpw-spotlight > header span,
.bpw-db-result-row em.is-won {
    background: #c5163c !important;
    color: #fff !important;
}
.bpw-spotlight {
    background: radial-gradient(circle at 50% 120%, rgba(197,22,60,.17), transparent 48%), linear-gradient(145deg,#1a2027,#101419) !important;
}
.bpw-spotlight-facts p, .bpw-db-today article, .bpw-db-markets a {
    background: #0d1116 !important;
    border-color: #29323b !important;
}
.bpw-fact-feed > header, .bpw-insights-lower article > header,
.bpw-db-panel > header, .bpw-db-today > header, .bpw-db-markets > header { border-color: #303a45 !important; }
.bpw-v2-chart .area { fill: rgba(197,22,60,.18) !important; }
.bpw-v2-chart .line { stroke: #e32945 !important; }

/* Inner pages */
.bpw-page-hero,
.bpw-match-toolbar, .bpw-mini-calendar,
.bpw-board-title, .bpw-league-bar,
.h2h-card, .h2h-filter-card, .h2h-matches-card {
    background: #12171d !important;
    border-color: #303a45 !important;
}
.bpw-page-hero {
    background: radial-gradient(circle at 88% 0, rgba(197,22,60,.17), transparent 38%), linear-gradient(135deg,#1b222a,#0d1116) !important;
}
.bpw-page-hero > div:first-child > span,
.bpw-page-kpis strong,
.bpw-board-title h2 i,
.bpw-empty-matches > i { color: #e32945 !important; }
.bpw-market-tabs a, .bpw-date-switcher a, .bpw-date-switcher button { background: #0d1116 !important; border-color: #303a45 !important; }
.bpw-match-board { background: #0b0e12 !important; border-color: #303a45 !important; }
.bpw-league-group + .bpw-league-group, .bpw-match-row { border-color: #0b0e12 !important; }

/* Footer */
.bpw-v2-footer { background: #0e1217 !important; border-color: #303a45 !important; }
.bpw-footer-newsletter { background: #151b21 !important; border-color: #303a45 !important; }
.bpw-footer-mail { color: #e32945 !important; background: rgba(197,22,60,.1) !important; border-color: rgba(227,41,69,.45) !important; }
.bpw-footer-newsletter input { background: #0b0f13 !important; border-color: #303a45 !important; }
.bpw-footer-newsletter button { background: #c5163c !important; color: #fff !important; }
.bpw-footer-newsletter button:hover { background: #e32945 !important; }
.bpw-footer-social a { border-color: #39434d !important; }
.bpw-footer-social a:hover, .bpw-footer-column a:hover { color: #e32945 !important; border-color: #e32945 !important; }
.bpw-footer-bottom { background: #090c10 !important; border-color: #303a45 !important; }

/* Mobile: show complete match information instead of cutting teams */
@media (max-width: 1180px) {
    .bpw-landing-grid { grid-template-columns: 230px minmax(0,1fr) !important; }
    .bpw-landing .h2h-rightbar { display: none !important; }
}
@media (max-width: 1024px) {
    .bpw-landing { padding: 8px !important; }
    .bpw-landing-grid { display: block !important; }
}
@media (max-width: 720px) {
    .bpw-landing-hero {
        height: 315px !important;
        background-image:
            linear-gradient(180deg, rgba(8,10,13,.05), rgba(8,10,13,.48) 42%, #080a0d 74%),
            url('/images/betpluswin-hero-ruby-ice.png') !important;
        background-position: center, 70% top !important;
        background-size: cover, auto 250px !important;
    }
    .bpw-landing-copy { width: 100% !important; padding: 168px 18px 18px !important; }
    .bpw-landing-copy h1 { font-size: 31px !important; line-height: 1 !important; }
    .bpw-landing-copy p { margin: 9px 0 13px !important; font-size: 12px !important; }
    .bpw-pick-row {
        grid-template-columns: 54px minmax(0,1fr) 22px minmax(0,1fr) 62px !important;
        grid-template-areas:
            "time home versus away odd"
            "league home versus away confidence"
            "tip tip tip tip confidence" !important;
        min-height: 108px !important;
        gap: 5px 7px !important;
        padding: 9px !important;
    }
    .bpw-pick-league { grid-area: league !important; }
    .bpw-pick-time { grid-area: time !important; }
    .bpw-pick-team:first-of-type { grid-area: home !important; }
    .bpw-pick-versus { grid-area: versus !important; }
    .bpw-pick-team:nth-of-type(2) { grid-area: away !important; }
    .bpw-pick-row em { grid-area: tip !important; justify-self:start; padding:5px 9px !important; }
    .bpw-pick-confidence { grid-area: confidence !important; }
    .bpw-pick-row mark { grid-area: odd !important; }
    .bpw-pick-team span { font-size: 10px !important; white-space: normal !important; line-height: 1.2 !important; }
    .bpw-pick-team img { width: 29px !important; height: 29px !important; }
    .bpw-guide-grid, .bpw-insights-grid, .bpw-insights-lower, .bpw-home-analytics { grid-template-columns: 1fr !important; }
}

@media (prefers-reduced-motion: reduce) {
    [data-bpw-live-time].is-live { animation: none !important; }
}

/* Predictions option 2: real 1X2 odds scorebar */
.bpw-scorebar-table {
    border-collapse: separate !important;
    border-spacing: 0 3px !important;
    background: #070b0f !important;
}
.bpw-scorebar-table thead th {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    color: #aeb8c1 !important;
    background: #0a1015 !important;
    border-color: #1c2730 !important;
    font-size: 10px !important;
}
.bpw-scorebar-table tbody tr:not(.h2h-league-row) > td {
    color: #e5eaf0 !important;
    background: #0b1117 !important;
    border-color: #202a33 !important;
}
.bpw-scorebar-table tbody tr:not(.h2h-league-row):hover > td {
    background: #101821 !important;
}
.bpw-scorebar-table .h2h-team-line span,
.bpw-scorebar-table .h2h-score {
    color: #f4f7fa !important;
    opacity: 1 !important;
    text-shadow: 0 1px 1px rgba(0,0,0,.55);
}
.bpw-scorebar-table .h2h-time {
    color: #eef3f7 !important;
    opacity: 1 !important;
    font-weight: 900 !important;
}
.bpw-scorebar-table .h2h-team-logo {
    width: 23px !important;
    height: 23px !important;
}
.bpw-scorebar-table .h2h-teams-stack {
    min-width: 0;
    flex: 1 1 auto;
}
.bpw-scorebar-table .h2h-team-line {
    width: 100%;
    display: flex !important;
    align-items: center;
    gap: 8px;
}
.bpw-scorebar-table .bpw-team-name {
    min-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bpw-last-five {
    display: inline-flex !important;
    align-items: center;
    gap: 3px;
    margin-left: auto;
    padding-left: 10px;
}
.bpw-last-five i {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    border: 1px solid transparent;
    border-radius: 3px;
    font-size: 8px;
    font-style: normal;
    font-weight: 950;
    line-height: 1;
}
.bpw-last-five .is-w { background: #16865a; border-color: #25aa77; }
.bpw-last-five .is-d { background: #596471; border-color: #73808d; }
.bpw-last-five .is-l { background: #a51f39; border-color: #d02a4b; }
.bpw-last-five small {
    color: #687581 !important;
    font-size: 7px;
    font-weight: 800;
    white-space: nowrap;
}
.bpw-scorebar-table .h2h-match-main {
    min-height: 52px !important;
}
.bpw-odds-score-cell {
    width: 48%;
    padding: 6px 12px !important;
    background: #0b1117 !important;
}
.bpw-scorebar-heading {
    color: #dce4eb !important;
    letter-spacing: .04em;
}
.bpw-odds-scorebar {
    display: grid;
    grid-template-columns: repeat(3, minmax(90px, 1fr));
    gap: 9px;
}
.bpw-odds-score-option {
    min-width: 0;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 5px 12px;
    color: #d7dee5;
    background: linear-gradient(180deg, #1c252e, #151d25);
    border: 1px solid #35414c;
    border-radius: 5px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 2px 5px rgba(0,0,0,.28);
}
.bpw-odds-score-option span {
    font-size: 15px;
    font-weight: 900;
}
.bpw-odds-score-option strong {
    min-width: 38px;
    font-size: 14px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}
.bpw-scorebar-table .bpw-odds-score-option span,
.bpw-scorebar-table .bpw-odds-score-option strong {
    color: #f4f7fa !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #f4f7fa !important;
}
.bpw-odds-score-option.is-selected {
    color: #fff;
    background: linear-gradient(180deg, #d4072d, #a90022);
    border-color: #e71d43;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 3px 10px rgba(202,0,42,.2);
}
.bpw-scorebar-table .bpw-odds-score-option.is-selected {
    color: #fff !important;
    background: linear-gradient(180deg, #e3133b, #b10027) !important;
    border-color: #ff4261 !important;
    box-shadow: 0 0 0 1px rgba(255,66,97,.12), 0 4px 14px rgba(220,12,53,.32) !important;
}
.bpw-scorebar-table .bpw-odds-score-option.is-selected span,
.bpw-scorebar-table .bpw-odds-score-option.is-selected strong {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}
.bpw-odds-confidence {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
}
.bpw-scorebar-meta {
    min-height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 5px;
}
.bpw-pick-verdict {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 7px;
    color: #fff;
    background: rgba(218,13,53,.16);
    border: 1px solid rgba(255,50,86,.55);
    border-radius: 4px;
    line-height: 1;
}
.bpw-pick-verdict small {
    color: #ff7189 !important;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .08em;
}
.bpw-pick-verdict b {
    color: #fff !important;
    font-size: 10px;
    font-weight: 950;
}
.bpw-pick-verdict em {
    color: #e7edf2 !important;
    font-size: 8px;
    font-style: normal;
    font-weight: 800;
}
.bpw-odds-confidence strong {
    min-width: 27px;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
    font-size: 9px;
    font-weight: 800;
}
.bpw-odds-confidence > span {
    width: 94px;
    height: 4px;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 2px;
}
.bpw-odds-confidence i {
    display: block;
    height: 100%;
    background: #2e3740;
    border-radius: 2px;
}
.bpw-odds-confidence i.is-filled {
    background: #ed1742;
}
.bpw-mobile-odds-scorebar {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
}
.bpw-mobile-odds-scorebar > span {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 5px;
    color: #17202a;
    background: #edf1f4;
    border: 1px solid #cbd1d7;
    border-radius: 7px;
}
.bpw-mobile-odds-scorebar b,
.bpw-mobile-odds-scorebar em {
    font-size: 12px;
    font-weight: 900;
    font-style: normal;
}
.bpw-mobile-odds-scorebar > span.is-selected {
    color: #fff;
    background: linear-gradient(135deg, #e32945, #a9092c);
    border-color: #ff4964;
}
.bpw-mobile-odds-confidence {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}
.bpw-mobile-odds-confidence > span {
    height: 5px;
    flex: 1 1 auto;
    overflow: hidden;
    background: #d4dae0;
    border-radius: 99px;
}
.bpw-mobile-odds-confidence i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #a9092c, #e32945);
    border-radius: inherit;
}
.bpw-mobile-odds-confidence b {
    color: #17202a;
    font-size: 10px;
    white-space: nowrap;
}

.bpw-insights-lower.is-single {
    grid-template-columns: minmax(0, 1fr) !important;
}

@media (max-width: 768px) {
    .bpw-scorebar-table {
        border-spacing: 0 3px !important;
        background: #070b0f !important;
    }
    .bpw-scorebar-table tbody tr:not(.h2h-league-row) {
        grid-template-columns: 44px minmax(0, 1fr) 128px !important;
        min-height: 78px !important;
        margin: 0 !important;
        overflow: hidden !important;
        background: #0a1016 !important;
        border: 1px solid #1b2630 !important;
        border-radius: 7px !important;
        box-shadow: none !important;
    }
    .bpw-scorebar-table tbody tr:not(.h2h-league-row) > td,
    .bpw-scorebar-table tbody tr:not(.h2h-league-row) > td:nth-child(1),
    .bpw-scorebar-table tbody tr:not(.h2h-league-row) > td:nth-child(2),
    .bpw-scorebar-table .h2h-mobile-tip-stack-cell {
        background: transparent !important;
        background-color: transparent !important;
        box-shadow: none !important;
        border: 0 !important;
    }
    .bpw-scorebar-table tbody tr:not(.h2h-league-row) > td:nth-child(1) {
        padding: 8px 3px 8px 7px !important;
    }
    .bpw-scorebar-table tbody tr:not(.h2h-league-row) > td:nth-child(2) {
        padding: 7px 4px !important;
    }
    .bpw-scorebar-table .h2h-mobile-tip-stack-cell {
        padding: 6px 7px 6px 3px !important;
    }
    .bpw-scorebar-table .h2h-time,
    .bpw-scorebar-table .h2h-time * {
        color: #f4f7fa !important;
        background: transparent !important;
        -webkit-text-fill-color: #f4f7fa !important;
    }
    .bpw-scorebar-table .h2h-mobile-tip-stack,
    .bpw-scorebar-table .h2h-mobile-tip-stack-tip {
        min-height: 0 !important;
        padding: 0 !important;
        gap: 4px !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }
    .bpw-mobile-odds-scorebar {
        gap: 3px !important;
    }
    .bpw-mobile-odds-scorebar > span {
        min-height: 39px !important;
        padding: 4px 2px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 3px !important;
        color: #f4f7fa !important;
        background: linear-gradient(180deg, #1a242e, #121a22) !important;
        border: 1px solid #35424e !important;
        border-radius: 6px !important;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.035) !important;
    }
    .bpw-mobile-odds-scorebar > span b,
    .bpw-mobile-odds-scorebar > span em {
        color: #f4f7fa !important;
        -webkit-text-fill-color: #f4f7fa !important;
        line-height: 1 !important;
    }
    .bpw-mobile-odds-scorebar > span b { font-size: 10px !important; }
    .bpw-mobile-odds-scorebar > span em { font-size: 10px !important; }
    .bpw-mobile-odds-scorebar > span.is-selected {
        background: linear-gradient(180deg, #e3133b, #ae0027) !important;
        border-color: #ff4564 !important;
        box-shadow: 0 3px 10px rgba(217,8,50,.28) !important;
    }
    .bpw-mobile-odds-confidence {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 3px !important;
        margin-top: 1px !important;
    }
    .bpw-mobile-odds-confidence > span {
        height: 3px !important;
        background: #27313a !important;
    }
    .bpw-mobile-odds-confidence b {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        color: #dce3e9 !important;
        font-size: 7px !important;
        font-weight: 850 !important;
        white-space: nowrap !important;
    }
    .bpw-mobile-odds-confidence b em {
        padding: 2px 4px;
        color: #fff !important;
        background: #b4072b;
        border: 1px solid #e12a4c;
        border-radius: 3px;
        font-size: 7px !important;
        font-style: normal;
    }
    .bpw-mobile-odds-confidence b small,
    .bpw-mobile-odds-confidence b strong {
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        opacity: 1 !important;
        font-size: 7px !important;
    }
    .bpw-scorebar-table .bpw-team-name { min-width: 0; }
    .bpw-last-five { gap: 2px; padding-left: 3px; }
    .bpw-last-five i { width: 12px; height: 12px; font-size: 6px; border-radius: 2px; }
}

/* v27 desktop homepage: always use the full available viewport width */
@media (min-width: 1025px) {
    body.h2h-body .bpw-landing {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    body.h2h-body .bpw-landing > .bpw-landing-grid {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        grid-template-columns: 270px minmax(0, 1fr) !important;
        box-sizing: border-box !important;
    }

    body.h2h-body .bpw-landing-content,
    body.h2h-body .bpw-landing-top,
    body.h2h-body .bpw-landing-main {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        box-sizing: border-box !important;
    }

    body.h2h-body .bpw-landing-top {
        grid-template-columns: minmax(0, 1fr) 340px !important;
    }
}

@media (min-width: 1025px) and (max-width: 1450px) {
    body.h2h-body .bpw-landing > .bpw-landing-grid {
        grid-template-columns: 240px minmax(0, 1fr) !important;
    }

    body.h2h-body .bpw-landing-top {
        grid-template-columns: minmax(0, 1fr) 300px !important;
    }
}

@media (max-width: 390px) {
    .bpw-scorebar-table tbody tr:not(.h2h-league-row) {
        grid-template-columns: 40px minmax(0, 1fr) 116px !important;
    }
    .bpw-mobile-odds-scorebar > span b,
    .bpw-mobile-odds-scorebar > span em { font-size: 9px !important; }
}

/* v25 final mobile alignment override — must remain last in this file */
@media (max-width: 768px) {
    .bpw-home .h2h-table-wrap .bpw-scorebar-table tbody tr:not(.h2h-league-row),
    .bpw-home .h2h-table-wrap tbody tr:not(.h2h-league-row) {
        background: #0a1016 !important;
        background-color: #0a1016 !important;
        border-color: #1c2832 !important;
        box-shadow: none !important;
    }

    .bpw-home .h2h-table-wrap .bpw-scorebar-table tbody tr:not(.h2h-league-row) > td,
    .bpw-home .h2h-table-wrap tbody tr:not(.h2h-league-row) > td {
        background: transparent !important;
        background-color: transparent !important;
        box-shadow: none !important;
    }

    .bpw-home .h2h-table-wrap .h2h-team-logo,
    .bpw-scorebar-table .h2h-team-logo {
        width: 12px !important;
        min-width: 12px !important;
        max-width: 12px !important;
        height: 12px !important;
        min-height: 12px !important;
        max-height: 12px !important;
        object-fit: contain !important;
    }

    .bpw-home .h2h-table-wrap .h2h-team-line,
    .bpw-scorebar-table .h2h-team-line {
        display: grid !important;
        grid-template-columns: 12px minmax(0, 1fr) 63px !important;
        column-gap: 4px !important;
        align-items: center !important;
    }

    .bpw-home .h2h-table-wrap .bpw-last-five,
    .bpw-scorebar-table .bpw-last-five {
        width: 63px !important;
        min-width: 63px !important;
        max-width: 63px !important;
        height: 11px !important;
        display: grid !important;
        grid-template-columns: repeat(5, 11px) !important;
        grid-auto-rows: 11px !important;
        gap: 2px !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .bpw-home .h2h-table-wrap .bpw-last-five i,
    .bpw-scorebar-table .bpw-last-five i {
        width: 11px !important;
        min-width: 11px !important;
        max-width: 11px !important;
        height: 11px !important;
        min-height: 11px !important;
        max-height: 11px !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 2px !important;
        font-size: 6px !important;
        line-height: 11px !important;
        text-align: center !important;
    }

    .bpw-home .h2h-table-wrap .bpw-last-five small,
    .bpw-scorebar-table .bpw-last-five small {
        grid-column: 1 / -1;
        width: 63px !important;
        color: #65727e !important;
        font-size: 6px !important;
        line-height: 11px !important;
        text-align: center !important;
    }

    .bpw-home .h2h-table-wrap .bpw-mobile-odds-confidence b strong,
    .bpw-scorebar-table .bpw-mobile-odds-confidence b strong {
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        opacity: 1 !important;
    }
}

/* MOBILE HOMEPAGE PICKS COMPACT V1 */
@media (max-width: 720px) {
    .bpw-landing .bpw-top-picks .bpw-pick-list {
        gap: 6px !important;
    }

    .bpw-landing .bpw-top-picks .bpw-pick-row {
        grid-template-columns: 42px minmax(0, 1fr) 24px 58px !important;
        grid-template-areas:
            "time home versus odd"
            "time away versus odd"
            "time tip tip odd" !important;
        min-height: 82px !important;
        height: auto !important;
        column-gap: 7px !important;
        row-gap: 4px !important;
        padding: 8px !important;
        overflow: hidden !important;
    }

    .bpw-landing .bpw-top-picks .bpw-pick-league,
    .bpw-landing .bpw-top-picks .bpw-pick-confidence {
        display: none !important;
    }

    .bpw-landing .bpw-top-picks .bpw-pick-time {
        grid-area: time !important;
        align-self: center !important;
        font-size: 9px !important;
        white-space: nowrap !important;
    }

    .bpw-landing .bpw-top-picks .bpw-pick-row > .bpw-pick-team:nth-of-type(2) {
        grid-area: home !important;
    }

    .bpw-landing .bpw-top-picks .bpw-pick-row > .bpw-pick-team:nth-of-type(3) {
        grid-area: away !important;
    }

    .bpw-landing .bpw-top-picks .bpw-pick-team {
        display: flex !important;
        align-items: center !important;
        min-width: 0 !important;
        width: 100% !important;
        text-align: left !important;
        overflow: hidden !important;
    }

    .bpw-landing .bpw-top-picks .bpw-pick-team img {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
        flex: 0 0 22px !important;
        margin: 0 7px 0 0 !important;
        object-fit: contain !important;
    }

    .bpw-landing .bpw-top-picks .bpw-pick-team span {
        display: block !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-size: 10px !important;
        line-height: 1.15 !important;
    }

    .bpw-landing .bpw-top-picks .bpw-pick-versus {
        grid-area: versus !important;
        align-self: center !important;
        justify-self: center !important;
        font-size: 8px !important;
    }

    .bpw-landing .bpw-top-picks .bpw-pick-row > em {
        grid-area: tip !important;
        justify-self: start !important;
        max-width: 100% !important;
        padding: 3px 7px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-size: 7px !important;
        line-height: 1.2 !important;
    }

    .bpw-landing .bpw-top-picks .bpw-pick-row > mark {
        grid-area: odd !important;
        align-self: stretch !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 0 !important;
        padding: 5px 3px !important;
        font-size: 14px !important;
    }
}

/* MOBILE HOMEPAGE PICKS META V2 */
@media (max-width: 720px) {
    .bpw-landing .bpw-top-picks .bpw-pick-row {
        grid-template-columns: 42px minmax(0, 1fr) 44px 58px !important;
        grid-template-areas:
            "time home home odd"
            "time away away odd"
            "time tip confidence odd" !important;
        min-height: 88px !important;
    }

    .bpw-landing .bpw-top-picks .bpw-pick-versus {
        display: none !important;
    }

    .bpw-landing .bpw-top-picks .bpw-pick-row > em {
        grid-area: tip !important;
        display: block !important;
        align-self: center !important;
        justify-self: start !important;
        max-width: 100% !important;
        padding: 4px 7px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-size: 7px !important;
        line-height: 1.15 !important;
    }

    .bpw-landing .bpw-top-picks .bpw-pick-confidence {
        grid-area: confidence !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        min-width: 0 !important;
    }

    .bpw-landing .bpw-top-picks .bpw-pick-confidence strong {
        display: block !important;
        color: #e83a69 !important;
        font-size: 10px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .bpw-landing .bpw-top-picks .bpw-pick-confidence small,
    .bpw-landing .bpw-top-picks .bpw-pick-confidence i {
        display: none !important;
    }
}

/* UNIFIED BTTS / OVER-UNDER SCOREBAR V1 */
.bpw-odds-scorebar.is-two {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
}

.bpw-mobile-odds-scorebar.is-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* SINGLE SELECTED MARKET V1 */
.bpw-odds-scorebar.is-one,
.bpw-mobile-odds-scorebar.is-one {
    grid-template-columns: minmax(0, 1fr);
}
