/* ============================================================
   HEROES SENIOR SOFTBALL - Main Stylesheet
   Colors: Red #C8102E, Dark #1C1C1C, Gold #F0A500
   ============================================================ */
:root {
  --red: #C8102E;
  --red-dark: #9E0000;
  --red-light: #E8274A;
  --dark: #1C1C1C;
  --dark2: #2C2C2C;
  --gold: #F0A500;
  --gold-light: #FFD700;
  --white: #FFFFFF;
  --light: #F8F8F8;
  --gray: #6B7280;
  --gray-light: #E5E7EB;
  --border: #D1D5DB;
  --text: #1F2937;
  --text-light: #6B7280;
  --shadow: 0 2px 8px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.18);
  --radius: 6px;
  --radius-lg: 12px;
  --transition: all 0.2s ease;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--red-dark); }
ul { list-style: none; }
button { cursor: pointer; border: none; font-family: inherit; font-size: inherit; }

/* ---- UTILITY ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.hidden { display: none !important; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.tag-red { background: var(--red); color: #fff; }
.tag-gold { background: var(--gold); color: #fff; }
.tag-dark { background: var(--dark); color: #fff; }
.tag-green { background: #16a34a; color: #fff; }
.tag-gray { background: var(--gray); color: #fff; }
.badge { background: var(--red); color: #fff; border-radius: 50%; width: 20px; height: 20px; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

/* ---- HEADER / NAV ---- */
#site-header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 20px;
  max-width: 1400px;
  margin: 0 auto;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.site-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--red);
}
.site-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.site-logo-text .org { color: var(--white); font-size: 13px; font-weight: 400; opacity: 0.7; }
.site-logo-text .name { color: var(--white); font-size: 17px; font-weight: 800; letter-spacing: -0.3px; }
.site-logo-text .name span { color: var(--gold); }

#main-nav { display: flex; align-items: center; gap: 2px; }
.nav-item {
  position: relative;
}
.nav-link {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  cursor: pointer;
}
/* Hover: subtle. Active (current page): clearly distinct with red fill */
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-link.active { color: var(--white); background: var(--red); }
.nav-link.has-dropdown::after { content: '▾'; font-size: 10px; opacity: 0.7; }
/* Invisible bridge under nav-item fills the gap so hover isn't lost */
.nav-item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 10px;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--dark2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  overflow: hidden;
  display: none;
  z-index: 100;
  border: 1px solid rgba(255,255,255,0.08);
}
.nav-item:hover .dropdown-menu { display: block; }
.dropdown-item {
  display: block;
  padding: 11px 18px;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dropdown-item:hover { background: var(--red); color: var(--white); }
.nav-admin-btn {
  margin-left: 12px;
  background: var(--red);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
}
.nav-admin-btn:hover { background: var(--red-dark); color: var(--white); }

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  background: none;
  color: var(--white);
  font-size: 22px;
  padding: 8px;
}
#mobile-nav {
  display: none;
  background: var(--dark2);
  padding: 10px 20px 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
#mobile-nav .mobile-nav-link {
  display: block;
  padding: 10px 0;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
#mobile-nav .mobile-nav-link:hover { color: var(--gold); }

/* ---- PAGE HEADER BANNER ---- */
.page-banner {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 50%, #3a0000 100%);
  padding: 50px 20px 40px;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 20px,
    rgba(200,16,46,0.04) 20px, rgba(200,16,46,0.04) 22px
  );
}
.page-banner-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; }
.page-banner h1 { color: var(--white); font-size: clamp(26px, 5vw, 42px); font-weight: 900; letter-spacing: -1px; }
.page-banner h1 span { color: var(--gold); }
.page-banner p { color: rgba(255,255,255,0.7); margin-top: 8px; font-size: 15px; }
.breadcrumb { display: flex; gap: 6px; font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,0.5); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span::before { content: '›'; margin-right: 6px; }

/* ---- HERO SECTION ---- */
#hero {
  background: linear-gradient(135deg, var(--dark) 0%, #3a0000 40%, var(--red-dark) 100%);
  min-height: 520px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-bg-text {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(100px, 20vw, 220px);
  font-weight: 900;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  pointer-events: none;
  letter-spacing: -10px;
}
.hero-inner { position: relative; z-index: 2; padding: 60px 20px; max-width: 1400px; margin: 0 auto; width: 100%; }
.hero-content { max-width: 600px; }

/* Right-side hero accent image, faded into the gradient on the left edge */
.hero-accent {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: clamp(360px, 55%, 760px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.hero-accent img {
  height: 100%;
  width: auto;
  display: block;
  opacity: 0.95;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.2) 22%, rgba(0,0,0,0.7) 44%, #000 65%);
          mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.2) 22%, rgba(0,0,0,0.7) 44%, #000 65%);
}
@media (max-width: 900px) {
  .hero-accent { width: 100%; }
  .hero-accent img { opacity: 0.18; height: 100%; width: 100%; object-fit: cover; object-position: right center; }
}
.hero-tag { background: var(--gold); color: var(--dark); padding: 4px 14px; border-radius: 20px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; display: inline-block; margin-bottom: 18px; }
.hero-title { font-size: clamp(32px, 6vw, 58px); font-weight: 900; color: var(--white); line-height: 1.1; letter-spacing: -2px; margin-bottom: 16px; }
.hero-title span { color: var(--gold); }
.hero-subtitle { color: rgba(255,255,255,0.75); font-size: 16px; margin-bottom: 30px; max-width: 480px; line-height: 1.7; }
.hero-season-record { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-left: 4px solid var(--red); border-radius: 8px; padding: 14px 20px; width: fit-content; }
.hero-season-year { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.5); align-self: center; }
.hero-season-wl { display: flex; align-items: baseline; gap: 4px; }
.hero-season-w { font-size: 44px; font-weight: 900; color: #4ade80; line-height: 1; }
.hero-season-sep { font-size: 28px; font-weight: 700; color: rgba(255,255,255,0.3); }
.hero-season-l { font-size: 44px; font-weight: 900; color: rgba(255,255,255,0.45); line-height: 1; }
.hero-season-pct { font-size: 15px; font-weight: 700; color: rgba(255,255,255,0.55); align-self: center; }
.hero-record { display: flex; gap: 24px; margin-bottom: 32px; }
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 36px; font-weight: 900; color: var(--white); line-height: 1; }
.hero-stat-label { font-size: 11px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }
.hero-stat-divider { width: 1px; background: rgba(255,255,255,0.15); }
.hero-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-ctas .btn { width: 100%; justify-content: center; white-space: nowrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius); font-weight: 700; font-size: 14px; transition: var(--transition); cursor: pointer; border: none; }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); color: var(--white); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(200,16,46,0.4); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.3); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: var(--gold-light); color: var(--dark); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--dark2); color: var(--white); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-xs { padding: 5px 12px; font-size: 12px; }

/* ---- SECTION LAYOUTS ---- */
.section { padding: 60px 0; }
.section-sm { padding: 40px 0; }
.section-dark { background: var(--dark); color: var(--white); }
.section-dark h2 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.7); }
.section-light { background: var(--light); }
.section-red { background: var(--red); color: var(--white); }
.section-header { margin-bottom: 36px; }
.section-header h2 { font-size: clamp(22px, 4vw, 32px); font-weight: 900; letter-spacing: -0.5px; }
.section-header h2 span { color: var(--red); }
.section-dark .section-header h2 span { color: var(--gold); }
.section-header p { color: var(--text-light); margin-top: 8px; }
.section-label {
  display: inline-block;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.section-dark .section-label { color: var(--gold); }

/* ---- CARDS ---- */
.cards-grid { display: grid; gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-header { background: var(--dark); padding: 16px 20px; color: var(--white); }
.card-header h3 { font-size: 16px; font-weight: 700; }
.card-body { padding: 20px; }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--gray-light); background: var(--light); }

/* Team cards */
.team-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); position: relative; }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-card-banner { height: 6px; }
.team-card-body { padding: 22px; }
.team-card .team-name { font-size: 20px; font-weight: 900; color: var(--dark); margin-bottom: 4px; }
.team-card .team-division { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--gray); font-weight: 600; margin-bottom: 14px; }
.team-record-row { display: flex; gap: 16px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--gray-light); }
.team-record-item { text-align: center; flex: 1; }
.team-record-item .num { font-size: 28px; font-weight: 900; color: var(--dark); line-height: 1; }
.team-record-item .lbl { font-size: 10px; text-transform: uppercase; color: var(--gray); letter-spacing: 0.5px; }
.team-card-footer { padding: 14px 22px; border-top: 1px solid var(--gray-light); display: flex; justify-content: space-between; align-items: center; }

/* ---- STATS TABLE ---- */
.stats-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.stats-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.stats-table thead tr { background: var(--dark); color: var(--white); }
.stats-table th { padding: 11px 14px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; text-align: left; white-space: nowrap; }
.stats-table th.sortable { cursor: pointer; }
.stats-table th.sortable:hover { background: var(--dark2); }
.stats-table td { padding: 11px 14px; font-size: 13px; border-bottom: 1px solid var(--gray-light); white-space: nowrap; }
.stats-table tbody tr:hover { background: #fff5f5; }
.stats-table .player-cell { display: flex; align-items: center; gap: 10px; }
.stats-table .player-num { color: var(--gray); font-size: 11px; font-weight: 700; min-width: 20px; }
.stats-table .player-name { font-weight: 600; color: var(--text); cursor: pointer; }
.stats-table .player-name:hover { color: var(--red); }
.stats-table .stat-highlight { font-weight: 700; color: var(--red); }
.stats-table .leader-row td { background: #fff8f0; }
.stats-table tfoot { background: var(--light); font-weight: 700; }
.stats-table tfoot td { font-size: 12px; }
.rank-1 { color: var(--gold); font-weight: 900; }
.rank-badge { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.rank-badge-1 { background: var(--gold); color: var(--dark); }
.rank-badge-2 { background: #9CA3AF; color: var(--white); }
.rank-badge-3 { background: #b08040; color: var(--white); }

/* ---- SCHEDULE ---- */
.game-list { display: flex; flex-direction: column; gap: 10px; }
.game-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 100px 1fr 120px 80px;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  border-left: 4px solid transparent;
  transition: var(--transition);
}
.game-item:hover { box-shadow: var(--shadow); }
.game-item.win { border-left-color: #16a34a; }
.game-item.loss { border-left-color: var(--red); }
.game-item.upcoming { border-left-color: var(--gold); }
.game-date { font-size: 12px; color: var(--gray); }
.game-date-day { font-size: 15px; font-weight: 800; color: var(--dark); }
.game-vs { font-size: 13px; color: var(--gray); margin-bottom: 2px; }
.game-opponent { font-size: 15px; font-weight: 700; color: var(--text); }
.game-location { font-size: 12px; color: var(--gray); display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.game-score { text-align: center; }
.game-score .score { font-size: 20px; font-weight: 900; }
.game-score .score-hero { color: var(--dark); }
.game-score .score-sep { color: var(--gray); font-size: 14px; margin: 0 3px; }
.game-score .score-opp { color: var(--gray); }
.game-result { text-align: center; }
.result-badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 800; }
.result-W { background: #dcfce7; color: #15803d; }
.result-L { background: #fee2e2; color: #dc2626; }
.result-T { background: #fef9c3; color: #92400e; }

/* ---- TRADING CARDS (player directory) ---- */
.player-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 22px; }

/* Front — 1979 Topps style. Sizes use cqw so the card scales as one piece. */
.tc-card { aspect-ratio: 5 / 7; cursor: pointer; border-radius: 10px; outline: none; transition: transform 0.2s ease; }
.tc-card:hover, .tc-card:focus-visible { transform: translateY(-5px) rotate(-1deg); }
.tc-card:focus-visible .tc-front { box-shadow: 0 0 0 3px var(--red), 0 8px 22px rgba(0,0,0,0.3); }
.tc-card:hover .tc-front { box-shadow: 0 10px 26px rgba(0,0,0,0.32), inset 0 0 0 1px rgba(0,0,0,0.08); }
.tc-front {
  container-type: inline-size;
  position: relative; width: 100%; height: 100%;
  display: flex; flex-direction: column;
  padding: 7% 7% 0;
  background: #FBFAF5; border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.22), inset 0 0 0 1px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s ease;
}
.tc-photo { position: relative; flex: 1; overflow: hidden; border: 2px solid #1C1C1C; background: linear-gradient(150deg, var(--team), #1C1C1C 85%); }
.tc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; z-index: 1; }
.tc-initials { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 30cqw; font-weight: 900; letter-spacing: -0.04em; color: rgba(255,255,255,0.25); }
.tc-badge {
  position: absolute; left: 3%; bottom: 15.5%; z-index: 2;
  width: 25cqw; height: 25cqw; border-radius: 50%;
  background: #fff; border: 1cqw solid var(--team);
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.tc-badge img { width: 88%; height: 88%; object-fit: contain; border-radius: 50%; }
.tc-nameline {
  display: flex; justify-content: space-between; align-items: baseline; gap: 2cqw;
  padding: 2.6cqw 0 1.6cqw 27cqw;
  color: #1C1C1C; font-weight: 800; text-transform: uppercase; line-height: 1.1;
}
.tc-pname { font-size: 6.6cqw; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-pos { font-size: 6cqw; flex-shrink: 0; }
.tc-ribbon {
  display: flex; justify-content: space-between; align-items: center; gap: 2cqw;
  margin: 0 -3% 5.5%; padding: 2cqw 7cqw;
  background: var(--team); color: #fff;
  font-size: 6.4cqw; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  text-shadow: 0 1px 1px rgba(0,0,0,0.45);
  clip-path: polygon(0 0, 100% 0, 95% 50%, 100% 100%, 0 100%, 5% 50%);
}
.tc-num { opacity: 0.9; }
.tc-fav {
  position: absolute; top: 3.5%; right: 3.5%; z-index: 5;
  width: 30px; height: 30px; border-radius: 50%; border: none; padding: 0;
  background: #fff; color: #1C1C1C;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.35), 0 2px 6px rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1; cursor: pointer;
}
.tc-fav:hover { transform: scale(1.08); }
.tc-fav.is-fav { background: #FFD43B; color: #7A4B00; box-shadow: 0 0 0 2px #7A4B00, 0 2px 6px rgba(0,0,0,0.45); }

/* Viewer — the card lifts out, turns over, and turns sideways to show the landscape back */
.tcv-overlay {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding-bottom: 70px;
  background: rgba(10,10,10,0); transition: background 0.25s ease;
}
.tcv-overlay.open { background: rgba(10,10,10,0.84); }
.tcv-stage { position: relative; width: var(--W); height: var(--H); perspective: 1800px; }
.tcv-overlay.landscape .tcv-stage { width: var(--H); height: var(--W); }
.tcv-card {
  position: absolute; left: 50%; top: 50%;
  width: var(--W); height: var(--H);
  margin: calc(var(--H) / -2) 0 0 calc(var(--W) / -2);
  transform-style: preserve-3d; cursor: pointer; will-change: transform;
  transform: rotateZ(0deg) rotateY(0deg) scale(var(--fs));
  /* Symmetric easing: the card is edge-on at exactly the halfway point (0.45s),
     which is when the faces swap below. */
  transition: transform 0.9s cubic-bezier(0.45, 0.05, 0.55, 0.95),
              width 0.3s ease, height 0.3s ease, margin 0.3s ease;
}
.tcv-card.flipped { transform: rotateZ(0deg) rotateY(180deg) scale(1); }
.tcv-overlay.landscape .tcv-card.flipped { transform: rotateZ(90deg) rotateY(180deg) scale(1); }
/* The lift-in runs on the stage and finishes before the flip starts, so the two
   motions never fight each other. */
.tcv-stage { opacity: 0; }
.tcv-overlay.open .tcv-stage { animation: tcv-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes tcv-in { from { opacity: 0; transform: translateY(40px) scale(0.85); } to { opacity: 1; transform: none; } }
.tcv-face { position: absolute; inset: 0; border-radius: 12px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.tcv-face .tc-front { border-radius: 12px; }
.tcv-front { transform: rotateY(0deg) translateZ(1px); }
.tcv-back { transform: rotateY(180deg) translateZ(1px); background: var(--cc-paper, #FBF6E9); visibility: hidden; transition: visibility 0s linear 0.45s; }
/* iOS Safari can ignore backface-visibility for photos inside a face, so also swap the
   faces' visibility halfway through the turn (0.45s of the 0.9s flip). */
.tcv-front { transition: visibility 0s linear 0.45s; }
.tcv-card.flipped .tcv-front { visibility: hidden; }
.tcv-card.flipped .tcv-back { visibility: visible; }
.tcv-back-inner { position: absolute; inset: 0; display: flex; flex-direction: column; }
/* Printed sideways on the card, so it reads upright once the card is turned */
.tcv-overlay.landscape .tcv-back-inner {
  inset: auto; width: var(--H); height: var(--W);
  left: calc((var(--W) - var(--H)) / 2); top: calc((var(--H) - var(--W)) / 2);
  transform: rotate(-90deg);
  transition: width 0.3s ease, height 0.3s ease, left 0.3s ease, top 0.3s ease;
}
.tcv-back-inner > p { padding: 24px; }
.tcv-back-inner .cc-card { flex: 1; min-height: 0; max-width: none; margin: 0; border: none; border-radius: 0; box-shadow: none; display: flex; flex-direction: column; }
.tcv-back-inner .cc-scroll { flex: 1; overflow: auto; }
.tcv-back-inner .cc-table { font-size: 13px; }
.tcv-back-inner .cc-table th, .tcv-back-inner .cc-table td { padding-left: 7px; padding-right: 7px; }
.tcv-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-shrink: 0;
  padding: 8px 16px; border-top: 2px solid var(--cc-line, var(--dark)); background: var(--cc-total, #F1E9D2);
  font-size: 11px; font-weight: 700; color: var(--cc-ink, #1a1a1a); opacity: 0.92; letter-spacing: 0.02em;
}
.tcv-foot > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcv-foot-brand { display: flex; align-items: center; gap: 6px; flex-shrink: 0; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dark); }
.tcv-foot-brand img { width: 22px; height: 22px; border-radius: 50%; object-fit: contain; background: #fff; }
.tcv-actions { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 10001; display: flex; gap: 10px; }
/* Phone held sideways: buttons stack on the right so the card gets the full height */
.tcv-overlay.short { padding: 0 84px 0 0; }
.tcv-overlay.short .tcv-actions { left: auto; right: 10px; bottom: auto; top: 50%; transform: translateY(-50%); flex-direction: column; }
.tcv-overlay.short .tcv-btn { padding: 9px 10px; font-size: 12px; width: 70px; white-space: normal; line-height: 1.15; }
.tcv-btn {
  padding: 10px 18px; border-radius: 999px; white-space: nowrap;
  background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.35);
  font-size: 14px; font-weight: 800; cursor: pointer;
}
.tcv-btn:hover { background: rgba(255,255,255,0.22); }
.tcv-btn-primary { background: var(--red); border-color: var(--red); }
.tcv-btn-primary:hover { background: var(--red-dark); }
@media (max-width: 480px) {
  .player-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .tcv-btn { padding: 9px 13px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .tc-card, .tcv-card { transition: none; }
  .tcv-overlay.open .tcv-stage { animation-duration: 0.01s; }
}

/* ---- NEWS ---- */
.news-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.news-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.news-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.news-card-img { height: 220px; overflow: hidden; position: relative; background: var(--dark); }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.news-card:hover .news-card-img img { transform: scale(1.04); }
.news-card-body { padding: 20px; }
.news-card-meta { font-size: 12px; color: var(--gray); margin-bottom: 8px; display: flex; gap: 10px; }
.news-card-title { font-size: 18px; font-weight: 800; color: var(--dark); margin-bottom: 10px; line-height: 1.3; }
.news-card-title:hover { color: var(--red); }
.news-card-excerpt { font-size: 14px; color: var(--text-light); line-height: 1.6; }
.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-list-item { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--gray-light); }
.news-list-item:last-child { border: none; }
.news-list-img { width: 80px; height: 60px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: var(--dark); }
.news-list-img img { width: 100%; height: 100%; object-fit: cover; }
.news-list-title { font-size: 13px; font-weight: 700; color: var(--dark); margin-bottom: 4px; line-height: 1.3; }
.news-list-title:hover { color: var(--red); }
.news-list-date { font-size: 11px; color: var(--gray); }

/* ---- LEADERBOARD ---- */
.leaderboard-section { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.leaderboard-card { background: var(--white); color: var(--dark); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.leaderboard-card-header { background: var(--dark); padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; }
.leaderboard-card-header h3 { color: var(--white); font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.leaderboard-card-header span { color: var(--gold); font-size: 12px; }
.leaderboard-item { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--gray-light); }
.leaderboard-item:last-child { border: none; }
.lb-rank { font-size: 14px; font-weight: 900; min-width: 28px; color: var(--gray); text-align: center; }
.lb-rank.top { color: var(--gold); }
.lb-info { flex: 1; min-width: 0; }
.lb-player { font-size: 15px; font-weight: 700; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-team { font-size: 11px; color: var(--gray); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.5px; }
.lb-value { font-size: 20px; font-weight: 900; color: var(--red); min-width: 56px; text-align: right; font-variant-numeric: tabular-nums; }

/* Dark-section variant — used on the home page Performance section */
.section-dark .leaderboard-card { background: rgba(255,255,255,0.04); color: var(--white); border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 4px 18px rgba(0,0,0,0.25); }
.section-dark .leaderboard-card-header { background: rgba(0,0,0,0.35); border-bottom: 1px solid rgba(255,255,255,0.06); }
.section-dark .leaderboard-item { border-bottom-color: rgba(255,255,255,0.06); }
.section-dark .lb-rank { color: rgba(255,255,255,0.45); }
.section-dark .lb-rank.top { color: var(--gold); }
.section-dark .lb-player { color: var(--white); }
.section-dark .lb-team { color: rgba(255,255,255,0.55); }
.section-dark .lb-value { color: var(--gold); }

/* Year-selector dropdown on the leaderboard header */
.leaders-controls { display: flex; align-items: center; gap: 10px; }
.leaders-controls label { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.55); font-weight: 700; }
.leaders-select { background: rgba(255,255,255,0.06); color: #fff; border: 1px solid rgba(255,255,255,0.18); border-radius: 8px; padding: 9px 36px 9px 14px; font-weight: 700; font-size: 14px; cursor: pointer; outline: none; transition: var(--transition); appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23F0A500' d='M6 8L0 0h12z'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; }
.leaders-select:hover { border-color: rgba(240,165,0,0.55); background-color: rgba(255,255,255,0.10); }
.leaders-select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240,165,0,0.18); }
.leaders-select option { background: var(--dark); color: #fff; }
.leaders-select-light { background-color: #fff; color: var(--dark); border-color: rgba(0,0,0,0.18); }
.leaders-select-light:hover { background-color: #fff; }
.leaders-select-light option { background: #fff; color: var(--dark); }

/* ---- SPONSORS ---- */
.sponsors-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px; padding: 30px 0; }
.sponsor-item { padding: 14px 24px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); transition: var(--transition); display: flex; align-items: center; justify-content: center; min-width: 140px; }
.sponsor-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.sponsor-item img { max-height: 50px; max-width: 140px; object-fit: contain; filter: grayscale(60%); transition: filter 0.3s; }
.sponsor-item:hover img { filter: none; }
.sponsor-name { font-size: 14px; font-weight: 700; color: var(--text-light); }

/* ---- AWARDS ---- */
.awards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.award-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 20px; display: flex; gap: 16px; align-items: flex-start; }
.award-icon { font-size: 32px; flex-shrink: 0; }
.award-title { font-weight: 800; font-size: 15px; color: var(--dark); margin-bottom: 4px; }
.award-detail { font-size: 13px; color: var(--gray); line-height: 1.5; }
.award-year { font-size: 11px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 6px; }

/* ---- TABS ---- */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--gray-light); margin-bottom: 28px; overflow-x: auto; }
.tab-btn {
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.tab-btn:hover { color: var(--red); }
.tab-btn.active { color: var(--red); border-bottom-color: var(--red); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ---- FILTERS ---- */
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; align-items: center; }
.filter-btn { padding: 7px 16px; border-radius: 20px; font-size: 12px; font-weight: 700; background: var(--gray-light); color: var(--gray); border: none; cursor: pointer; transition: var(--transition); text-transform: uppercase; letter-spacing: 0.3px; }
.filter-btn:hover { background: var(--border); }
.filter-btn.active { background: var(--red); color: var(--white); }
.search-input {
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  outline: none;
  width: 220px;
  transition: var(--transition);
}
.search-input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,16,46,0.1); }
.form-select {
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  outline: none;
  background: var(--white);
  cursor: pointer;
}
.form-select:focus { border-color: var(--red); }

/* ---- PLAYER PROFILE ---- */
.player-profile-header { background: linear-gradient(135deg, var(--dark), #2a0010); padding: 50px 20px; }
.player-profile-inner { display: flex; gap: 30px; align-items: flex-end; max-width: 1200px; margin: 0 auto; }
.player-profile-photo { width: 120px; height: 120px; border-radius: 50%; border: 4px solid var(--red); overflow: hidden; flex-shrink: 0; background: var(--dark2); display: flex; align-items: center; justify-content: center; }
.player-profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.player-profile-photo .initials { font-size: 42px; font-weight: 900; color: rgba(255,255,255,0.2); }
.player-profile-info h1 { font-size: 36px; font-weight: 900; color: var(--white); line-height: 1.1; }
.player-profile-meta { display: flex; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.player-profile-meta-item { font-size: 13px; color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 4px; }
.player-profile-meta-item strong { color: var(--white); }
.player-number-badge { font-size: 64px; font-weight: 900; color: rgba(255,255,255,0.06); position: absolute; right: 40px; bottom: 0; line-height: 1; }
.years-badge { display: flex; align-items: center; gap: 4px; background: rgba(240,165,0,0.2); color: var(--gold); border: 1px solid rgba(240,165,0,0.3); padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.career-stat-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 14px; background: var(--light); padding: 20px; border-radius: var(--radius-lg); margin: 20px 0; }
.career-stat { text-align: center; }
.career-stat .val { font-size: 22px; font-weight: 900; color: var(--dark); }
.career-stat .lbl { font-size: 10px; text-transform: uppercase; color: var(--gray); letter-spacing: 0.5px; }

/* ---- AVAILABILITY ---- */
.availability-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.avail-card { background: var(--white); border-radius: var(--radius); padding: 14px 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); display: flex; align-items: center; gap: 12px; }
.avail-status { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.avail-available { background: #22c55e; }
.avail-unavailable { background: var(--red); }
.avail-maybe { background: var(--gold); }
.avail-pending { background: var(--gray); }
.avail-name { font-size: 13px; font-weight: 700; }
.avail-team { font-size: 11px; color: var(--gray); }

/* ---- TOURNAMENT ---- */
.tournament-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 20px; }
.tournament-header { background: var(--dark); padding: 18px 24px; display: flex; justify-content: space-between; align-items: flex-start; }
.tournament-header h3 { color: var(--white); font-size: 18px; font-weight: 800; }
.tournament-meta { display: flex; gap: 20px; padding: 16px 24px; border-bottom: 1px solid var(--gray-light); flex-wrap: wrap; }
.tournament-meta-item { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--text-light); }
.tournament-meta-item strong { color: var(--dark); }
.tournament-body { padding: 20px 24px; }

/* ---- EVENT CONTROLS ROW ---- */
.ev-controls-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.ev-controls-row .filter-row { margin-bottom: 0; flex-wrap: wrap; }
.ev-sort-wrap { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ev-sort-label { font-size: 12px; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.ev-sort-select { border: 1px solid var(--border); border-radius: 20px; padding: 7px 14px; font-size: 13px; font-weight: 600; color: var(--text); background: var(--white); cursor: pointer; outline: none; transition: border-color 0.2s; font-family: inherit; }
.ev-sort-select:focus, .ev-sort-select:hover { border-color: var(--red); }

/* ---- BOX SCORE MODAL ---- */
.game-item { cursor: pointer; transition: all 0.15s; }
.game-item:hover { transform: translateX(3px); box-shadow: 3px 0 0 var(--red) inset; }
.game-item.has-boxscore .boxscore-hint { display: block; }
.boxscore-hint { display: none; font-size: 10px; font-weight: 700; color: var(--red); margin-top: 4px; letter-spacing: 0.3px; }
.boxscore-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn 0.15s ease; }
.boxscore-modal { background: #fff; border-radius: 16px; width: 100%; max-width: 720px; max-height: 85vh; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.boxscore-header { background: linear-gradient(135deg, #1a1a2e, #0f3460); padding: 20px 24px; display: flex; justify-content: space-between; align-items: flex-start; flex-shrink: 0; }
.boxscore-game-info { font-size: 11px; color: rgba(255,255,255,0.55); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.boxscore-matchup { font-size: 20px; font-weight: 900; color: #fff; margin-bottom: 6px; }
.boxscore-matchup span { color: var(--gold); }
.boxscore-result { font-size: 13px; font-weight: 700; }
.boxscore-result.w { color: #4ade80; }
.boxscore-result.l { color: #f87171; }
.boxscore-close { background: rgba(255,255,255,0.1); border: none; color: #fff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.2s; }
.boxscore-close:hover { background: rgba(255,255,255,0.2); }
.boxscore-table-wrap { overflow-x: auto; flex: 1; overflow-y: auto; }
.boxscore-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.boxscore-table th { background: var(--dark); color: rgba(255,255,255,0.8); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; padding: 10px 12px; text-align: center; position: sticky; top: 0; }
.boxscore-table th:first-child { text-align: left; }
.boxscore-table td { padding: 9px 12px; text-align: center; border-bottom: 1px solid var(--gray-light); font-size: 13px; }
.boxscore-table td:first-child { text-align: left; font-size: 13px; }
.boxscore-table tr:hover td { background: var(--light); }
.boxscore-totals td { font-weight: 800; background: var(--light); border-top: 2px solid var(--border); }
.boxscore-notes { padding: 12px 20px; font-size: 12px; color: var(--text-light); background: var(--light); border-top: 1px solid var(--border); flex-shrink: 0; }

/* ---- TOURNAMENT BRACKET ---- */
.ev-bracket-section { margin-bottom: 20px; }
.ev-bracket-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; color: var(--gray); margin-bottom: 12px; }
.bkt-wrapper { display: flex; gap: 0; overflow-x: auto; padding-bottom: 8px; }
.bkt-round { min-width: 160px; flex-shrink: 0; }
.bkt-round-name { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray); text-align: center; padding: 6px 8px; background: var(--light); border: 1px solid var(--border); border-bottom: none; border-radius: 6px 6px 0 0; }
.bkt-games { display: flex; flex-direction: column; gap: 10px; padding: 10px 8px; border: 1px solid var(--border); border-radius: 0 0 6px 6px; background: #fff; }
.bkt-game { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.bkt-team { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--gray-light); }
.bkt-team:last-child { border-bottom: none; }
.bkt-winner { background: #f0fdf4; font-weight: 800; color: #15803d; }
.bkt-score { font-weight: 900; font-size: 14px; }

/* ---- STATS FILTERS ---- */
.stats-controls { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 24px; padding: 18px 20px; background: var(--light); border-radius: 12px; border: 1px solid var(--border); }
.stats-filter-group { display: flex; flex-direction: column; gap: 6px; }
.stats-filter-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; color: var(--gray); }
.stats-team-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.stats-search-input { border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; font-size: 13px; outline: none; font-family: inherit; min-width: 180px; transition: border-color 0.2s; }
.stats-search-input:focus { border-color: var(--red); }
.stats-date-input { border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; font-size: 13px; outline: none; font-family: inherit; transition: border-color 0.2s; }
.stats-date-input:focus { border-color: var(--red); }

/* ---- AWARDS PAGE ---- */
.awards-year-section { margin-bottom: 48px; }
.awards-year-header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 3px solid var(--red); }
.awards-year-label { font-size: 32px; font-weight: 900; color: var(--dark); }
.awards-year-sub { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--gray); }
.award-content { flex: 1; min-width: 0; }
.award-desc { font-size: 13px; color: var(--text-light); line-height: 1.5; margin-bottom: 6px; }
.award-team-badge { display: inline-block; background: var(--dark); color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 3px 8px; border-radius: 20px; }

/* ---- PHOTO GALLERY ---- */
/* ── Gallery ── */
.gallery-cat-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.gallery-cat-btn { background: var(--light); border: 1px solid var(--border); border-radius: 24px; padding: 7px 18px; font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.18s; color: var(--text); }
.gallery-cat-btn:hover { background: var(--border); }
.gallery-cat-btn.active { background: var(--red); border-color: var(--red); color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.gallery-album-card { background: var(--white); border-radius: 14px; overflow: hidden; border: 1px solid var(--border); cursor: pointer; transition: all 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.gallery-album-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.gallery-album-cover { aspect-ratio: 16/9; background: var(--dark); overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; font-size: 36px; color: rgba(255,255,255,0.3); }
.gallery-album-cover img { width: 100%; height: 100%; object-fit: cover; }
.gallery-album-count { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.6); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 20px; }
.gallery-album-cat { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,0.6); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 20px; }
.gallery-album-empty { font-size: 36px; opacity: 0.3; }
.gallery-album-info { padding: 14px 16px; }
.gallery-album-name { font-size: 15px; font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.gallery-album-meta { font-size: 12px; color: var(--gray); margin-bottom: 4px; }
.gallery-album-desc { font-size: 12px; color: var(--text-light); line-height: 1.4; }
.gallery-empty { text-align: center; padding: 60px 20px; color: var(--gray); }
/* ── Lightbox ── */
.lightbox-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 16px; animation: fadeIn 0.2s ease; }
.lightbox-panel { background: #fff; border-radius: 16px; width: 100%; max-width: 960px; max-height: 95vh; overflow: hidden; display: flex; flex-direction: column; }
.lightbox-header { padding: 14px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; gap: 12px; }
.lightbox-album-name { font-size: 15px; font-weight: 800; flex: 1; }
.lightbox-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--gray); padding: 4px 8px; border-radius: 4px; line-height: 1; }
.lightbox-close:hover { background: var(--light); }
.lightbox-viewer { display: flex; align-items: stretch; gap: 0; background: #111; flex: 1; min-height: 0; position: relative; }
.lightbox-main { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 0; overflow: hidden; }
.lightbox-main img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.lightbox-caption { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 8px; text-align: center; padding: 0 12px; }
.lightbox-nav { background: none; border: none; color: rgba(255,255,255,0.7); font-size: 40px; cursor: pointer; padding: 0 16px; display: flex; align-items: center; transition: all 0.15s; flex-shrink: 0; }
.lightbox-nav:hover:not(:disabled) { background: rgba(255,255,255,0.1); color: #fff; }
.lightbox-nav:disabled { opacity: 0.2; cursor: default; }
.lightbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 6px; padding: 12px; overflow-y: auto; flex-shrink: 0; max-height: 160px; background: #1a1a1a; }
.lightbox-thumb { aspect-ratio: 1; border-radius: 6px; overflow: hidden; cursor: pointer; background: #333; border: 2px solid transparent; transition: border-color 0.15s; }
.lightbox-thumb.active { border-color: var(--red); }
.lightbox-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s; }
.lightbox-thumb:hover img { transform: scale(1.05); }

/* ---- EVENT CARD BODY ---- */
.ev-result-banner {
  background: linear-gradient(135deg, #78350f, #b45309);
  border-radius: 12px; padding: 16px 20px; margin-bottom: 22px;
  display: flex; align-items: center; gap: 16px;
}
.ev-result-trophy { font-size: 36px; line-height: 1; flex-shrink: 0; }
.ev-result-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; color: rgba(255,255,255,0.7); margin-bottom: 4px; }
.ev-result-value { font-size: 20px; font-weight: 900; color: var(--gold); line-height: 1.2; }

.ev-meta-strip { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.ev-meta-chip { display: flex; align-items: center; gap: 10px; background: var(--light); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; }
.ev-meta-chip-icon { font-size: 20px; line-height: 1; flex-shrink: 0; }
.ev-meta-chip-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray); margin-bottom: 2px; }
.ev-meta-chip-val { font-size: 13px; font-weight: 700; color: var(--text); }

.ev-notes-callout { border-left: 4px solid var(--red); background: #fff8f8; border-radius: 0 10px 10px 0; padding: 14px 18px; margin-bottom: 20px; }
.ev-notes-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; color: var(--red); margin-bottom: 7px; }
.ev-notes-text { font-size: 13px; line-height: 1.7; color: var(--text); }

.ev-hotel-card { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px; padding: 16px 20px; margin-bottom: 20px; }
.ev-hotel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ev-hotel-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; color: #1d4ed8; }
.ev-hotel-book { background: #1d4ed8; color: #fff; padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; text-decoration: none; transition: background 0.2s; }
.ev-hotel-book:hover { background: #1e40af; }
.ev-hotel-text { font-size: 13px; color: var(--text); line-height: 1.6; }
.ev-hotel-code { margin-top: 8px; font-size: 12px; color: #1d4ed8; }

/* ---- ATTENDANCE GRID ---- */
.attend-summary-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.attend-summary-left { display: flex; flex-direction: column; gap: 6px; }
.attend-summary-title { font-size: 14px; font-weight: 800; color: var(--text); }
.attend-pips { display: flex; gap: 14px; font-size: 13px; }
.attend-toggle-btn { background: none; border: 1px solid var(--border); border-radius: 20px; padding: 6px 14px; font-size: 12px; font-weight: 700; cursor: pointer; color: var(--text-light); transition: all 0.2s; white-space: nowrap; flex-shrink: 0; }
.attend-toggle-btn:hover { border-color: var(--red); color: var(--red); }
.attend-grid-controls { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.attend-sort-btn { background: none; border: 1px solid var(--border); border-radius: 20px; padding: 5px 12px; font-size: 11px; font-weight: 700; cursor: pointer; color: var(--gray); transition: all 0.2s; }
.attend-sort-btn.active, .attend-sort-btn:hover { background: var(--dark); color: #fff; border-color: var(--dark); }
.attend-status-group { margin-bottom: 20px; }
.attend-status-group-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray); padding-bottom: 8px; margin-bottom: 10px; border-bottom: 1px solid var(--gray-light); }
.attend-player-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.attend-player-card { display: flex; flex-direction: column; align-items: center; padding: 12px 8px; border-radius: 10px; border: 1px solid var(--gray-light); background: var(--light); text-align: center; transition: all 0.15s; }
.attend-player-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.attend-card-yes { border-color: #86efac; background: #f0fdf4; }
.attend-card-maybe { border-color: #fde68a; background: #fefce8; }
.attend-card-no { border-color: #fca5a5; background: #fff5f5; opacity: 0.65; }
.attend-card-pending { border-color: var(--border); background: var(--light); }
.attend-player-avatar { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #fff; margin-bottom: 7px; flex-shrink: 0; }
.attend-player-name { font-size: 12px; font-weight: 700; color: var(--text); line-height: 1.3; }
.attend-player-status-icon { font-size: 13px; margin-top: 4px; }
.attend-player-note { font-size: 10px; color: var(--gray); margin-top: 3px; font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* ---- MODAL ---- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { background: var(--white); border-radius: var(--radius-lg); max-width: 600px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); transform: scale(0.95); transition: transform 0.2s; }
.modal-overlay.open .modal { transform: scale(1); }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--gray-light); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--white); z-index: 1; }
.modal-header h3 { font-size: 18px; font-weight: 800; }
.modal-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--gray); padding: 4px; border-radius: 4px; }
.modal-close:hover { color: var(--text); background: var(--gray-light); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--gray-light); display: flex; justify-content: flex-end; gap: 10px; }

/* ---- FORMS ---- */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}
.form-input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,16,46,0.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.form-hint { font-size: 12px; color: var(--text-light); margin-top: 4px; }

/* ---- FOOTER ---- */
#site-footer { background: var(--dark); color: rgba(255,255,255,0.8); padding: 50px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: 0 20px; max-width: 1400px; margin: 0 auto; }
.footer-brand { }
.footer-brand-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand-logo img { width: 48px; height: 48px; border-radius: 50%; object-fit: contain; border: 2px solid var(--red); }
.footer-brand-name { color: var(--white); font-size: 16px; font-weight: 800; }
.footer-tagline { color: rgba(255,255,255,0.6); font-size: 14px; margin-bottom: 20px; line-height: 1.6; }
.footer-social { display: flex; gap: 10px; }
.social-btn { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); display: flex; align-items: center; justify-content: center; font-size: 15px; transition: var(--transition); }
.social-btn:hover { background: var(--red); color: var(--white); }
.footer-col h4 { color: var(--white); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-link { color: rgba(255,255,255,0.6); font-size: 14px; transition: var(--transition); cursor: pointer; }
.footer-link:hover { color: var(--gold); }
.footer-bottom { margin-top: 40px; padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.08); text-align: center; color: rgba(255,255,255,0.4); font-size: 12px; max-width: 1400px; margin-left: auto; margin-right: auto; }

/* ---- ALERTS / NOTICES ---- */
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.alert-error { background: #fee2e2; color: #dc2626; border: 1px solid #fca5a5; }
.alert-info { background: #dbeafe; color: #1d4ed8; border: 1px solid #93c5fd; }
.alert-warning { background: #fef9c3; color: #92400e; border: 1px solid #fde047; }

/* ---- DIVIDER ---- */
.divider { height: 1px; background: var(--gray-light); margin: 20px 0; }
.divider-text { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; margin: 20px 0; }
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--gray-light); }

/* ---- PAGE BUILDER (Admin visual edit) ---- */
.pb-section { position: relative; border: 2px dashed transparent; border-radius: var(--radius); transition: border-color 0.2s; }
.pb-section:hover { border-color: var(--red); }
.pb-section-controls { position: absolute; top: -16px; right: 10px; display: none; gap: 6px; z-index: 10; }
.pb-section:hover .pb-section-controls { display: flex; }
.pb-ctrl-btn { padding: 4px 10px; font-size: 11px; font-weight: 700; border-radius: 4px; cursor: pointer; border: none; text-transform: uppercase; }
.pb-ctrl-edit { background: var(--red); color: #fff; }
.pb-ctrl-move { background: var(--dark); color: #fff; cursor: grab; }
.pb-ctrl-delete { background: #dc2626; color: #fff; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
  .news-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  #main-nav { display: none; }
  .mobile-menu-btn { display: block; }
  .cards-3 { grid-template-columns: 1fr; }
  .cards-2 { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .game-item { grid-template-columns: 80px 1fr; }
  .game-score, .game-result { grid-column: 2; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .hero-record { gap: 16px; }
  .section { padding: 40px 0; }
  .player-profile-inner { flex-direction: column; }
  .hero-season-record { width: 100%; flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
  .hero-season-w, .hero-season-l { font-size: 34px; }
}
@media (max-width: 480px) {
  .tabs { flex-direction: column; border-bottom: none; }
  .tab-btn { border-bottom: 1px solid var(--gray-light); }
}

/* ---- LOADING ---- */
.skeleton { background: linear-gradient(90deg, var(--gray-light) 25%, #f0f0f0 50%, var(--gray-light) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.spinner { width: 32px; height: 32px; border: 3px solid var(--gray-light); border-top-color: var(--red); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- SCROLL ANIMATIONS ---- */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ---- PAGE: COMING SOON ---- */
.coming-soon { text-align: center; padding: 80px 20px; }
.coming-soon h2 { font-size: 32px; font-weight: 900; margin-bottom: 12px; }
.coming-soon p { color: var(--text-light); margin-bottom: 24px; }

/* ─── PLAYER CAREER: BASEBALL-CARD BACK ─────────────────── */
/* Colors come from the player's card style (.cc-s-<style>); defaults are the 1979 look. */
.cc-s-1979, .cc-card { --cc-paper: #FBF6E9; --cc-ink: #1a1a1a; --cc-head: var(--dark); --cc-head-ink: #fff; --cc-head-sub: #d1d5db; --cc-band: var(--red); --cc-band-ink: #fff; --cc-rule: #E8DFC8; --cc-alt: rgba(0,0,0,0.035); --cc-alt-solid: #F2EDE0; --cc-total: #F1E9D2; --cc-high: var(--red); --cc-line: var(--dark); }
.cc-s-1957 { --cc-paper: #E4DFD3; --cc-head: #1C1C1C; --cc-band: #B5212B; --cc-rule: #CFC8B8; --cc-alt-solid: #DAD4C6; --cc-total: #D6CFBF; --cc-high: #B5212B; }
.cc-s-1971 { --cc-paper: #DADBD6; --cc-head: #111; --cc-band: #2E6B3F; --cc-rule: #C2C3BD; --cc-alt-solid: #CFD0CA; --cc-total: #C9CAC4; --cc-high: #2E6B3F; }
.cc-s-1975 { --cc-paper: #F7E6EA; --cc-head: #1F7A4D; --cc-head-sub: #d8f0e2; --cc-band: #C0396B; --cc-rule: #E8CBD3; --cc-alt-solid: #EFD9DF; --cc-total: #EBCFD6; --cc-high: #C0396B; --cc-line: #1F7A4D; }
.cc-s-1987 { --cc-paper: #FFF6CC; --cc-head: #1D3F8F; --cc-head-sub: #d6e0f7; --cc-band: #F2C40F; --cc-band-ink: #1D3F8F; --cc-rule: #EFE1A0; --cc-alt-solid: #F8EDB8; --cc-total: #F5E7A3; --cc-high: #C8102E; --cc-line: #1D3F8F; }
.cc-s-chrome { --cc-paper: #EEF1F5; --cc-head: linear-gradient(135deg, #2B2F36, #0F1115); --cc-band: linear-gradient(90deg, #9AA3AD, #E6E9EE 50%, #9AA3AD); --cc-band-ink: #111; --cc-rule: #DCE1E8; --cc-alt-solid: #E4E8EE; --cc-total: #DFE3EA; --cc-high: #7C3AED; --cc-line: #2B2F36; }

.cc-card { background: var(--cc-paper); border: 3px solid var(--dark); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); max-width: 1100px; margin: 0 auto; color: var(--cc-ink); }
.cc-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; background: var(--cc-head); color: var(--cc-head-ink); padding: 12px 18px; }
.cc-name { font-family: 'Arial Narrow', 'Roboto Condensed', 'Helvetica Neue', Arial, sans-serif; font-stretch: condensed; font-size: clamp(22px, 4vw, 32px); font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: 0.5px; }
.cc-sub { font-size: 13px; font-weight: 600; color: var(--cc-head-sub); }
.cc-band { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; background: var(--cc-band); color: var(--cc-band-ink); padding: 6px 18px; font-size: 13px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.cc-legend { font-size: 10px; font-weight: 700; letter-spacing: 0.5px; opacity: 0.85; }
.cc-legend em { font-style: italic; }
.cc-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cc-table { width: 100%; border-collapse: collapse; font-family: 'Arial Narrow', 'Roboto Condensed', 'Helvetica Neue', Arial, sans-serif; font-variant-numeric: tabular-nums; font-size: 15px; white-space: nowrap; }
.cc-table th { font-size: 12px; font-weight: 900; text-align: right; padding: 8px 10px 6px; border-bottom: 2px solid var(--cc-line); color: var(--cc-ink); }
.cc-table td { text-align: right; padding: 6px 10px; border-bottom: 1px solid var(--cc-rule); }
.cc-table tbody tr:nth-child(even) td { background: var(--cc-alt); }
.cc-table .cc-yr, .cc-table .cc-club { text-align: left; font-weight: 800; }
.cc-table .cc-club { font-weight: 700; text-transform: uppercase; }
.cc-table td.cc-high { color: var(--cc-high); font-style: italic; font-weight: 800; }
.cc-table tfoot td { font-weight: 900; border-top: 2px solid var(--cc-line); border-bottom: none; background: var(--cc-total); padding: 9px 10px; }
.cc-table .cc-yr { position: sticky; left: 0; background: var(--cc-paper); }
.cc-table tbody tr:nth-child(even) td.cc-yr { background: var(--cc-alt-solid); }
.cc-table tfoot td.cc-yr { background: var(--cc-total); }
.cc-table tbody tr.cc-sub-row td { background: var(--cc-total); font-weight: 800; border-bottom: 1px solid var(--cc-rule); }
.cc-table tbody tr.cc-sub-row td.cc-club { font-style: italic; text-transform: none; }
.cc-table tbody tr.cc-sub-row td.cc-yr { background: var(--cc-total); }
@media (max-width: 600px) {
  .cc-table { font-size: 13px; }
  .cc-table th, .cc-table td { padding-left: 7px; padding-right: 7px; }
}

/* ─── TRADING CARD STYLES (fronts) ───────────────────────── */
/* 1957 — full-bleed photo, small nameplate */
.tc-s-1957 { padding: 4%; background: #fff; }
.tc-s-1957 .tc-photo { border: none; }
.tc57-plate {
  position: absolute; left: 8%; bottom: 8%; z-index: 2; max-width: 80%;
  display: flex; flex-direction: column; gap: 0.6cqw;
  padding: 2cqw 3.5cqw; background: #fff; border-left: 2.5cqw solid var(--team);
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}
.tc57-name { font-size: 6.8cqw; font-weight: 900; color: #1C1C1C; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc57-meta { font-size: 4.4cqw; font-weight: 800; color: #555; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }

/* 1971 — black border, script signature */
.tc-s-1971 { padding: 6% 6% 0; background: #111; }
.tc-s-1971 .tc-photo { border: 1px solid #444; }
.tc71-team {
  align-self: flex-start; margin-bottom: 2.5cqw; padding-bottom: 0.8cqw;
  border-bottom: 1.2cqw solid var(--team);
  font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 900;
  font-size: 8cqw; line-height: 1; color: #fff; text-transform: uppercase; letter-spacing: 0.02em;
}
.tc71-sig {
  position: absolute; left: 10%; right: 10%; bottom: 19%; z-index: 2;
  font-family: 'Snell Roundhand', 'Brush Script MT', 'Segoe Script', cursive;
  font-size: 10cqw; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.95);
  transform: rotate(-6deg); white-space: nowrap; overflow: hidden;
}
.tc71-name { display: flex; justify-content: space-between; gap: 2cqw; padding: 2.8cqw 0 5cqw; color: #fff; font-size: 5.6cqw; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.tc71-name span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc71-name span:last-child { color: #aaa; flex-shrink: 0; }

/* 1975 — two-tone border, pennant name */
.tc-s-1975 { padding: 6% 6% 0; background: linear-gradient(to bottom, var(--team) 0 58%, #F0A500 58% 100%); }
.tc75-team { font-family: 'Cooper Black', Georgia, serif; font-weight: 900; font-size: 12cqw; line-height: 1; color: #fff; text-shadow: 0.6cqw 0.6cqw 0 #1C1C1C; padding-bottom: 2.4cqw; }
.tc75-frame { position: relative; flex: 1; display: flex; border: 1.6cqw solid #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.3); }
.tc75-frame .tc-photo { border: none; }
.tc75-badge {
  position: absolute; right: -4cqw; bottom: -7cqw; z-index: 2;
  width: 19cqw; height: 19cqw; border-radius: 50%; background: #fff; border: 1cqw solid #1C1C1C;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.tc75-badge img, .tc87-logo img, .tcch-logo img { width: 88%; height: 88%; object-fit: contain; border-radius: 50%; }
.tc75-name { padding: 3cqw 18cqw 1cqw 0; }
.tc75-name span { display: inline-block; max-width: 100%; padding: 1.2cqw 4cqw; border-radius: 999px; background: #fff; color: #1C1C1C; font-size: 6cqw; font-weight: 900; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc75-pos { padding: 0 0 4.5cqw 4cqw; font-size: 5.4cqw; font-weight: 900; color: #1C1C1C; text-transform: uppercase; }

/* 1987 — wood-grain border */
.tc-s-1987 {
  padding: 6%;
  background:
    linear-gradient(rgba(0,0,0,0.06), rgba(0,0,0,0.28)),
    repeating-linear-gradient(92deg, #6B4423 0 3px, #7C512B 3px 8px, #5E3B1E 8px 10px, #74492A 10px 15px);
}
.tc87-frame { position: relative; flex: 1; display: flex; border: 1.2cqw solid #F3EBD8; }
.tc87-frame .tc-photo { border: none; }
.tc87-logo {
  position: absolute; left: -4cqw; top: -4cqw; z-index: 2;
  width: 21cqw; height: 21cqw; border-radius: 50%; background: #fff; border: 1cqw solid var(--team);
  display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}
.tc87-name {
  position: relative; z-index: 2; align-self: flex-end; max-width: 92%; margin-top: -5cqw;
  padding: 1.6cqw 4cqw; background: var(--team); border: 0.8cqw solid #F3EBD8;
  color: #fff; font-size: 6cqw; font-weight: 900; text-transform: uppercase; text-shadow: 0 1px 1px rgba(0,0,0,0.4);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tc87-team { padding-top: 2cqw; text-align: right; color: #F3EBD8; font-size: 4.8cqw; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }

/* Chrome — refractor shine */
.tc-s-chrome { padding: 3.5%; overflow: hidden; background: conic-gradient(from 210deg, #ff6b6b, #ffd93d, #6bff95, #4dd2ff, #b06bff, #ff6bd5, #ff6b6b); }
.tc-s-chrome .tc-photo { border: none; border-radius: 6px; }
.tc-s-chrome .tc-photo::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, transparent 48%); }
.tcch-shine {
  position: absolute; inset: 3.5%; z-index: 2; pointer-events: none; border-radius: 6px;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.38) 45%, transparent 60%);
  background-size: 250% 100%; background-position: 120% 0; mix-blend-mode: screen;
}
.tc-card:hover .tcch-shine, .tcv-face .tcch-shine, .tcp-opt .tcch-shine { animation: tcch-shine 3.2s linear infinite; }
@keyframes tcch-shine { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.tcch-logo {
  position: absolute; left: 7%; top: 6%; z-index: 3;
  width: 16cqw; height: 16cqw; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0.9cqw rgba(255,255,255,0.55);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.tcch-name { position: absolute; left: 8%; right: 8%; bottom: 13%; z-index: 3; display: flex; flex-direction: column; line-height: 1; text-transform: uppercase; }
.tcch-name span { font-size: 5.4cqw; font-weight: 800; color: #e5e7eb; letter-spacing: 0.12em; }
.tcch-name strong {
  font-size: 11cqw; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(180deg, #fff 0%, #c0c6cf 45%, #8a919c 55%, #f3f4f6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.8));
}
.tcch-meta { position: absolute; left: 8%; bottom: 7%; z-index: 3; color: #fff; font-size: 4.4cqw; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; text-shadow: 0 1px 2px #000; }
@media (prefers-reduced-motion: reduce) { .tcch-shine { animation: none !important; } }

/* ─── PLAYER PROFILE CARD + STYLE PICKER ─────────────────── */
.player-profile-card { width: 150px; aspect-ratio: 5 / 7; flex-shrink: 0; cursor: pointer; transition: transform 0.2s ease; transform: rotate(-2deg); }
.player-profile-card:hover, .player-profile-card:focus-visible { transform: rotate(0deg) translateY(-4px); outline: none; }
.pp-card-style-btn { margin-top: 12px; margin-left: 6px; padding: 7px 16px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.12); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.pp-card-style-btn:hover { background: rgba(255,255,255,0.22); }
.tcp-overlay { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(10,10,10,0.82); }
.tcp-panel { width: min(980px, 100%); max-height: 100%; overflow: auto; background: var(--white); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-lg); }
.tcp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.tcp-head h3 { font-size: 22px; font-weight: 900; color: var(--dark); }
.tcp-head p { font-size: 13px; color: var(--gray); margin-top: 2px; }
.tcp-close { width: 34px; height: 34px; border-radius: 50%; background: var(--gray-light); color: var(--dark); font-size: 15px; flex-shrink: 0; }
.tcp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.tcp-opt { display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 12px; background: transparent; border: 3px solid transparent; text-align: center; transition: border-color 0.15s, background 0.15s; }
.tcp-opt:hover { background: var(--light); }
.tcp-opt.selected { border-color: var(--red); background: #fff5f5; }
.tcp-card { aspect-ratio: 5 / 7; }
.tcp-label strong { display: block; font-size: 15px; font-weight: 900; color: var(--dark); }
.tcp-label span { font-size: 11px; color: var(--gray); }
@media (max-width: 480px) { .tcp-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
