/* Catalogue shell (/sports, /live, /event/*): brief §4 — sport rail 278 · content · coupon 320, gap 18.
 * Built from mockup C2 components (tiles, board rows, LED, pills, seg). */

.shell { display: grid; grid-template-columns: 278px minmax(0, 1fr) 320px; gap: 18px; align-items: start; padding-block: 22px 64px; }
.shell__main { min-width: 0; padding: 0; }

/* ── left rail ─────────────────────────────────────────────────────────── */
.sb { position: sticky; top: 128px; max-height: calc(100vh - 140px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
  padding: 14px; border-radius: var(--r-tile); border: 1px solid var(--hair); background: linear-gradient(180deg, color-mix(in oklab, var(--surface) 70%, var(--bg-raised)), var(--bg-raised) 50%); }
.sb__search { position: relative; display: flex; align-items: center; margin-bottom: 10px; }
.sb__search .icon { position: absolute; left: 13px; width: 16px; height: 16px; color: var(--text-muted); pointer-events: none; }
.sb__search input { width: 100%; height: 44px; padding: 0 12px 0 38px; border-radius: var(--radius-control); border: 1px solid var(--line); background: var(--bg); font-weight: 600; font-size: 14px; }
.sb__search input:focus { outline: none; border-color: var(--primary); box-shadow: var(--focus-ring); }
.sb__nav, .sb__list { display: grid; gap: 2px; }
.sb__nav { padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid var(--hair); }
.sb__nav a, .sb__list a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: 10px; font-weight: 650; font-size: 14px; color: var(--text-dim); transition: background var(--dur-fast), color var(--dur-fast); }
.sb__nav a span, .sb__list a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb__nav a .icon, .sb__list a .icon { width: 17px; height: 17px; color: var(--text-muted); }
.sb__nav a:hover, .sb__list a:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.sb__nav a[aria-current=page], .sb__list a[aria-current=page] { background: var(--primary-12); color: var(--text); box-shadow: inset 2px 0 0 var(--primary); }
.sb__nav a[aria-current=page] .icon, .sb__list a[aria-current=page] .icon { color: var(--primary); }
.sb__n { display: inline-flex; align-items: center; gap: 6px; font-family: var(--led); font-weight: 800; font-size: 13px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.sb__n--live { color: var(--danger); }
.sb__h { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; margin: 12px 10px 6px; }
.sb__list--lg a { font-size: 13px; }

/* ── right coupon panel ───────────────────────────────────────────────── */
.cpanel { position: sticky; top: 128px; max-height: calc(100vh - 140px); display: flex; flex-direction: column; border-radius: var(--r-tile); border: 1px solid var(--hair); background: var(--bg-raised); overflow: hidden; }
.cpanel__h { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px; }
.cpanel__h h2 { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.cpanel__h .lnk { font-size: 13px; color: var(--text-muted); }
.cpanel .seg--tabs { margin: 0 16px; }
.cpanel__b { flex: 1; overflow-y: auto; padding: 14px 16px; overscroll-behavior: contain; }
.cpanel .drawer__disc { padding: 12px 16px; }
.cpanel .ticket--big { padding: 22px 16px; }

/* ── crumbs & head ────────────────────────────────────────────────────── */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 28px; font-weight: 650; }
.crumbs a:hover { color: var(--primary); }
.crumbs .icon { width: 14px; height: 14px; opacity: .6; }
.crumbs [aria-current] { color: var(--text-dim); font-weight: 650; }

/* ── filters ──────────────────────────────────────────────────────────── */
.filters { margin-bottom: 14px; }
.filters__open, .filters__head { display: none; }
.filters__body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; padding: 14px; border-radius: var(--r-tile); border: 1px solid var(--hair); background: var(--bg-raised); }
.filters .field input, .filters .field select { min-height: 44px; font-size: 14px; }
.field--q { grid-column: 1 / -1; }
.filters__act { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

.filters__n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--primary); color: var(--primary-ink); font-size: 12px; }

.res-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.res-bar__n { color: var(--text-muted); font-size: 14px; }
.res-bar__n b { color: var(--text); font-variant-numeric: tabular-nums; }
.seg--view { display: inline-grid; grid-template-columns: auto auto; }
.seg--view a { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 9px; font-weight: 700; font-size: 13.5px; color: var(--text-muted); transition: background var(--dur-fast), color var(--dur-fast); }
.seg--view a .icon { width: 16px; height: 16px; }
.seg--view a[aria-pressed=true] { background: var(--surface-hover); color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }

/* ── results ──────────────────────────────────────────────────────────── */
.results { display: grid; gap: 14px; }
.sgroup { border-radius: var(--r-tile); border: 1px solid var(--hair); background: var(--bg-raised); padding: 14px; scroll-margin-top: 130px; }
.sgroup__h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 2px 4px 12px; }
.sgroup__h h2 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.sgroup__h .grow { flex: 1; }
.shell .ulist .brow, .shell .brow { grid-template-columns: 70px 34px minmax(0, 1fr) 186px; animation: none; }
/* centre column sits between two rails: status lives in the LED time (red = live), not in its own column */
.shell .brow > .st { display: none; }
.shell .led--time { font-size: 18px; width: 70px; height: 40px; }
.more { margin-top: 2px; }
.disc { margin-top: 18px; }

/* cards view: the same rows laid out as a grid of cards */
.shell .results.is-cards [data-list], .shell .results.is-cards .sgroup ol { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.shell .results.is-cards .board { background: none; border: 0; padding: 0; }
.shell .results.is-cards .brow { grid-template-columns: auto 1fr; grid-template-areas: "t s" "m m" "st st" "o o"; gap: 10px; padding: 14px; border-radius: var(--radius-card); border: 1px solid var(--hair); background: linear-gradient(180deg, var(--surface), color-mix(in oklab, var(--surface) 60%, var(--bg-raised))); transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast); }
.shell .results.is-cards .brow::before { display: none; }
.shell .results.is-cards .brow:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.shell .results.is-cards .brow > .led { grid-area: t; }
.shell .results.is-cards .brow > .sic { grid-area: s; justify-self: end; }
.shell .results.is-cards .brow > .bm { grid-area: m; }
.shell .results.is-cards .brow > .st { grid-area: st; display: inline-flex !important; align-items: center; gap: 6px; }
.shell .results.is-cards .brow > .o3 { grid-area: o; }
.shell .results.is-cards .bm a { white-space: normal; }

/* ── event page ───────────────────────────────────────────────────────── */
.ev-hero { position: relative; overflow: hidden; border-radius: var(--r-tile); border: 1px solid var(--hair); margin-bottom: 16px; isolation: isolate; }
.ev-hero__bg { position: absolute; inset: 0; z-index: -1; }
.ev-hero__bg picture, .ev-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.ev-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 10, 17, .95), rgba(10, 10, 17, .8) 50%, rgba(10, 10, 17, .55)), linear-gradient(0deg, rgba(10, 10, 17, .9), transparent 60%); }
.ev-hero__in { padding: 22px 24px 20px; display: grid; gap: 18px; }
.ev-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ev-top .grow { flex: 1; }
.ev-badge { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 750; border: 1px solid var(--hair-2); background: rgba(255, 255, 255, .05); }
.ev-badge--live { color: #FFC2CA; background: var(--danger-12); border-color: color-mix(in oklab, var(--danger) 30%, transparent); }
.ev-badge--fin { color: var(--text-muted); }
.ev-badge--up { color: var(--primary); background: var(--primary-12); border-color: color-mix(in oklab, var(--primary) 30%, transparent); }
.ev-score { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 18px; }
.ev-team { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ev-team--away { flex-direction: row-reverse; text-align: right; }
.ev-team .ini { width: 52px; height: 52px; font-size: 16px; flex: none; border: 1px solid color-mix(in oklab, var(--secondary) 35%, transparent); }
.ev-team b { font-size: clamp(18px, 2vw, 24px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.ev-team small { display: block; font-size: 12px; color: var(--text-muted); font-weight: 650; margin-top: 2px; }
.ev-mid { display: grid; justify-items: center; gap: 6px; text-align: center; }
.ev-mid .led { font-size: 30px; padding: .25em .45em; }
.ev-mid small { font-size: 12px; color: var(--text-muted); font-weight: 650; }
.ev-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--text-muted); font-weight: 600; }
.ev-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ev-meta .icon { width: 15px; height: 15px; }
.ev-act { display: flex; flex-wrap: wrap; gap: 8px; }
.fav[aria-pressed=true] { border-color: color-mix(in oklab, var(--primary) 55%, transparent); color: var(--primary); background: var(--primary-12); }
.fav[aria-pressed=true] .icon { fill: currentColor; }

.ev-pop { margin-bottom: 16px; }
.ev-pop__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mk-mini { padding: 14px; border-radius: var(--radius-card); border: 1px solid var(--hair); background: rgba(6, 6, 11, .35); }
.mk-mini h3 { font-size: 14px; font-weight: 750; margin-bottom: 10px; display: flex; justify-content: space-between; gap: 8px; }
.mk-mini h3 span { color: var(--text-muted); font-weight: 600; font-size: 12px; }

.mk-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.mk-tools .pills { margin: 0; flex: 1 1 320px; min-width: 0; }
.mk-search { position: relative; flex: 0 1 260px; }
.mk-search .icon { position: absolute; left: 12px; top: 13px; width: 16px; height: 16px; color: var(--text-muted); }
.mk-search input { width: 100%; height: 42px; padding: 0 12px 0 36px; border-radius: var(--radius-control); border: 1px solid var(--line); background: var(--bg); font-weight: 600; font-size: 14px; }
.mk-search input:focus { outline: none; border-color: var(--primary); box-shadow: var(--focus-ring); }
.mk-list { display: grid; gap: 10px; }
.mk { border-radius: var(--radius-card); border: 1px solid var(--hair); background: var(--bg-raised); overflow: hidden; }
.mk .acc__b { padding: 12px 16px; min-height: 56px; gap: 12px; }
.mk .acc__b small { color: var(--text-muted); font-weight: 600; font-size: 12px; margin-left: auto; white-space: nowrap; }
.mk__g { font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--secondary-soft); padding: 3px 8px; border-radius: 999px; background: var(--secondary-16); white-space: nowrap; }
.mk__b { padding: 0 16px 16px; }
.mk__note { font-size: 12.5px; color: var(--text-muted); margin-bottom: 10px; }
.mk__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.mk__grid .odd { flex-direction: row; justify-content: space-between; padding: 0 12px; gap: 10px; height: 48px; }
.mk__grid .odd__l { font-size: 13px; color: var(--text-dim); padding: 0; white-space: normal; text-align: left; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mk__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mk__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mk-empty { padding: 24px; text-align: center; color: var(--text-muted); border: 1px dashed var(--hair-2); border-radius: var(--radius-card); }
.mk.is-hidden { display: none; }
.mk .acc__p > div { min-height: 0; }

.ev-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 16px; }
.info-dl { display: grid; gap: 8px; font-size: 14px; }
.info-dl div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--hair); }
.info-dl dt { color: var(--text-muted); font-weight: 600; }
.info-dl dd { margin: 0; font-weight: 700; text-align: right; }
.rel { display: grid; gap: 4px; }
.rel a { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 48px; padding: 6px 8px; border-radius: 10px; font-size: 14px; font-weight: 650; }
.rel a:hover { background: rgba(255, 255, 255, .05); }
.rel a span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rel .led { font-size: 14px; }
.rel small { color: var(--text-muted); font-size: 12px; }

/* ── live page ────────────────────────────────────────────────────────── */
.live-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.live-tools .pills { margin: 0; flex: 1 1 360px; min-width: 0; }
.lgroup { border-radius: var(--r-tile); border: 1px solid var(--hair); background: var(--bg-raised); padding: 14px; }
.lgroup + .lgroup { margin-top: 14px; }
.lgroup.is-hidden { display: none; }
.ltab { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.ltab th { text-align: left; font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; padding: 6px 10px 10px; }
.ltab td { padding: 10px; border-top: 1px solid var(--hair); vertical-align: middle; }
.ltab .c-min { width: 74px; }
.ltab .c-sc { width: 64px; }
.ltab .c-odds { width: 210px; }
.ltab .c-x { width: 52px; text-align: right; }
.ltab tr.is-hidden { display: none; }
.lteam a { display: grid; font-weight: 700; line-height: 1.35; }
.lteam a:hover { color: var(--primary); }
.lteam small { display: block; font-size: 12px; color: var(--text-muted); font-weight: 600; }
.lsc2 { display: inline-grid; gap: 2px; font-size: 15px; padding: .3em .45em; }
.lexp { padding: 0 !important; border-top: 0 !important; }
.lexp > div { padding: 4px 10px 14px; display: grid; gap: 10px; }
.ltab .ibtn[aria-expanded=true] .icon { transform: rotate(180deg); }
.ltab .ibtn .icon { transition: transform var(--dur-fast); }
.live-empty { padding: 36px 20px; text-align: center; display: grid; justify-items: center; gap: 12px; }

/* ── responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1359px) {
  .shell { grid-template-columns: 64px minmax(0, 1fr) 320px; }
  .sb { padding: 10px 6px; }
  .sb__search, .sb__h, .sb__list--lg { display: none; }
  .sb__nav a, .sb__list a { justify-content: center; padding: 0; min-height: 44px; position: relative; }
  .sb__nav a span, .sb__list a span, .sb__n { display: none; }
  .filters__body { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .field--q { grid-column: 1 / -1; }
  .filters__act { grid-column: 1 / -1; }
}
@media (max-width: 1279px) {
  .shell { grid-template-columns: 64px minmax(0, 1fr); }
  .shell .brow, .shell .ulist .brow { grid-template-columns: 70px 34px minmax(0, 1fr) 186px; }
  .cpanel { display: none; }
}
@media (max-width: 1099px) {
  .shell { grid-template-columns: minmax(0, 1fr); padding-top: 14px; }
  .sb { display: none; }
  .js .filters__open { display: inline-flex; }
  .filters__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .filters__body .field--q, .filters__act { grid-column: 1 / -1; }
  .js .filters__body { align-items: stretch; position: fixed; z-index: var(--z-drawer); top: 0; right: 0; bottom: 0; width: min(380px, 100%); display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 0; overflow-y: auto; transform: translateX(102%); visibility: hidden; transition: transform var(--dur-base) var(--ease), visibility var(--dur-base); box-shadow: var(--shadow-popover); }
  .js.filters-open .filters__body, .filters-open .filters__body { transform: none; visibility: visible; }
  .filters-open::after { content: ""; position: fixed; inset: 0; z-index: calc(var(--z-drawer) - 1); background: var(--scrim); }
  .js .filters__head { display: flex; align-items: center; justify-content: space-between; font-size: 18px; }
  .js .filters__act { justify-content: stretch; margin-top: auto; grid-column: auto; }
  .filters__act .btn { flex: 1; }

  .ev-side { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .shell .brow, .shell .ulist .brow { grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "t m" "o o"; }
  .shell .led--time { width: 64px; font-size: 17px; }
  .res-bar { flex-wrap: wrap; }
  .sgroup { padding: 10px; border-radius: 18px; }
  .ev-hero__in { padding: 16px; }
  .ev-score { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ev-team--away { flex-direction: row; text-align: left; }
  .ev-mid { justify-items: start; grid-template-columns: auto auto; align-items: center; justify-content: start; gap: 10px; }
  .ev-team .ini { width: 42px; height: 42px; font-size: 14px; }
  .ev-pop__grid { grid-template-columns: minmax(0, 1fr); }
  .mk-search { flex: 1 1 100%; }
  .mk__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk__grid .odd { height: auto; min-height: 52px; padding: 8px 10px; }
  .ltab thead { display: none; }
  .ltab, .ltab tbody, .ltab tr, .ltab td { display: block; width: auto !important; }
  .ltab tr.lrow2 { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "m t s" "o o x"; gap: 8px 10px; padding: 12px 4px; border-top: 1px solid var(--hair); }
  .ltab tr.lrow2.is-hidden, .ltab tr.lexp-row[hidden] { display: none; }
  .ltab tr.lrow2 td { border: 0; padding: 0; }
  .ltab .c-min { grid-area: m; } .ltab .c-t { grid-area: t; } .ltab .c-sc { grid-area: s; } .ltab .c-odds { grid-area: o; } .ltab .c-x { grid-area: x; align-self: center; }
}
@media (max-width: 389px) {
  .mk__grid, .mk__grid--3, .mk__grid--2 { grid-template-columns: minmax(0, 1fr); }
}

/* centre column is narrow next to two rails: titles and league lines wrap instead of being cut */
.shell .bm a { white-space: normal; overflow: visible; text-overflow: clip; display: block; -webkit-line-clamp: unset; }
.shell .bm small { white-space: normal; text-overflow: clip; }
@media (max-width: 767px) {
  .rel a span:nth-child(2) { white-space: normal; }
  .rel a { grid-template-columns: 58px minmax(0, 1fr); }
  .rel a small { grid-column: 2; }
}
.rel a span:nth-child(2) { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.3; }

/* outcome labels never collapse next to the odds value */
.mk__grid .odd__l { flex: 0 1 auto; min-width: 2.2ch; }
.mk__grid .odd__v { flex: none; }
