/*
  257or.sbs — SP × SB Premium Theme
  Drop-in override for the current production markup.
  Connect AFTER /app.css.
*/

:root {
  --top: 206px;
}

html[data-theme="dark"] {
  --page: #06080d;
  --header: rgba(8, 11, 18, .82);
  --header-ink: #f8fafc;
  --header-muted: #7f8da3;
  --bar: rgba(12, 16, 24, .78);
  --bar-line: rgba(255,255,255,.075);
  --ink: #eef3fa;
  --muted: #7f8da3;
  --accent: #7590ff;
  --pill: rgba(255,255,255,.055);
  --pill-ink: #eaf0f8;
  --league: rgba(16, 23, 34, .93);
  --league-ink: #dbe5f4;
  --league-top: rgba(111, 88, 30, .26);
  --league-top-ink: #f7dda0;
  --row: rgba(10, 14, 21, .76);
  --row-line: rgba(255,255,255,.055);
  --row-hover: rgba(255,255,255,.055);

  --big: #7ee2a8;
  --big-bg: rgba(42, 199, 111, .13);
  --medium: #f4cb76;
  --medium-bg: rgba(242, 190, 65, .12);
  --short: #9ab5ff;
  --short-bg: rgba(85, 119, 255, .14);
  --error: #ff8d93;
  --error-bg: rgba(255, 83, 94, .12);
  --none: #667285;

  --glass: rgba(255,255,255,.045);
  --glass-strong: rgba(255,255,255,.072);
  --glass-line: rgba(255,255,255,.085);
  --blue: #6784ff;
  --green: #34d58a;
  --shadow: 0 22px 60px rgba(0,0,0,.34);
  --shadow-soft: 0 10px 34px rgba(0,0,0,.20);
  --top: 206px;
  color-scheme: dark;
}

html {
  min-height: 100%;
  background: #f3f5fb;
}

html[data-theme="dark"] {
  background: #06080d;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(780px 520px at 13% -9%, rgba(60, 102, 255, .08), transparent 63%),
    linear-gradient(180deg, #f7f9fd 0%, #f3f5fb 42%, #eef2f8 100%) fixed;
  color: var(--ink);
  font: 12px/1.25 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .005em;
}

html[data-theme="dark"] body {
  background:
    radial-gradient(780px 520px at 13% -9%, rgba(60, 102, 255, .16), transparent 63%),
    radial-gradient(620px 480px at 94% 13%, rgba(25, 210, 132, .095), transparent 60%),
    linear-gradient(180deg, #090c13 0%, #06080d 42%, #05070b 100%) fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .22;
  background:
    linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, transparent 72%);
  mask-image: linear-gradient(to bottom, #000 0, transparent 72%);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(117,144,255,.9);
  outline-offset: 2px;
}

/* main shell */
header.top,
.board {
  width: min(760px, calc(100% - 20px));
}

header.top {
  top: 0;
  margin-top: 0;
  overflow: visible;
  border: 1px solid var(--glass-line);
  border-radius: 0 0 25px 25px;
  background: rgba(8, 12, 18, .98);
  box-shadow: var(--shadow);
}

header.top::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  background: #06080d;
  pointer-events: none;
}

.brandbar {
  position: relative;
  height: 58px;
  padding: 0 13px 0 16px;
  border-radius: 24px 24px 0 0;
  border-bottom: 1px solid rgba(255,255,255,.055);
  background:
    radial-gradient(240px 80px at 14% 0%, rgba(103,132,255,.13), transparent 75%),
    linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0));
}

.brandbar h1 {
  display: flex;
  align-items: center;
  min-width: 0;
}

.logo {
  height: 39px;
  filter: none;
}

.brand-actions {
  gap: 7px;
}

.brandbar .status {
  position: relative;
  max-width: 270px;
  padding-left: 13px;
  color: rgba(225,234,246,.56);
  font-weight: 600;
  letter-spacing: .01em;
}

.brandbar .status::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(52,213,138,.08), 0 0 12px rgba(52,213,138,.56);
}

.brandbar button,
.brandbar a.board-switch {
  height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 11px;
  background: rgba(255,255,255,.045);
  color: rgba(237,243,250,.76);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  font: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.brandbar button:hover,
.brandbar a.board-switch:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.13);
  transform: translateY(-1px);
}

#theme.icon-btn {
  width: 32px;
  padding: 0;
}

/* SP / SB switch */
.projects {
  gap: 6px;
  padding: 8px;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,.055);
}

.projects button {
  position: relative;
  height: 38px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(255,255,255,.022);
  color: rgba(215,225,239,.52);
  font-size: 11px;
  letter-spacing: .035em;
}

.projects button::after {
  content: "";
  position: absolute;
  right: 12%;
  bottom: -17px;
  left: 12%;
  height: 18px;
  border-radius: 50%;
  opacity: 0;
  background: rgba(108,136,255,.7);
  filter: blur(14px);
  transition: opacity .2s ease;
}

.projects button:hover {
  border-color: rgba(255,255,255,.075);
  background: rgba(255,255,255,.05);
  color: rgba(242,247,252,.86);
}

.projects button[aria-pressed="true"] {
  border-color: rgba(129,151,255,.22);
  background:
    linear-gradient(135deg, rgba(94,124,255,.16), rgba(33,203,129,.075));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.065), 0 8px 22px rgba(0,0,0,.14);
}

.projects button[aria-pressed="true"]::after {
  opacity: .52;
}

.projects img {
  width: 19px;
  height: 19px;
  border-radius: 6px;
  box-shadow: 0 5px 12px rgba(0,0,0,.25);
}

.project-icons {
  isolation: isolate;
}

.project-icons img + img {
  margin-left: -5px;
}

/* sport + day controls */
.sports,
.days {
  border-bottom-color: rgba(255,255,255,.055);
  background: transparent;
}

.sport-row {
  height: 42px;
  gap: 5px;
  padding: 4px 8px;
}

.sport-row .sport-chip,
.sport-burger,
.days button,
.days .date-arrow,
.days .date-current {
  border: 1px solid rgba(255,255,255,.065);
  background: rgba(255,255,255,.035);
  color: rgba(222,231,243,.67);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.022);
}

.sport-row .sport-chip {
  height: 32px;
  padding: 0 9px;
  border-radius: 11px;
  border-bottom-width: 1px;
}

.sports button[aria-pressed="true"],
.days button[aria-pressed="true"] {
  color: #fff;
  border-color: rgba(111,140,255,.28);
  border-bottom-color: rgba(111,140,255,.28);
  background:
    linear-gradient(135deg, rgba(95,125,255,.18), rgba(49,207,135,.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 6px 18px rgba(0,0,0,.12);
}

.sport-burger {
  width: 34px;
  height: 32px;
  border-radius: 11px;
}

.days {
  min-height: 48px;
  padding: 7px 8px 8px;
  gap: 7px;
  border-radius: 0 0 24px 24px;
  border-bottom: 0;
}

.days .date-arrow,
.days .date-current {
  height: 33px;
  border-radius: 11px;
}

.days .date-current {
  min-width: 112px;
  color: #eef3fa;
  font-weight: 750;
}

.days button.hide-started,
.days button.traffic-sort {
  height: 33px;
  border-radius: 11px;
  border-color: rgba(255,255,255,.07);
  background: rgba(255,255,255,.02);
  color: rgba(210,220,235,.52);
}

.days button.hide-started[aria-pressed="true"],
.days button.traffic-sort[aria-pressed="true"] {
  border-color: rgba(117,144,255,.34);
  background: rgba(102,128,255,.10);
  color: #eaf0ff;
}

/* floating menus */
.sport-menu,
.day-menu {
  margin-top: 6px;
  padding: 7px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09) !important;
  border-radius: 16px !important;
  background: rgba(10,14,21,.98) !important;
  box-shadow: 0 24px 70px rgba(0,0,0,.52) !important;
}

.sport-menu-head,
.day-menu-head {
  color: rgba(199,211,227,.46) !important;
  border-bottom-color: rgba(255,255,255,.055) !important;
}

.sports .sport-menu button,
.days .day-menu button {
  border: 1px solid transparent;
  border-radius: 10px;
  color: rgba(225,233,244,.72);
}

.sports .sport-menu button:hover,
.days .day-menu button:hover {
  background: rgba(255,255,255,.045);
}

.sports .sport-menu button[aria-pressed="true"],
.days .day-menu button[aria-pressed="true"] {
  border-color: rgba(107,136,255,.20);
  background: linear-gradient(135deg, rgba(94,124,255,.15), rgba(38,200,127,.06));
  color: #fff;
}

/* board */
.board {
  position: relative;
  padding-top: 12px;
  padding-bottom: 36px;
}

.sport-title {
  height: 22px;
  margin: 2px 8px 4px;
  padding: 0 8px;
  color: rgba(177,191,210,.48);
  font-size: 10px;
  line-height: 22px;
  letter-spacing: .08em;
}

.sport-name {
  color: rgba(211,222,236,.62);
}

.league {
  position: relative;
  margin: 0 0 11px;
  overflow: visible;
  border: 1px solid rgba(255,255,255,.068);
  border-radius: 0 17px 17px 0;
  background: rgb(12, 16, 24);
  box-shadow: var(--shadow-soft);
}

.league::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  opacity: .6;
  background: linear-gradient(to bottom, rgba(104,132,255,.9), rgba(52,213,138,.15) 75%, transparent);
}

.league-head {
  top: var(--top);
  height: 34px;
  padding: 0 10px 0 12px;
  border-bottom: 1px solid rgba(255,255,255,.055);
  background: rgb(17, 23, 33);
  color: rgba(224,233,245,.84);
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

.league-head.top {
  color: #f4dfa7;
  background:
    linear-gradient(90deg, rgba(141,105,32,.22), rgba(104,81,30,.10)),
    rgba(17,23,33,.94);
}

.league-head.top .league-name::before {
  content: "★";
  margin-right: 6px;
  color: #e9c469;
  font-size: 10px;
  text-shadow: 0 0 12px rgba(233,196,105,.36);
}

.league-head {
  border-radius: 0 16px 0 0;
}

.match:last-child {
  border-radius: 0 0 16px 0;
}

.league-name {
  letter-spacing: .005em;
}

.league-count {
  color: rgba(184,197,215,.46);
}

.match {
  min-height: 38px;
  height: 38px;
  padding: 0 10px 0 12px;
  border-bottom: 1px solid rgba(255,255,255,.045);
  background: transparent;
  transition: background .12s ease;
}

.match:last-child {
  border-bottom: 0;
}

.match:hover {
  background:
    linear-gradient(90deg, rgba(103,132,255,.045), rgba(255,255,255,.024));
}

.time {
  color: rgba(174,188,206,.48);
  font-size: 11px;
  font-weight: 650;
}

.teams {
  color: rgba(240,244,250,.90);
  font-weight: 620;
  letter-spacing: .002em;
}

.vs {
  color: rgba(153,168,188,.37);
}

.views,
.cost {
  color: rgba(182,197,216,.54);
}

.views:hover,
.cost:hover {
  color: #dfe9f8;
}

.views .metrika,
.views .metrika-slot {
  opacity: .66;
  filter: drop-shadow(0 0 8px rgba(103,132,255,.22));
}

/* prediction markers */
.mark {
  min-width: 31px;
  height: 21px;
  line-height: 21px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 10px;
  letter-spacing: .02em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

a.mark:hover {
  filter: brightness(1.08);
}

.mark.big {
  border-color: rgba(90,222,148,.14);
  color: var(--big);
  background: linear-gradient(135deg, rgba(45,199,112,.16), rgba(30,139,91,.08));
}

.mark.medium {
  border-color: rgba(244,203,118,.14);
  color: var(--medium);
  background: linear-gradient(135deg, rgba(238,184,55,.15), rgba(184,132,30,.07));
}

.mark.short {
  border-color: rgba(144,170,255,.16);
  color: var(--short);
  background: linear-gradient(135deg, rgba(87,117,255,.17), rgba(71,88,176,.07));
}

.mark.live {
  border-color: rgba(144,170,255,.16);
  color: var(--short);
  background: linear-gradient(135deg, rgba(87,117,255,.17), rgba(71,88,176,.07));
}

.mark.error {
  border-color: rgba(255,114,124,.14);
  color: var(--error);
  background: rgba(255,79,91,.10);
}

.mark.both {
  border-color: rgba(255,255,255,.10);
  color: #eef3fb;
  background: linear-gradient(135deg, rgba(103,132,255,.20), rgba(42,210,132,.12));
}

.mark.none {
  color: rgba(119,133,151,.45);
  background: transparent;
  box-shadow: none;
}

.empty {
  margin: 24px 0;
  padding: 28px 18px;
  border: 1px dashed rgba(255,255,255,.10);
  border-radius: 18px;
  background: rgba(255,255,255,.025);
  color: rgba(190,202,218,.52);
  text-align: center;
}

/* premium scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(125,145,180,.28) transparent;
}
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(125,145,180,.24);
  background-clip: padding-box;
}

/* mobile */
@media (max-width: 720px) {
  :root,
  html[data-theme="dark"] { --top: 188px; }

  header.top,
  .board {
    width: calc(100% - 12px);
  }

  header.top {
    top: 0;
    margin-top: 0;
    border-radius: 0 0 21px 21px;
  }

  .brandbar {
    height: 52px;
    padding: 0 8px 0 11px;
    border-radius: 20px 20px 0 0;
  }

  .logo {
    height: 34px;
  }

  .brandbar .status {
    max-width: 36vw;
    padding-left: 10px;
    font-size: 10px;
  }

  .brandbar .status::before {
    width: 5px;
    height: 5px;
    margin-top: -2.5px;
  }

  .brandbar button,
  .brandbar a.board-switch {
    height: 30px;
    padding: 0 9px;
    font-size: 10px;
  }

  .projects {
    padding: 6px;
  }

  .projects button {
    height: 35px;
    border-radius: 11px;
  }

  .sport-row {
    height: 39px;
    padding: 3px 6px;
  }

  .sport-row .sport-chip {
    height: 31px;
    padding: 0 8px;
  }

  .days {
    min-height: 46px;
    padding: 6px;
    gap: 5px;
    border-radius: 0 0 20px 20px;
  }

  .days .date-current {
    min-width: 98px;
  }

  .board {
    padding-top: 9px;
  }

  .sport-title {
    height: 18px;
    margin: 1px 6px 3px;
    padding: 0 6px;
    font-size: 9px;
    line-height: 18px;
    letter-spacing: .06em;
  }

  .league {
    margin-bottom: 8px;
    border-radius: 0 15px 15px 0;
  }

  .league-head {
    top: var(--top);
    height: 33px;
    padding-right: 8px;
    padding-left: 9px;
  }

  .match {
    height: 39px;
    min-height: 39px;
    padding-right: 7px;
    padding-left: 9px;
  }

  .sport-title,
  .league-head,
  .match {
    grid-template-columns: 40px minmax(0, 1fr) 44px 44px 52px;
  }

  .teams {
    font-size: 11.5px;
  }

  .mark[data-letter]:not([data-letter="—"]) {
    min-width: 32px;
    height: 24px;
    line-height: 24px;
    padding: 0 8px;
    border-radius: 8px;
  }
}

@media (max-width: 380px) {
  :root,
  html[data-theme="dark"] { --top: 188px; }

  .brandbar .status {
    display: none;
  }

  .days button.hide-started,
  .days button.traffic-sort {
    padding: 0 7px;
  }

  .sport-title,
  .league-head,
  .match {
    grid-template-columns: 37px minmax(0, 1fr) 42px 42px 49px;
  }
}

html[data-theme="light"] header.top {
  border-color: rgba(16, 20, 31, .08);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 10px 28px rgba(16, 24, 40, .08);
}

html[data-theme="light"] header.top::before {
  background: #f3f5fb;
}

html[data-theme="light"] .brandbar {
  border-bottom-color: #e4e8f2;
  background: linear-gradient(180deg, #ffffff, #f7f9fd);
}

html[data-theme="light"] .brandbar .status {
  color: #667084;
}

html[data-theme="light"] .brandbar button,
html[data-theme="light"] .brandbar a.board-switch {
  border-color: #e4e8f2;
  background: #eef1f8;
  color: #10141f;
  box-shadow: none;
}

html[data-theme="light"] .brandbar button:hover,
html[data-theme="light"] .brandbar a.board-switch:hover {
  background: #e7ecff;
  color: #10141f;
  border-color: #d5dced;
}

html[data-theme="light"] .projects {
  border-bottom-color: #e4e8f2;
}

html[data-theme="light"] .projects button {
  background: transparent;
  color: #667084;
}

html[data-theme="light"] .projects button:hover {
  border-color: #e4e8f2;
  background: #f4f7ff;
  color: #10141f;
}

html[data-theme="light"] .projects button[aria-pressed="true"] {
  border-color: rgba(52, 105, 255, .18);
  background: #e7ecff;
  color: #1a2748;
  box-shadow: none;
}

html[data-theme="light"] .sport-row .sport-chip,
html[data-theme="light"] .sport-burger,
html[data-theme="light"] .days button,
html[data-theme="light"] .days .date-arrow,
html[data-theme="light"] .days .date-current {
  border-color: #e4e8f2;
  background: #eef1f8;
  color: #10141f;
  box-shadow: none;
}

html[data-theme="light"] .sports button[aria-pressed="true"],
html[data-theme="light"] .days button[aria-pressed="true"] {
  color: #1a2748;
  border-color: rgba(52, 105, 255, .28);
  background: #e7ecff;
  box-shadow: none;
}

html[data-theme="light"] .days .date-current {
  color: #10141f;
}

html[data-theme="light"] .days button.hide-started,
html[data-theme="light"] .days button.traffic-sort {
  border-color: #e4e8f2;
  background: transparent;
  color: #667084;
}

html[data-theme="light"] .days button.hide-started[aria-pressed="true"],
html[data-theme="light"] .days button.traffic-sort[aria-pressed="true"] {
  border-color: rgba(52, 105, 255, .34);
  background: #e7ecff;
  color: #1a2748;
}

html[data-theme="light"] .sport-menu,
html[data-theme="light"] .day-menu {
  border-color: #e4e8f2 !important;
  background: #ffffff !important;
  box-shadow: 0 16px 40px rgba(16, 24, 40, .12) !important;
}

html[data-theme="light"] .sport-menu-head,
html[data-theme="light"] .day-menu-head {
  color: #667084 !important;
  border-bottom-color: #e4e8f2 !important;
}

html[data-theme="light"] .sports .sport-menu button,
html[data-theme="light"] .days .day-menu button {
  color: #10141f;
}

html[data-theme="light"] .sports .sport-menu button:hover,
html[data-theme="light"] .days .day-menu button:hover {
  background: #f4f7ff;
}

html[data-theme="light"] .sports .sport-menu button[aria-pressed="true"],
html[data-theme="light"] .days .day-menu button[aria-pressed="true"] {
  border-color: transparent;
  background: #e7ecff;
  color: #10141f;
}

html[data-theme="light"] .sport-title {
  color: #667084;
}

html[data-theme="light"] .sport-name {
  color: #3d4758;
}

html[data-theme="light"] .league {
  border-color: #e4e8f2;
  background: #ffffff;
}

html[data-theme="light"] .league-head {
  border-bottom-color: #e4e8f2;
  background: #f7f9fd;
  color: #10141f;
}

html[data-theme="light"] .league-head.top {
  color: #8a6420;
  background: linear-gradient(90deg, #fff6df, #fffdf6);
}

html[data-theme="light"] .league-count,
html[data-theme="light"] .time,
html[data-theme="light"] .views,
html[data-theme="light"] .cost,
html[data-theme="light"] .vs {
  color: #667084;
}

html[data-theme="light"] .teams {
  color: #10141f;
}

html[data-theme="light"] .match {
  border-bottom-color: #eef1f6;
}

html[data-theme="light"] .match:hover {
  background: #f4f7ff;
}

html[data-theme="light"] .views:hover,
html[data-theme="light"] .cost:hover {
  color: #10141f;
}

html[data-theme="light"] .mark.both {
  border-color: #d5dced;
  color: #1a2748;
  background: linear-gradient(135deg, #e7ecff, #e8f8ef);
}

html[data-theme="light"] .mark.none {
  color: #9aa3ab;
}

html[data-theme="light"] .empty {
  border-color: #d5dced;
  background: #ffffff;
  color: #667084;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}