.desktop-live-shell { display:flex; flex-direction:column; height:100dvh; min-height:0; background:var(--ui-live-bg, var(--ui-content-bg)); color:var(--ui-live-text, var(--ui-content-text)); }
.desktop-live-shell__body { display:grid; grid-template-columns:minmax(0,1fr) var(--ui-live-betslip-width, 320px); min-height:0; flex:1; overflow:hidden; }
.desktop-live-shell__page { min-width:0; min-height:0; overflow:hidden; }
.desktop-live-shell__aside { min-width:0; overflow:auto; border-inline-start:1px solid var(--ui-live-border, var(--ui-content-border)); background:var(--ui-live-panel, var(--ui-content-panel-bg)); }
.desktop-live-shell__aside .action-column-container { width:100%; max-width:none; min-width:0; position:static; }
.desktop-live { height:100%; overflow:auto; min-width:0; container-type:inline-size; background:var(--ui-live-bg, var(--ui-content-bg)); color:var(--ui-live-text, var(--ui-content-text)); scrollbar-width:thin; }
.desktop-live button { font:inherit; cursor:pointer; color:inherit; }
.desktop-live button:disabled { cursor:default; opacity:.5; }
.desktop-live button:focus-visible { outline:2px solid var(--ui-live-accent, var(--ui-selection-text)); outline-offset:2px; }
.desktop-live__toolbar { background:var(--ui-live-panel, var(--ui-content-panel-bg)); border-bottom:1px solid var(--ui-live-border, var(--ui-content-border)); padding:var(--ui-live-gap, var(--theme-space-3, 12px)) var(--ui-live-pad, var(--ui-sports-page-pad-x, 22px)); }
.desktop-live__toolbar .day-sport-selector { margin:0; }
.desktop-live__sport,.desktop-live__filters,.desktop-live__detail-title { display:flex; align-items:center; gap:var(--ui-live-gap, var(--theme-space-3, 12px)); }
.desktop-live__heading { justify-content:space-between; flex-wrap:wrap; padding-block:var(--ui-live-gap, var(--theme-space-3, 12px)); }
.desktop-live__sport img { width:38px; height:38px; object-fit:contain; }
.desktop-live__sport h1 { font-size:20px; margin:0; }
.desktop-live__badge { color:var(--ui-live-accent, var(--ui-selection-text)); font-size:11px; font-weight:800; }
.desktop-live__filters button,.desktop-live__detail-title button,.desktop-live__more { border:1px solid var(--ui-live-border, var(--ui-content-border)); border-radius:var(--ui-live-small-radius, var(--theme-radius-md, 10px)); background:var(--ui-live-glass, var(--ui-content-control-bg)); min-height:38px; padding:8px 14px; transition:transform var(--ui-live-motion, 160ms),border-color var(--ui-live-motion, 160ms); }
.desktop-live__tabs button:active,.desktop-live__filters button:active { transform:scale(.97); }
.desktop-live__filters [aria-pressed="true"] { color:var(--ui-live-accent, var(--ui-selection-text)); border-color:var(--ui-live-accent, var(--ui-selection-text)); }
.desktop-live__overview { padding:var(--ui-live-pad, var(--ui-sports-page-pad-x, 22px)); display:grid; gap:var(--ui-live-gap, var(--theme-space-3, 12px)); }
.desktop-live__market-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:var(--ui-live-odds-gap, var(--ui-sports-row-gap, 10px)); align-items:center; }
.desktop-live__market-row > * { min-width:0; }
.desktop-live__market-row .desktop-tip-selector { width:100%; max-width:none; }
.desktop-live__market-row .desktop-menu__trigger { width:100%; max-width:none; }
.desktop-live__filters { padding:4px; }
.desktop-live__filters button { flex:none; }
.desktop-live__tournament { background:var(--ui-live-panel, var(--ui-content-panel-bg)); border:1px solid var(--ui-live-border, var(--ui-content-border)); border-radius:var(--ui-live-radius, var(--theme-radius-xl, 18px)); }
.desktop-live__tournament > header { background:var(--ui-live-header, var(--ui-content-header-bg)); border-radius:var(--ui-live-radius, var(--theme-radius-xl, 18px)) var(--ui-live-radius, var(--theme-radius-xl, 18px)) 0 0; padding:var(--ui-live-gap, var(--theme-space-3, 12px)); }
.desktop-live__league { display:flex; align-items:center; justify-content:space-between; gap:var(--ui-live-gap, var(--theme-space-3, 12px)); border:0; background:transparent; text-align:start; font-weight:700!important; }
.desktop-live__odd-names { display:grid; grid-template-columns:repeat(var(--live-odds),minmax(0,1fr)); gap:var(--ui-live-odds-gap, var(--ui-sports-row-gap, 10px)); margin-inline-end:calc(var(--ui-live-count-width, var(--ui-sports-count-width, 44px)) + var(--ui-live-odds-gap, var(--ui-sports-row-gap, 10px))); text-align:center; color:var(--ui-live-muted, var(--ui-content-muted)); font-size:11px; }
.desktop-live__match-row { padding:var(--ui-live-gap, var(--theme-space-3, 12px)); border-top:1px solid var(--ui-live-border, var(--ui-content-border)); }
.desktop-live__match-left { display:flex; align-items:center; gap:var(--ui-live-gap, var(--theme-space-3, 12px)); }
.desktop-live__favorite { background:transparent; border:0; padding:8px; color:var(--ui-live-muted, var(--ui-content-muted))!important; }
.desktop-live__favorite[aria-pressed="true"] { color:var(--ui-live-accent, var(--ui-selection-text))!important; }
.desktop-live__game-link { display:block; width:100%; min-width:0; text-align:start; padding:0; background:transparent; border:0; border-radius:var(--ui-live-small-radius, var(--theme-radius-md, 10px)); }
.desktop-live__odds { display:grid; grid-template-columns:minmax(0,1fr) var(--ui-live-count-width, var(--ui-sports-count-width, 44px)); align-items:center; gap:var(--ui-live-odds-gap, var(--ui-sports-row-gap, 10px)); }
.desktop-live__more { padding:4px; font-size:11px!important; }
.desktop-live__single { display:grid; grid-template-columns:var(--ui-live-side-width, 240px) minmax(0,1fr); gap:var(--ui-live-gap, var(--theme-space-3, 12px)); padding:var(--ui-live-pad, var(--ui-sports-page-pad-x, 22px)); align-items:start; }
.desktop-live__side { position:sticky; top:var(--ui-live-gap, var(--theme-space-3, 12px)); max-height:calc(100dvh - 170px); overflow:auto; scrollbar-width:thin; border:1px solid var(--ui-live-border, var(--ui-content-border)); border-radius:var(--ui-live-radius, var(--theme-radius-xl, 18px)); background:var(--ui-live-panel, var(--ui-content-panel-bg)); }
.desktop-live__side h2 { font-size:11px; color:var(--ui-live-muted, var(--ui-content-muted)); background:var(--ui-live-header, var(--ui-content-header-bg)); margin:0; padding:var(--ui-live-gap, var(--theme-space-3, 12px)); }
.desktop-live__side .desktop-live__game-link { padding:var(--ui-live-gap, var(--theme-space-3, 12px)); border-radius:0; border-bottom:1px solid var(--ui-live-border, var(--ui-content-border)); }
.desktop-live__side .desktop-live__game-link[aria-current="true"] { background:var(--ui-live-selected, var(--ui-selection-bg)); box-shadow:inset 3px 0 var(--ui-live-accent, var(--ui-selection-text)); }
.desktop-live__detail { min-width:0; }
.desktop-live__scoreboard { padding:var(--ui-live-pad, var(--ui-sports-page-pad-x, 22px)); background:var(--ui-live-glass, var(--ui-content-control-bg)); border:1px solid var(--ui-live-border, var(--ui-content-border)); border-radius:var(--ui-live-radius, var(--theme-radius-xl, 18px)); margin-bottom:var(--ui-live-gap, var(--theme-space-3, 12px)); }
.desktop-live__detail-title { margin-bottom:var(--ui-live-pad, var(--ui-sports-page-pad-x, 22px)); color:var(--ui-live-muted, var(--ui-content-muted)); font-size:12px; }
.desktop-live__scoreboard .live-match { font-size:18px; }
.desktop-live__detail .match-odds-container { background:var(--ui-live-bg, var(--ui-content-bg)); }
.desktop-live__detail .bet-types-wrapper { display:grid; gap:var(--ui-live-gap, var(--theme-space-3, 12px)); }
.desktop-live__empty,.desktop-live__loading,.desktop-live__notice { padding:var(--ui-live-pad, var(--ui-sports-page-pad-x, 22px)); color:var(--ui-live-muted, var(--ui-content-muted)); }
.desktop-live__notice { border-inline-start:3px solid var(--ui-live-accent, var(--ui-selection-text)); }
/* Shared by live rows and betslip match display; no API check/price dependencies. */
.live-match { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px var(--ui-live-gap, var(--theme-space-3, 12px)); font-size:13px; }
.live-match__teams,.live-match__score { display:grid; grid-template-rows:1fr 1fr; gap:5px; }
.live-match__teams { overflow-wrap:anywhere; }
.live-match__scores { display:flex; gap:var(--ui-live-gap, var(--theme-space-3, 12px)); text-align:end; font-variant-numeric:tabular-nums; }
.live-match__time { grid-column:1/-1; display:flex; gap:6px; align-items:center; flex-wrap:wrap; color:var(--ui-live-muted, var(--ui-content-muted)); font-size:11px; }
.live-match__dot { width:5px; height:5px; border-radius:50%; background:var(--ui-live-accent, var(--ui-selection-text)); }
.live-match--stale .live-match__scores { opacity:.6; }
.betslip-refresh-status { padding:6px 10px; font-size:11px; color:var(--ui-live-muted, var(--ui-content-muted)); }
.betslip-refresh-status--error { border-inline-start:2px solid var(--ui-live-accent, var(--ui-selection-text)); }
@container (max-width:760px) {
    .desktop-live__single { grid-template-columns:minmax(0,1fr); }
    .desktop-live__side { position:static; max-height:260px; }
}
@media (max-width:1000px) {
    .desktop-live-shell__body { grid-template-columns:minmax(0,1fr) minmax(260px,30%); }
}
@media (prefers-reduced-motion:reduce) { .desktop-live button { transition:none; } }

.desktop-live-shell__body.resize { grid-template-columns:minmax(0,1fr) minmax(var(--ui-live-betslip-width, 320px),40%); }
/* Full-market container: shares the desktop odds controls, with no legacy child tree. */
.desktop-game-markets { min-width:0; color:var(--ui-live-text, var(--ui-content-text)); }
.desktop-game-markets__filters { display:flex; gap:var(--ui-live-gap, var(--theme-space-3, 12px)); margin-bottom:var(--ui-live-gap, var(--theme-space-3, 12px)); padding:4px; }
.desktop-game-markets__filters button { flex:none; border:1px solid var(--ui-live-border, var(--ui-content-border)); border-radius:var(--ui-live-small-radius, var(--theme-radius-md, 10px)); padding:10px 14px; background:var(--ui-live-glass, var(--ui-content-control-bg)); color:var(--ui-live-muted, var(--ui-content-muted)); font:inherit; cursor:pointer; }
.desktop-game-markets__filters button[aria-pressed="true"] { color:var(--ui-live-accent, var(--ui-selection-text)); border-color:var(--ui-live-accent, var(--ui-selection-text)); background:var(--ui-live-selected, var(--ui-selection-bg)); }
.desktop-game-markets__panels { display:grid; gap:var(--ui-live-gap, var(--theme-space-3, 12px)); }
.desktop-game-markets__panel { min-width:0; border:1px solid var(--ui-live-border, var(--ui-content-border)); border-radius:var(--ui-live-radius, var(--theme-radius-xl, 18px)); background:var(--ui-live-panel, var(--ui-content-panel-bg)); overflow:hidden; }
.desktop-game-markets__heading { margin:0; font-size:14px; }
.desktop-game-markets__toggle { display:flex; align-items:center; justify-content:space-between; gap:var(--ui-live-gap, var(--theme-space-3, 12px)); width:100%; padding:var(--ui-live-gap, var(--theme-space-3, 12px)); border:0; background:var(--ui-live-header, var(--ui-content-header-bg)); color:inherit; font:inherit; font-weight:700; text-align:start; cursor:pointer; }
.desktop-game-markets__toggle i { color:var(--ui-live-muted, var(--ui-content-muted)); font-size:10px; }
.desktop-game-markets__body { display:grid; gap:var(--ui-live-gap, var(--theme-space-3, 12px)); padding:var(--ui-live-gap, var(--theme-space-3, 12px)); }
.desktop-game-markets__row { min-width:0; }
.desktop-game-markets__row--label { display:grid; grid-template-columns:minmax(46px,auto) minmax(0,1fr); align-items:center; gap:var(--ui-live-gap, var(--theme-space-3, 12px)); }
.desktop-game-markets__label { color:var(--ui-live-muted, var(--ui-content-muted)); font-size:12px; overflow-wrap:anywhere; }
.desktop-game-markets__odds { display:grid; grid-template-columns:repeat(var(--market-outcomes,3),minmax(0,1fr)); gap:var(--ui-live-odds-gap, var(--ui-sports-row-gap, 10px)); min-width:0; }
.desktop-game-markets__odds .desktop-odd { min-width:0; width:100%; height:100%; }
.desktop-game-markets__odds .desktop-odd__shortcut { white-space:normal; overflow-wrap:anywhere; }
.desktop-game-markets button:focus-visible { outline:2px solid var(--ui-live-accent, var(--ui-selection-text)); outline-offset:-2px; }
.desktop-game-markets__empty { color:var(--ui-live-muted, var(--ui-content-muted)); padding:var(--ui-live-pad, var(--ui-sports-page-pad-x, 22px)); }
@container (max-width:500px) {
    .desktop-game-markets__row--label { grid-template-columns:minmax(0,1fr); }
}

/* Match the Sport page shell and grouping; shared theme fallbacks also cover an
   installation where the optional theme-live.css link has not yet been added. */
#desktop-view.desktop-live-shell { min-width:0; height:100vh; height:100dvh; }
.desktop-live-shell *, .desktop-live-shell *::before, .desktop-live-shell *::after { box-sizing:border-box; }
.desktop-live-shell__body { width:100%; align-items:stretch; }
.desktop-live-shell__aside { min-height:0; overscroll-behavior:contain; scrollbar-width:thin; padding:var(--theme-space-3,12px) var(--theme-space-2,8px); background:var(--ui-betslip-bg,var(--ui-navigation-bg)); }
.desktop-live-shell__aside > .bets { width:100%; max-width:none; min-width:0; height:auto; }
.desktop-live-shell__aside .betslip { height:auto; }
.desktop-live-shell__aside .betslip__body { overflow:visible; flex:none; }
.desktop-live-shell__aside .betslip__list { padding-inline:0; }
.desktop-live { overscroll-behavior:contain; }
.desktop-live__toolbar { position:sticky; top:0; z-index:var(--ui-content-z-toolbar,20); background:var(--ui-content-toolbar-bg); padding-top:0; padding-bottom:var(--ui-sports-toolbar-pad-y,16px); }
.desktop-live__toolbar > .day-sport-selector { padding:var(--theme-space-3,12px) 0; margin-bottom:var(--theme-space-3,12px); border-bottom:1px solid var(--ui-content-border-soft); }
.desktop-live__heading { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:start; gap:var(--ui-sports-row-gap,10px); padding:0 var(--ui-sports-row-pad-x,14px); }
.desktop-live__heading-main { min-width:0; }
.desktop-live__sport { min-height:52px; }
.desktop-live__sport h1 { font-size:var(--theme-font-size-20,20px); font-weight:700; overflow-wrap:anywhere; }
.desktop-live__badge { display:inline-flex; align-items:center; gap:5px; }
.desktop-live__badge::before { content:""; width:5px; height:5px; border-radius:50%; background:currentColor; }
.desktop-live__tabs { display:inline-flex; align-items:stretch; gap:var(--ui-live-view-gap,3px); padding:var(--ui-live-view-gap,3px); margin-top:var(--theme-space-2,8px); border:1px solid var(--ui-content-border); border-radius:var(--ui-live-view-radius,12px); background:var(--ui-content-bg); }
.desktop-live__tabs button { min-height:var(--ui-live-view-height,31px); padding:7px 10px; border:1px solid transparent; border-radius:var(--ui-live-view-button-radius,9px); background:transparent; color:var(--ui-content-muted); font-size:var(--theme-font-size-11,11px); line-height:1.25; white-space:nowrap; transition:background var(--theme-duration-press,160ms),transform var(--theme-duration-press,160ms); }
.desktop-live__tabs button[aria-pressed="true"] { background:var(--ui-content-control-bg); border-color:var(--ui-content-border-strong); color:var(--ui-content-text); box-shadow:var(--theme-shadow-inset); }
.desktop-live__tabs button:active { transform:scale(.97); }
.desktop-live__market-picker { min-width:0; padding-inline-end:calc(var(--ui-live-count-width,var(--ui-sports-count-width,44px)) + var(--ui-live-odds-gap,var(--ui-sports-row-gap,10px))); }
.desktop-live__market-picker .desktop-menu__trigger, .desktop-live__market-picker .desktop-tip-selector__placeholder { width:100%; max-width:none; }
.desktop-live__filters { gap:var(--theme-space-2,8px); padding:var(--theme-space-3,12px) var(--ui-sports-row-pad-x,14px) 0; }
.desktop-live__filters button { min-height:30px; padding:5px 12px; font-size:var(--theme-font-size-11,11px); color:var(--ui-content-muted); background:transparent; }
.desktop-live__filters button[aria-pressed="true"] { background:var(--ui-selection-bg); border-color:var(--ui-selection-border); color:var(--ui-selection-text); }
.desktop-live__tournament { box-shadow:var(--theme-shadow-inset); }
.desktop-live__tournament > header { min-height:var(--ui-sports-tournament-header-height,58px); padding:var(--theme-space-2,8px) var(--ui-sports-row-pad-x,14px); }
.desktop-live__league { justify-content:flex-start; padding:0; min-height:38px; }
.desktop-live__league img { flex:none; object-fit:contain; }
.desktop-live__league-title { display:grid; gap:4px; min-width:0; }
.desktop-live__league-title small { font-size:var(--theme-font-size-10,10px); font-weight:400; color:var(--ui-content-muted); }
.desktop-live__league-title strong { font-size:var(--theme-font-size-12,12px); line-height:1.35; }
.desktop-live__league-count { margin-inline-start:auto; font-size:var(--theme-font-size-10,10px); color:var(--ui-content-muted); }
.desktop-live__league > i { font-size:9px; color:var(--ui-content-muted); }
.desktop-live__match-row { padding:var(--ui-sports-row-pad-y,12px) var(--ui-sports-row-pad-x,14px); min-height:var(--ui-sports-row-min-height,66px); border-top-color:var(--ui-content-border-soft); }
.desktop-live__match-left { gap:var(--theme-space-2,8px); }
.desktop-live__favorite { padding:4px; }
.desktop-live__more { min-height:var(--ui-sports-count-height,39px); background:var(--ui-content-subtle-bg); }
.live-match__teams { min-width:0; }
.live-match__teams > span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.live-match__score strong { font-weight:600; }
.desktop-live__detail-title { line-height:1.4; }
.desktop-live-tracker { margin-bottom:var(--theme-space-3,12px); border:1px solid var(--ui-content-border); border-radius:var(--theme-radius-xl,18px); background:var(--ui-content-panel-bg); overflow:hidden; }
.desktop-live-tracker__toggle { display:flex; align-items:center; justify-content:space-between; width:100%; min-height:42px; padding:10px 14px; border:0; color:var(--ui-content-text); background:var(--ui-content-header-bg); text-align:start; font-size:12px!important; }
.desktop-live-tracker__toggle > span { display:flex; gap:8px; align-items:center; }
.desktop-live-tracker iframe { display:block; width:100%; height:var(--ui-live-tracker-height,300px); border:0; }
@container (max-width:620px) {
    .desktop-live__heading, .desktop-live__market-row { grid-template-columns:minmax(0,1fr); row-gap:var(--theme-space-2,8px); }
    .desktop-live__heading { padding:0; }
    .desktop-live__toolbar, .desktop-live__overview, .desktop-live__single { padding-inline:var(--ui-sports-page-pad-x-narrow,14px); }
    .desktop-live__market-picker { padding:0; }
    .desktop-live__tournament .desktop-live__odd-names { display:none; }
}
@media(prefers-reduced-motion:reduce) { .desktop-live__tabs button { transition:none; } }

/* Keep the selected game's markets and its game list independently scrollable. */
.desktop-live--single { display:flex; flex-direction:column; overflow:hidden; }
.desktop-live--single .desktop-live__toolbar { position:static; flex:none; }
.desktop-live--single .desktop-live__single { flex:1; min-height:0; overflow:hidden; align-items:stretch; }
.desktop-live--single .desktop-live__side { position:static; height:100%; max-height:none; min-height:0; }
.desktop-live--single .desktop-live__detail { min-height:0; overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; }
@container (max-width:760px) {
    .desktop-live--single .desktop-live__single { grid-template-rows:minmax(100px,180px) minmax(0,1fr); }
}

/* All three right-hand areas use the same local market-count grid. */
.desktop-live__markets {
    --dg-market-limit:3;
    display:grid;
    grid-template-columns:repeat(var(--live-market-count,1),minmax(0,1fr)) var(--ui-live-count-width,var(--ui-sports-count-width,44px));
    column-gap:var(--ui-live-odds-gap,var(--ui-sports-row-gap,10px));
    align-items:center;
    width:100%; min-width:0;
}
.desktop-live__markets--header { align-items:start; }
.desktop-live__market-picker.desktop-live__markets { padding:0; }
.desktop-live__market-column { display:grid; gap:var(--theme-space-1,4px); min-width:0; }
.desktop-live__market-column .desktop-tip-row { width:100%; }
.desktop-live__markets > .desktop-live__more, .desktop-live__market-spacer { grid-column:-2; }
.desktop-live__outcomes { display:grid; grid-template-columns:repeat(var(--live-outcomes,1),minmax(0,1fr)); gap:var(--ui-game-row-odds-gap,4px); min-width:0; text-align:center; font-size:var(--theme-font-size-10,10px); color:var(--ui-content-muted); }
@container (max-width:620px) {
    .desktop-live__markets { --dg-market-limit:1; }
    .desktop-live__tournament .desktop-live__market-labels { display:none; }
}

.desktop-live .desktop-live__more:disabled {
    color: var(--ui-content-muted);
    background: transparent;
    opacity: .58;
}
