:root {
  color-scheme: light dark;
  --border: #d5d9e0;
  --muted: #667085;
  --accent: #2563eb;
  --card: #ffffff;
  --bg: #f4f5f7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: #101828;
  font-size: 15px;
  line-height: 1.4;
}

main {
  max-width: 560px;
  margin: 0 auto;
  padding: 14px 12px 48px;
}

/* ---------- header ---------- */

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

h1 {
  font-size: 1.25rem;
  margin: 0;
}

h2 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  margin: 22px 0 8px;
}

#refresh-btn {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 8px;
  padding: 7px 14px;
  cursor: pointer;
  font-size: 0.9rem;
}

#refresh-btn:active {
  background: #e9ecf1;
}

.week-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

.week-picker span {
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.week-picker select {
  flex: 1;
}

/* ---------- shared controls ---------- */

select {
  width: 100%;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 0.95rem;
  color: inherit;
}

select:disabled {
  color: var(--muted);
  background: #eef0f3;
}

option:disabled {
  color: #98a2b3;
}

.status {
  padding: 10px 12px;
  border-radius: 8px;
  background: #fef3f2;
  color: #b42318;
  margin: 12px 0;
  font-size: 0.9rem;
}

.status.info {
  background: #eff8ff;
  color: #175cd3;
}

.hint {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 8px 2px 0;
}

/* ---------- odds sheet ---------- */

#odds-list {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px 12px 8px;
}

.day-head {
  font-weight: 700;
  font-size: 0.9rem;
  margin: 14px 0 4px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--border);
}

.day-head:first-child {
  margin-top: 6px;
}

.g-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 8px;
  padding: 7px 0;
  border-bottom: 1px solid #eef0f3;
  font-size: 0.92rem;
}

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

.g-row.taken {
  opacity: 0.5;
}

.g-team {
  white-space: nowrap;
}

.g-at {
  color: var(--muted);
  font-size: 0.85em;
}

.g-time {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.85em;
  white-space: nowrap;
}

.sp {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.sp.fav {
  color: inherit;
  font-weight: 700;
}

.g-ml {
  flex-basis: 100%;
  font-size: 0.8rem;
  color: var(--muted);
  padding-top: 1px;
}

.g-ml-label {
  display: inline-block;
  min-width: 26px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.9em;
}

.g-ml .fav {
  color: inherit;
  font-weight: 700;
}

.g-taken {
  flex-basis: 100%;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  padding-top: 2px;
}

.g-empty {
  padding: 12px 0;
  color: var(--muted);
}

.fav {
  font-weight: 700;
}

/* ---------- pick cards ---------- */

.pick-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pick-player {
  font-weight: 700;
}

.saved-indicator {
  color: #12b76a;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s;
}

.saved-indicator.visible {
  opacity: 1;
}

/* ---------- wider screens ---------- */

@media (min-width: 560px) {
  main {
    padding: 24px 16px 64px;
  }
  h1 {
    font-size: 1.5rem;
  }
}
