/* ═══════════════════════════════════════════════════
   VYNDRA — COMUNIDAD · comunidad.css
═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Rajdhani:wght@300;400;500;600;700&family=Share+Tech+Mono&display=swap');

:root {
  --acc:         #a855f7;
  --acc-rgb:     168,85,247;
  --acc-dim:     rgba(168,85,247,0.16);
  --acc-glow:    0 0 22px rgba(168,85,247,0.38), 0 0 60px rgba(168,85,247,0.1);
  --acc-glow-hi: 0 0 34px rgba(168,85,247,0.7),  0 0 90px rgba(168,85,247,0.22);

  --bg:       #02050d;
  --bg2:      #040916;
  --surface:  #0a1422;
  --surface2: #0e1a2e;

  --border:    rgba(168,85,247,0.09);
  --border-hi: rgba(168,85,247,0.26);

  --text1: #eaf1ff;
  --text2: rgba(234,241,255,0.55);
  --text3: rgba(234,241,255,0.28);

  --ff-d: 'Bebas Neue',      sans-serif;
  --ff-b: 'Rajdhani',        sans-serif;
  --ff-m: 'Share Tech Mono', monospace;

  --val:      #ff4655;
  --cs2:      #e8955a;
  --lol:      #c89b3c;
  --live-red: #ff3a3a;
  --green:    #22c55e;

  --t1-color: #f59e0b;
  --t2-color: #94a3b8;
  --t3-color: #64748b;

  --radius:    10px;
  --radius-sm: 6px;
  --ease:      cubic-bezier(0.16,1,0.3,1);
}

*, *::before, *::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body { font-family:var(--ff-b); background:var(--bg); color:var(--text1); overflow-x:hidden; min-height:100vh; }

::-webkit-scrollbar { width:4px; }
::-webkit-scrollbar-track { background:var(--bg); }
::-webkit-scrollbar-thumb { background:rgba(168,85,247,0.2); border-radius:2px; }
::-webkit-scrollbar-thumb:hover { background:var(--acc); }

/* ── Background ── */
#bg-canvas { position:fixed; inset:0; width:100%; height:100%; pointer-events:none; z-index:0; }
.tac-grid {
  position:fixed; inset:0; z-index:1; pointer-events:none;
  background-image:
    linear-gradient(rgba(168,85,247,0.013) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,85,247,0.013) 1px, transparent 1px);
  background-size:56px 56px;
}
.bg-vignette { position:fixed; inset:0; z-index:2; pointer-events:none; background:radial-gradient(ellipse 80% 60% at 50% 0%, transparent 30%, rgba(2,5,13,0.75) 100%); }
.bg-glow-tl  { position:fixed; top:0; left:0; width:600px; height:400px; background:radial-gradient(ellipse at top left, rgba(168,85,247,0.04) 0%, transparent 70%); pointer-events:none; z-index:1; }
.bg-glow-br  { position:fixed; bottom:0; right:0; width:500px; height:350px; background:radial-gradient(ellipse at bottom right, rgba(168,85,247,0.035) 0%, transparent 70%); pointer-events:none; z-index:1; }
.scan-line { position:fixed; left:0; right:0; height:1px; background:linear-gradient(90deg, transparent, rgba(168,85,247,0.3), transparent); animation:scanAnim 7s ease-in-out infinite; pointer-events:none; z-index:5; opacity:0; }
@keyframes scanAnim { 0%{top:0;opacity:0} 4%{opacity:1} 96%{opacity:1} 100%{top:100%;opacity:0} }

/* ── HUD Corners ── */
.hc { position:fixed; width:44px; height:44px; z-index:10; pointer-events:none; }
.hc::before,.hc::after { content:''; position:absolute; background:var(--acc); box-shadow:var(--acc-glow); }
.hc::before { width:100%; height:2px; top:0; left:0; }
.hc::after  { width:2px; height:100%; top:0; left:0; }
.hc-tl { top:18px; left:18px; }
.hc-tr { top:18px; right:18px; transform:scaleX(-1); }
.hc-bl { bottom:18px; left:18px; transform:scaleY(-1); }
.hc-br { bottom:18px; right:18px; transform:scale(-1); }

/* ── Nav ── */
nav {
  position:fixed; top:0; left:0; right:0; z-index:50;
  display:grid; grid-template-columns:1fr auto 1fr;
  align-items:center; padding:0 36px; height:66px;
  background:rgba(2,5,13,0.9); backdrop-filter:blur(22px);
  border-bottom:1px solid rgba(168,85,247,0.07);
}
.nav-logo { font-family:var(--ff-d); font-size:22px; letter-spacing:0.22em; color:var(--text1); text-decoration:none; justify-self:start; transition:color 0.2s; }
.nav-logo em { color:var(--acc); font-style:normal; }
.nav-logo:hover { color:var(--acc); }
.nav-links { display:flex; gap:32px; justify-self:center; }
.nav-link { font-family:var(--ff-m); font-size:9.5px; letter-spacing:0.2em; text-transform:uppercase; color:var(--text3); text-decoration:none; transition:color 0.2s; position:relative; }
.nav-link::after { content:''; position:absolute; bottom:-4px; left:0; width:0; height:1px; background:var(--acc); transition:width 0.28s var(--ease); }
.nav-link:hover,.nav-link.active { color:var(--acc); }
.nav-link:hover::after,.nav-link.active::after { width:100%; }
.nav-actions { display:flex; align-items:center; gap:8px; justify-self:end; }
.btn-nav-action { display:flex; align-items:center; gap:6px; padding:7px 14px; background:rgba(168,85,247,0.06); border:1px solid rgba(168,85,247,0.14); border-radius:var(--radius-sm); font-family:var(--ff-m); font-size:9px; letter-spacing:0.15em; text-transform:uppercase; color:var(--acc); cursor:pointer; transition:all 0.22s var(--ease); }
.btn-nav-action:hover { background:rgba(168,85,247,0.13); border-color:rgba(168,85,247,0.3); box-shadow:var(--acc-glow); }

/* ── Main ── */
.community-main { position:relative; z-index:10; padding-top:66px; }
.progames-section { max-width:1200px; margin:0 auto; padding:52px 44px 100px; }

/* ── Header ── */
.pg-header { display:flex; align-items:flex-end; justify-content:flex-start; margin-bottom:36px; }
.pg-eyebrow { font-family:var(--ff-m); font-size:9px; letter-spacing:0.38em; text-transform:uppercase; color:var(--acc); opacity:0.62; display:flex; align-items:center; gap:10px; margin-bottom:7px; }
.pg-eyebrow::before { content:''; width:22px; height:1px; background:var(--acc); box-shadow:0 0 8px var(--acc); }
.pg-title { font-family:var(--ff-d); font-size:clamp(38px,5.5vw,64px); letter-spacing:0.07em; line-height:1; color:var(--text1); }
.pg-title .ac { color:var(--acc); text-shadow:var(--acc-glow); }
.pg-refresh-row { display:flex; align-items:center; gap:10px; margin-top:4px; }
.pg-refresh-dot { width:5px; height:5px; border-radius:50%; background:var(--green); box-shadow:0 0 6px var(--green); animation:blinkDot 2.5s ease infinite; }
@keyframes blinkDot { 0%,100%{opacity:1} 50%{opacity:0.3} }
#lastRefresh { font-family:var(--ff-m); font-size:8px; letter-spacing:0.14em; color:var(--text3); }

/* ── Game Tabs ── */
.game-tabs { display:flex; gap:3px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:5px; width:fit-content; }
.game-tab { display:flex; align-items:center; gap:8px; padding:9px 22px; border-radius:var(--radius-sm); border:1px solid transparent; background:transparent; cursor:pointer; font-family:var(--ff-m); font-size:10px; letter-spacing:0.16em; text-transform:uppercase; color:var(--text3); white-space:nowrap; transition:all 0.22s var(--ease); }
.game-tab:hover { color:var(--text2); background:rgba(168,85,247,0.04); }
.game-tab.active { color:var(--text1); background:var(--surface2); border-color:var(--border-hi); }
.tab-dot { width:6px; height:6px; border-radius:50%; transition:box-shadow 0.2s; }
.tab-dot-val { background:var(--val); }
.tab-dot-cs2 { background:var(--cs2); }
.tab-dot-lol { background:var(--lol); }
.game-tab.active .tab-dot-val { box-shadow:0 0 8px var(--val); }
.game-tab.active .tab-dot-cs2 { box-shadow:0 0 8px var(--cs2); }
.game-tab.active .tab-dot-lol { box-shadow:0 0 8px var(--lol); }

/* ── Panels ── */
.pg-panel { display:none; }
.pg-panel.active { display:block; animation:panelReveal 0.32s var(--ease) both; }
@keyframes panelReveal { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }

.matches-block { margin-bottom:36px; }
.mb-header { display:flex; align-items:center; gap:14px; margin-bottom:14px; }
.mb-label { font-family:var(--ff-m); font-size:8.5px; letter-spacing:0.3em; text-transform:uppercase; color:var(--text3); white-space:nowrap; }
.mb-line  { flex:1; height:1px; background:linear-gradient(to right, var(--border), transparent); }

/* ── Tier Sections ── */
.tier-section { margin-bottom:22px; }
.tier-header { display:flex; align-items:center; gap:12px; margin-bottom:10px; padding:0 4px; }
.tier-badge { font-family:var(--ff-m); font-size:8px; letter-spacing:0.22em; text-transform:uppercase; padding:3px 10px; border-radius:100px; white-space:nowrap; font-weight:700; }
.tier-badge.t1 { color:var(--t1-color); background:rgba(245,158,11,0.10); border:1px solid rgba(245,158,11,0.22); }
.tier-badge.t2 { color:var(--t2-color); background:rgba(148,163,184,0.08); border:1px solid rgba(148,163,184,0.18); }
.tier-badge.t3 { color:var(--t3-color); background:rgba(100,116,139,0.07); border:1px solid rgba(100,116,139,0.14); }
.tier-line  { flex:1; height:1px; background:linear-gradient(to right, rgba(255,255,255,0.05), transparent); }
.tier-count { font-family:var(--ff-m); font-size:7.5px; color:var(--text3); white-space:nowrap; }

/* ── Match Item ── */
.match-item {
  display:grid; grid-template-columns:38px 1fr auto auto;
  align-items:center; gap:18px; padding:14px 20px;
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius); margin-bottom:6px; cursor:pointer;
  position:relative; overflow:hidden;
  transition:all 0.22s var(--ease);
  animation:itemSlide 0.38s var(--ease) both;
}
@keyframes itemSlide { from{opacity:0;transform:translateX(-6px)} to{opacity:1;transform:translateX(0)} }
.match-item::before { content:''; position:absolute; left:0; top:0; bottom:0; width:3px; background:var(--acc); opacity:0; transition:opacity 0.2s; }
.match-item::after  { content:''; position:absolute; inset:0; background:linear-gradient(90deg, rgba(168,85,247,0.04), transparent 55%); opacity:0; transition:opacity 0.2s; pointer-events:none; }
.match-item:hover { border-color:var(--border-hi); transform:translateX(4px); background:var(--surface2); }
.match-item:hover::before { opacity:1; }
.match-item:hover::after  { opacity:1; }

.match-item.live { border-color:rgba(255,58,58,0.22); background:rgba(255,40,40,0.03); animation:itemSlide 0.38s var(--ease) both, liveBorder 3s ease-in-out infinite; }
.match-item.live::before { background:var(--live-red); opacity:1; box-shadow:0 0 10px var(--live-red); }
@keyframes liveBorder { 0%,100%{border-color:rgba(255,58,58,0.22)} 50%{border-color:rgba(255,58,58,0.45)} }

.mi-game { width:34px; height:34px; border-radius:var(--radius-sm); display:flex; align-items:center; justify-content:center; font-family:var(--ff-d); font-size:10px; flex-shrink:0; }
.mi-game.valorant { background:rgba(255,70,85,0.12); color:var(--val); border:1px solid rgba(255,70,85,0.18); }
.mi-game.cs2      { background:rgba(232,149,90,0.12); color:var(--cs2); border:1px solid rgba(232,149,90,0.18); }
.mi-game.lol      { background:rgba(200,155,60,0.12); color:var(--lol); border:1px solid rgba(200,155,60,0.18); }

.mi-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.mi-team  { display:flex; align-items:center; gap:7px; min-width:0; justify-content:flex-end; }
.mi-team.right { flex-direction:row-reverse; justify-content:flex-end; }
.mi-team-logo { width:24px; height:24px; border-radius:4px; object-fit:contain; background:rgba(255,255,255,0.04); flex-shrink:0; }
.mi-team-init { width:24px; height:24px; border-radius:4px; display:flex; align-items:center; justify-content:center; background:rgba(168,85,247,0.1); border:1px solid rgba(168,85,247,0.14); font-family:var(--ff-d); font-size:11px; color:var(--acc); flex-shrink:0; }
.mi-flag      { font-size:12px; flex-shrink:0; }
.mi-team-name { font-family:var(--ff-b); font-size:14px; font-weight:600; letter-spacing:0.03em; color:var(--text1); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:110px; }

.mi-score { display:flex; align-items:center; gap:8px; flex-shrink:0; padding:0 4px; }
.mi-sc { font-family:var(--ff-d); font-size:24px; letter-spacing:0.04em; color:var(--text3); min-width:20px; text-align:center; line-height:1; }
.mi-sc.winner { color:var(--text1); text-shadow:0 0 14px rgba(var(--acc-rgb),0.42); }
.mi-vs { font-family:var(--ff-m); font-size:8px; color:var(--text3); letter-spacing:0.12em; }

.mi-time-badge { font-family:var(--ff-m); font-size:10px; color:var(--acc); background:rgba(168,85,247,0.08); border:1px solid rgba(168,85,247,0.18); border-radius:var(--radius-sm); padding:5px 10px; white-space:nowrap; flex-shrink:0; display:flex; align-items:center; gap:6px; }
.mi-time-badge.live { color:#fff; background:rgba(255,40,40,0.15); border-color:rgba(255,40,40,0.45); font-weight:700; letter-spacing:0.18em; box-shadow:0 0 14px rgba(255,40,40,0.25),inset 0 0 8px rgba(255,40,40,0.08); animation:liveGlow 1.8s ease-in-out infinite; }
@keyframes liveGlow { 0%,100%{box-shadow:0 0 14px rgba(255,40,40,0.25),inset 0 0 8px rgba(255,40,40,0.08)} 50%{box-shadow:0 0 24px rgba(255,40,40,0.5),inset 0 0 12px rgba(255,40,40,0.14)} }

.live-dot { width:6px; height:6px; border-radius:50%; background:#ff3a3a; flex-shrink:0; box-shadow:0 0 6px #ff3a3a; animation:liveDotPulse 1.2s ease-in-out infinite; }
@keyframes liveDotPulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.4);opacity:0.7} }

.mi-vod { width:30px; height:30px; border-radius:50%; background:rgba(168,85,247,0.07); border:1px solid rgba(168,85,247,0.13); display:flex; align-items:center; justify-content:center; color:var(--acc); font-size:10px; flex-shrink:0; transition:all 0.2s; }
.match-item:hover .mi-vod { background:rgba(168,85,247,0.18); border-color:rgba(168,85,247,0.35); box-shadow:var(--acc-glow); }

.mi-meta { display:flex; flex-direction:column; align-items:flex-end; gap:3px; flex-shrink:0; max-width:200px; }
.mi-tournament { font-family:var(--ff-m); font-size:8.5px; letter-spacing:0.09em; color:var(--text3); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:100%; }
.mi-round  { font-family:var(--ff-m); font-size:7.5px; text-transform:uppercase; letter-spacing:0.12em; color:var(--acc); opacity:0.55; }
.mi-series { font-family:var(--ff-m); font-size:7.5px; color:var(--text3); letter-spacing:0.1em; }
.mi-date   { font-family:var(--ff-m); font-size:8px; color:var(--text3); letter-spacing:0.06em; }

/* ── Loading / Empty ── */
.matches-loading,.mm-maps-loading { display:flex; align-items:center; gap:8px; padding:18px 16px; color:var(--text3); font-family:var(--ff-m); font-size:9.5px; letter-spacing:0.12em; }
.mm-maps-loading { padding:14px 0; }
.ld { width:5px; height:5px; border-radius:50%; background:var(--acc); animation:ldBlink 1.3s ease-in-out infinite; }
.ld:nth-child(2) { animation-delay:0.18s; }
.ld:nth-child(3) { animation-delay:0.36s; }
@keyframes ldBlink { 0%,80%,100%{opacity:0.2} 40%{opacity:1} }
.matches-empty { padding:28px; color:var(--text3); font-family:var(--ff-m); font-size:9.5px; letter-spacing:0.12em; text-align:center; border:1px dashed rgba(168,85,247,0.08); border-radius:var(--radius); }
.mm-maps-error { font-family:var(--ff-m); font-size:9px; color:var(--text3); letter-spacing:0.1em; padding:12px 0; margin-bottom:16px; }

/* ── Match Modal ── */
.match-overlay { position:fixed; inset:0; z-index:999; background:rgba(2,5,13,0.88); backdrop-filter:blur(14px); display:flex; align-items:center; justify-content:center; padding:20px; opacity:0; pointer-events:none; transition:opacity 0.28s; }
.match-overlay.open { opacity:1; pointer-events:all; }
.match-modal { background:var(--bg2); border:1px solid var(--border-hi); border-radius:16px; width:700px; max-width:96vw; max-height:90vh; overflow-y:auto; position:relative; box-shadow:0 0 0 1px rgba(168,85,247,0.05),0 32px 80px rgba(0,0,0,0.75),var(--acc-glow); transform:scale(0.95) translateY(14px); transition:transform 0.32s var(--ease); }
.match-overlay.open .match-modal { transform:scale(1) translateY(0); }
.match-modal::before { content:''; position:absolute; top:0; left:10%; right:10%; height:1px; background:linear-gradient(90deg, transparent, var(--acc), transparent); opacity:0.35; }

.mm-header { display:flex; align-items:center; justify-content:space-between; padding:22px 28px 18px; border-bottom:1px solid rgba(255,255,255,0.04); }
.mm-header-left { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.mm-game-badge  { padding:4px 10px; border-radius:4px; font-family:var(--ff-m); font-size:8.5px; letter-spacing:0.16em; text-transform:uppercase; }
.mm-tournament  { font-family:var(--ff-m); font-size:9px; color:var(--text3); letter-spacing:0.1em; }
.mm-close { width:30px; height:30px; background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.07); color:var(--text3); border-radius:var(--radius-sm); cursor:pointer; font-size:12px; display:flex; align-items:center; justify-content:center; transition:all 0.2s; flex-shrink:0; }
.mm-close:hover { color:var(--text1); border-color:rgba(168,85,247,0.3); }
.mm-body { padding:26px 28px 28px; }

.mm-live-badge { display:inline-flex; align-items:center; gap:8px; background:rgba(255,40,40,0.12); border:1px solid rgba(255,40,40,0.35); border-radius:100px; padding:6px 16px; font-family:var(--ff-m); font-size:9px; font-weight:700; letter-spacing:0.24em; text-transform:uppercase; color:#ff3a3a; margin-bottom:18px; animation:liveGlow 1.8s ease-in-out infinite; }

.mm-tier-badge { display:inline-block; font-family:var(--ff-m); font-size:9px; letter-spacing:0.18em; text-transform:uppercase; padding:3px 10px; border-radius:100px; font-weight:700; }
.mm-tier-badge.t1 { color:var(--t1-color); background:rgba(245,158,11,0.1); border:1px solid rgba(245,158,11,0.22); }
.mm-tier-badge.t2 { color:var(--t2-color); background:rgba(148,163,184,0.08); border:1px solid rgba(148,163,184,0.18); }
.mm-tier-badge.t3 { color:var(--t3-color); background:rgba(100,116,139,0.07); border:1px solid rgba(100,116,139,0.14); }

.mm-scoreboard { display:flex; align-items:center; justify-content:center; gap:20px; background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:28px 22px; margin-bottom:24px; }
.mm-scoreboard-live { border-color:rgba(255,40,40,0.2); background:rgba(255,30,30,0.03); box-shadow:0 0 30px rgba(255,40,40,0.06); }

.mm-team { display:flex; flex-direction:column; align-items:center; gap:10px; flex:1; max-width:180px; }
.mm-team-logo-big { width:56px; height:56px; border-radius:12px; object-fit:contain; background:rgba(255,255,255,0.04); }
.mm-team-init-big { width:56px; height:56px; border-radius:12px; display:flex; align-items:center; justify-content:center; background:rgba(168,85,247,0.1); border:1px solid var(--border-hi); font-family:var(--ff-d); font-size:22px; color:var(--acc); }
.mm-team-info { text-align:center; }
.mm-team-flag { font-size:16px; margin-bottom:4px; }
.mm-team-name { font-family:var(--ff-d); font-size:22px; letter-spacing:0.06em; color:var(--text1); }

.mm-score-block { display:flex; flex-direction:column; align-items:center; gap:6px; flex-shrink:0; }
.mm-score-big   { display:flex; align-items:center; gap:10px; }
.mm-sc-big { font-family:var(--ff-d); font-size:58px; line-height:1; letter-spacing:0.04em; color:var(--text3); min-width:36px; text-align:center; }
.mm-sc-big.winner { color:var(--text1); text-shadow:0 0 24px rgba(var(--acc-rgb),0.5); }
.mm-vs-big   { font-family:var(--ff-m); font-size:11px; color:var(--text3); letter-spacing:0.2em; }
.mm-series   { font-family:var(--ff-m); font-size:8px; color:var(--acc); letter-spacing:0.16em; opacity:0.6; }
.mm-time-big { font-family:var(--ff-m); font-size:16px; color:var(--acc); letter-spacing:0.06em; }
.mm-date-big { font-family:var(--ff-m); font-size:9px; color:var(--text3); letter-spacing:0.1em; }

.mm-section-title { font-family:var(--ff-m); font-size:8.5px; letter-spacing:0.3em; text-transform:uppercase; color:var(--acc); opacity:0.65; margin-bottom:10px; display:flex; align-items:center; gap:10px; }
.mm-section-title::after { content:''; flex:1; height:1px; background:rgba(168,85,247,0.1); }

/* ── Maps ── */
.mm-maps { display:flex; flex-direction:column; gap:6px; margin-bottom:22px; }
.mm-map {
  display:grid; grid-template-columns:1fr auto auto;
  align-items:center; gap:16px;
  padding:12px 16px; background:var(--surface);
  border:1px solid var(--border); border-radius:var(--radius-sm);
  transition:border-color 0.2s;
}
.mm-map.map-w1 { border-left:3px solid rgba(168,85,247,0.55); }
.mm-map.map-w2 { border-right:3px solid rgba(168,85,247,0.55); }
.mm-map-name   { font-family:var(--ff-m); font-size:10px; color:var(--text2); letter-spacing:0.1em; }
.mm-map-scores { display:flex; align-items:center; gap:8px; }
.mm-map-sc     { font-family:var(--ff-d); font-size:20px; letter-spacing:0.04em; color:var(--text3); min-width:20px; text-align:center; line-height:1; }
.mm-map-sc.mw  { color:var(--text1); text-shadow:0 0 10px rgba(var(--acc-rgb),0.4); }
.mm-map-sep    { font-family:var(--ff-m); font-size:8px; color:var(--text3); }
.mm-map-finished { font-family:var(--ff-m); font-size:7.5px; color:var(--green); letter-spacing:0.1em; text-transform:uppercase; opacity:0.7; }
.mm-map-status   { font-family:var(--ff-m); font-size:7.5px; color:var(--acc); letter-spacing:0.1em; text-transform:uppercase; opacity:0.55; }

/* ── Info grid ── */
.mm-info-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:20px; }
.mm-info-item { padding:14px 16px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-sm); }
.mm-info-label { font-family:var(--ff-m); font-size:7.5px; letter-spacing:0.22em; color:var(--text3); text-transform:uppercase; margin-bottom:6px; }
.mm-info-value { font-family:var(--ff-b); font-size:15px; font-weight:600; color:var(--text1); }

/* ── Countdown ── */
.mm-countdown { text-align:center; padding:22px 20px; background:rgba(168,85,247,0.04); border:1px solid rgba(168,85,247,0.1); border-radius:var(--radius); margin-bottom:22px; }
.mm-countdown-label { font-family:var(--ff-m); font-size:8.5px; color:var(--text3); letter-spacing:0.22em; text-transform:uppercase; margin-bottom:14px; }
.mm-countdown-digits { display:flex; justify-content:center; gap:4px; align-items:baseline; }
.mm-cd-unit  { display:flex; flex-direction:column; align-items:center; }
.mm-cd-num   { font-family:var(--ff-d); font-size:48px; color:var(--acc); letter-spacing:0.04em; line-height:1; }
.mm-cd-sep   { font-family:var(--ff-d); font-size:38px; color:var(--text3); line-height:1; margin:0 3px; padding-bottom:8px; }
.mm-cd-label { font-family:var(--ff-m); font-size:7px; color:var(--text3); letter-spacing:0.2em; text-transform:uppercase; margin-top:4px; }

/* ── Color picker ── */
.cpop { position:fixed; top:66px; right:18px; z-index:999; background:rgba(4,9,22,0.97); border:1px solid var(--border-hi); border-radius:12px; padding:14px; display:none; flex-wrap:wrap; gap:8px; width:204px; backdrop-filter:blur(22px); box-shadow:0 14px 48px rgba(0,0,0,0.65); }
.cpop.open { display:flex; }
.cpop-title { width:100%; font-family:var(--ff-m); font-size:8px; letter-spacing:0.22em; text-transform:uppercase; color:var(--text3); margin-bottom:4px; }
.csw { width:32px; height:32px; border-radius:50%; cursor:pointer; border:2px solid transparent; transition:all 0.2s; }
.csw:hover { transform:scale(1.15); }
.csw.active { border-color:#fff; box-shadow:0 0 12px rgba(255,255,255,0.28); }

/* ── Settings modal ── */
.modal-overlay { position:fixed; inset:0; background:rgba(2,5,13,0.82); backdrop-filter:blur(10px); z-index:998; display:flex; align-items:center; justify-content:center; opacity:0; pointer-events:none; transition:opacity 0.28s; }
.modal-overlay.open { opacity:1; pointer-events:all; }
.config-modal { background:var(--bg2); border:1px solid var(--border-hi); border-radius:16px; width:420px; max-width:94vw; max-height:86vh; overflow-y:auto; position:relative; box-shadow:0 28px 80px rgba(0,0,0,0.75),var(--acc-glow); }
.config-modal::before { content:''; position:absolute; top:0; left:0; right:0; height:1px; background:linear-gradient(90deg, transparent, var(--acc), transparent); opacity:0.45; }
.modal-header { display:flex; align-items:center; justify-content:space-between; padding:22px 26px 18px; border-bottom:1px solid rgba(255,255,255,0.04); }
.modal-header h3 { font-family:var(--ff-d); font-size:22px; letter-spacing:0.12em; color:var(--text1); }
.modal-close { background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.07); color:var(--text3); width:30px; height:30px; border-radius:var(--radius-sm); cursor:pointer; font-size:12px; display:flex; align-items:center; justify-content:center; transition:all 0.2s; }
.modal-close:hover { color:var(--text1); border-color:rgba(168,85,247,0.3); }
.modal-body { padding:22px 26px 26px; display:flex; flex-direction:column; gap:22px; }
.cfg-section h4 { font-family:var(--ff-m); font-size:8.5px; letter-spacing:0.25em; text-transform:uppercase; color:var(--acc); opacity:0.65; margin-bottom:12px; display:flex; align-items:center; gap:10px; }
.cfg-section h4::after { content:''; flex:1; height:1px; background:rgba(168,85,247,0.12); }
.theme-swatches { display:flex; gap:10px; flex-wrap:wrap; }
.tsw { width:34px; height:34px; border-radius:50%; cursor:pointer; border:2px solid transparent; transition:all 0.2s; position:relative; }
.tsw:hover { transform:scale(1.12); }
.tsw.active { border-color:#fff; box-shadow:0 0 14px rgba(255,255,255,0.22); }
.tsw.active::after { content:'✓'; position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:14px; color:#fff; text-shadow:0 1px 4px rgba(0,0,0,0.8); }
.toggle-row { display:flex; align-items:center; justify-content:space-between; padding:9px 0; border-bottom:1px solid rgba(255,255,255,0.04); cursor:pointer; }
.toggle-row:last-child { border-bottom:none; }
.toggle-label { font-family:var(--ff-b); font-size:13px; font-weight:500; color:var(--text2); letter-spacing:0.03em; }
.toggle { width:38px; height:20px; background:rgba(255,255,255,0.07); border-radius:100px; position:relative; transition:background 0.25s; flex-shrink:0; }
.toggle.on { background:var(--acc); }
.toggle-thumb { width:14px; height:14px; background:#fff; border-radius:50%; position:absolute; top:3px; left:3px; transition:left 0.25s,box-shadow 0.25s; box-shadow:0 1px 4px rgba(0,0,0,0.4); }
.toggle.on .toggle-thumb { left:21px; box-shadow:0 0 8px rgba(168,85,247,0.55); }
.btn-save { width:100%; padding:13px; background:var(--acc); border:none; border-radius:var(--radius-sm); font-family:var(--ff-d); font-size:17px; letter-spacing:0.14em; color:#02050d; cursor:pointer; transition:all 0.25s; position:relative; overflow:hidden; }
.btn-save::before { content:''; position:absolute; top:0; left:-100%; width:100%; height:100%; background:linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent); transition:left 0.5s; }
.btn-save:hover { box-shadow:var(--acc-glow-hi); transform:translateY(-1px); }
.btn-save:hover::before { left:100%; }

/* ── Toast ── */
.save-toast { position:fixed; bottom:28px; left:50%; transform:translateX(-50%) translateY(20px); background:rgba(4,9,22,0.96); border:1px solid rgba(168,85,247,0.28); border-radius:100px; padding:10px 26px; font-family:var(--ff-m); font-size:9.5px; letter-spacing:0.2em; text-transform:uppercase; color:var(--acc); z-index:9999; opacity:0; pointer-events:none; transition:all 0.3s; }
.save-toast.show { opacity:1; transform:translateX(-50%) translateY(0); }

/* ── Streams ── */
.mm-streams {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.mm-stream-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-family: var(--ff-m);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text2);
  transition: all 0.2s var(--ease);
  position: relative;
  overflow: hidden;
}
.mm-stream-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(168,85,247,0.06), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.mm-stream-btn:hover {
  color: var(--text1);
  border-color: var(--acc);
  box-shadow: var(--acc-glow);
  transform: translateY(-1px);
}
.mm-stream-btn:hover::before { opacity: 1; }
.mm-stream-btn.main {
  border-color: rgba(168,85,247,0.35);
  color: var(--text1);
}
.mm-stream-icon { font-size: 13px; line-height: 1; }
.mm-stream-label { white-space: nowrap; }
.mm-stream-tag {
  font-size: 7px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acc);
  background: rgba(168,85,247,0.1);
  border: 1px solid rgba(168,85,247,0.2);
  border-radius: 3px;
  padding: 1px 5px;
}

/* ── Responsive ── */
@media (max-width:900px) {
  .nav-links { display:none; }
  .progames-section { padding:36px 18px 70px; }
  .match-item { grid-template-columns:32px 1fr auto; gap:10px; }
  .mi-meta,.mi-vod { display:none; }
  .mi-team-name { max-width:80px; font-size:12px; }
  .mm-scoreboard { flex-direction:column; gap:16px; padding:20px 14px; }
  .mm-info-grid { grid-template-columns:1fr; }
  .mm-map { grid-template-columns:1fr auto; }
  .mm-map-status,.mm-map-finished { display:none; }
}
@media (max-width:520px) {
  nav { padding:0 16px; }
  .nav-actions { display:none; }
  .pg-title { font-size:38px; }
  .game-tab { padding:8px 12px; font-size:8.5px; gap:5px; }
}
/* ═══════════════════════════════════════════════════
   NEW CONTROLS ROW — tabs + filter bar
═══════════════════════════════════════════════════ */
.pg-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

/* ── Filter bar ── */
.pg-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Search input */
.pgf-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
  min-width: 180px;
}
.pgf-search-wrap:focus-within {
  border-color: var(--border-hi);
  box-shadow: 0 0 0 2px rgba(168,85,247,.08);
}
.pgf-search-icon { color: var(--text3); flex-shrink: 0; }
.pgf-search {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--ff-m);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--text1);
  min-width: 0;
}
.pgf-search::placeholder { color: var(--text3); }
.pgf-search-clear {
  display: none;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.06);
  color: var(--text3);
  font-size: 9px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all .2s;
}
.pgf-search-clear:hover { background: rgba(255,255,255,.12); color: var(--text1); }

/* Tier pills */
.pgf-tiers {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
}
.pgf-tier-label {
  font-family: var(--ff-m);
  font-size: 7.5px;
  letter-spacing: .22em;
  color: var(--text3);
  padding: 0 6px;
  user-select: none;
}
.pgf-tier-btn {
  padding: 5px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-family: var(--ff-m);
  font-size: 9px;
  letter-spacing: .16em;
  color: var(--text3);
  transition: all .2s;
  white-space: nowrap;
}
.pgf-tier-btn:hover { color: var(--text2); background: rgba(255,255,255,.04); }
.pgf-tier-btn.active {
  background: var(--surface2);
  border-color: var(--border-hi);
  color: var(--text1);
}
.pgf-tier-btn.t1.active { color: var(--t1-color); border-color: rgba(245,158,11,.3); background: rgba(245,158,11,.08); }
.pgf-tier-btn.t2.active { color: var(--t2-color); border-color: rgba(148,163,184,.25); background: rgba(148,163,184,.06); }
.pgf-tier-btn.t3.active { color: var(--t3-color); border-color: rgba(100,116,139,.2); background: rgba(100,116,139,.05); }

/* ── Section header upgrades ── */
.mb-label-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--live-red) !important;
}
.mb-count {
  font-family: var(--ff-m);
  font-size: 7.5px;
  letter-spacing: .14em;
  color: var(--text3);
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════
   MODAL TABS
═══════════════════════════════════════════════════ */
.mm-tabs {
  display: flex;
  gap: 2px;
  padding: 6px 28px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.mm-tab {
  padding: 9px 20px 10px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--ff-m);
  font-size: 9px;
  letter-spacing: .22em;
  color: var(--text3);
  cursor: pointer;
  transition: all .2s;
  margin-bottom: -1px;
}
.mm-tab:hover { color: var(--text2); }
.mm-tab.active { color: var(--acc); border-bottom-color: var(--acc); }

/* ═══════════════════════════════════════════════════
   PLAYERS PANEL
═══════════════════════════════════════════════════ */
.mm-players-loading,
.mm-players-error,
.mm-players-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 24px 28px;
  font-family: var(--ff-m);
  font-size: 9px;
  letter-spacing: .12em;
  color: var(--text3);
}
.mm-players-error { color: rgba(255,80,80,.55); }

.mm-players-wrap {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0;
  min-height: 220px;
}
.mm-players-divider {
  background: rgba(255,255,255,.04);
  align-self: stretch;
}
.mm-players-team {
  padding: 24px 28px;
}
.mm-players-team.right { padding-left: 28px; }

.mm-players-team-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.mm-players-team-header.right { flex-direction: row-reverse; text-align: right; }
.mm-players-team-name {
  font-family: var(--ff-d);
  font-size: 22px;
  letter-spacing: .06em;
  color: var(--text1);
}

.mm-players-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mm-player-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .2s, background .2s;
}
.mm-player-card:hover {
  border-color: var(--border-hi);
  background: var(--surface2);
}
.mm-player-avatar {
  width: 38px; height: 38px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255,255,255,.04);
  flex-shrink: 0;
}
.mm-player-init {
  width: 38px; height: 38px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(168,85,247,.1);
  border: 1px solid var(--border-hi);
  font-family: var(--ff-d);
  font-size: 17px;
  color: var(--acc);
  flex-shrink: 0;
}
.mm-player-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mm-player-name {
  font-family: var(--ff-b);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--text1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mm-player-role {
  font-family: var(--ff-m);
  font-size: 7.5px;
  letter-spacing: .2em;
  color: var(--acc);
  opacity: .65;
}
.mm-player-nat {
  font-size: 13px;
  line-height: 1;
}

@media (max-width: 580px) {
  .mm-players-wrap {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1px auto;
  }
  .mm-players-divider {
    height: 1px;
    width: 100%;
  }
  .pg-controls-row { flex-direction: column; align-items: flex-start; }
  .pg-filter-bar { width: 100%; }
  .pgf-search-wrap { flex: 1; }
}

/* ── Filtered empty state ── */
.matches-filtered {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: rgba(168,85,247,.04);
  border: 1px dashed rgba(168,85,247,.15) !important;
  border-radius: var(--radius);
  font-family: var(--ff-m);
  font-size: 9px;
  letter-spacing: .1em;
  color: var(--text3);
}
.matches-filtered strong { color: var(--text2); }
.mf-icon { color: var(--acc); opacity: .5; font-size: 12px; flex-shrink: 0; }
.mf-clear-btn {
  margin-left: auto;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(168,85,247,.25);
  background: rgba(168,85,247,.08);
  color: var(--acc);
  font-family: var(--ff-m);
  font-size: 8px;
  letter-spacing: .12em;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.mf-clear-btn:hover {
  background: rgba(168,85,247,.18);
  border-color: rgba(168,85,247,.4);
}