/* ── Live Dashboard Screen ─────────────────────────────────────────────────── */

.dash-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg, #0a0f1e);
  overflow: hidden;
}

/* ── Header ─────────────────────────────────────────────────────────────────── */
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.07));
  flex-shrink: 0;
}

.dash-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text, #f0f4ff);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  animation: dash-pulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes dash-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

.dash-refresh-btn {
  background: none;
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  border-radius: 20px;
  color: var(--muted, rgba(107,127,168,0.8));
  font-size: 12px;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  padding: 5px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s, border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.dash-refresh-btn:hover { color: var(--text); border-color: var(--text); }
.dash-refresh-btn.spinning svg { animation: dash-spin 0.6s linear; }
@keyframes dash-spin { to { transform: rotate(360deg); } }

/* ── Scroll body ─────────────────────────────────────────────────────────────── */
.dash-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 12px 80px;
}

/* ── League section ──────────────────────────────────────────────────────────── */
.dash-league-section {
  margin-bottom: 20px;
}

.dash-league-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted, rgba(107,127,168,0.6));
  padding: 0 4px 8px;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.06));
  margin-bottom: 8px;
}

/* ── Game card ───────────────────────────────────────────────────────────────── */
.dash-game-card {
  background: var(--bg-card, rgba(255,255,255,0.04));
  border: 1px solid var(--border, rgba(255,255,255,0.07));
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}
.dash-game-card:active { transform: scale(0.98); }
.dash-game-card:hover  { background: rgba(255,255,255,0.07); }

/* live game glow */
.dash-game-card.is-live {
  border-color: rgba(239,68,68,0.3);
  box-shadow: 0 0 0 1px rgba(239,68,68,0.1), inset 0 0 20px rgba(239,68,68,0.04);
}

/* ── Teams row ───────────────────────────────────────────────────────────────── */
.dash-teams-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
html[dir="rtl"] /* ── Teams row ───────────────────────────────────────────────────────────────── */
.dash-teams-row { direction: rtl; }

.dash-team {
  flex: 1;
  min-width: 0;
}

.dash-team-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text, #f0f4ff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-team-tricode {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted, rgba(107,127,168,0.6));
  letter-spacing: 0.5px;
  margin-top: 1px;
}

.dash-score-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  min-width: 90px;
}

.dash-score-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dash-score {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: var(--text, #f0f4ff);
  line-height: 1;
  min-width: 32px;
  text-align: center;
}

.dash-score.leading { color: #f0f4ff; }
.dash-score.trailing { color: var(--muted, rgba(107,127,168,0.6)); }

.dash-score-sep {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 300;
  color: var(--muted, rgba(107,127,168,0.4));
}

/* ── Status badge ────────────────────────────────────────────────────────────── */
.dash-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 5px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.dash-status.live    { color: #ef4444; }
.dash-status.halftime{ color: #f97316; }
.dash-status.final   { color: var(--muted, rgba(107,127,168,0.5)); }
.dash-status.scheduled { color: #3b82f6; }

.dash-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: dash-pulse 1.4s ease-in-out infinite;
}

/* Scheduled time */
.dash-sched-time {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--muted, rgba(107,127,168,0.5));
  line-height: 1;
  letter-spacing: 0.5px;
}

/* ── Empty / loading states ──────────────────────────────────────────────────── */
.dash-empty {
  text-align: center;
  color: var(--muted, rgba(107,127,168,0.5));
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  padding: 32px 16px;
}

.dash-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 16px;
  color: var(--muted, rgba(107,127,168,0.5));
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
}

.dash-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(107,127,168,0.2);
  border-top-color: var(--accent2, #3b82f6);
  border-radius: 50%;
  animation: dash-spin 0.8s linear infinite;
}

/* ── Universal Strip (persistent above league-bar) ──────────────────────────── */
.dash-strip-bar {
  position: relative;
  flex-shrink: 0;
  background: var(--bg-nav, #0d1b3e);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}

.dash-strip-scroll {
  display: flex;
  flex-direction: row;
  gap: 6px;
  padding: 5px 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.dash-strip-scroll::-webkit-scrollbar { display: none; }

.ds-card {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--bg-card, rgba(255,255,255,0.05));
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  font-family: 'Barlow Condensed', sans-serif;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.ds-card:active { transform: scale(0.96); }
.ds-card.is-live { border-color: rgba(239,68,68,0.4); }

.ds-code {
  font-size: 12px;
  font-weight: 800;
  color: var(--text, rgba(255,255,255,0.72));
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ds-score {
  font-size: 13px;
  font-weight: 900;
  color: var(--text, #f0f4ff);
  min-width: 20px;
  text-align: center;
}
.ds-score.leading  { color: var(--text, #ffffff); }
.ds-score.trailing { color: var(--muted, rgba(255,255,255,0.35)); opacity: 0.75; }

.ds-sep {
  font-size: 11px;
  color: var(--muted, rgba(255,255,255,0.2));
}

.ds-status-txt {
  font-size: 9px;
  font-weight: 700;
  color: var(--muted, rgba(255,255,255,0.35));
  letter-spacing: 0.2px;
}
.ds-status-txt.live { color: #ef4444; }

.ds-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ef4444;
  flex-shrink: 0;
  animation: dash-pulse 1.4s ease-in-out infinite;
}

/* ── Last updated ────────────────────────────────────────────────────────────── */
.dash-updated {
  text-align: center;
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  color: var(--muted, rgba(107,127,168,0.35));
  padding: 8px 0 4px;
}


/* Arrows for a mouse: hidden on a touch screen, where the strip scrolls with a finger. */
.ds-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  inline-size: 32px;
  block-size: 32px;
  border-radius: 50%;
  border: 1px solid var(--border, rgba(255,255,255,0.2));
  background: var(--bg-card, #172b50);
  color: var(--text, #fff);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.ds-arrow[hidden] { display: none; }
.ds-arrow-l { left: 8px; }
.ds-arrow-r { right: 8px; }
@media (hover: none) { .ds-arrow { display: none; } }
.dash-strip-scroll { cursor: grab; }
.ds-more { font-size: 12px; font-weight: 800; color: var(--muted, rgba(255,255,255,0.6)); padding-inline: 12px; }
