.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    margin: 20px;
    border-radius: 16px;
}
.logo { font-size: 24px; font-weight: 800; color: var(--accent); }
.nav-actions button { width: auto; padding: 10px 20px; }

.container { padding: 0 20px; max-width: 1600px; margin: 0 auto; width: 100%; }
.section-title { margin: 40px 0 20px; font-size: 28px; }

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.movie-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    transition: 0.3s;
    cursor: pointer;
    position: relative;
}
.movie-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 10px 30px rgba(56,189,248,0.1); }
.badge-hot { position: absolute; top: -10px; right: -10px; background: var(--danger); padding: 5px 10px; border-radius: 8px; font-size: 12px; font-weight: bold; animation: pulse 2s infinite; }

.movie-title { font-size: 20px; margin-bottom: 10px; }
.movie-info { color: var(--text-muted); font-size: 14px; margin-bottom: 15px; }


.navbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 40px; margin: 20px; border-radius: 16px; }
.logo { font-size: 24px; font-weight: 800; color: var(--accent); }
.nav-actions button { width: auto; padding: 10px 20px; }

.container { padding: 0 30px; max-width: 1600px; margin: 0 auto; width: 100%; }
.section-title { margin: 40px 0 20px; font-size: 28px; border-bottom: 2px solid var(--glass-border); padding-bottom: 10px;}

.movie-grid {
    display: grid;
    /* On large screens the cards are bigger */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.movie-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 15px; /* Reduced inner padding to give the image more room */
    transition: 0.3s;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.movie-card:hover { 
    transform: translateY(-5px); 
    border-color: var(--accent); 
    box-shadow: 0 10px 30px rgba(56,189,248,0.1); 
}

/* POSTER MAGIC: every image is exactly the same size */
.movie-poster {
    width: 100%;
    height: 400px;
    object-fit: cover; /* Crops the image without squashing it */
    border-radius: 12px;
    margin-bottom: 15px;
}

.badge-hot { 
    position: absolute; top: -5px; right: -5px; 
    background: var(--danger); padding: 6px 12px; 
    border-radius: 8px; font-size: 13px; font-weight: bold; 
    animation: pulse 2s infinite; 
    z-index: 10;
}

.badge-rank {
    position: absolute; top: 10px; left: 10px; 
    background: #eab308; color: #000; padding: 5px 12px; 
    border-radius: 6px; font-size: 16px; font-weight: 900; 
    z-index: 10;
}

.movie-title { font-size: 20px; margin-bottom: 8px; flex-grow: 1; }
.movie-info { color: var(--text-muted); font-size: 14px; }

@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }