/* ─── VARIABLES ─────────────────────────────── */
:root {
  --bg: #0e0e0e;
  --surface: #181818;
  --surface2: #222222;
  --border: #2e2e2e;
  --accent: #c0392b;       /* JFF red */
  --accent-bright: #e74c3c;
  --gold: #c9a84c;         /* JFF gold (Monas spire) */
  --text: #f2f2f2;
  --muted: #888;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
}

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

/* ─── NAV ────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 2rem;
  background: rgba(14,14,14,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex; align-items: center; gap: 0.75rem;
}

.nav-logo img {
  height: 36px; width: auto;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: var(--text);
  line-height: 1.1;
}

.nav-logo-text span {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: uppercase;
}

.nav-links { display: flex; gap: 2rem; }

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover { color: var(--text); }
.nav-links a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* ─── HERO ───────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  padding-top: 60px;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 75% 40%, rgba(192,57,43,0.12) 0%, transparent 65%),
    radial-gradient(ellipse 30% 40% at 15% 70%, rgba(201,168,76,0.06) 0%, transparent 60%);
}

.hero-grid-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* diagonal red stripe accent */
.hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 6px; height: 100%;
  background: var(--accent);
}

.hero-content {
  position: relative; z-index: 2;
  padding: 0 2rem;
  max-width: 1100px; margin: 0 auto;
  width: 100%;
}

.hero-label {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.2s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 11rem);
  line-height: 0.88;
  letter-spacing: -0.01em;
  opacity: 0;
  animation: fadeUp 0.6s 0.4s forwards;
}

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

.hero-sub {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: var(--muted);
  max-width: 480px;
  opacity: 0;
  animation: fadeUp 0.6s 0.6s forwards;
}

.hero-cta {
  margin-top: 2.5rem;
  display: flex; gap: 1rem; flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.6s 0.8s forwards;
}

.btn-primary {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.15s;
}

.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(192,57,43,0.35);
}

.btn-secondary {
  display: inline-block;
  padding: 0.85rem 2rem;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: border-color 0.2s;
}

.btn-secondary:hover { border-color: var(--muted); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── STATS BAR ──────────────────────────────── */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  background: var(--accent);
  padding: 1.75rem 2rem;
}

.stat-item {
  display: flex; flex-direction: column;
  align-items: center;
  padding: 0.25rem 3rem;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: #fff;
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-top: 0.2rem;
}

.stat-divider {
  width: 1px; height: 40px;
  background: rgba(255,255,255,0.25);
}

/* ─── SECTIONS ───────────────────────────────── */
.section { padding: 4rem 0; }
.section-dark { background: var(--surface); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.05em;
}

.section-header h2::after {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 0.5rem;
  vertical-align: middle;
  margin-bottom: 3px;
}

.see-all {
  font-size: 0.82rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.see-all:hover { color: var(--accent-bright); }

/* ─── TOURNAMENT CARD ────────────────────────── */
.tournament-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.tournament-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 1.5rem;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
  display: block;
}

.tournament-card:hover {
  background: #272727;
  transform: translateY(-2px);
  border-left-color: var(--gold);
}

.tc-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.tc-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.tc-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.tc-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--muted);
}

/* ─── LEADERBOARD ────────────────────────────── */
.leaderboard { display: flex; flex-direction: column; gap: 0.4rem; }

.lb-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 3px;
  transition: border-color 0.2s, background 0.2s;
}

.lb-row:hover {
  border-color: var(--accent);
  background: #272727;
}

.lb-rank {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--border);
  width: 30px;
  text-align: center;
}

.lb-row:nth-child(1) .lb-rank { color: var(--gold); }
.lb-row:nth-child(2) .lb-rank { color: #aaa; }
.lb-row:nth-child(3) .lb-rank { color: #a0522d; }

.lb-name { flex: 1; font-weight: 500; }
.lb-stat { font-size: 0.85rem; color: var(--muted); min-width: 40px; text-align: right; }
.lb-stat.accent { color: var(--gold); font-weight: 600; }
.lb-stat.muted { color: #555; }

/* ─── PAGE HEADER ────────────────────────────── */
.page-header {
  padding: 8rem 0 3rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 3px; width: 80px;
  background: var(--accent);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: 0.02em;
  line-height: 1;
}

.page-sub {
  color: var(--muted);
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

/* ─── FILTER BAR ─────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.search-input,
.filter-select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.6rem 1rem;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
}

.search-input { flex: 1; min-width: 200px; }
.search-input:focus,
.filter-select:focus { border-color: var(--accent); }

/* ─── TOURNAMENT LIST ────────────────────────── */
.tournament-list { display: flex; flex-direction: column; gap: 0.4rem; }

.tournament-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  gap: 1rem;
}

.tournament-row:hover {
  border-left-color: var(--accent);
  background: var(--surface2);
}

.tr-name { font-weight: 600; margin-bottom: 0.2rem; }
.tr-meta { font-size: 0.78rem; color: var(--muted); }
.tr-right { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

.tr-badge {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--muted);
}

.tr-arrow { color: var(--accent); font-size: 1.1rem; }

/* ─── MODAL ──────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 4px;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  padding: 2rem;
}

.modal-close {
  position: sticky; top: 0; float: right;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.5rem;
  transition: background 0.2s;
}

.modal-close:hover { background: var(--accent); border-color: var(--accent); }

.modal-title {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
}

.modal-meta { font-size: 0.82rem; color: var(--muted); margin-bottom: 1.5rem; }

.modal-section-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  margin: 1.5rem 0 0.75rem;
  color: var(--gold);
  text-transform: uppercase;
}

.modal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.modal-table th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.modal-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.modal-table tr:first-child td { color: var(--gold); font-weight: 600; }
.modal-table a:hover { color: var(--accent-bright); }

.stage-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin: 1rem 0 0.4rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border);
}

.match-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.86rem;
}

.match-row.no-score { opacity: 0.45; }
.match-team { font-weight: 500; }
.match-team.right { text-align: right; }
.match-team.winner { color: var(--accent-bright); font-weight: 700; }
.match-score {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--muted);
  white-space: nowrap;
  padding: 0 0.5rem;
}

.award-row {
  display: flex; justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.86rem;
}

.award-name { font-weight: 600; }
.award-desc { color: var(--muted); font-size: 0.8em; margin-left: 0.4em; }
.award-recipient { color: var(--accent); font-weight: 500; text-align: right; }

.round-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0.6rem 0 0.2rem;
  padding-left: 0.2rem;
}

/* ─── TEAMS GRID ─────────────────────────────── */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
  display: block;
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s;
  transform-origin: left;
}

.team-card:hover {
  border-color: #3a3a3a;
  background: var(--surface2);
  transform: translateY(-2px);
}

.team-card:hover::before { transform: scaleX(1); }

.team-card-avatar {
  width: 44px; height: 44px;
  background: var(--accent);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 1rem;
}

.team-card-name { font-weight: 600; margin-bottom: 0.5rem; font-size: 0.95rem; }

.team-card-stats {
  display: flex; justify-content: space-between;
  font-size: 0.83rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.wr-badge {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
}

.team-card-meta { font-size: 0.75rem; color: var(--muted); }

/* ─── PROFILE ────────────────────────────────── */
.profile-hero {
  padding: 8rem 0 3rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.profile-hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  height: 3px; width: 120px;
  background: var(--accent);
}

.back-link {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  transition: color 0.2s;
}

.back-link:hover { color: var(--accent-bright); }

.profile-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.profile-stats-row {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

.pstat {
  display: flex; flex-direction: column;
  padding-right: 2.5rem;
  margin-right: 2.5rem;
  border-right: 1px solid var(--border);
}

.pstat:last-child { border-right: none; }

.pstat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
}

.pstat-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 0.2rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

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

.section-label {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--gold);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.history-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.2s;
}

.history-row:hover { opacity: 0.7; cursor: pointer; }
.history-medal { font-size: 1.2rem; width: 32px; text-align: center; flex-shrink: 0; }
.history-info { flex: 1; }
.history-comp { font-weight: 500; font-size: 0.88rem; }
.history-date { font-size: 0.75rem; color: var(--muted); }
.history-record { font-size: 0.82rem; color: var(--muted); white-space: nowrap; }

.match-history-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}

.result-badge {
  width: 26px; height: 26px;
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.result-badge.w { background: rgba(192,57,43,0.2); color: var(--accent-bright); }
.result-badge.l { background: rgba(255,255,255,0.06); color: #666; }
.result-badge.d { background: rgba(201,168,76,0.15); color: var(--gold); }

.mh-info { flex: 1; }
.mh-opponent { font-weight: 500; font-size: 0.88rem; }
.mh-comp { font-size: 0.72rem; color: var(--muted); }
.mh-score { font-family: var(--font-display); font-size: 1.1rem; color: var(--muted); }

/* ─── FOOTER ─────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-logo img {
  height: 48px; width: auto;
  margin-bottom: 0.75rem;
  opacity: 0.85;
}

.footer-small { font-size: 0.72rem; margin-top: 0.3rem; opacity: 0.45; }

/* ─── UTILS ──────────────────────────────────── */
.loading { color: var(--muted); font-size: 0.88rem; padding: 2rem 0; }
.empty { color: var(--muted); font-size: 0.88rem; padding: 1rem 0; font-style: italic; }

/* ─── BOTTOM TAB BAR ─────────────────────────── */
.bottom-tab-bar {
  display: none; /* hidden on desktop */
}

@media (max-width: 768px) {
  .container { padding: 0 1rem; }
  .page-header { padding: 6rem 0 2rem; }
  .profile-hero { padding: 6rem 0 2rem; }
  .profile-grid { grid-template-columns: 1fr; }
  .teams-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .modal { padding: 1.25rem; }
  .modal-title { font-size: 1.5rem; }
  .match-row { font-size: 0.78rem; gap: 0.4rem; }
  .tr-right { display: none; }
  .tournament-row { padding: 0.85rem 1rem; }
  .btn-primary, .btn-secondary { padding: 0.75rem 1.5rem; font-size: 0.78rem; }
  /* Add padding so content doesn't hide behind bottom tab bar */
  body { padding-bottom: 64px; }
}

@media (max-width: 480px) {
  /* ── Nav: hide logo text, keep icon only ── */
  .nav { padding: 0.75rem 1rem; }
  .nav-logo-text { display: none; }
  /* ── Hide nav links — replaced by bottom tab bar ── */
  .nav-links { display: none; }

  /* ── Bottom tab bar ── */
  .bottom-tab-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 200;
    background: rgba(14,14,14,0.97);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    height: 64px;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: var(--muted);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.2s;
    padding: 8px 4px;
  }
  .tab-item.active { color: var(--accent); }
  .tab-item:hover { color: var(--text); }
  .tab-icon { font-size: 1.3rem; line-height: 1; }
  .tab-item.playbook { color: var(--gold); }
  .tab-item.playbook.active { color: var(--gold); }

  /* ── Stats bar: 3-column grid ── */
  .stats-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 0;
  }
  .stat-divider { display: none; }
  .stat-item {
    padding: 1rem 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }
  .stat-item:not(:last-child) { border-right: 1px solid rgba(255,255,255,0.15); }
  .stat-num { font-size: 1.8rem; }
  .stat-label { font-size: 0.58rem; letter-spacing: 0.07em; }

  /* ── Leaderboard: clean 3-column layout ── */
  .lb-row {
    display: grid;
    grid-template-columns: 28px 1fr 36px 36px;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.9rem;
    overflow: hidden;
  }
  .lb-rank { font-size: 1.1rem; width: auto; text-align: center; }
  .lb-name { font-size: 0.84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .lb-stat { font-size: 0.78rem; text-align: right; min-width: 0; }
  .lb-stat.accent { display: none; } /* hide tournament count, show only W/L */

  /* Profile */
  .pstat { padding-right: 1rem; margin-right: 1rem; }
  .pstat-num { font-size: 1.8rem; }

  /* Hero */
  .hero-title { font-size: clamp(3.5rem, 18vw, 5rem); }
}

/* ─── HERO PHOTO PANEL ───────────────────────── */
.hero-photo-panel {
  position: absolute;
  right: 6px; /* account for red stripe */
  top: 0;
  bottom: 0;
  width: 46%;
  overflow: hidden;
  pointer-events: none;
}

.hero-photo-panel img {
  position: absolute;
  top: -1%;
  left: 0;
  right: 0;
  width: 100%;
  height: 140%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  will-change: transform;
}

.hero-photo-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg) 0%, rgba(14,14,14,0.55) 30%, transparent 58%);
  z-index: 1;
}

.hero-photo-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, transparent 25%);
  z-index: 1;
}

@media (max-width: 900px) {
  .hero-photo-panel {
    display: block;
    width: 100%;
    left: 0;
    right: 0;
  }
  .hero-photo-panel::before {
    background: rgba(14,14,14,0.82);
  }
}

/* ─── PHOTO STRIP ────────────────────────────── */
.photo-strip {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.photo-strip-img {
  position: absolute;
  top: -20%;
  left: 0;
  right: 0;
  width: 100%;
  height: 140%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  will-change: transform;
}

.photo-strip-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(14,14,14,0.7) 0%, rgba(14,14,14,0.2) 50%, rgba(14,14,14,0.55) 100%),
    linear-gradient(to top, rgba(14,14,14,0.85) 0%, transparent 35%),
    linear-gradient(to bottom, rgba(14,14,14,0.85) 0%, transparent 35%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-strip-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.photo-strip-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.photo-strip-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  letter-spacing: 0.05em;
  color: var(--text);
  line-height: 1;
}

.photo-strip-headline span {
  color: var(--text);
}

/* ─── ABOUT HERO PHOTO ───────────────────────── */
.about-hero-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.about-hero-photo img {
  position: absolute;
  top: -10%;
  left: 0;
  right: 0;
  width: 100%;
  height: 140%;
  object-fit: cover;
  object-position: center -10%;
  display: block;
  will-change: transform;
}

.about-hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, var(--bg) 0%, rgba(14,14,14,0.6) 28%, transparent 60%),
    linear-gradient(to top, var(--bg) 0%, transparent 28%),
    linear-gradient(to bottom, rgba(14,14,14,0.7) 0%, transparent 40%);
}

.about-hero > *:not(.about-hero-photo) {
  position: relative;
  z-index: 1;
}

.about-hero-text {
  display: block;
  max-width: 720px;
  position: relative;
  z-index: 1;
}

/* ─── PAGE HEADER PHOTO ──────────────────────── */
.page-header-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.page-header-photo img {
  position: absolute;
  top: -20%;
  left: 0;
  right: 0;
  width: 100%;
  height: 140%;
  object-fit: cover;
  object-position: center 27%;
  display: block;
  will-change: transform;
}

.page-header-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, var(--bg) 0%, rgba(14,14,14,0.6) 30%, transparent 65%),
    linear-gradient(to top, var(--bg) 0%, transparent 30%),
    linear-gradient(to bottom, rgba(14,14,14,0.8) 0%, transparent 45%);
}

.page-header > *:not(.page-header-photo) {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .page-header-photo img {
    top: 0;
    height: 100%;
    object-position: center top;
  }
  .page-header-photo::after {
    background: rgba(14,14,14,0.82);
  }
  .about-hero-photo::after {
    background: rgba(14,14,14,0.82);
  }
}

/* ─── ABOUT ACTION PHOTO ─────────────────────── */
.about-action-photo {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}

.about-action-photo img {
  position: absolute;
  top: -20%;
  left: 0;
  right: 0;
  width: 100%;
  height: 140%;
  object-fit: cover;
  object-position: 60% center;
  display: block;
  will-change: transform;
}

.about-action-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,14,14,0.65) 0%, transparent 45%);
}

/* ─── WOMEN'S PHOTO STRIP ────────────────────── */
.women-photo-strip {
  position: relative;
  height: 280px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 4rem;
}

.women-photo-strip img {
  position: absolute;
  top: -20%;
  left: 0;
  right: 0;
  width: 100%;
  height: 140%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  will-change: transform;
}

.women-photo-strip-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(14,14,14,0.75) 0%, transparent 50%),
    linear-gradient(to top, rgba(14,14,14,0.6) 0%, transparent 40%);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

.women-photo-strip-text .strip-label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.women-photo-strip-text .strip-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1;
}

/* ─── PLAYBOOK NAV LINK ──────────────────────── */
.nav-playbook { color: var(--gold) !important; border-bottom-color: transparent !important; }
.nav-playbook:hover { color: var(--accent-bright) !important; }
/* ─── TEAM LOGOS ─────────────────────────────── */
.team-logo {
  border-radius: 6px;
  flex-shrink: 0;
}
/* Card grid logo - sits above the name */
.team-card { align-items: center; }
.team-card-logo { border-radius: 8px; margin-bottom: 0.25rem; }

/* Leaderboard logo */
.lb-logo { border-radius: 4px; }
.lb-row { display: flex; align-items: center; gap: 0.6rem; }

/* Profile header logo */
.profile-name { display: flex; align-items: center; gap: 1rem; }
.profile-logo { border-radius: 10px; }

/* Modal standings logo */
.modal-team-logo { border-radius: 3px; }
