/* 1. VARIABLES (LIMA NEÓN) */
:root {
    --brand: #D5F26D;
    --accent: #ea8074;
    --dark: #252620;
    --card: #2e2f28;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
}

body { background-color: var(--dark); color: var(--text-main); font-family: 'Montserrat', sans-serif; overflow-x: hidden; }
h1, h2, h3, .font-clash { font-family: 'Clash Display', sans-serif; }
.hidden { display: none !important; }

/* FIX CAPAS */
.click-target { position: relative; z-index: 50; pointer-events: auto; cursor: pointer; }
#video-modal-overlay { z-index: 9999 !important; background-color: rgba(0,0,0,0.85); backdrop-filter: blur(8px); }

/* 2. ESTRUCTURA MODAL (NETFLIX STYLE) */
.modal-layout { 
    display: flex; flex-direction: column; background-color: #181818; /* Fondo más oscuro estilo Netflix */
    overflow: hidden; max-height: 95vh; width: 100%; border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-video-block {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    z-index: 20;
    flex-shrink: 0;
    position: relative;
    display: flex; align-items: center; justify-content: center;
}

.modal-info-block {
    position: relative; z-index: 30; padding: 2rem 3rem; 
    background: linear-gradient(to bottom, #181818, #121212);
    flex-grow: 1; overflow-y: auto; 
}

/* BOTONES DE ACCIÓN (CIRCULARES O ICONOS LIMPIOS) */
.modal-action-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 5px; color: #a3a3a3; transition: 0.3s; background: transparent; border: none;
    min-width: 60px;
}
.modal-action-btn i { font-size: 24px; margin-bottom: 2px; transition: 0.3s; }
.modal-action-btn span { font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.modal-action-btn:hover { color: white; transform: scale(1.1); }
.modal-action-btn.active i { color: var(--brand); } /* Para "Mi Lista" activo */

/* SEPARADOR SUTIL */
.modal-separator { width: 100%; height: 1px; background: rgba(255,255,255,0.1); margin: 20px 0; }

/* 3. ELEMENTOS UI */
.premium-lock { position: absolute; top: 15px; right: 15px; z-index: 20; background: var(--brand); color: #000; padding: 6px 12px; border-radius: 4px; font-size: 11px; font-weight: 900; display: flex; align-items: center; gap: 6px; box-shadow: 0 4px 15px rgba(0,0,0,0.5); }

.video-card { transition: 0.3s; cursor: pointer; position: relative; border-radius: 8px; overflow: hidden; z-index: 10; background-color: #252525; border: 1px solid rgba(255,255,255,0.05); flex-shrink: 0; }
.video-card:hover { transform: scale(1.05); z-index: 50; border-color: var(--brand); }
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.shorts-container { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 20px; scrollbar-width: none; }
.shorts-container::-webkit-scrollbar { display: none; }
.short-card { transition: 0.3s; cursor: pointer; position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 9/16; z-index: 10; border: 1px solid transparent; width: 140px; min-width: 140px; height: 250px; flex-shrink: 0; background: #000; }
.short-card:hover { transform: scale(1.05); z-index: 50; border-color: var(--brand); }
.short-img { width: 100%; height: 100%; object-fit: cover; }

.btn-primary { background: var(--brand); color: #000 !important; font-weight: 800; border: none; }
.btn-primary:hover { background: #fff; color: #000 !important; box-shadow: 0 0 20px rgba(213, 242, 109, 0.5); }

/* TABS SAGA */
.saga-tab { 
    cursor: pointer; padding: 10px 0; margin-right: 30px; 
    font-weight: 800; font-size: 14px; text-transform: uppercase; 
    border-bottom: 3px solid transparent; color: #666; transition: 0.3s; 
}
.saga-tab.active { color: white; border-bottom-color: var(--brand); }
.saga-tab:hover { color: #ccc; }

/* SAGA BANNER */
.section-branded { position: relative; padding: 60px 0; margin: 40px 0; background-size: cover; background-position: center; border-bottom: 2px solid var(--brand); }
.section-branded::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(37,38,32,1) 0%, rgba(37,38,32,0.4) 50%, rgba(37,38,32,1) 100%); z-index: 1; pointer-events: none; }
.section-content { position: relative; z-index: 10; }
.section-branded button, .saga-btn { pointer-events: auto !important; position: relative; z-index: 30; }

.ads-slider { overflow: hidden; width: 100%; height: 100px; background: var(--dark); display: flex; align-items: center; border-top: 1px solid var(--brand); border-bottom: 1px solid var(--brand); }
.ads-track { display: flex; gap: 40px; width: max-content; animation: scrollAds 45s linear infinite; padding: 0 20px; align-items: center; }
.ad-item.is-banner { width: 220px; height: 90px; background: var(--card); border-radius: 6px; overflow: hidden; border: 1px solid #444; }
.ad-item.is-banner img { width: 100%; height: 100%; object-fit: cover; }
.ad-item.is-logo { height: 50px; flex-shrink: 0; filter: grayscale(100%) brightness(150%); opacity: 0.6; }
.ad-item.is-logo img { height: 100%; width: auto; object-fit: contain; }
@keyframes scrollAds { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

#close-modal { position: fixed; top: 25px; right: 25px; z-index: 100000; background: #181818; width: 40px; height: 40px; border-radius: 50%; display: flex; justify-content: center; align-items: center; border: 1px solid #333; cursor: pointer !important; }
#close-modal:hover { background: var(--brand); color: black; border-color: var(--brand); }
#skyler-btn { position: fixed; bottom: 30px; right: 30px; z-index: 8000; width: 60px; height: 60px; border-radius: 50%; background: var(--brand); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0,0,0,0.5); cursor: pointer; }