/* ==========================================================================
   Sports page — "bailrbet-sports" (1440) / "bailrbet-sports-mobile" (390)
   Mobile-first; desktop at min-width 1024px. Figma inside strokes → border + reduced padding.
   ========================================================================== */

.sp-shell { width: 100%; }
.sp [hidden] { display: none !important; }

/* Control deck: hero copy + sport rail + time switcher ---------------------- */
.sp-deck { background: var(--navy); }
.sp-hero { display: flex; flex-direction: column; gap: 6px; padding: 24px 16px 23px; border-bottom: 1px solid var(--line); }
.sp-hero__head { display: flex; flex-direction: column; gap: 6px; }
.sp-hero__kicker { font-size: 11px; line-height: 14px; font-weight: 800; color: var(--yellow); }
.sp-hero__title { font-family: var(--font-display); font-weight: 900; font-size: 40px; line-height: 38px; color: var(--white); }
.sp-hero__line { display: block; }
.sp-hero__lead { font-size: 12px; line-height: 18px; color: var(--ink-4); }
.sp-hero__badge { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.sp-hero__badge-text { font-family: var(--font-display); font-weight: 900; font-size: 16px; line-height: 19px; color: var(--blue); white-space: nowrap; }
.sp-hero__badge-line { width: 60px; height: 1px; background: var(--blue); }

.sp-controls { display: flex; flex-direction: column; }
.sp-rail { display: flex; flex-direction: column; }
.sp-rail__tabs { gap: 8px; padding: 12px 16px; scroll-padding-inline: 16px; }
.sp-rail__more { padding-top: 0; }
.sp-tab { display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border-radius: 3px; background: var(--navy-2); border: 1px solid var(--line); color: var(--white); font-size: 11px; line-height: 14px; font-weight: 700; white-space: nowrap; transition: background-color var(--t), border-color var(--t), color var(--t); }
.sp-tab:hover { border-color: var(--blue); }
.sp-tab.is-active, .sp-tab.is-active:hover { background: var(--blue); border-color: var(--blue); color: var(--white); font-weight: 800; }
.sp-tab--more.is-open { border-color: var(--yellow); color: var(--yellow); }

.sp-time { padding: 0 16px 15px; border-bottom: 1px solid var(--line); }
.sp-time__rule { display: none; }
.sp-time__row { display: flex; align-items: center; gap: 10px; }
.sp-time__label { font-size: 11px; line-height: 14px; font-weight: 800; color: var(--ink-4); white-space: nowrap; }
.sp-time__options { display: flex; gap: 6px; flex: 1 1 auto; min-width: 0; }
.sp-time__option { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; height: 25px; padding: 0 11px; border-radius: 3px; background: var(--navy-2); border: 1px solid var(--line); color: var(--ink-4); font-size: 10px; line-height: 13px; font-weight: 700; white-space: nowrap; transition: background-color var(--t), border-color var(--t), color var(--t); }
.sp-time__option:hover { border-color: var(--yellow); color: var(--white); }
.sp-time__option.is-active, .sp-time__option.is-active:hover { background: var(--yellow); border-color: var(--yellow); color: var(--navy); font-weight: 800; }

@media (min-width: 1024px) {
  .sp-shell { width: min(var(--content), 100% - 2 * var(--gutter)); margin-inline: auto; }
  .sp-deck { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 47px 0; }
  .sp-deck__inner { display: flex; align-items: flex-start; gap: 48px; }
  .sp-hero { flex: 0 0 420px; gap: 24px; padding: 0; border: 0; }
  .sp-hero__head { gap: 8px; }
  .sp-hero__kicker { font-size: 13px; line-height: 17px; }
  .sp-hero__title { font-size: 56px; line-height: 52px; }
  .sp-hero__lead { font-size: 14px; line-height: 22px; }
  .sp-hero__badge { gap: 12px; margin-top: 0; }
  .sp-hero__badge-text { font-size: 24px; line-height: 29px; }
  .sp-hero__badge-line { width: 80px; }
  .sp-controls { flex: 1 1 auto; min-width: 0; gap: 16px; }
  .sp-rail { gap: 8px; }
  .sp-rail__tabs { flex-wrap: wrap; overflow: visible; padding: 0; }
  .sp-tab { height: 36px; padding: 0 15px; border-radius: 4px; color: var(--ink-4); font-size: 12px; line-height: 16px; }
  .sp-tab:hover { color: var(--white); }
  .sp-time { display: flex; flex-direction: column; gap: 11px; padding: 0; border: 0; } /* 1px rule + 11 = Figma 0-height line + 12 */
  .sp-time__rule { display: block; height: 1px; } /* Figma 0-height LINE with inside stroke renders nothing — keep the spacing only */
  .sp-time__row { gap: 8px; }
  .sp-time__options { flex: none; gap: 8px; }
  .sp-time__option { flex: none; height: 26px; padding: 0 11px; border-radius: 4px; font-size: 11px; line-height: 14px; }
}

/* Editorial status header -------------------------------------------------- */
.sp-status { background: var(--cream); color: var(--ink); }
.sp-status__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0 12px; }
.sp-status__left { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sp-status__title { font-family: var(--font-display); font-weight: 900; font-size: 28px; line-height: 34px; color: var(--ink); }
.sp-status__sub { font-size: 12px; line-height: 16px; color: var(--ink-2); }
.sp-status__right { display: flex; align-items: center; gap: 6px; }
.sp-status__line { width: 20px; height: 2px; background: var(--blue); }
.sp-status__index { font-family: var(--font-display); font-weight: 900; font-size: 18px; line-height: 22px; color: var(--blue); white-space: nowrap; }
@media (min-width: 1024px) {
  .sp-status__inner { padding: 32px 0 20px; }
  .sp-status__left { flex-direction: row; align-items: baseline; gap: 16px; }
  .sp-status__title { font-size: 32px; line-height: 38px; }
  .sp-status__sub { font-size: 14px; line-height: 18px; color: var(--ink-3); }
  .sp-status__right { gap: 8px; }
  .sp-status__line { width: 32px; }
  .sp-status__index { font-size: 24px; line-height: 29px; }
}

/* Match stream --------------------------------------------------------------- */
.sp-main { background: var(--cream); color: var(--ink); }
.sp-stream { display: flex; flex-direction: column; }
.sp-league__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--navy); padding: 12px 16px; }
.sp-league__left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sp-league__name { font-family: var(--font-display); font-weight: 800; font-size: 18px; line-height: 22px; color: var(--white); white-space: nowrap; }
.sp-league__meta { font-size: 10px; line-height: 13px; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-league__link { font-size: 11px; line-height: 14px; font-weight: 700; color: var(--yellow); white-space: nowrap; transition: transform var(--t); }
.sp-league__link:hover { text-decoration: underline; }

.sp-row { display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 15px; background: var(--white); border-bottom: 1px solid var(--line-light); transition: box-shadow .4s var(--ease); }
.sp-row.is-highlight { box-shadow: inset 0 0 0 2px var(--blue); }
.sp-row__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sp-row__time { font-size: 11px; line-height: 14px; font-weight: 800; color: var(--blue); text-transform: uppercase; white-space: nowrap; }
.sp-row__market-m { font-size: 10px; line-height: 13px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; white-space: nowrap; }
.sp-row__teams { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sp-row__team { font-size: 14px; line-height: 18px; font-weight: 700; color: var(--ink); }
.sp-row__market { display: none; }
.sp-row__odds { display: flex; gap: 8px; }
.sp-row .odds { padding: 9px 11px; }
.sp-row .odds__label { font-size: 11px; line-height: 14px; font-weight: 700; color: var(--ink-2); }
.sp-row .odds__price { font-size: 12px; line-height: 16px; font-weight: 900; color: var(--blue); }
.sp-row .odds--selected .odds__label { font-weight: 800; color: var(--navy); }
.sp-row .odds--selected .odds__price { color: var(--navy); }
.sp-row__more { display: flex; justify-content: flex-end; }
.sp-row__more-link { font-size: 12px; line-height: 16px; font-weight: 700; color: var(--blue); white-space: nowrap; }
.sp-row__more-link:hover { text-decoration: underline; }

.sp-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 16px; background: var(--white); border-bottom: 1px solid var(--line-light); }
.sp-note__text { font-size: 12px; line-height: 16px; color: var(--ink-2); }
.sp-note__link { font-size: 12px; line-height: 16px; font-weight: 700; color: var(--blue); white-space: nowrap; }
.sp-note__link:hover { text-decoration: underline; }
.sp-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 32px 16px; background: var(--white); border-bottom: 1px solid var(--line-light); text-align: center; }
.sp-empty__title { font-family: var(--font-display); font-weight: 900; font-size: 24px; line-height: 29px; color: var(--navy); }
.sp-empty__text { max-width: 440px; font-size: 12px; line-height: 18px; color: var(--ink-2); }
.sp-empty__link { margin-top: 8px; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--blue); }
.sp-empty__link:hover { text-decoration: underline; }
.sp-slip { display: none; }

@media (min-width: 1024px) {
  .sp-main { padding: 0 0 64px; }
  .sp-main__inner { display: flex; align-items: flex-start; gap: 32px; }
  .sp-stream { flex: 1 1 auto; min-width: 0; gap: 32px; }
  .sp-league { position: relative; background: var(--white); border-radius: 6px; overflow: hidden; }
  .sp-league::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line-light); border-radius: inherit; pointer-events: none; } /* Figma inside stroke: drawn over content, no layout impact */
  .sp-league__head { padding: 16px; }
  .sp-league__name { font-size: 22px; line-height: 26px; }
  .sp-league__meta { font-size: 12px; line-height: 16px; }
  .sp-league__link { font-size: 13px; line-height: 17px; }
  .sp-row { display: grid; grid-template-columns: 200px 110px minmax(0, 1fr) 110px; grid-template-rows: auto auto; column-gap: 20px; row-gap: 4px; align-items: center; padding: 16px; border-bottom: 0; }
  .sp-row:not([hidden]) ~ .sp-row:not([hidden]) { border-top: 1px solid var(--line-light); padding-top: 15px; }
  .sp-row__meta { grid-row: 1; grid-column: 1; justify-content: flex-start; }
  .sp-row__time { font-weight: 600; color: var(--ink-3); }
  .sp-row__market-m { display: none; }
  .sp-row__teams { grid-row: 2; grid-column: 1; }
  .sp-row__team { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sp-row__market { display: flex; flex-direction: column; gap: 2px; grid-row: 1 / 3; grid-column: 2; }
  .sp-row__market-label { font-size: 10px; line-height: 13px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; }
  .sp-row__market-name { font-size: 13px; line-height: 17px; color: var(--ink-2); }
  .sp-row__odds { grid-row: 1 / 3; grid-column: 3; }
  .sp-row .odds { padding: 11px; background: var(--cream); }
  .sp-row .odds--selected, .sp-row .odds--selected:hover { background: var(--yellow); }
  .sp-row .odds__price { font-size: 13px; line-height: 17px; font-weight: 800; }
  .sp-row .odds--selected .odds__price { font-weight: 900; }
  .sp-row .odds--selected .odds__label::after { content: " [SLIP]"; }
  .sp-row__more { grid-row: 1 / 3; grid-column: 4; }
  .sp-row__more-link { font-size: 13px; line-height: 17px; }
  .sp-note { border: 1px solid var(--line-light); border-radius: 6px; padding: 16px 24px; }
  .sp-empty { border: 1px solid var(--line-light); border-radius: 6px; padding: 48px 32px; }
  .sp-empty__title { font-size: 32px; line-height: 38px; }
  .sp-empty__text { font-size: 13px; line-height: 20px; }
  .sp-slip { display: block; flex: 0 0 340px; position: sticky; top: 16px; }
}

/* Narrow desktop (1024–1279px): the 1440 design's fixed columns don't fit next to the bet slip.
   Narrow the slip, drop the market column (the market name is also in the league header) and let the odds breathe. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .sp-main__inner { gap: 20px; }
  .sp-slip { flex-basis: 300px; }
  .sp-row { grid-template-columns: minmax(120px, 180px) minmax(0, 1fr) auto; column-gap: 16px; }
  .sp-row__market { display: none; }
  .sp-row__odds { grid-column: 2; }
  .sp-row__more { grid-column: 3; }
  .sp-row .odds { padding: 11px 8px; justify-content: center; }
}
