/* =============================================================
   RXTR — Unified Stylesheet
   Covers: a_homepage, b_hub, c_category, d_drill
   ============================================================= */

/* --- GOOGLE FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');


/* ---------------------------------------------------------------
   CSS CUSTOM PROPERTIES (Tokens)
--------------------------------------------------------------- */

:root {
  /* Dark mode (default) */
  --bg:                    #282828;
  --surface:               #2a2a2a;
  --text:                  #f0f0f0;
  --text-secondary:        #999;
  --text-light:            #666;
  --accent:                #69ff47;
  --border:                #333;
  --nav-bg:                rgba(40,40,40,0.85);
  --nav-tabs-bg:           #333;
  --shadow-tab:            0 1px 4px rgba(0,0,0,0.3);
  --select-shadow:         0 1px 4px rgba(0,0,0,0.2);
  --select-arrow-stroke:   %23999;
  --video-bg:              linear-gradient(145deg, #111, #222);
  --setting-bg:            linear-gradient(145deg, #333, #444);
  --setting-color:         #888;
  --video-placeholder-color: #666;
  --shadow-card:           0 2px 20px rgba(0,0,0,0.3);
  --shadow-hover:          0 8px 40px rgba(0,0,0,0.5);

  /* Shared */
  --radius:                16px;
  --radius-lg:             24px;
  --font-display:          'Outfit', sans-serif;
  --font-body:             'DM Sans', sans-serif;
  --transition:            0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg:                    #f5f5f7;
  --surface:               #ffffff;
  --text:                  #1a1a1a;
  --text-secondary:        #666;
  --text-light:            #999;
  --border:                #e8e8e8;
  --nav-bg:                rgba(255,255,255,0.85);
  --nav-tabs-bg:           #f0f0f0;
  --shadow-tab:            0 1px 4px rgba(0,0,0,0.1);
  --select-shadow:         0 1px 4px rgba(0,0,0,0.08);
  --select-arrow-stroke:   %23666;
  --video-bg:              linear-gradient(145deg, #1a1a1a, #2a2a2a);
  --setting-bg:            linear-gradient(145deg, #e8e8e8, #d0d0d0);
  --setting-color:         #999;
  --video-placeholder-color: #888;
  --shadow-card:           0 2px 20px rgba(0,0,0,0.08);
  --shadow-hover:          0 8px 40px rgba(0,0,0,0.15);
}


/* ---------------------------------------------------------------
   RESET & BASE
--------------------------------------------------------------- */

*  { box-sizing: border-box; margin: 0; padding: 0; }
html { scrollbar-gutter: stable; }
html, body { height: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}


/* ---------------------------------------------------------------
   LOGO SWAP (dark/light)
--------------------------------------------------------------- */

.logo-dark  { display: block; }
.logo-light { display: none;  }

[data-theme="light"] .logo-dark  { display: none;  }
[data-theme="light"] .logo-light { display: block; }


/* ---------------------------------------------------------------
   THEME TOGGLE BUTTON
--------------------------------------------------------------- */

.theme-toggle {
  position: fixed;
  top: 14px;
  left: 20px;
  z-index: 200;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  color: rgba(255,255,255,0.55);
}

[data-theme="light"] .theme-toggle {
  border-color: rgba(0,0,0,0.18);
  background:   rgba(0,0,0,0.05);
  color:        rgba(0,0,0,0.4);
}

.theme-toggle:hover {
  border-color: rgba(255,255,255,0.4);
  color:        rgba(255,255,255,0.85);
  background:   rgba(255,255,255,0.12);
}

[data-theme="light"] .theme-toggle:hover {
  border-color: rgba(0,0,0,0.3);
  color:        rgba(0,0,0,0.7);
  background:   rgba(0,0,0,0.08);
}

.theme-toggle svg { width: 18px; height: 18px; }

.icon-moon { display: block; }
.icon-sun  { display: none;  }

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


/* ---------------------------------------------------------------
   NAV BAR (shared across b / c / d)
--------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

/* Simple centred logo (c + d pages) */
.nav-inner--centered {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo {
  height: 28px;
  justify-self: center;
}

.nav-logo img {
  height: 100%;
  width: auto;
}

/* Sport tabs (b_hub) */
.nav-tabs {
  display: flex;
  gap: 4px;
  background: var(--nav-tabs-bg);
  border-radius: 100px;
  padding: 4px;
  justify-self: end;
  grid-column: 3;
  grid-row: 1;
}

.nav-tab {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 100px;
  text-decoration: none;
  color: var(--text-secondary);
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  background: none;
}

.nav-tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-tab);
}

.nav-tab:hover:not(.active) { color: var(--text); }

/* Mobile sport dropdown */
.nav-sport-select {
  display: none;
  justify-self: end;
  grid-column: 3;
  grid-row: 1;
}

.sport-select {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 32px 8px 16px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  box-shadow: var(--select-shadow);
  transition: border-color var(--transition);
}

.sport-select:focus {
  outline: none;
  border-color: var(--text-secondary);
}

/* Drill prev/next buttons (d_drill) */
.nav-drill-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-drill-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  color: rgba(255,255,255,0.55);
  transition: all var(--transition);
}

[data-theme="light"] .nav-drill-btn {
  border-color: rgba(0,0,0,0.18);
  background:   rgba(0,0,0,0.05);
  color:        rgba(0,0,0,0.4);
}

.nav-drill-btn:hover {
  border-color: rgba(255,255,255,0.4);
  color:        rgba(255,255,255,0.85);
  background:   rgba(255,255,255,0.12);
}

[data-theme="light"] .nav-drill-btn:hover {
  border-color: rgba(0,0,0,0.3);
  color:        rgba(0,0,0,0.7);
  background:   rgba(0,0,0,0.08);
}

.nav-drill-btn svg { width: 16px; height: 16px; }


/* ---------------------------------------------------------------
   BREADCRUMB
--------------------------------------------------------------- */

.breadcrumb {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  transition: color var(--transition);
}

.breadcrumb:hover { color: var(--text); }

.breadcrumb svg { width: 16px; height: 16px; }


/* ---------------------------------------------------------------
   PAGE WRAPPER
--------------------------------------------------------------- */

/* Hub page (b) — wider */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* Category + drill pages — narrower */
.page--narrow {
  max-width: 960px;
  padding-top: 32px;
}

.page-header { margin-bottom: 40px; }

.page-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 400;
}

.drill-count {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
  margin-left: 12px;
}


/* ---------------------------------------------------------------
   ANIMATIONS
--------------------------------------------------------------- */

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


/* ---------------------------------------------------------------
   A — LANDING PAGE
--------------------------------------------------------------- */

.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.landing-logo {
  width: 160px;
  margin-bottom: 12px;
  animation: fadeUp 0.6s ease-out both;
}

.landing-logo img { width: 100%; height: auto; }

.landing-subtitle {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 48px;
  animation: fadeUp 0.6s ease-out 0.1s both;
}

.landing-footer {
  margin-top: 48px;
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  animation: fadeUp 0.6s ease-out 0.5s both;
}

/* Sport card grid */
.sport-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
  max-width: 900px;
}

.sport-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-card);
}

.sport-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-hover);
}

.sport-card:nth-child(1) { animation: fadeUp 0.6s ease-out 0.2s both;  }
.sport-card:nth-child(2) { animation: fadeUp 0.6s ease-out 0.35s both; }

.sport-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition);
}

.sport-card:hover .sport-card-bg { transform: scale(1.05); }

.sport-card-bg.soccer   { background-image: url('./images/rxtr-Mobile.jpg'); }
.sport-card-bg.baseball { background: linear-gradient(145deg, #1a2332 0%, #2a3a4a 40%, #1a2332 100%); }

.sport-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.05) 100%);
}

.sport-card-content {
  position: relative;
  z-index: 1;
  padding: 32px;
}

.sport-card-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 8px;
}

.sport-card-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
}

.sport-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 24px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: background var(--transition), border-color var(--transition);
}

.sport-card:hover .sport-card-cta {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.4);
}

.sport-card-cta svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.sport-card:hover .sport-card-cta svg { transform: translateX(3px); }

.baseball-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  font-size: 80px;
  opacity: 0.15;
  z-index: 0;
}


/* ---------------------------------------------------------------
   B — HUB PAGE  (Category tiles)
--------------------------------------------------------------- */

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

.category-tile {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-card);
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.category-tile.full-width {
  grid-column: 1 / -1;
  aspect-ratio: 3 / 1;
}

.category-tile:nth-child(1) { animation: fadeUp 0.5s ease-out 0.1s  both; }
.category-tile:nth-child(2) { animation: fadeUp 0.5s ease-out 0.18s both; }
.category-tile:nth-child(3) { animation: fadeUp 0.5s ease-out 0.26s both; }
.category-tile:nth-child(4) { animation: fadeUp 0.5s ease-out 0.34s both; }
.category-tile:nth-child(5) { animation: fadeUp 0.5s ease-out 0.42s both; }

.tile-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition);
}

.category-tile:hover .tile-bg { transform: scale(1.04); }

/* Soccer category backgrounds */
.tile-bg.setup       { background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%); }
.tile-bg.technique   { background: linear-gradient(135deg, #1a472a 0%, #2d8a4e 100%); }
.tile-bg.drills      { background: linear-gradient(135deg, #2d1b4e 0%, #6c3fa0 100%); }
.tile-bg.fitness     { background: linear-gradient(135deg, #4a1a1a 0%, #c0392b 100%); }
.tile-bg.multiboard  { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%); }

/* Baseball category backgrounds */
.tile-bg.hitting     { background: linear-gradient(135deg, #4a2c0a 0%, #b8860b 100%); }
.tile-bg.fielding    { background: linear-gradient(135deg, #1a3a1a 0%, #2d6a2d 100%); }
.tile-bg.pitching    { background: linear-gradient(135deg, #1a1a3a 0%, #3a3a8a 100%); }
.tile-bg.baserunning { background: linear-gradient(135deg, #3a1a1a 0%, #8a3a3a 100%); }

.tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0) 100%);
}

.tile-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  font-size: 52px;
  opacity: 0.2;
}

.tile-content {
  position: relative;
  z-index: 1;
  padding: 24px 28px;
}

.tile-count {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 4px;
}

.tile-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}

.tile-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(255,255,255,0.2);
  padding: 4px 10px;
  border-radius: 100px;
  margin-top: 8px;
}


/* ---------------------------------------------------------------
   C — CATEGORY PAGE  (Drill list)
--------------------------------------------------------------- */

.drill-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.drill-card {
  display: flex;
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100px;
}

.drill-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.drill-card--soon {
  cursor: default;
  opacity: 0.5;
}

.drill-card--soon:hover {
  transform: none;
  box-shadow: var(--shadow-card);
}

.drill-card:nth-child(1) { animation: fadeUp 0.4s ease-out 0.05s both; }
.drill-card:nth-child(2) { animation: fadeUp 0.4s ease-out 0.10s both; }
.drill-card:nth-child(3) { animation: fadeUp 0.4s ease-out 0.15s both; }
.drill-card:nth-child(4) { animation: fadeUp 0.4s ease-out 0.20s both; }
.drill-card:nth-child(5) { animation: fadeUp 0.4s ease-out 0.25s both; }
.drill-card:nth-child(6) { animation: fadeUp 0.4s ease-out 0.30s both; }
.drill-card:nth-child(7) { animation: fadeUp 0.4s ease-out 0.35s both; }
.drill-card:nth-child(8) { animation: fadeUp 0.4s ease-out 0.40s both; }
.drill-card:nth-child(9) { animation: fadeUp 0.4s ease-out 0.45s both; }

.drill-thumb {
  width: 140px;
  height: 100%;
  min-height: 100px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  align-self: stretch;
}

.drill-thumb .play-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.play-icon svg { width: 14px; height: 14px; margin-left: 2px; }

.drill-info {
  flex: 1;
  padding: 20px 24px;
}

.drill-number {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 4px;
}

.drill-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
}

.drill-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
}

.drill-arrow {
  padding: 0 20px;
  color: var(--text-light);
  flex-shrink: 0;
  transition: color var(--transition);
}

.drill-card:hover .drill-arrow { color: var(--text); }

.drill-arrow svg { width: 20px; height: 20px; }

/* Thumbnail colour per category (reuses tile-bg colour map) */
.drill-thumb.setup       { background: linear-gradient(135deg, #2c3e50, #3498db); }
.drill-thumb.technique   { background: linear-gradient(135deg, #1a472a, #2d8a4e); }
.drill-thumb.drills      { background: linear-gradient(135deg, #2d1b4e, #6c3fa0); }
.drill-thumb.fitness     { background: linear-gradient(135deg, #4a1a1a, #c0392b); }
.drill-thumb.multiboard  { background: linear-gradient(135deg, #1a1a2e, #0f3460); }
.drill-thumb.hitting     { background: linear-gradient(135deg, #4a2c0a, #b8860b); }
.drill-thumb.fielding    { background: linear-gradient(135deg, #1a3a1a, #2d6a2d); }
.drill-thumb.pitching    { background: linear-gradient(135deg, #1a1a3a, #3a3a8a); }
.drill-thumb.baserunning { background: linear-gradient(135deg, #3a1a1a, #8a3a3a); }

/* Pro badge */
.pro-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
  color: #fff;
  padding: 3px 8px;
  border-radius: 100px;
  margin-left: 8px;
  vertical-align: middle;
}


/* ---------------------------------------------------------------
   D — DRILL DETAIL PAGE
--------------------------------------------------------------- */

/* Video player */
.video-container {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
  animation: fadeUp 0.5s ease-out both;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  background: var(--video-bg);
}

.video-placeholder {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--video-placeholder-color);
}

.play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), background var(--transition);
  cursor: pointer;
}

.play-btn:hover {
  transform: scale(1.1);
  background: rgba(255,0,0,1);
}

.play-btn svg { width: 24px; height: 24px; fill: white; margin-left: 3px; }

.video-label {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
}

/* Drill title block */
.drill-header {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeUp 0.5s ease-out 0.1s both;
}

.drill-id {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 4px;
}

.drill-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
}

.drill-subtitle-detail {
  font-size: 16px;
  color: var(--text-secondary);
}

.drill-description {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/* Cone layout + settings row */
.drill-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Cone layout card */
.cone-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  animation: fadeUp 0.5s ease-out 0.2s both;
}

.cone-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #1a472a 0%, #2d8a4e 40%, #1a472a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
}

.cone-label { padding: 16px 20px; }

.cone-label h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

/* Settings grid */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  animation: fadeUp 0.5s ease-out 0.3s both;
}

.setting-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.setting-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.setting-img {
  width: 100%;
  aspect-ratio: 1;
  background: var(--setting-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--setting-color);
  font-size: 28px;
}

.setting-label { padding: 12px 14px; }

.setting-label h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}

/* Page header animation (shared) */
.page-header { animation: fadeUp 0.5s ease-out both; }


/* ---------------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------------- */

@media (max-width: 768px) {
  .drill-details { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  /* Nav */
  .nav-tabs        { display: none;  }
  .nav-sport-select { display: block; }

  /* Hub */
  .category-grid { grid-template-columns: 1fr; }
  .category-tile.full-width { aspect-ratio: 16 / 10; }

  /* Landing */
  .sport-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  /* Shared text */
  .page-title  { font-size: 32px; }
  .drill-title { font-size: 28px; }

  /* Category list */
  .drill-card  { height: 80px; }
  .drill-thumb { width: 100px; min-height: 80px; }
  .drill-name  { font-size: 17px; }
  .drill-info  { padding: 16px; }
}


/* ---------------------------------------------------------------
   SETTING CARD — CLICKABLE VARIANT
--------------------------------------------------------------- */

.setting-card--clickable {
  cursor: pointer;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  text-align: left;
  width: 100%;
  border: none;
  padding: 0;
  color: var(--text);
  transition: transform var(--transition), box-shadow var(--transition);
}

.setting-card--clickable:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}


/* ---------------------------------------------------------------
   LIGHTBOX
--------------------------------------------------------------- */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox--open { display: flex; }

.lightbox-inner {
  position: relative;
  width: 100%;
  max-width: 900px;
}

.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.6);
}

.lightbox-close svg { width: 18px; height: 18px; }

.lightbox-video {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
}

.lightbox-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
