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

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-tertiary: #1e1e1e;
  --bg-hover: #252525;
  --border: #2a2a2a;
  --text-primary: #e5e5e5;
  --text-secondary: #a0a0a0;
  --text-muted: #8a8a8a;
  --accent: #22c55e;
  --accent-dim: #166534;
  --red: #ef4444;
  --red-dim: #7f1d1d;
  --yellow: #eab308;
  --font-mono: 'SF Mono', 'Cascadia Code', 'Fira Code', monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --radius: 6px;
  --max-width: 1280px;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100dvh;
  overscroll-behavior: contain;
}

/* === Header === */

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

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  gap: 1rem;
}

.header-left {
  flex-shrink: 0;
}

.header-brand {
  text-decoration: none;
  color: inherit;
}

.header-brand h1 {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  line-height: 1.2;
}

.header-subtitle {
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-nav {
  display: flex;
  gap: 0.5rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius);
  transition: all 0.15s;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.header-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}

.status-dot.status-live {
  background: var(--accent);
  box-shadow: 0 0 4px var(--accent);
}

.status-text {
  white-space: nowrap;
}

.refresh-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius);
  min-height: 28px;
  min-width: 28px;
  transition: all 0.15s;
}

.refresh-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.header-search {
  flex-shrink: 1;
  min-width: 0;
}

.header-search input {
  width: 180px;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-family: var(--font-sans);
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s;
  min-height: 32px;
}

.header-search input:focus {
  border-color: var(--accent);
  width: 240px;
}

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

/* === Main === */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem;
}

/* === Loading === */

.loading-skeleton {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* === Empty State === */

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-secondary);
}

.empty-state p + p {
  margin-top: 0.5rem;
}

.empty-state code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  background: var(--bg-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
}

.empty-msg {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
  font-size: 0.875rem;
}

/* === Tournament Hero Banner === */

.hero-banner {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.hero-title-row {
  margin-bottom: 0.75rem;
}

.hero-tournament-name {
  font-size: 1.5rem;
  font-weight: 700;
}

.hero-stats-row {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.hero-stat strong {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

/* === Dashboard Grid === */

.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* === Tournament Tabs === */

.tournament-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  min-height: 36px;
}

.tab-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--accent-dim);
}

/* === Leaderboard Table === */

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.leaderboard-table thead {
  background: var(--bg-tertiary);
  position: sticky;
  top: 0;
}

.leaderboard-table th {
  padding: 0.625rem 0.75rem;
  text-align: left;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  user-select: none;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.leaderboard-table th.num {
  text-align: right;
}

.leaderboard-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.leaderboard-table td.num {
  text-align: right;
}

.leaderboard-table .mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.lb-row {
  cursor: pointer;
  transition: background-color 0.1s;
}

.lb-row:hover {
  background: var(--bg-hover);
}

.lb-row:active {
  background: var(--bg-tertiary);
}

.col-rank {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  width: 2rem;
  text-align: center;
}

.col-golfer {
  font-weight: 500;
}

.row-won {
  border-left: 2px solid var(--accent);
}

.row-lost {
  opacity: 0.5;
}

/* === Delta === */

.delta-up {
  color: var(--accent);
}

.delta-down {
  color: var(--red);
}

/* === Movers Panel === */

.panel-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.panel-title {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 0.75rem 0.75rem 0.5rem;
}

.movers-list {
  padding: 0 0.75rem 0.75rem;
}

.mover-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: opacity 0.1s;
}

.mover-item:hover {
  opacity: 0.8;
}

.mover-name {
  flex: 1;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mover-delta {
  font-size: 0.75rem;
  font-weight: 600;
}

.mover-price {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* === Trade Tape === */

.trade-tape {
  max-height: 280px;
  overflow-y: auto;
}

.tape-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  border-bottom: 1px solid var(--border);
}

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

.tape-time {
  color: var(--text-muted);
  min-width: 3.5rem;
  font-size: 0.6875rem;
}

.tape-golfer {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75rem;
}

.tape-side {
  font-weight: 700;
  font-size: 0.6875rem;
}

.tape-count {
  color: var(--text-muted);
  font-size: 0.6875rem;
}

.tape-price {
  font-size: 0.75rem;
}

.side-yes {
  color: var(--accent);
}

.side-no {
  color: var(--red);
}

/* === Liquidity === */

.liquidity-list {
  padding: 0 0.75rem 0.75rem;
}

.liq-label {
  display: block;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 0.375rem;
  margin-bottom: 0.125rem;
}

.liq-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  padding: 0.125rem 0;
}

.liq-item .mono {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-size: 0.6875rem;
}

/* === Market Detail === */

.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8125rem;
  margin-bottom: 1.5rem;
  transition: color 0.15s;
  min-height: 44px;
}

.back-link:hover {
  color: var(--accent);
}

.detail-header {
  margin-bottom: 1.5rem;
}

.detail-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.hero-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.hero-price {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.hero-price-value {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-probability {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.hero-delta {
  font-size: 1rem;
}

.hero-stats {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.hero-stats + .hero-stats {
  margin-top: 0.5rem;
}

.mono {
  font-family: var(--font-mono);
  color: var(--text-primary);
  font-size: 0.8125rem;
}

/* === Status Badge === */

.badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 500;
  text-align: center;
}

.badge-open {
  background: var(--accent-dim);
  color: var(--accent);
}

.badge-settled {
  background: #1e1e1e;
  color: var(--text-muted);
}

.badge-closed {
  background: #2a1a1a;
  color: var(--red);
}

/* === Chart === */

.detail-chart-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.period-selectors {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.period-btn {
  padding: 0.375rem 0.75rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  min-height: 32px;
}

.period-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.period-btn.active {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--accent-dim);
}

.chart-wrapper {
  position: relative;
  height: 300px;
}

.chart-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
  font-size: 0.875rem;
}

/* === Detail Sections === */

.detail-section {
  margin-bottom: 1.5rem;
}

.detail-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* === Activity Feed === */

.activity-feed {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.625rem 1rem;
  font-size: 0.8125rem;
  border-bottom: 1px solid var(--border);
}

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

.activity-time {
  color: var(--text-muted);
  min-width: 5rem;
  font-size: 0.75rem;
}

.activity-price {
  color: var(--text-primary);
}

.activity-count {
  color: var(--text-secondary);
}

.activity-side {
  font-weight: 600;
  font-size: 0.75rem;
}

/* === Result Banner === */

.result-banner {
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.result-won {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent);
}

.result-lost {
  background: var(--red-dim);
  color: var(--red);
  border: 1px solid var(--red);
}

/* === Off-Season === */

.offseason-hero {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.offseason-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: block;
}

.offseason-hero h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.offseason-winner {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* === Movers Page === */

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.movers-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.movers-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.movers-table thead {
  background: var(--bg-tertiary);
}

.movers-table th {
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.movers-table th.num {
  text-align: right;
}

.movers-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.movers-table td.num {
  text-align: right;
}

.movers-table td.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.clickable-row {
  cursor: pointer;
  transition: background-color 0.1s;
}

.clickable-row:hover {
  background: var(--bg-hover);
}

.text-muted {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

/* === Stats Grid === */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.stat-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* === Sparkline === */

.sparkline-canvas {
  vertical-align: middle;
}

/* === Minimum Touch Targets === */

button,
[role="button"],
a,
input,
select,
textarea {
  min-height: 44px;
}

.tab-btn,
.period-btn,
.refresh-toggle,
.nav-link,
.badge {
  min-height: auto;
}

/* === Mobile: Tablet === */

@media (max-width: 1024px) {
  .header-search input {
    width: 140px;
  }

  .header-search input:focus {
    width: 180px;
  }
}

/* === Mobile: Phone === */

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
  }

  .header-right {
    gap: 0.5rem;
    width: 100%;
    justify-content: space-between;
  }

  .header-search {
    order: 10;
    width: 100%;
  }

  .header-search input {
    width: 100%;
  }

  .header-search input:focus {
    width: 100%;
  }

  main {
    padding: 1rem;
  }

  .hero-tournament-name {
    font-size: 1.25rem;
  }

  .hero-price-value {
    font-size: 2rem;
  }

  .hero-stats {
    gap: 1rem;
  }

  .detail-header h2 {
    font-size: 1.25rem;
  }

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

  .movers-page-grid {
    grid-template-columns: 1fr;
  }

  .activity-item {
    gap: 0.5rem;
    font-size: 0.75rem;
  }

  .activity-time {
    min-width: 4rem;
  }
}

/* === Mobile: Small Phone — Leaderboard Card Layout === */

@media (max-width: 480px) {
  .leaderboard-table thead {
    display: none;
  }

  .leaderboard-table .lb-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 0 0.5rem;
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid var(--border);
  }

  .leaderboard-table .lb-row td {
    border: none;
    padding: 0;
    white-space: normal;
  }

  /* Rank - left column */
  .leaderboard-table .lb-row .col-rank {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    font-size: 0.875rem;
    font-weight: 600;
  }

  /* Golfer name - top middle */
  .leaderboard-table .lb-row .col-golfer {
    grid-column: 2;
    grid-row: 1;
    font-size: 0.875rem;
  }

  /* Price - top right */
  .leaderboard-table .lb-row td:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
    text-align: right;
    font-weight: 600;
  }

  /* Impl % - bottom middle */
  .leaderboard-table .lb-row td:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
    color: var(--text-secondary);
    font-size: 0.75rem;
  }

  /* Delta - bottom right */
  .leaderboard-table .lb-row td:last-child {
    grid-column: 3;
    grid-row: 2;
    text-align: right;
    font-size: 0.75rem;
  }

  /* Hide bid/ask/spread/vol/oi */
  .leaderboard-table .lb-row td:nth-child(n+5):not(:last-child) {
    display: none;
  }
}

/* === Screen Reader Only === */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* === Skeleton Animation === */

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

.skeleton-bone {
  display: inline-block;
  height: 0.875rem;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-hover) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

/* === Masters week additions === */

/* Family tabs (Masters / PGA Championship / ...) */
.family-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.75rem 1.5rem 0;
  max-width: var(--max-width);
  margin: 0 auto;
}
.family-tab {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  font: 600 0.875rem var(--font-sans);
  transition: all 0.15s;
}
.family-tab:hover { background: var(--bg-hover); color: var(--text-primary); }
.family-tab.active {
  background: linear-gradient(180deg, #166534 0%, #14532d 100%);
  border-color: var(--accent);
  color: #fff;
}

/* Sub-event tabs (Winner / Top 5 / Top 10 / Make Cut) */
.subevent-tabs {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  padding: 0.5rem 1.5rem 0;
  max-width: var(--max-width);
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.subevent-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  padding: 0.5rem 0.875rem;
  cursor: pointer;
  font: 500 0.8125rem var(--font-sans);
  transition: all 0.15s;
}
.subevent-tab:hover { color: var(--text-primary); }
.subevent-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Live scoring columns */
.leaderboard-table .col-pos,
.leaderboard-table .col-score,
.leaderboard-table .col-thru {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  white-space: nowrap;
}
.leaderboard-table .col-pos { color: var(--text-secondary); width: 3rem; }
.leaderboard-table .col-score { width: 3.5rem; }
.leaderboard-table .col-thru { color: var(--text-muted); width: 2.5rem; }

.score-under { color: var(--red); font-weight: 700; }  /* under par is red in golf */
.score-over  { color: var(--text-secondary); }

/* Edge column */
.edge-rel-fav { color: var(--accent); }
.edge-rel-dog { color: var(--red); }

/* Watchlist star */
.leaderboard-table .col-star { width: 1.75rem; padding: 0; }
.star-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: color 0.15s;
}
.star-btn:hover { color: var(--yellow); }
.star-btn.on { color: var(--yellow); }
.lb-row.row-watched { background: rgba(234, 179, 8, 0.04); }
.lb-row.row-watched:hover { background: rgba(234, 179, 8, 0.08); }

/* Watchlist strip above the leaderboard */
.watchlist-strip {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-left: 3px solid var(--yellow);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin: 1rem 1.5rem 0;
  max-width: calc(var(--max-width) - 3rem);
}
@media (min-width: 1280px) { .watchlist-strip { margin-left: auto; margin-right: auto; } }
.watchlist-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
  gap: 1rem;
}
.watchlist-title {
  color: var(--yellow);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.watchlist-hint { color: var(--text-muted); font-size: 0.6875rem; }
.watchlist-rows { display: flex; flex-direction: column; gap: 0.25rem; }
.wl-row {
  display: grid;
  grid-template-columns: minmax(10rem, 1.5fr) auto auto auto minmax(8rem, 1fr) auto auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.375rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8125rem;
  transition: background 0.15s;
}
.wl-row:hover { background: var(--bg-hover); }
.wl-name { font-weight: 600; }
.wl-pos { font-family: var(--font-mono); color: var(--text-secondary); font-size: 0.75rem; min-width: 2.5rem; }
.wl-score { font-family: var(--font-mono); font-weight: 700; min-width: 2rem; }
.wl-thru { font-family: var(--font-mono); color: var(--text-muted); font-size: 0.75rem; min-width: 2rem; }
.wl-tournament { font-size: 0.75rem; }
.wl-price { text-align: right; }
.wl-delta { text-align: right; min-width: 3rem; }

/* Weather card */
.weather-card { border-left: 3px solid #3b82f6; }
.weather-current {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.5rem 0;
}
.weather-temp {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1;
}
.weather-meta { flex: 1; font-size: 0.8125rem; }
.weather-meta > div { margin-bottom: 0.125rem; }
.weather-wind strong { color: var(--text-primary); font-size: 0.9375rem; }
.weather-sub { color: var(--text-muted); font-size: 0.75rem; }
.weather-strip {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  overflow-x: auto;
}
.weather-tick {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 2.75rem;
  padding: 0.25rem 0.125rem;
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  border-radius: 4px;
}
.wt-time { color: var(--text-muted); }
.wt-temp { color: var(--text-primary); font-weight: 600; font-size: 0.75rem; }
.wt-wind { color: #3b82f6; }
.wt-precip { color: #60a5fa; font-size: 0.625rem; }

/* Player card */
.player-card-header {
  max-width: var(--max-width);
  margin: 1rem auto 0.5rem;
  padding: 0 1.5rem;
}
.player-card-header h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}
.player-live {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  font-size: 0.875rem;
}
.player-live-label {
  background: var(--red);
  color: #fff;
  padding: 0.125rem 0.5rem;
  border-radius: 3px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.player-live-pos { font-family: var(--font-mono); font-weight: 700; color: var(--text-primary); }
.player-live-score { font-family: var(--font-mono); font-size: 1.125rem; font-weight: 700; }
.player-live-thru { color: var(--text-secondary); font-family: var(--font-mono); }
.player-live-round { font-size: 0.75rem; }

.player-card-section {
  max-width: var(--max-width);
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
}
.player-card-tournament {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--border);
}
.player-markets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 0.75rem;
}
.player-market-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.15s;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  gap: 0.125rem 0.5rem;
}
.player-market-card:hover {
  background: var(--bg-hover);
  border-color: var(--accent-dim);
}
.pmc-type {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pmc-price { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); }
.pmc-pct { color: var(--text-secondary); font-size: 0.8125rem; text-align: right; align-self: center; }
.pmc-delta { font-size: 0.75rem; }
.pmc-vol { font-size: 0.6875rem; text-align: right; }

/* Matchups page */
.matchup-group {
  max-width: var(--max-width);
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
}
.matchup-title {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

/* Clickable golfer name on market detail */
.clickable-name { cursor: pointer; }
.clickable-name:hover { color: var(--accent); text-decoration: underline; }

/* Mobile adjustments */
@media (max-width: 640px) {
  .weather-current { gap: 0.75rem; }
  .weather-temp { font-size: 1.5rem; }
  .wl-row {
    grid-template-columns: 1fr auto auto;
    row-gap: 0.125rem;
  }
  .wl-tournament, .wl-thru { display: none; }
  .family-tabs, .subevent-tabs { padding-left: 1rem; padding-right: 1rem; }
  .player-markets-grid { grid-template-columns: 1fr 1fr; }
}
