/* ========================================
   Watch — Scoreboard page, game cards,
   date strip, empty state
   ======================================== */

/* ---- Watch Header / Date Strip ---- */
.watch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 4px;
}
.watch-date-strip {
  display: flex;
  align-items: center;
  gap: 12px;
}
.watch-date-arrow {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-dim);
  width: 28px;
  height: 28px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.watch-date-arrow:not(:disabled):hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}
.watch-date-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}
.watch-date-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-primary);
}
.watch-new-game-btn {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold-dim);
  padding: 6px 16px;
  border-radius: 4px;
  transition: all 0.15s;
}
.watch-new-game-btn:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: var(--accent-gold);
  color: #fff;
}

/* ---- Watch Main Content ---- */
.watch-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.watch-loading {
  text-align: center;
  padding: 48px 0;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text-dim);
  letter-spacing: 1px;
}

/* ---- Empty State ---- */
.watch-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}
.watch-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.6;
}
.watch-empty-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 0 0 8px;
}
.watch-empty-sub {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0 0 28px;
}
.watch-empty-cta {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bg-dark);
  background: var(--accent-gold);
  padding: 12px 32px;
  border-radius: 6px;
  transition: all 0.15s;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}
.watch-empty-cta:hover {
  background: #ffe44d;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.35);
  transform: translateY(-1px);
}

/* ---- Section Headers ---- */
.watch-section-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.watch-live-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-red);
  border-radius: 50%;
  animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ---- Game Card Grid ---- */
.watch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 12px;
}

/* ---- Game Card ---- */
.game-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.game-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.game-card--live {
  border-color: var(--accent-red-dark);
}
.game-card--live:hover {
  border-color: var(--accent-red);
  box-shadow: 0 4px 20px rgba(196, 30, 58, 0.15);
}

/* Status bar */
.game-card-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
}
.game-card-status-live {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-red);
  display: flex;
  align-items: center;
  gap: 6px;
}
.game-card-live-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-red);
  border-radius: 50%;
  animation: livePulse 1.5s ease-in-out infinite;
}
.game-card-status-final {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.game-card-inning {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

/* Matchup / team rows */
.game-card-matchup {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 16px;
}
.game-card-team {
  display: flex;
  align-items: center;
  gap: 10px;
}
.game-card-team--winner .game-card-name { color: var(--text-primary); }
.game-card-color {
  width: 4px;
  height: 22px;
  border-radius: 2px;
  flex-shrink: 0;
}
.game-card-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  flex: 1;
}
.game-card-score {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--accent-gold);
  text-shadow: 1px 1px 0 #222;
  min-width: 24px;
  text-align: right;
}
.game-card-score--loser {
  color: var(--text-dim);
  text-shadow: none;
}

/* Live situation: diamond + count */
.game-card-situation {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 16px 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
}

/* Diamond */
.game-card-diamond {
  --s: 10px;
  --g: 2px;
  --hd: calc(var(--s) * 0.707);
  --step: calc(var(--s) + var(--g) * 0.707);
  position: relative;
  width: calc(2 * var(--step) + 2 * var(--hd));
  height: calc(var(--step) + 2 * var(--hd));
  flex-shrink: 0;
}
.gc-base {
  position: absolute;
  width: var(--s);
  height: var(--s);
  transform: translate(-50%, -50%) rotate(45deg);
  border: 1px solid var(--border-light);
  background: transparent;
}
.gc-base-2b {
  left: calc(var(--step) + var(--hd));
  top: var(--hd);
}
.gc-base-3b {
  left: var(--hd);
  top: calc(var(--step) + var(--hd));
}
.gc-base-1b {
  left: calc(2 * var(--step) + var(--hd));
  top: calc(var(--step) + var(--hd));
}
.gc-base.on {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
}

/* Count dots (B/S/O) */
.game-card-count {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gc-count-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.gc-count-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  width: 12px;
}
.gc-count-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: transparent;
}
.gc-dot-ball.on {
  background: var(--accent-green);
  border-color: var(--accent-green);
}
.gc-dot-strike.on {
  background: var(--accent-red);
  border-color: var(--accent-red);
}
.gc-dot-out.on {
  background: var(--accent-red);
  border-color: var(--accent-red);
}

/* Line score (final games) */
.game-card-linescore {
  display: flex;
  gap: 0;
  padding: 0 16px 10px;
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
  overflow-x: auto;
}
.gc-ls-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 22px;
  gap: 2px;
}
.gc-ls-col.gc-ls-total {
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid var(--border-color);
}
.gc-ls-hdr {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}
.gc-ls-val {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--text-secondary);
}

/* ---- Responsive ---- */
@media (max-width: 700px) {
  .watch-header { padding: 0 16px; }
  .watch-main { padding: 16px 16px 48px; }
  .watch-grid { grid-template-columns: 1fr; }
  .watch-empty { padding: 48px 16px; }
}
@media (max-width: 480px) {
  .watch-date-label { font-size: 13px; letter-spacing: 1px; }
  .watch-new-game-btn { font-size: 11px; padding: 5px 12px; }
}
