/* ===== GENERAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0f0f1a;
    color: #fff;
}

/* ===== NAVBAR ===== */
.navbar {
    background: linear-gradient(135deg, #032541 0%, #0878b4 100%);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.navbar-logo {
    font-size: 1.8rem;
    font-weight: bold;
}

.navbar-logo a {
    color: #fff;
    text-decoration: none;
}

.navbar-logo span {
    color: #01b4e4;
}

.navbar-logo i {
    margin-right: 8px;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.navbar-menu li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.navbar-menu li a:hover {
    color: #01b4e4;
}

.navbar-menu li a.active {
    color: #01b4e4;
}

.navbar-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar-search:focus-within {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.02);
}

.navbar-search input {
    background: transparent;
    border: none;
    color: #fff;
    width: 200px;
    padding: 0.3rem;
    outline: none;
}

.navbar-search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* ===== MOVIE CARDS ===== */
.movies-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.movie {
    background: #1a1a2e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.movie:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.movie-img-container {
    position: relative;
    height: 375px;
    overflow: hidden;
}

.movie-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.movie:hover .movie-img-container img {
    transform: scale(1.05);
    opacity: 0.8;
}

/* Play Button */
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 4rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
    filter: drop-shadow(0 0 10px #01b4e4);
}

.play-icon:hover {
    color: #01b4e4;
    transform: translate(-50%, -50%) scale(1.1);
}

.movie:hover .play-icon {
    opacity: 1;
}

/* Movie Info */
.movie-info {
    padding: 1rem;
}

.movie-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-info .rating {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.rating.high {
    background-color: rgba(0, 200, 83, 0.2);
    color: #00c853;
}

.rating.medium {
    background-color: rgba(255, 171, 0, 0.2);
    color: #ffab00;
}

.rating.low {
    background-color: rgba(255, 82, 82, 0.2);
    color: #ff5252;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .hamburger {
        display: block;
    }
    
    .navbar-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, #032541 0%, #0878b4 100%);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 1rem 0;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-menu.active {
        left: 0;
    }
    
    .navbar-search {
        display: none;
    }
}

@media (max-width: 768px) {
    .movies-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .movie-img-container {
        height: 300px;
    }
}
/* ===== FOOTER STYLES ===== */
.footer {
    background: linear-gradient(135deg, #032541 0%, #0878b4 100%);
    color: #fff;
    padding: 3rem 2rem 1rem;
    margin-top: 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section {
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #01b4e4;
}

.footer-section p {
    margin-bottom: 1rem;
    opacity: 0.8;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: #01b4e4;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: #01b4e4;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}
/* Navbar Menu Styles */
.navbar-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.navbar-menu > li {
    position: relative;
}

.navbar-menu > li > a {
    color: white;
    text-decoration: none;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.navbar-menu > li > a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.navbar-menu > li > a.active {
    background: #01b4e4;
}

.navbar-menu > li > a i {
    font-size: 1.1rem;
}

/* Mobile Search Item (Hidden on Desktop) */
.mobile-search-item {
    display: none;
}

.mobile-search-box {
    display: flex;
    padding: 0.5rem 1rem;
}

#mobileSearch {
    flex: 1;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 20px 0 0 20px;
    padding: 0.5rem 1rem;
    color: white;
    outline: none;
}

.mobile-search-button {
    background: #01b4e4;
    border: none;
    border-radius: 0 20px 20px 0;
    color: white;
    padding: 0 1rem;
    cursor: pointer;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #032541;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li a {
    color: white;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.dropdown-menu li a:hover {
    background: rgba(1, 180, 228, 0.3);
    padding-left: 1.2rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .navbar-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, #032541 0%, #0878b4 100%);
        width: 100%;
        padding: 1rem 0;
        transition: 0.3s;
    }
    
    .navbar-menu.active {
        left: 0;
    }
    
    .navbar-menu > li {
        width: 100%;
    }
    
    .navbar-menu > li > a {
        padding: 1rem 2rem;
        border-radius: 0;
    }
    
    .mobile-search-item {
        display: block;
        padding: 1rem;
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        display: none;
        background: rgba(0, 0, 0, 0.2);
    }
    
    .dropdown:hover .dropdown-menu {
        display: block;
    }
}
/* Terms Page Specific Styles */
.terms-container a {
    color: #01b4e4;
    text-decoration: none;
    transition: all 0.3s ease;
}

.terms-container a:hover {
    text-decoration: underline;
}

.highlight {
    background-color: rgba(1, 180, 228, 0.2);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
}
/* Footer Sticky */
.footer-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #032541 0%, #0878b4 100%);
  z-index: 999;
}

/* Iklan Banner */
.ad-banner {
  width: 100%;
  padding: 8px 0;
  background: #1a1a2e;
  border-top: 1px solid #01b4e4;
  text-align: center;
}

.ad-wrapper {
  margin: 0 auto;
  width: 468px;
  height: 60px;
}

/* Penyesuaian Konten Utama */
main {
  padding-bottom: 120px; /* Sesuaikan dengan tinggi footer + iklan */
}

/* Responsif: Non-sticky di mobile */
@media (max-width: 768px) {
  .footer-container {
    position: static;
  }
  
  main {
    padding-bottom: 0;
  }
  
  .ad-wrapper {
    width: 100%;
    max-width: 468px;
  }
}