/* ============================================
   SPORT4U.LIVE — PLAYER PAGE PREMIUM UI/UX
   Aesthetic: 2026 Apple TV+ / DAZN Stream Interface
   ============================================ */

/* Full Page Seamless Event Background */
.player-page-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
  filter: brightness(0.3) blur(6px);
  transform: scale(1.05);
}

.player-page-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, rgba(7, 8, 12, 0.72) 0%, rgba(7, 8, 12, 0.96) 100%);
  z-index: -1;
}

/* Header Section */
.player-header-banner {
  max-width: 1400px;
  margin: 1.5rem auto 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.player-badges-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.player-comp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.player-main-title {
  font-family: var(--font-sports);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.95);
}

.player-sub-title {
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  color: var(--text-secondary);
  font-weight: 500;
}

.player-teams-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.player-team-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  letter-spacing: 0.02em;
}

.player-team-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.7));
}

.player-vs-badge {
  font-family: var(--font-sports);
  font-size: 0.95rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.08em;
}

.player-meta-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  flex-wrap: wrap;
}

/* 16:9 Aspect Ratio Video Container */
.player-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  max-width: 1400px;
  margin: 1.5rem auto 3rem auto;
  padding: 0 2rem;
}

.video-container {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.75), 0 0 20px rgba(255, 42, 58, 0.12);
  width: 100%;
}

.video-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050608;
  overflow: hidden;
}

.player-poster-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45);
}

.player-controls-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  z-index: 5;
  background: radial-gradient(circle at center, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.65) 100%);
  padding: 1rem;
}

.btn-play-stream {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff2a3a 0%, #d81220 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 35px rgba(255, 42, 58, 0.65);
  transition: transform 250ms var(--ease-expo), box-shadow 250ms ease, background 250ms ease;
  min-height: 44px;
}

.btn-play-stream:hover {
  transform: scale(1.08);
  background: linear-gradient(135deg, #ff4252 0%, #ee1a29 100%);
  box-shadow: 0 0 55px rgba(255, 42, 58, 0.85);
}

.btn-play-stream:active {
  transform: scale(0.96);
}

.btn-play-stream svg {
  width: 32px;
  height: 32px;
  fill: #fff;
  margin-left: 5px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.server-section {
  padding: 1.25rem 1.5rem;
  background: rgba(8, 9, 14, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.server-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}

.server-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.server-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  min-height: 42px;
  padding: 0 1.2rem;
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  transition: all 200ms var(--ease-expo);
  user-select: none;
}

.server-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.server-btn.active {
  background: linear-gradient(135deg, #ff2a3a 0%, #d81220 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(255, 42, 58, 0.35);
}

.details-section {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-card);
  margin-top: 1.5rem;
  box-shadow: var(--shadow-card);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  color: var(--text-muted);
  font-weight: 500;
}

.detail-value {
  font-weight: 700;
  color: var(--text-primary);
}

/* Player Countdown Bar */
.player-countdown-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: rgba(18, 20, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.countdown-digits-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

/* ============================================
   RESPONSIVE PLAYER ENGINE
   ============================================ */

@media (max-width: 1024px) {
  .player-layout { grid-template-columns: 1fr; }
  .player-sidebar { display: none; }
}

@media (max-width: 768px) {
  .player-header-banner {
    padding: 1rem;
    margin-top: 0.5rem;
  }

  .player-layout {
    padding: 0 1rem;
    margin-top: 1rem;
  }

  .player-teams-header {
    gap: 0.75rem;
  }

  .player-team-logo {
    width: 38px;
    height: 38px;
  }

  .btn-play-stream {
    width: 68px;
    height: 68px;
  }

  .btn-play-stream svg {
    width: 28px;
    height: 28px;
  }

  .server-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .server-btn {
    padding: 0 0.5rem;
    justify-content: center;
    font-size: 0.75rem;
  }
}
