/* RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #141414;
    color: #ffffff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* NAVBAR STYLES */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #181818;
    padding: 12px 4%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #282828;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
}

.logo span {
    color: #ff0022; /* Aksen warna merah khas */
}

.main-menu {
    display: flex;
    gap: 20px;
}

.main-menu a {
    font-size: 14px;
    font-weight: 600;
    color: #b3b3b3;
    transition: color 0.3s ease;
}

.main-menu a:hover, 
.main-menu a.active {
    color: #ffffff;
}

/* SEARCH BAR */
.nav-center {
    flex: 0 1 400px;
}

.search-bar {
    display: flex;
    background-color: #2f2f2f;
    border-radius: 4px;
    overflow: hidden;
}

.search-bar input {
    width: 100%;
    padding: 8px 14px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 14px;
    outline: none;
}

.search-bar input::placeholder {
    color: #8c8c8c;
}

.btn-search {
    background: transparent;
    border: none;
    color: #8c8c8c;
    padding: 0 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.btn-search:hover {
    color: #ffffff;
}

/* RIGHT NAVBAR */
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-premium {
    background-color: #e5a93b; /* Warna kuning emas oranye ala Vidio */
    color: #141414;
    border: none;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-premium:hover {
    opacity: 0.9;
}

.btn-login {
    background: transparent;
    color: #ffffff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* MAIN CONTENT CONTAINER */
.main-content {
    margin-top: 80px; /* Jarak aman dari fixed navbar */
    padding: 20px 4%;
}

/* MOVIE SECTION HIERARCHY */
.movie-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.btn-more {
    font-size: 13px;
    color: #8c8c8c;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-more:hover {
    color: #ffffff;
}

/* HORIZONTAL SCROLL SLIDER */
.movie-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 15px;
    scroll-behavior: smooth;
}

/* Menyembunyikan scrollbar bawaan browser tapi fungsi scroll aktif */
.movie-slider::-webkit-scrollbar {
    height: 6px;
}
.movie-slider::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}
.movie-slider::-webkit-scrollbar-track {
    background: transparent;
}

/* MOVIE CARD DESIGN */
.movie-card {
    min-width: 160px; /* Lebar tetap untuk menjaga rasio horisontal */
    flex: 0 0 auto;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

.movie-card:hover {
    transform: scale(1.04);
    z-index: 2;
}

.image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3; /* Memaksa rasio gambar potret standar film */
    background-color: #222;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* BADGES STYLES */
.badge {
    position: absolute;
    padding: 3px 6px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 3px;
}

.badge.rating {
    top: 8px;
    left: 8px;
    background-color: rgba(0, 0, 0, 0.75);
    color: #ffc107;
}

.badge.hd {
    bottom: 8px;
    right: 8px;
    background-color: #007bff;
    color: #ffffff;
}

/* BANNER TEXT */
.info-banner {
    background: linear-gradient(90deg, #ff0055, #990022);
    padding: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    border-radius: 6px;
    margin: 30px 0;
    letter-spacing: 0.5px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .main-menu {
        display: none; /* Menyembunyikan menu teks pada layar kecil */
    }
    .nav-center {
        flex: 1;
        margin: 0 15px;
    }
    .movie-card {
        min-width: 130px;
    }
}