:root {
    --primary-blue: #00d4ff;
    --dark-bg: #020b1a;
    --card-bg: #0a192f;
    --text-white: #e6f1ff;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-white);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

/* --- NAVBAR --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; 
    box-sizing: border-box; 
    z-index: 1000;
    transition: 0.4s;
    background: transparent;
}

.logo img { height: 50px; }

.search-box { position: relative; width: 300px; }
#search-input {
    width: 100%;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--primary-blue);
    border-radius: 20px;
    color: white;
    outline: none;
    transition: 0.3s;
}

#search-input:focus {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px var(--primary-blue);
}

/* --- MAIN CONTENT SPACING --- */
main {
    margin-top: 80px; 
}

#banner {
    height: 80vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 5%;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 80%, rgba(0,0,0,0));
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 80%, rgba(0,0,0,0));
}

#banner-title { 
    font-size: clamp(2rem, 5vw, 3.5rem); 
    text-shadow: 2px 2px 15px rgba(0,212,255,0.7); 
}

/* --- MOVIE CARD & TRAILER OVERLAY --- */
.movie-row {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 5%;
    scrollbar-width: none;
}

.movie-row::-webkit-scrollbar { display: none; }

.movie-card {
    position: relative;
    flex: 0 0 auto; 
    width: 180px;
    border-radius: 10px;
    overflow: hidden; 
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.movie-card img {
    width: 100%;
    display: block;
    border-radius: 10px;
}

.movie-card:hover {
    transform: scale(1.08);
    z-index: 2;
}

.trailer-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(2, 11, 26, 0.6); 
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    /* PUMAPAYAG SA CLICK NA TUMAGOS SA POSTER */
    pointer-events: none; 
}

.movie-card:hover .trailer-overlay {
    opacity: 1;
}

.trailer-overlay button {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.8rem;
    box-shadow: 0 0 15px var(--primary-blue);
    transition: 0.3s;
    /* ETO LANG ANG PWEDE I-CLICK SA OVERLAY */
    pointer-events: auto; 
    z-index: 10;
}

.trailer-overlay button:hover {
    background: white;
    color: var(--dark-bg);
}

/* --- THE BIG SCREEN MODAL PLAYER --- */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.modal-content { 
    width: 95%; 
    max-width: 1200px; /* Mas malapad para sa cinematic feel */
    background: var(--card-bg); 
    border-radius: 15px; 
    border: 1px solid rgba(0, 212, 255, 0.3);
    position: relative;
    overflow-y: auto;
    max-height: 95vh;
}

.player-container {
    width: 100%;
    background: #000;
}

#modal-video { 
    width: 100%; 
    aspect-ratio: 16 / 9; /* Standard cinematic ratio */
    border: none;
    display: block;
}

.modal-details {
    padding: 25px;
    background: linear-gradient(to bottom, #0a192f, #020b1a);
}

.modal-info { 
    display: flex; 
    gap: 30px; 
    align-items: flex-start;
}

#modal-image { 
    width: 180px; 
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    object-fit: cover;
}

.close { 
    position: absolute; 
    right: 20px; 
    top: 10px; 
    font-size: 35px; 
    cursor: pointer; 
    color: var(--primary-blue); 
    z-index: 100;
}

select {
    padding: 10px;
    background: var(--primary-blue);
    border: none;
    border-radius: 5px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    margin-top: 10px;
}

/* RESPONSIVE DESIGN PARA SA MOBILE */
@media (max-width: 768px) {
    .modal-info { flex-direction: column; align-items: center; text-align: center; }
    #modal-image { display: none; } /* Tinago para lumaki ang text area sa mobile */
    #modal-title { font-size: 1.5rem; }
}

/* --- NEW LOGO STYLES (Dito natin aayusin bro) --- */
.logo {
    display: flex;
    align-items: center;
}

#site-logo {
    /* Taasan natin ng konti para mas klaro, pero hindi masyadong malaki */
    height: 70px; 
    width: auto;
    
    /* Siguraduhin na hindi ma-stretch ang image */
    object-fit: contain; 
    
    /* Konting shadow para lumutang sa navbar background */
    filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.6)); 
    
    transition: transform 0.3s ease;
}

#site-logo:hover {
    transform: scale(1.03); /* Konting zoom effect pag tinapat ang mouse */
}

/* --- NAVBAR STYLES (Siguraduhin na sapat ang space) --- */
#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    /* Lakihan natin ang padding sa taas at baba para sa logo */
    padding: 10px 4%; 
    
    /* Gamitin natin ang primary black/blue color ng logo background */
    background: rgba(2, 11, 26, 0.98); 
    
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

