/* =============================================
   SOUTHERN PHILLIES — Styles
   Colors: Red #E81828, Powder Blue #6CACE4,
           Cream #FFF8F0, Dark #1a1a2e
   ============================================= */

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

:root {
  --red: #E81828;
  --red-dark: #c21222;
  --blue: #6CACE4;
  --blue-light: #a8d4f0;
  --cream: #FFF8F0;
  --white: #ffffff;
  --dark: #1a1a2e;
  --gray: #555;
  --gray-light: #e8e8e8;
  --font-display: 'Passion One', Impact, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --nav-height: 88px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- LIVE NOW BANNER ---- */
.live-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--red);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid #000;
}

.live-banner:hover {
  background: var(--red-dark);
}

.live-banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--white);
  animation: banner-pulse 1.2s ease-in-out infinite;
}

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

.live-banner-arrow {
  font-size: 16px;
  margin-left: 4px;
}

body.has-live-banner .nav {
  top: 42px;
}

body.has-live-banner .hero {
  padding-top: 42px;
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  height: var(--nav-height);
  transition: box-shadow 0.3s;
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-img {
  height: 64px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
  transition: transform 0.2s;
}
.nav-logo:hover .nav-logo-img {
  transform: scale(1.04);
}
@media (max-width: 720px) {
  .nav-logo-img { height: 52px; }
}

.logo-text {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--white);
}

.logo-script {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--red);
  font-style: italic;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--white);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--red);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--dark) 0%, #16213e 50%, var(--dark) 100%);
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(26,26,46,0.35) 0%, rgba(26,26,46,0.75) 70%, rgba(26,26,46,0.9) 100%),
    linear-gradient(180deg, rgba(26,26,46,0.4) 0%, rgba(26,26,46,0.2) 40%, rgba(26,26,46,0.85) 100%);
}

.pinstripes {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 38px,
    rgba(255,255,255,0.04) 38px,
    rgba(255,255,255,0.04) 40px
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 24px;
}

.hero-logo {
  display: block;
  width: clamp(300px, 62vw, 640px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 12px 40px rgba(0,0,0,0.6));
  animation: hero-logo-in 0.8s ease-out;
}

.hero-title {
  margin: 0 0 28px;
  display: flex;
  justify-content: center;
}

@keyframes hero-logo-in {
  from { opacity: 0; transform: translateY(-12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}


.hero-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(16px, 3vw, 22px);
  text-transform: uppercase;
  letter-spacing: 12px;
  color: var(--blue);
  margin-bottom: 8px;
}

.hero-main {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(72px, 15vw, 160px);
  color: var(--red);
  line-height: 0.9;
  font-style: italic;
  text-shadow: 4px 4px 0 rgba(0,0,0,0.3);
}

.hero-tagline {
  font-size: clamp(14px, 2vw, 18px);
  color: rgba(255,255,255,0.7);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.4);
  font-size: 24px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 24, 40, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 12px;
}

.btn-full {
  width: 100%;
  text-align: center;
}

/* ---- SECTIONS ---- */
.section {
  padding: 100px 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  color: var(--dark);
  text-align: center;
  margin-bottom: 12px;
  font-style: italic;
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 16px;
  margin-bottom: 48px;
}

/* ---- ABOUT ---- */
.about {
  background: var(--white);
}

.about-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 48px;
}

.about-grid .about-image {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.about-text p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray);
  margin-bottom: 20px;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--red);
}

.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray);
}

.about-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.about-columns:empty {
  display: none;
}

.about-column {
  background: var(--white);
  border-top: 4px solid var(--red);
  border-radius: 6px;
  padding: 24px 24px 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.about-column h3 {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--blue);
  margin: 0 0 16px;
  letter-spacing: 0.5px;
  text-align: center;
}

.about-column ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}

.about-column li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--dark);
  margin-bottom: 8px;
}

.about-column li:last-child {
  margin-bottom: 0;
}

.contact-socials {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  position: relative;
}

.about-image::after {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  bottom: 10px;
  left: 10px;
  border: 3px solid var(--blue);
  border-radius: 8px;
  z-index: -1;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- ROSTER ---- */
.roster {
  background: var(--cream);
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.roster-controls {
  display: flex;
  justify-content: flex-end;
  margin-top: 32px;
}

.roster-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray);
  font-weight: 700;
}

.roster-sort select {
  font-family: var(--font-body);
  font-size: 13px;
  padding: 8px 12px;
  border: 1px solid var(--gray-light);
  border-radius: 4px;
  background: var(--white);
  color: var(--dark);
  letter-spacing: normal;
  text-transform: none;
  font-weight: 500;
  cursor: pointer;
}

.roster-sort select:focus {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.roster-loading,
.roster-empty,
.schedule-loading,
.schedule-empty,
.stats-loading,
.stats-empty {
  text-align: center;
  color: var(--gray);
  grid-column: 1 / -1;
  padding: 32px 0;
}

.roster-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.roster-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

.roster-card:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.roster-photo {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--dark), #2a2a4a);
  overflow: hidden;
}

.roster-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.roster-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 64px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 2px;
}

.roster-number {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 20px;
  padding: 2px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.roster-info {
  padding: 14px 16px 18px;
}

.roster-info h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.roster-pos,
.roster-bt,
.roster-grad {
  font-size: 12px;
  color: var(--gray);
  letter-spacing: 0.5px;
}

.roster-pos {
  color: var(--red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ---- SCHEDULE ---- */
.schedule {
  background: var(--white);
}

.schedule-tabs,
.stats-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 32px 0 24px;
  flex-wrap: wrap;
}

.schedule-tab,
.stats-tab {
  padding: 10px 20px;
  border: 2px solid var(--gray-light);
  background: var(--white);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  color: var(--gray);
  transition: all 0.2s;
}

.schedule-tab.active,
.stats-tab.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.schedule-list {
  max-width: 760px;
  margin: 0 auto;
}

.game-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-light);
}

.game-date {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--red);
  letter-spacing: 1px;
}

.game-opp {
  font-size: 16px;
  font-weight: 700;
}

.game-loc,
.game-tourney {
  font-size: 12px;
  color: var(--gray);
  margin-top: 2px;
}

.game-tourney {
  color: var(--blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.game-photos-strip {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.game-photo-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.15s;
}

.game-photo-thumb:hover {
  transform: scale(1.05);
}

.game-photos-more {
  font-size: 12px;
  color: var(--gray);
  padding: 0 4px;
}

.game-result {
  display: flex;
  align-items: center;
  gap: 10px;
}

.game-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--white);
}

.game-w .game-badge { background: #22a06b; }
.game-l .game-badge { background: #b23838; }
.game-t .game-badge { background: var(--gray); }

.game-score {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--dark);
}

/* ---- STATS ---- */
.stats {
  background: var(--cream);
}

.stats-table-wrap {
  overflow-x: auto;
  margin: 0 -24px;
  padding: 0 24px;
}

.stats-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.stats-table th,
.stats-table td {
  padding: 10px 12px;
  text-align: center;
  font-size: 13px;
  border-bottom: 1px solid var(--gray-light);
}

.stats-table thead th {
  background: var(--dark);
  color: var(--white);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stats-table tbody tr:hover {
  background: var(--cream);
}

.stats-table .stats-name {
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

/* ---- GALLERY ---- */
.gallery {
  background: var(--cream);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.gallery-slideshow {
  grid-column: 1 / -1;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #0a0a14;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}

.gallery-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  pointer-events: none;
}

.gallery-slide.is-active {
  opacity: 1;
}

.gallery-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.gallery-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.45);
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.gallery-dot.is-active {
  background: #fff;
  transform: scale(1.25);
}

.gallery-dot:hover {
  background: rgba(255,255,255,0.85);
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,46,0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* ---- MEDIA / VIDEOS ---- */
.media {
  background: var(--dark);
}

.media .section-title {
  color: var(--white);
}

.media .section-subtitle {
  color: rgba(255,255,255,0.6);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.video-card {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #2a2a4a, #1a1a2e);
  overflow: hidden;
}

.video-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: transform 0.2s, background 0.2s, opacity 0.2s;
  padding-left: 3px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  pointer-events: none;
  z-index: 2;
}

.video-card:hover .play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--red-dark);
  opacity: 0;   /* fade out so the auto-playing preview is unobstructed */
}

.video-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85));
  color: rgba(255,255,255,0.95);
  padding: 24px 12px 10px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  z-index: 2;
}

.gallery-loading {
  text-align: center;
  color: var(--gray);
  padding: 24px 0;
  grid-column: 1 / -1;
  font-size: 14px;
}

/* ---- LIGHTBOX ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 36px;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
}

.lightbox-video {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 8px;
}

.lightbox-content {
  width: min(960px, 92vw);
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Vertical platforms get a narrower lightbox */
.lightbox-content[data-aspect="9:16"],
.lightbox-content[data-aspect="4:5"],
.lightbox-content[data-aspect="1:1"] {
  width: min(420px, 92vw);
}

.lightbox-iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 8px;
  background: #000;
  max-height: 88vh;
}

.lightbox-content[data-aspect="9:16"] .lightbox-iframe {
  aspect-ratio: 9 / 16;
}
.lightbox-content[data-aspect="4:5"] .lightbox-iframe {
  aspect-ratio: 4 / 5;
}
.lightbox-content[data-aspect="1:1"] .lightbox-iframe {
  aspect-ratio: 1 / 1;
}

/* Platform badge on each video card */
.video-platform-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.7);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  z-index: 3;
  backdrop-filter: blur(4px);
}

.video-platform-badge.platform-youtube  { background: rgba(255, 0, 0, 0.85); }
.video-platform-badge.platform-tiktok   { background: rgba(0, 0, 0, 0.9); }
.video-platform-badge.platform-instagram {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

/* ---- SHOP "Design your own" CTA ---- */
.shop-customize-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 36px;
  padding: 22px 28px;
  background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%);
  color: var(--white);
  border-radius: 10px;
  text-decoration: none;
  border: 2px solid var(--red);
  transition: transform 0.2s, box-shadow 0.2s;
}

.shop-customize-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}

.shop-cta-text strong {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--red);
  font-style: italic;
  display: block;
  letter-spacing: 1px;
}

.shop-cta-text span {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.5px;
}

/* ---- COACHES ---- */
.coaches {
  background: var(--white);
}

/* Desktop default: head coach occupies its own centered row above a centered grid. */
.coaches-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 48px;
  align-items: stretch;
}

.coaches-head {
  display: flex;
  justify-content: center;
}

.coaches-head .roster-card {
  width: 100%;
  max-width: 260px;
  transform: translateY(-12px);
}

.coaches-rest {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
  gap: 20px;
  justify-content: center;
}

/* Mobile: flatten the wrappers so all coaches participate in one grid in DB sort order. */
@media (max-width: 700px) {
  .coaches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
    justify-content: center;
  }
  .coaches-head,
  .coaches-rest {
    display: contents;
  }
  .coaches-head .roster-card {
    transform: none;
    max-width: none;
  }
}

.coach-role-chip {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--blue);
}

/* ---- FLIP CARD MODAL ---- */
.card-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(10, 12, 22, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.card-modal.active {
  opacity: 1;
  pointer-events: all;
}

.card-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.card-close:hover {
  background: rgba(255,255,255,0.2);
}

.card-stage {
  width: min(360px, 90vw);
  aspect-ratio: 5 / 7;
  perspective: 1600px;
  position: relative;
  cursor: pointer;
  transform: scale(0.94);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.4);
}

.card-modal.active .card-stage {
  transform: scale(1);
}

.card-flip {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0.1, 0.3, 1);
}

.card-flip.flipped {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.06);
  background: var(--white);
}

.card-face.card-back {
  transform: rotateY(180deg);
}

.card-flip-btn {
  position: absolute;
  bottom: -52px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(225, 32, 47, 0.35);
  transition: transform 0.15s, background 0.15s;
}

.card-flip-btn:hover {
  background: var(--red-dark);
  transform: translateX(-50%) translateY(-1px);
}

/* ---- CARD FRONT (baseball card design) ---- */
.cf-stripe {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 28px;
  background: linear-gradient(180deg, var(--blue), #4a8fc4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  z-index: 2;
}

.cf-photo {
  position: absolute;
  inset: 28px 0 110px 0;
  background: linear-gradient(135deg, #f3f5f9, #e1e7ef);
  overflow: hidden;
}

.cf-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cf-photo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 96px;
  color: rgba(108, 172, 228, 0.45);
}

.cf-jersey {
  position: absolute;
  top: 40px;
  right: 14px;
  font-family: var(--font-display);
  font-size: 56px;
  color: var(--red);
  line-height: 1;
  text-shadow: 2px 2px 0 var(--white), 4px 4px 0 rgba(0,0,0,0.15);
  z-index: 3;
}

.cf-banner {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 110px;
  background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  padding: 14px 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 3px solid var(--white);
}

.cf-banner::before {
  content: '';
  position: absolute;
  top: -3px; left: 0; right: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg,
    var(--white) 0 14px,
    var(--blue) 14px 16px);
}

.cf-name {
  font-family: var(--font-display);
  font-size: clamp(22px, 6vw, 30px);
  line-height: 1;
  letter-spacing: 1px;
  font-style: italic;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.25);
}

.cf-meta {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.95;
}

.cf-meta-chip {
  background: rgba(255,255,255,0.18);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
}

/* ---- CARD BACK (stats + Q&A) ---- */
.card-back {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(108, 172, 228, 0.04) 0 26px,
      rgba(108, 172, 228, 0.08) 26px 27px
    ),
    var(--cream);
  padding: 18px 18px 24px;
  display: flex;
  flex-direction: column;
}

.cb-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--red);
  margin-bottom: 10px;
  flex-shrink: 0;
}

.cb-thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 18px;
}

.cb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cb-name-block {
  flex: 1;
  min-width: 0;
}

.cb-name {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--red);
  font-style: italic;
  line-height: 1;
  letter-spacing: 0.5px;
}

.cb-sub {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray);
  margin-top: 2px;
}

.cb-jersey-mini {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--red);
  line-height: 1;
}

.cb-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  background: var(--dark);
  border-radius: 6px;
  padding: 6px 4px;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.cb-stats-empty {
  text-align: center;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  padding: 8px 0;
  font-weight: 700;
}

.cb-stat {
  text-align: center;
  color: var(--white);
}

.cb-stat-label {
  display: block;
  font-size: 8px;
  letter-spacing: 1.2px;
  color: var(--blue-light);
  text-transform: uppercase;
  font-weight: 700;
}

.cb-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.1;
  margin-top: 2px;
}

.cb-blurbs {
  flex: 1;
  overflow-y: auto;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--dark);
  padding-right: 4px;
}

.cb-blurbs::-webkit-scrollbar {
  width: 4px;
}
.cb-blurbs::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.18);
  border-radius: 4px;
}

.cb-q {
  margin-bottom: 10px;
}

.cb-q-label {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 2px;
}

.cb-q-answer {
  font-size: 11.5px;
  color: var(--dark);
}

.cb-funfact {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed rgba(0,0,0,0.18);
  font-size: 11px;
  font-style: italic;
  color: var(--gray);
}

.cb-funfact strong {
  color: var(--red);
  font-style: normal;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 9px;
}

@media (max-width: 480px) {
  .card-stage {
    width: min(320px, 86vw);
  }
  .cf-jersey {
    font-size: 44px;
    top: 36px;
  }
  .cb-stats {
    grid-template-columns: repeat(5, 1fr);
  }
  .cb-stat-value {
    font-size: 16px;
  }
}

/* ---- SHOP ---- */
.shop {
  background: var(--white);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  border-radius: 8px;
  overflow: hidden;
  background: var(--cream);
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.product-image {
  aspect-ratio: 1;
  overflow: hidden;
}

.product-placeholder {
  width: 100%;
  height: 100%;
  background:
    url('/logo.png') center/60% no-repeat,
    linear-gradient(135deg, #f7f7f7, #e9ecef);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.2);
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 4px;
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.product-price {
  color: var(--red);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
}

.product-desc {
  color: #555;
  font-size: 13px;
  line-height: 1.4;
  margin: 0 0 10px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-image {
  position: relative;
}
.product-image.is-clickable { cursor: zoom-in; }

.product-gallery-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  pointer-events: none;
}
.product-gallery-badge svg { display: block; }

/* Gallery lightbox */
.gallery-overlay {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-stage {
  max-width: 92vw;
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-img {
  max-width: 92vw;
  max-height: 82vh;
  border-radius: 8px;
  object-fit: contain;
}
.gallery-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.gallery-close:hover { background: rgba(255,255,255,0.22); }
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-nav:hover { background: rgba(255,255,255,0.22); }
.gallery-prev { left: 16px; }
.gallery-next { right: 16px; }
.gallery-meta {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 14px;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
}
.gallery-title { font-weight: 600; }
.gallery-count { opacity: 0.7; }

@media (max-width: 540px) {
  .gallery-nav { width: 40px; height: 40px; font-size: 18px; }
  .gallery-prev { left: 8px; }
  .gallery-next { right: 8px; }
  .gallery-close { top: 10px; right: 10px; width: 38px; height: 38px; font-size: 24px; }
}

.product-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #555;
  margin-bottom: 10px;
}
.product-option select {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: var(--white);
  font-size: 13px;
  font-family: inherit;
}

.add-to-cart.added {
  background: var(--blue, #6CACE4) !important;
  color: var(--white);
}

.shop-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #888;
  padding: 40px 0;
}

/* ---- CART ---- */
.cart-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(232, 24, 40, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.cart-fab:hover {
  transform: scale(1.1);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--blue);
  color: var(--dark);
  font-size: 12px;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: var(--white);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transition: right 0.3s;
  box-shadow: -4px 0 24px rgba(0,0,0,0.2);
}

.cart-drawer.active {
  right: 0;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-light);
}

.cart-header h3 {
  font-family: var(--font-display);
  font-size: 24px;
}

.cart-close {
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark);
  line-height: 1;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.cart-empty {
  text-align: center;
  color: var(--gray);
  margin-top: 40px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-light);
}

.cart-item-info h4 {
  font-size: 14px;
  margin-bottom: 2px;
}

.cart-item-info span {
  font-size: 13px;
  color: var(--gray);
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--red);
  cursor: pointer;
  font-size: 18px;
  padding: 4px 8px;
}

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--gray-light);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.cart-note {
  text-align: center;
  font-size: 12px;
  color: var(--gray);
  margin-top: 8px;
}

/* ---- CONTACT ---- */
.contact {
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 48px;
}

.contact-item {
  margin-bottom: 28px;
}

.contact-item h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray);
  margin-bottom: 8px;
}

.social-link,
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-weight: 600;
  transition: color 0.2s;
}

.social-link:hover,
.contact-link:hover {
  color: var(--red-dark);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 14px 16px;
  border: 2px solid var(--gray-light);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--white);
  transition: border-color 0.2s;
  color: var(--dark);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.contact-form textarea {
  resize: vertical;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--dark);
  padding: 40px 0;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-columns {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.98);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 20px 0;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    display: block;
    padding: 16px;
    font-size: 16px;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 36px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-grid {
    gap: 28px;
  }

  .about-image::after {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-info {
    padding: 12px;
  }

  .product-info h3 {
    font-size: 14px;
  }

  .product-price {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .about-stats {
    justify-content: center;
  }

  .about-columns {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
  }

  /* Lightbox fills mobile screen */
  .lightbox-video {
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }

  .lightbox-close {
    top: 12px;
    right: 16px;
    font-size: 32px;
    background: rgba(0,0,0,0.5);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Cart drawer full width on mobile */
  .cart-drawer {
    width: 100vw;
    max-width: 100vw;
    right: -100vw;
  }

  /* Bigger touch targets */
  .btn {
    padding: 16px 32px;
    font-size: 15px;
  }

  .btn-sm {
    padding: 12px 20px;
    font-size: 13px;
  }

  .cart-item-remove {
    padding: 8px 12px;
    font-size: 22px;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 16px; /* prevents iOS zoom on focus */
    padding: 16px;
  }

  .play-btn {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .video-label {
    font-size: 11px;
  }

  .roster-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .game-row {
    grid-template-columns: 70px 1fr auto;
    gap: 12px;
    padding: 14px 12px;
  }

  .game-date {
    font-size: 14px;
  }

  .game-opp {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .hero-logo {
    width: min(86vw, 360px);
  }

  .hero-main {
    font-size: 60px;
  }

  .hero-sub {
    letter-spacing: 6px;
    font-size: 13px;
  }

  .hero-tagline {
    font-size: 12px;
    letter-spacing: 2px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .shop-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .about-stats {
    gap: 24px;
  }

  .container {
    padding: 0 16px;
  }
}

/* Prevent body scroll when cart/lightbox open */
body.no-scroll {
  overflow: hidden;
}

/* Safe area padding for notched phones */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .cart-footer {
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }

  .footer {
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
  }

  .cart-fab {
    bottom: calc(24px + env(safe-area-inset-bottom));
  }
}
