/* =====================================================
   BetPig — BettingPros-style Dark Theme
   ===================================================== */

:root {
  --bg-primary:    #0d1520;
  --bg-secondary:  #111e2e;
  --bg-card:       #162030;
  --bg-card-hover: #1a2740;
  --bg-header:     #0a1019;
  --border:        #1e3148;
  --border-light:  #243d5a;

  --text-primary:   #e2eaf3;
  --text-secondary: #7a9ab8;
  --text-muted:     #4a6680;

  --accent:        #3d9de5;
  --accent-hover:  #5ab0f0;
  --accent-dark:   #1a6fad;

  --green:         #00b85e;
  --green-bg:      rgba(0,184,94,0.12);
  --red:           #e84142;
  --red-bg:        rgba(232,65,66,0.12);
  --gold:          #f5a623;
  --gold-bg:       rgba(245,166,35,0.12);

  --dk-color:      #00a651;
  --fd-color:      #1493ff;
  --mgm-color:     #c9a84c;
  --caesars-color: #00b2a9;
  --tab-color:     #ff6600;
  --sportsbet-color: #ff4500;
  --ladbrokes-color: #d4001e;
  --unibet-color:  #007e3e;

  --radius:        8px;
  --radius-sm:     4px;
  --shadow:        0 4px 20px rgba(0,0,0,0.4);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

img { display: block; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }

/* =====================================================
   HEADER
   ===================================================== */

.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  height: 56px;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.logo-pig {
  font-size: 26px;
}

.logo span { color: var(--accent); }

.sport-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.sport-tab {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  border: none;
  background: none;
}

.sport-tab:hover { color: var(--text-primary); background: var(--bg-card); }
.sport-tab.active { color: var(--text-primary); background: var(--accent-dark); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.btn {
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}
.btn-ghost:hover { color: var(--text-primary); border-color: var(--text-secondary); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }

/* ── Hamburger button (mobile only) ── */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.hamburger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.hamburger-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile menu drawer ── */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.mobile-menu.open { max-height: 480px; }
.mobile-menu-inner { padding: 16px; display: flex; flex-direction: column; gap: 20px; }
.mobile-menu-section { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); margin-bottom: 4px; }
.mobile-menu-link { display: block; padding: 10px 12px; font-size: 14px; font-weight: 500; color: var(--text-secondary); border-radius: var(--radius-sm); text-decoration: none; transition: all 0.15s; }
.mobile-menu-link:hover, .mobile-menu-link.active { color: var(--text-primary); background: var(--bg-card); }

/* Country badge */
.country-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
}

/* ── Sub-nav ── */
.sub-nav {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.sub-nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 24px;
  max-width: 1400px;
  margin: 0 auto;
  overflow-x: auto;
}

.sub-nav-link {
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all 0.15s;
  cursor: pointer;
  text-decoration: none;
}

.sub-nav-link:hover { color: var(--text-primary); }
.sub-nav-link.active { color: var(--accent); border-bottom-color: var(--accent); }

/* =====================================================
   PAGE WRAPPER
   ===================================================== */

.page-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.page-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* =====================================================
   FILTER BAR
   ===================================================== */

.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.filter-select {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 6px 28px 6px 10px;
  font-size: 13px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%234a6680'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

.filter-select:focus { outline: none; border-color: var(--accent); }

.filter-search {
  flex: 1;
  min-width: 160px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 6px 12px 6px 32px;
  font-size: 13px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234a6680' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 10px center;
}

.filter-search::placeholder { color: var(--text-muted); }
.filter-search:focus { outline: none; border-color: var(--accent); }

.filter-pill {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border-light);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.filter-pill:hover { border-color: var(--accent); color: var(--accent); }
.filter-pill.active { background: var(--accent-dark); border-color: var(--accent); color: #fff; }

.filter-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
}

/* =====================================================
   SPORTSBOOK SELECTOR
   ===================================================== */

.books-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.books-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.book-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.15s;
  user-select: none;
}
.book-toggle.active { border-color: var(--accent); color: var(--text-primary); background: rgba(61,157,229,0.1); }
.book-toggle .book-dot { width: 8px; height: 8px; border-radius: 50%; }

/* =====================================================
   PROPS TABLE
   ===================================================== */

.props-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.props-header {
  display: grid;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  align-items: center;
  position: sticky;
  top: 110px;
  z-index: 10;
}

.props-header,
.prop-row-grid {
  grid-template-columns: 220px 100px 80px 1fr;
}

/* Dynamic sportsbook columns set via JS */

.props-header .col-player { }
.props-header .col-stat { }
.props-header .col-line { text-align: center; }
.props-header .col-books { display: flex; gap: 0; }
.props-header .col-book { flex: 1; text-align: center; }

.book-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.book-logo-small {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: contain;
  background: var(--bg-card);
}

/* Player row */
.prop-row {
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.prop-row:last-child { border-bottom: none; }
.prop-row:hover { background: var(--bg-card-hover); }

.prop-row-inner {
  display: grid;
  grid-template-columns: 220px 100px 80px 1fr;
  align-items: stretch;
}

.prop-player-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-right: 1px solid var(--border);
}

.player-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-secondary);
  border: 2px solid var(--border-light);
  flex-shrink: 0;
}

.player-initials {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.player-info { min-width: 0; }

.player-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.prop-stat-cell {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-right: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.prop-stat-badge {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  background: var(--bg-secondary);
  color: var(--accent);
  border: 1px solid var(--border-light);
}

.prop-line-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-right: 1px solid var(--border);
  gap: 2px;
}

.line-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.line-game {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
}

.prop-books-cell {
  display: flex;
}

.book-odds-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
}
.book-odds-col:last-child { border-right: none; }

.odds-cell {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: default;
  transition: background 0.1s;
  border-bottom: 1px solid var(--border);
  min-height: 34px;
  gap: 2px;
}
.odds-cell:last-child { border-bottom: none; }

.odds-cell.best {
  color: var(--green);
  background: var(--green-bg);
}

.odds-cell.worst {
  color: var(--text-muted);
}

.odds-cell .direction {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
}

.odds-cell.best .direction { color: var(--green); }

.odds-cell.na {
  color: var(--text-muted);
  font-size: 11px;
}

.best-badge {
  font-size: 9px;
  font-weight: 800;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Over/Under row labels */
.ou-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ou-label.over { color: var(--green); }
.ou-label.under { color: var(--red); }

/* =====================================================
   BEST BETS CARDS
   ===================================================== */

.picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.pick-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.pick-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.pick-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.pick-sport-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  background: rgba(61,157,229,0.12);
  padding: 3px 8px;
  border-radius: 12px;
}

.pick-game-time {
  font-size: 11px;
  color: var(--text-muted);
}

.pick-confidence {
  display: flex;
  align-items: center;
  gap: 6px;
}

.confidence-stars {
  display: flex;
  gap: 2px;
}

.star { color: var(--gold); font-size: 12px; }
.star.empty { color: var(--border-light); }

.confidence-pct {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
}

.pick-card-body { padding: 14px; }

.pick-matchup {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.pick-team-logo {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: contain;
}

.pick-vs { font-size: 12px; color: var(--text-muted); }

.pick-matchup-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.pick-main {
  margin-bottom: 12px;
}

.pick-player-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.pick-player-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-secondary);
  border: 2px solid var(--border-light);
}

.pick-player-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.pick-player-team {
  font-size: 12px;
  color: var(--text-muted);
}

.pick-bet-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 10px;
}

.pick-direction {
  font-size: 18px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}
.pick-direction.over { color: var(--green); background: var(--green-bg); }
.pick-direction.under { color: var(--red); background: var(--red-bg); }

.pick-line-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.pick-stat-name {
  font-size: 13px;
  color: var(--text-secondary);
}

.pick-odds-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pick-best-book {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--green-bg);
  border: 1px solid var(--green);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
}

.pick-analysis {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.pick-value-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 6px;
}
.pick-value-tag.high { background: var(--green-bg); color: var(--green); border: 1px solid var(--green); }
.pick-value-tag.medium { background: var(--gold-bg); color: var(--gold); border: 1px solid var(--gold); }

/* =====================================================
   HOMEPAGE — HERO
   ===================================================== */

.hero {
  background: linear-gradient(135deg, #0a1929 0%, #0d2137 50%, #0a1929 100%);
  border-bottom: 1px solid var(--border);
  padding: 40px 24px;
}

.hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-title {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-title span { color: var(--accent); }

.hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-lg {
  padding: 12px 28px;
  font-size: 15px;
  border-radius: var(--radius);
}

/* ── Games Strip ── */
.games-strip {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.games-strip-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 0;
  overflow-x: auto;
}

.game-card-strip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 20px;
  border-right: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.1s;
  white-space: nowrap;
  min-width: 180px;
}
.game-card-strip:hover { background: var(--bg-card); }

.game-strip-time {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.game-strip-team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}

.game-strip-name { color: var(--text-primary); }
.game-strip-odds { color: var(--text-secondary); font-size: 12px; }

/* ── Highlights ── */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s;
}
.highlight-card:hover { transform: translateY(-2px); }

.highlight-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.highlight-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.highlight-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  transition: background 0.15s;
}
.highlight-card:hover .highlight-play { background: rgba(0,0,0,0.2); }

.play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  padding-left: 4px;
}

.highlight-info { padding: 10px 12px; }
.highlight-title { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; line-height: 1.4; }
.highlight-meta { font-size: 11px; color: var(--text-muted); }

/* ── Section Headers ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title-icon { font-size: 20px; }

.section-link {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}

/* ── Stats chips ── */
.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

.stat-chip.over { background: var(--green-bg); color: var(--green); }
.stat-chip.under { background: var(--red-bg); color: var(--red); }

/* =====================================================
   LOADING / EMPTY STATES
   ===================================================== */

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  gap: 16px;
  color: var(--text-muted);
}

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

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

.loading-text { font-size: 14px; color: var(--text-secondary); }

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  gap: 12px;
  text-align: center;
}

.empty-icon { font-size: 48px; opacity: 0.4; }
.empty-title { font-size: 16px; font-weight: 700; color: var(--text-secondary); }
.empty-desc { font-size: 13px; color: var(--text-muted); max-width: 300px; }

/* =====================================================
   FOOTER
   ===================================================== */

.site-footer {
  background: var(--bg-header);
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand { max-width: 280px; }
.footer-brand .logo { margin-bottom: 10px; }
.footer-desc { font-size: 12px; color: var(--text-muted); line-height: 1.6; }

.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-muted); margin-bottom: 10px; }
.footer-col a { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  max-width: 1400px;
  margin: 24px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-legal { font-size: 11px; color: var(--text-muted); line-height: 1.6; max-width: 700px; }
.footer-copy { font-size: 11px; color: var(--text-muted); }

/* =====================================================
   MODAL
   ===================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.modal-title { font-size: 18px; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 22px; cursor: pointer; padding: 0; line-height: 1; }
.modal-close:hover { color: var(--text-primary); }

.modal-body { padding: 20px; }

/* Country picker */
.country-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.country-option {
  padding: 20px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-light);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}
.country-option:hover { border-color: var(--accent); background: rgba(61,157,229,0.05); }
.country-option.selected { border-color: var(--accent); background: rgba(61,157,229,0.1); }
.country-option .flag { font-size: 40px; margin-bottom: 8px; }
.country-option .country-name { font-size: 16px; font-weight: 700; }
.country-option .country-books { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .sport-tabs { display: none; }
  .prop-row-inner { grid-template-columns: 160px 80px 70px 1fr; }
  .prop-player-cell { padding: 8px 10px; }
  .player-name { font-size: 12px; }

  /* Show hamburger, hide desktop-only header buttons */
  .hamburger-btn { display: flex; }
  .header-desktop-only { display: none !important; }
  .mobile-menu { display: block; }

  /* Header must be position:relative so the drawer can be absolute */
  .site-header { position: sticky; top: 0; z-index: 100; }
}

@media (max-width: 600px) {
  .page-content { padding: 16px; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .prop-row-inner { grid-template-columns: 140px 70px 60px 1fr; }
}
/* =====================================================
   MOBILE RESPONSIVENESS
   ===================================================== */

/* ── 768px: tablets ─────────────────────────────────── */
@media (max-width: 768px) {
  /* Nav */
  .site-nav { padding: 0 12px; }
  .site-nav-links { display: none; }
  .sport-nav-row1 { gap: 2px; padding: 6px 8px; }
  .sport-nav-row2 { gap: 2px; padding: 4px 8px; }
  .sport-group-btn { padding: 5px 10px; font-size: 12px; }
  .sport-sub-btn { padding: 4px 9px; font-size: 11px; }

  /* Game cards */
  .games-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .game-team-abbr { font-size: 18px; }

  /* Player grid */
  .players-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
  .pc-avatar, .pc-init { width: 52px; height: 52px; }

  /* Today picks */
  .today-picks-row { gap: 10px; }
  .today-pick-card { min-width: 160px; }

  /* Best bets */
  .picks-grid { grid-template-columns: 1fr 1fr; }
  .pick-card { padding: 14px; }

  /* Game detail header */
  .game-detail-header { padding: 14px 16px; }
  .gdh-abbr { font-size: 24px; }

  /* Charts */
  .chart-container { overflow-x: auto; }

  /* Page padding */
  .page-content { padding: 14px 12px; }
}

/* ── 480px: phones ───────────────────────────────────── */
@media (max-width: 480px) {
  /* Nav */
  .sport-nav-row1 { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .sport-nav-row2 { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .sport-group-btn { flex-shrink: 0; }
  .sport-sub-btn { flex-shrink: 0; }

  /* Game cards */
  .games-grid { grid-template-columns: 1fr; }

  /* Player grid — 2 columns on phone */
  .players-grid { grid-template-columns: 1fr 1fr; }

  /* Best bets — 1 column */
  .picks-grid { grid-template-columns: 1fr; }

  /* Today picks — scrollable row */
  .today-picks-row { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
  .today-pick-card { min-width: 200px; flex-shrink: 0; }

  /* Pick card */
  .pick-card-header { flex-direction: column; gap: 6px; align-items: flex-start; }
  .pick-odds-breakdown { grid-template-columns: repeat(2, 1fr); }
  .pick-player-row { gap: 10px; }
  .pick-player-avatar, .player-initials { width: 36px !important; height: 36px !important; }

  /* Charts */
  #chart-body svg { min-width: 320px; }
  .gl-box { overflow-x: auto; }

  /* Profile header */
  .prof-header { flex-direction: column; }
  .stat-pills { margin-left: 0; width: 100%; }

  /* Game detail */
  .gdh-team { min-width: 80px; }
  .gdh-abbr { font-size: 20px; }
  .gdh-full { font-size: 10px; }

  /* Page */
  .page-content { padding: 10px 8px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 6px; }

  /* Hero stat grid — single column on very small phones */
  .hero-inner > div:last-child { grid-template-columns: 1fr 1fr; }
}

/* =====================================================
   PERFORMANCE & ACCESSIBILITY
   ===================================================== */

/* Touch-action: horizontal-scroll containers get momentum scroll on iOS */
.games-strip-inner,
.sub-nav-inner,
.sport-nav-row1,
.sport-nav-row2,
.today-picks-row {
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

/* Reduced motion: disable animations for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .spinner { animation: none; border-top-color: var(--accent); opacity: 0.6; }
  .stats-loading { animation: none; background: var(--border); }
}

/* game-index utility */
.game-strip-abbr { font-size: 15px; font-weight: 900; }

/* =====================================================
   PROP CARD v2  (picture-2 layout)
   ===================================================== */

.prop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

/* The card itself */
.prop-card-v2 {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 16px 14px;
  gap: 0;
  transition: border-color 0.15s, transform 0.15s;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.prop-card-v2:hover { border-color: var(--accent); transform: translateY(-2px); }

/* Photo + team badge */
.pcv2-photo-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 10px;
}
.pcv2-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid var(--border);
  background: var(--bg-secondary);
}
.pcv2-initials {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.pcv2-team-badge {
  position: absolute;
  bottom: -2px;
  right: -4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--bg-card);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pcv2-team-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Player name + matchup */
.pcv2-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 2px;
}
.pcv2-matchup {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 12px;
}

/* Divider */
.pcv2-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: 12px;
}

/* Market + line */
.pcv2-market {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  text-align: center;
  margin-bottom: 4px;
}
.pcv2-line {
  font-size: 34px;
  font-weight: 900;
  color: var(--text-primary);
  text-align: center;
  line-height: 1;
  margin-bottom: 6px;
}
.pcv2-odds {
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
}
.pcv2-odds .o { color: var(--green); }
.pcv2-odds .u { color: var(--red); }
.pcv2-odds .sep { color: var(--border-light); margin: 0 4px; }

/* Proj + rating footer */
.pcv2-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.pcv2-proj {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.pcv2-proj-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}
.pcv2-proj-val {
  font-size: 13px;
  font-weight: 800;
}
.pcv2-proj-val.over  { color: var(--green); }
.pcv2-proj-val.under { color: var(--red); }
.pcv2-rating {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.pcv2-rating-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}
.pcv2-stars { font-size: 11px; letter-spacing: 1px; }

@media (max-width: 480px) {
  .prop-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .pcv2-line { font-size: 28px; }
  .pcv2-photo-wrap, .pcv2-photo, .pcv2-initials { width: 64px; height: 64px; }
}


/* =====================================================
   PLAYER STATS (BallDontLie)
   ===================================================== */

.player-clickable {
  cursor: pointer;
  transition: background 0.12s;
}
.player-clickable:hover {
  background: var(--bg-card-hover);
}
.player-clickable:hover .player-name {
  color: var(--accent);
}

.player-stat-line {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 500;
  letter-spacing: 0.1px;
}

.stat-vs-line {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 8px;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.stat-vs-line.over  { background: var(--green-bg);  color: var(--green); }
.stat-vs-line.under { background: var(--red-bg);    color: var(--red);   }
.stat-vs-line.push  { background: var(--bg-secondary); color: var(--text-muted); }

.stats-loading {
  display: inline-block;
  width: 40px;
  height: 6px;
  background: linear-gradient(90deg, var(--border) 25%, var(--border-light) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 3px;
  margin-top: 3px;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* =====================================================
   UTILITIES
   ===================================================== */

.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mt-16 { margin-top: 16px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 12px; }
.font-bold { font-weight: 700; }
.hidden { display: none !important; }

/* ── Index page additions ── */
.game-strip-abbr { font-size: 15px; font-weight: 900; }
