:root {
  --court-orange: #ff6f00;
  --court-orange-dark: #e65100;
  --court-orange-light: #ff9e40;
  --live-red: #ff1744;
  --loss-red: #ff5252;

  /* Dark Theme (Default) */
  --bg: #0b132b;
  --surface: #132242;
  --card: #1c2f57;
  --border: rgba(42, 67, 117, 0.75);
  --border-subtle: rgba(148, 163, 184, 0.22);
  --text-primary: #f0f4f8;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --win-green: #00e676;
  --stat-blue: #29b6f6;
  --highlight-orange: #ff9e40;
  --gold-star: #ffd54f;
  --logo-badge-bg: rgba(255, 255, 255, 0.08);
  --pill-bg: #132242;
  --chip-selected-bg: #e65100;
  --chip-selected-fg: #ffffff;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

html[data-theme="light"] {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --card: #e8eef6;
  --border: #cbd5e1;
  --border-subtle: rgba(71, 85, 105, 0.22);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --win-green: #008744;
  --stat-blue: #0277bd;
  --highlight-orange: #e65100;
  --gold-star: #d97706;
  --logo-badge-bg: rgba(15, 23, 42, 0.06);
  --pill-bg: #ffffff;
  --chip-selected-bg: #e65100;
  --chip-selected-fg: #ffffff;
  --shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input {
  font-family: inherit;
}

.hidden {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Sticky Top Header */
.top-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 10px 20px 8px;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-clickable {
  cursor: pointer;
  padding: 4px 8px 4px 4px;
  margin: -4px 0 -4px -4px;
  border-radius: 12px;
  transition: background-color 0.15s ease;
}

.brand-clickable:hover {
  background: var(--card);
}

.brand-clickable:focus-visible {
  outline: 2px solid var(--court-orange);
  outline-offset: 2px;
}

.brand-logo-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 0;
  border: none;
  object-fit: contain;
  background: transparent;
}

.brand-sync-dot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--win-green);
  border: 2px solid var(--surface);
}

.brand-logo-fallback {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--stat-blue);
  background: linear-gradient(135deg, var(--court-orange), var(--court-orange-dark));
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 14px;
  align-items: center;
  justify-content: center;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 1.2px;
  color: var(--text-primary);
  line-height: 1.15;
}

.brand-subtitle {
  font-size: 11px;
  color: var(--text-secondary);
}

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

.status-summary {
  display: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--card);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: 999px;
}

@media (min-width: 760px) {
  .status-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

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

.bookmark-nav-btn {
  position: relative;
}

.bookmark-nav-btn.active {
  color: var(--court-orange);
  background: rgba(255, 111, 0, 0.14);
}

.bookmark-nav-btn.active svg {
  fill: var(--court-orange);
}

.bookmark-count-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--court-orange);
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}

.bookmarks-subheader {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0 4px;
}

.bookmarks-subheader-text {
  display: flex;
  flex-direction: column;
}

.bookmarks-subheader-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
}

.bookmarks-subheader-meta {
  font-size: 11px;
  color: var(--text-secondary);
}

.refresh-btn {
  color: var(--court-orange);
}

.refresh-btn.spinning .icon {
  animation: spin 0.9s linear infinite;
}

.icon {
  width: 21px;
  height: 21px;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

/* Search + Sport Dropdown Row */
.search-sport-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.search-box {
  flex: 1;
  min-width: 0;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background-color: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  transition: border-color 0.15s ease;
}

.search-box:focus-within {
  border-color: var(--court-orange);
}

.search-icon {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 14px;
}

.search-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.65;
}

.clear-search-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.clear-search-btn:hover {
  background: var(--surface);
  color: var(--text-primary);
}

.ranked-toggle-btn {
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--card);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ranked-toggle-btn:hover {
  border-color: var(--court-orange);
}

.ranked-toggle-btn.active {
  background: var(--court-orange);
  border-color: var(--court-orange-dark);
  color: #ffffff;
}

.ranked-toggle-btn.active:hover {
  background: var(--court-orange-dark);
}

.sport-dropdown {
  position: relative;
  flex-shrink: 0;
}

.sport-dropdown-btn {
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--court-orange-dark);
  background: var(--court-orange);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.sport-dropdown-btn:hover {
  background: var(--court-orange-dark);
}

.sport-btn-icon {
  display: inline-flex;
  align-items: center;
}

.dropdown-caret {
  width: 18px;
  height: 18px;
}

.sport-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 185px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px;
  z-index: 50;
}

.sport-option {
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: left;
}

.sport-option:hover {
  background: var(--card);
}

.sport-option.selected {
  color: var(--court-orange);
  font-weight: 700;
}

.sport-option-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Date Ribbon */
.date-ribbon-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.today-jump-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--court-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.today-jump-btn:hover {
  background: var(--card);
}

.date-nav-btn {
  width: 32px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--card);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.date-nav-btn:hover {
  border-color: var(--court-orange);
  color: var(--text-primary);
}

.date-ribbon {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0;
  flex: 1;
  min-width: 0;
  scrollbar-width: thin;
}

.date-chip {
  flex-shrink: 0;
  min-width: 62px;
  padding: 7px 11px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--card);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.date-chip.today-outline {
  border-color: rgba(255, 111, 0, 0.8);
}

.date-chip.selected {
  background: var(--court-orange);
  border-color: var(--court-orange);
  color: #ffffff;
}

.date-chip-top {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.78;
  letter-spacing: 0.4px;
}

.date-chip.selected .date-chip-top {
  opacity: 0.95;
}

.date-chip-bottom {
  font-size: 15px;
  font-weight: 700;
  margin-top: 2px;
}

/* Main Content */
.main-content {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 12px 20px 36px;
  flex: 1;
}



/* Responsive Desktop Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 14px;
}

@media (max-width: 420px) {
  .games-grid {
    grid-template-columns: 1fr;
  }
}

.game-card {
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 15px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 11px;
  transition: transform 0.14s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.game-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 111, 0, 0.55);
  box-shadow: var(--shadow);
}

.game-card.live-card {
  border-color: rgba(255, 23, 68, 0.55);
}

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

.card-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  flex-shrink: 1;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  background: var(--pill-bg);
  color: var(--text-primary);
  flex-shrink: 0;
}

.status-badge.live {
  background: rgba(255, 23, 68, 0.16);
  color: var(--live-red);
}

.status-badge.final {
  color: var(--text-secondary);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live-red);
  animation: pulseDot 1.2s ease-in-out infinite;
}

.gamecast-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(255, 111, 0, 0.14);
  border: 1px solid rgba(255, 111, 0, 0.45);
  color: var(--court-orange);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

.gamecast-badge:hover {
  background: rgba(255, 111, 0, 0.24);
  border-color: var(--court-orange);
}

.gamecast-arrow {
  font-size: 10px;
  line-height: 1;
}

.broadcast-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--pill-bg);
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 600;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.sport-tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(41, 182, 246, 0.14);
  color: var(--stat-blue);
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

.bookmark-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: var(--pill-bg);
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.bookmark-card-btn:hover {
  color: var(--court-orange);
}

.bookmark-card-btn.bookmarked {
  background: rgba(255, 111, 0, 0.14);
  color: var(--court-orange);
}

.bookmark-card-btn svg {
  width: 14px;
  height: 14px;
}



/* Competitor Rows */
.competitors-stack {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.competitor-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-logo-wrap {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--logo-badge-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.team-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.team-abbr-fallback {
  font-size: 11px;
  font-weight: 800;
  color: var(--court-orange);
}

.rank-pill {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 111, 0, 0.16);
  color: var(--court-orange);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.team-info {
  flex: 1;
  min-width: 0;
}

.team-name {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-name.winner {
  font-weight: 800;
}

.team-record {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 1px;
}

.team-score {
  font-size: 21px;
  font-weight: 800;
  margin-left: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

.team-score.tennis-compact {
  font-size: 16px;
}

.team-score.winner {
  color: var(--win-green);
}

.tennis-sets-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  flex-shrink: 0;
}

.tennis-set-box {
  min-width: 24px;
  height: 26px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--pill-bg);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.tennis-set-box.winner {
  color: var(--win-green);
  font-weight: 800;
}

/* Win Probability Bar */
.prob-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.prob-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  min-width: 0;
}

.prob-team {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.prob-team-away {
  justify-content: flex-start;
}

.prob-team-home {
  justify-content: flex-end;
}

.prob-team-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prob-pct {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
}

.prob-pct.fav {
  color: var(--win-green);
}

.prob-center-label {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-secondary);
  opacity: 0.75;
}

.prob-bar-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: var(--surface);
  overflow: hidden;
  display: flex;
}

.prob-bar-away {
  height: 100%;
  transition: width 0.5s ease;
}

.prob-bar-divider {
  width: 2px;
  height: 100%;
  background: var(--surface);
  flex-shrink: 0;
}

.prob-bar-home {
  height: 100%;
  flex: 1;
  transition: width 0.5s ease;
}

/* Odds Pills Footer */
.odds-pills-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.odds-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--pill-bg);
  border: 0.5px solid var(--border-subtle);
  font-size: 10px;
}

.odds-pill.highlight {
  background: rgba(255, 111, 0, 0.15);
  border-color: rgba(255, 111, 0, 0.4);
}

.odds-pill-label {
  font-weight: 700;
  color: var(--text-secondary);
}

.odds-pill-val {
  font-weight: 700;
  color: var(--text-primary);
}

.odds-pill.highlight .odds-pill-val {
  color: var(--highlight-orange);
}

.provider-label {
  margin-left: auto;
  font-size: 10px;
  color: var(--text-secondary);
  opacity: 0.7;
}

/* Loading, Empty, Error States */
.center-state {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 16px;
  gap: 12px;
}

.spinner {
  width: 38px;
  height: 38px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--court-orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.primary-btn, .outline-btn {
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.primary-btn {
  border: none;
  background: var(--court-orange);
  color: #ffffff;
}

.outline-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-primary);
}

/* Detail Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(5, 10, 24, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.detail-modal {
  width: 100%;
  max-width: 660px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.detail-modal-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detail-sport-date {
  font-size: 13px;
  font-weight: 700;
  color: var(--court-orange);
}

.detail-hero-wrap {
  background: var(--card);
  border-radius: 16px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.detail-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
  min-width: 0;
}

.detail-logo-wrap {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--logo-badge-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.detail-team-name {
  font-size: 16px;
  font-weight: 800;
}

.detail-team-meta {
  font-size: 11px;
  color: var(--text-secondary);
}

.detail-score {
  font-size: 30px;
  font-weight: 900;
  margin-top: 2px;
  line-height: 1.05;
}

.detail-score.winner {
  color: var(--win-green);
}

.detail-sets-caption {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.7px;
  color: var(--text-secondary);
}

.detail-sets-divider {
  height: 1px;
  background: var(--border-subtle);
}

.detail-sets-table {
  background: var(--surface);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-sets-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.detail-sets-head {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--text-secondary);
}

.detail-sets-player {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-set-col {
  width: 28px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  flex-shrink: 0;
}

.detail-set-col.won {
  color: var(--win-green);
  font-weight: 800;
}

.detail-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 0 8px;
}

.detail-vs-badge {
  font-size: 14px;
  font-weight: 900;
  color: var(--court-orange);
}

.detail-vs-badge.live {
  color: var(--live-red);
}

.detail-vs-sub {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.detail-card {
  background: var(--card);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--court-orange);
  text-transform: uppercase;
}

.detail-prob-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.detail-prob-big {
  font-size: 28px;
  font-weight: 900;
}

.detail-prob-big.fav {
  color: var(--win-green);
}

.detail-confidence {
  font-size: 12px;
  font-weight: 700;
  color: var(--court-orange);
  text-align: center;
}

.original-pregame-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--surface);
  font-size: 12px;
}

.original-pregame-label {
  font-weight: 600;
  color: var(--text-secondary);
}

.original-pregame-values {
  font-weight: 700;
  color: var(--text-primary);
}

.betting-lines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 520px) {
  .betting-lines-grid {
    grid-template-columns: 1fr;
  }
}

.stat-box {
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px;
}

.stat-box-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--text-secondary);
}

.stat-box-value {
  font-size: 16px;
  font-weight: 800;
  margin: 4px 0 2px;
}

.stat-box-sub {
  font-size: 11px;
  color: var(--text-secondary);
}

/* Account & Sync Modal */
.account-modal {
  max-width: 430px;
}

.account-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 6px 0;
}

.account-logo-lg {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.account-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--court-orange);
}

.account-avatar-fallback {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 111, 0, 0.16);
  border: 2px solid var(--court-orange);
  color: var(--court-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
}

.account-sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 230, 118, 0.14);
  color: var(--win-green);
  font-size: 11px;
  font-weight: 700;
}

.account-sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--win-green);
}

.account-info-box {
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.account-error-box {
  background: rgba(255, 23, 68, 0.14);
  border: 1px solid rgba(255, 23, 68, 0.45);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--loss-red);
}

.google-signin-btn {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: #1f2937;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}

.google-signin-btn:hover:not(:disabled) {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.google-signin-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.account-signout-btn {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 82, 82, 0.5);
  background: rgba(255, 82, 82, 0.1);
  color: var(--loss-red);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.account-signout-btn:hover {
  background: rgba(255, 82, 82, 0.18);
}

.account-retry-btn {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255, 111, 0, 0.55);
  background: rgba(255, 111, 0, 0.14);
  color: var(--court-orange);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.account-retry-btn:hover {
  background: rgba(255, 111, 0, 0.22);
}

/* Sport Selection Splash Screen */
.sport-splash {
  max-width: 560px;
  margin: 18px auto 32px;
  padding: 28px 20px;
  border-radius: 22px;
  background: radial-gradient(circle at 50% 0%, rgba(255, 111, 0, 0.14), transparent 62%), var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.sport-splash-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.sport-splash-logo-wrap {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  border: 1px solid rgba(255, 111, 0, 0.35);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  margin-bottom: 4px;
}

.sport-splash-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sport-splash-title {
  margin: 0;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1.6px;
  color: var(--text-primary);
}

.sport-splash-prompt {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--court-orange);
}

.sport-splash-subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 400px;
}

.sport-splash-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sport-splash-card {
  width: 100%;
  min-height: 64px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: var(--card);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, transform 0.12s ease, background-color 0.15s ease;
}

.sport-splash-card:hover {
  border-color: var(--court-orange);
  transform: translateY(-1px);
}

.sport-splash-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 111, 0, 0.14);
  border: 1px solid rgba(255, 111, 0, 0.35);
  color: var(--court-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sport-splash-card-text {
  flex: 1;
  min-width: 0;
}

.sport-splash-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.sport-splash-card-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.sport-splash-card-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--court-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sport-splash-bookmarks-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 111, 0, 0.5);
  background: transparent;
  color: var(--court-orange);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.sport-splash-bookmarks-btn:hover {
  background: rgba(255, 111, 0, 0.12);
}

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

@keyframes pulseDot {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}
