/* ── Design Tokens ───────────────────────────────────────────────────── */
:root {
  --grad: linear-gradient(135deg, #ba0c8e, #f06722);
  --dark: #0c0b02;
  --dark-2: #191915;
  --white: #fff;
  --gray-50: #f9f9f5;
  --gray-100: #f3f3ec;
  --gray-200: #e8e8df;
  --gray-400: #aaa;
  --gray-500: #888;
  --gray-600: #666;
  --gray-700: #444;
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --radius-lg: 1.25rem;
  --radius-btn: 100px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.16);
  --nav-h: 68px;
  --font: 'Lato', sans-serif;
  --ease: .25s ease;
}

/* ── Reset ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: var(--font); cursor: pointer; }

/* ── Nav ─────────────────────────────────────────────────────────────── */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  background: transparent;
  transition: background var(--ease), box-shadow var(--ease);
}
#site-nav.nav-opaque,
#site-nav.nav-scrolled {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.09);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-logo {
  font-size: 1.3rem;
  font-weight: 900;
  text-decoration: none;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  flex-shrink: 0;
}
#site-nav.nav-opaque .nav-logo,
#site-nav.nav-scrolled .nav-logo { /* gradient stays always */ }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-link {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: .8125rem;
  font-weight: 500;
  position: relative;
  transition: color var(--ease);
  white-space: nowrap;
}
#site-nav.nav-opaque .nav-link,
#site-nav.nav-scrolled .nav-link { color: var(--dark); }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: currentColor;
  transition: width .3s ease;
}
.nav-link:hover::after { width: 100%; }

.nav-btn {
  position: relative;
  overflow: hidden;
  display: inline-block;
  border: 1.5px solid rgba(255,255,255,.7);
  border-radius: var(--radius-btn);
  background: transparent;
  color: var(--white);
  text-decoration: none;
  font-size: .8125rem;
  font-weight: 700;
  padding: .45rem 1.25rem;
  white-space: nowrap;
  transition: border-color var(--ease), color var(--ease);
}
.nav-btn > span { position: relative; z-index: 1; }
.nav-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad);
  transform: translateY(101%);
  transition: transform .35s;
}
.nav-btn:hover::after { transform: translateY(0); }

.nav-btn-solid {
  background: var(--grad);
  border-color: transparent;
  color: var(--white);
}
.nav-btn-solid::after { background: rgba(0,0,0,.15); }

#site-nav.nav-opaque .nav-btn,
#site-nav.nav-scrolled .nav-btn {
  border-color: rgba(12,11,2,.3);
  color: var(--dark);
}
#site-nav.nav-opaque .nav-btn:hover,
#site-nav.nav-scrolled .nav-btn:hover { color: var(--white); }

#site-nav.nav-opaque .nav-btn-solid,
#site-nav.nav-scrolled .nav-btn-solid { color: var(--white); border-color: transparent; }

.nav-user {
  font-size: .8125rem;
  font-weight: 700;
  color: rgba(255,255,255,.85);
}
#site-nav.nav-opaque .nav-user,
#site-nav.nav-scrolled .nav-user { color: var(--dark); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .75rem 2rem;
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity var(--ease), transform var(--ease);
  white-space: nowrap;
}
.btn:hover { opacity: .9; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-grad {
  background: var(--grad);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.btn-grad > span { position: relative; z-index: 1; }

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid rgba(12,11,2,.3);
  position: relative;
  overflow: hidden;
}
.btn-outline > span { position: relative; z-index: 1; }
.btn-outline::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad);
  transform: translateY(101%);
  transition: transform .35s;
}
.btn-outline:hover { color: var(--white); border-color: transparent; }
.btn-outline:hover::after { transform: translateY(0); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.7);
  position: relative;
  overflow: hidden;
}
.btn-outline-white > span { position: relative; z-index: 1; }
.btn-outline-white::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad);
  transform: translateY(101%);
  transition: transform .35s;
}
.btn-outline-white:hover::after { transform: translateY(0); }

.btn-sm { padding: .5rem 1.25rem; font-size: .875rem; }
.btn-xs { padding: .35rem .9rem; font-size: .8125rem; }

/* ── Flash Messages ──────────────────────────────────────────────────── */
.flash-wrap { position: fixed; top: calc(var(--nav-h) + .5rem); right: 1rem; z-index: 1000; display: flex; flex-direction: column; gap: .5rem; max-width: 380px; }
.flash {
  padding: .875rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  box-shadow: var(--shadow-md);
  animation: slideIn .25s ease;
}
@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.flash-success { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.flash-error   { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }
.flash-warning { background: #fff3cd; color: #856404; border-left: 4px solid #ffc107; }
.flash-info    { background: #d1ecf1; color: #0c5460; border-left: 4px solid #17a2b8; }
.flash-close { background: none; border: none; cursor: pointer; font-size: 1.1rem; opacity: .6; line-height: 1; padding: 0; }
.flash-close:hover { opacity: 1; }

/* ── Page body offset ────────────────────────────────────────────────── */
.page-body { padding-top: var(--nav-h); }
.hero-page { padding-top: 0; }

/* ── Hero sections ───────────────────────────────────────────────────── */
.hero {
  background: var(--dark);
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 4rem) 2rem 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(186,12,142,.18) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(240,103,34,.15) 0%, transparent 55%);
  pointer-events: none;
}
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: .45;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(12,11,2,.55) 0%, rgba(12,11,2,.35) 60%, rgba(12,11,2,.7) 100%);
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 820px; }
.hero-eyebrow {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero h1 .grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,.75);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.page-hero {
  background: var(--dark);
  padding: calc(var(--nav-h) + 1.5rem) 2rem 4.5rem;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: .75rem;
}
.page-hero p { color: rgba(255,255,255,.7); font-size: 1.1rem; }

/* ── Container ───────────────────────────────────────────────────────── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 2rem; }
.container-sm { max-width: 680px; margin: 0 auto; padding: 0 2rem; }
.container-md { max-width: 900px; margin: 0 auto; padding: 0 2rem; }

/* ── Sections ────────────────────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-sub {
  color: var(--gray-600);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

/* ── Player Cards ────────────────────────────────────────────────────── */
.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.player-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--ease), transform var(--ease);
}
.player-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.player-card-img {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad);
  overflow: hidden;
  text-decoration: none;
}
.player-card-img img { width: 100%; height: 100%; object-fit: cover; }
.player-card-pos-badge {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: rgba(255,255,255,.9);
  text-transform: uppercase;
}
.player-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex: 1;
}
.player-card-rank {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.player-card-name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
  text-decoration: none;
}
.player-card-name:hover { color: #ba0c8e; }
.player-card-meta {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: .25rem;
}
.badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 100px;
  font-size: .7rem;
  font-weight: 700;
  background: var(--gray-100);
  color: var(--gray-700);
}
.badge-grad {
  background: var(--grad);
  color: var(--white);
}
.player-card-desc {
  font-size: .85rem;
  color: var(--gray-600);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Search / Filter Bar ─────────────────────────────────────────────── */
.filter-bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem 0;
}
.filter-inner {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.search-input, .select-input {
  font-family: var(--font);
  font-size: .9rem;
  padding: .6rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--dark);
  outline: none;
  transition: border-color var(--ease);
}
.search-input:focus, .select-input:focus { border-color: #ba0c8e; }
.search-input { flex: 1; min-width: 200px; }

/* ── Forms ───────────────────────────────────────────────────────────── */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 700;
  margin-bottom: .4rem;
  color: var(--dark);
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  font-family: var(--font);
  font-size: .95rem;
  padding: .7rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--dark);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: #ba0c8e;
  box-shadow: 0 0 0 3px rgba(186,12,142,.1);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-help { font-size: .8rem; color: var(--gray-500); margin-top: .35rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.video-url-row { display: flex; gap: .5rem; align-items: center; margin-bottom: .5rem; }
.video-url-row .form-input { flex: 1; margin-bottom: 0; }

.auth-page {
  min-height: 100vh;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.auth-logo {
  font-size: 1.75rem;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
  text-decoration: none;
  display: block;
  text-align: center;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}
.auth-title {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: .5rem;
}
.auth-sub {
  color: var(--gray-500);
  font-size: .9rem;
  margin-bottom: 2rem;
}
.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: .875rem;
  color: var(--gray-500);
}
.auth-footer a { color: #ba0c8e; font-weight: 700; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

/* ── Draft List ──────────────────────────────────────────────────────── */
.draft-page { background: var(--gray-50); min-height: 100vh; }

.draft-toolbar {
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: .875rem 0;
}
.draft-toolbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.draft-toolbar-left { display: flex; align-items: center; gap: 1rem; }
.draft-toolbar-right { display: flex; align-items: center; gap: .75rem; }

/* ── Share panel ──────────────────────────────────────────────────────── */
.share-wrap { position: relative; }
.share-btn { display: inline-flex; align-items: center; gap: .4rem; }
.share-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
  min-width: 190px;
  z-index: 200;
  padding: .4rem 0;
  animation: shareIn .14s ease;
}
@keyframes shareIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.share-option {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .6rem 1rem;
  cursor: pointer;
  font-size: .875rem;
  font-weight: 600;
  color: var(--dark);
  transition: background .1s;
  user-select: none;
}
.share-option:hover { background: var(--gray-100); }
.share-option svg { flex-shrink: 0; }
.share-divider { height: 1px; background: var(--gray-200); margin: .3rem 0; }

.countdown-block {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .8125rem;
  color: var(--gray-600);
}
.countdown-label { font-weight: 600; }
.countdown-time { font-weight: 700; color: var(--dark); font-variant-numeric: tabular-nums; }
.countdown-locked { color: #dc3545; font-weight: 700; }

.save-indicator {
  font-size: .8125rem;
  color: var(--gray-500);
  font-style: italic;
}

.draft-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 2rem 0;
}
.draft-row {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .875rem 1.25rem;
  cursor: default;
  transition: box-shadow var(--ease), transform var(--ease);
  user-select: none;
}
.draft-row.sortable-chosen {
  background: #f4f4ee;
}
.draft-row.sortable-ghost {
  background: #ebebdf;
  border: 2px dashed rgba(186,12,142,.4);
  box-shadow: none;
  opacity: .65;
  transform: none;
}
.draft-row.sortable-drag {
  background: var(--white);
  box-shadow: 0 16px 48px rgba(0,0,0,.18);
  transform: scale(1.025) rotate(.4deg);
  opacity: 1;
  cursor: grabbing !important;
}
.draft-row-unranked {
  opacity: .5;
  background: var(--gray-50) !important;
}
.draft-row-unranked .rank-num { color: var(--gray-400); }
.draft-divider-row {
  list-style: none;
  text-align: center;
  padding: .75rem 0;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-400);
  letter-spacing: .04em;
  text-transform: uppercase;
  border-top: 1px dashed var(--gray-200);
  border-bottom: 1px dashed var(--gray-200);
  margin: .5rem 0;
}

.drag-handle {
  color: var(--gray-400);
  cursor: grab;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 2px 4px;
}
.drag-handle:active { cursor: grabbing; }
.drag-handle span {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.rank-num {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--gray-400);
  min-width: 2.5rem;
  text-align: center;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.rank-num.top-pick { color: var(--dark); }

.draft-player-info { flex: 1; min-width: 0; }
.draft-player-name {
  font-size: .975rem;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.draft-player-meta {
  font-size: .8rem;
  color: var(--gray-500);
  margin-top: .15rem;
}

.draft-player-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .65rem;
  font-weight: 800;
  color: rgba(255,255,255,.9);
  letter-spacing: .03em;
  text-transform: uppercase;
}
.draft-player-img img { width: 100%; height: 100%; object-fit: cover; }

.expert-rank {
  font-size: .75rem;
  color: var(--gray-400);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.expert-rank strong { color: var(--gray-600); }

/* ── Snapshot History ────────────────────────────────────────────────── */
.history-list { display: flex; flex-direction: column; gap: .75rem; }
.history-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: .875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow);
}
.history-date { font-size: .875rem; font-weight: 700; color: var(--dark); }
.history-label { font-size: .8rem; color: var(--gray-500); }

/* ── Player Detail ───────────────────────────────────────────────────── */
.player-detail-hero {
  background: var(--dark);
  padding: calc(var(--nav-h) + 3rem) 2rem 3rem;
}
.player-detail-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.player-detail-img {
  width: 180px;
  height: 180px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
  font-weight: 900;
  color: rgba(255,255,255,.8);
}
.player-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.player-detail-info { flex: 1; min-width: 0; }
.player-detail-name {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: .75rem;
}
.player-detail-badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.badge-white {
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  padding: .3rem .8rem;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 700;
}
.player-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .75rem;
  margin-top: 1rem;
}
.stat-item { }
.stat-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: rgba(255,255,255,.45); }
.stat-value { font-size: .95rem; font-weight: 700; color: var(--white); margin-top: .15rem; }

.player-content { max-width: 900px; margin: 3rem auto; padding: 0 2rem; }
.player-description {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--gray-700);
  margin-bottom: 3rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.video-embed {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.video-embed iframe { width: 100%; height: 100%; border: none; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer-cta {
  background: var(--dark);
  padding: 5rem 2rem;
  text-align: center;
}
.footer-cta h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 2rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.footer-bar {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-bar a, .footer-bar span {
  color: rgba(255,255,255,.45);
  font-size: .8125rem;
  text-decoration: none;
}
.footer-bar a:hover { color: rgba(255,255,255,.8); }

/* ── Footer Sport Switcher ───────────────────────────────────────────── */
.footer-sport-switcher { position: relative; }
.footer-sport-btn {
  background: none;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  color: rgba(255,255,255,.45);
  font-size: .8125rem;
  padding: .3rem .85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .35rem;
  transition: color .2s, border-color .2s;
}
.footer-sport-btn:hover { color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.4); }
.footer-sport-menu {
  display: none;
  position: absolute;
  bottom: calc(100% + .5rem);
  right: 0;
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  overflow: hidden;
  min-width: 130px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
}
.footer-sport-switcher.open .footer-sport-menu { display: block; }
.footer-sport-item {
  display: block;
  padding: .6rem 1rem;
  color: rgba(255,255,255,.6) !important;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.footer-sport-item:hover { background: rgba(255,255,255,.08); color: #fff !important; }
.footer-sport-item.active { color: #fff !important; background: rgba(186,12,142,.2); }

/* ── Admin Layout ────────────────────────────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: 100vh;
}
.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--dark-2);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
.admin-sidebar-title {
  padding: .75rem 1.5rem;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: .25rem;
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1.5rem;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  transition: color var(--ease), background var(--ease);
}
.admin-nav-link:hover { color: var(--white); background: rgba(255,255,255,.05); }
.admin-nav-link.active { color: var(--white); background: rgba(186,12,142,.25); border-right: 3px solid #ba0c8e; }

.admin-main {
  flex: 1;
  padding: 2.5rem;
  background: var(--gray-50);
  min-width: 0;
}
.admin-page-title {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 1.75rem;
  color: var(--dark);
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.admin-stat {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.admin-stat-num {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.admin-stat-label { font-size: .8125rem; color: var(--gray-500); margin-top: .35rem; font-weight: 600; }

/* ── Tables ──────────────────────────────────────────────────────────── */
.table-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.table th {
  text-align: left;
  padding: .875rem 1.25rem;
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-500);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
.table td {
  padding: .875rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--dark);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--gray-50); }

.tag { display: inline-block; padding: .2rem .65rem; border-radius: 100px; font-size: .75rem; font-weight: 700; }
.tag-green { background: #d4edda; color: #155724; }
.tag-red   { background: #f8d7da; color: #721c24; }
.tag-gray  { background: var(--gray-100); color: var(--gray-600); }
.tag-yellow { background: #fff3cd; color: #856404; }
.tag-blue  { background: #d1ecf1; color: #0c5460; }

/* ── Misc ─────────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray-500);
}
.empty-state svg { margin: 0 auto 1rem; opacity: .4; }
.divider { border: none; border-top: 1px solid var(--gray-200); margin: 2rem 0; }

/* ── Player Profile Modal ────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0,0,0,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transform: translateY(24px) scale(.97);
  transition: transform .25s cubic-bezier(.25,1,.5,1);
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
}
.modal-overlay.open .modal-panel {
  transform: translateY(0) scale(1);
}

.modal-header {
  background: var(--dark);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 1.75rem 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  flex-shrink: 0;
}
.modal-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 900;
  color: rgba(255,255,255,.85);
  text-transform: uppercase;
  letter-spacing: .03em;
  flex-shrink: 0;
  overflow: hidden;
}
.modal-avatar img { width: 100%; height: 100%; object-fit: cover; }
.modal-header-info { flex: 1; min-width: 0; }
.modal-player-name {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: .6rem;
}
.modal-badges { display: flex; gap: .5rem; flex-wrap: wrap; }
.modal-close {
  background: rgba(255,255,255,.12);
  border: none;
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease);
  margin-top: -.25rem;
}
.modal-close:hover { background: rgba(255,255,255,.22); }

.modal-body {
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.modal-stats-grid {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.modal-stat { }
.modal-stat-label { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--gray-400); }
.modal-stat-value { font-size: .9rem; font-weight: 700; color: var(--dark); margin-top: .1rem; }

.modal-description {
  font-size: .95rem;
  line-height: 1.72;
  color: var(--gray-700);
  border-top: 1px solid var(--gray-200);
  padding-top: 1.5rem;
}

.modal-videos-section { border-top: 1px solid var(--gray-200); padding-top: 1.5rem; }
.modal-videos-title { font-size: .8125rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--gray-500); margin-bottom: 1rem; }
.video-tab-btns { display: flex; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.video-tab-btn {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem 1rem;
  border-radius: var(--radius-btn);
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  font-family: var(--font);
  font-size: .8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color var(--ease), color var(--ease), background var(--ease);
}
.video-tab-btn:hover { border-color: #ba0c8e; color: #ba0c8e; }
.video-tab-btn.active { background: var(--grad); border-color: transparent; color: var(--white); }
.video-tab-btn svg { flex-shrink: 0; }
.modal-video-frame {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--dark);
}
.modal-video-frame iframe { width: 100%; height: 100%; border: none; display: block; }

.profile-btn {
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-btn);
  padding: .25rem .75rem;
  font-family: var(--font);
  font-size: .75rem;
  font-weight: 700;
  color: var(--gray-500);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--ease), color var(--ease);
  flex-shrink: 0;
}
.profile-btn:hover { border-color: #ba0c8e; color: #ba0c8e; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { gap: .75rem; }
  .nav-link, .nav-user { font-size: .75rem; }
  .nav-btn { padding: .4rem 1rem; font-size: .75rem; }
  .form-row { grid-template-columns: 1fr; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; position: static; height: auto; flex-direction: row; flex-wrap: wrap; padding: .5rem; }
  .admin-main { padding: 1.5rem; }
  .draft-toolbar-inner { flex-direction: column; align-items: flex-start; }
  .draft-toolbar-right { width: 100%; justify-content: flex-end; }
  .player-detail-hero-inner { flex-direction: column; }
  .player-detail-img { width: 120px; height: 120px; }
  .hero h1 { font-size: 2.25rem; }
}

@media (max-width: 480px) {
  .nav-inner { padding: 0 1rem; }
  .container, .container-sm, .container-md { padding: 0 1rem; }
  .auth-card { padding: 1.75rem; }
  .draft-row { padding: .75rem 1rem; gap: .75rem; }
}

/* ── Portal ────────────────────────────────────────────────────────────── */
.portal-hero {
  padding: 5rem 0 3rem;
  background: var(--dark);
  text-align: center;
}
.portal-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.1;
}
.portal-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.65);
  max-width: 520px;
  margin: 0 auto;
}
.portal-grid-section {
  padding: 3rem 0 4rem;
  background: var(--gray-50);
}
.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.portal-card {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--dark);
  transition: transform .15s, box-shadow .15s;
}
.portal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
}
.portal-card-name {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}
.portal-card-full {
  font-size: .8rem;
  color: var(--gray-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.portal-card-draft-label {
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark);
  margin-top: .4rem;
}
.portal-card-date {
  font-size: .875rem;
  color: var(--gray-500);
}
.portal-card-countdown {
  font-size: .875rem;
  font-weight: 700;
  color: #ba0c8e;
  background: rgba(186,12,142,.08);
  border-radius: 6px;
  padding: .3rem .6rem;
  display: inline-block;
  width: fit-content;
}
.portal-card-cta {
  margin-top: auto;
  padding-top: 1rem;
  font-size: .875rem;
  font-weight: 800;
  color: #ba0c8e;
}

/* Share modal */
.share-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.share-modal-overlay[hidden] { display: none; }
.share-modal-panel {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  max-width: 400px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.share-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--gray-400);
  padding: .25rem .5rem;
  border-radius: 6px;
  line-height: 1;
}
.share-modal-close:hover { background: var(--gray-100); color: var(--gray-700); }
.share-modal-title {
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: .25rem;
}
.share-modal-sub {
  font-size: .875rem;
  color: var(--gray-500);
  margin-bottom: 1.25rem;
}
.share-mode-tabs {
  display: flex;
  gap: 4px;
  background: var(--gray-100);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 1.25rem;
}
.share-mode-btn {
  flex: 1;
  padding: .45rem .5rem;
  border: none;
  background: none;
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--gray-500);
  transition: all .15s;
}
.share-mode-btn.active {
  background: #fff;
  color: var(--gray-900);
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.share-modal-options {
  display: flex;
  flex-direction: column;
  gap: .375rem;
}
.share-modal-option {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .7rem .9rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  cursor: pointer;
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-800);
  transition: background .1s, border-color .1s;
  user-select: none;
}
.share-modal-option:hover { background: var(--gray-50); border-color: var(--gray-300); }
.share-modal-divider {
  height: 1px;
  background: var(--gray-100);
  margin: .25rem 0;
}
