﻿:root {
  --bg: #05060a;
  --bg-alt: #101422;
  --accent: #1ea0ff;
  --accent-soft: rgba(30, 160, 255, 0.18);
  --text: #f7f7f7;
  --muted: #a0a4b5;
  --border: #24293a;
  --success: #52c41a;
  --danger: #ff4d4f;
  --maxw: 1180px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #171d33 0, #05060a 50%);
  color: var(--text);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(5,6,10,0.95), rgba(5,6,10,0.88));
}
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.logo-text span:first-child {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.logo-text span:last-child {
  font-size: 16px;
  font-weight: 600;
}
nav ul {
  display: flex;
  gap: 14px;
  font-size: 14px;
  flex-wrap: wrap;
}
nav a {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
  transition: 0.15s ease;
  border: 1px solid transparent;
}
nav a:hover {
  color: var(--text);
  border-color: var(--accent-soft);
  background: rgba(255,255,255,0.02);
}
nav a.active {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #000;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.18s ease;
  white-space: nowrap;
}
.btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.45);
}
.btn-outline {
  border-color: var(--accent-soft);
  background: transparent;
  color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

main { padding-bottom: 56px; }

.hero {
  padding: 28px 0 22px;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--accent-soft);
  background: rgba(9, 12, 20, 0.9);
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(82,196,26,0.2);
}
.hero-title {
  font-size: clamp(26px, 3.1vw, 34px);
  font-weight: 700;
  margin-bottom: 8px;
}
.hero-subtitle {
  font-size: 14px;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 16px;
}
.hero-tags,
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.hero-tags span,
.pill-row span {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(8, 11, 19, 0.9);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.hero-note {
  font-size: 12px;
  color: var(--muted);
}

.hero-panel {
  border-radius: 22px;
  border: 1px solid var(--border);
  background: radial-gradient(circle at top, #202744 0, #05060a 60%);
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}
.hero-panel h3 {
  font-size: 14px;
  margin-bottom: 6px;
}
.hero-panel p {
  color: var(--muted);
}
.hero-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.hero-chip {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(30,160,255,0.12);
  border: 1px solid rgba(30,160,255,0.5);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section {
  padding: 20px 0;
  border-top: 1px solid rgba(32,35,50,0.9);
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.section-title {
  font-size: 18px;
  font-weight: 600;
}
.section-subtitle {
  font-size: 13px;
  color: var(--muted);
  max-width: 520px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.card {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 12px 12px 10px;
  font-size: 13px;
}
.card h3 {
  font-size: 14px;
  margin-bottom: 4px;
}
.card p {
  color: var(--muted);
  margin-bottom: 4px;
}

.match-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
.match-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(8, 11, 19, 0.9);
}
.match-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.match-teams {
  font-weight: 500;
}
.match-meta {
  font-size: 12px;
  color: var(--muted);
}
.match-score {
  font-weight: 600;
  font-size: 14px;
  min-width: 56px;
  text-align: right;
}
.match-score.win { color: var(--success); }
.match-score.loss { color: var(--danger); }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table th, .table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.table th {
  font-weight: 500;
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--border);
  padding: 16px 0 22px;
  font-size: 12px;
  color: var(--muted);
  background: linear-gradient(to top, #05060a, rgba(5,6,10,0.95));
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-links a {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  nav ul {
    display: none;
  }
  .header-inner {
    justify-content: space-between;
  }
}
@media (max-width: 700px) {
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-panel {
    order: -1;
  }
  .match-item {
    flex-direction: column;
    align-items: flex-start;
  }
}
.player-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.player-avatar-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.4);
}

.player-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.player-avatar-number {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  opacity: 0.9;
}



/* ====== STAGE 1: Player page (universal) ====== */
.player-page.container { max-width: 1100px; margin: 0 auto; padding: 24px; }
.breadcrumbs { margin: 10px 0 18px; opacity: .9; }
.breadcrumbs a { text-decoration: none; }

.player-hero {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 22px; border-radius: 18px;
}
.player-hero__role { font-weight: 700; opacity: .9; margin-bottom: 8px; }
.player-hero__name { font-size: 34px; line-height: 1.1; margin: 0 0 10px; }
.player-hero__meta { opacity: .9; margin-bottom: 8px; }
.player-hero__line2 { opacity: .8; }

.player-avatar { position: relative; width: 200px; height: 200px; }
.player-avatar__circle {
  width: 200px; height: 200px; border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255,255,255,.15);
}
.player-avatar__circle img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.player-avatar__number {
  position: absolute; right: -10px; bottom: -10px;
  padding: 10px 14px; border-radius: 14px;
  font-weight: 800;
}

.player-info-grid {
  margin-top: 18px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.info-card { padding: 14px; border-radius: 14px; }
.info-label { opacity: .75; font-size: 13px; margin-bottom: 6px; }
.info-value { font-size: 16px; font-weight: 700; }

.player-profile { margin-top: 18px; padding: 16px; border-radius: 14px; }
.player-profile h2 { margin: 0 0 10px; }

/* ====== Roster grid ====== */
.roster-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.roster-card {
  display: block;
  padding: 14px; border-radius: 16px;
  text-decoration: none;
}
.roster-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.roster-card__num { font-weight: 900; font-size: 18px; }
.roster-card__role { opacity: .8; font-weight: 700; }
.roster-card__name { font-weight: 800; line-height: 1.2; }

@media (max-width: 980px) {
  .player-hero { flex-direction: column; align-items: flex-start; }
  .player-avatar { width: 180px; height: 180px; }
  .player-avatar__circle { width: 180px; height: 180px; }
  .player-info-grid { grid-template-columns: repeat(2, 1fr); }
  .roster-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .player-hero__name { font-size: 26px; }
  .roster-grid { grid-template-columns: 1fr; }
}

/* ==== Players reset (stage1) ==== */
.player-page.container{max-width:1100px;margin:0 auto;padding:24px;}
.breadcrumbs{margin:10px 0 18px;opacity:.9;}
.breadcrumbs a{text-decoration:none;}

.player-hero{position:relative;border-radius:18px;overflow:hidden;padding:22px;min-height:280px;}
.player-hero__overlay{position:absolute;inset:0;background:linear-gradient(90deg, rgba(0,0,0,.75), rgba(0,0,0,.25));pointer-events:none;}
.player-hero__content{position:relative;z-index:1;display:flex;align-items:flex-end;justify-content:space-between;gap:18px;min-height:240px;}
.player-hero__role{font-weight:700;opacity:.9;margin-bottom:8px;}
.player-hero__name{font-size:34px;line-height:1.1;margin:0 0 10px;}
.player-hero__meta{opacity:.9;margin-bottom:8px;}
.player-hero__line2{opacity:.85;}

.player-avatar{position:relative;width:160px;height:160px;flex:0 0 160px;}
.player-avatar__circle{width:160px;height:160px;border-radius:50%;overflow:hidden;border:4px solid rgba(255,255,255,.18);box-shadow:0 10px 30px rgba(0,0,0,.35);}
.player-avatar__circle img{width:100%;height:100%;object-fit:cover;border-radius:50%;}
.player-avatar__number{position:absolute;right:-6px;bottom:-8px;background:rgba(0,0,0,.6);border:1px solid rgba(255,255,255,.18);padding:6px 10px;border-radius:999px;font-weight:800;}

.player-panels{display:grid;grid-template-columns:1.2fr .8fr;gap:16px;margin-top:16px;}
.player-panel{border-radius:16px;padding:16px;border:1px solid rgba(255,255,255,.10);background:rgba(0,0,0,.25);}
.player-panel h2{margin:0 0 10px;font-size:18px;}
.player-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.field{padding:10px;border-radius:12px;border:1px solid rgba(255,255,255,.08);background:rgba(0,0,0,.18);}
.field .k{opacity:.75;font-size:12px;margin-bottom:6px;}
.field .v{font-weight:700;}

.roster-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:16px;}
.roster-card{display:block;padding:14px;border-radius:16px;border:1px solid rgba(255,255,255,.10);background:rgba(0,0,0,.22);text-decoration:none;}
.roster-card:hover{transform:translateY(-1px);}
.roster-card__avatar{display:flex;align-items:center;gap:10px;margin-bottom:10px;position:relative;}
.roster-card__avatar img{width:46px;height:46px;border-radius:50%;object-fit:cover;border:2px solid rgba(255,255,255,.15);}
.roster-card__num{position:absolute;left:34px;bottom:-6px;font-size:11px;padding:2px 8px;border-radius:999px;background:rgba(0,0,0,.55);border:1px solid rgba(255,255,255,.15);}
.roster-card__name{font-weight:800;line-height:1.1;}
.roster-card__meta{opacity:.8;font-size:12px;margin-top:6px;}

@media (max-width:1100px){.roster-grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:820px){
  .player-panels{grid-template-columns:1fr}
  .roster-grid{grid-template-columns:repeat(2,1fr)}
  .player-hero__content{flex-direction:column;align-items:flex-start}
}
@media (max-width:520px){.roster-grid{grid-template-columns:1fr}}

/* ==== FIX PACK: universal player + roster ==== */
.player-page.container{max-width:1100px;margin:0 auto;padding:24px}
.player-hero{position:relative;overflow:hidden;border-radius:22px;padding:22px;min-height:240px}
.player-hero__bg{position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.8),rgba(0,0,0,.2));opacity:1}
.player-hero__bg--on{background-size:cover;background-position:center}
.player-hero__content{position:relative;z-index:2;max-width:720px}
.player-hero__role{font-weight:800;opacity:.9;margin-bottom:8px}
.player-hero__name{font-size:36px;line-height:1.1;margin:0 0 10px}
.player-hero__meta{opacity:.9;margin-bottom:8px}
.player-hero__line2{opacity:.85;margin-bottom:12px}
.player-tags{display:flex;gap:10px;flex-wrap:wrap}
.tag{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.10)}
.tag--green{background:rgba(0,255,140,.10);border-color:rgba(0,255,140,.18)}

.player-avatar{position:absolute;right:24px;top:50%;transform:translateY(-50%);z-index:3}
.player-avatar__circle{width:104px;height:104px;border-radius:50%;overflow:hidden;border:3px solid rgba(255,255,255,.16);background:rgba(255,255,255,.04)}
.player-avatar__circle img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.player-avatar__number{position:absolute;right:-6px;bottom:-6px;width:38px;height:38px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;font-weight:900;
  background:rgba(0,0,0,.75);border:1px solid rgba(255,255,255,.16)
}

.player-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:18px;margin-top:18px}
.card{border-radius:18px;padding:18px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
.card h2{margin:0 0 10px;font-size:16px;opacity:.95}
.params{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.param{border-radius:14px;padding:12px;background:rgba(0,0,0,.25);border:1px solid rgba(255,255,255,.06)}
.param-label{font-size:12px;opacity:.7;margin-bottom:6px}
.param-value{font-weight:800}

.roster-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.roster-card{display:flex;gap:12px;text-decoration:none;border-radius:18px;padding:14px;
  background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
.roster-card:hover{transform:translateY(-1px)}
.roster-card__avatar{width:56px;height:56px;border-radius:50%;background:rgba(255,255,255,.06);
  border:2px solid rgba(0,255,140,.18)}
.roster-card__name{font-weight:900;margin-bottom:4px}
.roster-card__meta{font-size:12px;opacity:.75;margin-bottom:2px}
.roster-card__actions{display:flex;gap:10px;align-items:center;margin-top:8px}
.pill{font-size:12px;padding:6px 10px;border-radius:999px;background:rgba(0,255,140,.10);border:1px solid rgba(0,255,140,.18)}
.link{font-size:12px;opacity:.85}

@media (max-width: 980px){.roster-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width: 680px){
  .roster-grid{grid-template-columns:1fr}
  .player-grid{grid-template-columns:1fr}
  .player-avatar{position:relative;right:auto;top:auto;transform:none;margin-top:14px}
}

/* === player background layer === */
.player-hero{ position:relative; overflow:hidden; }
.player-bg{
  background-color: #000;

  position:absolute;
  inset:0;
  background-size: contain;
  background-position: center bottom;
  opacity:.25;
  border-radius:18px;
  pointer-events:none;
  z-index:1;
  background-repeat: no-repeat;
}
.player-hero > *{ position:relative; z-index:2; }


/* =========================
   PREMIUM PLAYER PAGE
========================= */
.premium-hero{
  position:relative;
  overflow:hidden;
  border-radius:22px;
  padding:22px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(10,16,30,.45);
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
}

.player-bg{
  background-color: #000;

  position:absolute;
  inset:0;
  background-size: contain;
  background-position: center bottom;
  opacity:.22;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.02);
  pointer-events:none;
  z-index:1;
  background-repeat: no-repeat;
}

.player-bg-overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 420px at 30% 20%, rgba(75,140,255,.20), transparent 55%),
    radial-gradient(700px 360px at 75% 35%, rgba(30,255,200,.12), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.55));
  pointer-events:none;
  z-index:2;
}

.player-hero__grid{
  position:relative;
  z-index:3;
  display:grid;
  grid-template-columns: 160px 1fr;
  gap:18px;
  align-items:center;
}

.player-avatar-wrap{
  width:140px;
  height:140px;
  border-radius:999px;
  padding:6px;
  background: linear-gradient(180deg, rgba(120,200,255,.55), rgba(0,0,0,0));
  box-shadow: 0 18px 55px rgba(0,0,0,.45);
}

.player-avatar{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:999px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.04);
}

.player-chips{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px; }
.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  font-weight:700;
  font-size:12px;
  letter-spacing:.2px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(20,40,80,.35);
  backdrop-filter: blur(10px);
}
.chip-ghost{ background: rgba(255,255,255,.06); }

.player-title{
  margin:0 0 8px;
  font-size:34px;
  line-height:1.08;
  letter-spacing:.2px;
}

.player-sub{ opacity:.92; margin-bottom:6px; }
.player-sub2{ opacity:.78; }

.player-sections{
  margin-top:18px;
  display:grid;
  grid-template-columns: 1.4fr .9fr;
  gap:14px;
}

.glass-card{
  border-radius:18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(10,16,30,.40);
  box-shadow: 0 16px 50px rgba(0,0,0,.35);
  padding:16px 16px 14px;
  backdrop-filter: blur(14px);
}

.glass-card--wide{
  grid-column: 1 / -1;
}

.card-title{
  margin:0 0 10px;
  font-size:16px;
  letter-spacing:.2px;
}

.card-text{ margin:0; opacity:.9; line-height:1.5; }

.kv{ display:flex; flex-direction:column; gap:10px; }
.kv-row{ display:flex; justify-content:space-between; gap:14px; padding-bottom:10px; border-bottom:1px solid rgba(255,255,255,.06); }
.k{ opacity:.70; font-size:12px; }
.v{ font-weight:800; }

.stats-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:12px;
}
.stat{
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  padding:12px;
}
.stat-k{ opacity:.72; font-size:12px; margin-bottom:6px; }
.stat-v{ font-size:22px; font-weight:900; }

@media (max-width: 860px){
  .player-hero__grid{ grid-template-columns: 1fr; }
  .player-avatar-wrap{ width:120px; height:120px; }
  .player-sections{ grid-template-columns: 1fr; }
  .stats-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}


/* === FIX: roster avatar circle ring (perfect round) === */
.roster-card__avatar{
  width:56px;
  height:56px;
  flex: 0 0 56px;
  border-radius:50%;
  overflow:hidden;
  position:relative;
  box-sizing:border-box;
}

.roster-card__avatar img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  border-radius:50%;
}

/* РµСЃР»Рё Сѓ С‚РµР±СЏ РµСЃС‚СЊ "РєРѕР»СЊС†Рѕ" С‡РµСЂРµР· ::before/РіСЂР°РґРёРµРЅС‚ вЂ” РґРµР»Р°РµРј РµРіРѕ СЂРѕРІРЅС‹Рј */
.roster-card__avatar::before{
  content:"";
  position:absolute;
  inset:-2px;              /* С‚РѕР»С‰РёРЅР° РєРѕР»СЊС†Р° */
  border-radius:50%;
  pointer-events:none;
  background: radial-gradient(circle at 30% 30%, rgba(55,220,170,.35), rgba(0,0,0,0) 55%),
              linear-gradient(135deg, rgba(55,220,170,.55), rgba(120,170,255,.35));
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%);
          mask: radial-gradient(circle, transparent 60%, #000 61%);
  opacity:.85;
}

/* === FIX: player page avatar must be 1:1 === */
.player-avatar,
.player-avatar__img,
.player-hero .avatar,
.player-hero .avatar img{
  border-radius:50% !important;
}

.player-avatar,
.player-hero .avatar{
  width:120px;
  height:120px;
  aspect-ratio: 1 / 1;
  overflow:hidden;
  flex: 0 0 120px;
}

.player-avatar img,
.player-hero .avatar img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

/* === Player BG: focus higher (face) === */
.premium-hero .player-bg{
  background-color: #000;

  background-position: center bottom; /* X С†РµРЅС‚СЂ, Y РІС‹С€Рµ С†РµРЅС‚СЂР° */
  background-repeat: no-repeat;
}


/* TEMP: РµСЃР»Рё Р»РёС€РЅРёР№ РєСЂСѓРі вЂ” СЌС‚Рѕ РїСЃРµРІРґРѕСЌР»РµРјРµРЅС‚ hero */
.premium-hero::before,
.premium-hero::after{
  content:none !important;
  display:none !important;
}


/* BG С‡СѓС‚СЊ РІС‹С€Рµ С†РµРЅС‚СЂР° (Р»РёС†Рѕ) */
.premium-hero .player-bg{
  background-color: #000;

  background-position: center bottom;
  background-repeat: no-repeat;
}


/* === FIX: РєСЂСѓРі Р°РІР°С‚Р°СЂР° РІСЃРµРіРґР° СЂРѕРІРЅС‹Р№ === */
.roster-card__avatar{
  width:48px;
  height:48px;
  border-radius:50%;
  overflow:hidden;
  flex:0 0 48px;
}
.roster-card__avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  border-radius:50%;
}

.player-avatar,
.player-avatar img{
  border-radius:50% !important;
}


/* === FIX: СѓР±СЂР°С‚СЊ Р»РёС€РЅРёРµ РґРµРєРѕСЂР°С‚РёРІРЅС‹Рµ РєСЂСѓРіРё (РµСЃР»Рё РіРґРµ-С‚Рѕ РѕСЃС‚Р°Р»РёСЃСЊ СЃС‚Р°СЂС‹Рµ РєР»Р°СЃСЃС‹) === */
.player-avatar-circle,
.player-avatar__circle{
  display:none !important;
}

.player-avatar-wrap{
  width:104px;
  height:104px;
  border-radius:50%;
  overflow:hidden;
  background: rgba(255,255,255,.04);
  border:3px solid rgba(255,255,255,.16);
  box-shadow:0 10px 30px rgba(0,0,0,.35);
}

.player-avatar{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block !important;
  border-radius:50% !important;
}


/* === FIX: СЂРѕРІРЅРѕРµ РєРѕР»СЊС†Рѕ РІРѕРєСЂСѓРі Р°РІР°С‚Р°СЂР° РІ roster (Р±РµР· mask/РіСЂР°РґРёРµРЅС‚РѕРІ) === */
.roster-card__avatar::before{
  content:none !important;
  display:none !important;
}

.roster-card__avatar{
  border: 2px solid rgba(55,220,170,.35);
  box-shadow: 0 0 0 4px rgba(255,255,255,.06);
}


/* ================================
   PLAYER PAGE AVATAR вЂ” FINAL FIX
================================ */
.player-avatar-wrap{
  width:120px !important;
  height:120px !important;
  min-width:120px !important;
  min-height:120px !important;
  flex: 0 0 120px !important;

  border-radius:50% !important;
  overflow:hidden !important;

  background: rgba(255,255,255,.04);
  border: 3px solid rgba(255,255,255,.18);
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
}

.player-avatar{
  width:100% !important;
  height:100% !important;
  display:block !important;
  object-fit:cover !important;
  border-radius:50% !important;
}

/* РІС‹РєР»СЋС‡Р°РµРј СЃС‚Р°СЂС‹Рµ РєСЂСѓРіРё/РѕР±С‘СЂС‚РєРё РµСЃР»Рё РіРґРµ-С‚Рѕ Р±С‹Р»Рё */
.player-avatar-circle,
.player-avatar__circle{
  display:none !important;
}


/* === HERO BG: focus higher (face) === */
.premium-hero .player-bg{
  background-color: #000;

  background-position: center bottom;
  background-repeat: no-repeat;
}


/* ==========================

/* ==========================
   FINAL FIX: player avatar
   (РѕС‚РєР»СЋС‡Р°РµРј СЃС‚Р°СЂС‹Рµ absolute-СЃС‚РёР»Рё)
========================== */
.page-player .player-avatar-wrap{
  position: relative;
  width: 120px !important;
  height: 120px !important;
  min-width: 120px !important;
  min-height: 120px !important;
  flex: 0 0 120px !important;

  border-radius: 50% !important;
  overflow: hidden !important;
}

.page-player .player-avatar-wrap .player-avatar{
  position: static !important;
  right: auto !important;
  top: auto !important;
  transform: none !important;

  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}

.page-player .player-avatar__circle,
.page-player .player-avatar-circle{
  display: none !important;
}


/* ================================
   PLAYER PAGE AVATAR вЂ” FINAL FIX
================================ */
.player-avatar-wrap{
  width:120px !important;
  height:120px !important;
  min-width:120px !important;
  min-height:120px !important;
  flex: 0 0 120px !important;

  border-radius:50% !important;
  overflow:hidden !important;

  background: rgba(255,255,255,.04);
  border: 3px solid rgba(255,255,255,.18);
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
}

.player-avatar{
  width:100% !important;
  height:100% !important;
  display:block !important;
  object-fit:cover !important;
  border-radius:50% !important;
}

/* РІС‹РєР»СЋС‡Р°РµРј СЃС‚Р°СЂС‹Рµ РєСЂСѓРіРё/РѕР±С‘СЂС‚РєРё РµСЃР»Рё РіРґРµ-С‚Рѕ Р±С‹Р»Рё */
.player-avatar-circle,
.player-avatar__circle{
  display:none !important;
}


/* === HERO BG: focus higher (face) === */
.premium-hero .player-bg{
  background-color: #000;

  background-position: center bottom;
  background-repeat: no-repeat;
}


/* ==========================
   PLAYER HERO вЂ” LIGHTER BG
   (РјРµРЅСЊС€Рµ Р·Р°С‚РµРјРЅРµРЅРёРµ)
========================== */

/* СЃР°РјРѕ С„РѕС‚Рѕ */
.page-player .player-bg{
  background-color: #000;

  opacity: 0.38 !important;        /* Р±С‹Р»Рѕ ~0.22вЂ“0.25 */
  filter: saturate(1.05) contrast(1.05);
  background-repeat: no-repeat;
}

/* Р·Р°С‚РµРјРЅСЏСЋС‰РёР№ СЃР»РѕР№ */
.page-player .player-bg-overlay{
  background: linear-gradient(
    to right,
    rgba(5,8,16,0.45),
    rgba(5,8,16,0.25)
  ) !important;
}


/* ==========================
   PLAYER HERO вЂ” HEIGHT
========================== */
.page-player .premium-hero{
  min-height: 300px;   /* Р±С‹Р»Рѕ ~240 */
  padding-top: 28px;
  padding-bottom: 28px;
}

@media (max-width: 860px){
  .page-player .premium-hero{
    min-height: 260px;
  }
}


/* ==========================
   PLAYER AVATAR вЂ” TRICOLOR RING
   (white / blue / red)
========================== */
.page-player .player-avatar-wrap{
  position: relative;
}

/* С‚СЂРёРєРѕР»РѕСЂ-РєРѕР»СЊС†Рѕ */
.page-player .player-avatar-wrap::after{
  content: "";
  position: absolute;
  inset: -4px;                 /* С‚РѕР»С‰РёРЅР° РєРѕР»СЊС†Р° */
  border-radius: 50%;
  pointer-events: none;

  background: conic-gradient(
    #ffffff 0deg 120deg,       /* Р±РµР»С‹Р№ */
    #0039a6 120deg 240deg,     /* СЃРёРЅРёР№ */
    #d52b1e 240deg 360deg      /* РєСЂР°СЃРЅС‹Р№ */
  );

  /* РІС‹СЂРµР·Р°РµРј С†РµРЅС‚СЂ */
  -webkit-mask: radial-gradient(circle, transparent 64%, #000 65%);
          mask: radial-gradient(circle, transparent 64%, #000 65%);
}


/* ==========================
   TRICOLOR RING вЂ” THICK + HOVER
   СЂР°Р±РѕС‚Р°РµС‚: player + roster
========================== */

/* --- PLAYER (СЃС‚СЂР°РЅРёС†Р° РёРіСЂРѕРєР°) --- */
.page-player .player-avatar-wrap{
  position: relative;
}

/* С‚РѕР»С‰Рµ РєРѕР»СЊС†Рѕ */
.page-player .player-avatar-wrap::after{
  content:"";
  position:absolute;
  inset:-6px;                 /* РўРћР›Р©РРќРђ РљРћР›Р¬Р¦Рђ (Р±С‹Р»Рѕ -4). РњРѕР¶РЅРѕ -7/-8 */
  border-radius:50%;
  pointer-events:none;

  background: conic-gradient(
    #ffffff 0deg 120deg,
    #0039a6 120deg 240deg,
    #d52b1e 240deg 360deg
  );

  /* РІС‹СЂРµР·Р°РµРј С†РµРЅС‚СЂ (С‡СѓС‚СЊ РїРѕРґ С‚РѕР»С‰РёРЅСѓ) */
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%);
          mask: radial-gradient(circle, transparent 62%, #000 63%);

  transition: transform .25s ease, filter .25s ease, opacity .25s ease;
  opacity:.95;
}

/* hover СЌС„С„РµРєС‚ */
.page-player .player-avatar-wrap:hover::after{
  transform: rotate(10deg) scale(1.03);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.55));
  opacity:1;
}

/* --- ROSTER (СЃРѕСЃС‚Р°РІ РєРѕРјР°РЅРґС‹) --- */
.roster-card__avatar{
  position:relative;
  border-radius:50%;
  overflow:hidden;
}

/* С‚СЂРёРєРѕР»СЊС†Рѕ РЅР° Р°РІР°С‚Р°СЂРєРµ РІ СЃРѕСЃС‚Р°РІРµ */
.roster-card__avatar::after{
  content:"";
  position:absolute;
  inset:-5px;                 /* РўРћР›Р©РРќРђ РєРѕР»СЊС†Р° РІ СЃРѕСЃС‚Р°РІРµ */
  border-radius:50%;
  pointer-events:none;

  background: conic-gradient(
    #ffffff 0deg 120deg,
    #0039a6 120deg 240deg,
    #d52b1e 240deg 360deg
  );

  -webkit-mask: radial-gradient(circle, transparent 63%, #000 64%);
          mask: radial-gradient(circle, transparent 63%, #000 64%);

  transition: transform .22s ease, filter .22s ease, opacity .22s ease;
  opacity:.92;
}

/* hover РЅР° РєР°СЂС‚РѕС‡РєРµ/Р°РІР°С‚Р°СЂРµ */
.roster-card:hover .roster-card__avatar::after{
  transform: rotate(10deg) scale(1.03);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.55));
  opacity:1;
}


/* ==========================
   ROSTER FILTER UI
========================== */
.roster-filters{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin: 14px 0 18px;
}

.rf-btn{
  appearance:none;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.9);
  padding: 10px 14px;
  border-radius: 999px;
  cursor:pointer;
  font-weight:700;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
}

.rf-btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
}

.rf-btn.is-active{
  background: rgba(0,57,166,.22);
  border-color: rgba(0,57,166,.45);
}


/* ==========================
   PLAYER HERO вЂ” LIGHTER BG + HEIGHT
========================== */
.page-player .player-bg{
  background-color: #000;

  opacity: 0.38 !important; /* СЃРІРµС‚Р»РµРµ С„РѕРЅ */
  filter: saturate(1.05) contrast(1.05);
  background-repeat: no-repeat;
}

.page-player .player-bg-overlay{
  background: linear-gradient(
    to right,
    rgba(5,8,16,0.35),
    rgba(5,8,16,0.18)
  ) !important;
}

.page-player .premium-hero{
  min-height: 300px;
  padding-top: 28px;
  padding-bottom: 28px;
}

@media (max-width: 860px){
  .page-player .premium-hero{
    min-height: 260px;
  }
}

/* С„РѕРєСѓСЃ С„РѕС‚Рѕ РІС‹С€Рµ (Р»РёС†Рѕ) */
.premium-hero .player-bg{
  background-color: #000;

  background-position: center bottom;
  background-repeat: no-repeat;
}

/* ==========================
   FINAL FIX: player avatar
========================== */
.page-player .player-avatar-wrap{
  position: relative;
  width: 120px !important;
  height: 120px !important;
  min-width: 120px !important;
  min-height: 120px !important;
  flex: 0 0 120px !important;

  border-radius: 50% !important;
  overflow: hidden !important;
}

.page-player .player-avatar-wrap .player-avatar{
  position: static !important;
  right: auto !important;
  top: auto !important;
  transform: none !important;

  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}

/* ==========================
   TRICOLOR RING вЂ” THICK + HOVER
   (player + roster)
========================== */

/* PLAYER: С‚СЂРёРєРѕР»РѕСЂ РІРѕРєСЂСѓРі Р°РІР°С‚Р°СЂР° */
.page-player .player-avatar-wrap::after{
  content:"";
  position:absolute;
  inset:-7px;               /* С‚РѕР»С‰РёРЅР° РєРѕР»СЊС†Р° (РјРѕР¶РЅРѕ -8) */
  border-radius:50%;
  pointer-events:none;

  background: conic-gradient(
    #ffffff 0deg 120deg,
    #0039a6 120deg 240deg,
    #d52b1e 240deg 360deg
  );

  -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%);
          mask: radial-gradient(circle, transparent 60%, #000 61%);

  transition: transform .25s ease, filter .25s ease, opacity .25s ease;
  opacity:.95;
}

.page-player .player-avatar-wrap:hover::after{
  transform: rotate(10deg) scale(1.03);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.55));
  opacity:1;
}

/* ROSTER: С‚СЂРёРєРѕР»РѕСЂ РІРѕРєСЂСѓРі Р°РІР°С‚Р°СЂР° */
.roster-card__avatar{
  position:relative;
  border-radius:50%;
  overflow:hidden;
}

.roster-card__avatar::after{
  content:"";
  position:absolute;
  inset:-6px;               /* С‚РѕР»С‰РёРЅР° РєРѕР»СЊС†Р° РІ СЃРѕСЃС‚Р°РІРµ */
  border-radius:50%;
  pointer-events:none;

  background: conic-gradient(
    #ffffff 0deg 120deg,
    #0039a6 120deg 240deg,
    #d52b1e 240deg 360deg
  );

  -webkit-mask: radial-gradient(circle, transparent 61%, #000 62%);
          mask: radial-gradient(circle, transparent 61%, #000 62%);

  transition: transform .22s ease, filter .22s ease, opacity .22s ease;
  opacity:.92;
}

.roster-card:hover .roster-card__avatar::after{
  transform: rotate(10deg) scale(1.03);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.55));
  opacity:1;
}

/* ==========================
   ROSTER FILTER UI
========================== */
.roster-filters{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin: 14px 0 18px;
}

.rf-btn{
  appearance:none;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.9);
  padding: 10px 14px;
  border-radius: 999px;
  cursor:pointer;
  font-weight:700;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
}

.rf-btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
}

.rf-btn.is-active{
  background: rgba(0,57,166,.22);
  border-color: rgba(0,57,166,.45);
}


/* ==========================
   ROSTER AVATAR вЂ” TRICOLOR (HORIZONTAL)
========================== */
.roster-card__avatar{
  position: relative;
  overflow: visible; /* С‡С‚РѕР±С‹ РєРѕР»СЊС†Рѕ РЅРµ СЂРµР·Р°Р»РѕСЃСЊ */
}

.roster-card__avatar::after{
  content: "";
  position: absolute;
  inset: -6px;                 /* С‚РѕР»С‰РёРЅР° РєРѕР»СЊС†Р° */
  border-radius: 50%;
  pointer-events: none;

  /* РіРѕСЂРёР·РѕРЅС‚Р°Р»СЊРЅС‹Рµ РїРѕР»РѕСЃС‹ РєР°Рє С„Р»Р°Рі */
  background: linear-gradient(
    to bottom,
    #ffffff 0% 33.33%,
    #0039a6 33.33% 66.66%,
    #d52b1e 66.66% 100%
  );

  /* РІС‹СЂРµР·Р°РµРј С†РµРЅС‚СЂ */
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%);
          mask: radial-gradient(circle, transparent 62%, #000 63%);

  transition: transform .22s ease, filter .22s ease;
}

.roster-card:hover .roster-card__avatar::after{
  transform: scale(1.06);
  filter: brightness(1.15);
}


/* FIX: С„РѕРєСѓСЃ РЅР° Р»РёС†Рѕ (С‡СѓС‚СЊ РІС‹С€Рµ С†РµРЅС‚СЂР°) */
.roster-card__avatar img{
  object-position: 50% 25%;
}


/* ==========================
   ROSTER AVATAR вЂ” TRICOLOR (HORIZONTAL) + HOVER
========================== */
.roster-card__avatar{
  position: relative;
  overflow: visible; /* С‡С‚РѕР±С‹ РєРѕР»СЊС†Рѕ РЅРµ СЂРµР·Р°Р»РѕСЃСЊ */
}

.roster-card__avatar::after{
  content: "";
  position: absolute;
  inset: -6px;                 /* С‚РѕР»С‰РёРЅР° РєРѕР»СЊС†Р° */
  border-radius: 50%;
  pointer-events: none;

  background: linear-gradient(
    to bottom,
    #ffffff 0% 33.33%,
    #0039a6 33.33% 66.66%,
    #d52b1e 66.66% 100%
  );

  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%);
          mask: radial-gradient(circle, transparent 62%, #000 63%);

  transition: transform .22s ease, filter .22s ease, opacity .22s ease;
  opacity: .95;
}

.roster-card:hover .roster-card__avatar::after{
  transform: scale(1.06);
  filter: brightness(1.12);
  opacity: 1;
}

/* FIX: С„РѕРєСѓСЃ РЅР° Р»РёС†Рѕ (С‡СѓС‚СЊ РІС‹С€Рµ С†РµРЅС‚СЂР°) */
.roster-card__avatar img{
  object-position: 50% 25%;
}


/* ==========================
   PLAYER HERO вЂ” CLEAN PREMIUM BG
========================== */

/* СЃР°РјРѕ С„РѕС‚Рѕ */
.page-player .player-bg{
  background-color: #000;

  opacity: 0.42 !important;                 /* С„РѕС‚Рѕ РІРёРґРЅРѕ, РЅРѕ РЅРµ С€СѓРјРёС‚ */
  filter: saturate(1.02) contrast(1.02);
  background-repeat: no-repeat;
}

/* РѕСЃРЅРѕРІРЅРѕР№ Р·Р°С‚РµРјРЅСЏСЋС‰РёР№ СЃР»РѕР№ */
.page-player .player-bg-overlay{
  background:
    linear-gradient(
      to right,
      rgba(6,10,20,0.85) 0%,
      rgba(6,10,20,0.65) 32%,
      rgba(6,10,20,0.35) 55%,
      rgba(6,10,20,0.25) 100%
    ) !important;
}

/* РјСЏРіРєР°СЏ РІРёРЅСЊРµС‚РєР° РїРѕ РєСЂР°СЏРј */
.page-player .premium-hero::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius:22px;

  background:
    radial-gradient(
      circle at 30% 50%,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,0.15) 45%,
      rgba(0,0,0,0.45) 100%
    );
}

/* РІС‹СЃРѕС‚Р° hero вЂ” РїСЂРѕСЃС‚РѕСЂРЅРµРµ */
.page-player .premium-hero{
  min-height: 320px;
  padding-top: 30px;
  padding-bottom: 30px;
}

@media (max-width: 860px){
  .page-player .premium-hero{
    min-height: 260px;
  }
}


/* ==========================
   PLAYER HERO вЂ” CLEAN PREMIUM BG
========================== */

/* СЃР°РјРѕ С„РѕС‚Рѕ */
.page-player .player-bg{
  background-color: #000;

  opacity: 0.42 !important;
  filter: saturate(1.02) contrast(1.02);
  background-repeat: no-repeat;
}

/* Р·Р°С‚РµРјРЅРµРЅРёРµ СЃРїСЂР°РІР°/СЃР»РµРІР° */
.page-player .player-bg-overlay{
  background: linear-gradient(
    to right,
    rgba(6,10,20,0.85) 0%,
    rgba(6,10,20,0.65) 32%,
    rgba(6,10,20,0.35) 55%,
    rgba(6,10,20,0.25) 100%
  ) !important;
}

/* РјСЏРіРєР°СЏ РІРёРЅСЊРµС‚РєР° */
.page-player .premium-hero::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius:22px;
  background: radial-gradient(
    circle at 30% 50%,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.15) 45%,
    rgba(0,0,0,0.45) 100%
  );
}

/* РІС‹СЃРѕС‚Р° hero */
.page-player .premium-hero{
  min-height: 320px;
  padding-top: 30px;
  padding-bottom: 30px;
}
@media (max-width: 860px){
  .page-player .premium-hero{ min-height: 260px; }
}


/* ==========================
   PLAYER HERO вЂ” CLEAN PREMIUM BG
========================== */

/* СЃР°РјРѕ С„РѕС‚Рѕ */
.page-player .player-bg{
  background-color: #000;

  opacity: 0.42 !important;
  filter: saturate(1.02) contrast(1.02);
  background-repeat: no-repeat;
}

/* Р·Р°С‚РµРјРЅРµРЅРёРµ СЃРїСЂР°РІР°/СЃР»РµРІР° */
.page-player .player-bg-overlay{
  background: linear-gradient(
    to right,
    rgba(6,10,20,0.85) 0%,
    rgba(6,10,20,0.65) 32%,
    rgba(6,10,20,0.35) 55%,
    rgba(6,10,20,0.25) 100%
  ) !important;
}

/* РјСЏРіРєР°СЏ РІРёРЅСЊРµС‚РєР° */
.page-player .premium-hero::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius:22px;
  background: radial-gradient(
    circle at 30% 50%,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.15) 45%,
    rgba(0,0,0,0.45) 100%
  );
}

/* РІС‹СЃРѕС‚Р° hero */
.page-player .premium-hero{
  min-height: 320px;
  padding-top: 30px;
  padding-bottom: 30px;
}
@media (max-width: 860px){
  .page-player .premium-hero{ min-height: 260px; }
}


/* ==========================
   ROSTER AVATAR вЂ” TRICOLOR RING (HORIZONTAL) + HOVER
========================== */
.roster-card__avatar{
  position: relative;
  overflow: visible; /* РєРѕР»СЊС†Рѕ РЅРµ РѕР±СЂРµР·Р°РµС‚СЃСЏ */
}

.roster-card__avatar::after{
  content: "";
  position: absolute;
  inset: -7px;                /* РўРћР›Р©РРќРђ РєРѕР»СЊС†Р° (РјРѕР¶РЅРѕ -8) */
  border-radius: 50%;
  pointer-events: none;

  /* РіРѕСЂРёР·РѕРЅС‚Р°Р»СЊРЅС‹Рµ РїРѕР»РѕСЃС‹ РєР°Рє С„Р»Р°Рі Р Р¤ */
  background: linear-gradient(
    to bottom,
    #ffffff 0% 33.33%,
    #0039a6 33.33% 66.66%,
    #d52b1e 66.66% 100%
  );

  /* РІС‹СЂРµР·Р°РµРј С†РµРЅС‚СЂ */
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%);
          mask: radial-gradient(circle, transparent 62%, #000 63%);

  opacity: .95;
  transition: transform .22s ease, filter .22s ease, opacity .22s ease;
}

.roster-card:hover .roster-card__avatar::after{
  transform: scale(1.06);
  filter: brightness(1.12);
  opacity: 1;
}

/* С„РѕРєСѓСЃ С‡СѓС‚СЊ РІС‹С€Рµ С†РµРЅС‚СЂР° (Р»СѓС‡С€Рµ РґР»СЏ Р»РёС†Р°) */
.roster-card__avatar img{
  object-position: 50% 25%;
}


/* ==========================
   ROSTER: TRICOLOR RING (HORIZONTAL) + HOVER
========================== */

/* Р°РєС‚РёРІРЅР°СЏ РєРЅРѕРїРєР° С„РёР»СЊС‚СЂР° */
.rf-btn.is-active{
  border-color: rgba(255,255,255,.22) !important;
  background: rgba(255,255,255,.10) !important;
}

/* Р°РІР°С‚Р°СЂ: РєРѕР»СЊС†Рѕ С„Р»Р°РіРѕРј + hover */
.roster-card__avatar{
  position:relative !important;
  overflow: visible !important; /* С‡С‚РѕР±С‹ РєРѕР»СЊС†Рѕ РЅРµ РѕР±СЂРµР·Р°Р»РѕСЃСЊ */
  border-radius:50%;
}

.roster-card__avatar::after{
  content:"";
  position:absolute;
  inset:-6px;                 /* С‚РѕР»С‰РёРЅР° РєРѕР»СЊС†Р° */
  border-radius:50%;
  pointer-events:none;

  /* С„Р»Р°Рі Р Р¤ (РїРѕР»РѕСЃС‹ РіРѕСЂРёР·РѕРЅС‚Р°Р»СЊРЅРѕ) */
  background: linear-gradient(
    to bottom,
    #ffffff 0% 33.33%,
    #0039a6 33.33% 66.66%,
    #d52b1e 66.66% 100%
  );

  /* РІС‹СЂРµР·Р°РµРј С†РµРЅС‚СЂ, С‡С‚РѕР±С‹ РѕСЃС‚Р°Р»РѕСЃСЊ РєРѕР»СЊС†Рѕ */
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%);
          mask: radial-gradient(circle, transparent 62%, #000 63%);

  opacity:.95;
  transition: transform .22s ease, filter .22s ease, opacity .22s ease;
}

.roster-card:hover .roster-card__avatar::after{
  transform: scale(1.04);
  filter: brightness(1.12) saturate(1.10);
  opacity: 1;
}

/* С„РѕРєСѓСЃ РїРѕ Р»РёС†Сѓ (РґР»СЏ РїСЂРѕР±Р»РµРјРЅС‹С… С„РѕС‚Рѕ С‚РёРїР° Р©РёРїС†РѕРІ/РџСЂРѕС‚Р°СЃРµРІРёС‡) */
.roster-card__avatar img{
  object-position: 50% 22% !important;
}

/* ==========================
   ROSTER AVATAR вЂ” REMOVE GREEN RING
   + TRICOLOR HORIZONTAL (flag)
========================== */

/* СѓР±РёСЂР°РµРј СЃС‚Р°СЂС‹Рµ Р·РµР»РµРЅС‹Рµ РѕР±РІРѕРґРєРё/С‚РµРЅРё */
.roster-card__avatar{
  border: none !important;
  box-shadow: none !important;
  background: rgba(255,255,255,.04) !important;
  position: relative;
  overflow: visible !important; /* С‡С‚РѕР±С‹ РєРѕР»СЊС†Рѕ РЅРµ СЂРµР·Р°Р»РѕСЃСЊ */
  border-radius: 50%;
}

/* РєРѕР»СЊС†Рѕ С„Р»Р°РіРѕРј */
.roster-card__avatar::after{
  content:"";
  position:absolute;
  inset:-6px;                 /* С‚РѕР»С‰РёРЅР° */
  border-radius:50%;
  pointer-events:none;

  background: linear-gradient(
    to bottom,
    #ffffff 0% 33.33%,
    #0039a6 33.33% 66.66%,
    #d52b1e 66.66% 100%
  );

  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%);
          mask: radial-gradient(circle, transparent 62%, #000 63%);

  transition: transform .22s ease, filter .22s ease, opacity .22s ease;
  opacity: .95;
}

/* hover */
.roster-card:hover .roster-card__avatar::after{
  transform: scale(1.03);
  filter: brightness(1.12);
  opacity: 1;
}

/* РєРЅРѕРїРєРё С„РёР»СЊС‚СЂР° вЂ” Р°РєС‚РёРІРЅР°СЏ */
.rf-btn.is-active{
  background: rgba(255,255,255,.10) !important;
  border-color: rgba(255,255,255,.22) !important;
}

/* ==========================
   PLAYER HERO вЂ” CLEAN BG (less noise)
========================== */

.page-player .player-bg{
  background-color: #000;

  opacity: 0.44 !important;
  filter: blur(3px) saturate(1.02) contrast(1.02);
  transform: scale(1.03);
  background-position: center bottom; /* РѕР±С‹С‡РЅРѕ СѓРІРѕРґРёС‚ вЂњРјСѓСЃРѕСЂвЂќ РІРїСЂР°РІРѕ */
  background-repeat: no-repeat;
}

.page-player .player-bg-overlay{
  background: linear-gradient(
    to right,
    rgba(6,10,20,0.88) 0%,
    rgba(6,10,20,0.62) 35%,
    rgba(6,10,20,0.30) 62%,
    rgba(6,10,20,0.22) 100%
  ) !important;
}

.page-player .premium-hero{
  min-height: 320px;
}
/* РјРѕР№ css */
.test{ color:red; }

/* =========================================
   ROSTER AVATAR вЂ” remove green ring + tricolor
========================================= */
.roster-card__avatar{
  border: none !important;
  box-shadow: none !important;
  background: rgba(255,255,255,.04) !important;
  position: relative;
  overflow: visible !important;
  border-radius: 50%;
}

.roster-card__avatar::after{
  content:"";
  position:absolute;
  inset:-7px;                 /* С‚РѕР»С‰РёРЅР° С„Р»Р°РіР° */
  border-radius:50%;
  pointer-events:none;

  /* РіРѕСЂРёР·РѕРЅС‚Р°Р»СЊРЅС‹Рµ РїРѕР»РѕСЃС‹ РєР°Рє С„Р»Р°Рі Р Р¤ */
  background: linear-gradient(
    to bottom,
    #ffffff 0% 33.33%,
    #0039a6 33.33% 66.66%,
    #d52b1e 66.66% 100%
  );

  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%);
          mask: radial-gradient(circle, transparent 62%, #000 63%);

  opacity: .95;
  transition: transform .22s ease, filter .22s ease, opacity .22s ease;
}

.roster-card:hover .roster-card__avatar::after{
  transform: scale(1.03);
  filter: brightness(1.12);
  opacity: 1;
}

/* С„РѕРєСѓСЃ РЅР° Р»РёС†Рѕ (С‡СѓС‚СЊ РІС‹С€Рµ С†РµРЅС‚СЂР°) */
.roster-card__avatar img{
  object-position: 50% 22%;
}

/* active state for filter buttons */
.rf-btn.is-active{
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
}

/* ==========================
   TRICOLOR RING (HORIZONTAL) вЂ” roster + player
   + remove old green ring
========================== */

/* ROSTER avatar base */
.roster-card__avatar{
  border: none !important;
  box-shadow: none !important;
  background: rgba(255,255,255,.04) !important;
  position: relative !important;
  overflow: visible !important;
  border-radius: 50% !important;
}

/* РєРѕР»СЊС†Рѕ С„Р»Р°РіРѕРј (РіРѕСЂРёР·РѕРЅС‚Р°Р»СЊРЅС‹Рµ РїРѕР»РѕСЃС‹) */
.roster-card__avatar::after{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius:50%;
  pointer-events:none;

  background: linear-gradient(
    to bottom,
    #ffffff 0% 33.33%,
    #0039a6 33.33% 66.66%,
    #d52b1e 66.66% 100%
  );

  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%);
          mask: radial-gradient(circle, transparent 62%, #000 63%);

  opacity:.95;
  transition: transform .22s ease, filter .22s ease, opacity .22s ease;
}

.roster-card:hover .roster-card__avatar::after{
  transform: scale(1.03);
  filter: brightness(1.12);
  opacity: 1;
}

/* ACTIVE filter button */
.rf-btn.is-active{
  border-color: rgba(255,255,255,.22) !important;
  background: rgba(255,255,255,.10) !important;
}

/* PLAYER page avatar ring (Р°РЅРєРµС‚Р° РёРіСЂРѕРєР°) вЂ” С‚Р°РєРѕР№ Р¶Рµ С‚СЂРёРєРѕР»РѕСЂ */
.page-player .player-avatar-wrap{
  position: relative !important;
  overflow: visible !important;
  border: none !important;
  box-shadow: none !important;
}

.page-player .player-avatar-wrap::after{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius:50%;
  pointer-events:none;

  background: linear-gradient(
    to bottom,
    #ffffff 0% 33.33%,
    #0039a6 33.33% 66.66%,
    #d52b1e 66.66% 100%
  );

  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%);
          mask: radial-gradient(circle, transparent 62%, #000 63%);

  opacity:.95;
  transition: transform .22s ease, filter .22s ease, opacity .22s ease;
}

.page-player .player-avatar-wrap:hover::after{
  transform: scale(1.03);
  filter: brightness(1.12);
  opacity: 1;
}


/* FIX: filters must be clickable */
.roster-filters{ position: relative; z-index: 5; }
.premium-hero, .premium-hero *{ pointer-events: auto; }


/* ==========================
   PLAYER HERO вЂ” CLEAN BG (less noise)
========================== */
.page-player .player-bg{
  background-color: #000;

  opacity: 0.44 !important;
  filter: blur(5px) saturate(1.02) contrast(1.02);
  transform: scale(1.04);
  background-position: center bottom;
  background-repeat: no-repeat;
}

.page-player .player-bg-overlay{
  background: linear-gradient(
    to right,
    rgba(6,10,20,0.90) 0%,
    rgba(6,10,20,0.64) 36%,
    rgba(6,10,20,0.30) 64%,
    rgba(6,10,20,0.22) 100%
  ) !important;
}


/* FIX: filters must be clickable */
.roster-filters{ position: relative; z-index: 5; }
.premium-hero, .premium-hero *{ pointer-events: auto; }


/* TRICOLOR (HORIZONTAL) + remove green ring */
.roster-card__avatar{
  border: none !important;
  box-shadow: none !important;
  background: rgba(255,255,255,.04) !important;
  position: relative !important;
  overflow: visible !important;
  border-radius: 50% !important;
}

.roster-card__avatar::after{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius:50%;
  pointer-events:none;
  background: linear-gradient(to bottom,
    #ffffff 0% 33.33%,
    #0039a6 33.33% 66.66%,
    #d52b1e 66.66% 100%
  );
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%);
          mask: radial-gradient(circle, transparent 62%, #000 63%);
  opacity:.95;
  transition: transform .22s ease, filter .22s ease, opacity .22s ease;
}

.roster-card:hover .roster-card__avatar::after{
  transform: scale(1.03);
  filter: brightness(1.12);
  opacity: 1;
}

.rf-btn.is-active{
  border-color: rgba(255,255,255,.22) !important;
  background: rgba(255,255,255,.10) !important;
}


/* TRICOLOR (HORIZONTAL) + remove green ring */
.roster-card__avatar{
  border: none !important;
  box-shadow: none !important;
  background: rgba(255,255,255,.04) !important;
  position: relative !important;
  overflow: visible !important;
  border-radius: 50% !important;
}

.roster-card__avatar::after{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius:50%;
  pointer-events:none;
  background: linear-gradient(to bottom,
    #ffffff 0% 33.33%,
    #0039a6 33.33% 66.66%,
    #d52b1e 66.66% 100%
  );
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%);
          mask: radial-gradient(circle, transparent 62%, #000 63%);
  opacity:.95;
  transition: transform .22s ease, filter .22s ease, opacity .22s ease;
}

.roster-card:hover .roster-card__avatar::after{
  transform: scale(1.03);
  filter: brightness(1.12);
  opacity: 1;
}

.rf-btn.is-active{
  border-color: rgba(255,255,255,.22) !important;
  background: rgba(255,255,255,.10) !important;
}


/* ==========================
   FILTERS: clickable + active
========================== */
.roster-filters{ position: relative; z-index: 10; }
.rf-btn.is-active{
  border-color: rgba(255,255,255,.22) !important;
  background: rgba(255,255,255,.10) !important;
}

/* ==========================
   ROSTER AVATAR вЂ” TRICOLOR (HORIZONTAL)
   remove old green ring
========================== */
.roster-card__avatar{
  border: none !important;
  box-shadow: none !important;
  background: rgba(255,255,255,.04) !important;
  position: relative !important;
  overflow: visible !important;
  border-radius: 50% !important;
}

/* РєРѕР»СЊС†Рѕ С„Р»Р°РіРѕРј: Р±РµР»С‹Р№/СЃРёРЅРёР№/РєСЂР°СЃРЅС‹Р№ РіРѕСЂРёР·РѕРЅС‚Р°Р»СЊРЅРѕ */
.roster-card__avatar::after{
  content:"";
  position:absolute;
  inset:-6px;                 /* С‚РѕР»С‰РёРЅР° РєРѕР»СЊС†Р° */
  border-radius:50%;
  pointer-events:none;

  background: linear-gradient(
    to bottom,
    #ffffff 0% 33.33%,
    #0039a6 33.33% 66.66%,
    #d52b1e 66.66% 100%
  );

  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%);
          mask: radial-gradient(circle, transparent 62%, #000 63%);

  opacity:.95;
  transition: transform .22s ease, filter .22s ease, opacity .22s ease;
}

.roster-card:hover .roster-card__avatar::after{
  transform: scale(1.03);
  filter: brightness(1.12);
  opacity: 1;
}

/* Р¤РћРљРЈРЎ РќРђ Р›РР¦Рћ (СЃРѕСЃС‚Р°РІ) */
.roster-card__avatar img{
  object-position: 50% 25%;
}

/* Р¤РћРљРЈРЎ РќРђ Р›РР¦Рћ (Р°РЅРєРµС‚Р° РёРіСЂРѕРєР°) */
.page-player .player-avatar{
  object-position: 50% 25%;
}


/* ==========================
   PLAYER HERO вЂ” CLEAN BG (less noise)
========================== */
.page-player .player-bg{
  background-color: #000;

  opacity: 0.44 !important;
  filter: blur(5px) saturate(1.02) contrast(1.02);
  transform: scale(1.04);
  background-position: center bottom;
  background-repeat: no-repeat;
}

.page-player .player-bg-overlay{
  background: linear-gradient(
    to right,
    rgba(6,10,20,0.90) 0%,
    rgba(6,10,20,0.64) 36%,
    rgba(6,10,20,0.30) 64%,
    rgba(6,10,20,0.22) 100%
  ) !important;
}



/* ==========================
   FILTERS: clickable + active
========================== */
.roster-filters{ position: relative; z-index: 10; }
.rf-btn.is-active{
  border-color: rgba(255,255,255,.22) !important;
  background: rgba(255,255,255,.10) !important;
}

/* ==========================
   ROSTER AVATAR вЂ” TRICOLOR (HORIZONTAL)
   remove old green ring
========================== */
.roster-card__avatar{
  border: none !important;
  box-shadow: none !important;
  background: rgba(255,255,255,.04) !important;
  position: relative !important;
  overflow: visible !important;
  border-radius: 50% !important;
}

/* РєРѕР»СЊС†Рѕ С„Р»Р°РіРѕРј: Р±РµР»С‹Р№/СЃРёРЅРёР№/РєСЂР°СЃРЅС‹Р№ РіРѕСЂРёР·РѕРЅС‚Р°Р»СЊРЅРѕ */
.roster-card__avatar::after{
  content:"";
  position:absolute;
  inset:-6px;                 /* С‚РѕР»С‰РёРЅР° РєРѕР»СЊС†Р° */
  border-radius:50%;
  pointer-events:none;

  background: linear-gradient(
    to bottom,
    #ffffff 0% 33.33%,
    #0039a6 33.33% 66.66%,
    #d52b1e 66.66% 100%
  );

  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%);
          mask: radial-gradient(circle, transparent 62%, #000 63%);

  opacity:.95;
  transition: transform .22s ease, filter .22s ease, opacity .22s ease;
}

.roster-card:hover .roster-card__avatar::after{
  transform: scale(1.03);
  filter: brightness(1.12);
  opacity: 1;
}

/* С„РѕРєСѓСЃ РЅР° Р»РёС†Рѕ (СЃРѕСЃС‚Р°РІ) */
.roster-card__avatar img{ object-position: 50% 25%; }

/* ==========================
   PLAYER HERO вЂ” CLEAN BG (less noise)
========================== */
.page-player .player-bg{
  background-color: #000;

  opacity: 0.44 !important;
  filter: blur(5px) saturate(1.02) contrast(1.02);
  transform: scale(1.04);
  background-position: center bottom;
  background-repeat: no-repeat;
}

.page-player .player-bg-overlay{
  background: linear-gradient(
    to right,
    rgba(6,10,20,0.90) 0%,
    rgba(6,10,20,0.64) 36%,
    rgba(6,10,20,0.30) 64%,
    rgba(6,10,20,0.22) 100%
  ) !important;
}


/* ==========================
   FILTERS: clickable + active
========================== */
.roster-filters{ position: relative; z-index: 10; }
.rf-btn.is-active{
  border-color: rgba(255,255,255,.22) !important;
  background: rgba(255,255,255,.10) !important;
}

/* ==========================
   ROSTER AVATAR вЂ” TRICOLOR (HORIZONTAL)
   remove old green ring + hover
========================== */
.roster-card__avatar{
  border: none !important;
  box-shadow: none !important;
  background: rgba(255,255,255,.04) !important;
  position: relative !important;
  overflow: visible !important;
  border-radius: 50% !important;
}

.roster-card__avatar::after{
  content:"";
  position:absolute;
  inset:-7px;                 /* С‚РѕР»С‰РёРЅР° РєРѕР»СЊС†Р° */
  border-radius:50%;
  pointer-events:none;

  background: linear-gradient(
    to bottom,
    #ffffff 0% 33.33%,
    #0039a6 33.33% 66.66%,
    #d52b1e 66.66% 100%
  );

  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%);
          mask: radial-gradient(circle, transparent 62%, #000 63%);

  opacity:.95;
  transition: transform .22s ease, filter .22s ease, opacity .22s ease;
}

.roster-card:hover .roster-card__avatar::after{
  transform: scale(1.03);
  filter: brightness(1.12);
  opacity: 1;
}

/* С„РѕРєСѓСЃ РЅР° Р»РёС†Рѕ (СЃРѕСЃС‚Р°РІ) */
.roster-card__avatar img{ object-position: 50% 25%; }

/* ==========================
   PLAYER HERO вЂ” CLEAN BG (less noise)
========================== */
.page-player .player-bg{
  background-color: #000;

  opacity: 0.44 !important;
  filter: blur(5px) saturate(1.02) contrast(1.02);
  transform: scale(1.04);
  background-position: center bottom;
  background-repeat: no-repeat;
}

.page-player .player-bg-overlay{
  background: linear-gradient(
    to right,
    rgba(6,10,20,0.90) 0%,
    rgba(6,10,20,0.64) 36%,
    rgba(6,10,20,0.30) 64%,
    rgba(6,10,20,0.22) 100%
  ) !important;
}


/* ==========================
   FILTERS: clickable + active
========================== */
.roster-filters{ position: relative; z-index: 10; }
.rf-btn.is-active{
  border-color: rgba(255,255,255,.22) !important;
  background: rgba(255,255,255,.10) !important;
}

/* ==========================
   ROSTER AVATAR вЂ” TRICOLOR (HORIZONTAL)
   remove old green ring + hover
========================== */
.roster-card__avatar{
  border: none !important;
  box-shadow: none !important;
  background: rgba(255,255,255,.04) !important;
  position: relative !important;
  overflow: visible !important;
  border-radius: 50% !important;
}

.roster-card__avatar::after{
  content:"";
  position:absolute;
  inset:-7px;                 /* С‚РѕР»С‰РёРЅР° РєРѕР»СЊС†Р° */
  border-radius:50%;
  pointer-events:none;

  background: linear-gradient(
    to bottom,
    #ffffff 0% 33.33%,
    #0039a6 33.33% 66.66%,
    #d52b1e 66.66% 100%
  );

  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%);
          mask: radial-gradient(circle, transparent 62%, #000 63%);

  opacity:.95;
  transition: transform .22s ease, filter .22s ease, opacity .22s ease;
}

.roster-card:hover .roster-card__avatar::after{
  transform: scale(1.03);
  filter: brightness(1.12);
  opacity: 1;
}

/* С„РѕРєСѓСЃ РЅР° Р»РёС†Рѕ (СЃРѕСЃС‚Р°РІ) */
.roster-card__avatar img{ object-position: 50% 25%; }

/* ==========================
   PLAYER HERO вЂ” CLEAN BG (less noise)
========================== */
.page-player .player-bg{
  background-color: #000;

  opacity: 0.44 !important;
  filter: blur(5px) saturate(1.02) contrast(1.02);
  transform: scale(1.04);
  background-position: center bottom;
  background-repeat: no-repeat;
}

.page-player .player-bg-overlay{
  background: linear-gradient(
    to right,
    rgba(6,10,20,0.90) 0%,
    rgba(6,10,20,0.64) 36%,
    rgba(6,10,20,0.30) 64%,
    rgba(6,10,20,0.22) 100%
  ) !important;
}


/* ==========================
   FILTERS: clickable + active
========================== */
.roster-filters{ position: relative; z-index: 10; }
.rf-btn.is-active{
  border-color: rgba(255,255,255,.22) !important;
  background: rgba(255,255,255,.10) !important;
}

/* ==========================
   ROSTER AVATAR вЂ” TRICOLOR (HORIZONTAL)
   remove old green ring + hover
========================== */
.roster-card__avatar{
  border: none !important;
  box-shadow: none !important;
  background: rgba(255,255,255,.04) !important;
  position: relative !important;
  overflow: visible !important;
  border-radius: 50% !important;
}

.roster-card__avatar::after{
  content:"";
  position:absolute;
  inset:-7px;                 /* С‚РѕР»С‰РёРЅР° */
  border-radius:50%;
  pointer-events:none;

  background: linear-gradient(
    to bottom,
    #ffffff 0% 33.33%,
    #0039a6 33.33% 66.66%,
    #d52b1e 66.66% 100%
  );

  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%);
          mask: radial-gradient(circle, transparent 62%, #000 63%);

  opacity:.95;
  transition: transform .22s ease, filter .22s ease, opacity .22s ease;
}

.roster-card:hover .roster-card__avatar::after{
  transform: scale(1.03);
  filter: brightness(1.12);
  opacity: 1;
}

/* С„РѕРєСѓСЃ РЅР° Р»РёС†Рѕ (СЃРѕСЃС‚Р°РІ) */
.roster-card__avatar img{ object-position: 50% 25%; }



/* --- CONTENT STYLES --- */
.page-title { font-size: 36px; text-transform: uppercase; border-left: 5px solid #ce2029; padding-left: 20px; margin-bottom: 30px; color: #fff; }
.page-text-content { font-size: 16px; line-height: 1.6; color: #ddd; max-width: 900px; }
.page-text-content h2 { font-size: 24px; color: #fff; margin-top: 40px; margin-bottom: 15px; border-bottom: 1px solid #333; padding-bottom: 10px; }
.page-text-content h3 { font-size: 20px; color: #ce2029; margin-top: 30px; margin-bottom: 10px; }
.page-text-content p.lead { font-size: 18px; color: #fff; font-weight: 300; margin-bottom: 30px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 30px; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 30px; }
.info-card { background: #111; padding: 25px; border: 1px solid #333; border-top: 3px solid #ce2029; }
.info-card h2 { margin-top: 0; font-size: 20px; border: none; padding: 0; }
.hk-list { list-style: none; padding: 0; }
.hk-list li { position: relative; padding-left: 20px; margin-bottom: 10px; }
.hk-list li::before { content: "•"; color: #ce2029; font-weight: bold; position: absolute; left: 0; }
.cta-block { background: #1a1a1a; padding: 30px; border-radius: 8px; margin-top: 40px; text-align: center; }
.hk-button-sm { display: inline-block; font-size: 14px; color: #ce2029; text-decoration: none; margin-top: 10px; font-weight: bold; }
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } }

/* --- FIXED BACKGROUND PATCH --- */

/* 1. Глобальный фон сайта (лед) стоит на месте */
body {
    background-attachment: fixed !important;
    background-position: center center !important;
    background-size: cover !important;
}

/* 2. Фото игрока (Hero) стоит на месте */
.nhl-hero-section {
    background-attachment: fixed !important;
    background-position: center top !important; /* Фокус на верхнюю часть (лицо) */
    background-repeat: no-repeat !important;
    background-size: cover !important;
    
    /* Добавляем тень, чтобы текст снизу читался лучше */
    box-shadow: inset 0 -100px 100px -20px #000;
}

/* Убираем лишние отступы, чтобы фото касалось краев */
.nhl-top-bar {
    position: relative;
    z-index: 10; /* Меню всегда сверху */
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

/* --- AVATAR FACE FIX --- */
/* Принудительно выравниваем фото по верху, чтобы не резать головы */
.strip-avatar img, #player-avatar {
    object-fit: cover !important;
    object-position: top center !important;
}

/* --- BACKGROUND ZOOM FIX --- */
.nhl-hero-section {
    /* 100% - ширина, auto - высота (сохраняет пропорции) */
    background-size: 100% auto !important; 
    
    /* Если картинка станет слишком короткой, не повторять её */
    background-repeat: no-repeat !important;
    
    /* Центрируем её по верху, чтобы лицо всегда было видно */
    background-position: center top !important;
}

/* На мобильных возвращаем cover, чтобы не было пустых полос */
@media (max-width: 900px) {
    .nhl-hero-section {
        background-size: cover !important;
        background-attachment: scroll !important; /* На телефонах параллакс часто глючит, лучше выключить */
    }
}

/* --- PERSONAL AVATAR TWEAKS (ZOOM OUT) --- */
/* Для №17 (Шацков) и №99 (Протасевич) включаем режим "вместить всё" */
.pid-17 .strip-avatar img,
.pid-99 .strip-avatar img {
    object-fit: contain !important; /* Показывает фото целиком, не обрезая */
    background-color: #111; /* Фон, если фото у́же рамки */
    object-position: bottom center !important; /* Прижать к низу, чтобы голова не упиралась в потолок */
    transform: scale(1.1); /* Чуть увеличиваем, чтобы убрать лишние черные поля */
}

/* --- ROSTER FILTERS & CARDS --- */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #111;
    border: 1px solid #333;
    color: #aaa;
    padding: 10px 25px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 30px; /* Овальные кнопки */
    transition: 0.3s;
}

.filter-btn:hover {
    border-color: #ce2029;
    color: #fff;
}

.filter-btn.active {
    background: #ce2029;
    border-color: #ce2029;
    color: #fff;
    box-shadow: 0 0 15px rgba(206, 32, 41, 0.4);
}

/* Сетка игроков */
.roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    transition: opacity 0.3s ease;
}

.roster-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.roster-card:hover {
    transform: translateY(-7px);
    border-color: #ce2029;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background: #1a1a1a;
}

/* Фото в карточке */
.roster-img-box {
    height: 260px; /* Высокое фото */
    background: linear-gradient(to top, #000, #1a1a1a);
    position: relative;
    overflow: hidden;
}

.roster-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* Фокус на лицо */
    transition: transform 0.4s;
}

.roster-card:hover .roster-img-box img {
    transform: scale(1.05); /* Легкий зум при наведении */
}

.roster-num-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    font-weight: 900;
    color: rgba(255,255,255,0.8);
    text-shadow: 0 2px 4px #000;
}

/* Инфо блок */
.roster-info {
    padding: 15px;
    text-align: center;
    border-top: 1px solid #222;
}

.r-name {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 5px;
    line-height: 1.2;
}

.r-meta {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.r-pos { color: #ce2029; font-weight: bold; }

/* Адаптив */
@media (max-width: 600px) {
    .roster-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .roster-img-box { height: 180px; }
    .r-name { font-size: 13px; }
    .filter-btn { padding: 8px 15px; font-size: 11px; }
}

/* --- ROSTER COMPACT LIST --- */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    background: #222;
    border: 1px solid #444;
    color: #bbb;
    padding: 8px 20px;
    cursor: pointer;
    border-radius: 20px;
    font-size: 13px;
    transition: 0.2s;
}
.filter-btn:hover, .filter-btn.active {
    background: #ce2029;
    border-color: #ce2029;
    color: #fff;
}

/* Сетка для списка (по 3-4 в ряд) */
.roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Широкие, но низкие карточки */
    gap: 15px;
}

/* Сама карточка - горизонтальная полоска */
.roster-card {
    display: flex; /* Горизонтально */
    align-items: center; /* Центровка по вертикали */
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 10px;
    text-decoration: none;
    transition: 0.2s;
    height: 80px; /* Фиксированная высота */
}

.roster-card:hover {
    background: #222;
    border-color: #555;
    transform: translateX(5px); /* Легкий сдвиг вправо */
}

/* Маленькое фото слева (Кружок) */
.roster-img-box {
    width: 60px;
    height: 60px;
    border-radius: 50%; /* Круг */
    overflow: hidden;
    margin-right: 15px;
    border: 2px solid #333;
    background: #000;
    flex-shrink: 0;
}

.roster-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* Текст справа */
.roster-info {
    flex-grow: 1;
    border: none; /* Убираем границы из прошлого варианта */
    padding: 0;
    text-align: left; /* Текст слева */
}

.roster-num-overlay { display: none; } /* Убираем наложение номера с фото */

.r-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.r-number {
    font-size: 18px;
    font-weight: 900;
    color: #ce2029;
}

.r-name {
    font-size: 15px;
    color: #fff;
    margin: 0;
    font-weight: bold;
    text-transform: none; /* Не обязательно капсом */
}

.r-pos {
    font-size: 12px;
    color: #777;
    text-transform: uppercase;
}

/* --- FINAL ROSTER LIST FIX --- */
/* Сетка: 3 колонки на широком экране, 1 на телефоне */
.roster-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)) !important;
    gap: 15px !important;
}

/* НОВЫЙ КЛАСС: Строка игрока */
.player-row {
    display: flex !important;
    align-items: center !important;
    background: #151515;
    border: 1px solid #333;
    border-radius: 50px; /* Закругленные края всей плашки */
    padding: 5px 20px 5px 5px; /* Отступы внутри */
    text-decoration: none;
    transition: 0.2s;
    height: 70px; /* Высота плашки */
}

.player-row:hover {
    background: #222;
    border-color: #ce2029;
    transform: translateX(5px);
}

/* ФОТО (Круг слева) */
.player-row-img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 2px solid #ce2029; /* Красная обводка как на скриншоте */
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
    background: #000;
}

.player-row-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* ТЕКСТ */
.player-row-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pr-top {
    font-size: 12px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.pr-name {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}

.pr-num {
    color: #ce2029;
    font-weight: bold;
    margin-right: 5px;
}

/* --- ABOUT PAGE STYLES --- */
.content-block {
    background: #111;
    border: 1px solid #333;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
}
.content-block h2 { color: #ce2029; margin-top: 0; }
.content-block p { color: #ccc; line-height: 1.6; }

.arena-card {
    position: relative;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
    border: 1px solid #333;
}
.arena-bg {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}
.arena-info {
    position: absolute;
    bottom: 20px; left: 20px;
    z-index: 2;
}
.arena-title { font-size: 24px; font-weight: bold; color: #fff; }
.arena-addr { color: #aaa; margin-top: 5px; }

/* --- MEDIA PAGE STYLES --- */
.media-tabs { display: flex; gap: 10px; margin-bottom: 20px; }
.m-tab {
    background: #222; border: none; color: #fff;
    padding: 10px 20px; cursor: pointer;
    font-weight: bold; border-radius: 4px;
}
.m-tab.active { background: #ce2029; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}
.gallery-item {
    height: 180px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #333;
    position: relative;
    cursor: pointer;
    transition: 0.3s;
}
.gallery-item:hover { transform: scale(1.02); border-color: #ce2029; }
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: 0.3s;
}
.gallery-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    transform: translateY(100%);
    transition: 0.3s;
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* --- GALLERY ALBUMS --- */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.album-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
}
.album-card:hover { transform: translateY(-5px); border-color: #ce2029; }
.album-cover {
    height: 200px;
    background: #000;
    overflow: hidden;
}
.album-cover img {
    width: 100%; height: 100%; object-fit: cover; transition: 0.4s;
}
.album-card:hover .album-cover img { transform: scale(1.1); }
.album-info { padding: 15px; }
.album-date { font-size: 12px; color: #777; margin-bottom: 5px; }
.album-title { font-size: 16px; font-weight: bold; color: #fff; }

/* КНОПКА "НАЗАД" */
.back-btn {
    background: transparent; border: 1px solid #ce2029; color: #ce2029;
    padding: 8px 20px; border-radius: 20px; cursor: pointer;
    margin-bottom: 20px; font-weight: bold; display: inline-flex; align-items: center;
}
.back-btn:hover { background: #ce2029; color: #fff; }

/* --- LIGHTBOX (УВЕЛИЧЕНИЕ) --- */
.lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: none; /* Скрыто по умолчанию */
    justify-content: center; align-items: center;
    flex-direction: column;
}
.lightbox.active { display: flex; animation: fadeIn 0.3s; }
.lightbox img {
    max-width: 90%; max-height: 80vh;
    border: 2px solid #333;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}
.lb-close {
    position: absolute; top: 20px; right: 30px;
    color: #fff; font-size: 40px; cursor: pointer;
    transition: 0.2s;
}
.lb-close:hover { color: #ce2029; }
.lb-caption { color: #ccc; margin-top: 15px; font-size: 14px; }

@keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} }

/* --- NEWS PAGE STYLES --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.news-card {
    background: #151515;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: #ce2029;
    background: #1a1a1a;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.news-date {
    background: #ce2029;
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    align-self: flex-start;
    margin: 15px 0 0 15px;
    border-radius: 4px;
}

.news-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 18px;
    color: #fff;
    margin: 10px 0;
    line-height: 1.4;
    font-weight: bold;
}

.news-excerpt {
    font-size: 14px;
    color: #aaa;
    line-height: 1.6;
    flex-grow: 1;
}

.news-footer {
    padding: 15px;
    border-top: 1px solid #222;
    font-size: 13px;
    color: #666;
    display: flex;
    justify-content: space-between;
}

/* --- NEWS READER MODAL --- */
.news-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    display: none; /* Скрыто по умолчанию */
    justify-content: center; align-items: center;
    backdrop-filter: blur(5px);
}
.news-modal-overlay.active { display: flex; animation: fadeIn 0.3s; }

.news-reader-card {
    background: #111;
    border: 1px solid #333;
    width: 90%; max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}
.news-reader-header {
    background: #ce2029;
    padding: 20px 30px;
    color: #fff;
}
.nr-date { font-size: 14px; opacity: 0.8; font-weight: bold; margin-bottom: 5px; }
.nr-title { font-size: 24px; font-weight: 900; line-height: 1.2; margin: 0; }

.news-reader-body {
    padding: 30px;
    color: #ddd;
    font-size: 16px;
    line-height: 1.8;
}

.nr-close {
    position: absolute; top: 15px; right: 20px;
    background: rgba(0,0,0,0.2);
    color: #fff; width: 30px; height: 30px;
    border-radius: 50%; text-align: center; line-height: 30px;
    cursor: pointer; font-weight: bold; font-size: 18px;
    transition: 0.2s;
}
.nr-close:hover { background: #fff; color: #ce2029; }

/* --- MATCH CENTER STYLES --- */
.match-tabs { display: flex; gap: 10px; margin-bottom: 30px; justify-content: center; }
.match-tab {
    background: #1a1a1a; border: 1px solid #333; color: #aaa;
    padding: 12px 30px; cursor: pointer; border-radius: 30px;
    font-weight: bold; text-transform: uppercase; letter-spacing: 1px;
    transition: 0.3s;
}
.match-tab:hover { color: #fff; border-color: #ce2029; }
.match-tab.active { background: #ce2029; border-color: #ce2029; color: #fff; box-shadow: 0 0 15px rgba(206,32,41,0.4); }

/* СПИСОК МАТЧЕЙ */
.match-list { display: flex; flex-direction: column; gap: 15px; }

.match-row {
    background: #151515; border: 1px solid #333; border-radius: 8px;
    padding: 15px 20px; display: flex; align-items: center; justify-content: space-between;
    transition: 0.2s; text-decoration: none;
}
.match-row:hover { background: #1a1a1a; border-color: #555; transform: translateX(5px); }

/* Блок даты */
.m-date-box {
    text-align: center; width: 60px; flex-shrink: 0; border-right: 1px solid #333; padding-right: 15px; margin-right: 15px;
}
.m-day { font-size: 20px; font-weight: bold; color: #fff; line-height: 1; }
.m-month { font-size: 11px; color: #777; text-transform: uppercase; margin-top: 3px; }

/* Команды и счет */
.m-teams { flex-grow: 1; display: flex; align-items: center; gap: 20px; }
.m-team-name { font-size: 16px; font-weight: bold; color: #fff; width: 150px; }
.m-team-name.home { text-align: right; }
.m-team-name.away { text-align: left; color: #aaa; }

.m-score-box {
    background: #000; padding: 5px 15px; border-radius: 4px; border: 1px solid #333;
    font-size: 18px; font-weight: 900; color: #fff; letter-spacing: 2px; min-width: 60px; text-align: center;
}
.m-score-box.future { color: #ce2029; font-size: 14px; letter-spacing: 0; border: 1px solid #ce2029; }

/* Статус (Win/Loss) */
.m-status {
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-weight: bold; font-size: 12px; margin-left: 15px;
}
.win { background: rgba(40, 167, 69, 0.2); color: #28a745; border: 1px solid #28a745; }
.loss { background: rgba(206, 32, 41, 0.2); color: #ce2029; border: 1px solid #ce2029; }

/* ТУРНИРНАЯ ТАБЛИЦА */
.standings-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.standings-table th { text-align: left; padding: 15px; color: #777; border-bottom: 1px solid #333; font-weight: normal; }
.standings-table td { padding: 15px; border-bottom: 1px solid #222; color: #ccc; }
.standings-table tr:hover td { background: #1a1a1a; color: #fff; }
.st-rank { font-weight: bold; color: #777; width: 30px; }
.st-team { color: #fff; font-weight: bold; display: flex; align-items: center; gap: 10px; }
.st-logo { width: 24px; height: 24px; background: #333; border-radius: 50%; }

/* Выделение своей команды */
tr.my-team td { background: rgba(206, 32, 41, 0.1); border-bottom: 1px solid #ce2029; }
tr.my-team .st-rank { color: #ce2029; }

@media (max-width: 600px) {
    .m-team-name { font-size: 13px; width: auto; }
    .m-teams { gap: 10px; flex-direction: column; align-items: center; }
    .m-score-box { margin: 5px 0; }
    .m-date-box { border: none; margin: 0; padding: 0; margin-bottom: 10px; width: 100%; border-bottom: 1px solid #222; padding-bottom: 5px; }
    .match-row { flex-direction: column; text-align: center; }
}

/* --- COACHES PAGE STYLES --- */
.coach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.coach-card {
    background: #151515;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: 0.3s;
    position: relative;
}

.coach-card:hover {
    border-color: #ce2029;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.coach-photo-wrap {
    width: 100%;
    height: 350px; /* Большое фото */
    overflow: hidden;
    border-bottom: 3px solid #ce2029;
    background: #000;
}

.coach-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: 0.4s;
}

.coach-card:hover .coach-photo-wrap img { transform: scale(1.05); }

.coach-info { padding: 25px; }

.coach-role {
    color: #ce2029;
    text-transform: uppercase;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.coach-name {
    font-size: 22px;
    color: #fff;
    font-weight: bold;
    margin-bottom: 15px;
}

.coach-bio {
    color: #aaa;
    font-size: 14px;
    line-height: 1.6;
}

/* --- HOME PAGE HERO --- */
.home-hero {
    height: 85vh; /* Почти на весь экран */
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), #000), url('/assets/img/brand/home-bg.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Параллакс */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    border-bottom: 4px solid #ce2029;
}

.hero-logo-big {
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(206,32,41,0.6));
    animation: pulse 3s infinite;
}

.hero-title {
    font-size: 60px;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
    line-height: 1;
    text-shadow: 0 5px 15px rgba(0,0,0,0.8);
}

.hero-subtitle {
    font-size: 20px;
    color: #ce2029;
    font-weight: bold;
    letter-spacing: 3px;
    margin-top: 10px;
    text-transform: uppercase;
}

@keyframes pulse { 0% {transform: scale(1);} 50% {transform: scale(1.05);} 100% {transform: scale(1);} }

/* БАННЕР СЛЕДУЮЩЕГО МАТЧА */
.next-match-banner {
    background: #151515;
    border: 1px solid #333;
    max-width: 900px;
    margin: -60px auto 50px auto; /* Наезжает на Hero */
    position: relative;
    z-index: 5;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.nm-team { font-size: 24px; font-weight: 900; color: #fff; text-transform: uppercase; width: 30%; text-align: center; }
.nm-vs { color: #ce2029; font-weight: bold; font-size: 14px; }
.nm-info { text-align: center; border-left: 1px solid #333; border-right: 1px solid #333; padding: 0 20px; flex-grow: 1; }
.nm-date { color: #fff; font-weight: bold; font-size: 18px; display: block; margin-bottom: 5px; }
.nm-place { color: #777; font-size: 12px; text-transform: uppercase; }

/* КНОПКИ БЫСТРОГО ДОСТУПА */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}
.qk-card {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.3s;
}
.qk-card:hover { background: #ce2029; border-color: #ce2029; transform: translateY(-5px); }
.qk-icon { font-size: 40px; margin-bottom: 15px; display: block; }
.qk-title { color: #fff; font-weight: bold; font-size: 18px; text-transform: uppercase; }

/* АДАПТИВ */
@media (max-width: 700px) {
    .hero-title { font-size: 40px; }
    .next-match-banner { flex-direction: column; gap: 15px; margin-top: 20px; width: 90%; }
    .nm-info { border: none; border-top: 1px solid #333; border-bottom: 1px solid #333; padding: 10px 0; width: 100%; }
    .nm-team { font-size: 20px; width: 100%; }
}
/* Стиль для заглушки фото в составе */
.roster-cell.photo img.placeholder-icon {
    padding: 5px;
    background-color: rgba(255,255,255,0.05); /* Чуть светлее фон */
    object-fit: contain; /* Чтобы лого не обрезалось */
    opacity: 0.7;
}

/* --- PLAYER PROFILE AVATAR FIX --- */
#player-avatar {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Если стоит заглушка (логотип), делаем её меньше и прозрачнее */
#player-avatar.is-placeholder {
    object-fit: contain;
    padding: 40px;
    background: #111;
    opacity: 0.6;
}

/* --- PREMIUM HEADER REDESIGN --- */
.hk-header {
    background: rgba(15, 15, 15, 0.95); /* Почти черный, но с прозрачностью */
    border-bottom: 1px solid #333;
    padding: 15px 0;
    position: sticky; /* Липкая шапка */
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px); /* Эффект размытия фона (стекло) */
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.hk-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ЛОГОТИП */
.hk-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px; /* Расстояние между картинкой и текстом */
    transition: transform 0.3s ease;
}

.hk-logo-link:hover {
    transform: scale(1.02); /* Легкое увеличение при наведении */
}

/* Картинка логотипа */
.hk-logo-img {
    height: 55px; /* Размер лого */
    width: auto;
    filter: drop-shadow(0 0 5px rgba(206, 32, 41, 0.4)); /* Красное свечение */
}

/* Текстовый блок */
.hk-logo-text-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

/* Слово РУСИЧ */
.hk-logo-main {
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: sans-serif; /* Можно подключить шрифт Oswald или Roboto Condensed */
}

/* Слово ХОККЕЙНЫЙ КЛУБ (или ХК) */
.hk-logo-sub {
    font-size: 11px;
    color: #ce2029; /* Красный */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 3px;
}



/* --- МОБИЛЬНАЯ АДАПТАЦИЯ (ТЕЛЕФОНЫ) --- */
@media (max-width: 768px) {
    /*
      MOBILE HEADER FIX (stability + burger menu)
      - Keep header visible (no "jump" on resize)
      - Hide nav by default; open only when .is-open is set by assets/js/menu.js
    */
    .hk-header {
        position: sticky;
        top: 0;
        z-index: 1200;
        background: rgba(0, 0, 0, 0.92);
        backdrop-filter: blur(10px);
    }

    .hk-header__inner {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .hk-burger {
        display: inline-flex;
    }

    .hk-nav {
        display: none;
        width: 100%;
    }

    .hk-nav.is-open {
        display: block;
    }
    .hk-nav.is-open {
        display: block;
    }
    
    /* 1. ШАПКА */
    .hk-header-container {
        flex-direction: column; /* Элементы друг под другом */
        gap: 15px;
        padding-bottom: 10px;
    }
    
    .hk-logo-link {
        transform: scale(0.9); /* Чуть уменьшаем лого */
    }

    /* Меню превращаем в аккуратную плитку */
    .hk-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 0;
    }
    
    .hk-nav li a {
        font-size: 14px;
        padding: 5px 10px;
        background: rgba(255,255,255,0.05); /* Легкая подложка для кнопок */
        border-radius: 4px;
    }

    /* 2. ФОН ГЛАВНОЙ (Болельщица) */
    .home-hero {
        /* На телефоне картинка должна быть выше, чтобы лицо и плакат влезли */
        background-position: center top !important; 
        background-size: cover;
        min-height: 500px; /* Фиксированная высота для мобил */
    }
    
    .hero-content h1 {
        font-size: 32px; /* Уменьшаем заголовок, чтобы не рвал экран */
    }
    
    .hero-content p {
        font-size: 16px;
    }

    /* 3. СОСТАВ (ИГРОКИ) */
    .roster-list {
        /* Одна колонка на всю ширину */
        grid-template-columns: 1fr; 
        padding: 0 10px;
    }
    
    .p-row {
        /* Карточка игрока чуть компактнее */
        padding: 10px;
    }

    /* 4. ОБЩИЕ ОТСТУПЫ */
    .page-wrap {
        padding: 20px 10px; /* Меньше отступы по краям */
    }
    
    /* Таблицы (если есть) делаем с прокруткой */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* --- БЛОК СПОНСОРОВ В ШАПКЕ --- */
.hk-sponsors {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(255,255,255,0.2); /* Разделительная черта */
    min-width: 120px;
}

.sp-title {
    font-size: 9px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.sp-name {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    /* Если будет картинка-логотип, можно добавить display: flex */
}

/* Адаптация для мобильных (добавляем внутрь медиа-запроса или отдельно) */
@media (max-width: 768px) {
    .hk-sponsors {
        border-left: none; /* Убираем черту */
        border-top: 1px solid rgba(255,255,255,0.1); /* Добавляем черту сверху */
        margin-left: 0;
        padding-left: 0;
        padding-top: 10px;
        align-items: center; /* По центру */
        width: 100%;
    }
}

/* --- БЛОК СПОНСОРОВ В ШАПКЕ --- */
.hk-sponsors {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(255,255,255,0.2); /* Разделительная черта */
    min-width: 120px;
}

.sp-title {
    font-size: 9px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.sp-name {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    /* Если будет картинка-логотип, можно добавить display: flex */
}

/* Адаптация для мобильных (добавляем внутрь медиа-запроса или отдельно) */
@media (max-width: 768px) {
    .hk-sponsors {
        border-left: none; /* Убираем черту */
        border-top: 1px solid rgba(255,255,255,0.1); /* Добавляем черту сверху */
        margin-left: 0;
        padding-left: 0;
        padding-top: 10px;
        align-items: center; /* По центру */
        width: 100%;
    }
}
/* Стили для окна дня рождения */
.bday-overlay {
    display: none; /* По умолчанию скрыто */
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #b22222, #000);
    color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 10000;
    border: 2px solid #ffd700;
    max-width: 300px;
    animation: slideIn 0.5s ease-out;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

.bday-title { font-weight: bold; font-size: 18px; margin-bottom: 10px; color: #ffd700; }
.bday-name { font-size: 22px; margin-bottom: 5px; text-transform: uppercase; }
.bday-wish { font-style: italic; font-size: 14px; opacity: 0.9; }
.bday-close { position: absolute; top: 5px; right: 10px; cursor: pointer; font-size: 20px; }

/* --- ОБНОВЛЕННЫЙ ПОДВАЛ СО СПОНСОРОМ --- */
.hk-footer {
    background: #0a0a0a;
    border-top: 2px solid #ce2029;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.footer-sponsor-block {
    text-align: left;
    border-right: 1px solid rgba(255,255,255,0.1);
    padding-right: 30px;
}

@media (max-width: 768px) {
    .footer-container { flex-direction: column; gap: 20px; text-align: center; }
    .footer-sponsor-block { border-right: none; padding-right: 0; border-bottom: 1px solid #333; padding-bottom: 15px; width: 100%; }
}
/* Корректировка новых блоков для мобильных устройств */
@media (max-width: 768px) {
    .about-grid, .mission-grid, .partners-grid {
        grid-template-columns: 1fr !important; /* Переключаем в одну колонку */
        gap: 20px !important;
    }
    .about-hero h1 { font-size: 28px; }
}
/* Фиксация глобальной шапки */
.hk-header { 
    background: #000 !important; 
    border-bottom: 2px solid #ce2029 !important; 
    position: sticky !important; 
    top: 0; 
    z-index: 9999; 
}
.header-container { 
    max-width: 1300px; 
    margin: 0 auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 10px 30px; 
}
.logo-main-text { font-weight: 900; text-transform: uppercase; color: #fff; font-size: 22px; }
.logo-sub-text { font-size: 9px; color: #888; text-transform: uppercase; letter-spacing: 2px; }

/* ============================
   Video modal (VK / VKVideo)
   ============================ */
.rv-modal { position: fixed; inset: 0; display: none; z-index: 99999; }
.rv-modal.is-open { display: block; }
.rv-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(6px); }
.rv-modal__dialog { position: relative; max-width: 980px; margin: 4vh auto; padding: 0 16px; }
.rv-modal__content { background: #0a0a0a; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; overflow: hidden; box-shadow: 0 20px 80px rgba(0,0,0,.65); }
.rv-modal__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.rv-modal__title { font-size: 14px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.rv-modal__close { appearance: none; background: transparent; border: 0; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; padding: 2px 8px; opacity: .85; }
.rv-modal__close:hover { opacity: 1; }
.rv-modal__body { padding: 0; }
.rv-modal__player { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.rv-modal__player iframe { width: 100%; height: 100%; border: 0; display: block; }
.rv-modal__fallback { padding: 18px 16px 20px; color: rgba(255,255,255,.82); }
.rv-modal__fallback p { margin: 0 0 12px; }
.rv-modal__fallback a { display: inline-block; background: #ce2029; color: #fff; text-decoration: none; font-weight: 900; padding: 10px 14px; border-radius: 12px; }

@media (max-width: 640px) {
  .rv-modal__dialog { margin: 2vh auto; }
  .rv-modal__header { padding: 12px 12px 8px; }
}

