/* ==========================================================================
   PEO MOBILE OTT - MODERN CYBER/OTT DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;800;900&family=Rajdhani:wght@500;600;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-primary: #05070d;
  --bg-secondary: #0a0e1a;
  --bg-card: rgba(13, 19, 33, 0.85);
  --bg-card-hover: rgba(18, 28, 48, 0.95);
  
  --neon-cyan: #00f0ff;
  --neon-cyan-glow: rgba(0, 240, 255, 0.35);
  --neon-green: #00ff88;
  --neon-green-glow: rgba(0, 255, 136, 0.35);
  --neon-red: #ff2a5f;
  --neon-amber: #ffaa00;
  
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-cyan: rgba(0, 240, 255, 0.25);
  --border-cyan-bright: #00f0ff;
  
  --font-display: 'Orbitron', 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Rajdhani', monospace;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(0, 240, 255, 0.25);
}

/* ── BASE & RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.5;
  background-image: 
    radial-gradient(circle at 20% 15%, rgba(0, 240, 255, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(0, 255, 136, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(0, 100, 255, 0.04) 0%, transparent 50%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
}

/* ── TOP NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 7, 13, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: all 0.3s ease;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.brand-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.25));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  padding: 0.3rem 0;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  border-radius: 2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 0.85rem;
  padding: 0.5rem 1rem 0.5rem 2.2rem;
  border-radius: var(--radius-full);
  outline: none;
  width: 200px;
  transition: all 0.3s ease;
}

.search-input:focus {
  width: 260px;
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.05);
  box-shadow: 0 0 12px var(--neon-cyan-glow);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.btn-profile {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-profile:hover {
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 12px var(--neon-cyan-glow);
}

.avatar-badge {
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-green));
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
}

/* ── HERO BANNER (Top Featured Channel) ── */
.hero-section {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  padding: 3rem 2rem 4rem;
  margin-bottom: 2rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(90deg, rgba(5, 7, 13, 0.95) 0%, rgba(5, 7, 13, 0.75) 45%, rgba(5, 7, 13, 0.3) 100%),
    linear-gradient(0deg, var(--bg-primary) 0%, transparent 60%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--neon-red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  width: fit-content;
  box-shadow: 0 0 15px rgba(255, 42, 95, 0.5);
  animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.03); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-desc {
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.btn-play-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--neon-cyan), #00aaff);
  color: #000;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 25px var(--neon-cyan-glow);
}

.btn-play-hero:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 35px var(--neon-cyan);
  background: #fff;
  color: #000;
}

.btn-info-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.btn-info-hero:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ── CAROUSEL ROWS (Category Carousels) ── */
.main-content {
  flex: 1;
  padding: 0 2rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.category-row {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.category-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--border-cyan);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.carousel-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.carousel-btn:hover {
  background: var(--neon-cyan);
  color: #000;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px var(--neon-cyan-glow);
}

.carousel-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0.5rem 0.25rem 1rem;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar {
  display: none;
}

/* Channel Card */
.channel-card-ott {
  flex: 0 0 240px;
  height: 145px;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.channel-card-ott:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: var(--neon-cyan);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8), 0 0 20px var(--neon-cyan-glow);
  background: var(--bg-card-hover);
}

.card-ott-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #081022;
  transition: transform 0.4s ease;
}

.channel-card-ott:hover .card-ott-banner {
  transform: scale(1.08);
}

.card-ott-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 7, 13, 0.95) 0%, rgba(5, 7, 13, 0.4) 50%, rgba(5, 7, 13, 0.2) 100%);
  z-index: 1;
}

.card-ott-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--neon-red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
}

.card-ott-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.card-ott-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-ott-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   PLAYER PAGE (play.html / /play/:slug)
   ========================================================================== */
.player-page-container {
  padding: 1.5rem 2rem 3rem;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 1100px) {
  .player-page-container {
    grid-template-columns: 1fr;
  }
}

.player-left-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  width: fit-content;
  transition: all 0.2s ease;
}

.btn-back-home:hover {
  background: var(--neon-cyan);
  color: #000;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px var(--neon-cyan-glow);
}

/* ==========================================================================
   CYBER THEMED VIDEO PLAYER UI
   ========================================================================== */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  background: #000000;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-cyan);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 240, 255, 0.2);
  user-select: none;
}

.video-container video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  cursor: pointer;
}

/* Loading Overlay */
.player-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 13, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  z-index: 9;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.player-loading-overlay.hidden {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Center Play/Pause ripple indicator */
.center-play-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(5, 7, 13, 0.85);
  border: 2px solid var(--neon-cyan);
  color: var(--neon-cyan);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px var(--neon-cyan-glow);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 8;
  backdrop-filter: blur(8px);
}

.center-play-indicator.animate {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

/* Custom Cyber Controls Bar */
.cyber-player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  background: linear-gradient(0deg, rgba(5, 7, 13, 0.98) 0%, rgba(5, 7, 13, 0.8) 60%, transparent 100%);
  padding: 1.5rem 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
  backdrop-filter: blur(10px);
}

.cyber-player-controls.autohide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

/* Scrubber / Progress Bar */
.scrub-bar-wrap {
  position: relative;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  cursor: pointer;
  transition: height 0.15s ease;
}

.scrub-bar-wrap:hover {
  height: 9px;
}

.scrub-buffered {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  width: 0%;
}

.scrub-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, #00f0ff, #00ff88);
  border-radius: 3px;
  box-shadow: 0 0 10px var(--neon-cyan);
  width: 100%;
}

.scrub-thumb {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(50%, -50%);
  width: 13px;
  height: 13px;
  background: #ffffff;
  border: 2px solid var(--neon-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px #00f0ff;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.scrub-bar-wrap:hover .scrub-thumb {
  opacity: 1;
}

.scrub-tooltip {
  position: absolute;
  bottom: 18px;
  transform: translateX(-50%);
  background: #080b12;
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border-cyan);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

/* Controls Bottom Row */
.player-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.controls-left,
.controls-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.player-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 1.05rem;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.player-btn:hover {
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.12);
  transform: scale(1.1);
}

.live-indicator-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #8e9aa8;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.live-indicator-btn.active {
  border-color: var(--neon-red);
  background: rgba(255, 42, 95, 0.15);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 42, 95, 0.4);
}

.live-dot-pulse {
  width: 6px;
  height: 6px;
  background: #ff2a5f;
  border-radius: 50%;
  box-shadow: 0 0 6px #ff2a5f;
  animation: pulse-live 1.5s infinite;
}

.volume-control-group {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.cyber-range {
  width: 65px;
  height: 4px;
  accent-color: var(--neon-cyan);
  cursor: pointer;
}

.time-display {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #cbd5e1;
  font-weight: 600;
}

/* Quality dropdown */
.quality-dropdown-wrap {
  position: relative;
}

.quality-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.quality-btn:hover {
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.15);
}

.quality-menu {
  position: absolute;
  bottom: 125%;
  right: 0;
  background: #080d1a;
  border: 1px solid var(--border-cyan);
  border-radius: 8px;
  padding: 0.4rem;
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 140px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.9), 0 0 15px var(--neon-cyan-glow);
  z-index: 100;
}

.quality-menu.show {
  display: flex;
}

.quality-menu-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  padding: 0.2rem 0.5rem;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 0.2rem;
}

.quality-opt-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-align: left;
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quality-opt-btn:hover,
.quality-opt-btn.active {
  background: var(--neon-cyan);
  color: #000;
  font-weight: 800;
}

/* Channel Info Card */
.channel-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
}

.channel-info-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.channel-logo-square {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: #081022;
  border: 1px solid var(--border-cyan);
}

.channel-meta-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.channel-title-lg {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}

.channel-sub-info {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.channel-actions-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* ── RIGHT COLUMN: EPG TIMELINE SIDEBAR ── */
.player-right-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  height: fit-content;
  max-height: 800px;
  overflow-y: auto;
}

/* Exact Minimalist Day Tabs Bar (Single Horizontal Line, Auto-Fit) */
.epg-day-selector {
  display: flex !important;
  flex-direction: row !important;
  width: 100% !important;
  height: 40px !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 4px !important;
  background: #080b12 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 10px !important;
  padding: 4px !important;
  box-sizing: border-box !important;
  margin-bottom: 0.75rem !important;
}

.epg-day-btn {
  flex: 1 1 0 !important;
  height: 100% !important;
  background: transparent !important;
  border: none !important;
  color: #8e9aa8 !important;
  font-family: var(--font-display) !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
  text-transform: uppercase !important;
  padding: 0 2px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: nowrap !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  user-select: none !important;
}

.epg-day-btn:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.epg-day-btn.active {
  background: #ffffff !important;
  color: #000000 !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 255, 255, 0.2) !important;
}

.sidebar-epg-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sidebar-epg-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  cursor: pointer;
}

.sidebar-epg-item:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--neon-cyan);
  transform: translateX(4px);
}

.sidebar-epg-item.now-playing,
.sidebar-epg-item.active-playing {
  border-color: var(--neon-cyan) !important;
  background: rgba(0, 240, 255, 0.12) !important;
  box-shadow: 0 0 15px var(--neon-cyan-glow);
}

.epg-playing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  color: #000;
  background: var(--neon-cyan);
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
  width: fit-content;
  margin-top: 0.2rem;
}

.sidebar-epg-thumb {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
  background: #081022;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.sidebar-epg-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  overflow: hidden;
}

.sidebar-epg-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-epg-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--neon-cyan);
}

.sidebar-epg-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   ADMIN & TOOLS PAGE (nirmal.html)
   ========================================================================== */
.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

.admin-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.2s ease;
}

.admin-card:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.15);
}

.admin-card-icon {
  font-size: 2rem;
  color: var(--neon-cyan);
}

.admin-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.admin-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.channel-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.table-title {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-display);
  font-weight: 700;
}

.cyber-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.cyber-table th {
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.cyber-table td {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.cyber-table tr:hover td {
  background: rgba(0, 240, 255, 0.03);
}

.btn-small {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-small:hover {
  background: var(--neon-cyan);
  color: #000;
  border-color: var(--neon-cyan);
}

/* ── FOOTER ── */
.footer {
  width: 100%;
  margin-top: 4rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(5, 7, 13, 0.95);
  padding: 3rem 2rem 2.5rem;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1.75rem;
  text-align: center !important;
  box-sizing: border-box;
}

.footer-brand-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.footer-main-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s ease;
}

.footer-main-brand:hover {
  transform: translateY(-2px);
}

.footer-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.35));
}

.footer-brand-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-align: left;
}

.footer-brand-tagline {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--neon-cyan);
  text-align: left;
  letter-spacing: 0.5px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem 2.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.footer-link:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px var(--neon-cyan-glow);
}

.footer-copyright {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.25rem;
  width: 100%;
  max-width: 600px;
  text-align: center;
  margin: 0 auto;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: rgba(8, 11, 18, 0.95);
  border: 1px solid var(--neon-cyan);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
  animation: toastIn 0.3s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
