:root {
  --blue: #2563EB;
  --blue-bright: #3B7BFF;
  --navy: #060A14;
  --navy-mid: #0F1629;
  --navy-surface: #141D35;
  --gold: #F5C842;
  --ink: #0A0E1A;
  --border: rgba(255,255,255,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: #030608;
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  color: #fff;
}

/* ═══════════════════ MAIN LAYOUT ═══════════════════ */
.page {
  padding-top: 110px; /* controls height */
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-bottom: 40px;
  min-height: 100vh;
}

/* ═══════════════════════════════════════════════
   CARD — responsive at 3 sizes
   Desktop: landscape 1280×720   (16:9 wide)
   Tablet:  portrait  768×900    (custom)
   Mobile:  portrait  390×844    (story)
═══════════════════════════════════════════════ */
.card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.07),
    0 40px 120px rgba(0,0,0,0.8);
  transition: all 0.4s cubic-bezier(0.23,1,0.32,1);
}

/* Desktop */
.card.desktop {
  width: min(1280px, 96vw);
  height: min(720px, 55vw);
  flex-direction: row;
}
/* Tablet */
.card.tablet {
  width: min(768px, 94vw);
  height: min(900px, 130vw);
  flex-direction: column;
}
/* Mobile */
.card.mobile {
  width: min(390px, 92vw);
  height: min(844px, 136vw);
  flex-direction: column;
}

/* ═══════════════════ TOP / SIDE BAR ═══════════════════ */
.top-bar {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  background: rgba(4,8,18,0.97);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative; z-index: 30;
}
.card.desktop .top-bar {
  flex-direction: column;
  width: 220px; height: 100%;
  border-bottom: none;
  border-right: 1px solid rgba(255,255,255,0.08);
  padding: 24px 20px;
  justify-content: flex-start; gap: 0;
}
.card.tablet .top-bar  { height: 72px; }
.card.mobile .top-bar  { height: 64px; padding: 0 16px; }

/* Logo + team info */
.tb-team { display: flex; align-items: center; gap: 10px; }
.card.desktop .tb-team { flex-direction: column; text-align: center; gap: 12px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.07); width: 100%; }

.tb-badge {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(37,99,235,0.4), rgba(99,102,241,0.3));
  border: 1.5px solid rgba(37,99,235,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
  box-shadow: 0 0 18px rgba(37,99,235,0.3);
}
.card.desktop .tb-badge { width: 60px; height: 60px; border-radius: 16px; font-size: 28px; }

.tb-name { font-size: 14px; font-weight: 800; color: #fff; letter-spacing: -0.4px; line-height: 1.1; }
.tb-meta { font-size: 10px; color: rgba(255,255,255,0.32); font-weight: 500; margin-top: 2px; }
.card.desktop .tb-name { font-size: 16px; }
.card.desktop .tb-meta { font-size: 11px; }
.card.mobile .tb-name  { font-size: 12.5px; }

/* Desktop sidebar stats */
.sidebar-stats { display: none; }
.card.desktop .sidebar-stats {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: auto;
}
.ss-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 9px;
}
.ss-label { font-size: 10px; color: rgba(255,255,255,0.3); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.ss-val { font-size: 14px; font-weight: 800; color: #fff; font-family: 'JetBrains Mono'; letter-spacing: -0.8px; }

/* Desktop sidebar legend */
.sidebar-legend { display: none; }
.card.desktop .sidebar-legend {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.leg { display: flex; align-items: center; gap: 7px; font-size: 10.5px; color: rgba(255,255,255,0.35); font-weight: 500; }
.leg-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* AA logo top-right */
.tb-right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.card.desktop .tb-right { display: none; }
.live-pill {
  display: flex; align-items: center; gap: 4px;
  background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.22);
  border-radius: 100px; padding: 2px 9px;
  font-size: 9px; font-weight: 700; color: #10b981;
}
.live-dot { width: 5px; height: 5px; border-radius: 50%; background: #10b981; box-shadow: 0 0 6px #10b981; animation: blink 1.3s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ═══════════════════ GROUND ═══════════════════ */
.ground {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

/* Sport backgrounds */
.ground-bg {
  position: absolute; inset: 0;
  transition: background 0.6s ease;
}
/* Cricket */
.sport-cricket .ground-bg {
  background:
    radial-gradient(ellipse at 50% 45%, #1A2A0A 0%, #0C1806 50%, #060B03 100%);
}
/* Football */
.sport-football .ground-bg {
  background:
    radial-gradient(ellipse at 50% 45%, #1A2A0A 0%, #0C1806 50%, #060B03 100%);
}
/* Kabaddi */
.sport-kabaddi .ground-bg {
  background:
    radial-gradient(ellipse at 50% 50%, #1A0A2A 0%, #0E0618 50%, #060308 100%);
}
/* Basketball */
.sport-basketball .ground-bg {
  background:
    radial-gradient(ellipse at 50% 50%, #2A150A 0%, #180C04 50%, #080402 100%);
}
/* Volleyball */
.sport-volleyball .ground-bg {
  background:
    radial-gradient(ellipse at 50% 50%, #0A1A3A 0%, #060E22 50%, #020508 100%);
}

/* Turf texture — alternating mow stripes */
.ground-stripes {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(255,255,255,0.022) 0px, rgba(255,255,255,0.022) 1px,
    rgba(0,0,0,0.04) 1px, rgba(0,0,0,0.04) 48px,
    rgba(255,255,255,0.014) 48px, rgba(255,255,255,0.014) 49px,
    rgba(0,0,0,0.02) 49px, rgba(0,0,0,0.02) 96px
  );
}
/* Vignette */
.ground-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(0,0,0,0.55) 100%);
}
/* Atmospheric glow */
.ground-glow {
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 60%; height: 70%;
  pointer-events: none; z-index: 1;
  transition: background 0.6s;
}
.sport-cricket    .ground-glow { background: radial-gradient(ellipse, rgba(37,99,235,0.12) 0%, transparent 65%); }
.sport-football   .ground-glow { background: radial-gradient(ellipse, rgba(74,222,128,0.1) 0%, transparent 65%); }
.sport-kabaddi    .ground-glow { background: radial-gradient(ellipse, rgba(168,85,247,0.12) 0%, transparent 65%); }
.sport-basketball .ground-glow { background: radial-gradient(ellipse, rgba(249,115,22,0.1) 0%, transparent 65%); }
.sport-volleyball .ground-glow { background: radial-gradient(ellipse, rgba(96,165,250,0.1) 0%, transparent 65%); }

/* ─── SPORT FIELD MARKINGS ─── */
.field-markings {
  position: absolute; inset: 0;
  z-index: 2; pointer-events: none;
}
.field-markings svg {
  width: 100%; height: 100%;
  opacity: 0.18;
}

/* ─── PITCH STRIP — cricket only ─── */
.pitch-strip {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  z-index: 5;
  transition: all 0.4s ease;
}
.pitch-strip .pitch-rect {
  background: #C4A77D;
  background-image: 
    linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(0,0,0,0.15) 100%),
    repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(0,0,0,0.04) 2px, rgba(0,0,0,0.04) 4px);
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 4px;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.25), 0 0 20px rgba(0,0,0,0.4);
  position: relative;
}
/* Crease lines via pseudo */
.pitch-strip .crease-top,
.pitch-strip .crease-bot {
  position: absolute; left: 0; right: 0; height: 2px;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 0 2px rgba(255,255,255,0.5);
}
.pitch-strip .crease-top { top: 18%; }
.pitch-strip .crease-bot { bottom: 18%; }
.pitch-strip .stumps {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; gap: 4px;
}
.pitch-strip .stumps-top { top: 8%; }
.pitch-strip .stumps-bot { bottom: 8%; }
.pitch-strip .stump {
  width: 3.5px; height: 16px;
  background: linear-gradient(to bottom, #F5C842, #D97706);
  border-radius: 2px 2px 0 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.6);
}

/* ═══════════════════ PLAYER PINS ═══════════════════ */
.players-layer {
  position: absolute; inset: 0;
  z-index: 20;
}
.player {
  position: absolute;
  display: flex; flex-direction: column; align-items: center;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
  opacity: 0;
  animation: playerIn 0.4s forwards;
}
@keyframes playerIn {
  from { opacity: 0; transform: translate(-50%,-50%) scale(0.5); }
  to   { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
.player:hover .avatar { transform: scale(1.12); }
.player:hover .name-tag { opacity: 1; }

/* Avatar */
.avatar {
  border-radius: 12px;
  border: 2.5px solid rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; color: #fff;
  font-family: 'Inter';
  box-shadow: 0 6px 20px rgba(0,0,0,0.6), 0 0 0 3px rgba(255,255,255,0.05);
  position: relative;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
  flex-shrink: 0; overflow: visible;
}
/* Photo inside avatar */
.avatar-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  z-index: 0;
}

/* Sizes per viewport */
.card.desktop .avatar { width: 76px; height: 76px; font-size: 24px; }
.card.tablet  .avatar { width: 52px; height: 52px; font-size: 18px; }
.card.mobile  .avatar { width: 44px; height: 44px; font-size: 15px; }

/* Role colours */
.player.bat  .avatar { background: linear-gradient(135deg,#1a3a8a,#2563EB); border-color: rgba(59,123,255,0.6); }
.player.bowl .avatar { background: linear-gradient(135deg,#7a1a1a,#DC2626); border-color: rgba(239,68,68,0.55); }
.player.ar   .avatar { background: linear-gradient(135deg,#4a1a80,#7C3AED); border-color: rgba(168,85,247,0.55); }
.player.wk   .avatar { background: linear-gradient(135deg,#7a3800,#D97706); border-color: rgba(245,158,11,0.55); }
.player.fw   .avatar { background: linear-gradient(135deg,#065f46,#059669); border-color: rgba(16,185,129,0.55); }
.player.def  .avatar { background: linear-gradient(135deg,#1e3a5f,#0369a1); border-color: rgba(3,105,161,0.55); }
.player.mid  .avatar { background: linear-gradient(135deg,#4a1d96,#7c3aed); border-color: rgba(124,58,237,0.55); }
.player.gk   .avatar { background: linear-gradient(135deg,#713f12,#d97706); border-color: rgba(217,119,6,0.55); }

/* Captain */
.player.cap .avatar {
  background: linear-gradient(135deg,#1a3a8a,#2563EB);
  border-color: var(--gold);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6), 0 0 20px rgba(245,200,66,0.4), 0 0 0 3px rgba(245,200,66,0.12);
}
.cap-ring {
  position: absolute; inset: -6px;
  border-radius: 16px;
  border: 1.5px dashed rgba(245,200,66,0.6);
  animation: spin 10s linear infinite;
  pointer-events: none;
}
.cap-icon {
  position: absolute; top: -2px; right: -2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold); color: #000;
  font-size: 8px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #030608; z-index: 5;
}
.card.mobile .cap-icon { width: 15px; height: 15px; font-size: 7px; }
@keyframes spin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

/* Name tag */
.name-tag {
  margin-top: 5px;
  background: rgba(4,8,18,0.92);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 3px 10px 4px;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  transition: opacity 0.2s;
  text-align: center;
}
.card.desktop .name-tag { max-width: 145px; }
.card.tablet  .name-tag { max-width: 98px; }
.card.mobile  .name-tag { max-width: 80px; padding: 2px 8px 3px; opacity: 1; }

.pname {
  font-size: 9.5px; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: -0.1px;
}
.prole {
  font-size: 7.5px; color: rgba(255,255,255,0.32);
  text-transform: uppercase; letter-spacing: 0.5px; margin-top: 1px;
}
.pprice {
  font-size: 8px; font-family: 'JetBrains Mono'; color: var(--gold);
  margin-top: 2px; font-weight: 600;
}
/* Desktop overrides — larger text */
.card.desktop .pname  { font-size: 13px; }
.card.desktop .prole  { font-size: 10.5px; }
.card.desktop .pprice { font-size: 11.5px; }
.card.mobile .pname { font-size: 8.5px; }
.card.mobile .prole { display: none; }
.card.mobile .pprice { display: none; }
.player.cap .name-tag { border-color: rgba(245,200,66,0.3); background: rgba(20,12,2,0.92); }
.player.cap .pname { color: var(--gold); }

/* ═══════════════════ BOTTOM STATS BAR ═══════════════════ */
.stats-bar {
  flex-shrink: 0;
  background: rgba(4,8,18,0.97);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 10px 20px 14px;
  position: relative; z-index: 30;
}
.card.desktop .stats-bar { display: none; } /* desktop uses sidebar */
.card.mobile .stats-bar { padding: 8px 16px 12px; }

.stats-row {
  display: flex; gap: 0;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; overflow: hidden;
  margin-bottom: 10px;
}
.sstat {
  flex: 1; padding: 8px 4px; text-align: center;
  border-right: 1px solid rgba(255,255,255,0.05);
}
.sstat:last-child { border-right: none; }
.sstat-val {
  font-size: 14px; font-weight: 800; color: #fff;
  font-family: 'JetBrains Mono'; letter-spacing: -0.8px; line-height: 1;
}
.card.mobile .sstat-val { font-size: 12px; }
.sstat-label {
  font-size: 7.5px; color: rgba(255,255,255,0.28);
  text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; margin-top: 3px;
}
.legend-row {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px;
}
.legend-items { display: flex; gap: 10px; flex-wrap: wrap; }

/* ═══════════════════ RESPONSIVE CONTROLS FOOTER ═══════════════════ */
.viewport-bar {
  display: flex; gap: 6px; align-items: center;
}
.ctrl-btn.vp { padding: 5px 14px; }
.ctrl-btn.vp svg { display: inline; vertical-align: middle; margin-right: 4px; }

/* ── Logos: absolute far-left and far-right, vertically centered ── */
.field-logo-aa,
.field-logo-team {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  z-index: 8; pointer-events: none;
}
.field-logo-aa  { left: 2%; }
.field-logo-team { right: 2%; }

.field-logo-aa img {
  filter: brightness(0) invert(1);
  opacity: 0.5;
  display: block;
}
.field-team-emoji {
  line-height: 1; text-align: center;
}
.field-logo-text {
  font-size: 8px; font-weight: 700;
  color: rgba(255,255,255,0.22);
  text-transform: uppercase; letter-spacing: 1.5px;
  text-align: center; white-space: nowrap;
}

/* Sizes per viewport */
.card.desktop .field-logo-aa img  { height: 50px; width: auto; }
.card.desktop .field-team-emoji   { font-size: 40px; }
.card.desktop .field-team-img     { width: 56px; height: 56px; object-fit: cover; border-radius: 12px; }
.card.desktop .field-logo-text    { font-size: 9px; }

.card.tablet  .field-logo-aa img  { height: 24px; width: auto; }
.card.tablet  .field-team-emoji   { font-size: 32px; }
.card.tablet  .field-team-img     { width: 42px; height: 42px; object-fit: cover; border-radius: 10px; }
.card.tablet  .field-logo-text    { font-size: 8px; }

.card.mobile  .field-logo-aa img  { height: 18px; width: auto; }
.card.mobile  .field-team-emoji   { font-size: 24px; }
.card.mobile  .field-team-img     { width: 30px; height: 30px; object-fit: cover; border-radius: 8px; }
.card.mobile  .field-logo-text    { font-size: 7px; }

/* Center pitch logos — team img */
.field-logo-img.team-img {
  width: 56px; height: 56px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* ═══════════════════════════════════════════════════════
   PLAYER CARD MODAL
═══════════════════════════════════════════════════════ */

/* Backdrop */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(3, 6, 12, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-backdrop.open {
  opacity: 1; pointer-events: all;
}

/* Card container */
.modal-card {
  position: relative;
  width: 360px;
  background: #0A0E1A;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 28px;
  overflow: hidden;
  transform: translateY(40px) scale(0.92);
  opacity: 0;
  transition:
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity   0.35s ease;
  box-shadow:
    0 40px 120px rgba(0,0,0,0.8),
    0 0 0 1px rgba(255,255,255,0.06),
    0 0 80px rgba(37,99,235,0.12);
}
.modal-backdrop.open .modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Top accent glow strip */
.mc-accent {
  height: 3px;
  background: linear-gradient(90deg, #2563EB, #6366f1, #2563EB);
  background-size: 200% 100%;
  animation: accentSlide 2.5s linear infinite;
}
@keyframes accentSlide {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* Close button */
.mc-close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.18s; z-index: 10;
  font-family: 'Inter', sans-serif;
  line-height: 1;
}
.mc-close:hover {
  background: rgba(255,255,255,0.13);
  color: #fff; transform: rotate(90deg);
}

/* Hero zone — gradient bg with photo */
.mc-hero {
  position: relative;
  padding: 36px 28px 24px;
  display: flex; flex-direction: column; align-items: center;
  overflow: hidden;
}
.mc-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(37,99,235,0.18) 0%, rgba(10,14,26,0) 70%);
  z-index: 0;
}
.mc-hero-particles {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
}
.mc-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(37,99,235,0.15);
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0%   { transform: translateY(0) scale(1);   opacity: 0.4; }
  50%  { transform: translateY(-30px) scale(1.1); opacity: 0.7; }
  100% { transform: translateY(0) scale(1);   opacity: 0.4; }
}

/* Photo */
.mc-photo-wrap {
  position: relative; z-index: 2;
  margin-bottom: 16px;
}
.mc-photo {
  width: 96px; height: 96px;
  border-radius: 22px;
  background: linear-gradient(135deg, #1847F0, #6366f1);
  border: 3px solid rgba(37,99,235,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 900; color: #fff;
  font-family: 'Inter', sans-serif;
  box-shadow:
    0 8px 32px rgba(37,99,235,0.35),
    0 0 0 6px rgba(37,99,235,0.1);
  position: relative;
  overflow: hidden;
  /* Shine effect */
}
.mc-photo::before {
  content: '';
  position: absolute;
  top: -50%; left: -60%;
  width: 60%; height: 150%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-15deg);
  animation: photoShine 3s ease-in-out infinite 0.5s;
}
@keyframes photoShine {
  0%, 70%, 100% { left: -60%; opacity: 0; }
  40%           { left: 130%; opacity: 1; }
}
.mc-photo img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 19px;
}
/* Captain crown */
.mc-cap-crown {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  background: var(--gold, #F5C842); color: #000;
  font-size: 9px; font-weight: 900;
  padding: 2px 10px; border-radius: 100px;
  letter-spacing: 1px; text-transform: uppercase;
  border: 2px solid #0A0E1A;
  white-space: nowrap; z-index: 5;
}

/* Name section */
.mc-name {
  font-size: 22px; font-weight: 900; color: #fff;
  letter-spacing: -0.8px; text-align: center; z-index: 2;
  line-height: 1.1; margin-bottom: 6px;
}
.mc-role-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(37,99,235,0.15);
  border: 1px solid rgba(37,99,235,0.3);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 11px; font-weight: 700; color: #7FB3FF;
  letter-spacing: 0.5px; text-transform: uppercase;
  z-index: 2;
}
.mc-role-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #3B7BFF; box-shadow: 0 0 6px #3B7BFF;
}

/* Stats grid */
.mc-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mc-stat {
  background: #0A0E1A;
  padding: 18px 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.mc-stat::before {
  content: '';
  position: absolute; top: 0; left: 20%; right: 20%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37,99,235,0.4), transparent);
  animation: statGlow 2s ease-in-out infinite;
}
@keyframes statGlow {
  0%,100% { opacity: 0.4; }
  50%     { opacity: 1; }
}
.mc-stat:nth-child(2)::before { animation-delay: 0.66s; }
.mc-stat:nth-child(3)::before { animation-delay: 1.33s; }
.mc-stat-icon {
  font-size: 16px; margin-bottom: 6px; display: block;
  filter: grayscale(0.2);
}
.mc-stat-val {
  font-size: 17px; font-weight: 800; color: #fff;
  letter-spacing: -0.8px; line-height: 1;
  margin-bottom: 4px;
  font-family: 'JetBrains Mono', monospace;
}
.mc-stat-val.gold { color: #F5C842; text-shadow: 0 0 16px rgba(245,200,66,0.4); }
.mc-stat-val.blue { color: #3B7BFF; }
.mc-stat-label {
  font-size: 9.5px; color: rgba(255,255,255,0.28);
  text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600;
}

/* Bid history mini */
.mc-bid-section {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mc-bid-title {
  font-size: 9.5px; font-weight: 700; color: rgba(255,255,255,0.28);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: space-between;
}
.mc-bid-live {
  display: flex; align-items: center; gap: 4px;
  font-size: 9px; color: #10b981; font-weight: 700;
}
.mc-bid-live-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #10b981; box-shadow: 0 0 5px #10b981;
  animation: blink 1.3s infinite;
}
.mc-bids { display: flex; flex-direction: column; gap: 5px; }
.mc-bid-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 9px;
}
.mc-bid-row.winner {
  background: rgba(245,200,66,0.07);
  border-color: rgba(245,200,66,0.15);
}
.mc-bid-rank {
  font-size: 9px; color: rgba(255,255,255,0.2);
  font-family: 'JetBrains Mono'; width: 14px; text-align: center;
}
.mc-bid-team { flex: 1; font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,0.7); }
.mc-bid-amt  {
  font-size: 11px; font-weight: 700; font-family: 'JetBrains Mono';
  color: rgba(255,255,255,0.5);
}
.mc-bid-row.winner .mc-bid-amt { color: #F5C842; }
.mc-bid-row.winner .mc-bid-team { color: #fff; }

/* Action buttons */
.mc-actions {
  padding: 16px 20px 20px;
  display: flex; flex-direction: column; gap: 9px;
}
.mc-btn-replay {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 20px;
  background: var(--blue, #2563EB);
  border: none; border-radius: 13px;
  color: #fff; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: 'Inter', sans-serif;
  letter-spacing: -0.2px;
  transition: all 0.22s;
  box-shadow: 0 4px 20px rgba(37,99,235,0.4);
  width: 100%;
}
.mc-btn-replay:hover {
  background: #3B7BFF;
  box-shadow: 0 8px 32px rgba(37,99,235,0.55);
  transform: translateY(-2px);
}
.mc-btn-replay:active { transform: translateY(0); }
.mc-btn-replay svg { flex-shrink: 0; }

.mc-btn-secondary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: rgba(255,255,255,0.55); font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: 'Inter', sans-serif;
  letter-spacing: -0.1px;
  transition: all 0.2s; width: 100%;
}
.mc-btn-secondary:hover {
  background: rgba(255,255,255,0.09);
  color: #fff; border-color: rgba(255,255,255,0.2);
}

/* Watermark */
.mc-watermark {
  position: absolute; bottom: 14px; right: 16px;
  font-size: 8.5px; color: rgba(255,255,255,0.1);
  letter-spacing: 1px; text-transform: uppercase;
  font-weight: 700;
}