:root {
  --bg: #050507;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-hover: rgba(255, 255, 255, 0.085);
  --glass: rgba(12, 14, 20, 0.78);
  --glass-strong: rgba(12, 14, 20, 0.92);
  --text: #f5f7fa;
  --text-muted: rgba(245, 247, 250, 0.54);
  --accent: #10b981;
  --accent-soft: rgba(16, 185, 129, 0.16);
  --live: #f43f5e;
  --danger: #ef4444;
  --focus: #facc15;
  --radius: 14px;
  --sidebar-w: 380px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

.focusable:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.app-shell {
  width: 100%;
  min-height: 100dvh;
}

/* =====================================================================
   Edge-to-Edge Zero-Border Multi-Video Stage
   ===================================================================== */
.player-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  margin: 0;
  padding: 0;
  background: #000;
  overflow: hidden;
  z-index: 10;
}

.video-grid {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  gap: 0;
}

.video-row {
  display: flex;
  flex-direction: row;
  flex: 1 1 0;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  gap: 0;
}

.video-slot {
  position: relative;
  flex: 1 1 0;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: #000;
  overflow: hidden;
}

/* Subtle inset active-audio highlight only while UI is awake; fades completely when idle */
.video-slot.audio-active::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 2px rgba(16, 185, 129, 0.75);
  z-index: 7;
  transition: opacity 0.25s ease;
}

.player-stage.ui-idle .video-slot.audio-active::after {
  opacity: 0;
}

.slot-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.video-grid.fill-mode .slot-video {
  object-fit: cover;
}

.slot-loading {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 7, 0.78);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 5;
  padding: 16px;
  text-align: center;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.spinner {
  width: 28px;
  height: 28px;
  border: 2.5px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Minimal Corner Stream Overlays (Auto-hide completely when ui-idle) */
.slot-overlay-top,
.slot-overlay-bottom {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  transition: opacity 0.28s ease;
}

.slot-overlay-top {
  top: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0) 100%);
}

.slot-overlay-bottom {
  bottom: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0) 100%);
  flex-wrap: wrap;
}

.player-stage.ui-idle .video-slot:not(.slot-loading) {
  cursor: none;
}

.player-stage.ui-idle .video-slot:not(.slot-loading) .slot-overlay-top,
.player-stage.ui-idle .video-slot:not(.slot-loading) .slot-overlay-bottom,
.player-stage.ui-idle .floating-dock,
.player-stage.ui-idle .dock-audio-bar,
.player-stage.ui-idle .cast-active-banner {
  opacity: 0;
  pointer-events: none;
}

.slot-title-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.slot-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.slot-actions,
.slot-switchers {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.slot-chip {
  appearance: none;
  border: none;
  background: rgba(15, 18, 26, 0.68);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 10px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.slot-chip:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.slot-chip.active {
  background: var(--accent);
  color: #03150e;
  font-weight: 700;
}

.slot-chip-danger:hover {
  background: var(--danger);
  color: #fff;
}

.switcher-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.52);
  margin: 0 3px;
}

/* Floating Translucent Glass Command Dock */
.floating-dock {
  position: fixed;
  top: max(12px, env(safe-area-inset-top, 12px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
  max-width: calc(100vw - 24px);
  overflow-x: auto;
  scrollbar-width: none;
  transition: opacity 0.28s ease;
}

.floating-dock::-webkit-scrollbar {
  display: none;
}

.dock-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 8px 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--text);
}

.dock-btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.12s ease;
}

.dock-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.dock-btn:active {
  transform: scale(0.96);
}

.dock-btn-primary {
  background: var(--accent);
  color: #03150e;
  font-weight: 700;
}

.dock-btn-primary:hover {
  background: #34d399;
}

.dock-btn-danger:hover {
  background: var(--danger);
  color: #fff;
}

.dock-audio-bar {
  position: fixed;
  top: calc(max(12px, env(safe-area-inset-top, 12px)) + 44px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 24;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  max-width: calc(100vw - 24px);
  overflow-x: auto;
  scrollbar-width: none;
  transition: opacity 0.28s ease;
}

.dock-audio-bar::-webkit-scrollbar {
  display: none;
}

.dock-audio-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0 4px 0 6px;
  white-space: nowrap;
}

.dock-audio-pill {
  appearance: none;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 11px;
  max-width: 190px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.dock-audio-pill:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--text);
}

.dock-audio-pill.active {
  background: var(--accent);
  color: #03150e;
  font-weight: 700;
}

.games-loading-card {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.cast-active-banner {
  position: fixed;
  bottom: max(14px, env(safe-area-inset-bottom, 14px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 14px;
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  font-size: 0.78rem;
  font-weight: 600;
  color: #6ee7b7;
  max-width: calc(100vw - 24px);
  transition: opacity 0.28s ease;
}

/* =====================================================================
   Minimalist Borderless Game Browser & Overlay Drawer
   ===================================================================== */
.catalog-drawer {
  position: relative;
  z-index: 30;
  min-height: 100dvh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.catalog-drawer.is-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 8, 0.84);
  backdrop-filter: blur(22px);
  overflow-y: auto;
}

.catalog-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 16px 20px 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.025em;
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  flex-shrink: 0;
}

.brand-accent {
  color: var(--accent);
}

.device-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  padding: 3px 9px;
  border-radius: 999px;
}

.search-form {
  display: flex;
  align-items: center;
  flex: 1 1 240px;
  max-width: 420px;
  background: var(--surface);
  border: none;
  border-radius: 999px;
  padding: 2px 8px 2px 16px;
}

.search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 9px 4px;
  outline: none;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.catalog-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill-btn,
.icon-btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--text);
  background: var(--surface);
  padding: 9px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s ease, transform 0.12s ease;
}

.icon-btn {
  padding: 7px 11px;
  background: transparent;
  color: var(--text-muted);
}

.icon-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.pill-btn:hover {
  background: var(--surface-hover);
}

.pill-btn:active {
  transform: scale(0.97);
}

.pill-btn-sm {
  padding: 6px 12px;
  font-size: 0.78rem;
}

.pill-btn-accent {
  background: var(--accent);
  color: #03150e;
  font-weight: 700;
}

.pill-btn-accent:hover {
  background: #34d399;
}

.filters-bar {
  padding: 4px 20px 8px;
}

.sports-pills,
.provider-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0 8px;
  scrollbar-width: none;
}

.sports-pills::-webkit-scrollbar,
.provider-pills::-webkit-scrollbar {
  display: none;
}

.pill {
  appearance: none;
  border: none;
  background: var(--surface);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.pill:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.pill.active {
  background: var(--text);
  color: #050507;
  font-weight: 700;
}

.pill-sm {
  padding: 5px 11px;
  font-size: 0.74rem;
}

.pill-sm.active {
  background: var(--accent-soft);
  color: #6ee7b7;
}

.subfilters-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.subfilters-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.games-status {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.catalog-main {
  flex: 1;
  padding: 8px 20px 36px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

.game-card {
  position: relative;
  border: none;
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}

.game-card:hover {
  background: var(--surface-hover);
}

.game-card:active {
  transform: scale(0.99);
}

.game-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.game-meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
}

.live-dot-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fda4af;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

.live-dot-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 8px var(--live);
}

.game-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.32;
  color: var(--text);
}

.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.game-sources-mini {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-solo-btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 10px;
  cursor: pointer;
  flex-shrink: 0;
}

.game-solo-btn:hover {
  background: var(--accent);
  color: #03150e;
}

.empty-state {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-muted);
}

/* =====================================================================
   Borderless Modal & Toast
   ===================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  width: 100%;
  max-width: 500px;
  background: var(--glass-strong);
  border: none;
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.75);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
}

.modal-section {
  margin-bottom: 14px;
}

.modal-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.modal-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.modal-section-head .modal-label {
  margin-bottom: 0;
}

.cast-devices-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
}

.cast-device-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface);
  border: none;
  border-radius: 10px;
  padding: 10px 12px;
}

.cast-device-row.casting {
  background: var(--accent-soft);
}

.cast-device-name {
  font-size: 0.88rem;
  font-weight: 700;
}

.cast-device-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border-radius: 10px;
  padding: 6px 8px 6px 12px;
}

.link-code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  font-size: 0.82rem;
  color: #6ee7b7;
  white-space: nowrap;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  background: var(--glass-strong);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}

@media (max-width: 767px) {
  .catalog-header {
    padding: 12px 14px 8px;
  }

  .search-form {
    order: 3;
    flex: 1 1 100%;
    max-width: none;
  }

  .filters-bar {
    padding: 4px 14px 8px;
  }

  .catalog-main {
    padding: 6px 14px 28px;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .device-tag {
    display: none;
  }
}

@media (min-width: 1440px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  }
}

/* =====================================================================
   Header / Dock Accent Buttons for Box Scores & Bleacher Report
   ===================================================================== */
.dock-btn-active {
  background: rgba(16, 185, 129, 0.24);
  color: #6ee7b7;
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.45);
}

.pill-btn-glass.active {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.45);
}

.pill-btn-br {
  background: rgba(245, 158, 11, 0.14);
  color: #fcd34d;
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.3);
}

.pill-btn-br:hover {
  background: rgba(245, 158, 11, 0.24);
}

.pill-btn-br.active {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  color: #160d00;
  font-weight: 700;
  box-shadow: none;
}

/* =====================================================================
   Cycling Grid Box Score Widget (Side Bar Card)
   ===================================================================== */
.boxscore-section {
  margin-bottom: 0;
}

.boxscore-widget {
  background: linear-gradient(135deg, rgba(13, 21, 36, 0.92) 0%, rgba(16, 26, 46, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  overflow: hidden;
}

.bs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.bs-header-left,
.bs-header-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.bs-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #f8fafc;
  background: rgba(244, 63, 94, 0.18);
  border: 1px solid rgba(244, 63, 94, 0.36);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.bs-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f43f5e;
  box-shadow: 0 0 8px #f43f5e;
  animation: bsPulse 1.6s ease-in-out infinite;
}

@keyframes bsPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.bs-mode-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.bs-slot-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.bs-slot-pill {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.bs-slot-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.bs-slot-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #03150e;
}

.bs-counter {
  font-size: 0.74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  padding: 0 4px;
}

.boxscore-progress-track {
  height: 2px;
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.boxscore-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10b981 0%, #38bdf8 100%);
}

.boxscore-card-body {
  padding: 10px 10px;
}

.bs-loading-state {
  text-align: center;
  padding: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.bs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: stretch;
}

.boxscore-widget.is-compact .bs-grid {
  grid-template-columns: 1fr;
}

.boxscore-widget.is-compact .bs-col-team {
  display: none;
}

.bs-col-matchup,
.bs-col-team {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.bs-matchup-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
}

.bs-league-tag {
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.14);
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.bs-status-pill {
  font-variant-numeric: tabular-nums;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.bs-status-pill.is-live {
  background: rgba(244, 63, 94, 0.2);
  color: #fda4af;
}

.bs-status-pill.is-final {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
}

.bs-network-tag {
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bs-teams-scoreboard {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bs-team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.24);
  border-left: 3px solid var(--team-color, #10b981);
}

.bs-team-row.is-winner {
  background: rgba(16, 185, 129, 0.08);
}

.bs-team-id {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.bs-team-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}

.bs-team-names {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bs-team-name-line {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bs-possession-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 8px #fbbf24;
  flex-shrink: 0;
}

.bs-team-record {
  font-size: 0.69rem;
  color: var(--text-muted);
  font-weight: 600;
}

.bs-team-score {
  font-size: 1.45rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  min-width: 34px;
  text-align: right;
}

.bs-linescore-wrap {
  overflow-x: auto;
  scrollbar-width: none;
}

.bs-linescore-table,
.bs-player-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.bs-linescore-table th,
.bs-linescore-table td {
  padding: 3px 5px;
  text-align: center;
  font-size: 0.71rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bs-linescore-table th {
  color: var(--text-muted);
  font-weight: 700;
}

.bs-linescore-table td:first-child,
.bs-linescore-table th:first-child {
  text-align: left;
  font-weight: 800;
  padding-left: 2px;
}

.bs-linescore-table td:last-child,
.bs-linescore-table th:last-child {
  font-weight: 800;
  color: #fff;
}

.bs-situation-bar {
  font-size: 0.74rem;
  line-height: 1.35;
  color: rgba(245, 247, 250, 0.85);
  background: rgba(56, 189, 248, 0.09);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 8px;
  padding: 5px 8px;
}

.bs-col-team-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.bs-col-team-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 800;
}

.bs-col-team-title img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.bs-team-stats {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.bs-stat-chip {
  font-size: 0.67rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: 5px;
}

.bs-stat-chip strong {
  color: var(--text);
  margin-left: 2px;
}

.bs-player-table th {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: right;
  padding: 3px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bs-player-table td {
  font-size: 0.73rem;
  text-align: right;
  padding: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

.bs-player-table th:first-child,
.bs-player-table td:first-child {
  text-align: left;
  font-weight: 700;
  max-width: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bs-leaders-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bs-leader-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.76rem;
  padding: 5px 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
}

.bs-leader-cat {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  min-width: 34px;
}

.bs-leader-name {
  flex: 1;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bs-leader-val {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.bs-unmatched-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bs-unmatched-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.bs-ticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 8px;
}

.bs-ticker-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
}

/* =====================================================================
   Bleacher Report Live Feed & Article Reader Modal
   ===================================================================== */
.br-feed-section {
  margin-bottom: 18px;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.br-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.br-header-left,
.br-header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.br-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  color: #160d00;
}

.br-title {
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.br-filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.br-filter-pills::-webkit-scrollbar {
  display: none;
}

.br-feed-list.mode-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.br-feed-list.mode-carousel .br-card {
  flex: 0 0 295px;
  scroll-snap-align: start;
}

.br-feed-list.mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.br-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(15, 20, 32, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.15s ease, background 0.15s ease;
}

.br-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(24, 31, 48, 0.92);
}

.br-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #161e2e 0%, #0d1320 100%);
  overflow: hidden;
}

.br-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.br-card:hover .br-card-media img {
  transform: scale(1.03);
}

.br-media-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: rgba(245, 158, 11, 0.35);
  letter-spacing: 0.08em;
}

.br-kind-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(5, 8, 15, 0.82);
  color: #fff;
  backdrop-filter: blur(6px);
}

.br-kind-badge.kind-video {
  background: rgba(244, 63, 94, 0.88);
}

.br-kind-badge.kind-tweet {
  background: rgba(14, 165, 233, 0.88);
}

.br-grid-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.66rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.92);
  color: #03150e;
}

.br-card-body {
  padding: 10px 12px 11px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 8px;
}

.br-card-tag-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.69rem;
  font-weight: 700;
  color: #fcd34d;
  text-transform: uppercase;
}

.br-card-tag-logo {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.br-card-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.32;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.br-card-snippet {
  margin: 0;
  font-size: 0.77rem;
  line-height: 1.38;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.br-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.7rem;
  color: var(--text-muted);
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.br-card-stats {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.br-article-modal-card {
  max-width: 720px;
  max-height: 86dvh;
  display: flex;
  flex-direction: column;
}

.br-article-body {
  overflow-y: auto;
  padding-right: 4px;
  line-height: 1.6;
  font-size: 0.95rem;
}

.br-article-hero {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 14px;
}

.br-article-headline {
  margin: 0 0 8px;
  font-size: 1.32rem;
  font-weight: 800;
  line-height: 1.25;
}

.br-article-byline {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.br-article-para {
  margin: 0 0 12px;
  color: rgba(245, 247, 250, 0.9);
}

@media (max-width: 767px) {
  .br-feed-list.mode-carousel .br-card {
    flex: 0 0 250px;
  }
}

/* =====================================================================
   Dedicated Right Companion Sidebar (Box Scores + Polymarket + B/R)
   ===================================================================== */
.companion-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--sidebar-w);
  z-index: 35;
  background: rgba(8, 11, 18, 0.98);
  border-left: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-direction: column;
}

.sidebar-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 9px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  flex-shrink: 0;
}

.sidebar-tabs {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.sidebar-tabs::-webkit-scrollbar {
  display: none;
}

.sidebar-tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sidebar-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.sidebar-tab.active {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.35);
  color: #bae6fd;
}

.sidebar-topbar-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
}

.companion-sidebar .br-feed-section,
.companion-sidebar .boxscore-section {
  margin-bottom: 0;
}

.companion-sidebar .br-feed-section {
  padding: 10px 10px;
}

.companion-sidebar .bs-header {
  padding: 8px 10px;
  gap: 6px 8px;
}

.br-feed-list.mode-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.br-feed-list.mode-sidebar-compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.br-feed-list.mode-sidebar-compact .br-card {
  flex-direction: row;
  align-items: stretch;
}

.br-feed-list.mode-sidebar-compact .br-card-media {
  width: 96px;
  flex-shrink: 0;
  aspect-ratio: 16 / 10;
}

.br-feed-list.mode-sidebar-compact .br-card-snippet {
  display: none;
}

.app-shell.sidebar-open .player-stage {
  width: calc(100vw - var(--sidebar-w));
  right: var(--sidebar-w);
}

.app-shell.sidebar-open .catalog-drawer {
  width: calc(100vw - var(--sidebar-w));
  margin-right: var(--sidebar-w);
}

.app-shell.sidebar-open .catalog-drawer.is-overlay {
  right: var(--sidebar-w);
  width: calc(100vw - var(--sidebar-w));
  margin-right: 0;
}

.app-shell.sidebar-open .floating-dock,
.app-shell.sidebar-open .dock-audio-bar,
.app-shell.sidebar-open .cast-active-banner {
  left: calc((100vw - var(--sidebar-w)) / 2);
  max-width: calc(100vw - var(--sidebar-w) - 24px);
}

@media (max-width: 1100px) {
  :root {
    --sidebar-w: 330px;
  }
}

@media (max-width: 720px) {
  :root {
    --sidebar-w: 240px;
  }
}

/* =====================================================================
   Polymarket Live Odds Cards & Box Score Strip
   ===================================================================== */
.poly-section {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.08) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 14px;
  padding: 10px 11px;
}

.poly-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.poly-header-left {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.poly-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%);
  color: #fff;
}

.poly-live-pill {
  font-size: 0.68rem;
  font-weight: 800;
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 2px 7px;
  border-radius: 999px;
}

.poly-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.poly-card {
  background: rgba(11, 16, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.poly-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(16, 23, 40, 0.95);
}

.poly-card.is-active-slot {
  border-color: rgba(16, 185, 129, 0.65);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.3), 0 8px 24px rgba(16, 185, 129, 0.14);
}

.poly-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.69rem;
}

.poly-card-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.poly-slot-badge {
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.poly-vol {
  color: var(--text-muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.poly-ext-link {
  color: #7dd3fc;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.69rem;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.1);
}

.poly-ext-link:hover {
  background: rgba(56, 189, 248, 0.22);
}

.poly-outcomes {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.poly-outcome-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.poly-outcome-team {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1;
}

.poly-outcome-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.poly-outcome-name {
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poly-outcome-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.poly-pct {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.poly-cents-pill {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.25);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #e0f2fe;
}

.poly-prob-bar {
  height: 5px;
  width: 100%;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  background: rgba(255, 255, 255, 0.08);
}

.poly-prob-seg {
  height: 100%;
  transition: width 0.35s ease;
}

.poly-submarkets {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.poly-sub-chip {
  font-size: 0.69rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 7px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Compact Polymarket strip inside the Cycling Box Score widget */
.bs-poly-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-size: 0.71rem;
  font-variant-numeric: tabular-nums;
}

.bs-poly-label {
  font-weight: 800;
  color: #7dd3fc;
  letter-spacing: 0.03em;
}

.bs-poly-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.bs-poly-pill {
  font-weight: 700;
  color: #e0f2fe;
  background: rgba(56, 189, 248, 0.14);
  padding: 1px 6px;
  border-radius: 5px;
}
