:root {
    --primary-blue: #00d4ff; /* signature brand  */
    --dark-bg: #020b1a;
    --card-bg: #0a192f;
    --text-white: #e6f1ff;
    --accent-glow: rgba(0, 212, 255, 0.5); /*  neon effect */
}

body {
    background-color: var(--dark-bg);
    color: var(--text-white);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

/* --- NAVBAR & LOGO --- */
#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 4%;
    background: rgba(2, 11, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    position: fixed;
    top: 0; width: 100%; z-index: 1000;
    box-sizing: border-box;
}

#site-logo { 
    height: 120px;
    width: auto; 
    object-fit: contain; 
    filter: drop-shadow(0px 0px 10px var(--accent-glow)); 
    mix-blend-mode: screen;
    transition: transform 0.3s ease; 
}

#site-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0px 0px 15px var(--accent-glow));
    cursor: pointer;
}

/* --- PREMIUM SEARCH BAR --- */
.search-box { 
    position: relative; 
    width: 250px; 
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

.search-box:focus-within {
    width: 320px; 
}

#search-input {
    width: 100%;
    padding: 10px 20px 10px 40px; 
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.3); 
    border-radius: 30px; 
    color: var(--text-white);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2300d4ff' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 15px center;
}

#search-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-blue);
    box-shadow: 0 0 15px var(--accent-glow); 
}

#search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* --- HERO SLIDER --- */
#hero-slider-container {
    position: relative;
    width: 100%; height: 85vh;
    overflow: hidden; background: #000;
}

.hero-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    display: none; transition: opacity 0.8s ease-in-out;
}

.hero-slide.active { display: flex; align-items: center; }

.hero-video-container {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
}

.hero-video-container iframe {
    width: 100vw; height: 56.25vw; min-height: 100vh; min-width: 177.77vh;
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    opacity: 0.5; pointer-events: none;
}

.hero-overlay {
    position: absolute; width: 100%; height: 100%; z-index: 2;
    background: linear-gradient(to right, rgba(2, 11, 26, 0.9) 20%, rgba(2, 11, 26, 0.4) 50%, transparent 100%),
                linear-gradient(to bottom, transparent 60%, rgba(2, 11, 26, 1) 100%);
}

.hero-content { position: relative; z-index: 10; padding: 0 5%; max-width: 800px; }

/* BRAND BLUE BUTTONS BRO */
.btn-watch {
    background: var(--primary-blue);
    color: #020b1a; border: none;
    padding: 12px 30px; border-radius: 5px;
    font-weight: bold; cursor: pointer;
    transition: 0.3s; margin-right: 15px;
}

.btn-watch:hover { 
    background: #fff; 
    transform: scale(1.05); 
    box-shadow: 0 0 15px var(--accent-glow);
}

.slider-dots {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 10px; z-index: 20;
}

.dot { width: 12px; height: 12px; background: rgba(255,255,255,0.3); border-radius: 50%; cursor: pointer; transition: 0.3s; }
.dot.active { background: var(--primary-blue); width: 30px; border-radius: 10px; }

/* --- MOVIE CARDS & HOVER EFFECTS --- */
.movie-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; padding: 20px 5%; }
.movie-card { position: relative; border-radius: 12px; overflow: hidden; cursor: pointer; transition: 0.4s; border: 1px solid transparent; }

.movie-card:hover { 
    transform: scale(1.08); 
    border: 1px solid var(--primary-blue); 
    box-shadow: 0 0 15px var(--accent-glow);
}

.movie-card img { width: 100%; display: block; }

.trailer-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); display: flex; flex-direction: column;
    justify-content: center; align-items: center; gap: 8px;
    opacity: 0; transition: 0.3s; pointer-events: none;
}

.movie-card:hover .trailer-overlay { opacity: 1; pointer-events: auto; }

.hover-btn { width: 85%; padding: 8px; border: none; border-radius: 5px; font-weight: bold; font-size: 0.7rem; cursor: pointer; text-transform: uppercase; }

.trailer-btn { background: transparent; color: white; border: 1.5px solid white; }
.trailer-btn:hover { border-color: var(--primary-blue); color: var(--primary-blue); }

.movie-btn { background: var(--primary-blue); color: #020b1a; }
.movie-btn:hover { background: #fff; }

.share-mini-btn { background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.3); padding: 5px 15px; border-radius: 20px; font-size: 0.6rem; margin-top: 5px; cursor: pointer; }

/* --- GENRE BUTTONS PREMIUM BLUE --- */
.genre-container { padding: 20px 4%; text-align: center; overflow-x: auto; white-space: nowrap; margin-top: 20px; }

.genre-btn {
    padding: 8px 25px; margin: 5px;
    background: rgba(255, 255, 255, 0.05);
    color: white; border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 30px !important; 
    cursor: pointer;
    font-family: 'Poppins', sans-serif; transition: all 0.3s ease;
}

.genre-btn:hover, .genre-btn.active {
    background: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    color: #020b1a !important;
    box-shadow: 0 0 15px var(--accent-glow) !important;
    transform: translateY(-2px);
}

/* --- LOAD MORE BUTTON BLUE PILL --- */
.load-more-container { text-align: center; margin: 40px 0; }

#load-more-btn {
    padding: 14px 40px;
    background: var(--primary-blue) !important;
    color: #020b1a !important;
    border: none; 
    border-radius: 50px !important; 
    font-weight: bold; cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--accent-glow);
}

#load-more-btn:hover {
    background: #fff !important;
    transform: scale(1.05);
    box-shadow: 0 8px 25px var(--accent-glow);
}

/* --- MODAL WIDE PLAYER --- */
.modal { display: none; position: fixed; z-index: 3000; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); justify-content: center; align-items: center; }
.modal-content { width: 95%; max-width: 1200px; background: var(--card-bg); border-radius: 15px; overflow-y: auto; max-height: 95vh; border: 1px solid rgba(0, 212, 255, 0.2); }
#modal-video { width: 100%; aspect-ratio: 16/9; border: none; background: #000; }
.modal-details { padding: 25px; }
.modal-info { display: flex; gap: 30px; }
#modal-image { width: 200px; border-radius: 10px; border: 1px solid var(--primary-blue); }

#server {
    background: #020b1a;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    padding: 8px; border-radius: 5px; margin-top: 15px;
}

/* --- FOOTER STYLES UPGRADED --- */
#site-footer {
    background: rgba(2, 11, 26, 0.95);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    padding: 40px 5%; text-align: center; margin-top: 50px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 25px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
}

.footer-links a:hover {
    color: var(--primary-blue);
    text-shadow: 0 0 10px var(--accent-glow);
    transform: translateY(-2px);
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.copyright {
    color: var(--primary-blue);
    font-size: 1rem; font-weight: bold; letter-spacing: 1px;
}

/* --- MOBILE RESPONSIVE & MODAL FIXES --- */
@media (max-width: 768px) {
    #modal-image { display: none; }
    .movie-row { grid-template-columns: repeat(2, 1fr); }
    .search-box { width: 160px; }
    .search-box:focus-within { width: 220px; }

    .modal-content {
        margin-top: 50px; 
        width: 98%;
    }

    .close {
        position: absolute;
        top: 15px; 
        right: 15px;
        font-size: 40px; 
        color: var(--primary-blue); 
        background: rgba(0, 0, 0, 0.6); 
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%; 
        z-index: 5000; 
        line-height: 1;
        cursor: pointer;
    }
}
