/* ==========================================================================
   ICE Hockey — Modern Dark Horizontal Row Scoreboard
   Colors: Deep Slate (#0b1120 / #0f172a), Rows (#131d2e), Accents (Cyan/Red)
   ========================================================================== */

:root {
  --bg-app: #0b1120;
  --bg-surface: #0f172a;
  --bg-surface-raised: #141f32;
  --bg-row: #131d2e;
  --bg-row-hover: #1c2b42;
  --bg-row-active: #20314c;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  
  --text-main: #f8fafc;
  --text-dim: #cbd5e1;
  --text-muted: #94a3b8;
  --text-faint: #64748b;

  --accent-cyan: #38bdf8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.25);
  --accent-red: #ef4444;
  --accent-red-glow: rgba(239, 68, 68, 0.3);
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.4;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.app-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==========================================================================
   Top Header Bar
   ========================================================================== */

.app-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.puck-icon {
  font-size: 26px;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.4));
  animation: float-subtle 3s ease-in-out infinite alternate;
}

@keyframes float-subtle {
  0% { transform: translateY(0); }
  100% { transform: translateY(-2px); }
}

.brand-title {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ice-accent {
  color: var(--accent-cyan);
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.5);
}

.brand-subtitle {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--text-muted);
}

/* Riga Clock Card */
.riga-clock-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 12px rgba(56, 189, 248, 0.08);
}

.clock-live-pulse {
  width: 9px;
  height: 9px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(56, 189, 248, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.clock-details {
  display: flex;
  flex-direction: column;
}

.clock-time {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.clock-date {
  font-size: 10px;
  color: var(--accent-cyan);
  font-weight: 600;
  letter-spacing: 0.4px;
}

/* Header Right Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.auto-refresh-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 170px;
}

.refresh-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.refresh-label {
  font-size: 11px;
  color: var(--text-muted);
}

.refresh-label strong {
  font-family: var(--font-mono);
  color: var(--text-main);
}

.pill-btn {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent-cyan);
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill-btn:hover {
  background: var(--accent-cyan);
  color: #0b1120;
}

.pill-btn.paused {
  border-color: var(--text-faint);
  background: rgba(100, 116, 139, 0.15);
  color: var(--text-muted);
}

.refresh-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.refresh-progress-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #0ea5e9, var(--accent-cyan));
  border-radius: var(--radius-pill);
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.5);
  transition: width 0.2s linear;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.action-btn.primary {
  background: #1e293b;
  border-color: rgba(56, 189, 248, 0.35);
  color: #ffffff;
}

.action-btn.primary:hover {
  background: #27354f;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.action-btn.primary:active .refresh-icon {
  transform: rotate(180deg);
}

.refresh-icon {
  width: 15px;
  height: 15px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.refresh-icon.spinning {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Control Panel: Date Selector & Filter Tabs
   ========================================================================== */

.control-panel {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 0;
}

.control-panel-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

/* Date Selector Buttons */
.date-selector-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.date-preset-btn {
  background: #162032;
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.date-preset-btn:hover {
  background: #1f2d47;
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.4);
}

.date-preset-btn.active {
  background: rgba(14, 165, 233, 0.18);
  border-color: var(--accent-cyan);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.2);
}

.date-sub {
  font-size: 10px;
  color: var(--accent-cyan);
  font-weight: 500;
}

.live-dot-mini {
  width: 7px;
  height: 7px;
  background-color: var(--accent-red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-red);
  animation: pulse-red 1.5s infinite;
}

.custom-date-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

#date-picker-input {
  background: #162032;
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  padding: 6px 10px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 12px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

#date-picker-input:hover, #date-picker-input:focus {
  border-color: var(--accent-cyan);
  color: #ffffff;
}

/* Filters & Search */
.filters-search-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  background: #121a29;
  padding: 3px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.filter-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.filter-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.filter-tab.active {
  background: #1e293b;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.tab-badge {
  font-size: 10px;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  color: var(--text-dim);
}

.tab-badge.live {
  background: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.5);
}

.live-dot-tab {
  width: 6px;
  height: 6px;
  background-color: var(--accent-red);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-red);
  animation: pulse-red 1.2s infinite;
}

/* Search Box */
.search-input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 10px;
  width: 14px;
  height: 14px;
  color: var(--text-faint);
  pointer-events: none;
}

#team-filter-input {
  background: #162032;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 12px;
  padding: 6px 28px 6px 32px;
  width: 180px;
  outline: none;
  transition: all 0.2s ease;
}

#team-filter-input:focus {
  width: 220px;
  border-color: var(--accent-cyan);
  background: #1b273d;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.clear-btn {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 16px;
  cursor: pointer;
}

.clear-btn:hover {
  color: #ffffff;
}

/* ==========================================================================
   Main Content: Scoreboard Table & Horizontal Game Rows
   ========================================================================== */

.main-content {
  flex: 1;
  padding: 16px 24px 24px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.table-container {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Table Header */
.scoreboard-table-header {
  display: grid;
  grid-template-columns: 180px 1fr 140px 240px 40px;
  background: #0d1524;
  border-bottom: 1px solid var(--border-medium);
  padding: 10px 18px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--text-muted);
}

.th-score {
  text-align: center;
}

.th-info {
  text-align: right;
  padding-right: 12px;
}

/* Scoreboard List */
.scoreboard-list {
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Single Game Row (Horizontal Line)
   ========================================================================== */

.game-row-wrapper {
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.15s ease;
}

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

.game-row {
  display: grid;
  grid-template-columns: 180px 1fr 140px 240px 40px;
  align-items: center;
  padding: 10px 18px;
  background: var(--bg-row);
  cursor: pointer;
  position: relative;
  transition: background-color 0.15s ease, border-left-color 0.15s ease;
  border-left: 3px solid transparent;
}

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

.game-row.active-expanded {
  background: var(--bg-row-active);
  border-left-color: var(--accent-cyan);
}

/* Status variants */
.game-row.is-live {
  border-left-color: var(--accent-red);
}

.game-row.is-live:hover {
  background: #1f283d;
}

/* Column 1: Status & Time */
.col-status {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-red);
  border-radius: 50%;
  animation: pulse-red 1.2s infinite;
}

@keyframes pulse-red {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.8); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.badge-int {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fde68a;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.int-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-amber);
  border-radius: 50%;
}

.badge-final {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}

.badge-upcoming {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-cyan);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}

.time-clock-icon {
  width: 12px;
  height: 12px;
  stroke: var(--accent-cyan);
}

.badge-pp {
  display: inline-flex;
  align-items: center;
  background: rgba(245, 158, 11, 0.25);
  border: 1px solid rgba(245, 158, 11, 0.6);
  color: #fbbf24;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: 0.4px;
  animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; box-shadow: 0 0 8px rgba(245, 158, 11, 0.4); }
}

/* Column 2: Matchup (Away vs Home in Single Line) */
.col-matchup {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.team-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.team-entry.away {
  justify-content: flex-end;
}

.team-entry.home {
  justify-content: flex-start;
}

.team-logo-wrapper {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.team-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.logo-fallback-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 900;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.team-text-group {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-abbr {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.team-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}

.team-entry.winner .team-abbr,
.team-entry.winner .team-name {
  color: #ffffff;
  font-weight: 800;
}

.team-entry.loser .team-abbr,
.team-entry.loser .team-name {
  color: var(--text-muted);
}

.sog-pill {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 1px 5px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
}

.matchup-divider {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-faint);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

/* Column 3: Score */
.col-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.score-display-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #090e18;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 4px 12px;
  min-width: 90px;
}

.score-digit {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 800;
  color: var(--text-muted);
  min-width: 14px;
  text-align: center;
}

.score-digit.leader {
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
}

.score-sep {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-faint);
  margin: 0 4px;
}

.score-upcoming {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: 1px;
}

/* Column 4: Broadcast & Venue */
.col-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  padding-right: 12px;
  min-width: 0;
}

.broadcast-tags {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tv-tag {
  font-size: 10px;
  font-weight: 700;
  background: #1b263b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.venue-info {
  font-size: 11px;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

/* Column 5: Action (Expand chevron) */
.col-action {
  display: flex;
  align-items: center;
  justify-content: center;
}

.chevron-btn {
  background: none;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.chevron-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.chevron-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.chevron-btn.open .chevron-icon {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

/* ==========================================================================
   Expandable Drawer (Period Breakdown & Goals Summary)
   ========================================================================== */

.game-drawer {
  background: #0d1522;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}

.game-drawer.open {
  max-height: 380px;
  padding: 14px 18px 18px;
}

.drawer-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
}

/* Periods Table */
.period-table-card {
  background: #121c2e;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.card-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.period-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.period-table th {
  font-size: 10px;
  color: var(--text-faint);
  text-align: center;
  padding: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.period-table th:first-child {
  text-align: left;
}

.period-table td {
  font-family: var(--font-mono);
  text-align: center;
  padding: 5px 4px;
  color: var(--text-dim);
}

.period-table td:first-child {
  font-family: var(--font-sans);
  font-weight: 700;
  text-align: left;
  color: #ffffff;
}

.period-table td.total-col {
  font-weight: 800;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

/* Goals Summary */
.goals-summary-card {
  background: #121c2e;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  max-height: 220px;
  overflow-y: auto;
}

.goals-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.goal-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 5px 8px;
  border-radius: 4px;
}

.goal-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 5px;
  border-radius: 3px;
  white-space: nowrap;
}

.goal-team {
  font-weight: 800;
  color: #ffffff;
}

.goal-scorer {
  font-weight: 700;
  color: #ffffff;
}

.goal-assists {
  color: var(--text-muted);
  font-size: 11px;
}

.no-goals-notice {
  font-size: 12px;
  color: var(--text-faint);
  font-style: italic;
  padding: 6px 0;
}

/* ==========================================================================
   Loading Skeleton & Empty States
   ========================================================================== */

.loading-state {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-row {
  height: 52px;
  background: linear-gradient(90deg, #131d2e 25%, #1d2c44 50%, #131d2e 75%);
  background-size: 200% 100%;
  border-radius: var(--radius-sm);
  animation: shimmer 1.5s infinite;
}

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

.empty-state {
  padding: 48px 24px;
  text-align: center;
}

.empty-icon {
  font-size: 42px;
  margin-bottom: 12px;
}

.empty-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.empty-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.action-btn.secondary {
  background: #1b263b;
  color: #ffffff;
  border: 1px solid var(--border-medium);
}

.action-btn.secondary:hover {
  background: #253552;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.app-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 12px 0;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: auto;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sync-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-emerald);
}

.sync-dot.updating {
  background-color: var(--accent-cyan);
  animation: pulse-ring 0.8s infinite;
}

.source-tag {
  font-size: 9px;
  font-weight: 800;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.shortcut-hint kbd {
  background: #1e293b;
  border: 1px solid var(--border-medium);
  border-radius: 3px;
  padding: 1px 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #ffffff;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 1100px) {
  .scoreboard-table-header,
  .game-row {
    grid-template-columns: 160px 1fr 120px 180px 32px;
  }
  .drawer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .scoreboard-table-header,
  .game-row {
    grid-template-columns: 140px 1fr 100px 32px;
  }
  .th-info, .col-info {
    display: none;
  }
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 680px) {
  .team-name {
    display: none;
  }
  .sog-pill {
    display: none;
  }
  .scoreboard-table-header,
  .game-row {
    grid-template-columns: 120px 1fr 80px 28px;
    padding: 8px 10px;
  }
  .badge-live, .badge-final, .badge-upcoming, .badge-int {
    font-size: 10px;
    padding: 2px 6px;
  }
}

