* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
  font-family: 'Rajdhani', sans-serif; 
}

body {
  /* Fond gris anthracite avec un léger dégradé gaming / sombre */
  background: radial-gradient(circle at top right, #1e293b, #0f172a);
  color: #fff; /* Remis en blanc pour la lisibilité */
  padding: 20px;
  width: 100%;
  max-width: 1920px;
  min-height: 100vh;
  margin: 0 auto;
  overflow-x: hidden;
}

/* En-tête */
.overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.title-badge {
  background: linear-gradient(90deg, #ff4655, #ff7300);
  padding: 6px 20px;
  font-family: 'Teko', sans-serif;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: 2px;
  clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
  font-weight: bold;
  color: #fff;
}

.counter-badge {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 16px;
  border-radius: 4px;
  font-size: clamp(14px, 1.2vw, 18px);
  backdrop-filter: blur(8px);
  color: #fff;
}

/* Container Fiche + Vidéo */
.focus-container {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  width: 100%;
}

.player-card {
  flex: 1 1 600px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid #58a6ff;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  gap: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  min-width: 300px;
}

.avatar-wrapper {
  flex-shrink: 0;
}

.avatar-wrapper img {
  width: clamp(120px, 10vw, 180px);
  height: clamp(120px, 10vw, 180px);
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.player-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 10px;
}

.player-name {
  font-family: 'Teko', sans-serif;
  font-size: clamp(26px, 2.5vw, 36px);
  line-height: 1;
  color: #fff;
  text-transform: uppercase;
}

.player-team {
  font-size: clamp(14px, 1.1vw, 16px);
  color: #ff4655;
  font-weight: 700;
}

.stats-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stat-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 10px;
  border-radius: 4px;
  flex: 1;
  min-width: 65px;
  text-align: center;
}

.stat-label { 
  font-size: clamp(10px, 0.9vw, 12px); 
  color: #94a3b8; 
  display: block; 
}

.stat-value { 
  font-size: clamp(16px, 1.5vw, 22px); 
  font-weight: bold; 
  color: #f8fafc; 
}

.op-box {
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 12px;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.op-label { font-size: 12px; color: #94a3b8; }
.op-atk { color: #ff7f7f; font-weight: bold; }
.op-def { color: #7fbfff; font-weight: bold; }
.op-sep { color: #475569; }

/* Cadre Vidéo OBS */
.video-container {
  width: 426px;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  height: auto;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  position: relative;
  flex-shrink: 0;
}

.cam-label { 
  font-size: clamp(11px, 1vw, 14px); 
  color: rgba(255, 255, 255, 0.4); 
  font-weight: bold; 
}

/* Tier List Rows */
.tier-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.tier-row {
  display: flex;
  min-height: 60px;
  background: rgba(30, 41, 59, 0.6);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}

.tier-label {
  width: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Teko', sans-serif;
  font-size: clamp(28px, 2.5vw, 38px);
  font-weight: bold;
  color: #1e293b; /* Texte foncé sur les étiquettes de couleur */
}

.tier-s .tier-label { background: #ff7f7f; }
.tier-a .tier-label { background: #ffbf7f; }
.tier-b .tier-label { background: #ffdf7f; }
.tier-c .tier-label { background: #ffff7f; }
.tier-d .tier-label { background: #bfff7f; }

.tier-items {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  flex: 1;
  flex-wrap: wrap;
}

.placed-card {
  width: clamp(38px, 3.5vw, 50px);
  height: clamp(38px, 3.5vw, 50px);
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: popIn 0.3s ease-out;
}

@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Adaptations pour petits écrans */
@media (max-width: 900px) {
  .focus-container {
    flex-direction: column;
  }
  
  .video-container {
    width: 100%;
    height: 180px;
  }
}

@media (max-width: 500px) {
  .player-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .stats-grid {
    justify-content: center;
  }
}