/* =========================================================================
   VANTS TRACK — High-Craft Architectural Dark UI (Astro.build × TRACK)
   Zero visual clutter, crisp 1px hairlines, generous whitespace, pure SVGs.
   ========================================================================= */
:root {
  color-scheme: dark;
  --bg-black: #07080b;
  --bg: #0c0d11;
  --surface: #13151b;
  --surface-2: #171920;
  --surface-3: #1e212b;
  --line: #262933;
  --line-soft: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.12);
  --tx-1: #ffffff;
  --tx-2: #b4b8c4;
  --tx-3: #7d8392;
  --red: #ef233c;
  --red-hover: #f7364e;
  --teal: #2dd4bf;
  --cyan: #14c6d4;
  --lime: #7cff3a;
  --gold: #f5a623;
  --violet: #7c3aed;
  --astro-grad: linear-gradient(83.21deg, #3245ff 0%, #b845ed 100%);
  --new-grad: linear-gradient(90deg, #f59e0b 0%, #fde047 100%);
  --f-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--tx-1); font-family: var(--f-body); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; letter-spacing: -0.025em; }
.ico { width: 16px; height: 16px; display: inline-block; flex: none; vertical-align: middle; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-black); }
::-webkit-scrollbar-thumb { background: #262933; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #373b49; }

/* ====================== Global Navbar (Astro + TRACK) ====================== */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(7, 8, 11, 0.88); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; height: 72px; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; flex: none;
  font-family: var(--f-display); font-weight: 700; font-size: 18px; letter-spacing: 0.04em;
  color: #fff;
}
.brand-bolt { width: 22px; height: 22px; color: var(--red); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative; padding: 8px 12px; border-radius: 7px; white-space: nowrap;
  font-size: 14px; font-weight: 500; color: var(--tx-2); transition: color .15s, background .15s;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.04); }
.nav-link.active { color: #fff; }
.nav-link.active::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: -18px;
  height: 2px; background: var(--red);
}

.header-right { display: flex; align-items: center; gap: 10px; flex: none; }
.live-badge {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-family: var(--f-mono); font-size: 11px; font-weight: 600; color: var(--teal);
  padding: 5px 10px; border-radius: 99px; border: 1px solid rgba(45, 212, 191, 0.28);
  background: rgba(45, 212, 191, 0.07);
}
.live-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

/* Sub-bar: Global Game Switcher (TRACK Tier) */
.game-strip {
  background: #0a0b0f; border-bottom: 1px solid var(--line);
}
.game-strip-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 32px; height: 46px;
  display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none;
}
.game-strip-inner::-webkit-scrollbar { display: none; }
.g-tab {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 12px; font-size: 13px; font-weight: 500;
  color: var(--tx-3); white-space: nowrap; transition: color .15s; flex: none;
}
.g-tab img { width: 16px; height: 16px; border-radius: 3px; object-fit: cover; opacity: .75; }
.g-tab:hover { color: #fff; }
.g-tab:hover img, .g-tab.active img { opacity: 1; }
.g-tab.active { color: #fff; }
.g-tab.active::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: var(--red); }

/* ====================== Buttons ====================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 6px;
  font-size: 13.5px; font-weight: 600; transition: all .15s; white-space: nowrap;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hover); }
.btn-outline { background: transparent; color: var(--tx-1); border: 1px solid var(--line); }
.btn-outline:hover { border-color: #4b5063; background: rgba(255, 255, 255, 0.03); }
.btn-ghost { color: var(--tx-2); padding: 0 12px; }
.btn-ghost:hover { color: #fff; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 12.5px; }
.btn-ok { background: var(--teal); color: #07080b; }

/* Running Game / Download Bars */
.status-strip {
  max-width: 1200px; margin: 20px auto 0; padding: 0 32px;
}
.status-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 12px 18px; border-radius: 8px; background: var(--surface);
  border: 1px solid var(--line);
}
.status-card.live { border-color: rgba(45, 212, 191, 0.45); background: rgba(45, 212, 191, 0.06); }
.dl-track { height: 5px; width: 100%; background: #232630; border-radius: 99px; overflow: hidden; margin-top: 6px; }
.dl-fill { height: 100%; background: var(--red); transition: width .2s linear; }

/* ====================== Architectural Grid Hero (Astro.build) ====================== */
.astro-hero {
  position: relative; padding: 88px 32px 72px; text-align: center;
  border-bottom: 1px solid var(--line);
  background-color: var(--bg);
  background-image:
    radial-gradient(48% 65% at 50% 45%, rgba(239, 35, 60, 0.14), rgba(50, 69, 255, 0.07) 45%, transparent 78%),
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px, 28px 28px;
}
.astro-hero h1 {
  max-width: 820px; margin: 0 auto; font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 700; line-height: 1.08; color: #fff; text-wrap: balance;
}
.astro-hero p {
  max-width: 600px; margin: 16px auto 0; font-size: 16px; line-height: 1.6; color: var(--tx-2);
}

/* ====================== Page 1: TRACK Home / All Games ====================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.home-top {
  background: radial-gradient(60% 80% at 20% 0%, rgba(239, 35, 60, 0.12), transparent 65%), var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 52px 0 44px;
}
.home-headline {
  font-size: clamp(26px, 3vw, 34px); font-weight: 700; color: #fff; margin-bottom: 28px;
}
.home-metrics-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.home-metrics { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.hm-item { display: flex; flex-direction: column; gap: 4px; }
.hm-item b { font-family: var(--f-display); font-size: 24px; font-weight: 700; color: #fff; }
.hm-item span { font-size: 12.5px; color: var(--tx-3); }
.hm-div { width: 1px; height: 34px; background: var(--line); }
.compliant-icons { display: flex; align-items: center; gap: 12px; color: var(--tx-2); font-size: 12px; font-weight: 700; font-family: var(--f-mono); }

.section-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin: 44px 0 22px;
}
.section-bar h2 { font-size: 20px; font-weight: 600; color: #fff; display: inline-flex; align-items: baseline; gap: 14px; }
.section-bar small { font-family: var(--f-body); font-size: 13px; font-weight: 400; color: var(--tx-3); }

/* 5-Column Vertical 3:4 Poster Grid (Exact TRACK Image 1) */
.poster-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px;
  margin-bottom: 72px;
}
.poster-card {
  display: flex; flex-direction: column; gap: 10px; text-align: left;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.poster-card:hover { transform: translateY(-4px); }
.poster-art {
  position: relative; aspect-ratio: 3 / 4; width: 100%;
  border-radius: 8px; overflow: hidden; border: 1px solid var(--line);
  background: var(--surface);
}
.poster-art img.keyart {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.poster-card:hover .poster-art img.keyart { transform: scale(1.04); }
.poster-art::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 8, 11, 0) 45%, rgba(7, 8, 11, 0.88) 100%);
}
.poster-overlay {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.poster-logo {
  width: 28px; height: 28px; border-radius: 6px; object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.poster-status {
  font-family: var(--f-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.04em;
  padding: 3px 7px; border-radius: 4px; background: rgba(7, 8, 11, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14); color: var(--tx-2);
}
.poster-status.installed { color: var(--teal); border-color: rgba(45, 212, 191, 0.4); }
.poster-status.update { color: var(--gold); border-color: rgba(245, 166, 35, 0.45); }
.poster-title {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.poster-title b { font-size: 14px; font-weight: 600; color: var(--tx-1); }
.poster-title span { font-size: 11.5px; color: var(--tx-3); font-family: var(--f-mono); }

/* ====================== Page 2: TRACK Game Tracker (Images 2 & 3) ====================== */
.tx-banner {
  position: relative; border-bottom: 1px solid var(--line);
  background-size: cover; background-position: center; overflow: hidden;
}
.tx-banner::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(50% 80% at 25% 45%, rgba(239, 35, 60, 0.18), transparent 65%),
    linear-gradient(180deg, rgba(12, 13, 17, 0.65) 0%, rgba(12, 13, 17, 0.96) 100%);
}
.tx-banner-inner {
  position: relative; z-index: 1; max-width: 1200px; margin: 0 auto;
  padding: 58px 32px 54px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
}
.tx-left { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.tx-wordmark {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-display); font-size: 36px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.tx-wordmark img { width: 36px; height: 36px; border-radius: 8px; }
.tx-white-search {
  width: 100%; max-width: 440px; height: 46px; background: #ffffff; border-radius: 999px;
  display: flex; align-items: center; gap: 10px; padding: 0 8px 0 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.tx-white-search svg { color: #6b7280; }
.tx-white-search input {
  flex: 1; border: 0; outline: none; background: transparent;
  color: #111318; font-size: 14px; font-weight: 500;
}
.tx-white-search input::placeholder { color: #6b7280; }
.tx-white-search button {
  height: 32px; padding: 0 14px; border-radius: 999px;
  background: #111318; color: #fff; font-size: 12px; font-weight: 600;
}
.tx-inline-stats {
  display: flex; align-items: center; gap: 22px; font-size: 13px; color: var(--tx-2);
}
.tx-inline-stats b { color: #fff; font-weight: 600; }

/* 3 Staggered Translucent Podium Cards (Exact TRACK Image 3) */
.podium-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; }
.pod-card {
  background: rgba(19, 21, 27, 0.78); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.11); border-radius: 8px;
  padding: 20px 14px 14px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px;
  position: relative;
}
.pod-card.p1 { padding-top: 26px; min-height: 224px; border-color: rgba(245, 166, 35, 0.42); }
.pod-card.p2 { min-height: 204px; }
.pod-card.p3 { min-height: 184px; }
.pod-rank {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--surface-2); border: 1px solid var(--line-strong);
  padding: 2px 10px; border-radius: 4px; font-family: var(--f-mono); font-size: 11px; font-weight: 700; color: #fff;
}
.pod-card.p1 .pod-rank { border-color: rgba(245, 166, 35, 0.5); color: var(--gold); }
.pod-region { font-size: 11.5px; color: var(--tx-3); }
.pod-av {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 16px; color: #fff; border: 2px solid rgba(255, 255, 255, 0.15);
}
.pod-card b { font-size: 13.5px; font-weight: 600; color: #fff; }
.pod-rr { font-family: var(--f-mono); font-size: 11.5px; color: var(--tx-2); }
.pod-foot {
  margin-top: auto; width: 100%; height: 30px; border-radius: 5px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-soft);
  font-size: 11.5px; font-weight: 500; color: var(--tx-2);
}
.pod-foot:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* 2-Column Statistics & Training Videos (Exact TRACK Image 3) */
.tx-section { padding: 52px 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.matte-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 24px 26px; display: flex; flex-direction: column; gap: 16px;
}
.matte-card h3 { font-size: 18px; font-weight: 600; color: #fff; }
.matte-sub { margin: -10px 0 0; font-size: 13px; color: var(--tx-3); line-height: 1.5; }
.stat-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.stat-table th {
  font-size: 12px; font-weight: 500; color: var(--tx-3); text-align: left;
  padding: 8px 6px 12px; border-bottom: 1px solid var(--line);
}
.stat-table td {
  padding: 11px 6px; font-size: 13.5px; color: var(--tx-2);
  border-bottom: 1px solid var(--line-soft);
}
.stat-table tr:last-child td { border-bottom: 0; }
.ag-cell { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 500; }
.ag-badge {
  width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #fff; flex: none;
}
.card-foot-link {
  margin-top: auto; padding-top: 8px; text-align: center;
  font-size: 13px; font-weight: 600; color: var(--tx-2);
}
.card-foot-link:hover { color: #fff; }

.clip-row {
  display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: 8px;
  transition: background .15s; text-align: left; width: 100%;
}
.clip-row:hover { background: rgba(255, 255, 255, 0.035); }
.clip-thumb-sm {
  width: 108px; height: 64px; border-radius: 6px; overflow: hidden; position: relative; flex: none;
  border: 1px solid var(--line);
}
.clip-thumb-sm img { width: 100%; height: 100%; object-fit: cover; }
.clip-thumb-sm span {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 24px; height: 24px; border-radius: 50%; background: rgba(7, 8, 11, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.25); color: #fff; display: grid; place-items: center;
}
.clip-info { flex: 1; min-width: 0; }
.clip-info b { display: block; font-size: 13.5px; font-weight: 500; color: #fff; margin-bottom: 6px; line-height: 1.35; }
.tag-line { display: flex; flex-wrap: wrap; gap: 6px; }
.dot-pill {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--tx-2);
  background: var(--surface-2); border: 1px solid var(--line-soft); padding: 2px 8px; border-radius: 4px;
}
.dot-pill i { width: 6px; height: 6px; border-radius: 50%; }

/* The Latest — 3 Tall Editorial Cards (Exact TRACK Image 3) */
.latest-head { text-align: center; margin: 12px 0 26px; font-size: 16px; color: var(--tx-3); }
.latest-head b { color: #fff; font-weight: 600; margin-right: 8px; }
.latest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.latest-card {
  position: relative; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line); text-align: left;
}
.latest-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.latest-card:hover img { transform: scale(1.04); }
.latest-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(7, 8, 11, 0.92) 100%);
}
.latest-cap { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2; }
.latest-cap small { font-family: var(--f-mono); font-size: 11px; color: var(--teal); text-transform: uppercase; }
.latest-cap b { display: block; font-size: 16px; margin-top: 4px; color: #fff; }

/* Performance Section (Exact TRACK Image 2) */
.perf-wrap {
  border-top: 1px solid var(--line); padding: 64px 0 56px;
}
.perf-title { text-align: center; font-size: 22px; font-weight: 600; margin-bottom: 22px; }
.chip-rows { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 780px; margin: 0 auto 38px; }
.subtle-chip {
  padding: 7px 14px; border-radius: 999px; font-size: 12px; font-weight: 500;
  color: var(--tx-2); border: 1px solid var(--line); background: transparent; transition: all .15s;
}
.subtle-chip:hover, .subtle-chip.active { color: #fff; border-color: rgba(255, 255, 255, 0.35); background: var(--surface); }

.perf-grid { display: grid; grid-template-columns: 310px 1fr; gap: 20px; align-items: start; }
.rank-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 18px; display: flex; flex-direction: column; gap: 16px;
}
.rank-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.rank-tab {
  height: 30px; border-radius: 5px; font-size: 12px; font-weight: 500; color: var(--tx-2);
  background: var(--surface-2); border: 1px solid var(--line-soft);
}
.rank-tab.active { color: #fff; border-color: var(--line-strong); background: var(--surface-3); }
.rank-hero { display: flex; align-items: center; gap: 14px; padding: 6px 0; }
.rank-gem {
  width: 54px; height: 54px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, #c084fc, #6d28d9 70%, #2e1065);
  border: 2px solid rgba(192, 132, 252, 0.45); display: grid; place-items: center;
}
.rank-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; font-size: 12px; }
.rank-kv div { display: flex; justify-content: space-between; gap: 6px; color: var(--tx-3); }
.rank-kv b { color: #fff; font-variant-numeric: tabular-nums; }

.shots-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 16px 18px; margin-top: 14px;
}
.shots-card small { display: block; font-family: var(--f-mono); font-size: 10px; color: var(--tx-3); letter-spacing: 0.05em; margin-bottom: 12px; }
.shots-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.shots-leg { display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; color: var(--tx-2); font-variant-numeric: tabular-nums; }

.match-summary {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; flex-wrap: wrap;
}
.ms-metrics { display: flex; gap: 22px; font-variant-numeric: tabular-nums; }
.ms-metrics div b { display: block; font-size: 13px; color: #fff; }
.ms-metrics div small { font-size: 11px; color: var(--tx-3); }
.ms-bar { height: 3px; width: 220px; background: var(--red); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.ms-bar i { display: block; height: 100%; width: 64%; background: var(--cyan); }
.ms-agents { display: flex; gap: 8px; }
.ms-ag { width: 32px; height: 32px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; }

.match-list {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 16px;
}
.match-row {
  display: grid; grid-template-columns: 44px 96px 1fr; align-items: center; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line-soft);
}
.match-row:last-child { border-bottom: 0; }
.m-av { width: 38px; height: 38px; border-radius: 6px; display: grid; place-items: center; font-weight: 700; color: #fff; }
.m-res b { display: block; font-size: 14px; }
.m-res.win b { color: #fff; }
.m-res.loss b { color: #ff6b7d; }
.m-res small { font-size: 12px; color: var(--tx-3); font-variant-numeric: tabular-nums; }
.m-stats-top { display: flex; gap: 24px; font-size: 12px; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.m-stats-top span { color: var(--tx-3); }
.m-stats-top b { display: block; color: #fff; font-size: 12.5px; }
.m-thin-bar { height: 3px; width: 100%; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; display: flex; }
.m-thin-bar .pos { background: var(--cyan); height: 100%; }
.m-thin-bar .neg { background: var(--red); height: 100%; }

/* ====================== Page 3: Astro Integrations & Plugins ====================== */
.astro-split {
  display: grid; grid-template-columns: 340px 1fr; min-height: 70vh;
}
.astro-sidebar {
  border-right: 1px solid var(--line); padding: 36px 32px;
  display: flex; flex-direction: column; gap: 24px;
}
.astro-search {
  display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 14px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--line);
}
.astro-search:focus-within { border-color: #5b6275; }
.astro-search input { flex: 1; background: none; border: 0; outline: none; font-size: 13.5px; color: #fff; }
.astro-search input::placeholder { color: var(--tx-3); }

.filter-head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.filter-head h2 { font-size: 20px; font-weight: 700; }
.filter-head button { font-size: 13px; color: var(--tx-2); text-decoration: underline; text-underline-offset: 3px; }
.filter-head button:hover { color: #fff; }

.cat-list { display: flex; flex-direction: column; gap: 11px; margin-top: 12px; }
.cat-check {
  display: flex; align-items: center; gap: 11px; font-size: 14px; color: var(--tx-2);
  cursor: pointer; text-align: left;
}
.cat-check:hover { color: #fff; }
.cat-box {
  width: 16px; height: 16px; border-radius: 4px; flex: none;
  border: 1px solid #343841; background: transparent;
  display: grid; place-items: center;
}
.cat-check.on { color: #fff; }
.cat-check.on .cat-box { background: var(--astro-grad); border-color: transparent; }

.submit-box {
  margin-top: 8px; padding: 22px; background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px;
}
.submit-box h3 { font-size: 16px; }
.submit-box p { margin: 0; font-size: 13px; color: var(--tx-2); line-height: 1.5; }

/* Exact Astro Sharp-Corner 3-Column Grid */
.astro-grid-wrap { padding: 36px 40px 64px; }
.astro-grid {
  max-width: 1020px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px;
}
.astro-card {
  position: relative; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 0; padding: 24px; min-height: 236px;
  display: flex; flex-direction: column; text-align: left;
  transition: transform .25s ease-out, border-color .2s;
}
.astro-card:hover { transform: scale(1.03); border-color: #4a4f61; }
.astro-card.installed-card { border-color: rgba(45, 212, 191, 0.55); }
.astro-ribbon {
  position: absolute; top: 0; right: 16px; padding: 3px 9px;
  border-radius: 0 0 6px 6px; background: var(--new-grad);
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 700; color: #111318;
}
.astro-icon-circle {
  position: relative; width: 56px; height: 56px; border-radius: 50%;
  background: #ffffff; padding: 11px; display: grid; place-items: center; overflow: hidden;
}
.astro-icon-circle::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(35, 38, 45, 0) 40%, rgba(35, 38, 45, 0.25) 100%);
}
.astro-icon-circle img { width: 100%; height: 100%; object-fit: contain; }
.astro-card h3 {
  margin: 18px 0 6px; font-size: 17px; font-weight: 600; color: #fff;
  display: flex; align-items: center; gap: 7px; word-break: break-word;
}
.astro-card p {
  margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--tx-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  max-height: 3em; margin-bottom: auto;
}
.astro-card-foot {
  margin-top: 18px; display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--tx-3); font-family: var(--f-mono);
}
.astro-card-foot span { display: inline-flex; align-items: center; gap: 6px; }

/* ====================== Page 4: Comunidad (Live SSE Chat) & Dashboard ====================== */
.comm-layout {
  display: grid; grid-template-columns: 260px 1fr 260px; height: calc(100vh - 73px);
}
.comm-side {
  background: #0a0b0f; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; overflow-y: auto; padding: 18px 14px; gap: 18px;
}
.comm-side.right { border-right: 0; border-left: 1px solid var(--line); }
.comm-group-ttl {
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--tx-3); padding: 0 10px 6px;
}
.comm-btn {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px;
  border-radius: 6px; font-size: 13.5px; font-weight: 500; color: var(--tx-2); text-align: left;
}
.comm-btn:hover { background: rgba(255, 255, 255, 0.04); color: #fff; }
.comm-btn.active { background: var(--surface-2); color: #fff; }
.comm-chat { display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
.comm-chat-head {
  height: 56px; padding: 0 24px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none;
}
.comm-chat-head b { font-size: 15px; }
.comm-chat-head span { font-size: 12.5px; color: var(--tx-3); margin-left: 10px; }
.comm-msgs { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.c-msg { display: flex; gap: 14px; align-items: flex-start; }
.c-av { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; overflow: hidden; }
.c-av img { width: 100%; height: 100%; object-fit: cover; }
.c-msg-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.c-msg-head b { font-size: 14px; color: #fff; }
.c-msg-head small { font-size: 11.5px; color: var(--tx-3); }
.c-msg-body { font-size: 14px; line-height: 1.55; color: var(--tx-2); }
.comm-composer { padding: 14px 24px 20px; border-top: 1px solid var(--line); }
.comm-composer form {
  display: flex; gap: 10px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 12px;
}
.comm-composer input { flex: 1; background: none; border: 0; outline: none; font-size: 14px; color: #fff; }

/* Dashboard KPIs & Table */
.kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 28px; }
.kpi-box {
  background: var(--surface); border: 1px solid var(--line); padding: 20px 22px;
  display: flex; flex-direction: column; gap: 6px;
}
.kpi-box small { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; color: var(--tx-3); }
.kpi-box b { font-family: var(--f-display); font-size: 32px; color: #fff; }
.kpi-box span { font-size: 12px; color: var(--teal); }

/* ====================== Editorial Footer (Exact TRACK Images 1 & 2) ====================== */
.site-footer {
  background: var(--bg-black); border-top: 1px solid var(--line); padding: 56px 0 32px;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px;
}
.footer-col h4 {
  font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--tx-3); margin-bottom: 16px;
}
.footer-col a, .footer-col button {
  display: block; text-align: left; font-size: 13.5px; color: var(--tx-2);
  margin-bottom: 10px; transition: color .15s;
}
.footer-col a:hover, .footer-col button:hover { color: #fff; }
.footer-bottom {
  max-width: 1200px; margin: 40px auto 0; padding: 20px 32px 0;
  border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--tx-3);
}

/* ====================== Modal & Toast ====================== */
.modal-bg {
  position: fixed; inset: 0; z-index: 90; background: rgba(7, 8, 11, 0.78);
  backdrop-filter: blur(8px); display: grid; place-items: center; padding: 20px;
}
.modal-box {
  width: min(440px, 100%); background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 10px; padding: 26px; display: flex; flex-direction: column; gap: 16px;
}
.modal-box h3 { font-size: 20px; }
.modal-box p { margin: 0; font-size: 13.5px; color: var(--tx-2); line-height: 1.5; }
.f-grp { display: flex; flex-direction: column; gap: 6px; }
.f-grp label { font-size: 12px; font-weight: 500; color: var(--tx-2); }
.f-grp input, .f-grp select, .f-grp textarea {
  border-radius: 6px; border: 1px solid var(--line); background: var(--bg);
  color: #fff; padding: 9px 12px; font-size: 13.5px; outline: none;
}
.f-grp input:focus, .f-grp textarea:focus { border-color: var(--red); }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }

#toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(16px);
  background: var(--surface-2); border: 1px solid var(--line-strong); color: #fff;
  padding: 10px 18px; border-radius: 8px; font-size: 13px; font-weight: 500;
  opacity: 0; pointer-events: none; transition: all .2s; z-index: 120;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 1120px) {
  .live-badge { display: none; }
  .poster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tx-banner-inner, .two-col, .perf-grid, .astro-split { grid-template-columns: 1fr; }
  .astro-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .astro-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comm-layout { grid-template-columns: 220px 1fr; }
  .comm-side.right { display: none; }
  .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .main-nav { display: none; }
  .poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .latest-grid, .astro-grid, .footer-grid, .podium-row { grid-template-columns: 1fr; }
  .header-inner, .container, .tx-banner-inner { padding-left: 18px; padding-right: 18px; }
}

/* ====================== Player Profile Page ====================== */
.prof-banner {
  position: relative; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(45% 90% at 80% 25%, rgba(239, 35, 60, 0.2), transparent 68%),
    linear-gradient(180deg, rgba(12, 13, 17, 0.72) 0%, rgba(12, 13, 17, 0.98) 100%),
    url('../assets/hero-arena.jpg') center/cover no-repeat;
  padding: 52px 0 36px;
}
.prof-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.prof-id { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.prof-av-wrap { position: relative; width: 88px; height: 88px; flex: none; }
.prof-av {
  width: 88px; height: 88px; border-radius: 50%; overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.18); background: var(--surface-2);
  display: grid; place-items: center; font-family: var(--f-display); font-size: 34px; font-weight: 700; color: #fff;
}
.prof-av img { width: 100%; height: 100%; object-fit: cover; }
.prof-online {
  position: absolute; right: 3px; bottom: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--teal); border: 3px solid var(--bg);
}
.prof-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.prof-name-row h1 { font-size: 32px; font-weight: 700; color: #fff; }
.prof-tag { font-family: var(--f-mono); font-size: 14px; color: var(--tx-3); }
.prof-pill {
  font-family: var(--f-mono); font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 4px; background: var(--surface-2);
  border: 1px solid var(--line); color: var(--tx-2);
}
.prof-pill.red { background: rgba(239, 35, 60, 0.14); border-color: rgba(239, 35, 60, 0.4); color: #ff8c9b; }
.prof-bio { margin: 8px 0 10px; max-width: 600px; font-size: 14px; color: var(--tx-2); line-height: 1.5; }
.prof-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12.5px; color: var(--tx-3); }
.prof-meta b { color: var(--tx-1); font-weight: 500; }
.prof-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.prof-tabs-bar {
  background: #0a0b0f; border-bottom: 1px solid var(--line);
}
.prof-tabs-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px; height: 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.prof-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.prof-tabs::-webkit-scrollbar { display: none; }
.prof-tab {
  position: relative; height: 48px; padding: 0 14px; font-size: 13.5px; font-weight: 500; color: var(--tx-3);
  display: inline-flex; align-items: center; text-decoration: none; cursor: pointer; white-space: nowrap; flex: none;
}
.prof-tab:hover { color: #fff; }
.prof-tab.active { color: #fff; }
.prof-tab.active::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: var(--red); }

/* Profile Avatar Interactive Photo Upload */
.prof-av-btn {
  position: relative; padding: 0; border: 0; background: transparent; border-radius: 50%; cursor: pointer; display: block;
}
.prof-av-edit {
  position: absolute; inset: 0; border-radius: 50%; background: rgba(12,13,17,.72);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: #fff; font-size: 10.5px; font-weight: 600; opacity: 0; transition: opacity .16s ease;
}
.prof-av-btn:hover .prof-av-edit, .prof-av-btn:focus-visible .prof-av-edit { opacity: 1; }
.hdr-av-mini {
  width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex: none;
  border: 1px solid rgba(255,255,255,.22);
}

.av-modal-preview {
  display: flex; align-items: center; gap: 16px; padding: 14px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg);
}
.av-preview-lg {
  width: 68px; height: 68px; border-radius: 50%; overflow: hidden; flex: none;
  display: grid; place-items: center; font-family: var(--f-display); font-size: 26px; font-weight: 700; color: #fff;
  border: 2px solid var(--line-hi);
}
.av-preview-lg img { width: 100%; height: 100%; object-fit: cover; }
.av-preset-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.av-preset-btn {
  aspect-ratio: 1; border-radius: 50%; overflow: hidden; padding: 0;
  border: 2px solid var(--line); background: var(--bg); cursor: pointer; transition: border-color .15s, transform .15s;
}
.av-preset-btn img { width: 100%; height: 100%; object-fit: cover; }
.av-preset-btn:hover { border-color: var(--line-hi); transform: translateY(-1px); }
.av-preset-btn.active { border-color: var(--red); box-shadow: 0 0 0 2px rgba(239,35,60,.3); }
.av-swatches { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.av-swatch {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer;
}
.av-swatch.active { border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.25); }

/* Profile Embedded Integrations Split */
.prof-int-split {
  display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start;
}
.prof-int-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
@media (max-width: 1120px) {
  .prof-int-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .prof-int-split { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .prof-int-grid { grid-template-columns: 1fr; }
}

.season-row, .game-hist-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px;
}
.season-row:last-child, .game-hist-row:last-child { border-bottom: 0; }
.season-row b, .game-hist-row b { color: #fff; display: block; }
.season-row small, .game-hist-row small { color: var(--tx-3); font-size: 11.5px; }

.tourney-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg);
}
.tourney-card:hover { border-color: var(--line-hi); }
.tourney-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; font-family: var(--f-mono); font-size: 11.5px; color: var(--tx-3); }
.t-badge {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 4px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 600;
  border: 1px solid rgba(45,212,191,.35); background: rgba(45,212,191,.1); color: var(--teal);
}
.t-badge.gold { border-color: rgba(245,166,35,.4); background: rgba(245,166,35,.12); color: #f5a623; }
.t-badge.red { border-color: rgba(239,35,60,.4); background: rgba(239,35,60,.12); color: #ff6b7d; }

.prof-main { padding: 36px 0 72px; display: flex; flex-direction: column; gap: 28px; }
.prof-grid { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
.prof-col { display: flex; flex-direction: column; gap: 20px; }

.rr-track { height: 6px; width: 100%; border-radius: 99px; background: #232630; overflow: hidden; margin-top: 8px; }
.rr-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #7c3aed, #2dd4bf); }

.weapon-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px;
}
.weapon-row:last-child { border-bottom: 0; }
.weapon-row b { color: #fff; display: block; }
.weapon-row small { color: var(--tx-3); font-size: 11.5px; }
.weapon-stats { text-align: right; font-family: var(--f-mono); font-size: 12px; color: var(--tx-2); }
.weapon-stats span { color: var(--teal); font-weight: 600; display: block; }

.ach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ach-item {
  padding: 12px; border: 1px solid var(--line); background: var(--bg); border-radius: 6px;
}
.ach-item small { font-family: var(--f-mono); font-size: 10px; color: var(--teal); text-transform: uppercase; display: block; margin-bottom: 3px; }
.ach-item b { font-size: 13px; color: #fff; display: block; }

.match-filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mf-pills { display: inline-flex; gap: 6px; }

/* Profile Clips Gallery Tab */
.clips-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
}
.clip-card {
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  overflow: hidden; display: flex; flex-direction: column; transition: border-color .16s ease, transform .16s ease;
}
.clip-card:hover { border-color: var(--line-hi); transform: translateY(-2px); }
.clip-card-thumb {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 0; padding: 0; width: 100%;
  background: var(--bg); cursor: pointer; display: block;
}
.clip-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.clip-card:hover .clip-card-thumb img { transform: scale(1.03); }
.clip-play-pill {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(12,13,17,.35); transition: background .16s ease;
}
.clip-play-pill span {
  width: 44px; height: 44px; border-radius: 50%; background: rgba(239,35,60,.92); color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.45);
}
.clip-card-thumb:hover .clip-play-pill { background: rgba(12,13,17,.18); }
.clip-dur {
  position: absolute; right: 10px; bottom: 10px; padding: 3px 7px; border-radius: 4px;
  background: rgba(12,13,17,.85); border: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 11px; font-weight: 600; color: #fff;
}
.clip-card-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.clip-card-body h4 { margin: 0; font-size: 14.5px; font-weight: 600; color: #fff; line-height: 1.35; }
.clip-card-foot {
  margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 12px; color: var(--tx-3);
}
.clip-like-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--bg); color: var(--tx-2);
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 600; cursor: pointer;
}
.clip-like-btn:hover { border-color: var(--line-hi); color: #fff; }
.clip-like-btn.liked { border-color: rgba(239,35,60,.45); background: rgba(239,35,60,.12); color: #ff6b7d; }
@media (max-width: 1024px) {
  .clips-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .clips-grid { grid-template-columns: 1fr; }
}

/* Clean Empty States (Zero Mock Data) */
.empty-box {
  padding: 28px 20px; border: 1px dashed var(--line); border-radius: 8px; background: var(--bg);
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.empty-box b { font-size: 14px; color: #fff; }
.empty-box p { margin: 0; font-size: 12.5px; color: var(--tx-3); max-width: 380px; line-height: 1.5; }

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