/* Faceit Stream Overlays CSS */

.overlays-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 24px;
}

.overlay-card {
  background: #141922;
  border: 1px solid #28303e;
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

.overlay-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.overlay-preview-box {
  background: #090c10;
  border: 1px solid #202733;
  border-radius: var(--radius-sm);
  height: 230px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay-preview-box img.mock-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: blur(1px);
}

/* Match End Result Overlay (WINNER / LOSER) */
.match-end-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 90%;
  z-index: 10;
}

.banner-winner {
  font-family: 'Outfit', sans-serif;
  font-size: 38px;
  font-weight: 900;
  color: #00e676;
  text-shadow: 0 0 25px rgba(0, 230, 118, 0.8), 0 0 50px rgba(0, 230, 118, 0.4);
  letter-spacing: 4px;
  text-transform: uppercase;
  animation: bannerPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.banner-loser {
  font-family: 'Outfit', sans-serif;
  font-size: 38px;
  font-weight: 900;
  color: #ff3366;
  text-shadow: 0 0 25px rgba(255, 51, 102, 0.8), 0 0 50px rgba(255, 51, 102, 0.4);
  letter-spacing: 4px;
  text-transform: uppercase;
  animation: bannerPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bannerPop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.elo-result-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.elo-gain {
  color: #00e676;
}

.elo-loss {
  color: #ff3366;
}

.stats-row-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(8px);
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-item-card .value {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.stat-item-card .label {
  font-size: 10px;
  color: #8b949e;
  text-transform: uppercase;
  font-weight: 700;
}

/* Match Start 5v5 Lobby Overlay */
.lobby-start-container {
  display: flex;
  justify-content: space-between;
  width: 95%;
  position: absolute;
  bottom: 20px;
  gap: 15px;
}

.lobby-team {
  flex: 1;
  display: flex;
  gap: 6px;
}

.lobby-player-card {
  flex: 1;
  background: rgba(18, 24, 34, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
}

.lobby-player-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--brand-orange);
  margin-bottom: 4px;
}

.lobby-player-name {
  font-weight: 700;
  color: #ffffff;
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
