/* =====================================================================
   4V4 COMMAND CENTER — STADIUM BROADCAST DESIGN SYSTEM
   Directly benchmarked from fb.lukewade.net (Coach HQ)
   Ultra-polished athletic performance platform for competitive U8 soccer
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wdth,wght@0,82..100,400..900;1,82..100,400..900&family=JetBrains+Mono:wght@500;700;800&display=swap');

/* ---- CSS Variables & Design Tokens --------------------------------- */
:root {
  --ink:        #0a0908;
  --ink-2:      #120f0d;
  --surface:    #161311;
  --surface-2:  #201b17;
  --surface-3:  #2b2420;

  --header-bg:  rgba(10, 9, 8, 0.88);
  --tab-bg:     rgba(12, 10, 9, 0.94);

  --line:        rgba(255, 255, 255, 0.08);
  --line-2:      rgba(255, 255, 255, 0.14);
  --line-turf:   rgba(16, 185, 129, 0.35);
  --line-blue:   rgba(37, 99, 235, 0.35);
  --line-gold:   rgba(245, 158, 11, 0.35);

  --cream:       #f7f2ec;
  --dim:         #b6aca1;
  --muted:       #8b8078;
  --faint:       #554d47;

  /* Athletic Performance Accents */
  --turf:        #059669;
  --turf-lit:    #10b981;
  --turf-glow:   rgba(16, 185, 129, 0.25);
  --turf-wash:   rgba(16, 185, 129, 0.12);

  --colt-blue:   #2563eb;
  --colt-lit:    #60a5fa;
  --colt-glow:   rgba(37, 99, 235, 0.30);
  --colt-wash:   rgba(37, 99, 235, 0.12);

  --volt:        #ccff00;
  --amber:       #f59e0b;
  --red:         #ef4444;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow:    0 2px 4px rgba(0,0,0,0.4), 0 10px 28px -10px rgba(0,0,0,0.7);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.5), 0 24px 60px -20px rgba(0,0,0,0.9);

  --sans: 'Archivo', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Light theme support (benchmarked from fb.lukewade.net) */
[data-theme="light"],
body[data-theme="light"],
html[data-theme="light"] {
  --ink:        #f4efe8;
  --ink-2:      #e8e1d7;
  --surface:    #ffffff;
  --surface-2:  #ede7dd;
  --surface-3:  #e0d7cb;

  --header-bg:  rgba(244, 239, 232, 0.88);
  --tab-bg:     rgba(244, 239, 232, 0.94);

  --line:        rgba(0, 0, 0, 0.08);
  --line-2:      rgba(0, 0, 0, 0.14);
  --line-turf:   rgba(5, 150, 105, 0.30);
  --line-blue:   rgba(37, 99, 235, 0.28);
  --line-gold:   rgba(217, 119, 6, 0.35);

  --cream:       #181512;
  --dim:         #473f38;
  --muted:       #7c7269;
  --faint:       #b3a89e;

  /* High contrast athletic accents for crisp light mode legibility */
  --turf:        #047857;
  --turf-lit:    #059669;
  --turf-wash:   rgba(5, 150, 105, 0.10);
  --turf-glow:   rgba(5, 150, 105, 0.20);

  --colt-blue:   #1d4ed8;
  --colt-lit:    #2563eb;
  --colt-wash:   rgba(37, 99, 235, 0.10);

  --shadow:    0 1px 3px rgba(0, 0, 0, 0.05), 0 6px 16px -4px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.06), 0 18px 38px -8px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] body::before,
body[data-theme="light"]::before,
html[data-theme="light"] body::before {
  background-image:
    repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.022) 0 40px, transparent 40px 80px),
    radial-gradient(circle at 50% 10%, rgba(5, 150, 105, 0.07), transparent 70%);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100%;
  min-height: 100vh;
  position: relative;
  padding-bottom: calc(70px + var(--safe-bottom));
}

@media (min-width: 900px) {
  body {
    padding-bottom: 30px;
  }
}

img, video {
  display: block;
  max-width: 100%;
}

svg {
  display: block;
  flex-shrink: 0;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--turf-lit);
  color: #000;
}

/* ---- Field Lines Stadium Pitch Background ------------------------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.012) 0 40px, transparent 40px 80px),
    radial-gradient(circle at 50% 10%, rgba(16, 185, 129, 0.06), transparent 70%);
}

/* ---- Athletic Typography Utilities -------------------------------- */
.display {
  font-family: var(--sans);
  font-stretch: 84%;
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.eyebrow {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--turf-lit);
  font-stretch: 88%;
}
.eyebrow.colt { color: var(--colt-lit); }
.eyebrow.gold { color: var(--amber); }
.eyebrow.muted { color: var(--muted); }

.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.card {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  padding: 18px 20px;
}

.card--interactive {
  cursor: pointer;
  transition: all .18s var(--ease);
}
.card--interactive:hover {
  background: var(--surface-2);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line-turf);
  transform: translateY(-2px);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

/* Vector SVG helper sizing */
.icon-svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}
.icon-xs { width: 0.95rem; height: 0.95rem; }
.icon-sm { width: 1.15rem; height: 1.15rem; }
.icon-md { width: 1.35rem; height: 1.35rem; }
.icon-lg { width: 1.6rem; height: 1.6rem; }

/* =====================================================================
   HUD HEADER (Match Coach HQ)
   ===================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 90;
  width: 100%;
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--line);
}

.app-header-inner {
  max-width: 1160px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  width: 100%;
  box-sizing: border-box;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.crest-svg {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  flex-shrink: 0;
  color: var(--turf-lit);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(16, 185, 129, 0.05));
  border-radius: 9px;
  padding: 5px;
  border: 1px solid var(--line-turf);
}

.brand-title {
  font-family: var(--sans);
  font-stretch: 84%;
  font-weight: 800;
  font-size: 1.10rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--cream);
  line-height: 1.1;
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
  margin-top: 2px;
  white-space: nowrap;
}

/* Quick HUD Chips */
.header-athlete-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 1;
  min-width: 0;
}

.athlete-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 99px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s var(--ease);
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.athlete-chip:hover {
  transform: translateY(-1px);
}
.athlete-chip.turf:hover {
  border-color: var(--turf-lit);
  box-shadow: 0 0 12px var(--turf-glow);
}
.athlete-chip.amber:hover {
  border-color: var(--amber);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.athlete-chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  flex-shrink: 0;
}
.athlete-chip.turf .dot { background: var(--turf-lit); box-shadow: 0 0 6px var(--turf-lit); }
.athlete-chip.amber .dot { background: var(--amber); box-shadow: 0 0 6px var(--amber); }

.chip-score {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--turf-lit);
  font-weight: 800;
}

/* Header Tools */
.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.tool-btn {
  width: 36px;
  height: 36px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--dim);
  transition: all .18s var(--ease);
}
.tool-btn:hover {
  color: var(--cream);
  background: var(--surface-2);
  border-color: var(--line-2);
}
.tool-btn.whistle-active {
  background: var(--turf-wash);
  border-color: var(--turf-lit);
  color: var(--turf-lit);
  box-shadow: 0 0 12px var(--turf-glow);
}
.tool-btn svg {
  width: 17px !important;
  height: 17px !important;
}

.theme-icon-sun {
  display: block;
}
.theme-icon-moon {
  display: none;
}
[data-theme="light"] .theme-icon-sun {
  display: none;
}
[data-theme="light"] .theme-icon-moon {
  display: block;
}

@media (max-width: 640px) {
  .app-header-inner {
    height: 56px;
    gap: 6px;
    padding: 0 max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
  }
  .crest-svg {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    padding: 4px;
  }
  .brand-title {
    font-size: 0.95rem;
  }
  .brand-subtitle {
    display: none;
  }
  .athlete-chip {
    padding: 4px 8px;
    font-size: 0.66rem;
  }
  .athlete-chip .chip-name-full {
    display: none;
  }
}

/* =====================================================================
   NAVIGATION TAB BAR (STADIUM BROADCAST DOCK)
   ===================================================================== */
.tab-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--tab-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: max(4px, env(safe-area-inset-left));
  padding-right: max(4px, env(safe-area-inset-right));
  height: calc(56px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .tab-bar {
    position: sticky;
    top: 64px;
    bottom: auto;
    z-index: 85;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 8px 20px;
    height: 52px;
    border-top: 0;
    border-bottom: 1px solid var(--line);
    background: var(--tab-bg);
  }
}

.tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--muted);
  font-size: 0.60rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-stretch: 84%;
  transition: all .18s var(--ease);
  padding: 4px 1px;
  min-width: 0;
}
.tab-btn span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.tab-btn svg {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0;
  transition: transform .2s var(--ease);
}

.tab-btn:hover {
  color: var(--cream);
}
.tab-btn.active {
  color: var(--turf-lit);
}
.tab-btn.active svg {
  color: var(--turf-lit);
  transform: translateY(-1px);
}

@media (min-width: 900px) {
  .tab-btn {
    flex-direction: row;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 0.76rem;
  }
  .tab-btn.active {
    background: var(--turf-wash);
    box-shadow: inset 0 0 0 1px var(--line-turf);
    color: var(--cream);
  }
}

/* =====================================================================
   APP VIEWPORT & PAGES
   ===================================================================== */
.main-content {
  position: relative;
  z-index: 10;
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  padding: 20px max(16px, env(safe-area-inset-right)) calc(80px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

@media (max-width: 640px) {
  .main-content {
    padding-top: 14px;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
}

@media (min-width: 900px) {
  .main-content {
    padding-bottom: 48px;
  }
}

.page {
  display: none !important;
}
.page.active {
  display: block !important;
  animation: pageFadeIn 0.22s var(--ease);
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Page Section Header */
.section-header {
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--sans);
  font-stretch: 84%;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--cream);
  line-height: 1.1;
  margin-top: 4px;
}

.section-desc {
  font-size: 0.88rem;
  color: var(--dim);
  margin-top: 4px;
  max-width: 700px;
}

/* =====================================================================
   PROGRAM SELECTOR (Capsule Buttons)
   ===================================================================== */
.program-selector {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 18px;
  scrollbar-width: none;
}
.program-selector::-webkit-scrollbar { display: none; }

.program-tab {
  padding: 8px 16px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-stretch: 84%;
  color: var(--dim);
  white-space: nowrap;
  transition: all .18s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.program-tab:hover {
  color: var(--cream);
  background: var(--surface-2);
}
.program-tab.active {
  color: var(--cream);
  background: var(--surface-3);
  border-color: var(--turf-lit);
  box-shadow: 0 0 14px var(--turf-wash);
}

/* =====================================================================
   PRO TACTICAL BOARD & PITCH (#tactics)
   ===================================================================== */
.pitch-container-wrap {
  max-width: 960px;
  margin: 0 auto;
}

.pitch-canvas-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #08140c;
  border-radius: var(--r);
  border: 2px solid rgba(16, 185, 129, 0.35);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(16, 185, 129, 0.15);
  overflow: hidden;
  position: relative;
  margin-bottom: 16px;
}

.pitch-canvas-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
  touch-action: none;
}

.pitch-header-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.pitch-actions-row {
  display: flex;
  gap: 8px;
}

.btn-pitch-toggle {
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--dim);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  font-stretch: 84%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .18s var(--ease);
}
.btn-pitch-toggle:hover {
  background: var(--surface-2);
  color: var(--cream);
}
.btn-pitch-toggle.active {
  color: var(--colt-lit);
  border-color: var(--colt-lit);
  background: var(--colt-wash);
}

/* Pitch Tactical Banner */
.tactic-banner {
  padding: 14px 18px;
  background: var(--surface);
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.tactic-banner-badge {
  background: var(--turf-wash);
  color: var(--turf-lit);
  border: 1px solid var(--line-turf);
  padding: 4px 10px;
  border-radius: var(--r-sm);
  font-size: 0.70rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.tactic-banner-text {
  font-size: 0.88rem;
  color: var(--dim);
  line-height: 1.45;
}
.tactic-banner-text strong {
  color: var(--cream);
}

/* =====================================================================
   PRO SESSION CHRONOGRAPH / TIMER (#drills)
   ===================================================================== */
.timer-container {
  max-width: 800px;
  margin: 0 auto;
}

.timer-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg), 0 0 32px rgba(16, 185, 129, 0.12);
  padding: 28px 20px;
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.timer-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--turf-lit), var(--volt), var(--turf-lit));
}

.timer-period-name {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--turf-lit);
  font-stretch: 88%;
  margin-bottom: 6px;
}

.timer-display {
  font-family: var(--mono);
  font-size: 4.6rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  color: var(--cream);
  line-height: 1;
  margin: 8px 0 16px;
  text-shadow: 0 0 28px rgba(16, 185, 129, 0.35);
}

@media (max-width: 500px) {
  .timer-display {
    font-size: 3.4rem;
  }
}

.timer-progress-track {
  height: 8px;
  background: var(--surface-2);
  border-radius: 99px;
  overflow: hidden;
  margin: 0 auto 24px;
  max-width: 520px;
  border: 1px solid var(--line);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--turf), var(--turf-lit));
  width: 0%;
  transition: width 0.3s var(--ease);
  box-shadow: 0 0 12px var(--turf-glow);
}

.timer-controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Pro Broadcast Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--r);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-stretch: 84%;
  cursor: pointer;
  transition: all .18s var(--ease);
  user-select: none;
  border: 0;
}
.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--turf-lit);
  color: #03140a;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4), 0 0 24px rgba(16, 185, 129, 0.25);
}
.btn-primary:hover {
  background: #34d399;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.5);
}

.btn-outline {
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  color: var(--cream);
}
.btn-outline:hover {
  background: var(--surface-3);
  border-color: var(--dim);
}

.btn-warning {
  background: var(--amber);
  color: #1f1201;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
}
.btn-warning:hover {
  background: #fbbf24;
}

.btn-xl {
  padding: 12px 28px;
  font-size: 0.95rem;
  border-radius: 99px;
}
.btn-lg {
  padding: 10px 20px;
  font-size: 0.84rem;
  border-radius: 99px;
}
.btn-sm {
  padding: 6px 14px;
  font-size: 0.74rem;
  border-radius: var(--r-sm);
}

/* =====================================================================
   PRO DRILL BANK CARDS
   ===================================================================== */
.drill-card {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  padding: 20px;
  margin-bottom: 16px;
  transition: all .2s var(--ease);
}
.drill-card:hover {
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line-turf);
  transform: translateY(-2px);
}

.drill-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.drill-title {
  font-family: var(--sans);
  font-stretch: 84%;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--cream);
}

.drill-meta-tag {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--dim);
  padding: 3px 10px;
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.drill-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: var(--surface-2);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
}

.drill-spec-item strong {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 800;
}
.drill-spec-item span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cream);
}

.drill-points {
  font-size: 0.85rem;
  color: var(--dim);
  margin-bottom: 14px;
  line-height: 1.5;
}
.drill-points li {
  margin-left: 20px;
  margin-bottom: 5px;
}
.drill-points strong {
  color: var(--cream);
}

/* =====================================================================
   SIDELINE AUDIO CUE CARDS (#cues)
   ===================================================================== */
.cue-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 640px) {
  .cue-grid { grid-template-columns: 1fr 1fr; }
}

.cue-card {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  padding: 18px 20px;
  cursor: pointer;
  transition: all .18s var(--ease);
  position: relative;
  overflow: hidden;
}
.cue-card:hover {
  background: var(--surface-2);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line-gold);
  transform: translateY(-2px);
}
.cue-card:active {
  transform: scale(0.98);
}

.cue-card.highlighted {
  background: var(--surface-2);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.25), inset 0 0 0 1px var(--amber);
}

.cue-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.cue-speaker-badge {
  width: 28px;
  height: 28px;
  border-radius: 99px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dim);
  transition: all .18s var(--ease);
}
.cue-card:hover .cue-speaker-badge,
.cue-card.highlighted .cue-speaker-badge {
  color: var(--amber);
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--amber);
}

.cue-shout {
  font-family: var(--sans);
  font-stretch: 84%;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 6px;
  line-height: 1.1;
}
.cue-card.highlighted .cue-shout {
  color: var(--amber);
}

.cue-why {
  font-size: 0.84rem;
  color: var(--dim);
  line-height: 1.45;
}

/* =====================================================================
   4V4 SUBSTITUTION & ROSTER TRACKER (#subs)
   ===================================================================== */
.match-clock-card {
  background: var(--surface);
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg);
  padding: 18px 20px;
  margin-bottom: 18px;
}

.match-clock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.match-time-display {
  font-family: var(--mono);
  font-size: 2.2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--cream);
}

.shift-progress-wrap {
  margin-bottom: 16px;
}

.shift-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--dim);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.roster-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (min-width: 640px) {
  .roster-grid { grid-template-columns: 1fr 1fr; }
}

.roster-column-card {
  background: var(--surface-2);
  border-radius: var(--r);
  border: 1px solid var(--line);
  padding: 14px;
}

.roster-column-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-stretch: 84%;
  color: var(--dim);
}

.active-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--turf-lit);
  box-shadow: 0 0 8px var(--turf-lit);
  display: inline-block;
}

.player-tag-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-tag {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
}

.player-tag.on-pitch {
  border-color: var(--line-turf);
  background: var(--turf-wash);
}

.player-minutes {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--turf-lit);
  font-weight: 800;
  margin-left: 6px;
}

.sub-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  font-stretch: 84%;
  cursor: pointer;
  transition: all .18s var(--ease);
}
.sub-btn-off {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}
.sub-btn-off:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
}
.sub-btn-on {
  background: var(--turf-wash);
  border: 1px solid var(--line-turf);
  color: var(--turf-lit);
}
.sub-btn-on:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: var(--turf-lit);
}

.add-player-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.player-input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  color: var(--cream);
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 0.84rem;
  outline: none;
  transition: border-color .18s;
}
.player-input:focus {
  border-color: var(--turf-lit);
}

/* Sub alert banner */
.sub-alert-banner {
  background: linear-gradient(135deg, #1f1201 0%, #150c01 100%);
  border: 1px solid var(--amber);
  color: #fef3c7;
  padding: 12px 16px;
  border-radius: var(--r);
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.25);
}

/* =====================================================================
   TECHNICAL FOOTWORK MOVES (#moves)
   ===================================================================== */
.move-card {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  padding: 20px;
  margin-bottom: 16px;
}

.move-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.move-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--colt-wash);
  border: 1px solid var(--line-blue);
  color: var(--colt-lit);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 1.05rem;
}

.move-title {
  font-family: var(--sans);
  font-stretch: 84%;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--cream);
}

.move-steps {
  font-size: 0.86rem;
  color: var(--dim);
  margin-left: 20px;
  margin-bottom: 12px;
  line-height: 1.5;
}
.move-steps li {
  margin-bottom: 5px;
}

.coaching-tip-box {
  background: var(--turf-wash);
  border-left: 3px solid var(--turf-lit);
  padding: 10px 14px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 0.82rem;
  color: var(--cream);
}
