/* ═══════════════════════════════════════════════
   PIRATES 2026 DASHBOARD — STYLESHEET v2
   ═══════════════════════════════════════════════ */

:root {
  --gold:      #FDD329;
  --gold-lt:   #d4914a;
  --gold-dim:  #c9a800;
  --bg:        #0a0a0a;
  --bg2:       #111111;
  --bg3:       #161616;
  --bg4:       #1c1c1c;
  /* Section alternating backgrounds */
  --sec-a:     #0a0a0a;    /* pure black sections */
  --sec-b:     #0d1018;    /* dark navy/charcoal sections */
  --border:    #2a2a2a;
  --border-lt: #1e1e1e;
  --text:      #f0f0f0;
  --text-dim:  #d0d0d0;
  --text-muted:#888888;
  --text-faint:#555555;
  --green:     #4CAF50;
  --red:       #ef5350;
  --nav-h:     56px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}

/* ── NAV ── */
#main-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(253,211,41,0.2);
  box-shadow: 0 2px 24px rgba(0,0,0,0.5);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 1.5rem; height: var(--nav-h);
  display: flex; align-items: center; gap: 1rem;
}
.nav-brand {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Teko', 'Arial Narrow', sans-serif;
  font-size: 20px; font-weight: 700; color: var(--gold);
  letter-spacing: 2px; text-transform: uppercase;
  white-space: nowrap; flex-shrink: 0;
}
.nav-year { font-weight: 400; color: var(--text-muted); font-size: 12px; margin-left: 2px; }
.skull-sm { font-size: 16px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-wrap: nowrap; }
.nav-link {
  color: var(--text-muted); text-decoration: none;
  font-size: 12px; font-weight: 500;
  padding: 5px 9px; border-radius: 6px;
  transition: color 0.2s, background 0.2s; white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--gold); background: rgba(253,211,41,0.08); }
.nav-link-cta { background: var(--gold); color: #000 !important; font-weight: 600; margin-left: 6px; }
.nav-link-cta:hover { background: var(--gold-lt) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-muted); border-radius: 2px; transition: 0.25s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; flex-direction: column; padding: 0.75rem 1.5rem 1rem; border-top: 0.5px solid var(--border); gap: 2px; }
.mobile-menu.open { display: flex; }
.mobile-link { color: var(--text-muted); text-decoration: none; font-size: 14px; padding: 8px 10px; border-radius: 6px; transition: 0.2s; }
.mobile-link:hover { color: var(--gold); background: rgba(253,211,41,0.08); }

/* ── HERO ── */
/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 0;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../images/hero-field.jpg?v=4');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,0.55) 0%,
      rgba(0,0,0,0.35) 35%,
      rgba(0,0,0,0.72) 70%,
      rgba(0,0,0,0.97) 100%
    ),
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(253,211,41,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto;
  padding: 2.5rem 1.5rem 2rem;
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
}

/* Identity bar */
.hero-identity {
  display: flex; align-items: center; justify-content: center;
  gap: 16px;
}
.hero-skull { font-size: 28px; filter: drop-shadow(0 0 14px rgba(253,211,41,0.55)); }
.hero-title-block { text-align: center; }
.hero-title {
  font-family: 'Alfa Slab One', 'Georgia', serif;
  font-size: clamp(2.4rem, 6.5vw, 4.2rem);
  font-weight: 400; /* Alfa Slab One is single-weight */
  color: var(--gold);
  letter-spacing: 6px; text-transform: uppercase;
  text-shadow: 0 0 50px rgba(253,211,41,0.45), 0 2px 16px rgba(0,0,0,0.9),
               2px 2px 0 rgba(0,0,0,0.8);
  line-height: 1;
}
.hero-subtitle {
  font-size: clamp(9px, 1.6vw, 11px);
  color: var(--text-muted); letter-spacing: 2px;
  text-transform: uppercase; margin-top: 5px;
}

/* ── MATCHUP CARD ─────────────────────────────────────────── */
.matchup-card {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 780px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(253,211,41,0.25);
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 48px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.03) inset;
  min-height: 180px;
}

/* LEFT / RIGHT team sides */
.matchup-side {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 1.5rem 1rem;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.matchup-side::before {
  content: '';
  position: absolute; inset: 0;
  opacity: 0.06;
  transition: opacity 0.3s;
}
/* Pirates left = dark navy tint */
.matchup-home::before { background: radial-gradient(ellipse at 30% 50%, #1a3a6e, transparent 70%); opacity: 0.25; }
/* Opponent right = subtle dark red tint */
.matchup-away::before { background: radial-gradient(ellipse at 70% 50%, #3a0a0a, transparent 70%); opacity: 0.2; }

/* Team logo in matchup */
.matchup-logo {
  width: clamp(72px, 12vw, 110px);
  height: clamp(72px, 12vw, 110px);
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.7));
  transition: transform 0.3s;
}
.matchup-side:hover .matchup-logo { transform: scale(1.05); }
.matchup-team-name {
  font-family: 'Teko', 'Arial Narrow', sans-serif;
  font-size: clamp(18px, 3.5vw, 26px);
  font-weight: 700; color: #fff;
  letter-spacing: 3px; text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  text-align: center;
  line-height: 1;
}
.matchup-record {
  font-size: clamp(11px, 1.8vw, 13px);
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  letter-spacing: 1px;
}

/* Center column */
.matchup-center {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 1.25rem 0.5rem;
  gap: 6px;
  flex-shrink: 0;
  width: clamp(130px, 22vw, 200px);
  border-left: 1px solid rgba(253,211,41,0.12);
  border-right: 1px solid rgba(253,211,41,0.12);
  text-align: center;
}

/* AT / VS diamond */
.matchup-vs-diamond {
  width: 36px; height: 36px;
  background: rgba(253,211,41,0.12);
  border: 1.5px solid rgba(253,211,41,0.5);
  border-radius: 6px;
  transform: rotate(45deg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 2px;
  flex-shrink: 0;
}
.matchup-vs-diamond span {
  transform: rotate(-45deg);
  font-size: 9px; font-weight: 800;
  color: var(--gold); letter-spacing: 1px;
}

/* Game details */
.matchup-game-info { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.matchup-date {
  font-size: clamp(10px, 1.6vw, 12px);
  font-weight: 600; color: var(--gold);
  letter-spacing: 1px;
}
.matchup-time {
  font-size: clamp(10px, 1.6vw, 12px);
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.5px;
}
.matchup-venue {
  font-size: 10px; color: rgba(255,255,255,0.3);
  letter-spacing: 0.5px;
}

/* Countdown in center */
.matchup-countdown {
  font-size: clamp(18px, 3.5vw, 26px);
  font-weight: 700; color: #fff;
  letter-spacing: 1px;
  line-height: 1;
  margin-top: 4px;
}
.matchup-countdown-sub {
  font-size: 10px; color: rgba(255,255,255,0.4);
  display: none; /* hidden — sub info is covered by the date/time above */
}

/* Weather pill */
.matchup-weather-pill {
  margin-top: 4px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.10);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.7);
}
.weather-sub-text {
  font-size: 9px; color: rgba(255,255,255,0.38);
  letter-spacing: 0.3px;
  text-align: center;
  white-space: nowrap;
}

/* Legacy meta-chip (kept for any remaining references) */
.meta-chip { background: rgba(0,0,0,0.45); border: 0.5px solid rgba(253,211,41,0.4); color: var(--gold); font-size: 11px; letter-spacing: 1px; padding: 5px 14px; border-radius: 100px; backdrop-filter: blur(8px); }
.meta-dot { color: var(--border); }

/* ── HERO WIDGETS (legacy, kept for safety) ── */
.hero-widgets { display: none; }
.widget-card { display: none; }

/* ── MAIN LAYOUT ── */
.main-content { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem 3rem; }

/* ── ALTERNATING SECTION BACKGROUNDS (#2) ── */
/* Wrap main-content in a full-width alternating bg strip */
.page-section {
  padding: 2.5rem 0;
  position: relative;
  /* default: pure black */
  background: transparent;
}
/* Full-width background strips sit on the body/page level */
.page-section.sec-navy {
  /* extend bg edge-to-edge using a pseudo that spans the viewport */
}
.page-section.sec-navy::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%; right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  background: var(--sec-b);
  z-index: -1;
}
/* Gold top-border accent (#3) fading gradient on every section */
.page-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%; right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(253,211,41,0.08) 10%,
    rgba(253,211,41,0.5) 35%,
    rgba(253,211,41,0.5) 65%,
    rgba(253,211,41,0.08) 90%,
    transparent 100%
  );
  z-index: 1;
}

.section-header { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 1.25rem; }
.section-title { font-size: 11px; font-weight: 600; color: var(--gold); letter-spacing: 2px; text-transform: uppercase; }
.section-sub { font-size: 11px; color: var(--text-faint); }
.section-divider { border: none; border-top: 1px solid var(--border-lt); }

/* ── METRICS ── */
.metrics { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; }
.metric {
  background: var(--bg3);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  /* Gold top-bar accent (#3) on every card */
  border-top: 2px solid rgba(253,211,41,0.25);
}
.metric:hover { transform: translateY(-2px); border-color: rgba(253,211,41,0.3); border-top-color: rgba(253,211,41,0.6); }
.metric.highlight { border-color: var(--gold); border-top-color: var(--gold); }
.metric-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
/* ── GLOWING STAT NUMBERS (#6) ── */
.metric-value {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.1;
}
.metric.highlight .metric-value {
  color: var(--gold);
  text-shadow: 0 0 18px rgba(253,211,41,0.6), 0 0 40px rgba(253,211,41,0.25);
}
/* All stat numbers glow softly gold on hover */
.metric:hover .metric-value {
  color: var(--gold);
  text-shadow: 0 0 14px rgba(253,211,41,0.5), 0 0 32px rgba(253,211,41,0.2);
  transition: color 0.2s, text-shadow 0.2s;
}
.metric-sub { font-size: 11px; color: var(--text-faint); margin-top: 3px; }

/* ── SEASON PROGRESS ── */
.season-timeline { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 1rem; }
.game-pip {
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; cursor: default;
  position: relative;
}
.game-pip.win  { background: #1a3a1a; color: var(--green); border: 1px solid var(--green); }
.game-pip.loss { background: #2a1010; color: var(--red);   border: 1px solid var(--red); }
.game-pip.tie  { background: #1a1a2a; color: #888;         border: 1px solid #555; }
.game-pip.upcoming { background: var(--bg3); color: var(--text-faint); border: 1px dashed var(--border); }
.game-pip .pip-tip {
  display: none; position: absolute; bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%); background: var(--bg4); border: 0.5px solid var(--border);
  border-radius: 6px; padding: 4px 8px; white-space: nowrap; font-size: 10px;
  color: var(--text-dim); pointer-events: none; z-index: 10;
}
.game-pip:hover .pip-tip { display: block; }
.progress-bar-wrap { margin-top: 0.5rem; }
.progress-bar-track { background: var(--bg3); border-radius: 100px; height: 8px; overflow: hidden; border: 0.5px solid var(--border); }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--gold-dim), var(--gold)); border-radius: 100px; transition: width 0.6s ease; }
.progress-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-faint); margin-top: 4px; }

/* ── TABLE WRAP ── */
.table-wrap { width: 100%; overflow-x: auto; border-radius: 10px; border: 0.5px solid var(--border); }

/* ── STANDINGS TABLE ── */
.standings-table { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; min-width: 560px; }
.standings-table th { background: var(--bg3); color: var(--gold); font-weight: 600; font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; padding: 9px 6px; text-align: center; border-bottom: 1px solid var(--gold); white-space: nowrap; }
.standings-table th.left { text-align: left; padding-left: 12px; }
.standings-table th.center { text-align: center; }
.standings-table td { padding: 9px 6px; text-align: center; border-bottom: 0.5px solid var(--border-lt); color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.standings-table td.left { text-align: left; padding-left: 12px; }
.standings-table td.center { text-align: center; }
.standings-table tr.pirates-row { background: #1a1400; }
.standings-table tr.pirates-row td { color: var(--text); }
.standings-table tr.pirates-row td.left { color: var(--gold); font-weight: 600; }
.standings-table tr.clickable { cursor: pointer; transition: background 0.15s; }
.standings-table tr.clickable:hover td { background: var(--bg4); }
.standings-table tr.pirates-row.clickable:hover td { background: #221c00; }
.standings-table tr.active-team td { background: #1a1a0d !important; }
.standings-table tr.active-team.pirates-row td { background: #221f00 !important; }
.standings-table tr:last-child td { border-bottom: none; }

/* team name + logo cell */
.team-name-cell { display: flex; align-items: center; gap: 7px; overflow: hidden; }
.team-logo { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; border-radius: 2px; }
.team-logo-sm { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
.team-name-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-mgr { color: #444; font-size: 10px; margin-left: 2px; flex-shrink: 0; }

.rank-badge { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; font-size: 10px; font-weight: 600; flex-shrink: 0; }
.rank-1 { background: var(--gold); color: #000; }
.rank-2 { background: #2a2a2a; color: var(--gold); border: 1px solid var(--gold); }
.rank-3 { background: #1a1a1a; color: #888; border: 1px solid #444; }
.rank-other { background: #111; color: #555; border: 1px solid #222; }
.streak-w { color: var(--green); font-weight: 600; }
.streak-l { color: var(--red); font-weight: 600; }
.diff-pos { color: var(--green); }
.diff-neg { color: var(--red); }

/* ── TEAM PANEL ── */
.team-panel { background: var(--bg2); border: 1px solid #333; border-radius: 10px; padding: 1.25rem; margin-top: 1rem; animation: slideDown 0.15s ease; }
@keyframes slideDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
.team-panel-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1rem; gap: 1rem; }
.team-panel-name { font-size: 17px; font-weight: 600; color: var(--gold); display: flex; align-items: center; gap: 8px; }
.team-panel-meta { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.close-btn { background: transparent; border: 0.5px solid #333; color: #666; border-radius: 6px; padding: 5px 14px; font-size: 11px; font-family: 'Inter',sans-serif; cursor: pointer; flex-shrink: 0; transition: 0.2s; }
.close-btn:hover { border-color: var(--gold); color: var(--gold); }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.panel-col-title { font-size: 10px; color: var(--gold); letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 0.65rem; font-weight: 600; }

/* ── GAME CARDS ── */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 10px; }
.game-card { background: var(--bg3); border: 0.5px solid var(--border); border-top: 2px solid rgba(253,211,41,0.22); border-radius: 10px; padding: 0.85rem 1rem; transition: border-color 0.2s; }
.game-card:hover { border-color: rgba(253,211,41,0.3); }
.game-date { font-size: 10px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.game-matchup { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.game-team { font-size: 12px; color: var(--text-dim); }
.game-score { font-size: 17px; font-weight: 600; display: flex; gap: 5px; align-items: center; flex-shrink: 0; }
.score-win { color: var(--gold); }
.score-sep { color: #444; font-size: 14px; }
.game-actions { display: flex; gap: 6px; margin-top: 8px; justify-content: flex-end; }
.game-action-btn { background: transparent; border: 0.5px solid var(--border); color: var(--text-faint); border-radius: 5px; padding: 3px 9px; font-size: 11px; font-family: 'Inter',sans-serif; cursor: pointer; transition: 0.2s; }
.game-action-btn:hover { border-color: var(--gold); color: var(--gold); }
.game-action-btn.del:hover { border-color: var(--red); color: var(--red); }
.result-badge { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 4px; }
.w-badge { background: #1a3a1a; color: var(--green); border: 0.5px solid var(--green); }
.l-badge { background: #2a1010; color: var(--red);   border: 0.5px solid var(--red); }
.t-badge { background: #1a1a2a; color: #888;         border: 0.5px solid #555; }

/* ── UPCOMING ── */
.upcoming-card { background: var(--bg3); border: 0.5px solid var(--border); border-top: 2px solid rgba(253,211,41,0.22); border-radius: 10px; padding: 0.85rem 1rem; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; transition: border-color 0.2s; }
.upcoming-card:last-child { margin-bottom: 0; }
.upcoming-card.next { border-color: var(--gold); background: #0f0e00; }
.upcoming-card:hover { border-color: rgba(253,211,41,0.3); }
.upcoming-card.next:hover { border-color: var(--gold); }
.upcoming-date { font-size: 11px; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
.upcoming-time { font-size: 12px; color: var(--text-muted); text-align: right; flex-shrink: 0; margin-left: 1rem; }
.next-label { font-size: 10px; color: var(--gold); background: #1a1400; border: 0.5px solid var(--gold); padding: 2px 8px; border-radius: 4px; margin-bottom: 4px; display: inline-block; }
.upcoming-logo { width: 20px; height: 20px; object-fit: contain; vertical-align: middle; margin-right: 4px; }

/* ── CHART ── */
.chart-card { background: var(--bg3); border: 0.5px solid var(--border); border-top: 2px solid rgba(253,211,41,0.22); border-radius: 12px; padding: 1.25rem; }

/* ── LINEUP ── */
.lineup-layout { display: grid; grid-template-columns: 1fr 290px; gap: 1.75rem; align-items: start; }
.lineup-controls { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; align-items: center; }
.ctrl-btn { background: var(--bg3); border: 0.5px solid var(--border); color: var(--text-muted); border-radius: 7px; padding: 6px 14px; font-size: 12px; font-family: 'Inter',sans-serif; cursor: pointer; transition: 0.2s; }
.ctrl-btn:hover { border-color: var(--gold); color: var(--gold); }
.ctrl-btn.active { background: #1a1400; border-color: var(--gold); color: var(--gold); }
.edit-hint { font-size: 11px; color: var(--text-faint); margin-left: 2px; }
.lineup-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 300px; }
.lineup-table th { background: var(--bg3); color: var(--gold); font-weight: 600; font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; padding: 9px 12px; border-bottom: 1px solid var(--gold); }
.lineup-table th.left   { text-align: left; }
.lineup-table th.center { text-align: center; }
.lineup-table td { padding: 9px 12px; border-bottom: 0.5px solid var(--border-lt); color: var(--text-dim); vertical-align: middle; }
.lineup-table td.center { text-align: center; }
.lineup-table tr:hover td { background: var(--bg4); }
.lineup-table tr:last-child td { border-bottom: none; }
.order-num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #1a1400; border: 1px solid var(--gold); color: var(--gold); font-size: 11px; font-weight: 600; margin-right: 10px; flex-shrink: 0; }
.pos-select { background: #1a1400; border: 0.5px solid var(--gold); color: var(--gold); font-size: 11px; padding: 4px 8px; border-radius: 5px; cursor: pointer; font-family: 'Inter',sans-serif; }
.pos-select:focus { outline: none; }
.pos-select option { background: var(--bg); color: var(--text); }
.drag-handle { color: #444; cursor: grab; font-size: 15px; user-select: none; display: block; text-align: center; }
.drag-handle:active { cursor: grabbing; }
.lineup-table tr.dragging td { opacity: 0.35; }
.lineup-table tr.drag-over td { border-top: 2px solid var(--gold); }
/* mobile move buttons */
.move-btn { background: transparent; border: 0.5px solid var(--border); color: var(--text-muted); border-radius: 4px; width: 26px; height: 26px; cursor: pointer; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; transition: 0.15s; }
.move-btn:hover { border-color: var(--gold); color: var(--gold); }
.move-btn:disabled { opacity: 0.2; cursor: default; }

/* ── FIELD DIAGRAM ── */
.field-label { font-size: 10px; color: var(--gold); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; font-weight: 600; }
#field-svg { width: 100%; background: #0d1a0d; border-radius: 10px; border: 0.5px solid #2a5a2a; }
.field-hint { font-size: 11px; color: var(--text-faint); margin-top: 6px; }
.staff-card { background: var(--bg3); border: 0.5px solid var(--border); border-radius: 10px; padding: 0.85rem 1rem; margin-top: 12px; }
.staff-title { font-size: 10px; color: var(--gold); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; font-weight: 600; }
.staff-list { display: flex; flex-direction: column; }
.staff-row { display: flex; justify-content: space-between; align-items: baseline; padding: 5px 0; border-top: 0.5px solid #1e1e1e; gap: 8px; }
.staff-row.first { border-top: none; }
.staff-role { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; flex-shrink: 0; }
.staff-name { font-size: 13px; color: var(--text-dim); text-align: right; }

/* ── BRACKET ── */
.bracket-card {
  /* A: chalk-on-slate — deep charcoal card, no yellow border */
  background: #111416;
  border: 1px solid #1e2124;
  border-radius: 16px;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 4px 32px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.03);
}
.bracket-wrap { width: 100%; overflow-x: auto; padding-bottom: 8px; }
.bracket-svg-wrap { position: relative; min-width: 580px; }
.bracket-note {
  font-size: 11px; color: #3d3d3d;
  text-align: center; margin-top: 1.25rem;
  letter-spacing: 0.3px;
}

/* ── Slot base: chalk-on-slate ── */
/* C: unplayed = dark charcoal with dashed chalk-white border */
.bracket-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 7px;
  border: 1.5px dashed rgba(253,211,41,0.28);
  background: #181a1e;
  color: #6a6e78;               /* chalk gray — not yet decided */
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.12s, box-shadow 0.18s;
  position: relative;
  letter-spacing: 0.2px;
}
/* gap between the two slots in a matchup */
.bracket-slot + .bracket-slot { margin-top: 3px; }

/* TBD = very dim, italic */
.bracket-slot.tbd {
  color: #2c2e32;
  background: #131517;
  border-color: rgba(253,211,41,0.18);
  border-style: dashed;
  font-style: italic;
}

/* Clickable hover = chalk brightening */
.bracket-slot.clickable-slot {
  cursor: pointer;
  user-select: none;
}
.bracket-slot.clickable-slot:hover:not(.tbd) {
  background: #1e2228;
  border-color: #4a5060;
  border-style: solid;
  color: #c8cdd6;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

/* C: Winner = deep navy + gold accent */
.bracket-slot.winner {
  background: #0a1628;
  border: 1.5px solid var(--gold);
  border-style: solid;
  color: var(--gold);
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(253,211,41,0.08) inset, 0 3px 16px rgba(0,0,0,0.5), 0 0 14px rgba(253,211,41,0.08);
}
.bracket-slot.winner:hover {
  background: #0c1c30;
  border-color: var(--gold-lt);
  color: var(--gold-lt);
  transform: translateY(-1px);
}

/* Pirates row = subtle gold tint before winning */
.bracket-slot.pirates-slot {
  color: #FDD329;
  border-color: #8a6e00;
  border-style: solid;
  background: #161300;
}
.bracket-slot.pirates-slot.winner {
  background: #0a1628;
  border-color: var(--gold);
  color: var(--gold);
}

/* Seed number */
.seed-num {
  font-size: 9.5px;
  color: #383c44;
  flex-shrink: 0;
  min-width: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.winner .seed-num { color: #6a5e00; }

.bracket-slot-name {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}
.bracket-slot-name span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Winner checkmark */
.winner-indicator {
  font-size: 11px;
  color: var(--gold);
  flex-shrink: 0;
  margin-left: 4px;
  filter: drop-shadow(0 0 4px rgba(253,211,41,0.5));
}

/* C: Champion box = gold fill with black text */
.champion-box {
  background: linear-gradient(135deg, #fdc829 0%, #FDD329 45%, #c9a800 100%);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  text-align: center;
  width: 100%;
  margin-top: 14px;
  box-shadow: 0 6px 28px rgba(253,211,41,0.35), 0 1px 0 rgba(255,255,255,0.15) inset;
}
.champion-label {
  font-size: 10px;
  color: rgba(0,0,0,0.55);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 5px;
  font-weight: 700;
}
.champion-team {
  font-size: 16px;
  font-weight: 700;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Round column header */
.bracket-round-label {
  font-size: 10px;
  color: #3d4048;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #1a1c20;
  margin-bottom: 0;
  font-weight: 600;
}

/* ══════════════════════════════════════════════════
   PLAYOFF BRACKET — pure HTML/CSS two-sided layout
   ══════════════════════════════════════════════════ */

/* Outer scroll wrapper — lets it scroll on tiny phones */
.bs-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

/* The bracket itself: 7 columns
   QF-left | conn-left | SF-left | conn-sf-left | Final | conn-sf-right | SF-right | conn-right | QF-right */
.bs-bracket {
  display: grid;
  grid-template-columns:
    minmax(130px,1fr)   /* QF left  */
    28px                /* conn left */
    minmax(120px,1fr)   /* SF left  */
    28px                /* conn sf-l */
    minmax(130px,1fr)   /* Final    */
    28px                /* conn sf-r */
    minmax(120px,1fr)   /* SF right */
    28px                /* conn right */
    minmax(130px,1fr);  /* QF right */
  align-items: center;
  gap: 0;
  min-width: 680px;
  width: 100%;
}

/* ── Round label row ── */
.bs-round-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(253,211,41,0.25);
  margin-bottom: 10px;
  opacity: 0.75;
}

/* ── Column containers ── */
.bs-col {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* QF column has 2 matchups with a gap between */
.bs-matchups-left,
.bs-matchups-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* SF columns: vertically centered single matchup */
.bs-matchups-sf-left,
.bs-matchups-sf-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── Matchup block ── */
.bs-matchup {
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
}

/* ── Slot ── */
.bs-slot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 7px;
  border: 1.5px dashed rgba(253,211,41,0.30);
  background: #181a1e;
  color: #6a6e78;
  font-size: 11px;
  font-weight: 500;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.1s;
  min-height: 32px;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.bs-slot + .bs-slot { margin-top: 0; }

/* VS divider inside matchup */
.bs-vs {
  height: 3px;
  border-top: 1px solid rgba(253,211,41,0.15);
  margin: 0 8px;
}

/* TBD slot */
.bs-tbd {
  background: #131517;
  border-color: rgba(253,211,41,0.18);
  color: #2c2e32;
  font-style: italic;
}

/* Clickable */
.bs-clickable {
  cursor: pointer;
  user-select: none;
}
.bs-clickable:hover:not(.bs-tbd):not(.bs-winner) {
  background: #1e2228;
  border-color: rgba(253,211,41,0.55);
  border-style: solid;
  color: #c8cdd6;
  transform: translateY(-1px);
}

/* Winner */
.bs-winner {
  background: #0a1628;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-weight: 600;
  box-shadow: 0 0 12px rgba(253,211,41,0.12), 0 2px 8px rgba(0,0,0,0.5);
}
.bs-winner:hover {
  background: #0c1e32;
  border-color: var(--gold-lt);
  color: var(--gold-lt);
  transform: translateY(-1px);
}

/* Pirates slot (pre-win) */
.bs-pirates {
  color: #FDD329;
  border-color: rgba(253,211,41,0.35);
  border-style: solid;
  background: #161300;
}

/* Seed badge */
.bs-seed {
  font-size: 9px;
  font-weight: 700;
  color: #3a3e48;
  min-width: 12px;
  flex-shrink: 0;
}
.bs-winner .bs-seed { color: #6a5e00; }

/* Name section */
.bs-name-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
  overflow: hidden;
}
.bs-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Check mark on winner */
.bs-check {
  font-size: 10px;
  color: var(--gold);
  flex-shrink: 0;
  filter: drop-shadow(0 0 3px rgba(253,211,41,0.5));
}

/* Final matchup — slightly larger */
.bs-final-matchup .bs-slot {
  padding: 8px 10px;
  font-size: 12px;
  min-height: 36px;
}

/* Champion box */
.bs-champion {
  margin-top: 12px;
  background: linear-gradient(135deg, #fdc829, #FDD329 50%, #c9a800);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 6px 24px rgba(253,211,41,0.35);
}
.bs-champ-empty {
  background: #1a1600;
  border: 1.5px dashed rgba(253,211,41,0.25);
  box-shadow: none;
}
.bs-champ-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(0,0,0,0.6);
  margin-bottom: 4px;
}
.bs-champ-empty .bs-champ-label { color: #c9a800; }
.bs-champ-team {
  font-size: 14px;
  font-weight: 700;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.bs-champ-tbd {
  font-size: 13px;
  font-weight: 600;
  color: rgba(253,211,41,0.3);
  font-style: italic;
}

/* ── Connector columns ── */
/* Each connector column is a flex column that draws
   CSS border-based right-angle elbows */
.bs-connectors {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  height: 100%;
  position: relative;
}

/* QF → SF connectors: two elbows (top matchup goes up, bottom goes down,
   both meet at a shared vertical mid-bar) */
.bs-conn-left,
.bs-conn-right {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  padding: 36px 0; /* roughly align with QF matchup centers */
}
.bs-conn-left .bs-conn-top,
.bs-conn-left .bs-conn-bottom,
.bs-conn-right .bs-conn-top,
.bs-conn-right .bs-conn-bottom {
  flex: 1;
  border-color: rgba(253,211,41,0.45);
  border-style: solid;
  border-width: 0;
}
/* Left side: right-angled lines going right */
.bs-conn-left .bs-conn-top {
  border-top-width: 2px;
  border-right-width: 2px;
  border-top-right-radius: 4px;
}
.bs-conn-left .bs-conn-bottom {
  border-bottom-width: 2px;
  border-right-width: 2px;
  border-bottom-right-radius: 4px;
}
/* Right side: right-angled lines going left */
.bs-conn-right .bs-conn-top {
  border-top-width: 2px;
  border-left-width: 2px;
  border-top-left-radius: 4px;
}
.bs-conn-right .bs-conn-bottom {
  border-bottom-width: 2px;
  border-left-width: 2px;
  border-bottom-left-radius: 4px;
}

/* SF → Final connectors: simple horizontal lines */
.bs-conn-sf-left .bs-conn-sf,
.bs-conn-sf-right .bs-conn-sf {
  height: 2px;
  background: rgba(253,211,41,0.45);
  width: 100%;
  align-self: center;
  margin-top: auto;
  margin-bottom: auto;
}
.bs-conn-sf-left,
.bs-conn-sf-right {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* Note text */
.bracket-note {
  font-size: 10px;
  color: #3a3a3a;
  text-align: center;
  margin-top: 1rem;
  letter-spacing: 0.3px;
}

/* ── Mobile: stack to vertical scroll ── */
@media (max-width: 720px) {
  .bs-bracket {
    min-width: 620px; /* force horizontal scroll on phones */
  }
  .bs-slot {
    font-size: 10px;
    padding: 5px 6px;
    min-height: 28px;
  }
  .bs-final-matchup .bs-slot {
    font-size: 11px;
    padding: 6px 8px;
    min-height: 32px;
  }
  .bs-round-label { font-size: 8px; letter-spacing: 1.5px; }
}

/* ── SCHEDULE TABS ── */
.sched-tabs {
  display: flex; gap: 6px; margin-bottom: 1.25rem;
}
.sched-tab {
  background: var(--bg3); border: 0.5px solid var(--border);
  color: var(--text-muted); border-radius: 8px;
  padding: 7px 20px; font-size: 13px; font-weight: 500;
  font-family: 'Inter', sans-serif; cursor: pointer; transition: 0.2s;
}
.sched-tab:hover { border-color: var(--gold); color: var(--gold); }
.sched-tab.active {
  background: #1a1400; border-color: var(--gold);
  color: var(--gold); font-weight: 600;
}
.sched-panel { animation: fadeIn 0.15s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Playoff placeholder cards in schedule */
.playoff-card {
  background: #0d0d14 !important;
  border-color: rgba(253,211,41,0.3) !important;
  border-style: dashed !important;
}
.playoff-round-label {
  font-size: 11px; font-weight: 700; color: var(--gold);
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 4px;
}

/* ── TEAM PHOTO BANNER ── */
.team-photo-banner {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid rgba(253,211,41,0.25);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.team-photo-img {
  width: 100%;
  display: block;
  max-height: 380px;
  object-fit: cover;
  object-position: center 20%;
}
.team-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.0)  40%,
    rgba(0,0,0,0.55) 80%,
    rgba(0,0,0,0.82) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 1.25rem 1.5rem;
}
.team-photo-caption {
  display: flex;
  align-items: center;
  gap: 12px;
}
.team-photo-skull {
  font-size: 18px;
  filter: drop-shadow(0 0 8px rgba(253,211,41,0.7));
}
.team-photo-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}

/* ── ROSTER ── */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.roster-card {
  background: var(--bg3); border: 0.5px solid var(--border);
  border-radius: 12px; overflow: hidden; cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  position: relative;
}
.roster-card:hover {
  border-color: rgba(253,211,41,0.5);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.roster-photo-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0d0d0d;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
}
.roster-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  flex-shrink: 0;
}
.roster-photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 150px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(135deg, #0d0d0d, #1a1400);
}
.roster-skull { font-size: 52px; opacity: 0.18; }
.roster-info { padding: 0.85rem 1rem 0.6rem; }
.roster-name { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.roster-details { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.roster-num  { font-size: 11px; color: var(--gold); font-weight: 600; }
.roster-pos  { font-size: 11px; background: #1a1400; border: 0.5px solid var(--gold); color: var(--gold); padding: 1px 7px; border-radius: 4px; }
.roster-order{ font-size: 11px; color: var(--text-faint); }
.roster-bio  { font-size: 11px; color: var(--text-muted); margin-top: 6px; line-height: 1.4; }
.roster-edit-hint {
  font-size: 10px; color: var(--text-faint); text-align: center;
  padding: 5px; border-top: 0.5px solid var(--border-lt);
  letter-spacing: 0.5px; text-transform: uppercase;
  opacity: 0; transition: opacity 0.2s;
}
.roster-card:hover .roster-edit-hint { opacity: 1; }

/* ── PLAYER PROFILE MODAL ── */
.pm-photo-wrap {
  position: relative; width: 100%; aspect-ratio: 4/3; overflow: hidden;
  background: #0a0a0a; border-radius: 10px; margin-bottom: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.pm-photo {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
}
.pm-photo-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; width: 100%; height: 100%;
  background: linear-gradient(135deg, #0d0d0d, #1a1400);
  color: var(--text-faint);
}
.pm-photo-placeholder span:first-child { font-size: 64px; opacity: 0.12; }
.pm-placeholder-text { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.pm-upload-btn {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,0.75); border: 0.5px solid rgba(253,211,41,0.5);
  color: var(--gold); font-size: 11px; padding: 6px 14px; border-radius: 20px;
  cursor: pointer; font-family: 'Inter', sans-serif; backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s;
}
.pm-upload-btn:hover { background: rgba(253,211,41,0.15); border-color: var(--gold); }
.pm-fields { display: flex; flex-direction: column; gap: 0; margin-bottom: 1rem; }
.pm-field-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 7px 0; border-top: 0.5px solid var(--border-lt);
}
.pm-field-row:first-child { border-top: none; }
.pm-field-row label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; min-width: 100px; flex-shrink: 0; }
.pm-field-row span  { font-size: 13px; color: var(--text); font-weight: 500; }
.pm-bio-row { align-items: flex-start; }
.pm-bio-input {
  background: var(--bg); border: 0.5px solid #333; color: var(--text);
  border-radius: 7px; padding: 8px 10px; font-size: 13px;
  font-family: 'Inter', sans-serif; width: 100%; resize: vertical;
  transition: border-color 0.2s;
}
.pm-bio-input:focus { outline: none; border-color: var(--gold); }

/* ── ADD GAME ── */
.add-game-card { background: var(--bg3); border: 0.5px solid var(--border); border-radius: 12px; padding: 1.25rem 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr auto; gap: 10px; align-items: end; }
.form-group { display: flex; flex-direction: column; }
.form-group label { font-size: 11px; color: var(--text-muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input, .form-group select { background: var(--bg); border: 0.5px solid #333; color: var(--text); border-radius: 7px; padding: 8px 10px; font-size: 13px; font-family: 'Inter',sans-serif; width: 100%; transition: border-color 0.2s; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--gold); }
.form-group select option { background: var(--bg); }
.score-inputs { display: flex; align-items: center; gap: 6px; }
.score-inputs input { width: 64px; text-align: center; }
.score-dash { color: var(--text-faint); padding: 0 2px; }
.add-btn { background: var(--gold); color: #000; border: none; border-radius: 7px; padding: 8px 20px; font-size: 13px; font-weight: 600; font-family: 'Inter',sans-serif; cursor: pointer; white-space: nowrap; transition: background 0.2s; width: 100%; }
.add-btn:hover { background: var(--gold-lt); }
.add-msg { font-size: 12px; margin-top: 10px; min-height: 18px; }

/* ── FOOTER ── */
.site-footer { border-top: 1px solid var(--border-lt); padding: 1.5rem; margin-top: 2rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 12px; color: var(--text-faint); }

/* ── BASEBALL CARD MODAL ── */
.card-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(6px);
  z-index: 500; align-items: center; justify-content: center;
  padding: 1rem;
}
.card-overlay.open { display: flex; }

.card-scene {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  animation: cardDrop 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes cardDrop {
  from { opacity: 0; transform: translateY(-40px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Controls row above card */
.card-controls {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 300px;
}
.card-flip-hint {
  font-size: 11px; color: rgba(255,255,255,0.4);
  letter-spacing: 0.5px; user-select: none;
}
.card-close-btn {
  background: rgba(255,255,255,0.08); border: 0.5px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5); border-radius: 50%; width: 28px; height: 28px;
  font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: 0.2s; font-family: 'Inter', sans-serif;
}
.card-close-btn:hover { background: rgba(255,255,255,0.18); color: #fff; }

/* 3-D flip mechanics */
.bc-card {
  width: 280px;
  height: 420px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1);
  cursor: pointer;
  border-radius: 16px;
  /* subtle drop shadow that persists through the flip */
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.7));
}
.bc-card.flipped { transform: rotateY(180deg); }

/* Both faces share these base rules */
.bc-face {
  position: absolute; inset: 0;
  border-radius: 16px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

/* ── FRONT ── */
.bc-front {
  background: linear-gradient(160deg, #0a0e1a 0%, #111822 40%, #0d1208 100%);
  border: 2px solid rgba(253,211,41,0.6);
  display: flex; flex-direction: column;
}

/* top header band */
.bc-header {
  background: linear-gradient(90deg, #FDD329, #c9a800);
  padding: 5px 10px;
  display: flex; justify-content: space-between; align-items: center;
  flex-shrink: 0;
}
.bc-league {
  font-size: 7px; font-weight: 800; color: #000;
  letter-spacing: 1.5px; text-transform: uppercase;
}
.bc-year {
  font-size: 9px; font-weight: 800; color: #000; letter-spacing: 1px;
}

/* photo area */
.bc-photo-wrap {
  flex: 1; overflow: hidden; position: relative;
  background: #060c06;
  margin: 8px 8px 0;
  border-radius: 8px 8px 0 0;
  border: 1.5px solid rgba(253,211,41,0.25);
}
.bc-photo {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  display: block;
}
.bc-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 80px; opacity: 0.12;
  background: linear-gradient(135deg, #0a0e1a, #0d1a00);
}

/* name band */
.bc-name-band {
  background: linear-gradient(90deg, #0a0e1a, #111822);
  border-top: 1.5px solid rgba(253,211,41,0.4);
  border-left: 1.5px solid rgba(253,211,41,0.2);
  border-right: 1.5px solid rgba(253,211,41,0.2);
  margin: 0 8px;
  padding: 6px 10px;
  display: flex; align-items: center; gap: 8px;
}
.bc-num {
  font-size: 18px; font-weight: 800; color: var(--gold);
  line-height: 1; flex-shrink: 0; font-variant-numeric: tabular-nums;
}
.bc-name {
  font-size: 13px; font-weight: 700; color: #fff;
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.bc-pos-badge {
  background: var(--gold); color: #000;
  font-size: 9px; font-weight: 800; padding: 2px 7px;
  border-radius: 4px; letter-spacing: 1px; flex-shrink: 0;
}

/* footer */
.bc-footer-front {
  background: linear-gradient(90deg, #060c06, #0d1208);
  border: 1.5px solid rgba(253,211,41,0.2);
  border-top: none;
  margin: 0 8px 8px;
  border-radius: 0 0 8px 8px;
  padding: 5px 10px;
  display: flex; align-items: center; gap: 8px;
}
.bc-footer-logo { width: 20px; height: 20px; object-fit: contain; }
.bc-team-front {
  font-size: 11px; font-weight: 700; color: var(--gold);
  text-transform: uppercase; letter-spacing: 1px; flex: 1;
}
.bc-rookie {
  font-size: 9px; color: rgba(253,211,41,0.5);
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* ── BACK ── */
.bc-back {
  background: linear-gradient(160deg, #0e1a0a 0%, #111822 60%, #0a0e1a 100%);
  border: 2px solid rgba(253,211,41,0.6);
  transform: rotateY(180deg);
  display: flex; flex-direction: column;
  padding: 14px 14px 10px;
  gap: 10px;
}

.bc-back-header {
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid rgba(253,211,41,0.2);
  padding-bottom: 10px;
}
.bc-back-logo { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; }
.bc-back-name {
  font-size: 15px; font-weight: 800; color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.5px;
  line-height: 1.1;
}
.bc-back-meta { font-size: 10px; color: var(--text-muted); margin-top: 3px; }

/* 2×2 stat grid */
.bc-stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.bc-stat-block {
  background: rgba(0,0,0,0.35); border: 0.5px solid rgba(253,211,41,0.15);
  border-radius: 7px; padding: 6px 8px; text-align: center;
}
.bc-stat-label { font-size: 8px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; }
.bc-stat-val { font-size: 16px; font-weight: 700; color: var(--gold); line-height: 1; }

/* bio */
.bc-bio-wrap { flex: 1; display: flex; flex-direction: column; gap: 4px; min-height: 0; }
.bc-bio-label { font-size: 9px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 1px; }
.bc-bio-input {
  flex: 1; background: rgba(0,0,0,0.4); border: 0.5px solid rgba(253,211,41,0.2);
  color: var(--text); border-radius: 7px; padding: 7px 9px;
  font-size: 12px; font-family: 'Inter', sans-serif; resize: none;
  min-height: 58px; transition: border-color 0.2s;
}
.bc-bio-input:focus { outline: none; border-color: var(--gold); }

/* action row */
.bc-back-actions {
  display: flex; gap: 8px; align-items: center;
}
.bc-upload-btn {
  flex: 1; background: rgba(0,0,0,0.4); border: 0.5px solid rgba(253,211,41,0.3);
  color: var(--gold); font-size: 11px; padding: 7px 10px; border-radius: 8px;
  cursor: pointer; font-family: 'Inter', sans-serif; text-align: center;
  transition: background 0.2s; user-select: none;
}
.bc-upload-btn:hover { background: rgba(253,211,41,0.12); }
.bc-save-btn {
  background: var(--gold); color: #000; border: none;
  border-radius: 8px; padding: 7px 16px; font-size: 12px;
  font-weight: 700; font-family: 'Inter', sans-serif;
  cursor: pointer; transition: background 0.2s; white-space: nowrap;
}
.bc-save-btn:hover { background: var(--gold-lt); }

/* back footer */
.bc-back-footer {
  font-size: 8px; color: rgba(253,211,41,0.3);
  text-align: center; letter-spacing: 1px; text-transform: uppercase;
  border-top: 0.5px solid rgba(253,211,41,0.1); padding-top: 6px;
}

/* ── PLAYER PROFILE MODAL (legacy kept for pm- IDs still used) ── */
.pm-photo-wrap { display:none; }
.pm-fields     { display:none; }
.modal-actions { display:none; }

/* ── PRINT STYLES ── */
@media print {
  body > *:not(#print-area) { display: none !important; }
  #print-area { display: block !important; padding: 20px; background: white; color: black; font-family: 'Inter', sans-serif; }
  .print-header { text-align: center; border-bottom: 2px solid #000; padding-bottom: 12px; margin-bottom: 16px; }
  .print-title { font-size: 22px; font-weight: 700; }
  .print-sub { font-size: 13px; color: #555; margin-top: 4px; }
  .print-lineup { width: 100%; border-collapse: collapse; margin-top: 16px; }
  .print-lineup th { background: #f0f0f0; border: 1px solid #ccc; padding: 8px 12px; font-size: 12px; text-transform: uppercase; }
  .print-lineup td { border: 1px solid #ccc; padding: 8px 12px; font-size: 13px; }
  .print-lineup tr:nth-child(even) td { background: #fafafa; }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .metrics { grid-template-columns: repeat(3,1fr); }
  .lineup-layout { grid-template-columns: 1fr; }
  .lineup-right { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .panel-grid { grid-template-columns: 1fr; }

}
@media (max-width: 600px) {
  .metrics { grid-template-columns: repeat(2,1fr); }
  .games-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-submit { grid-column: 1 / -1; }
  .score-inputs input { width: 50px; }
  .hero-skull { font-size: 22px; }
  .lineup-right { grid-template-columns: 1fr; }
  .roster-grid { grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); }

  /* Matchup card: shrink logos, tighten center col */
  .matchup-card { min-height: 140px; border-radius: 14px; }
  .matchup-logo { width: 60px !important; height: 60px !important; }
  .matchup-team-name { font-size: 11px; letter-spacing: 1.5px; }
  .matchup-record { font-size: 10px; }
  .matchup-center { width: 110px !important; padding: 0.75rem 0.25rem; }
  .matchup-vs-diamond { width: 28px; height: 28px; }
  .matchup-vs-diamond span { font-size: 7px; }
  .matchup-date { font-size: 10px; }
  .matchup-countdown { font-size: 16px; }
  .matchup-weather-pill { font-size: 9px; padding: 3px 8px; }
  .weather-sub-text { display: none; }
  .hero-content { padding: 1.75rem 1rem 1.5rem; gap: 1rem; }
  .hero-title { letter-spacing: 5px; }
}
@media (max-width: 400px) {
  .metrics { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }

}

/* touch device: show move buttons, hide drag handle */
@media (hover: none) {
  #drag-col { display: none !important; }
  #move-col { display: table-cell !important; }
}
