/* ============================================================
   COLLEGE LIFE ITALIA — ATHLETE ROSTER
   style.css
   ============================================================ */

/* -----------------------------------------------------------
   1. CSS VARIABLES & RESET
----------------------------------------------------------- */
:root {
  /* Colors */
  --navy:        #0a0f1e;
  --navy-mid:    #0f1829;
  --navy-card:   #131d30;
  --navy-border: #1e2d45;
  --navy-hover:  #1a2740;

  --gold:        #c9a84c;
  --gold-light:  #e8c97a;
  --gold-dim:    rgba(201, 168, 76, 0.15);

  --white:       #ffffff;
  --off-white:   #f0f2f5;
  --grey-100:    #e2e6ed;
  --grey-400:    #8a96a8;
  --grey-600:    #4a566a;

  --green:       #2ecc71;
  --green-dim:   rgba(46, 204, 113, 0.12);
  --amber:       #f39c12;
  --amber-dim:   rgba(243, 156, 18, 0.12);
  --blue-pill:   #3498db;
  --blue-dim:    rgba(52, 152, 219, 0.12);

  /* Typography */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 5rem;

  /* Layout */
  --container:   1200px;
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   18px;
  --radius-xl:   24px;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0,0,0,0.35);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.5);
  --shadow-gold: 0 0 24px rgba(201,168,76,0.25);

  /* Transitions */
  --transition: 0.22s ease;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--navy);
  color: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

select {
  font-family: var(--font-body);
}

/* -----------------------------------------------------------
   2. CONTAINER
----------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* -----------------------------------------------------------
   3. BUTTONS
----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-large {
  padding: 0.85rem 2rem;
  font-size: 1rem;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.25);
  color: var(--white);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--navy-border);
  color: var(--grey-400);
  padding: 0.6rem 1.1rem;
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-navy {
  background: var(--navy-hover);
  border: 1.5px solid var(--navy-border);
  color: var(--off-white);
}
.btn-navy:hover {
  background: var(--navy-border);
}

/* -----------------------------------------------------------
   4. STICKY HEADER
----------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(10, 15, 30, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--navy-border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.logo-mark {
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.logo-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-mark.small {
  width: 28px;
  height: 28px;
  font-size: 0.85rem;
}

.logo-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
}
.logo-text em {
  font-style: normal;
  color: var(--gold);
}

.header-nav {
  display: flex;
  gap: var(--space-xl);
  margin-left: auto;
}
.header-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--grey-400);
  transition: color var(--transition);
}
.header-nav a:hover {
  color: var(--white);
}

.header-cta {
  margin-left: var(--space-md);
  flex-shrink: 0;
}

/* -----------------------------------------------------------
   5. HERO
----------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

/* Decorative grid background */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Diagonal accent lines */
.hero-bg-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-bg-lines::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  border: 80px solid rgba(201,168,76,0.05);
  border-radius: 50%;
}
.hero-bg-lines::after {
  content: '';
  position: absolute;
  bottom: -15%;
  right: 5%;
  width: 300px;
  height: 300px;
  border: 40px solid rgba(201,168,76,0.06);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  padding-bottom: var(--space-3xl);
  max-width: 760px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-lg);
  animation: fadeUp 0.6s ease both;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: var(--space-xl);
  animation: fadeUp 0.7s 0.1s ease both;
}

.hero-corner-logo {
  position: absolute;
  top: calc(50% - 206px);
  right: clamp(32px, 6vw, 78px);
  z-index: 2;
  width: clamp(150px, 15vw, 210px);
  max-width: 210px;
  height: auto;
  object-fit: contain;
  opacity: 0.96;
  pointer-events: none;
  animation: fadeUp 0.7s 0.15s ease both;
}

.hero-title-accent {
  color: var(--gold);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--grey-400);
  max-width: 560px;
  margin-bottom: var(--space-2xl);
  animation: fadeUp 0.7s 0.2s ease both;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  animation: fadeUp 0.7s 0.3s ease both;
}

.hero-secondary-action {
  display: flex;
  justify-content: center;
  width: min(100%, 35.125rem);
  margin-top: var(--space-md);
  animation: fadeUp 0.7s 0.4s ease both;
}

.btn-track-record {
  min-height: 44px;
  border: 1px solid rgba(201, 168, 76, 0.55);
  background: rgba(10, 15, 30, 0.52);
  color: var(--off-white);
}

.btn-track-record:hover {
  border-color: var(--gold-light);
  background: var(--gold-dim);
  color: var(--gold-light);
  transform: translateY(-1px);
}

.btn-track-record:focus-visible,
.footer-link:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-600);
  animation: fadeUp 1s 0.8s ease both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--grey-600), transparent);
  animation: scrollLine 1.5s ease infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* -----------------------------------------------------------
   6. STATS STRIP
----------------------------------------------------------- */
.stats-strip {
  background: var(--navy-card);
  border-top: 1px solid var(--navy-border);
  border-bottom: 1px solid var(--navy-border);
  padding: var(--space-2xl) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-md);
}

.stat-item {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  border-right: 1px solid var(--navy-border);
}
.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  letter-spacing: 0.02em;
  color: var(--gold);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-400);
}

/* -----------------------------------------------------------
   7. SECTION HEADERS
----------------------------------------------------------- */
.section-header {
  margin-bottom: var(--space-2xl);
}

.section-header.center {
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.03em;
  color: var(--white);
  line-height: 1;
}

/* -----------------------------------------------------------
   8. FEATURED SECTION
----------------------------------------------------------- */
.featured-section {
  padding: var(--space-3xl) 0;
  background: var(--navy-mid);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

/* -----------------------------------------------------------
   9. ROSTER SECTION
----------------------------------------------------------- */
.roster-section {
  padding: var(--space-3xl) 0;
}

/* ROSTER PICKER */
.roster-home {
  margin-bottom: var(--space-xl);
}

.roster-home-header {
  display: flex;
  justify-content: space-between;
  gap: var(--space-xl);
  align-items: flex-end;
  margin-bottom: var(--space-xl);
}

.roster-home-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--white);
}

.roster-home-copy {
  max-width: 390px;
  color: var(--grey-400);
  font-size: 0.95rem;
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-lg);
}

.roster-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 180px;
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  color: inherit;
  text-align: left;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.roster-card:hover {
  transform: translateY(-3px);
  background: var(--navy-hover);
  border-color: rgba(201,168,76,0.32);
  box-shadow: var(--shadow-card);
}

.roster-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.35rem;
  padding: var(--space-lg);
}

.selected-roster-label,
.roster-not-found-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.roster-card-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.03em;
  line-height: 1.05;
  color: var(--white);
  overflow-wrap: anywhere;
}

.roster-card-count {
  color: var(--grey-100);
  font-size: 0.94rem;
  font-weight: 700;
  margin-top: var(--space-md);
}

.roster-card-total {
  color: var(--grey-400);
  font-size: 0.82rem;
}

.roster-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: auto;
  padding: 0.52rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--gold);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background var(--transition), box-shadow var(--transition);
}

.roster-card:hover .roster-card-action {
  background: var(--gold-light);
  box-shadow: 0 0 18px rgba(201,168,76,0.18);
}

.roster-not-found {
  grid-column: 1 / -1;
  padding: var(--space-xl);
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
}

.roster-not-found h3 {
  margin: var(--space-xs) 0;
  color: var(--white);
  font-size: 1.25rem;
}

.roster-not-found p {
  color: var(--grey-400);
  margin-bottom: var(--space-lg);
}

.selected-roster-bar {
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  padding: var(--space-lg);
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
}

.selected-roster-main {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  min-width: 0;
}

.back-to-rosters {
  flex-shrink: 0;
}

.selected-roster-title {
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1;
  letter-spacing: 0.03em;
}

.roster-switcher {
  min-width: 220px;
}

/* FILTERS BAR */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  margin-bottom: var(--space-lg);
  padding: var(--space-lg);
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
}

.filter-search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--grey-600);
  pointer-events: none;
}

.filter-search {
  width: 100%;
  background: var(--navy);
  border: 1.5px solid var(--navy-border);
  border-radius: var(--radius-sm);
  color: var(--off-white);
  font-size: 0.9rem;
  padding: 0.6rem 1rem 0.6rem 2.4rem;
  outline: none;
  transition: border-color var(--transition);
}
.filter-search::placeholder {
  color: var(--grey-600);
}
.filter-search:focus {
  border-color: var(--gold);
}

.filter-select {
  background: var(--navy);
  border: 1.5px solid var(--navy-border);
  border-radius: var(--radius-sm);
  color: var(--off-white);
  font-size: 0.875rem;
  padding: 0.6rem 2rem 0.6rem 0.8rem;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a96a8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
}
.filter-select:focus {
  border-color: var(--gold);
}
.filter-select option {
  background: var(--navy-mid);
}

/* View mode toggle */
.view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  background: var(--navy);
  border: 1.5px solid var(--navy-border);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.view-toggle-button {
  min-height: 34px;
  padding: 0.45rem 0.8rem;
  border-radius: 4px;
  color: var(--grey-400);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--transition), background var(--transition), box-shadow var(--transition);
}

.view-toggle-button:hover {
  background: var(--navy-hover);
  color: var(--off-white);
}

.view-toggle-button.active {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 0 16px rgba(201,168,76,0.18);
}

/* Results meta */
.results-meta {
  margin-bottom: var(--space-lg);
  font-size: 0.85rem;
  color: var(--grey-400);
}

#results-count strong {
  color: var(--gold);
}

/* ATHLETES GRID */
.athletes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

/* ATHLETES LIST */
.athletes-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.athletes-list-header,
.athlete-list-row {
  display: grid;
  grid-template-columns:
    minmax(220px, 2fr)
    100px
    130px
    86px
    105px
    104px;
  gap: 0.75rem;
  align-items: center;
}

.athletes-list-header {
  padding: 0 var(--space-lg) var(--space-xs);
  color: var(--grey-600);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.athlete-list-row {
  padding: var(--space-md) var(--space-lg);
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
  animation: fadeUp 0.45s ease both;
}

.athlete-list-row:hover {
  transform: translateY(-2px);
  background: var(--navy-hover);
  box-shadow: var(--shadow-card);
  border-color: rgba(201,168,76,0.25);
}

.athlete-list-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.athlete-list-thumbnail-wrap {
  flex-shrink: 0;
}

.athlete-list-thumbnail {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--navy-border);
  object-fit: cover;
  background: var(--navy-hover);
  flex-shrink: 0;
}

.athlete-list-thumbnail-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-hover), var(--navy-border));
  color: var(--grey-400);
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.athlete-list-primary {
  min-width: 0;
}

.athlete-list-name {
  color: var(--white);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.athlete-list-meta {
  margin-top: 3px;
  color: var(--grey-400);
  font-size: 0.76rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.athlete-list-cell {
  min-width: 0;
  color: var(--grey-100);
  font-size: 0.84rem;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.athlete-list-cell.is-empty {
  color: transparent;
}

.athlete-list-status {
  justify-self: start;
}

.athlete-list-status-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.athlete-list-actions {
  display: flex;
  justify-content: flex-end;
}

.athlete-list-actions .btn {
  width: 100%;
  max-width: 104px;
  padding: 0.52rem 0.7rem;
  font-size: 0.76rem;
}

/* -----------------------------------------------------------
   10. ATHLETE CARD
----------------------------------------------------------- */
.athlete-card {
  position: relative;
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  animation: fadeUp 0.5s ease both;
}

.card-profile-link {
  position: absolute;
  inset: -1px;
  z-index: 1;
  border-radius: inherit;
  cursor: pointer;
}

.card-profile-link:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: -4px;
}

.athlete-card :is(a:not(.card-profile-link), button, input, select, textarea) {
  position: relative;
  z-index: 2;
}

.athlete-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(201,168,76,0.25);
}

/* Card photo area */
.card-photo-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: var(--navy-hover);
}

.card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.athlete-card:hover .card-photo {
  transform: scale(1.04);
}

/* Placeholder when no image */
.card-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--navy-hover), var(--navy-border));
  color: var(--grey-600);
  letter-spacing: 0.05em;
}

.card-photo-placeholder span {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: 0.08em;
  color: var(--grey-400);
}

/* Status badge on photo */
.card-status-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-available {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(46,204,113,0.3);
}
.badge-committed {
  background: var(--blue-dim);
  color: var(--blue-pill);
  border: 1px solid rgba(52,152,219,0.3);
}
.badge-in-progress {
  background: var(--amber-dim);
  color: var(--amber);
  border: 1px solid rgba(243,156,18,0.3);
}

/* "New" badge on photo */
.card-new-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--navy);
}

/* Sport tag overlay at bottom of photo */
.card-sport-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  background: linear-gradient(to top, rgba(10,15,30,0.9), transparent);
}

.card-sport-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Card body */
.card-body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.card-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  color: var(--white);
  line-height: 1.1;
}

.card-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
  font-size: 0.8rem;
}

.card-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 0.55rem 0.65rem;
  background: rgba(10,15,30,0.55);
  border: 1px solid rgba(30,45,69,0.82);
  border-radius: var(--radius-sm);
}

.card-meta-label {
  color: var(--grey-600);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.card-meta-value {
  color: var(--off-white);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.card-bio {
  font-size: 0.875rem;
  color: var(--grey-400);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Strengths */
.card-strengths {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-xs);
}

.strength-tag {
  padding: 0.2rem 0.6rem;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gold-light);
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

/* Card actions */
.card-actions {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--navy-border);
  margin-top: auto;
}

.card-actions .btn {
  flex: 1;
  font-size: 0.8rem;
}

/* -----------------------------------------------------------
   11. EMPTY STATE
----------------------------------------------------------- */
.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  color: var(--grey-400);
}
.empty-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}
.empty-state h3 {
  font-size: 1.3rem;
  color: var(--off-white);
  margin-bottom: var(--space-sm);
}
.empty-state p {
  margin-bottom: var(--space-xl);
}

/* -----------------------------------------------------------
   12. CONTACT SECTION
----------------------------------------------------------- */
.contact-section {
  padding: var(--space-3xl) 0;
  background: var(--navy-mid);
  border-top: 1px solid var(--navy-border);
}

.contact-intro {
  color: var(--grey-400);
  max-width: 540px;
  margin: var(--space-md) auto 0;
  font-size: 1rem;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-sm);
  padding: var(--space-xl) var(--space-lg);
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), transform var(--transition);
}
.contact-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.contact-card-icon {
  font-size: 1.8rem;
  margin-bottom: var(--space-xs);
}

.contact-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-400);
}

.contact-card-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gold);
}

.contact-social-wrapper {
  position: relative;
  min-width: 0;
}

.contact-social-wrapper[hidden],
.contact-card[hidden] {
  display: none !important;
}

.contact-card-button {
  width: 100%;
  height: 100%;
  font: inherit;
}

.instagram-menu {
  position: absolute;
  z-index: 280;
  bottom: calc(100% + 0.65rem);
  left: 50%;
  width: min(260px, calc(100vw - 2rem));
  padding: 0.4rem;
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  transform: translateX(-50%);
}

.instagram-menu[hidden] {
  display: none;
}

.instagram-menu.open {
  animation: modalIn 0.18s ease;
}

.instagram-menu-link {
  display: block;
  padding: 0.72rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--off-white);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  overflow-wrap: anywhere;
}

.instagram-menu-link:hover,
.instagram-menu-link:focus-visible {
  background: var(--navy-hover);
  color: var(--gold);
  outline: none;
}

/* Floating contact */
.floating-contact {
  position: fixed;
  right: calc(env(safe-area-inset-right, 0px) + 1.25rem);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 1.25rem);
  z-index: 260;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-sm);
  pointer-events: none;
}

.floating-contact-button {
  pointer-events: auto;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem;
  border: 1px solid rgba(10,15,30,0.72);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold-light), var(--gold));
  box-shadow: 0 14px 36px rgba(0,0,0,0.45), 0 0 0 6px rgba(201,168,76,0.14);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.floating-contact-button:hover {
  transform: translateY(-2px);
  border-color: var(--gold-light);
  background: linear-gradient(145deg, #f3dc95, var(--gold-light));
  box-shadow: 0 18px 42px rgba(0,0,0,0.5), var(--shadow-gold);
}

.floating-contact-button[aria-expanded="true"] {
  border-color: var(--gold);
  box-shadow: 0 16px 42px rgba(0,0,0,0.55), 0 0 0 6px rgba(201,168,76,0.14);
}

.floating-contact-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.16rem;
  border-radius: 50%;
  background: #fff8e6;
  filter: drop-shadow(0 1px 2px rgba(10,15,30,0.25));
}

.contact-popup {
  pointer-events: auto;
  width: min(360px, calc(100vw - 2rem));
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
}

.contact-popup.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.contact-popup-card {
  overflow: hidden;
  background: rgba(19,29,48,0.98);
  border: 1px solid rgba(201,168,76,0.28);
  border-radius: var(--radius-lg);
  box-shadow: 0 22px 60px rgba(0,0,0,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.contact-popup-header {
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(180deg, rgba(201,168,76,0.11), rgba(201,168,76,0));
  border-bottom: 1px solid var(--navy-border);
}

.contact-popup-eyebrow,
.athlete-contact-eyebrow {
  display: block;
  color: var(--grey-400);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.contact-popup-title {
  margin-top: 0.18rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  line-height: 1;
}

.contact-popup-manager {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid rgba(30,45,69,0.78);
}

.contact-popup-manager:last-child {
  border-bottom: 0;
}

.contact-popup-manager-info {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.contact-popup-manager-name {
  color: var(--white);
  font-weight: 700;
}

.contact-popup-manager-sports {
  color: var(--gold-light);
  font-size: 0.82rem;
}

.contact-popup-actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.contact-popup .manager-contact-link {
  flex: 1;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.58rem 0.8rem;
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-sm);
  color: var(--off-white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--transition), border-color var(--transition), background var(--transition), transform var(--transition);
}

.contact-popup .manager-contact-link:hover {
  transform: translateY(-1px);
  border-color: var(--gold);
  background: rgba(201,168,76,0.1);
  color: var(--gold-light);
}

.contact-popup-primary-action {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid rgba(201,168,76,0.22);
  background: rgba(201,168,76,0.05);
}

.contact-popup-roster-needs-link {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.contact-popup-roster-needs-link:hover {
  transform: translateY(-1px);
  border-color: var(--gold-light);
  background: linear-gradient(135deg, #f3dc95, var(--gold-light));
  box-shadow: var(--shadow-gold);
}

.athlete-contact-manager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  padding: var(--space-md) 0 var(--space-lg);
  border-top: 1px solid var(--navy-border);
  border-bottom: 1px solid var(--navy-border);
}

.athlete-contact-copy {
  min-width: 0;
}

.athlete-contact-copy strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--white);
  font-size: 1rem;
}

.athlete-contact-copy span:last-child {
  display: block;
  color: var(--gold-light);
  font-size: 0.86rem;
}

.athlete-contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-sm);
}

.athlete-contact-actions .btn {
  font-size: 0.82rem;
}

.athlete-contact-manager + .modal-actions {
  border-top: 0;
  padding-top: 0;
}

.floating-contact-button:focus-visible,
.contact-popup .manager-contact-link:focus-visible,
.contact-popup-roster-needs-link:focus-visible,
.athlete-contact-button:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

/* -----------------------------------------------------------
   13. FOOTER
----------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  border-top: 1px solid var(--navy-border);
  padding: var(--space-xl) 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--grey-600);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--grey-600);
}

.footer-link {
  color: var(--grey-400);
  font-size: 0.82rem;
  font-weight: 600;
  transition: color var(--transition);
}

.footer-link:hover {
  color: var(--gold-light);
}

/* -----------------------------------------------------------
   14. MODAL
----------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 18, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-lg);
  overflow-y: auto;
}

.modal-card {
  position: relative;
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 780px;
  margin: auto;
  box-shadow: var(--shadow-hover);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy-hover);
  border: 1px solid var(--navy-border);
  color: var(--grey-400);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.modal-close:hover {
  background: var(--navy-border);
  color: var(--white);
}

.modal-body {
  padding: 0;
}

/* Modal photo header */
.modal-photo-header {
  position: relative;
  height: 280px;
  overflow: hidden;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: var(--navy-hover);
}

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

.modal-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-hover), var(--navy-border));
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--grey-600);
  letter-spacing: 0.1em;
}

.modal-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(19,29,48,1) 0%, rgba(19,29,48,0.4) 50%, transparent 100%);
}

.modal-header-info {
  position: absolute;
  bottom: var(--space-xl);
  left: var(--space-xl);
  right: 60px;
}

.modal-name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  letter-spacing: 0.03em;
  color: var(--white);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.modal-sport-pos {
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 500;
}

/* Modal content area */
.modal-content {
  padding: var(--space-xl);
}

/* Stats grid in modal */
.modal-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.modal-stat {
  background: var(--navy);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.modal-stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-600);
  margin-bottom: 4px;
}

.modal-stat-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--off-white);
  overflow-wrap: anywhere;
}

/* Status inside modal */
.modal-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--space-xl);
}

.modal-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-available  { background: var(--green); box-shadow: 0 0 6px var(--green); }
.dot-committed  { background: var(--blue-pill); box-shadow: 0 0 6px var(--blue-pill); }
.dot-in-progress{ background: var(--amber); box-shadow: 0 0 6px var(--amber); }

.modal-status-text {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.text-available  { color: var(--green); }
.text-committed  { color: var(--blue-pill); }
.text-in-progress{ color: var(--amber); }

/* Bio */
.modal-bio-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-600);
  margin-bottom: var(--space-sm);
}

.modal-bio-text {
  font-size: 0.95rem;
  color: var(--grey-100);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Strengths in modal */
.modal-strengths {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

/* Action buttons in modal */
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  border-top: 1px solid var(--navy-border);
  padding-top: var(--space-lg);
}

.modal-actions .btn {
  font-size: 0.82rem;
}

/* -----------------------------------------------------------
   15. ANIMATIONS
----------------------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Stagger cards */
.athlete-card:nth-child(1)  { animation-delay: 0.05s; }
.athlete-card:nth-child(2)  { animation-delay: 0.10s; }
.athlete-card:nth-child(3)  { animation-delay: 0.15s; }
.athlete-card:nth-child(4)  { animation-delay: 0.20s; }
.athlete-card:nth-child(5)  { animation-delay: 0.25s; }
.athlete-card:nth-child(6)  { animation-delay: 0.30s; }
.athlete-card:nth-child(7)  { animation-delay: 0.35s; }
.athlete-card:nth-child(8)  { animation-delay: 0.40s; }

/* -----------------------------------------------------------
   16. RESPONSIVE — TABLET
----------------------------------------------------------- */
@media (max-width: 900px) {
  .header-nav {
    display: none;
  }
  .roster-home-header,
  .selected-roster-bar,
  .selected-roster-main {
    align-items: stretch;
    flex-direction: column;
  }
  .roster-home-copy {
    max-width: none;
  }
  .roster-switcher {
    width: 100%;
    min-width: 0;
  }
  .athletes-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
  .athletes-list {
    gap: var(--space-md);
  }
  .athletes-list-header {
    display: none;
  }
  .athlete-list-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: var(--space-md);
  }
  .athlete-list-row:hover {
    transform: translateY(-2px);
  }
  .athlete-list-info {
    margin-bottom: var(--space-sm);
  }
  .athlete-list-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: 0.58rem 0;
    border-top: 1px solid rgba(30,45,69,0.75);
    white-space: normal;
  }
  .athlete-list-cell::before {
    content: attr(data-label);
    flex-shrink: 0;
    color: var(--grey-600);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .athlete-list-cell.is-empty {
    display: none;
  }
  .athlete-list-status {
    justify-self: stretch;
  }
  .athlete-list-actions {
    justify-content: stretch;
    padding-top: var(--space-sm);
    margin-top: var(--space-xs);
    border-top: 1px solid rgba(30,45,69,0.75);
  }
  .athlete-list-actions .btn {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .site-header {
    display: none !important;
  }

  .hero-corner-logo {
    top: 16px;
    left: 50%;
    right: auto;
    translate: -50% 0;
    width: clamp(140px, 42vw, 168px);
    max-width: 46vw;
  }
}

/* -----------------------------------------------------------
   17. RESPONSIVE — MOBILE
----------------------------------------------------------- */
@media (max-width: 600px) {
  :root {
    --space-3xl: 3rem;
  }

  .header-cta {
    display: none;
  }

  .logo-text {
    display: none;
  }

  .hero-content {
    padding-top: 130px;
  }

  .hero-corner-logo {
    top: 16px;
    left: 50%;
    right: auto;
    translate: -50% 0;
    width: clamp(140px, 42vw, 168px);
    max-width: 46vw;
  }

  .hero-scroll-hint {
    left: 50%;
    right: auto;
    transform: none;
    translate: -50% 0;
    text-align: center;
  }

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

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

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

  .filters-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-search-wrap {
    min-width: 0;
  }

  .view-toggle {
    width: 100%;
  }

  .view-toggle-button {
    flex: 1;
  }

  .athlete-list-thumbnail {
    width: 48px;
    height: 48px;
  }

  .card-actions {
    flex-direction: column;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--navy-border);
  }
  .stat-item:nth-child(odd) {
    border-right: 1px solid var(--navy-border);
  }
  .stat-item:last-child,
  .stat-item:nth-last-child(2):nth-child(odd) {
    border-bottom: none;
  }

  .modal-overlay {
    padding: var(--space-sm);
    align-items: flex-end;
  }

  .modal-card {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-height: 92svh;
    overflow-y: auto;
  }

  .modal-photo-header {
    height: 220px;
  }

  .modal-content {
    padding: var(--space-lg);
  }

  .modal-actions {
    gap: var(--space-xs);
  }

  .modal-actions .btn {
    font-size: 0.78rem;
    padding: 0.55rem 0.9rem;
  }

  .floating-contact {
    right: calc(env(safe-area-inset-right, 0px) + 0.85rem);
    bottom: calc(env(safe-area-inset-bottom, 0px) + 0.85rem);
  }

  .floating-contact-button {
    width: 56px;
    height: 56px;
    padding: 0.42rem;
  }

  .contact-popup {
    width: calc(100vw - 1.5rem);
    max-height: min(70svh, 480px);
    overflow-y: auto;
  }

  .contact-popup-card {
    border-radius: var(--radius-md);
  }

  .contact-popup-header,
  .contact-popup-manager,
  .contact-popup-primary-action {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .athlete-contact-manager {
    align-items: stretch;
    flex-direction: column;
    gap: var(--space-md);
  }

  .athlete-contact-actions {
    flex-direction: column;
    justify-content: stretch;
  }

  .athlete-contact-actions .btn {
    width: 100%;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-secondary-action,
  .hero-secondary-action .btn {
    width: 100%;
  }
}

/* -----------------------------------------------------------
   LOADING SPINNER (Google Sheets edition)
----------------------------------------------------------- */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--navy-border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* -----------------------------------------------------------
   EXTRA STATS BLOCK (sport-specific stats nel modal)
   Il colore accent è passato via CSS custom property --sport-color
   dal JavaScript in base allo sport dell'atleta.
----------------------------------------------------------- */
.extra-stats-block {
  margin-bottom: var(--space-xl);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  /* sottile linea colorata in alto come accent */
  border-top: 3px solid var(--sport-color, var(--gold));
}

.extra-stats-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--navy);
  border-bottom: 1px solid var(--navy-border);
}

.extra-stats-icon {
  font-size: 1rem;
  line-height: 1;
}

.extra-stats-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sport-color, var(--gold));
}

/* Griglia celle stat */
.extra-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1px;
  background: var(--navy-border); /* crea il separatore tra celle */
}

.extra-stat-cell {
  background: var(--navy-card);
  padding: var(--space-md) var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 3px;
  transition: background var(--transition);
}

.extra-stat-cell:hover {
  background: var(--navy-hover);
}

.extra-stat-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.03em;
  color: var(--white);
  line-height: 1;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.extra-stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-400);
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* Mobile: riduci leggermente la griglia */
@media (max-width: 600px) {
  .extra-stats-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }
  .extra-stat-value {
    font-size: 1.2rem;
  }
}

/* -----------------------------------------------------------
   COACH WORKFLOW
----------------------------------------------------------- */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

.btn:disabled,
.btn.is-disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.48;
  pointer-events: none;
  transform: none;
}

.saved-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  min-height: 1.35rem;
  margin-left: 0.2rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 800;
}

.card-actions {
  flex-wrap: wrap;
}

.card-actions .btn {
  flex: 1 1 calc(50% - var(--space-sm));
  min-height: 42px;
}

.save-athlete-btn.is-saved,
.compare-athlete-btn.is-selected {
  border-color: var(--gold);
  color: var(--gold-light);
  background: var(--gold-dim);
}

.identity-note {
  padding: 0 var(--space-lg) var(--space-md);
  color: var(--grey-400);
  font-size: 0.74rem;
  line-height: 1.4;
}

.athlete-list-actions {
  flex-wrap: wrap;
  gap: 0.35rem;
}

.athlete-list-actions .btn {
  flex: 1 1 88px;
  max-width: none;
  white-space: normal;
}

.athletes-list-header,
.athlete-list-row {
  grid-template-columns: minmax(190px, 1.7fr) 88px 120px 80px 100px minmax(250px, 1.3fr);
}

.empty-actions,
.workflow-toolbar,
.profile-primary-actions,
.profile-manager-actions,
.profile-resource-actions,
.workflow-contact-group > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.empty-actions {
  justify-content: center;
}

.workflow-page {
  min-height: calc(100svh - 80px);
  padding: 7rem 0 var(--space-3xl);
  background: radial-gradient(circle at 80% 5%, rgba(201, 168, 76, 0.1), transparent 30rem), var(--navy);
}

.workflow-page[hidden] {
  display: none;
}

.workflow-header {
  max-width: 780px;
  margin-bottom: var(--space-xl);
}

.workflow-header h1,
.athlete-profile-hero h1,
.workflow-empty h1 {
  margin-top: var(--space-sm);
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.95;
}

.workflow-header p,
.workflow-empty p {
  max-width: 700px;
  margin-top: var(--space-md);
  color: var(--grey-400);
}

.workflow-toolbar {
  align-items: center;
  margin-bottom: var(--space-xl);
}

.workflow-alert {
  margin-bottom: var(--space-xl);
  padding: var(--space-md);
  border: 1px solid rgba(243, 156, 18, 0.45);
  border-radius: var(--radius-md);
  background: var(--amber-dim);
  color: var(--off-white);
}

.workflow-empty {
  padding: clamp(2rem, 7vw, 5rem);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  background: var(--navy-card);
  text-align: center;
}

.workflow-empty .btn {
  margin-top: var(--space-xl);
}

.workflow-athlete-grid {
  margin-bottom: var(--space-2xl);
}

.missing-athlete-card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-xl);
  border: 1px dashed var(--navy-border);
  border-radius: var(--radius-lg);
  background: rgba(19, 29, 48, 0.65);
}

.missing-athlete-card h3 {
  margin-top: var(--space-sm);
  color: var(--white);
}

.missing-athlete-card p {
  margin: var(--space-sm) 0 var(--space-lg);
  color: var(--grey-400);
}

.workflow-back {
  margin-bottom: var(--space-xl);
}

.athlete-profile-page {
  display: grid;
  gap: var(--space-xl);
}

.athlete-profile-hero {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-xl);
  background: var(--navy-card);
  box-shadow: var(--shadow-card);
}

.profile-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  object-fit: cover;
  background: var(--navy-hover);
}

.profile-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-hover), var(--navy-border));
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 7rem);
  letter-spacing: 0.06em;
}

.athlete-profile-hero p {
  margin-top: var(--space-sm);
  color: var(--grey-400);
  font-size: 1.05rem;
}

.availability-notice {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  max-width: 620px;
  margin-top: var(--space-lg);
  padding: 0.85rem 1rem;
  border: 1px solid rgba(243, 156, 18, 0.35);
  border-radius: var(--radius-md);
  background: var(--amber-dim);
  color: var(--off-white);
}

.availability-notice.is-available {
  border-color: rgba(46, 204, 113, 0.35);
  background: var(--green-dim);
}

.availability-notice.is-committed {
  border-color: rgba(52, 152, 219, 0.35);
  background: var(--blue-dim);
}

.availability-notice span {
  color: var(--grey-400);
  font-size: 0.82rem;
}

.profile-primary-actions {
  align-items: center;
}

.profile-section,
.workflow-contact-groups {
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  background: var(--navy-card);
}

.profile-section h2,
.workflow-contact-groups h2 {
  margin-bottom: var(--space-lg);
  color: var(--white);
  font-size: 1.3rem;
}

.profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-sm);
}

.profile-stat {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: var(--space-md);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  background: var(--navy-mid);
}

.profile-stat span {
  color: var(--grey-400);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-stat strong {
  margin-top: 0.3rem;
  color: var(--white);
  overflow-wrap: anywhere;
}

.profile-bio {
  color: var(--grey-100);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.profile-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: var(--space-lg);
}

.profile-video-block h3 {
  color: var(--white);
}

.profile-video-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.profile-video-heading a {
  color: var(--gold);
  font-size: 0.8rem;
  text-decoration: underline;
}

.responsive-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  background: #050811;
}

.responsive-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-click-to-load {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(10, 15, 30, 0.65), rgba(10, 15, 30, 0.88)), radial-gradient(circle, var(--navy-hover), #050811);
}

.video-click-to-load button {
  min-width: 48px;
  min-height: 48px;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
}

.video-dialog-card {
  position: relative;
  width: min(920px, 100%);
  max-height: 92svh;
  overflow-y: auto;
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-xl);
  background: var(--navy-card);
  box-shadow: var(--shadow-hover);
}

.video-dialog-content {
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.video-dialog-content h2 {
  margin: var(--space-sm) 0 var(--space-lg);
  color: var(--white);
}

.workflow-contact-groups {
  margin-top: var(--space-2xl);
}

.workflow-contact-groups > p {
  margin-top: calc(var(--space-lg) * -0.7);
  margin-bottom: var(--space-lg);
  color: var(--grey-400);
}

.workflow-contact-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--navy-border);
}

.workflow-contact-group > div:first-child {
  display: flex;
  flex-direction: column;
}

.workflow-contact-group span {
  color: var(--grey-400);
  font-size: 0.8rem;
}

.compare-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 140;
  border-top: 1px solid rgba(201, 168, 76, 0.4);
  background: rgba(10, 15, 30, 0.97);
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.compare-bar-inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
}

.compare-bar-selection,
.compare-bar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}

.compare-bar-selection > strong {
  color: var(--gold);
  font-size: 0.8rem;
}

.compare-bar-athlete {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem 0.35rem 0.75rem;
  border: 1px solid var(--navy-border);
  border-radius: 999px;
  color: var(--off-white);
  font-size: 0.76rem;
}

.compare-bar-athlete button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--grey-400);
}

.compare-bar-athlete button:hover {
  background: var(--navy-hover);
  color: var(--white);
}

.compare-bar.has-selection ~ .floating-contact {
  bottom: calc(env(safe-area-inset-bottom, 0px) + 6.4rem);
}

.mobile-utility-bar {
  display: none;
}

.compare-table-wrap {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  background: var(--navy-card);
}

.compare-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  min-width: 190px;
  padding: var(--space-md);
  border-right: 1px solid var(--navy-border);
  border-bottom: 1px solid var(--navy-border);
  color: var(--grey-100);
  text-align: left;
  vertical-align: top;
}

.compare-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--navy-card);
}

.compare-table th:first-child {
  min-width: 170px;
  color: var(--gold-light);
}

.compare-athlete-heading {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.compare-athlete-heading img,
.compare-avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.compare-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-hover);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.compare-athlete-heading > div {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.compare-athlete-heading .btn {
  width: 100%;
  min-height: 42px;
  padding-inline: 0.5rem;
  white-space: normal;
}

.sr-live {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .athletes-list-header,
  .athlete-list-row {
    grid-template-columns: 1fr;
  }

  .athlete-list-actions {
    display: flex;
  }

  .athlete-profile-hero {
    grid-template-columns: minmax(180px, 280px) 1fr;
  }

  .compare-bar-inner,
  .workflow-contact-group {
    align-items: stretch;
    flex-direction: column;
  }

  .compare-bar-actions .btn {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .workflow-page {
    padding-top: var(--space-2xl);
  }
}

@media (max-width: 600px) {
  .athlete-profile-hero {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    max-height: 420px;
  }

  .profile-primary-actions,
  .profile-manager-actions,
  .profile-resource-actions,
  .workflow-toolbar,
  .empty-actions,
  .workflow-contact-group > div:last-child {
    flex-direction: column;
  }

  .profile-primary-actions .btn,
  .profile-manager-actions .btn,
  .profile-resource-actions .btn,
  .workflow-toolbar .btn,
  .empty-actions .btn,
  .workflow-contact-group .btn {
    width: 100%;
    white-space: normal;
  }

  .profile-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compare-bar {
    max-height: 44svh;
    overflow-y: auto;
  }

  .compare-bar-athlete {
    max-width: 100%;
  }

  .compare-bar.has-selection ~ .floating-contact {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 9.5rem);
  }

  .video-dialog-card {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
}

/* Mobile roster controls and persistent coach workspace navigation. */
@media (min-width: 769px) {
  .compare-bar:not(.has-selection) {
    display: none;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(4rem + env(safe-area-inset-bottom, 0px));
  }

  .compare-bar {
    max-height: none;
    overflow: visible;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .desktop-compare-bar {
    display: none;
  }

  .mobile-utility-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
    min-height: 4rem;
    padding: 0.5rem max(0.75rem, env(safe-area-inset-right, 0px)) 0.5rem max(0.75rem, env(safe-area-inset-left, 0px));
  }

  .mobile-utility-action {
    display: flex;
    min-width: 0;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-sm);
    background: var(--navy-card);
    color: var(--off-white);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
  }

  .mobile-utility-action strong {
    display: inline-flex;
    min-width: 1.65rem;
    min-height: 1.65rem;
    align-items: center;
    justify-content: center;
    padding: 0 0.38rem;
    border-radius: 999px;
    background: var(--gold);
    color: var(--navy);
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .mobile-utility-action.is-current {
    border-color: var(--gold);
    background: var(--gold-dim);
    color: var(--gold-light);
  }

  .compare-bar ~ .floating-contact {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 5.25rem);
  }
}

@media (max-width: 600px) {
  .athlete-card .card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem;
    padding: var(--space-md);
  }

  .athlete-card .card-actions .btn {
    display: inline-flex;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.55rem;
    font-size: 0.78rem;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
  }

  .athlete-card .card-actions:has(> :nth-child(3):last-child) > :last-child {
    grid-column: 1 / -1;
  }
}
