/* ========================================================
   Vidio Live TV Web Portal - Custom Styles
   Inspirasi Antarmuka Modern Vidio.com
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --vidio-red: #E50914;
  --vidio-coral: #F43F5E;
  --vidio-bg: #0F0F10;
  --vidio-card: #18181B;
  --vidio-border: #27272A;
  --vidio-gold: #F59E0B;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--vidio-bg);
  color: #EDEDED;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #121214;
}

::-webkit-scrollbar-thumb {
  background: #2E2E33;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4A4A52;
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(24, 24, 27, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-nav {
  background: rgba(15, 15, 16, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Player Custom Controls Overlay */
.player-controls-overlay {
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
}

#player-container:hover .player-controls-overlay,
#player-container:focus-within .player-controls-overlay,
.player-controls-overlay.active {
  opacity: 1;
}

/* Live Pulse Indicator */
.pulse-live {
  animation: pulseDot 1.6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseDot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.2);
  }
}

/* Video Slider Range Input */
input[type="range"] {
  -webkit-appearance: none;
  background: #3f3f46;
  border-radius: 9999px;
  height: 4px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e11d48;
  cursor: pointer;
  transition: transform 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

/* Theater Mode Styles */
.theater-mode {
  grid-template-columns: 1fr !important;
}

.theater-mode #live-chat-panel {
  display: none !important;
}

/* Category Tab Horizontal Scrollbar Hide */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Modal Animations */
.modal-backdrop {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
}

/* Shimmer Loading Animation */
.shimmer-loading {
  background: linear-gradient(90deg, #18181b 25%, #27272a 50%, #18181b 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
