/* 
 * ApexStream Pro — Ultra-Precision Professional Sports Broadcast Stylesheet
 * Engineered for zero horizontal overflow, pixel-perfect responsiveness,
 * cinematic broadcast player aesthetic, and clean 2-column desktop layout.
 */

:root {
  --theme-accent: #10b981;
  --theme-accent-glow: rgba(16, 185, 129, 0.35);
  --theme-secondary: #f59e0b;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Custom typography */
.font-display {
  font-family: 'Chakra Petch', 'Oswald', system-ui, sans-serif;
  letter-spacing: 0.01em;
}

.font-mono-tech {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

/* Bulletproof 2-Column Desktop Broadcast Grid */
.broadcast-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  width: 100%;
}

@media (min-width: 1024px) {
  .broadcast-layout-grid {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 24px;
    align-items: start;
  }
}

@media (min-width: 1280px) {
  .broadcast-layout-grid {
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 28px;
  }
}

/* Clean Universal Broadcast Player Backdrop (Deep Cinematic Studio Black - Pure Zero-Risk Frame) */
.player-cinematic-backdrop {
  background-color: #060911;
  background-image: 
    radial-gradient(ellipse 75% 55% at 50% 35%, rgba(16, 185, 129, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 85% 65% at 50% 50%, rgba(18, 28, 48, 0.8) 0%, #04060b 100%);
  background-size: cover;
  background-position: center;
}

/* Broadcast Grid Texture */
.bg-broadcast-grid {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Video Player CRT Scanline effect */
.player-scanlines {
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.25) 50%
  );
  background-size: 100% 4px;
  pointer-events: none;
}

/* Pulse rings around the central play button */
@keyframes play-radar-ring {
  0% {
    transform: scale(0.9);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.3;
  }
  100% {
    transform: scale(1.75);
    opacity: 0;
  }
}

.play-radar-pulse {
  animation: play-radar-ring 3s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
}

.play-radar-pulse-delayed {
  animation: play-radar-ring 3s infinite cubic-bezier(0.2, 0.8, 0.2, 1) 1.2s;
}

/* Pulsing Live indicator */
@keyframes live-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
  }
  50% {
    transform: scale(1.15);
    opacity: 0.8;
    box-shadow: 0 0 18px rgba(239, 68, 68, 1);
  }
}

.animate-live-glow {
  animation: live-pulse 2s infinite ease-in-out;
}

/* Audio visualizer equalizer bars */
.eq-bar {
  transition: height 0.12s ease-in-out;
}

/* Button Shine Sweep Animation */
@keyframes shine-sweep {
  0% {
    left: -100%;
  }
  20%, 100% {
    left: 200%;
  }
}

.btn-shine-effect {
  position: relative;
  overflow: hidden;
}

.btn-shine-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transform: skewX(-25deg);
  animation: shine-sweep 3.5s infinite ease-in-out;
}

/* Precision Glassmorphism Panels */
.glass-panel {
  background: rgba(13, 18, 30, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-modal {
  background: rgba(8, 11, 20, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.95), 0 0 35px -5px rgba(16, 185, 129, 0.3);
}

/* Chat scrollbar customization */
.chat-scroll::-webkit-scrollbar {
  width: 4px;
}

.chat-scroll::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
}

.chat-scroll::-webkit-scrollbar-thumb {
  background: rgba(71, 85, 105, 0.6);
  border-radius: 4px;
}

.chat-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.8);
}
