:root { 
    --accent: #00d2ff; 
    --bg: #050505; 
    --glass: rgba(255, 255, 255, 0.05); 
    --border: rgba(255, 255, 255, 0.1); 
}

body { background: var(--bg); color: white; font-family: 'Poppins', sans-serif; margin: 0; overflow-x: hidden; }

/* 1. Loading Screen */
#loader { position: fixed; inset: 0; background: #000; z-index: 99999; display: flex; justify-content: center; align-items: center; transition: 0.5s; }
.spinner { width: 40px; height: 40px; border: 3px solid var(--accent); border-top-color: transparent; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 2. Insta Floating Button */
.insta-float { position: fixed; bottom: 20px; right: 20px; z-index: 1000; background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); padding: 10px 18px; border-radius: 50px; color: white; text-decoration: none; font-weight: 600; font-size: 11px; box-shadow: 0 10px 20px rgba(0,0,0,0.5); }

/* 3. Navigation & Genre Bar */
.glass-nav { display: flex; justify-content: space-between; align-items: center; padding: 15px 5%; background: rgba(0,0,0,0.8); backdrop-filter: blur(15px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.genre-bar { display: flex; overflow-x: auto; padding: 15px 5%; gap: 10px; background: #0a0a0a; scrollbar-width: none; }
.genre-bar button { background: var(--glass); border: 1px solid var(--border); color: white; padding: 8px 16px; border-radius: 20px; cursor: pointer; }
.genre-bar button:hover { background: var(--accent); color: black; }

/* 4. Movie Grid (Mobile Responsive) */
.movie-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; padding: 20px 5%; }
@media (min-width: 768px) { .movie-grid { grid-template-columns: repeat(5, 1fr); } }
.movie-card { border-radius: 12px; overflow: hidden; cursor: pointer; transition: 0.3s; }
.movie-card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.movie-card:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(0,210,255,0.3); }

/* 5. Fixed Cinematic Player Modal */
#player-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 10000; display: flex; justify-content: center; align-items: center; padding: 20px; backdrop-filter: blur(10px); }
#player-modal.hidden { display: none; }
.player-container { width: 100%; max-width: 900px; background: #111; border-radius: 15px; overflow: hidden; border: 1px solid var(--border); }
.player-header { display: flex; justify-content: space-between; padding: 15px 20px; background: #1a1a1a; }
.iframe-container { position: relative; padding-bottom: 56.25%; height: 0; }
.iframe-container iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.player-footer { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: #1a1a1a; }

/* 6. TV Controls */
.tv-controls select { background: #222; color: white; border: 1px solid var(--border); padding: 5px; border-radius: 5px; }
.server-btns button { background: #333; border: none; color: white; padding: 6px 12px; border-radius: 5px; cursor: pointer; }
.server-btns button:hover { background: var(--accent); color: black; }
.hidden { display: none; }
