/* Team Midnite Live (v2)
   This is an overlay theme: it intentionally overrides existing inline/embedded styles
   without requiring a full HTML rewrite of live.php yet. */

.live-page {
  /* Compatibility vars used by navbar/footer inline styles */
  --primary-yellow: #ffd600;
  --primary-purple: #8a4dff;
  --primary-cyan: #45e3ff;
  --dark-bg: #05060a;
  --dark-surface: rgba(10, 11, 20, 0.88);
  --darker-surface: rgba(7, 8, 14, 0.90);
  --text-primary: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.70);
  --gradient-primary: linear-gradient(135deg, rgba(138, 77, 255, 0.95) 0%, rgba(69, 227, 255, 0.55) 55%, rgba(255, 214, 0, 0.30) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-purple) 100%);

  --l-bg0: #05060a;
  --l-bg1: #0a0b14;
  --l-surface: rgba(18, 20, 35, 0.72);
  --l-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  --l-ring: 0 0 0 1px rgba(69, 227, 255, 0.24), 0 10px 40px rgba(69, 227, 255, 0.10);

  background: radial-gradient(1200px 900px at 18% 8%, rgba(138, 77, 255, 0.16), transparent 58%),
    radial-gradient(900px 700px at 82% 18%, rgba(69, 227, 255, 0.12), transparent 60%),
    radial-gradient(1100px 900px at 70% 90%, rgba(255, 214, 0, 0.10), transparent 62%),
    linear-gradient(180deg, var(--l-bg0), var(--l-bg1));
  font-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.live-page .navbar {
  background: rgba(10, 11, 20, 0.80) !important;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.live-page .live-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.live-page .live-bg::before {
  content: "";
  position: absolute;
  inset: -200px;
  background:
    radial-gradient(circle at 20% 12%, rgba(69, 227, 255, 0.12), transparent 42%),
    radial-gradient(circle at 78% 22%, rgba(255, 214, 0, 0.10), transparent 44%),
    radial-gradient(circle at 55% 92%, rgba(138, 77, 255, 0.10), transparent 42%);
  filter: blur(18px);
  opacity: 0.95;
  transform: translateZ(0);
}

.live-page .live-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.20;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  transform: translateZ(0);
}

/* Kill legacy particle container if it exists (defensive) */
.live-page .bg-particles {
  display: none !important;
}

/* Hero */
.live-page .hero-live {
  background: linear-gradient(135deg, rgba(138, 77, 255, 0.30), rgba(69, 227, 255, 0.12), rgba(255, 214, 0, 0.06)) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.live-page .live-title {
  font-family: "Tektur", system-ui, sans-serif !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.96) !important;
  text-shadow: 0 12px 60px rgba(138, 77, 255, 0.22) !important;
}

.live-page .live-subtitle {
  color: rgba(255, 255, 255, 0.72) !important;
  max-width: 70ch !important;
}

.live-page .hero-stats {
  display: flex !important;
  justify-content: center;
  gap: 1.2rem !important;
}

.live-page .hero-stat {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(12, 13, 25, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.40);
  min-width: 160px;
}

.live-page .live-toggle-wrap {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.live-page .live-toggle-btn {
  border-radius: 999px !important;
  padding: 0.55rem 1rem !important;
}

.live-page .btn-group .live-toggle-btn:first-child {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.live-page .btn-group .live-toggle-btn:last-child {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

/* Controls */
.live-page .live-section {
  position: relative;
  z-index: 1;
  padding-top: 34px !important;
}

.live-page .live-controls {
  margin-top: -44px;
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 22px;
  background: var(--l-surface);
  box-shadow: var(--l-shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.live-page .live-controls-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.live-page .live-search {
  position: relative;
}

.live-page .live-search .form-control {
  border-radius: 18px;
  padding: 14px 46px 14px 16px;
  border: 1px solid rgba(69, 227, 255, 0.18);
  background: rgba(7, 8, 14, 0.62);
  color: rgba(255, 255, 255, 0.95);
}

.live-page .live-search .form-control:focus {
  border-color: rgba(69, 227, 255, 0.38);
  box-shadow: var(--l-ring);
  background: rgba(7, 8, 14, 0.75);
}

.live-page .live-search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.live-page .live-sort .form-select {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(7, 8, 14, 0.55);
  color: rgba(255, 255, 255, 0.88);
  padding: 10px 12px;
  min-width: 160px;
}

.live-page .live-sort .form-select:focus {
  box-shadow: var(--l-ring);
  border-color: rgba(69, 227, 255, 0.38);
}

/* Cards */
.live-page .live-card {
  background: linear-gradient(180deg, rgba(11, 12, 22, 0.86), rgba(7, 8, 14, 0.66)) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.38);
}

.live-page .live-card:hover {
  border-color: rgba(69, 227, 255, 0.18) !important;
  box-shadow: var(--l-ring) !important;
}

.live-page .stream-preview {
  height: 220px !important;
}

.live-page .stream-preview::after {
  opacity: 0.75;
}

.live-page .stream-info {
  padding: 16px 16px 18px !important;
}

.live-page .stream-title a,
.live-page .stream-title {
  font-family: "Tektur", system-ui, sans-serif !important;
  letter-spacing: 0.01em;
}

@media (max-width: 991.98px) {
  .live-page .live-controls-top {
    grid-template-columns: 1fr;
  }
  .live-page .live-sort .form-select {
    min-width: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-page * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

