:root {
  --page: #020713;
  --page-soft: #061027;
  --surface: #08152c;
  --surface-2: #0c1d39;
  --surface-3: #122847;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #f5f6f4;
  --muted: #9aa1aa;
  --muted-dark: #69717d;
  --yellow: #ffe203;
  --yellow-hover: #e9cf00;
  --live: #ff5650;
  --display: "Manrope", sans-serif;
  --body: "IBM Plex Sans", sans-serif;
  --radius: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  height: 100%;
  overflow: hidden;
  scroll-behavior: smooth;
}

html.initial-scroll-lock {
  scroll-behavior: auto;
  overflow-anchor: none;
}

body {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-width: 320px;
  height: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--page);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.58;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  transform: translateZ(0);
  backface-visibility: hidden;
}

body::before {
  background-color: var(--page);
  background-image: url("arkaplan.webp");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}

body::after {
  z-index: -1;
  background: linear-gradient(180deg, rgba(2, 7, 19, .03) 0, rgba(2, 7, 19, .1) 52%, rgba(2, 7, 19, .42) 100%);
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.container {
  width: min(100% - 40px, 1100px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 7, 19, .88);
  backdrop-filter: blur(12px);
}

.header-content {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  display: inline-flex;
  width: 188px;
  flex: 0 0 188px;
  align-items: center;
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
}

.nav-links {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.nav-action {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 0 13px;
  color: #c0c5cd;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  transition: background-color .16s ease, box-shadow .16s ease, color .16s ease, transform .1s ease;
}

.telegram-link {
  background: rgba(255, 255, 255, .035);
  box-shadow: inset 0 0 0 1px var(--line);
}

.nav-action:hover {
  background: rgba(255, 255, 255, .085);
  box-shadow: inset 0 0 0 1px rgba(255, 226, 3, .24);
  color: #fff;
}

.affiliate-link {
  background: var(--yellow);
  box-shadow: inset 0 0 0 1px rgba(17, 18, 12, .12), 0 3px 10px rgba(0, 0, 0, .18);
  color: #11120c;
}

.affiliate-link:hover {
  background: #ffea38;
  box-shadow: inset 0 0 0 1px rgba(17, 18, 12, .18), 0 4px 12px rgba(0, 0, 0, .22);
  color: #11120c;
}

.nav-action:active,
.cinema-mode-button:active,
.exit-cinema-mode:active,
.search-button:active,
.multi-screen-button:active,
.tab-button:active,
.scoreboard-mode-button:active {
  transform: translateY(1px);
  transition-duration: .06s;
  box-shadow: none;
}

.audience-meter {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  border-left: 1px solid var(--line);
  margin-left: 5px;
  padding-left: 13px;
}

.meter-copy {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 500;
}

.wau-slot {
  display: flex;
  min-width: 110px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.wau-slot > :not(script),
.wau-slot iframe,
.wau-slot img,
.wau-slot object {
  display: block !important;
}

.wau-slot .waubutton {
  flex: 0 0 110px;
  overflow: hidden;
  border-radius: 6px;
}

.wau-slot > .meter-fallback {
  display: flex !important;
  width: 110px;
  height: 30px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .065);
  color: #b8bec6;
  font-size: .76rem;
  font-weight: 500;
}

.fallback-label {
  display: none;
}

.wau-slot:has(.waubutton) .meter-fallback {
  display: none !important;
}

.site-main {
  flex: 1 1 auto;
  min-height: 0;
  padding-block: 18px 24px;
}

.watch-layout {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.watch-primary,
.watch-secondary {
  display: contents;
}

.player-section {
  order: 1;
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
}

.browse-section {
  min-width: 0;
  flex: 1 1 auto;
}

.info-section {
  order: 4;
  min-width: 0;
  overflow-anchor: none;
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}

.browse-standings-row {
  order: 2;
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

.standings-section {
  position: relative;
  z-index: 4;
  flex: 0 0 48px;
  width: 48px;
  min-width: 48px;
  min-height: 0;
  overflow-anchor: none;
}

.standings-section.is-open {
  z-index: 12;
}

.channel-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 2px solid var(--yellow);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .42);
  animation: player-enter .48s cubic-bezier(.2, .8, .2, 1) both;
}

.channel-header {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 12px 6px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255, 226, 3, .07), transparent 42%);
}

.broadcast-title {
  min-width: 0;
}

.broadcast-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: var(--body);
  font-size: .63rem;
  font-weight: 400;
}

.broadcast-kicker i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(255, 86, 80, .46);
  animation: live-pulse 2s ease-out infinite;
}

.details-title,
.panel-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.025em;
}

.channel-title {
  overflow: hidden;
  margin: 0;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cinema-mode-button,
.exit-cinema-mode,
.multi-screen-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: transparent;
  color: #d3d7dc;
  cursor: pointer;
  font-family: var(--display);
  font-size: .74rem;
  font-weight: 600;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease, transform .1s ease;
}

.cinema-mode-button {
  min-height: 32px;
  padding: 5px 10px;
  font-size: .68rem;
}

.cinema-mode-button svg,
.exit-cinema-mode svg {
  width: 15px;
  height: 15px;
}

.cinema-mode-button:hover,
.exit-cinema-mode:hover {
  border-color: rgba(255, 226, 3, .42);
  background: rgba(255, 226, 3, .075);
  color: #fff;
}

.video-container {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  background: #000;
  contain: layout style;
  isolation: isolate;
  transform: translateZ(0);
}

.player {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.sidebar-card {
  display: grid;
  grid-template-areas:
    "browsehead search"
    "controls controls"
    "list list";
  grid-template-columns: minmax(0, 1fr) 330px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 24px 28px;
}

.sidebar-header {
  grid-area: browsehead;
  min-width: 0;
  padding-right: 28px;
}

.panel-heading {
  margin-bottom: 17px;
}

.panel-heading h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
}

.panel-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .82rem;
}

.sources-tabs {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.sources-tabs::-webkit-scrollbar {
  height: 3px;
}

.sources-tabs::-webkit-scrollbar-thumb {
  background: var(--line-strong);
}

.tab-button {
  position: relative;
  min-height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 11px;
  background: rgba(255, 255, 255, .045);
  color: var(--muted-dark);
  cursor: pointer;
  font-family: var(--display);
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease, transform .1s ease;
}

.tab-button::after {
  display: none;
}

.tab-button:hover {
  border-color: rgba(255, 226, 3, .38);
  background: rgba(255, 226, 3, .09);
  color: #fff;
}

.tab-button.active {
  border-color: var(--yellow);
  background: var(--yellow);
  color: #10150a;
}

.tab-button.active:hover {
  background: #ffea38;
  box-shadow: inset 0 0 0 1px rgba(17, 18, 12, .13);
  color: #10150a;
}

.search-container {
  grid-area: search;
  align-self: end;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  border-radius: 9px;
  transition: box-shadow .18s ease;
}

.search-form:focus-within {
  box-shadow: 0 0 0 1px rgba(255, 226, 3, .48);
}

.search-input {
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 9px 0 0 9px;
  padding: 0 13px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  transition: background-color .18s ease, border-color .18s ease;
}

.search-input::placeholder {
  color: #6f7782;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
}

.search-input:focus {
  border-color: rgba(255, 226, 3, .38);
  background: #0a1931;
}

.search-input:focus-visible {
  outline: none;
}

.search-button {
  min-width: 70px;
  border: 0;
  border-radius: 0 9px 9px 0;
  background: var(--yellow);
  color: #11120c;
  cursor: pointer;
  font-size: .84rem;
  font-weight: 600;
  transition: background-color .16s ease, box-shadow .16s ease, transform .1s ease;
}

.search-button:hover {
  background: #ffea38;
  box-shadow: inset 0 0 0 1px rgba(17, 18, 12, .16);
}

.multi-screen-controls {
  grid-area: controls;
  display: flex;
  gap: 8px;
  padding-top: 12px;
}

.multi-screen-controls[hidden] {
  display: none;
}

.multi-screen-button {
  min-height: 36px;
  padding: 7px 12px;
  border-color: var(--yellow);
  background: var(--yellow);
  color: #11120c;
}

.multi-screen-button:not(.clear):hover {
  border-color: #ffea38;
  background: #ffea38;
  box-shadow: inset 0 0 0 1px rgba(17, 18, 12, .14);
}

.multi-screen-button.clear {
  border-color: var(--line-strong);
  background: transparent;
  color: #d7dbe0;
}

.multi-screen-button.clear:hover {
  border-color: rgba(255, 226, 3, .38);
  background: rgba(255, 226, 3, .075);
  color: #fff;
}

.button-icon {
  font-size: .8rem;
}

.channel-list {
  grid-area: list;
  max-height: 600px;
  margin-top: 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #3f4752 #141820;
  scrollbar-width: thin;
}

.channel-list::-webkit-scrollbar {
  width: 5px;
}

.channel-list::-webkit-scrollbar-track {
  background: #141820;
}

.channel-list::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background: #3f4752;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding-right: 8px;
}

.match-date {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 2px 6px;
  background: transparent;
  color: #b8c0ca;
  font-family: var(--display);
  font-size: .76rem;
  font-weight: 600;
}

.match-date::after {
  height: 1px;
  flex: 1 1 auto;
  background: linear-gradient(90deg, var(--line-strong), transparent);
  content: "";
}

.channel-item {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 64px;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 7px;
  padding: 10px 12px;
  background: rgba(6, 18, 42, .84);
  color: var(--text);
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.channel-item[hidden],
.match-date[hidden] {
  display: none !important;
}

.channel-item::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 0;
  width: 2px;
  border-radius: 0 3px 3px 0;
  background: var(--yellow);
  content: "";
  opacity: 0;
  transition: opacity .16s ease;
}

.channel-item:hover {
  border-color: rgba(255, 226, 3, .32);
  background: rgba(12, 31, 59, .96);
}

.channel-item:active {
  background: rgba(17, 40, 72, .98);
}

.channel-item:focus-visible {
  outline-offset: -1px;
}

.channel-item:hover::before,
.channel-item.selected::before {
  opacity: 1;
}

.channel-item.selected {
  border-color: rgba(255, 226, 3, .52);
  background: rgba(255, 226, 3, .095);
  box-shadow: inset 0 0 0 1px rgba(255, 226, 3, .08);
}

.channel-name {
  overflow: hidden;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
}

.match-meta,
.channel-status {
  color: var(--muted);
  font-family: var(--body);
  font-size: .72rem;
  font-weight: 400;
}

.match-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.match-time {
  flex: 0 0 auto;
  color: #e3e7eb;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.match-league {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-league::before {
  width: 1px;
  height: 10px;
  flex: 0 0 auto;
  background: var(--line-strong);
  content: "";
}

.event-name {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inline-live {
  flex: 0 0 auto;
  margin-left: auto;
  border: 1px solid rgba(255, 86, 80, .28);
  border-radius: 999px;
  padding: 1px 6px;
  background: rgba(255, 86, 80, .09);
  color: #ff7772;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .03em;
}

.channel-status-container .inline-live {
  margin-left: 0;
}

.channel-status-container {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  align-self: flex-start;
  gap: 8px;
  margin-top: 5px;
  white-space: nowrap;
}

.channel-status {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: auto;
  max-width: max-content;
  border: 1px solid rgba(255, 226, 3, .22);
  border-radius: 999px;
  padding: 1px 6px;
  background: rgba(255, 226, 3, .065);
  color: #d8c846;
  font-weight: 600;
}

/* 7/24 kanal satırları: isim üstte, 7/24 + CANLI altında
   ID rakamla başladığı için #24-7-tab yerine [id="24-7-tab"] */
[id="24-7-tab"] .channel-item,
#multi-screen-tab .channel-item:not(:has(.event-name)) {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

[id="24-7-tab"] .channel-item .channel-name,
#multi-screen-tab .channel-item:not(:has(.event-name)) .channel-name {
  width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[id="24-7-tab"] .channel-item .channel-status,
[id="24-7-tab"] .channel-item .channel-status-container,
#multi-screen-tab .channel-item:not(:has(.event-name)) .channel-status,
#multi-screen-tab .channel-item:not(:has(.event-name)) .channel-status-container {
  margin-top: 5px;
  align-self: flex-start;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ff7772;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .025em;
}

.live-badge::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
  content: "";
  box-shadow: 0 0 0 0 rgba(255, 86, 80, .46);
  animation: live-pulse 2s ease-out infinite;
}

.multi-screen-help {
  grid-column: 1 / -1;
  margin: 0;
  border-radius: 9px;
  padding: 12px 13px;
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  font-size: .74rem;
}

.multi-screen-container {
  display: grid;
  width: 100%;
  height: 100%;
  gap: 2px;
  background: #050608;
}

.multi-screen-1 {
  grid-template-columns: 1fr;
}

.multi-screen-2,
.multi-screen-4 {
  grid-template-columns: repeat(2, 1fr);
}

.multi-screen-4 {
  grid-template-rows: repeat(2, 1fr);
}

.multi-screen-item {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: #000;
}

.multi-screen-item iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.remove-screen {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: rgba(7, 9, 12, .84);
  color: #fff;
  cursor: pointer;
}

.details-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding-inline: 26px;
  background: rgba(5, 15, 35, .92);
}

.details-header {
  max-width: 900px;
  padding: 34px 0 31px;
}

.section-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--yellow);
  font-size: .7rem;
  font-weight: 600;
}

.details-title {
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

.details-header p,
.detail-value p {
  margin: 0;
  color: #a9b0ba;
  font-size: .87rem;
  line-height: 1.73;
}

.details-content {
  border-top: 1px solid var(--line);
}

.detail-row {
  display: grid;
  grid-template-columns: minmax(160px, 210px) 1fr;
  gap: 30px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.detail-row:last-child {
  border-bottom: 0;
}

.detail-label {
  color: var(--text);
  font-family: var(--display);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.42;
}

.detail-value p + p {
  margin-top: 11px;
}

.detail-value strong {
  color: #e2e5e8;
  font-weight: 600;
}

.point-table {
  display: flex;
  overflow: hidden;
  height: 100%;
  min-height: 280px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-top: 2px solid var(--yellow);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .28);
}

.standings-section.is-open .point-table {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 12;
  width: min(340px, calc(100vw - 24px));
  box-shadow: -18px 0 40px rgba(0, 0, 0, .42);
}

.table-heading {
  display: flex;
  width: 100%;
  min-height: 53px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid transparent;
  margin: 0;
  padding: 10px 14px;
  background: transparent;
  color: inherit;
  font-family: var(--display);
  font-size: .86rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  appearance: none;
  transition: background-color .16s ease, writing-mode .2s ease;
}

.standings-section:not(.is-open) .table-heading {
  height: 100%;
  min-height: 280px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  padding: 14px 0 16px;
}

.standings-section:not(.is-open) .table-heading-text {
  flex: 1 1 auto;
  justify-content: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  letter-spacing: .05em;
}

.standings-section:not(.is-open) .table-heading-chevron {
  transform: rotate(-90deg);
}

.standings-section:not(.is-open) .table-heading small {
  display: none;
}

.standings-section.is-open .table-heading {
  border-bottom-color: var(--line);
}

.standings-section.is-open .point-table-body {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.table-heading:hover,
.table-heading:focus-visible {
  background: rgba(255, 226, 3, .07);
}

.table-heading:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: -2px;
}

.table-heading-text {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 6px;
}

.table-heading small {
  color: var(--muted);
  font-family: var(--body);
  font-size: .65rem;
  font-weight: 400;
}

.table-heading-chevron {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: .8rem;
  transition: transform .2s ease, color .16s ease;
}

.table-heading[aria-expanded="true"] .table-heading-chevron {
  color: var(--yellow);
  transform: rotate(180deg);
}

.point-table-body[hidden] {
  display: none;
}

.scoreboard-toolbar {
  display: grid;
  gap: 9px;
  border-bottom: 1px solid var(--line);
  padding: 10px;
  background: rgba(4, 12, 28, .72);
}

.scoreboard-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.scoreboard-mode-button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, .035);
  color: var(--muted);
  cursor: pointer;
  font-family: var(--display);
  font-size: .66rem;
  font-weight: 600;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease, transform .1s ease;
}

.scoreboard-mode-button:hover:not(:disabled) {
  border-color: rgba(255, 226, 3, .36);
  background: rgba(255, 226, 3, .075);
  color: #fff;
}

.scoreboard-mode-button.active {
  border-color: var(--yellow);
  background: var(--yellow);
  color: #11120c;
}

.scoreboard-mode-button:disabled {
  cursor: not-allowed;
  opacity: .36;
}

.scoreboard-league {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 0 32px 0 10px;
  background: var(--surface-2);
  color: #e4e7eb;
  cursor: pointer;
  font-size: .7rem;
  outline: none;
  transition: background-color .16s ease, border-color .16s ease;
}

.scoreboard-league:hover,
.scoreboard-league:focus {
  border-color: rgba(255, 226, 3, .38);
  background: #10213d;
}

.point-table iframe {
  display: block;
  width: 100%;
  height: 620px;
  flex: 1 1 auto;
  min-height: 0;
  border: 0;
  background: var(--surface);
  color-scheme: dark;
}

.scoreboard-feed {
  flex: 1 1 auto;
  height: 620px;
  min-height: 0;
  overflow-y: auto;
  background: #0b0f12;
  scrollbar-color: #3f4752 #141820;
  scrollbar-width: thin;
}

.scoreboard-feed[hidden],
.point-table iframe[hidden] {
  display: none;
}

.scoreboard-feed-state {
  margin: 0;
  padding: 28px 14px;
  color: var(--muted);
  font-size: .74rem;
  text-align: center;
}

.scoreboard-season {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  color: var(--yellow);
  font-family: var(--display);
  font-size: .7rem;
  font-weight: 600;
}

.scoreboard-standings-table {
  width: 100%;
  border-collapse: collapse;
  color: #edf0f4;
  font-size: .65rem;
  font-variant-numeric: tabular-nums;
}

.scoreboard-standings-table th,
.scoreboard-standings-table td {
  height: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, .075);
  padding: 5px 7px;
  text-align: center;
}

.scoreboard-standings-table th {
  color: #87919d;
  font-size: .58rem;
  font-weight: 600;
  text-transform: uppercase;
}

.scoreboard-standings-table th:nth-child(2),
.scoreboard-standings-table td:nth-child(2) {
  text-align: left;
}

.scoreboard-standings-table td:nth-child(2) {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-weight: 600;
}

.scoreboard-standings-table td:nth-child(2) span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scoreboard-standings-table img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  object-fit: contain;
}

.scoreboard-standings-table td:last-child {
  color: #fff;
  font-weight: 700;
}

.scoreboard-credit {
  display: none !important;
}

footer {
  flex-shrink: 0;
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: rgba(2, 7, 19, .9);
}

.footer-content {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 20px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--muted-dark);
  font-size: .7rem;
}

.footer-left strong {
  color: #c5cad0;
  font-family: var(--display);
  font-size: .82rem;
  font-weight: 600;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a {
  border-radius: 6px;
  padding: 7px 9px;
  color: var(--muted);
  font-size: .7rem;
  transition: background-color .16s ease, color .16s ease;
}

.footer-links a:hover {
  background: rgba(255, 255, 255, .06);
  color: var(--yellow);
}

.exit-cinema-mode {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;
  display: none;
  min-height: 42px;
  padding: 9px 13px;
  background: rgba(17, 21, 27, .88);
  backdrop-filter: blur(12px);
}

body.cinema-mode {
  overflow: hidden;
  background: #000;
}

body.cinema-mode::before,
body.cinema-mode::after {
  opacity: 0;
}

body.cinema-mode .site-header,
body.cinema-mode .watch-secondary,
body.cinema-mode .browse-standings-row,
body.cinema-mode .browse-section,
body.cinema-mode .info-section,
body.cinema-mode .standings-section,
body.cinema-mode footer {
  display: none;
}

body.cinema-mode .site-main {
  width: 100%;
  max-width: none;
  padding: 0;
}

body.cinema-mode .watch-layout,
body.cinema-mode .watch-primary {
  display: block;
}

body.cinema-mode .player-section {
  width: 100%;
  max-width: none;
}

body.cinema-mode .channel-card {
  display: flex;
  width: 100vw;
  height: 100dvh;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  animation: none;
}

body.cinema-mode .channel-header {
  position: relative;
  z-index: 6;
  flex: 0 0 auto;
  min-height: 46px;
  padding-right: 205px;
  background: rgba(7, 9, 12, .92);
  backdrop-filter: blur(12px);
}

body.cinema-mode .cinema-mode-button {
  display: none;
}

body.cinema-mode .video-container {
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
}

body.cinema-mode .exit-cinema-mode {
  display: inline-flex;
}

@media (min-width: 1050px) {
  .watch-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) clamp(348px, 31vw, 418px);
    align-items: start;
    column-gap: 18px;
    row-gap: 0;
  }

  .watch-primary,
  .watch-secondary {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
  }

  .player-section,
  .browse-section,
  .browse-standings-row,
  .info-section,
  .standings-section {
    order: initial;
  }

  .player-section {
    align-self: stretch;
  }

  .watch-secondary,
  .browse-standings-row {
    min-width: 0;
    height: 100%;
    min-height: 640px;
    align-self: stretch;
  }

  .browse-standings-row {
    display: flex;
    gap: 10px;
  }

  .browse-section {
    position: relative;
    min-height: 640px;
    align-self: stretch;
  }

  .video-container {
    aspect-ratio: 16 / 9;
  }

  .sidebar-card {
    position: absolute;
    inset: 0;
    height: auto;
    min-height: 0;
    grid-template-areas:
      "browsehead"
      "search"
      "controls"
      "list";
    grid-template-rows: auto auto auto minmax(0, 1fr);
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-top: 2px solid var(--yellow);
    border-radius: 14px;
    padding: 18px;
    background: var(--surface);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .24);
    animation: panel-enter .48s .06s cubic-bezier(.2, .8, .2, 1) both;
  }

  .sidebar-header {
    padding-right: 0;
  }

  .panel-heading {
    margin-bottom: 12px;
  }

  .panel-heading h2 {
    font-size: 1.35rem;
  }

  .panel-heading p {
    margin-top: 4px;
    font-size: .76rem;
  }

  .sources-tabs {
    gap: 7px;
    padding-bottom: 2px;
  }

  .tab-button {
    min-height: 32px;
    padding-inline: 10px;
    font-size: .82rem;
  }

  .search-container {
    margin-top: 13px;
  }

  .search-input {
    height: 42px;
    font-size: 1rem;
  }

  .search-input::placeholder {
    font-size: 1rem;
  }

  .channel-list {
    height: 100%;
    min-height: 0;
    max-height: none;
    margin-top: 14px;
  }

  .tab-content.active {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    padding-right: 6px;
  }

  .channel-item {
    min-height: 58px;
    padding: 10px 12px;
  }

  .match-date {
    background: var(--surface);
  }

  .standings-section {
    position: relative;
    top: auto;
    flex: 0 0 48px;
    width: 48px;
    min-width: 48px;
    align-self: stretch;
  }

  .standings-section.is-open .point-table {
    width: min(320px, 34vw);
  }
}

@media (max-width: 1049px) {
  html,
  body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .browse-standings-row {
    position: relative;
  }

  .standings-section.is-open .point-table {
    width: min(340px, calc(100% - 10px));
  }

  .standings-section.is-open .scoreboard-feed,
  .standings-section.is-open .point-table iframe {
    height: auto;
    min-height: 0;
  }
}

@media (max-width: 900px) {
  .browse-standings-row {
    flex-direction: column;
    gap: 12px;
  }

  .standings-section {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    align-self: stretch;
  }

  .standings-section .point-table {
    height: auto;
    min-height: 0;
  }

  .standings-section:not(.is-open) .table-heading {
    height: auto;
    min-height: 48px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
  }

  .standings-section:not(.is-open) .table-heading-text {
    flex: 1 1 auto;
    justify-content: flex-start;
    writing-mode: horizontal-tb;
    transform: none;
    white-space: nowrap;
    letter-spacing: -.01em;
  }

  .standings-section:not(.is-open) .table-heading-chevron {
    transform: none;
  }

  .standings-section:not(.is-open) .table-heading small {
    display: inline;
  }

  .standings-section.is-open .point-table {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .28);
  }

  .sidebar-card {
    grid-template-areas:
      "browsehead"
      "search"
      "controls"
      "list";
    grid-template-columns: 1fr;
  }

  .sidebar-header {
    padding-right: 0;
  }

  .search-container {
    margin-top: 14px;
  }

  .tab-content.active {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tab-button,
  .multi-screen-button {
    min-height: 36px;
    font-size: .86rem;
  }

  .info-section {
    order: 4;
  }

  .scoreboard-feed,
  .point-table iframe {
    height: 480px;
  }
}

@media (max-width: 700px) {
  body::before {
    background-image: none;
  }

  body::after {
    background: linear-gradient(180deg, rgba(2, 7, 19, .02), rgba(2, 7, 19, .28));
  }

  .container {
    width: min(100% - 24px, 1320px);
  }

  .site-header {
    position: relative;
  }

  .header-content {
    min-height: 0;
    flex-wrap: wrap;
    gap: 8px;
    padding-block: 10px;
  }

  .logo {
    width: 146px;
    flex-basis: 146px;
  }

  .nav-links {
    width: 100%;
    display: grid;
    grid-template-columns: .8fr 1.05fr 1.35fr;
    gap: 6px;
  }

  .nav-action {
    min-width: 0;
    min-height: 38px;
    padding-inline: 6px;
    font-size: 1rem;
  }

  .audience-meter {
    min-width: 0;
    min-height: 38px;
    justify-content: flex-end;
    gap: 5px;
    border-left: 0;
    margin-left: 0;
    padding-left: 0;
  }

  .meter-copy {
    font-size: .64rem;
  }

  .site-main {
    padding-block: 12px 38px;
  }

  .watch-layout {
    gap: 24px;
  }

  .channel-header {
    min-height: 44px;
    padding: 6px 10px 6px 13px;
  }

  .channel-title {
    font-size: 1rem;
  }

  .cinema-mode-button {
    width: 44px;
    min-height: 44px;
    padding: 0;
  }

  .cinema-mode-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .sidebar-card {
    padding-block: 20px 24px;
  }

  .channel-list {
    max-height: 620px;
    margin-top: 17px;
  }

  .tab-content.active {
    grid-template-columns: 1fr;
    gap: 5px;
    padding-right: 5px;
  }

  .channel-item {
    min-height: 59px;
    padding: 10px 12px;
  }

  .remove-screen {
    width: 40px;
    height: 40px;
  }

  .details-header {
    padding: 29px 0 27px;
  }

  .details-card {
    padding-inline: 16px;
  }

  .details-title {
    font-size: 1.8rem;
  }

  .details-header p,
  .detail-value p {
    font-size: .82rem;
  }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px 0;
  }

  .footer-content {
    min-height: 100px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
  }

  .footer-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  body.cinema-mode .channel-header {
    display: none;
  }

  body.cinema-mode .exit-cinema-mode {
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 390px) {
  .meter-copy {
    display: none;
  }

  .fallback-label {
    display: inline;
    color: var(--muted);
    font-size: .63rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@keyframes live-pulse {
  70% {
    box-shadow: 0 0 0 7px rgba(255, 86, 80, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 86, 80, 0);
  }
}

@keyframes player-enter {
  from {
    opacity: 0;
    transform: translate3d(-10px, 6px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes panel-enter {
  from {
    opacity: 0;
    transform: translate3d(12px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
