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

:root {
  --bg-primary: #1a1f2e;
  --bg-secondary: #232b3d;
  --bg-tertiary: #2d3848;
  --bg-card: #2a3344;
  --bg-hover: #354052;
  --surface-elevated: #303a4c;
  --accent: #e08900;
  --accent-hover: #f5a020;
  --accent-dim: #b86e00;
  --text-primary: #e8ecf0;
  --text-secondary: #9aa5b4;
  --text-muted: #6b7a8d;
  --border: #3a4754;
  --live: #5cb85c;
  --live-bg: rgba(92, 184, 92, 0.15);
  --win: #5cb85c;
  --loss: #d9534f;
  --star: #e08900;
  --tier-gold: #e08900;
  --tier-silver: #b4bed2;
  --tier-bronze: #c4906a;
  --header-h: 76px;
  --nav-h: 40px;
  --sidebar-w: 300px;
  --ad-rail-w: 160px;
  --match-page-max: 1720px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.2);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Rajdhani", var(--font);
  --font-logo: "Montserrat", var(--font);
  --mono: "SF Mono", "Cascadia Code", "Consolas", monospace;
  --logo-text: #ffffff;
  --leetify-pink: #f84982;
  --leetify-pink-dim: #c93d68;
  --leetify-pink-glow: rgba(248, 73, 130, 0.28);
  --leetify-pink-soft: rgba(248, 73, 130, 0.12);
  --text-display: 32px;
  --text-title: 18px;
  --text-body: 13px;
  --text-caption: 11px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(224, 137, 0, 0.08), transparent),
    var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

/* Header */
.site-header {
  background: color-mix(in srgb, var(--bg-secondary) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 16px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover { text-decoration: none; }

.logo-img {
  display: block;
  width: auto;
  object-fit: contain;
}

.logo-img--header {
  height: 54px;
  max-width: 320px;
}

.logo-img--footer {
  height: 28px;
  max-width: 180px;
  margin-bottom: 4px;
}

.header-search {
  flex: 1;
  max-width: 320px;
}

.header-search {
  position: relative;
}

.header-search input {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 12px 7px 32px;
  color: var(--text-primary);
  font-size: var(--text-body);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.header-search::before {
  content: "⌕";
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.header-search-hint {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-family: var(--mono);
  color: var(--text-muted);
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  pointer-events: none;
}

.header-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(224, 137, 0, 0.12);
}
.header-search input:focus + .header-search-hint { display: none; }
.header-search input::placeholder { color: var(--text-muted); }

.header-region {
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

.header-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--live-bg);
  border: 1px solid color-mix(in srgb, var(--live) 35%, transparent);
  border-radius: 20px;
  color: var(--live);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.header-live-pill:hover {
  background: color-mix(in srgb, var(--live) 22%, transparent);
  border-color: color-mix(in srgb, var(--live) 55%, transparent);
  color: var(--live);
  text-decoration: none;
  transform: translateY(-1px);
}

.header-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 6px var(--live);
  animation: pulse 2s infinite;
}

.header-live-count {
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1;
}

.header-social {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--text-secondary);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.header-social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-tertiary);
  text-decoration: none;
}

/* Nav */
.site-nav {
  background: color-mix(in srgb, var(--bg-tertiary) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--header-h);
  z-index: 99;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  padding: 6px 16px;
  gap: 4px;
  overflow-x: auto;
}

.nav-link {
  padding: 7px 14px;
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 20px;
  border-bottom: none;
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
  text-decoration: none;
}
.nav-link.active {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(224, 137, 0, 0.35);
}

/* Layout */
.page-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 16px;
  align-items: start;
}

.main-content { min-width: 0; }

.page-container--home {
  grid-template-columns: minmax(0, 1fr) var(--sidebar-w);
  grid-template-areas: "main sidebar";
}

.page-container--home .main-content { grid-area: main; }
.page-container--home .sidebar { grid-area: sidebar; }

.page-container--match {
  max-width: var(--match-page-max);
  grid-template-columns: 1fr;
  padding: 20px 28px 32px;
  gap: 0;
}

.ad-rail,
.sidebar {
  position: sticky;
  top: calc(var(--header-h) + var(--nav-h) + 16px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - var(--nav-h) - 32px);
  overflow-y: auto;
}

.ad-rail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: var(--ad-rail-w);
  background: linear-gradient(145deg, var(--bg-tertiary), var(--bg-secondary));
  border: 1px dashed color-mix(in srgb, var(--border) 85%, var(--accent) 15%);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  text-align: center;
  padding: 12px;
}

.ad-slot-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.ad-slot-size {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.ad-slot-pitch {
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-secondary);
  max-width: 130px;
}

.ad-slot-contact {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.ad-slot-contact:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.ad-slot--skyscraper { height: 600px; }
.ad-slot--halfpage { height: 400px; }

.sidebar-ads {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-ads .ad-slot {
  width: 100%;
}

.ad-slot--sidebar-rect { min-height: 250px; }
.ad-slot--sidebar-half { min-height: 400px; }

body.match-route .header-inner,
body.match-route .nav-inner,
body.match-route .site-footer-inner {
  max-width: var(--match-page-max);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Boxes */
.box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}

.box:hover { box-shadow: var(--shadow-md); }

.box-header {
  background: linear-gradient(180deg, var(--surface-elevated), var(--bg-tertiary));
  padding: 10px 14px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.box-header a { font-size: 11px; font-weight: 600; text-transform: none; letter-spacing: 0; }

.box-body { padding: 0; }

/* News */
.featured-news {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 900px) {
  .featured-news {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
}

.featured-image {
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.featured-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,31,46,0.95) 0%, transparent 60%);
}

.featured-image h2 {
  position: relative;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

.featured-image h2 a { color: inherit; text-decoration: none; }
.featured-image h2 a:hover { color: var(--accent); }
.featured-image.has-image::before {
  background: linear-gradient(to top, rgba(26,31,46,0.96) 0%, rgba(26,31,46,0.35) 55%, transparent 100%);
}
.featured-image-copy { position: relative; z-index: 1; }
.featured-excerpt {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary);
}
.article-hero-image {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
}
.article-source-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
}
.article-source-link:hover { text-decoration: underline; }

.news-list { list-style: none; }

.news-item {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  transition: background 0.15s;
}

.news-item:last-child { border-bottom: none; }
.news-item:hover { background: var(--bg-hover); }

.news-flag { flex-shrink: 0; margin-top: 1px; line-height: 0; }
.country-flag {
  display: inline-flex;
  align-items: center;
  vertical-align: -0.15em;
  line-height: 0;
  flex-shrink: 0;
}
.country-flag .country-flag-img {
  display: block;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.news-flag .country-flag-img { width: 16px; height: 12px; }
.match-team .country-flag-img { width: 18px; height: 14px; }
.team-hero-name .country-flag-img,
.team-roster-card-name .country-flag-img { width: 20px; height: 15px; }

.news-content { flex: 1; min-width: 0; }

.news-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.news-title a { color: inherit; text-decoration: none; }
.news-title a:hover { color: var(--accent); }

.news-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.news-thumb {
  width: 80px;
  height: 50px;
  background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-primary));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-thumb--hltv {
  background: linear-gradient(135deg, #1a1f2e, #0f1219);
  border-color: rgba(90, 138, 255, 0.35);
  color: #5a8aff;
}

/* Matches */
.match-row {
  display: grid;
  grid-template-columns: 60px 1fr auto 1fr 80px;
  align-items: center;
  padding: 11px 14px 11px 18px;
  border-bottom: 1px solid var(--border);
  gap: 8px;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  position: relative;
  border-left: 3px solid transparent;
}

.match-row:nth-child(even) { background: rgba(0, 0, 0, 0.08); }
.match-row:last-child { border-bottom: none; }
.match-row:hover {
  background: var(--bg-hover);
  border-left-color: var(--accent);
  text-decoration: none;
  color: inherit;
}
.match-row.is-live {
  border-left-color: var(--live);
  background: var(--live-bg);
  box-shadow: inset 0 0 20px rgba(92, 184, 92, 0.06);
}
.match-row.is-live:hover { background: rgba(92, 184, 92, 0.18); }

.match-time {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.match-time.live { color: var(--live); font-weight: 700; }

.match-team {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.match-team.right { flex-direction: row-reverse; text-align: right; }

.match-score {
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  min-width: 56px;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.match-score .winner { color: var(--win); }
.match-score .loser { color: var(--text-muted); }

.match-event {
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
}

.match-stars { color: var(--star); font-size: 11px; letter-spacing: 1px; }

.live-badge {
  display: inline-block;
  background: var(--live-bg);
  color: var(--live);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Team logo */
.team-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  text-transform: uppercase;
}

/* Ranking */
.rank-row {
  display: grid;
  grid-template-columns: 28px 32px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.rank-row:last-child { border-bottom: none; }
.rank-row:hover { background: var(--bg-hover); text-decoration: none; color: inherit; }

.rank-num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-muted);
  text-align: center;
}
.rank-name { font-size: var(--text-body); font-weight: 600; }
.rank-points {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}
.rank-change { font-size: 11px; }
.rank-change.up { color: var(--win); }
.rank-change.down { color: var(--loss); }
.rank-change.same { color: var(--text-muted); }

/* Transfers */
.transfer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

.transfer-row:last-child { border-bottom: none; }

.transfer-player { font-weight: 700; color: var(--text-primary); }
.transfer-arrow { color: var(--text-muted); }

/* Events */
.event-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

.event-row:last-child { border-bottom: none; }

.event-status {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
}

.event-status.ongoing { background: var(--live-bg); color: var(--live); }
.event-status.upcoming { background: rgba(224,137,0,0.15); color: var(--accent); }

.event-card-body {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.event-card-thumb {
  width: 48px;
  height: 48px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  overflow: hidden;
}

.event-card-thumb--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-card-copy { flex: 1; min-width: 0; }

.event-card-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.event-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Page titles */
.page-title {
  font-family: var(--font-display);
  font-size: var(--text-title);
  font-weight: 800;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Tables */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }

.data-table th {
  background: var(--bg-tertiary);
  padding: 8px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table tr:hover td { background: var(--bg-hover); }
.data-table tr { cursor: pointer; }

/* Detail pages */
.detail-header {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.detail-logo {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}

.detail-logo .team-logo-img,
.detail-logo .team-logo {
  width: 80px !important;
  height: 80px !important;
  border-radius: 8px;
}

.player-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  margin-bottom: 6px;
}

.player-detail-img {
  flex-shrink: 0;
}

.detail-header .player-detail-fallback {
  flex-shrink: 0;
}

.detail-info h1 { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.detail-info .meta { font-size: 13px; color: var(--text-secondary); }

.detail-stats {
  display: flex;
  gap: 24px;
  margin-top: 12px;
}

.stat-item .stat-value { font-size: 22px; font-weight: 800; color: var(--accent); }
.stat-item .stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; }

.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  padding: 12px;
}

.player-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.player-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; color: inherit; }

.player-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-primary);
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  border: 2px solid var(--border);
}

.player-card .name { font-size: 14px; font-weight: 700; }
.player-card .role { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* Article */
.article-header { margin-bottom: 20px; }
.article-header h1 { font-size: 26px; font-weight: 800; line-height: 1.3; margin-bottom: 8px; }
.article-meta { font-size: 13px; color: var(--text-muted); }

.article-body {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.article-body p { margin-bottom: 16px; white-space: pre-line; }

/* Match detail */
.map-results { padding: 12px; }

.map-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.map-row:last-child { border-bottom: none; }
.map-name { font-weight: 600; color: var(--text-secondary); }

/* Filter tabs */
.filter-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  width: fit-content;
}

.filter-tab {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: none;
  cursor: pointer;
  border-right: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
}

.filter-tab:last-child { border-right: none; }
.filter-tab:hover { background: var(--bg-hover); color: var(--text-primary); }
.filter-tab.active { background: var(--accent); color: #fff; }

.player-tab-panel,
.team-tab-panel { margin-bottom: 16px; }

/* Achievements tab */
.achievements-page {
  animation: panel-in 0.35s ease-out;
}
.achievements-loading {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.skeleton-shimmer {
  border-radius: 8px;
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-hover) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
  min-height: 88px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.achievements-summary {
  display: flex;
  align-items: stretch;
  gap: 16px;
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(224, 137, 0, 0.1), transparent 45%),
    var(--bg-card);
  flex-wrap: wrap;
}
.achievements-summary-total {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 20px;
  border-right: 1px solid var(--border);
  min-width: 120px;
}
.achievements-summary-total-val {
  font-family: "Rajdhani", var(--font);
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}
.achievements-summary-hltv {
  border-color: rgba(100, 150, 220, 0.35);
  background: rgba(100, 150, 220, 0.06);
}
.achievements-summary-total-lbl {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}
.achievements-summary-stats {
  display: flex;
  flex: 1;
  gap: 12px;
  flex-wrap: wrap;
  align-items: stretch;
}
.achievements-summary-stat {
  flex: 1;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-tertiary);
}
.achievement-summary-gold { border-color: rgba(224, 137, 0, 0.35); background: rgba(224, 137, 0, 0.06); }
.achievement-summary-silver { border-color: rgba(180, 190, 210, 0.3); }
.achievement-summary-bronze { border-color: rgba(180, 120, 80, 0.3); }
.achievements-summary-medal { font-size: 22px; line-height: 1; }
.achievements-summary-count {
  font-family: "Rajdhani", var(--font);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  margin-top: 4px;
}
.achievements-summary-label {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
  text-align: center;
}

.achievements-sections {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.achievements-section {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
}
.achievements-section-gold { border-color: rgba(224, 137, 0, 0.3); }
.achievements-section-silver { border-color: rgba(180, 190, 210, 0.25); }
.achievements-section-bronze { border-color: rgba(180, 120, 80, 0.25); }
.achievements-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
}
.achievements-section-gold .achievements-section-head {
  background: linear-gradient(90deg, rgba(224, 137, 0, 0.12), var(--bg-tertiary));
}
.achievements-section-icon { font-size: 16px; }
.achievements-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  flex: 1;
}
.achievements-section-count {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  padding: 14px;
}
.achievement-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px 14px 12px;
  border-radius: 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  overflow: hidden;
}
.achievement-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.achievement-card-gold {
  border-color: rgba(224, 137, 0, 0.4);
  background: linear-gradient(135deg, rgba(224, 137, 0, 0.1), var(--bg-tertiary) 55%);
}
.achievement-card-gold:hover { border-color: rgba(224, 137, 0, 0.65); }
.achievement-card-silver {
  border-color: rgba(180, 190, 210, 0.35);
  background: linear-gradient(135deg, rgba(180, 190, 210, 0.08), var(--bg-tertiary) 55%);
}
.achievement-card-bronze {
  border-color: rgba(180, 120, 80, 0.35);
  background: linear-gradient(135deg, rgba(180, 120, 80, 0.08), var(--bg-tertiary) 55%);
}
.achievement-card-hltv {
  border-color: rgba(100, 150, 220, 0.35);
  background: linear-gradient(135deg, rgba(100, 150, 220, 0.08), var(--bg-tertiary) 55%);
}
.achievement-card-hltv:hover { border-color: rgba(100, 150, 220, 0.65); }
.achievement-placement-hltv {
  min-width: 72px;
  width: auto;
  padding: 0 6px;
  border-color: rgba(100, 150, 220, 0.45);
  background: rgba(100, 150, 220, 0.1);
}
.achievement-placement-label {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}
.achievements-section-hltv {
  border-color: rgba(100, 150, 220, 0.28);
}
.achievements-section-hltv .achievements-section-head {
  color: rgba(140, 185, 255, 0.95);
}
.achievement-card-glow {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  opacity: 0.15;
  pointer-events: none;
}
.achievement-card-gold .achievement-card-glow { background: radial-gradient(circle, #e08900, transparent 70%); }
.achievement-card-silver .achievement-card-glow { background: radial-gradient(circle, #b4bed2, transparent 70%); }
.achievement-card-bronze .achievement-card-glow { background: radial-gradient(circle, #b47850, transparent 70%); }

.achievement-placement-badge {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid var(--border);
  background: var(--bg-primary);
}
.achievement-placement-gold {
  border-color: rgba(224, 137, 0, 0.55);
  background: rgba(224, 137, 0, 0.12);
  color: #e08900;
}
.achievement-placement-silver {
  border-color: rgba(180, 190, 210, 0.5);
  color: #b4bed2;
}
.achievement-placement-bronze {
  border-color: rgba(180, 120, 80, 0.5);
  color: #c4906a;
}
.achievement-placement-num {
  font-family: "Rajdhani", var(--font);
  font-size: 22px;
  font-weight: 800;
}
.achievement-placement-suffix {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.achievement-card-body { flex: 1; min-width: 0; padding-top: 2px; }
.achievement-card-tier {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.achievement-card-gold .achievement-card-tier { color: rgba(224, 137, 0, 0.9); }
.achievement-card-event {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  line-height: 1.35;
}
a.achievement-card-event:hover { color: var(--accent); text-decoration: underline; }
.achievement-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}
.achievement-card-link {
  flex-shrink: 0;
  align-self: center;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.achievement-card-link:hover {
  color: var(--accent);
  border-color: rgba(224, 137, 0, 0.45);
  background: rgba(224, 137, 0, 0.08);
}

.achievements-empty {
  padding: 48px 24px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--bg-card);
}
.achievements-empty-icon {
  font-size: 40px;
  opacity: 0.35;
  margin-bottom: 12px;
}
.achievements-empty-title {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
}
.achievements-empty-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 10px 0 0;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .achievements-summary-total {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-right: 0;
    padding-bottom: 14px;
  }
  .achievements-grid { grid-template-columns: 1fr; }
}

/* Loading */
.loading-state, .error-state {
  max-width: 480px;
  margin: 80px auto;
  text-align: center;
  color: var(--text-secondary);
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.error-state h2 { color: var(--loss); margin-bottom: 8px; }
.error-state code { background: var(--bg-tertiary); padding: 2px 6px; border-radius: 3px; font-size: 12px; }

.team-logo-img { flex-shrink: 0; display: inline-block; vertical-align: middle; }

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 28px 16px;
  margin-top: 40px;
  font-size: var(--text-caption);
  color: var(--text-muted);
}

.site-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.site-footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.site-footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--text-secondary);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.site-footer-social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-tertiary);
  text-decoration: none;
}

.site-footer-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-caption);
}

.site-footer-logo {
  display: inline-block;
  font-family: var(--font-logo);
  font-size: 24px;
  font-weight: 800;
  color: var(--logo-text);
  letter-spacing: 0.01em;
  text-decoration: none;
  line-height: 1.1;
}

.site-footer-logo:hover {
  color: var(--logo-text);
  text-decoration: none;
}

.site-footer-logo-accent {
  color: var(--leetify-pink);
}

.site-footer-tagline {
  margin-top: 6px;
  line-height: 1.5;
}

.site-footer a { color: var(--text-secondary); }
.site-footer a:hover { color: var(--accent); }

/* Full-width pages */
.full-width .page-container { grid-template-columns: 1fr; }

/* Responsive */
@media (max-width: 960px) {
  .page-container,
  .page-container--home { grid-template-columns: 1fr; grid-template-areas: "sidebar" "main"; }
  .page-container--home .main-content { grid-area: main; }
  .page-container--home .sidebar { grid-area: sidebar; }
  .sidebar { order: -1; }
  .featured-news { grid-template-columns: 1fr; }
  .match-row { grid-template-columns: 50px 1fr auto 1fr; }
  .match-event { display: none; }
}

@media (max-width: 600px) {
  .header-search:not(.header-search--overlay) { display: none; }
  .header-search-toggle { display: flex; }
  .header-actions { gap: 8px; }
  .header-live-pill { padding: 5px 10px; }
  .header-live-label { display: none; }
  .header-social-link { width: 32px; height: 32px; }
  .match-row { grid-template-columns: 1fr; gap: 4px; text-align: center; }
  .match-team { justify-content: center; }
  .match-team.right { flex-direction: row; }
  .site-footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .site-footer-meta { align-items: center; }
}

/* Player hero banner */
.player-hero {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
  animation: panel-in 0.35s ease-out;
}
.player-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--hero-accent) 28%, transparent), transparent 55%),
    linear-gradient(180deg, var(--bg-card), var(--bg-secondary));
  pointer-events: none;
}
.player-hero-watermark {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 200px;
  opacity: 0.06;
  object-fit: contain;
  pointer-events: none;
  filter: grayscale(1);
}
.player-hero-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  flex-wrap: wrap;
}
.player-hero-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.player-country-badge {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 26px;
  border-radius: 6px;
  background: var(--bg-secondary);
  border: 2px solid var(--bg-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  line-height: 0;
}
.player-country-badge .country-flag-img {
  display: block;
  width: 28px;
  height: 21px;
  border-radius: 2px;
  object-fit: cover;
}
.player-hero-main { flex: 1; min-width: 200px; }
.player-hero-name {
  font-family: "Rajdhani", var(--font);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.player-hero-nick {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 2px;
}
.player-hero-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
}
.player-hero-meta a { color: var(--accent); }
.player-hero-link {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(224, 137, 0, 0.15);
  border: 1px solid rgba(224, 137, 0, 0.35);
  text-decoration: none !important;
}
.player-hero-link--steam {
  background: rgba(23, 116, 188, 0.15);
  border-color: rgba(23, 116, 188, 0.4);
  color: #8ec8f5 !important;
}
.player-hero-link--steam:hover {
  background: rgba(23, 116, 188, 0.28);
}
.player-hero-stats {
  display: flex;
  gap: 20px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.player-hero-stat-val {
  font-family: "Rajdhani", var(--font);
  font-size: 24px;
  font-weight: 800;
  color: var(--hero-accent, var(--accent));
  line-height: 1;
}
.player-hero-stat-lbl {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}
.player-hero-ring-col { flex-shrink: 0; }

/* Team hero banner */
.team-hero {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
  animation: panel-in 0.35s ease-out;
}
.team-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, color-mix(in srgb, var(--hero-accent) 32%, transparent), transparent 50%),
    linear-gradient(180deg, var(--bg-card), var(--bg-secondary));
  pointer-events: none;
}
.team-hero-watermark {
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  width: 240px;
  height: 240px;
  opacity: 0.07;
  object-fit: contain;
  pointer-events: none;
  filter: grayscale(0.4);
}
.team-hero-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  flex-wrap: wrap;
}
.team-hero-logo-wrap {
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  border: 3px solid color-mix(in srgb, var(--hero-accent) 55%, var(--border));
}
.team-hero-logo-wrap .team-logo,
.team-hero-logo-wrap .team-logo-img {
  display: block !important;
  border-radius: 8px !important;
}
.team-hero-main { flex: 1; min-width: 220px; }
.team-hero-name {
  font-family: "Rajdhani", var(--font);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.team-hero-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
}
.team-hero-meta a { color: var(--accent); }
.team-hero-stats {
  display: flex;
  gap: 20px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.team-hero-form {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.team-hero-form-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.team-hero-ring-col { flex-shrink: 0; }
.win-rate-ring .win-rate-ring-val {
  font-family: "Rajdhani", var(--font);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

/* Team page layout */
.team-page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 16px;
  align-items: start;
}
.team-page-main { min-width: 0; }
.team-page-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 12px;
}

/* Team roster cards */
.team-roster-box { margin-bottom: 16px; overflow: hidden; }
.team-roster-count {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 12px;
}
.team-roster-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
}
.team-roster-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: inherit;
  text-decoration: none !important;
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}
.team-roster-card:hover {
  border-color: color-mix(in srgb, var(--hero-accent, var(--accent)) 50%, var(--border));
  background: var(--bg-hover);
  transform: translateX(3px);
  color: inherit;
}
.team-roster-card-avatar,
.team-roster-card-fallback {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.team-roster-card-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
  border: 2px solid var(--border);
}
.team-roster-card-body { flex: 1; min-width: 0; }
.team-roster-card-name {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.team-roster-card-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.team-roster-card-badge {
  font-size: 9px;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-left: 4px;
}
.team-roster-card-elo {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  padding: 4px 8px;
  background: rgba(224, 137, 0, 0.1);
  border-radius: 4px;
  flex-shrink: 0;
}
.team-roster-benched { margin-top: 0; }
button.box-header.team-roster-collapse-toggle {
  width: 100%;
  cursor: pointer;
  border: none;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.15s;
}
button.box-header.team-roster-collapse-toggle:hover {
  background: var(--bg-hover);
}
.team-roster-collapse-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.team-roster-collapse-chevron {
  font-size: 11px;
  line-height: 1;
  text-transform: none;
  letter-spacing: 0;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.team-roster-collapsible.is-open .team-roster-collapse-chevron {
  transform: rotate(90deg);
}
.team-roster-collapsible:not(.is-open) .team-roster-collapse-toggle {
  border-bottom: none;
}
.team-roster-card-inactive {
  opacity: 0.72;
  background: var(--bg-secondary);
}
.team-roster-card-inactive:hover {
  opacity: 0.9;
}
.team-roster-card-inactive .team-roster-card-elo {
  color: var(--text-muted);
  background: var(--bg-tertiary);
}

/* Team stats sidebar */
.team-stats-box,
.team-avg-box { overflow: hidden; }
.team-stats-body,
.team-avg-body { padding: 16px; }
.team-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.team-mini-stat {
  text-align: center;
  padding: 10px 6px;
  background: var(--bg-tertiary);
  border-radius: 6px;
  border: 1px solid var(--border);
}
.team-mini-val {
  display: block;
  font-family: "Rajdhani", var(--font);
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.team-mini-lbl {
  display: block;
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}
.team-stat-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.team-stats-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.team-stats-faceit-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.team-stats-faceit-link:hover { text-decoration: underline; }

/* Roster snapshot */
.team-snapshot-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.team-snapshot-stat {
  text-align: center;
  padding: 12px;
  background: var(--bg-tertiary);
  border-radius: 6px;
  border: 1px solid var(--border);
}
.team-snapshot-val {
  font-family: "Rajdhani", var(--font);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}
.team-snapshot-lbl {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}
.team-role-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.team-role-chip {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.team-role-chip strong { color: var(--accent); margin-left: 2px; }

/* Team matches */
.team-matches-box { overflow: hidden; }
.team-matches-source {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.team-matches-body { padding: 0 !important; }
.team-matches-body .match-row:first-child { border-top: none; }

.hltv-player-source {
  padding: 10px 16px 0;
  font-size: 12px;
  text-align: right;
}
.hltv-player-source a {
  color: var(--text-secondary);
  text-decoration: none;
}
.hltv-player-source a:hover { color: var(--accent); }
.hltv-tournament-row .match-team { font-weight: 500; }

/* ELO ring */
.elo-ring {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.elo-ring-svg { display: block; }
.elo-ring-track {
  stroke: var(--bg-tertiary);
}
.elo-ring-fill {
  transition: stroke-dasharray 0.6s ease, stroke 0.3s ease;
}
.elo-ring-center {
  position: absolute;
  text-align: center;
  line-height: 1.15;
}
.elo-ring-level {
  font-family: "Rajdhani", var(--font);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}
.elo-ring-elo {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--mono);
}
.team-accent-ring-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 50%;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.team-accent-ring-link:hover {
  transform: scale(1.04);
  filter: brightness(1.08);
}
.team-accent-ring-fill {
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--team-ring-color, var(--hero-accent)) 45%, transparent));
}
.team-accent-ring-center {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
}
.team-accent-ring-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.team-accent-ring-letter {
  font-family: "Rajdhani", var(--font);
  font-size: 28px;
  font-weight: 800;
  color: var(--hero-accent, var(--accent));
  line-height: 1;
}
.win-rate-ring-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: "Rajdhani", var(--font);
}

/* Faceit profile panel */
.faceit-profile-body {
  display: flex;
  gap: 24px;
  padding: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.faceit-profile-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.faceit-profile-elo-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.faceit-profile-stats {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stat-bar-row { width: 100%; }
.stat-bar-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.stat-bar-val {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--text-primary);
}
.stat-bar-track {
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
}
.stat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  border-radius: 3px;
  animation: bar-grow 0.7s ease-out;
}
@keyframes bar-grow {
  from { width: 0 !important; }
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Map pool radar */
.map-pool-box { overflow: visible; }
.map-pool-body {
  padding: 16px !important;
  overflow: visible;
}
.map-pool-chart {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  justify-content: center;
  overflow: visible;
}
.map-radar-wrap {
  flex: 0 0 auto;
  text-align: center;
}
.map-radar-svg {
  display: block;
  max-width: 100%;
  height: auto;
}
.radar-grid-ring {
  fill: none;
  stroke: var(--border);
  stroke-width: 1;
  opacity: 0.55;
}
.radar-spoke {
  stroke: var(--border);
  stroke-width: 1;
  opacity: 0.45;
}
.radar-polygon {
  fill: rgba(224, 137, 0, 0.22);
  stroke: var(--accent);
  stroke-width: 2;
  transition: fill 0.2s ease;
}
.radar-dot {
  fill: var(--accent-hover);
  stroke: var(--bg-primary);
  stroke-width: 1.5;
  transition: r 0.15s ease, fill 0.15s ease;
}
.radar-dot.active, .radar-label.active {
  fill: var(--accent-hover);
}
.radar-label {
  fill: var(--text-secondary);
  font-size: 10px;
  font-weight: 700;
  transition: fill 0.15s ease;
}
.radar-label.active { fill: var(--accent); }
.radar-dot.active { r: 6; }
.map-radar-caption {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}
.map-legend {
  flex: 1;
  min-width: 200px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.map-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: default;
  text-align: left;
  color: inherit;
  font: inherit;
  width: 100%;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.map-legend-item:hover,
.map-legend-item.active,
.map-legend-item:focus {
  border-color: var(--accent);
  background: var(--bg-hover);
  outline: none;
  transform: translateX(3px);
}
.map-legend-thumb {
  width: 44px;
  height: 26px;
  border-radius: 3px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.map-legend-fallback {
  width: 44px;
  height: 26px;
  border-radius: 3px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  color: var(--accent);
  flex-shrink: 0;
}
.map-legend-name {
  font-weight: 700;
  font-size: 13px;
  flex: 1;
}
.map-legend-stat {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--mono);
}

.faceit-match-table { font-size: 13px; }
.faceit-match-table td { padding: 10px 12px; }

/* Match page */
.match-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: panel-in 0.35s ease-out;
  width: 100%;
}
.match-page-lower {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.match-page-rosters-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.match-faceit-mount {
  width: 100%;
  min-width: 0;
}
.match-faceit-room {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, #10131a 0%, #080a0f 100%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.match-faceit-room--loading .match-faceit-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 220px;
  color: var(--text-muted);
  font-size: 14px;
}
.match-faceit-room-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px 24px;
  padding: 18px 24px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.match-faceit-room-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}
.match-faceit-room-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}
.match-faceit-room-actions a {
  font-size: 12px;
  font-weight: 600;
}
.match-faceit-room-tabs {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.match-faceit-tab {
  padding: 14px 2px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: none;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.match-faceit-tab:hover {
  color: var(--text-primary);
}
.match-faceit-tab--active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.match-section-header {
  flex-direction: column;
  align-items: flex-start !important;
  gap: 2px;
}
.match-section-title { font-size: 13px; }
.match-section-sub {
  font-size: 11px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
}

.match-hero {
  position: relative;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.match-hero-live {
  border-color: rgba(92, 184, 92, 0.5);
  box-shadow: 0 0 32px rgba(92, 184, 92, 0.14), var(--shadow-md);
}
.match-hero-finished {
  border-color: color-mix(in srgb, var(--accent) 25%, var(--border));
}
.match-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 80% at 8% 50%, color-mix(in srgb, var(--team1-color) 28%, transparent), transparent 70%),
    radial-gradient(ellipse 55% 80% at 92% 50%, color-mix(in srgb, var(--team2-color) 28%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg-card) 90%, #000), var(--bg-secondary));
  pointer-events: none;
}
.match-hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.match-hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px 32px 32px;
}
.match-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.match-hero-event {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}
.match-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
  font-size: 12px;
  color: var(--text-secondary);
}
.match-hero-format {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.match-hero-meta-dot { color: var(--text-muted); }
.match-hero-stars { color: var(--star); letter-spacing: 1px; }
.match-hero-top-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.match-hero-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--text-secondary);
  background: color-mix(in srgb, var(--bg-primary) 50%, transparent);
  border: 1px solid var(--border);
}
.match-hero-faceit-link {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent) !important;
  text-decoration: none !important;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.match-hero-faceit-link:hover {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}
.match-hero-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
.match-hero-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none !important;
  transition: transform 0.2s ease;
}
.match-hero-team:hover {
  color: inherit;
  transform: translateY(-3px);
}
.match-hero-logo-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  padding: 10px;
  box-sizing: border-box;
  border-radius: 50%;
  overflow: hidden;
  background: color-mix(in srgb, var(--bg-primary) 55%, transparent);
  border: 2px solid color-mix(in srgb, var(--border) 70%, transparent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.match-hero-logo-ring .team-logo,
.match-hero-logo-ring .team-logo-img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 50% !important;
  object-fit: contain;
  object-position: center;
}
.match-hero-logo-ring .team-logo {
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 28px !important;
  line-height: 1;
}
.match-hero-team--left .match-hero-logo-ring {
  border-color: color-mix(in srgb, var(--team1-color) 45%, var(--border));
  box-shadow: 0 0 24px color-mix(in srgb, var(--team1-color) 20%, transparent);
}
.match-hero-team--right .match-hero-logo-ring {
  border-color: color-mix(in srgb, var(--team2-color) 45%, var(--border));
  box-shadow: 0 0 24px color-mix(in srgb, var(--team2-color) 20%, transparent);
}
.match-hero-team-name {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 800;
  text-align: center;
  line-height: 1.1;
  max-width: 200px;
}
.match-hero-center {
  text-align: center;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.match-hero-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  line-height: 1;
}
.match-hero-score-num { min-width: 1ch; }
.match-hero-score .winner {
  color: var(--win);
  text-shadow: 0 0 20px rgba(92, 184, 92, 0.35);
}
.match-hero-score .loser { color: var(--text-muted); }
.match-hero-sep {
  color: var(--text-muted);
  font-size: 0.75em;
  font-weight: 600;
}
.match-hero-vs {
  color: var(--text-muted);
  font-size: 0.55em;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.match-hero-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-primary) 50%, transparent);
  color: var(--text-muted);
}
.match-hero-status-pill--live {
  color: var(--live);
  border-color: rgba(92, 184, 92, 0.4);
  background: var(--live-bg);
}
.match-hero-status-pill--finished {
  color: var(--text-secondary);
}
.match-hero-status-pill--upcoming {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.match-hero-live-badge { margin-bottom: 2px; }
.live-badge--hero {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
}

.match-roster-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--roster-accent, var(--accent));
}
.match-roster-head {
  padding: 12px 14px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--roster-accent, var(--accent)) 12%, var(--bg-tertiary)),
    var(--bg-tertiary)
  );
  border-bottom: 1px solid var(--border);
}
.match-roster-head a {
  color: inherit;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 10px;
}
.match-roster-head-logo { flex-shrink: 0; display: flex; }
.match-roster-head-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.match-roster-head-name {
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.match-roster-head-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.match-roster-list {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.match-roster-player {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  color: inherit;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s;
}
.match-roster-player:hover {
  background: color-mix(in srgb, var(--roster-accent, var(--accent)) 8%, var(--bg-hover));
}
.match-roster-slot {
  width: 18px;
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  text-align: center;
  flex-shrink: 0;
}
.match-roster-avatar, .match-roster-fallback {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}
.match-roster-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  font-size: 11px;
  font-weight: 800;
}
.match-roster-name {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.match-roster-rating {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.match-roster-role {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
}
.match-roster-empty {
  display: block;
  padding: 12px;
  color: var(--text-muted);
  font-size: 12px;
}

.match-h2h-box {
  border-radius: var(--radius-md);
  overflow: hidden;
}
.match-h2h-body { padding: 18px; }
.match-h2h-series {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px 20px;
  padding: 18px 16px;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%),
    linear-gradient(165deg, color-mix(in srgb, var(--accent) 6%, var(--bg-card)), var(--bg-tertiary));
  margin-bottom: 16px;
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 4%, transparent);
}
.match-h2h-team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.match-h2h-team--right {
  justify-content: flex-end;
  text-align: right;
}
.match-h2h-team-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.match-h2h-team-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.match-h2h-series-center {
  text-align: center;
  min-width: 110px;
}
.match-h2h-series-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}
.match-h2h-series-num {
  color: var(--text-secondary);
}
.match-h2h-series-num--lead {
  color: var(--accent);
  text-shadow: 0 0 18px rgba(224, 137, 0, 0.25);
}
.match-h2h-series-sep {
  color: var(--text-muted);
  font-size: 22px;
  font-weight: 600;
}
.match-h2h-series-label {
  margin-top: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.match-h2h-form-block {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--bg-primary) 55%, transparent);
  margin-bottom: 14px;
}
.match-h2h-form-title,
.match-h2h-history-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.match-h2h-form-row {
  display: grid;
  grid-template-columns: minmax(80px, 120px) 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
}
.match-h2h-form-row:last-of-type { margin-bottom: 0; }
.match-h2h-form-name {
  color: var(--text-secondary);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.match-h2h-form-dots,
.match-form-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.match-h2h-form-empty {
  font-size: 12px;
  color: var(--text-muted);
}
.match-h2h-history-block {
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.match-h2h-empty {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
  font-style: italic;
}
.match-form-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
}
.match-form-label { width: 120px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leetify-state-sub {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.45;
  font-style: normal;
}
.leetify-upload-panel {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--leetify-pink) 28%, var(--border));
  background: color-mix(in srgb, var(--leetify-pink) 8%, var(--bg-tertiary));
}
.leetify-upload-panel--manual {
  border-color: var(--border);
  background: var(--bg-tertiary);
}
.leetify-upload-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.leetify-upload-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 10px;
}
.leetify-upload-steps {
  margin: 0 0 10px 18px;
  padding: 0;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.55;
}
.leetify-upload-steps a { color: var(--leetify-pink); }
.leetify-upload-sub {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0 0 10px;
}
.leetify-upload-sub a { color: var(--accent); }
.leetify-upload-sub code {
  font-size: 10px;
  background: var(--bg-primary);
  padding: 1px 4px;
  border-radius: 3px;
}
.leetify-upload-btn {
  background: color-mix(in srgb, var(--leetify-pink) 85%, #000) !important;
  border-color: var(--leetify-pink) !important;
  color: #fff !important;
}
.leetify-upload-btn:hover:not(:disabled) {
  filter: brightness(1.08);
}
.leetify-upload-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}
.leetify-upload-status {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  min-height: 1.2em;
}
.leetify-upload-status--ok { color: var(--win); }
.leetify-upload-status--err { color: var(--loss); }
.form-dot {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  display: inline-block;
}
.form-dot.win { background: var(--win); }
.form-dot.loss { background: var(--loss); }
.match-form-source { margin-left: auto; font-size: 11px; }
.match-form-leetify-link { color: #f84982; text-decoration: none; }
.match-form-leetify-link:hover { text-decoration: underline; }
.match-form-attribution { margin-top: 6px; font-size: 11px; color: var(--text-muted); }
.match-form-attribution a { color: #f84982; }
.leetify-provided-by {
  color: #f84982;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
}
.leetify-provided-by:hover { text-decoration: underline; }
.player-hero-leetify-attribution {
  margin-top: 10px;
  font-size: 11px;
}
.player-hero-leetify-attribution .leetify-provided-by { font-size: 11px; }
#player-hero-leetify-link .match-form-leetify-link { margin-left: 4px; }
.player-hero-stat-leetify { color: var(--leetify-pink); }

/* Leetify stats panel */
.player-leetify-box {
  border-color: color-mix(in srgb, var(--leetify-pink) 22%, var(--border));
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--leetify-pink-soft);
}
.box-header--leetify {
  background: linear-gradient(180deg, color-mix(in srgb, var(--leetify-pink) 14%, var(--surface-elevated)), var(--bg-tertiary));
  color: var(--text-primary);
}
.box-header--leetify::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leetify-pink);
  box-shadow: 0 0 10px var(--leetify-pink-glow);
  margin-left: auto;
}
.leetify-panel { animation: panel-in 0.4s ease-out; }
.leetify-state-msg {
  padding: 16px;
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
}

.leetify-metrics-hero {
  padding: 18px 16px 14px;
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, var(--leetify-pink-soft), transparent 65%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg-tertiary) 60%, transparent), transparent);
  border-bottom: 1px solid var(--border);
}
.leetify-gauges-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.leetify-gauge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px 10px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--bg-card) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.leetify-gauge-card:hover {
  border-color: color-mix(in srgb, var(--leetify-pink) 35%, var(--border));
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22), 0 0 16px var(--leetify-pink-soft);
  transform: translateY(-2px);
}
.leetify-gauge-card--featured {
  background: linear-gradient(165deg, color-mix(in srgb, var(--leetify-pink) 16%, var(--bg-card)), var(--bg-card));
  border-color: color-mix(in srgb, var(--leetify-pink) 40%, var(--border));
}
.leetify-gauge {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.leetify-gauge-svg { display: block; }
.leetify-gauge-track {
  stroke: var(--bg-tertiary);
  opacity: 0.95;
}
.leetify-gauge-fill--anim {
  transition: stroke-dasharray 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.leetify-gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.1;
  pointer-events: none;
  padding-bottom: 4px;
}
.leetify-gauge-val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.leetify-gauge-val--featured {
  font-size: 20px;
  color: var(--leetify-pink);
  text-shadow: 0 0 18px var(--leetify-pink-glow);
}
.leetify-gauge-sub {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
  font-family: var(--mono);
}
.leetify-gauge-lbl {
  margin-top: 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  max-width: 100px;
}

.leetify-skills-panel {
  padding: 14px 16px 16px;
  border-bottom: 1px solid var(--border);
}
.leetify-skills-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.leetify-skills-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}
.leetify-benchmark-legend {
  font-size: 10px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.leetify-benchmark-tick-demo {
  display: inline-block;
  width: 2px;
  height: 12px;
  background: var(--text-primary);
  opacity: 0.7;
  border-radius: 1px;
}
.leetify-skill-bars {
  display: grid;
  gap: 14px;
}
.leetify-skill-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 7px;
  gap: 8px;
}
.leetify-skill-bar-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.leetify-skill-bar-val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--text-primary);
}
.leetify-skill-bar--great .leetify-skill-bar-val { color: #6dd4a0; }
.leetify-skill-bar--good .leetify-skill-bar-val { color: var(--leetify-pink); }
.leetify-skill-bar--average .leetify-skill-bar-val { color: var(--text-primary); }
.leetify-skill-bar--subpar .leetify-skill-bar-val { color: #d4a86a; }
.leetify-skill-bar--neutral .leetify-skill-bar-val { color: var(--text-muted); }
.leetify-skill-bar-track {
  position: relative;
  height: 14px;
  border-radius: 7px;
  background: var(--bg-primary);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
  overflow: visible;
}
.leetify-skill-bar-fill {
  height: 100%;
  border-radius: 7px;
  min-width: 3px;
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 10px var(--leetify-pink-glow);
}
.leetify-skill-bar--great .leetify-skill-bar-fill {
  background: linear-gradient(90deg, #3d9a6e, #6dd4a0);
  box-shadow: 0 0 10px rgba(109, 212, 160, 0.35);
}
.leetify-skill-bar--good .leetify-skill-bar-fill {
  background: linear-gradient(90deg, var(--leetify-pink-dim), var(--leetify-pink));
}
.leetify-skill-bar--average .leetify-skill-bar-fill {
  background: linear-gradient(90deg, #5a6a82, #8a9bab);
  box-shadow: none;
}
.leetify-skill-bar--subpar .leetify-skill-bar-fill {
  background: linear-gradient(90deg, #8a5a3a, #d4a86a);
  box-shadow: 0 0 8px rgba(212, 168, 106, 0.25);
}
.leetify-skill-bar--neutral .leetify-skill-bar-fill { opacity: 0.25; }
.leetify-skill-bar-tick {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 3px;
  margin-left: -1.5px;
  background: var(--text-primary);
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  z-index: 2;
}
.leetify-skill-bar-tick::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 6px;
  height: 6px;
  background: var(--text-primary);
  border-radius: 1px;
}

.leetify-recent-form { padding: 0; }
.leetify-recent-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 0;
}
.leetify-section-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.leetify-form-summary {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}
.leetify-form-wins { color: var(--win); }
.leetify-form-losses { color: var(--loss); }
.leetify-form-sep { color: var(--text-muted); margin: 0 4px; }
.leetify-form-strip {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-tertiary) 40%, transparent);
}
.player-leetify-form-dots {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.player-leetify-form-dots .form-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.leetify-form-table-wrap { overflow-x: auto; }
.player-leetify-form-table { margin: 0; }
.player-leetify-form-table tr { cursor: default; }
.player-leetify-form-table tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--bg-tertiary) 35%, transparent);
}
.leetify-result-cell { width: 44px; }
.leetify-result-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 6px;
  border-radius: 5px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.leetify-result-pill--win {
  background: color-mix(in srgb, var(--win) 22%, transparent);
  color: var(--win);
  border: 1px solid color-mix(in srgb, var(--win) 45%, transparent);
}
.leetify-result-pill--loss {
  background: color-mix(in srgb, var(--loss) 18%, transparent);
  color: var(--loss);
  border: 1px solid color-mix(in srgb, var(--loss) 40%, transparent);
}
.leetify-map-name {
  font-weight: 600;
  text-transform: capitalize;
}
.leetify-score-cell {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-secondary);
}
.leetify-form-empty {
  padding: 12px 16px;
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
}
.player-leetify-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg-tertiary) 50%, transparent));
}
.leetify-rating-cell {
  color: var(--leetify-pink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
}

@media (max-width: 720px) {
  .leetify-gauges-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leetify-gauge-card--featured { grid-column: span 2; }
}
.match-h2h-history {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.match-h2h-history-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 8px 12px;
  align-items: center;
  padding: 10px 12px;
  font-size: 13px;
  color: inherit;
  text-decoration: none !important;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  transition: border-color 0.15s, background 0.15s;
}
.match-h2h-history-row:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  background: var(--bg-hover);
}
.match-h2h-history-team {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}
.match-h2h-history-team--right { text-align: right; }
.match-h2h-history-score {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
}
.match-h2h-history-sep {
  color: var(--text-muted);
  margin: 0 2px;
}
.match-h2h-history-date {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .match-h2h-series {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .match-h2h-team--left,
  .match-h2h-team--right {
    justify-content: center;
    text-align: center;
  }
  .match-h2h-history-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }
  .match-h2h-history-team--right { text-align: left; }
  .match-h2h-history-date { grid-column: 1 / -1; }
}

.match-faceit-loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: match-pulse 1.2s ease-in-out infinite;
}
@keyframes match-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}
.match-faceit-comp {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: 0;
}
.match-faceit-status-pill {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border);
}
.match-faceit-status--live {
  color: var(--live);
  border-color: rgba(92, 184, 92, 0.4);
  background: var(--live-bg);
}
.match-faceit-status--finished {
  color: var(--text-secondary);
  background: color-mix(in srgb, var(--bg-primary) 40%, transparent);
}
.match-faceit-status--scheduled {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.match-faceit-updated { color: var(--text-muted); }
.match-faceit-body {
  padding: 24px 28px 28px;
}

/* Match MVP panel (FACEIT matchroom style) */
.match-mvp-panel {
  display: grid;
  grid-template-columns: minmax(560px, 1.65fr) minmax(340px, 1fr);
  align-items: stretch;
  gap: 20px 24px;
  margin-bottom: 8px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(ellipse 90% 70% at 55% 40%, rgba(30, 35, 50, 0.55), transparent 70%),
    linear-gradient(180deg, #12151c 0%, #0a0c10 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 28px rgba(0, 0, 0, 0.35);
}
.match-mvp-card {
  position: relative;
  display: block;
  min-height: 220px;
  color: #fff;
  text-decoration: none !important;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}
.match-mvp-card:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
}
.match-mvp-card-stripe {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 7px;
  z-index: 4;
  background: linear-gradient(180deg, #8f7df5 0%, #5b7fe8 45%, #3f63c4 100%);
  box-shadow: 2px 0 14px rgba(91, 127, 232, 0.45);
}
.match-mvp-card-camo {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.92;
  background:
    repeating-linear-gradient(
      122deg,
      #1a0505 0 8px,
      #4a1212 8px 14px,
      #120606 14px 22px,
      #6b1a1a 22px 28px,
      #0a0404 28px 36px,
      #3d1010 36px 42px
    ),
    repeating-linear-gradient(
      -58deg,
      transparent 0 12px,
      rgba(120, 20, 20, 0.65) 12px 18px,
      transparent 18px 30px
    ),
    linear-gradient(125deg, #2a0808 0%, #120404 45%, #1f0a0a 100%);
}
.match-mvp-card-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.22) 42%, rgba(0, 0, 0, 0.48) 100%),
    radial-gradient(ellipse 75% 95% at 18% 50%, color-mix(in srgb, var(--mvp-accent, #c94a4a) 22%, transparent), transparent 72%);
}
.match-mvp-card-watermark {
  position: absolute;
  top: 10px;
  right: 22px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  pointer-events: none;
  opacity: 0.95;
}
.match-mvp-card-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 22px 28px 22px 26px;
  min-height: 220px;
}
.match-mvp-card-photo-wrap {
  position: relative;
  flex-shrink: 0;
}
.match-mvp-card-photo {
  width: 138px;
  height: 138px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.96);
  background: rgba(0, 0, 0, 0.4);
  box-shadow:
    0 0 0 3px rgba(72, 132, 255, 0.55),
    0 8px 24px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  box-sizing: border-box;
}
.match-mvp-card-photo .match-mvp-avatar--hero,
.match-mvp-card-photo .match-mvp-avatar-fallback--hero {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
}
.match-mvp-card-photo .match-mvp-avatar-fallback--hero {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  font-weight: 800;
}

.match-mvp-card-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding-top: 4px;
}
.match-mvp-card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.match-mvp-card-submeta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.match-mvp-rating-under {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.match-mvp-rating-under .match-mvp-rating-val {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  font-variant-numeric: tabular-nums;
}
.match-mvp-rating-brand {
  display: flex;
  align-items: center;
  gap: 6px;
}
.match-mvp-faceit-logo {
  flex-shrink: 0;
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 2px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}
.match-mvp-level-icon,
.match-mvp-photo-level-icon {
  flex-shrink: 0;
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.match-mvp-photo-level-icon {
  position: absolute;
  top: 0;
  right: -2px;
  z-index: 3;
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}
.match-mvp-rating-brand .match-mvp-rating-orb-lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.88);
  max-width: none;
  white-space: nowrap;
}
.match-mvp-swing {
  font-size: 14px;
  font-weight: 700;
  color: #5fd68a;
  letter-spacing: 0.01em;
}
.match-mvp-adr-line {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
}
.match-mvp-adr-line strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-right: 4px;
}
.match-mvp-avatar,
.match-mvp-avatar-fallback {
  display: block;
  border-radius: 50%;
  object-fit: cover;
}
.match-mvp-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
}
.match-mvp-card-identity { min-width: 0; }
.match-mvp-card-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.match-mvp-crown {
  font-size: 16px;
  color: #f5c842;
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(245, 200, 66, 0.5));
}

.match-mvp-card-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  margin-top: 4px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
}
.match-mvp-metric strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  margin-right: 4px;
}
.match-mvp-level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #e84e00, #c93d00);
  box-shadow: 0 2px 8px rgba(232, 78, 0, 0.4);
}
.match-mvp-foot-elo {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  font-variant-numeric: tabular-nums;
}
.match-mvp-star {
  font-size: 36px;
  line-height: 1;
  color: #f5c842;
  text-shadow: 0 0 24px rgba(245, 200, 66, 0.6);
}
.match-mvp-emblem-text {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
}
.match-mvp-highlights {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.match-mvp-highlight-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px 14px;
  padding: 10px 12px;
  min-height: 48px;
  border-radius: 2px;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: inherit;
  text-decoration: none !important;
  transition: background 0.15s;
}
.match-mvp-highlight-row:last-child {
  border-bottom: none;
}
.match-mvp-highlight-row:hover {
  color: inherit;
  background: rgba(255, 255, 255, 0.04);
}
.match-mvp-highlight-avatar {
  display: flex;
  align-items: center;
}
.match-mvp-highlight-avatar .match-mvp-avatar,
.match-mvp-highlight-avatar .match-mvp-avatar-fallback {
  width: 36px;
  height: 36px;
  font-size: 14px;
  border: 2px solid rgba(255, 255, 255, 0.15);
}
.match-mvp-highlight-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.match-mvp-highlight-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.match-mvp-highlight-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .match-mvp-panel {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
@media (max-width: 560px) {
  .match-mvp-card-inner {
    flex-direction: column;
    align-items: flex-start;
    min-height: 0;
    padding: 18px 20px;
  }
  .match-mvp-card-photo-wrap {
    align-self: center;
  }
  .match-mvp-rating-under {
    flex-wrap: wrap;
  }
  .match-mvp-highlight-row {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
  }
  .match-mvp-highlight-label {
    grid-column: 2 / -1;
    font-size: 10px;
  }
}

.match-stats-section {
  margin-top: 4px;
}
.match-stats-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.match-stats-section-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.match-stats-section-sub {
  font-size: 11px;
  color: var(--text-muted);
}
.match-stats-team-box {
  border-left: 3px solid var(--team-accent, var(--accent));
  overflow: hidden;
}
.match-stats-team-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--team-accent, var(--accent)) 10%, var(--bg-tertiary)),
    var(--bg-tertiary)
  ) !important;
}
.match-stats-team-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: none;
  letter-spacing: 0;
}
.match-stats-team-score {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--team-accent, var(--accent));
  text-transform: none;
  letter-spacing: 0;
}
.match-stats-team-body { padding: 0 !important; }
.match-stats-empty {
  padding: 16px;
  color: var(--text-muted);
  font-size: 13px;
}
.match-stats-player-cell {
  overflow: hidden;
  text-align: left;
  vertical-align: middle;
}
.match-stats-player-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}
.match-stats-player-name {
  font-weight: 700;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.match-stat-num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.match-stat--good { color: var(--win); }
.match-stat--bad { color: var(--loss); }
.match-stat-adr {
  position: relative;
  text-align: right;
  vertical-align: middle;
}
.match-stat-adr .match-stat-num {
  display: block;
  line-height: 1.2;
}
.match-stat-adr-bar {
  display: block;
  width: 100%;
  height: 3px;
  margin-top: 4px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--team-accent, var(--accent)) 18%, transparent);
  overflow: hidden;
}
.match-stat-adr-bar::after {
  content: "";
  display: block;
  height: 100%;
  width: var(--adr-pct, 0%);
  background: var(--team-accent, var(--accent));
  border-radius: 2px;
  opacity: 0.85;
}

.match-leetify-body { padding: 16px; }
.match-leetify-map--spaced { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.match-leetify-map-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.match-leetify-map-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.03em;
}
.match-leetify-map-idx {
  font-size: var(--text-caption);
  color: var(--text-muted);
}
.match-leetify-map-link { margin-left: auto; font-size: 12px; }
.match-leetify-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.match-leetify-table .leetify-rating-cell { font-weight: 700; }

.leetify-mvp-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  gap: 8px 20px;
  padding: 18px 18px 16px;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--leetify-pink) 30%, var(--border));
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, var(--leetify-pink-soft), transparent 70%),
    linear-gradient(165deg, color-mix(in srgb, var(--leetify-pink) 10%, var(--bg-card)), var(--bg-card));
  margin-bottom: 18px;
}
.leetify-mvp-badge {
  grid-column: 1 / -1;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--leetify-pink);
}
.leetify-mvp-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}
.leetify-mvp-team {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.leetify-mvp-rating {
  text-align: right;
  align-self: start;
}
.leetify-mvp-rating-val {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--leetify-pink);
  line-height: 1;
  text-shadow: 0 0 16px var(--leetify-pink-glow);
}
.leetify-mvp-rating-lbl {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.leetify-mvp-stats {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--text-secondary);
  padding-top: 8px;
  border-top: 1px solid color-mix(in srgb, var(--leetify-pink) 15%, var(--border));
}
.leetify-mvp-stats strong {
  color: var(--text-primary);
  font-weight: 700;
}
.leetify-map-context {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.match-leetify-foot--link {
  padding-bottom: 0;
  border-top: none;
  margin-bottom: 4px;
}

.leetify-highlights-section {
  margin-top: 4px;
}
.leetify-highlights-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.03em;
}
.leetify-highlights-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin: 4px 0 12px;
}
.leetify-highlights-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.leetify-highlight-row {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--bg-tertiary) 70%, transparent);
}
.leetify-highlight-player {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
}
.leetify-highlight-meta {
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.leetify-highlight-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.leetify-highlight-chip {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.leetify-highlight-chip--ace {
  background: color-mix(in srgb, var(--leetify-pink) 25%, transparent);
  color: var(--leetify-pink);
  border: 1px solid color-mix(in srgb, var(--leetify-pink) 40%, transparent);
}
.leetify-highlight-chip--high {
  background: rgba(224, 137, 0, 0.15);
  color: var(--accent-hover);
  border: 1px solid rgba(224, 137, 0, 0.25);
}
.leetify-highlight-chip--mid {
  background: var(--bg-primary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.leetify-highlight-chip--mvp {
  background: color-mix(in srgb, var(--live) 18%, transparent);
  color: var(--live);
  border: 1px solid color-mix(in srgb, var(--live) 35%, transparent);
}
.leetify-highlight-empty,
.leetify-highlights-empty {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}
.match-map-strip {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.match-map-row {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-tertiary);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.match-map-row--btn {
  cursor: pointer;
  user-select: none;
}
.match-map-row--btn:hover {
  border-color: color-mix(in srgb, var(--map-accent, var(--accent)) 45%, var(--border));
  transform: translateY(-1px);
}
.match-map-row--btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.match-map-row.active {
  border-color: color-mix(in srgb, var(--map-accent, var(--accent)) 70%, var(--border));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--map-accent, var(--accent)) 25%, transparent),
    0 6px 20px rgba(0, 0, 0, 0.28);
}
.match-map-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--map-accent, #5a6a7a);
  padding: 7px 14px;
  line-height: 1;
}
.match-map-row-active-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.2);
}
.match-map-row-team {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}
.match-map-row-team--right { align-items: flex-end; }
.match-map-row-badge {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 2px;
}
.match-map-row-badge--win {
  color: #3ecf6e;
  background: rgba(62, 207, 110, 0.15);
  border: 1px solid rgba(62, 207, 110, 0.35);
}
.match-map-row-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
  text-transform: none;
}
.match-page .match-map-row-body {
  min-height: 72px;
  padding: 14px 18px;
}
.match-map-row-body {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 10px 12px;
  background-image:
    linear-gradient(90deg, rgba(8, 12, 18, 0.92) 0%, rgba(8, 12, 18, 0.78) 42%, rgba(8, 12, 18, 0.78) 58%, rgba(8, 12, 18, 0.92) 100%),
    linear-gradient(135deg, color-mix(in srgb, var(--map-accent, #5a6a7a) 35%, #0d1118), #0d1118);
  background-size: cover, cover;
  background-position: center, center;
}
.match-map-row-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--map-bg);
  background-size: cover;
  background-position: center;
  opacity: 0.38;
  z-index: 0;
}
.match-map-row-side,
.match-map-row-center {
  position: relative;
  z-index: 1;
}
.match-map-row-side-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.match-map-row-side--right .match-map-row-side-inner {
  justify-content: flex-end;
}
.match-map-row-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.match-map-row-logo .team-logo,
.match-map-row-logo .team-logo-img {
  border-radius: 4px;
}
.match-page .match-map-row-name {
  max-width: 200px;
  font-size: 14px;
}
.match-map-row-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}
.match-map-row-score {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
  flex-shrink: 0;
}
.match-map-row-score--win {
  color: #3ecf6e;
  text-shadow: 0 0 12px rgba(62, 207, 110, 0.35);
}
.match-map-row-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 88px;
  padding: 0 6px;
}
.match-map-row-stats-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 5px 14px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.match-map-row.active .match-map-row-stats-pill {
  color: #fff;
  background: color-mix(in srgb, var(--map-accent, var(--accent)) 55%, rgba(255, 255, 255, 0.12));
  border-color: color-mix(in srgb, var(--map-accent, var(--accent)) 70%, rgba(255, 255, 255, 0.2));
  box-shadow: 0 0 14px color-mix(in srgb, var(--map-accent, var(--accent)) 40%, transparent);
}
.match-map-row--btn:hover .match-map-row-stats-pill {
  background: rgba(255, 255, 255, 0.2);
}
.match-map-row-halves {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.02em;
}
@media (max-width: 640px) {
  .match-map-row-body {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }
  .match-map-row-side--right .match-map-row-side-inner {
    justify-content: flex-start;
  }
  .match-map-row-center {
    order: -1;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
    padding: 0;
  }
  .match-map-row-name {
    max-width: 90px;
  }
  .match-map-row-score {
    font-size: 22px;
  }
}
.match-page .match-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.match-stats-team-box {
  width: 100%;
  min-width: 0;
}
.match-stats-team-header {
  padding: 14px 18px !important;
}
.match-stats-team-score {
  font-size: 24px !important;
}
.match-stats-table {
  font-size: 13px;
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
}
.match-stats-col-player { width: auto; }
.match-stats-col-num { width: 2.75rem; }
.match-stats-col-adr { width: 4.25rem; }
.match-stats-table th,
.match-stats-table td {
  padding: 11px 8px;
  vertical-align: middle;
  box-sizing: border-box;
}
.match-stats-table th.match-stats-th-player,
.match-stats-table td.match-stats-player-cell {
  padding-left: 14px;
  padding-right: 12px;
  text-align: left;
}
.match-stats-table th.match-stats-th-stat,
.match-stats-table td.match-stat-num,
.match-stats-table td.match-stat-adr {
  padding-left: 6px;
  padding-right: 12px;
  text-align: right;
  white-space: nowrap;
}
.match-stats-table th.match-stats-th-stat.match-stats-th-adr,
.match-stats-table td.match-stat-adr {
  padding-right: 14px;
}
.match-stats-table th.match-stats-th-stat:nth-child(2),
.match-stats-table td:nth-child(2) {
  border-left: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.match-stats-table th {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.match-stats-table tbody tr {
  transition: background 0.15s;
  cursor: default;
}
.match-stats-table tbody tr:hover td {
  background: color-mix(in srgb, var(--bg-hover) 60%, transparent);
}
.match-stats-mvp td {
  background: color-mix(in srgb, var(--accent) 8%, transparent) !important;
  border-top: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
}
.match-mvp-tag {
  flex-shrink: 0;
  font-size: 8px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.08em;
  padding: 2px 5px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
@media (max-width: 1200px) {
  .page-container--match {
    padding: 16px 20px 28px;
  }
  .match-mvp-panel {
    grid-template-columns: 1fr;
  }
  .match-mvp-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}
@media (max-width: 960px) {
  .match-page .match-stats-grid {
    grid-template-columns: 1fr;
  }
  .match-page-lower {
    grid-template-columns: 1fr;
  }
  .match-page-rosters-row {
    grid-template-columns: 1fr 1fr;
  }
  .match-faceit-body {
    padding: 18px 16px 20px;
  }
  .match-faceit-room-head {
    grid-template-columns: 1fr;
    padding: 16px 18px 12px;
  }
  .match-faceit-room-actions {
    justify-content: flex-start;
  }
}
@media (max-width: 640px) {
  .page-container--match {
    padding: 12px 14px 24px;
  }
  .match-hero-inner { padding: 18px 16px 22px; }
  .match-hero-teams {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .match-hero-center { order: -1; }
  .match-hero-team--right { order: 1; }
  .match-page-rosters-row { grid-template-columns: 1fr; }
  .match-mvp-highlights { grid-template-columns: 1fr; }
}
.match-map-stats-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}



@media (max-width: 900px) {
  .team-page-layout { grid-template-columns: 1fr; }
  .team-page-aside { position: static; }
}

@media (max-width: 700px) {
  .player-hero-content { padding: 16px; }
  .player-hero-name { font-size: 26px; }
  .player-hero-ring-col { width: 100%; display: flex; justify-content: center; }
  .team-hero-content { padding: 16px; }
  .team-hero-name { font-size: 26px; }
  .team-hero-ring-col { width: 100%; display: flex; justify-content: center; }
  .map-pool-chart { flex-direction: column; align-items: stretch; }
  .map-legend { max-width: none; }
}
.player-card-badge {
  font-size: 10px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
}
.player-event-matches { padding: 0; }
.event-match-summary {
  padding: 12px 16px;
  font-size: 12px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.event-match-group + .event-match-group {
  border-top: 1px solid var(--border);
}
.event-match-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-secondary);
}
.event-match-group-body .match-row:last-child {
  border-bottom: none;
}
.esea-comp-tag {
  display: inline-block;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text-secondary);
}

.esea-season-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.esea-summary-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.esea-summary-stat--muted .esea-summary-value {
  color: var(--text-secondary);
  font-size: 18px;
}

.esea-summary-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.esea-summary-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.esea-divisions-body {
  padding: 0;
}

.esea-division-group {
  border-bottom: 1px solid var(--border);
}

.esea-division-group:last-child {
  border-bottom: none;
}

.esea-division-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.esea-standings-wrap {
  padding: 12px 14px 0;
  overflow-x: auto;
}

.esea-standings-table {
  margin-bottom: 0;
}

.esea-standings-table .esea-standings-row {
  cursor: pointer;
}

.esea-standings-table .esea-standings-row:hover {
  background: var(--bg-hover);
}

.esea-standings-w {
  color: var(--win);
  font-weight: 700;
}

.esea-standings-l {
  color: var(--loss);
  font-weight: 700;
}

.esea-recent-results {
  border-top: 1px solid var(--border);
}

.esea-recent-results-label {
  padding: 10px 16px 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.esea-recent-results .match-row:last-child {
  border-bottom: none;
}

.esea-results-details {
  border-top: 1px solid var(--border);
}

.esea-results-summary {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.esea-results-summary::-webkit-details-marker {
  display: none;
}

.esea-results-summary::before {
  content: "▸ ";
  color: var(--accent);
}

.esea-results-details[open] .esea-results-summary::before {
  content: "▾ ";
}

.esea-results-details[open] .esea-results-summary {
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.esea-champion-banner {
  margin-bottom: 16px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(224, 137, 0, 0.35);
  background: linear-gradient(135deg, rgba(224, 137, 0, 0.12), var(--bg-card));
}

.esea-champion-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}

.esea-champion-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.esea-champion-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  color: inherit !important;
  min-width: 140px;
}

.esea-champion-team:hover .esea-champion-name {
  color: var(--accent);
}

.esea-champion-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  transition: color 0.15s;
}

.esea-champion-team--runner .esea-champion-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-secondary);
}

.esea-champion-runner-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.esea-champion-score {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  padding: 0 8px;
}

.esea-standings-podium {
  padding: 12px 14px 0;
}

.esea-playoff-cutoff-note {
  padding: 0 14px 10px;
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.esea-standings-row--playoff td:first-child {
  color: var(--accent);
  font-weight: 800;
}

.esea-record-bar {
  margin-top: 4px;
  height: 3px;
  width: 100%;
  max-width: 120px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  overflow: hidden;
}

.esea-record-bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--win), var(--accent));
  border-radius: 2px;
}

.esea-playoff-bracket {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px 14px;
}

.esea-bracket-round {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
}

.esea-bracket-round-label {
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.esea-bracket-round-matches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  padding: 10px;
}

.esea-bracket-match {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  text-decoration: none !important;
  color: inherit !important;
  transition: border-color 0.15s, background 0.15s;
}

.esea-bracket-match:hover {
  border-color: var(--accent);
  background: var(--bg-hover);
}

.esea-bracket-team {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.esea-bracket-team span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.esea-bracket-team strong {
  font-family: var(--font-display);
  font-size: 14px;
  min-width: 14px;
  text-align: right;
}

.esea-bracket-team.winner {
  color: var(--text-primary);
  font-weight: 700;
}

.esea-bracket-team.winner strong {
  color: var(--win);
}

.esea-matchweek-group {
  border-top: 1px solid var(--border);
}

.esea-matchweek-group:first-child {
  border-top: none;
}

.esea-matchweek-summary {
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  list-style: none;
  user-select: none;
  background: var(--bg-secondary);
}

.esea-matchweek-summary::-webkit-details-marker {
  display: none;
}

.esea-matchweek-summary::before {
  content: "▸ ";
  color: var(--accent);
}

.esea-matchweek-group[open] .esea-matchweek-summary::before {
  content: "▾ ";
}

@media (max-width: 720px) {
  .esea-season-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .esea-champion-main {
    flex-direction: column;
  }

  .esea-bracket-round-matches {
    grid-template-columns: 1fr;
  }
}

/* ── Utilities ── */
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-sm { font-size: var(--text-body); }
.text-xs { font-size: var(--text-caption); }
.page-subtitle { font-size: 14px; font-weight: 400; color: var(--text-muted); text-transform: none; letter-spacing: 0; }

.page-subsection-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  margin: 28px 0 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}
.flex-row { display: flex; align-items: center; gap: 8px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.justify-center { justify-content: center; }
.mt-8 { margin-top: 8px; }
.empty-state { padding: 16px; color: var(--text-muted); text-align: center; }
.empty-state-lg { padding: 24px; color: var(--text-muted); text-align: center; }
.rank-cell { font-weight: 700; }
.points-cell { font-weight: 700; color: var(--accent); font-family: var(--font-display); }

/* ── Page transitions ── */
#app.page-enter .main-content {
  animation: panel-in 0.3s ease-out;
}

/* ── Home hero ── */
.home-hero {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(224, 137, 0, 0.12), transparent 50%),
    linear-gradient(180deg, var(--bg-card), var(--bg-secondary));
  box-shadow: var(--shadow-md);
  animation: panel-in 0.35s ease-out;
}
.home-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 22px 24px;
  align-items: center;
}
.home-hero-kicker {
  font-size: var(--text-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 6px;
}
.home-hero-headline {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.home-hero-headline a { color: inherit; text-decoration: none; }
.home-hero-headline a:hover { color: var(--accent); }
.home-hero-stats {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.home-hero-stat {
  font-size: var(--text-caption);
  color: var(--text-secondary);
}
.home-hero-stat strong {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-primary);
  margin-right: 4px;
}
.home-hero-stat.live strong { color: var(--live); }
.home-hero-match {
  min-width: 280px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  text-decoration: none !important;
  color: inherit !important;
  transition: border-color 0.15s, transform 0.15s;
}
.home-hero-match:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.home-hero-match.is-live {
  border-color: rgba(92, 184, 92, 0.45);
  box-shadow: 0 0 20px rgba(92, 184, 92, 0.1);
}
.home-hero-match-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.home-hero-match-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.home-hero-match-team {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: var(--text-body);
}
.home-hero-match-score {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
}
.home-hero-match-meta {
  text-align: center;
  font-size: var(--text-caption);
  color: var(--text-muted);
  margin-top: 8px;
}

@media (max-width: 800px) {
  .home-hero-inner { grid-template-columns: 1fr; }
  .home-hero-match { min-width: 0; }
}

/* ── Valve standings attribution ── */
.valve-source-banner {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(224, 137, 0, 0.35);
  background: linear-gradient(135deg, rgba(224, 137, 0, 0.08), var(--bg-card));
  font-size: var(--text-caption);
  color: var(--text-secondary);
  line-height: 1.55;
}
.valve-source-banner a {
  color: var(--accent);
  font-weight: 600;
  margin-left: 4px;
}
.valve-source-banner--warn {
  border-color: var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
}
.crosscheck-ok {
  color: var(--win);
  font-weight: 800;
}
.crosscheck-warn {
  color: var(--accent);
  font-weight: 700;
}

/* ── Ranking podium ── */
.ranking-podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.ranking-podium-card {
  position: relative;
  padding: 18px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
  cursor: pointer;
  text-decoration: none !important;
  color: inherit !important;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  box-shadow: var(--shadow-sm);
}
.ranking-podium-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.ranking-podium-card.tier-gold {
  border-color: rgba(224, 137, 0, 0.45);
  background: linear-gradient(180deg, rgba(224, 137, 0, 0.1), var(--bg-card));
}
.ranking-podium-card.tier-silver {
  border-color: rgba(180, 190, 210, 0.35);
  order: -1;
}
.ranking-podium-card.tier-bronze {
  border-color: rgba(196, 144, 106, 0.35);
}
.ranking-podium-medal {
  font-size: 22px;
  margin-bottom: 6px;
}
.ranking-podium-rank {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}
.ranking-podium-card.tier-silver .ranking-podium-rank { color: var(--tier-silver); }
.ranking-podium-card.tier-bronze .ranking-podium-rank { color: var(--tier-bronze); }
.ranking-podium-name {
  font-weight: 700;
  font-size: 15px;
  margin-top: 8px;
}
.ranking-podium-points {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 4px;
}
.ranking-podium-change { margin-top: 6px; font-size: var(--text-caption); }

@media (max-width: 700px) {
  .ranking-podium { grid-template-columns: 1fr; }
  .ranking-podium-card.tier-silver { order: 0; }
}

/* ── Players grid ── */
.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  padding: 12px;
}
.player-list-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: inherit;
  text-decoration: none !important;
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}
.player-list-card:hover {
  border-color: var(--accent);
  background: var(--bg-hover);
  transform: translateY(-2px);
}
.player-list-card-avatar,
.player-list-card-fallback {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}
.player-list-card-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  font-weight: 800;
  color: var(--accent);
  border: 2px solid var(--border);
}
.player-list-card-body { flex: 1; min-width: 0; }
.player-list-card-name {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-list-card-meta {
  font-size: var(--text-caption);
  color: var(--text-muted);
  margin-top: 2px;
}
.player-list-card-elo {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
}

/* ── Sidebar widgets ── */
.sidebar-rank-row {
  display: grid;
  grid-template-columns: 24px 28px 1fr auto;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.sidebar-rank-row:last-child { border-bottom: none; }
.sidebar-rank-row:hover { background: var(--bg-hover); text-decoration: none; color: inherit; }
.sidebar-rank-form {
  grid-column: 1 / -1;
  display: flex;
  gap: 4px;
  padding: 0 0 4px 58px;
}
.sidebar-rank-form .form-dot { width: 8px; height: 8px; border-radius: 2px; }

.sidebar-event-row {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.sidebar-event-row:last-child { border-bottom: none; }
.sidebar-event-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-body);
  font-weight: 600;
}
.sidebar-event-progress {
  margin-top: 8px;
  height: 4px;
  background: var(--bg-primary);
  border-radius: 2px;
  overflow: hidden;
}
.sidebar-event-progress-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  transition: width 0.4s ease;
}
.sidebar-event-progress-fill.ongoing {
  background: linear-gradient(90deg, #3d8b3d, var(--live));
  animation: pulse 2s infinite;
}

.sidebar-transfer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-caption);
}
.sidebar-transfer-row:last-child { border-bottom: none; }
.sidebar-transfer-avatar,
.sidebar-transfer-fallback {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}
.sidebar-transfer-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  font-weight: 800;
  font-size: 12px;
  color: var(--accent);
  border: 1px solid var(--border);
}
.sidebar-transfer-body { flex: 1; min-width: 0; }
.sidebar-transfer-player { font-weight: 700; color: var(--text-primary); font-size: var(--text-body); }
.sidebar-transfer-teams {
  color: var(--text-muted);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.sidebar-transfer-date { color: var(--text-muted); flex-shrink: 0; }

/* ── Search ── */
.header-search-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 16px;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s;
}
.header-search-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  max-height: 320px;
  overflow-y: auto;
  z-index: 200;
  display: none;
}
.search-dropdown.is-open { display: block; }
.search-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}
.search-result:last-child { border-bottom: none; }
.search-result:hover,
.search-result.is-focused {
  background: var(--bg-hover);
  text-decoration: none;
  color: inherit;
}
.search-result-type {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  flex-shrink: 0;
}
.search-result-name { font-weight: 600; font-size: var(--text-body); flex: 1; min-width: 0; }
.search-result-meta { font-size: var(--text-caption); color: var(--text-muted); }
.search-empty {
  padding: 16px;
  text-align: center;
  font-size: var(--text-caption);
  color: var(--text-muted);
}

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 18, 0.75);
  backdrop-filter: blur(4px);
  z-index: 300;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 16px 16px;
}
.search-overlay.is-open { display: flex; }
.search-overlay-panel {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.search-overlay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: var(--text-body);
}
.search-overlay-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
.search-overlay-close:hover { color: var(--text-primary); }
.search-overlay .header-search {
  display: block !important;
  padding: 12px;
}
.search-overlay .header-search input { padding-left: 32px; }
.search-overlay .search-dropdown {
  position: static;
  border: none;
  border-radius: 0;
  box-shadow: none;
  max-height: 50vh;
}

/* ── Loading shimmer on match boxes ── */
.box.is-enriching .box-body {
  position: relative;
  min-height: 48px;
}
.box.is-enriching .box-body::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 25%, rgba(224, 137, 0, 0.04) 50%, transparent 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  pointer-events: none;
}