/* Mobile-first sports odds page */
/* Global layout */
html { scroll-behavior: smooth; }
* { box-sizing: border-box; }
body { margin: 0; }

.odds-page { background: var(--bg-primary); min-height: 100vh; padding-bottom: 60px; }

.odds-page body { background: var(--bg-primary); }

.odds-hero {
  background: linear-gradient(135deg, #0f1923 0%, #1a2535 100%);
  border-bottom: 1px solid var(--border);
  padding: 28px 0 24px;
  text-align: center;
}

.odds-hero h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.odds-hero p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0;
}

.odds-updated {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Bookmaker filter */
.odds-controls-wrap {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 60px;
  z-index: 10;
}

.odds-controls-inner {
  width: 100%;
}

.bookie-filter {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.bookie-filter::-webkit-scrollbar { display: none; }

.bookie-filter label {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bookie-filter select {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 6px 8px;
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  max-width: 180px;
  flex-shrink: 0;
}

/* Sport tabs */
.sport-tabs {
  display: none;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-top: 1px solid var(--border);
  padding: 0 16px;
  box-sizing: border-box;
}

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

.sport-tab {
  padding: 10px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
  flex-shrink: 0;
}

.sport-tab:hover { color: var(--text-primary); background: rgba(255,255,255,0.03); }

.sport-tab.active {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
  background: rgba(240,185,11,0.05);
}

.sport-tab .tab-count {
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--border);
  color: var(--text-muted);
  padding: 1px 5px;
  border-radius: 10px;
}

.sport-tab.active .tab-count {
  background: rgba(240,185,11,0.2);
  color: var(--accent-gold);
}

/* Sport select (mobile) */
.sport-select-wrap {
  display: block;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
}

.sport-select {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 9px 32px 9px 12px;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 0.15s;
}

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

/* ---- Hero Arb Banner ---- */
.arb-hero {
  background: linear-gradient(135deg, rgba(0,200,83,0.15) 0%, rgba(0,200,83,0.05) 100%);
  border: 1px solid rgba(0,200,83,0.35);
  border-radius: 16px;
  margin-bottom: 20px;
  overflow: hidden;
}

.arb-hero-inner {
  padding: 20px 24px;
  text-align: center;
}

.arb-hero-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #00c853;
  margin-bottom: 10px;
}

.arb-hero-match {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.arb-hero-league {
  font-size: 0.75rem;
  color: var(--accent-gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.arb-hero-stakes {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.arb-hero-stake {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(0,200,83,0.3);
  border-radius: 12px;
  padding: 12px 16px;
  min-width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.arb-hero-stake-team {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.arb-hero-stake-odds {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.arb-hero-stake-bookie {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent-gold);
}

.arb-hero-stake-amount {
  font-size: 0.78rem;
  font-weight: 700;
  color: #00c853;
}

.arb-hero-profit {
  font-size: 0.85rem;
  color: #00c853;
  font-weight: 600;
  margin-bottom: 8px;
}

.arb-hero-profit strong {
  font-size: 1.1rem;
}

.arb-hero-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Match cards */
.matches-section { padding: 16px; }

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

.section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.arb-badge {
  background: #00c853;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.match-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.15s;
}

.match-card:hover { border-color: rgba(255,215,0,0.4); }
.match-card.has-arb { border-color: rgba(0,200,83,0.5); }

.match-header {
  padding: 10px 14px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.match-league {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-gold);
}

.match-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

.match-teams {
  padding: 0 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.match-team {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
  overflow-wrap: break-word;
  word-break: break-all;
  min-width: 0;
}

/* Odds row */
.odds-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid var(--border);
}

.odds-cell {
  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
  transition: background 0.1s;
  border-right: 1px solid var(--border);
  position: relative;
  min-width: 0;
}

.odds-cell:last-child { border-right: none; }
.odds-cell:hover { background: rgba(255,215,0,0.05); }
.odds-cell.best { background: rgba(255,215,0,0.08); }

.odds-cell-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 3px;
  font-weight: 600;
}

.odds-cell-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.odds-cell.best .odds-cell-value { color: var(--accent-gold); }

.odds-cell-best-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
}

/* Arb panel */
.arb-panel {
  background: rgba(0, 200, 83, 0.08);
  border-top: 1px solid rgba(0, 200, 83, 0.3);
  padding: 10px 14px;
}

.arb-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #00c853;
  margin-bottom: 6px;
}

.arb-stakes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.arb-stake {
  background: rgba(0,200,83,0.15);
  border: 1px solid rgba(0,200,83,0.3);
  border-radius: 8px;
  padding: 6px 8px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.arb-stake-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}

.arb-stake-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-muted);
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.arb-stake-bookie {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--accent-gold);
  text-align: right;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.arb-stake-amounts {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}

.arb-stake-odds {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.arb-stake-value {
  font-size: 0.75rem;
  font-weight: 700;
  color: #00c853;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.arb-profit {
  font-size: 0.78rem;
  color: #00c853;
  font-weight: 700;
}

.arb-note {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Expand button */
.expand-btn {
  display: block;
  width: 100%;
  padding: 8px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  cursor: pointer;
  border-top: 1px solid var(--border);
  background: none;
  font-family: inherit;
  transition: color 0.1s;
}

.expand-btn:hover { color: var(--text-secondary); }

/* All bookmaker odds (collapsed) */
.all-bookies {
  display: none;
  border-top: 1px solid var(--border);
  padding: 10px 14px;
}

.all-bookies.open { display: block; }

.bookie-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
}

.bookie-row:last-child { border-bottom: none; }

.bookie-name { color: var(--text-secondary); font-weight: 500; }

.bookie-odds {
  display: flex;
  gap: 6px;
}

.bookie-odds span {
  width: 44px;
  text-align: center;
  font-weight: 600;
  color: var(--text-primary);
}

.bookie-odds span.draw { color: var(--text-secondary); }

/* No data */
.no-matches {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---- Q&A Section ---- */
.odds-qa-section {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
  margin-top: 32px;
}

.odds-qa-header {
  text-align: center;
  margin-bottom: 32px;
}

.odds-qa-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.odds-qa-header p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

.qa-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.qa-item {
  border-bottom: 1px solid var(--border);
}

.qa-item:last-child { border-bottom: none; }

.qa-question {
  width: 100%;
  text-align: left;
  background: var(--bg-card);
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background 0.15s;
}

.qa-question:hover { background: rgba(255,255,255,0.03); }

.qa-question.open { background: rgba(255,255,255,0.04); }

.qa-icon {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--accent-gold);
  flex-shrink: 0;
  transition: transform 0.2s;
  line-height: 1;
}

.qa-question.open .qa-icon { transform: rotate(45deg); }

.qa-answer {
  display: none;
  background: var(--bg-secondary);
  padding: 16px 20px;
}

.qa-answer.open { display: block; }

.qa-answer p {
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.qa-answer p:last-child { margin-bottom: 0; }

.qa-answer strong { color: var(--text-primary); font-weight: 700; }

.qa-answer ul, .qa-answer ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

.qa-answer li {
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.qa-answer em { color: var(--text-primary); font-style: normal; font-weight: 600; }

/* Responsive */

/* Responsive */
@media (max-width: 480px) {
  .odds-cell { padding: 8px 4px; }
  .odds-cell-value { font-size: 0.95rem; }
  .arb-stake { padding: 5px 6px; }
  .arb-stake-label { font-size: 0.6rem; }
  .arb-stake-bookie { font-size: 0.58rem; word-break: break-all; }
  .arb-stake-odds { font-size: 0.82rem; }
  .arb-stake-value { font-size: 0.68rem; }
}

@media (min-width: 768px) {
  .odds-hero h1 { font-size: 2rem; }
  .odds-hero { padding: 40px 0 32px; }
  .odds-controls-wrap {
    position: static;
  }
  .odds-controls-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
  }
  .bookie-filter {
    top: auto;
    justify-content: center;
    padding: 10px 24px;
    max-width: 100%;
  }
  .sport-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    overflow-x: visible;
    white-space: normal;
    padding: 0;
  }
  .sport-tab {
    display: inline-flex;
    font-size: 0.78rem;
    padding: 10px 14px;
    flex-shrink: 0;
  }
  .sport-select-wrap {
    display: none;
  }
  .matches-section { max-width: 900px; margin: 0 auto; padding: 20px 24px; }
  .match-teams { flex-direction: row; gap: 12px; }
  .odds-row { max-width: 500px; }
}
