/* ==========================================================================
   NETFLIX / PREMIUM IPTV DESIGN SYSTEM (CSS VARIABLES & GLOBAL STYLES)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Paleta de Colores Premium */
    --bg-pure: #080C10;
    --bg-surface: #0E1620;
    --bg-card: #16202C;
    --bg-card-hover: #1E2D3E;
    
    --accent-red: #E50914;
    --accent-red-hover: #B80710;
    --accent-glow: rgba(229, 9, 20, 0.45);
    
    --text-primary: #FFFFFF;
    --text-secondary: #A0B2C6;
    --text-muted: #6B7D93;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.2);
    
    /* Geometría y Sombras */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.85);
    --shadow-red: 0 8px 25px rgba(229, 9, 20, 0.4);
    
    /* Transiciones */
    --transition-fast: all 0.2s ease;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   RESETEO GLOBALES Y TIPOGRAFÍA
   ========================================================================== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    background-color: var(--bg-pure) !important;
    color: var(--text-primary) !important;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   2. TRANSICIONES Y MICROINTERACCIONES UNIFICADAS
   ========================================================================== */
a, button, input, select, textarea, .btn, .card, .movie-item, .series-item, .channel-card {
    transition: var(--transition-smooth);
}

/* Efecto Hover Premium en Tarjetas y Pósters */
.movie-item, .series-item, .poster-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.movie-item:hover, .series-item:hover, .poster-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-red);
    box-shadow: var(--shadow-lg), var(--shadow-red);
    z-index: 10;
}

.movie-item img, .series-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.movie-item:hover img, .series-item:hover img {
    transform: scale(1.08);
}

/* Botones estilo Netflix */
.btn-netflix, .btn-primary {
    background: var(--accent-red) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 12px 28px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none !important;
}

.btn-netflix:hover, .btn-primary:hover {
    background: var(--accent-red-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(229, 9, 20, 0.6) !important;
}

/* ==========================================================================
   3. SKELETON LOADERS (MARCADORES DE POSICIÓN ANIMADOS)
   ========================================================================== */
@keyframes skeletonPulse {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-box {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: skeletonPulse 1.8s infinite ease-in-out;
    border-radius: var(--radius-sm);
}

.skeleton-card {
    aspect-ratio: 2 / 3;
    width: 100%;
    border-radius: var(--radius-md);
}

.skeleton-text {
    height: 16px;
    margin-top: 10px;
    width: 80%;
}

.skeleton-title {
    height: 24px;
    width: 40%;
    margin-bottom: 20px;
}

/* ==========================================================================
   4. OPTIMIZACIÓN DE REPRODUCTORES Y MODALES (GLASSMORPHISM)
   ========================================================================== */
.modal-content, .custom-modal {
    background: rgba(18, 26, 36, 0.95) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-highlight) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg) !important;
    color: var(--text-primary);
}

.modal-header {
    border-bottom: 1px solid var(--border-color) !important;
    padding: 20px 25px !important;
}

.modal-footer {
    border-top: 1px solid var(--border-color) !important;
    padding: 15px 25px !important;
}

.player-container, .video-player-container {
    border-radius: var(--radius-lg) !important;
    overflow: hidden !important;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    background: #000;
}

/* Menú Lateral y Navegación */
.sidebar, .sidenav {
    background: rgba(14, 22, 32, 0.95) !important;
    backdrop-filter: blur(12px);
    border-right: 1px solid var(--border-color);
}
