* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #0e0e0e;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
}

/* ==========================================
   HEADER & NAVIGASI
   ========================================== */
.site-header {
    background-color: #141414;
    border-bottom: 1px solid #222;
    padding: 10px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1350px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* 1. Kiri: Logo */
.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* 2. Tengah: Navigasi */
.header-nav {
    display: flex;
    justify-content: center;
    flex: 1;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-link {
    color: #bbb;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #fff;
}

/* ==========================================
   TOMBOL SEARCH EXPANDABLE
   ========================================== */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.search-toggle-btn {
    width: 38px;
    height: 38px;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-toggle-btn:hover,
.search-wrapper.active .search-toggle-btn {
    background-color: #262626;
    color: #fff;
    border-color: #444;
}

.search-expand-form {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) scaleX(0);
    transform-origin: right center;
    display: flex;
    align-items: center;
    background-color: #141414;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    width: 280px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    z-index: 1000;
}

.search-wrapper.active .search-expand-form {
    transform: translateY(-50%) scaleX(1);
    opacity: 1;
    pointer-events: auto;
}

.search-expand-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 9px 14px;
    font-size: 0.85rem;
    color: #fff;
}

.search-submit-btn {
    background-color: #e50914;
    border: none;
    color: #fff;
    padding: 9px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-submit-btn:hover {
    background-color: #ff1a25;
}

/* ==========================================
   GRID KARTU VIDEO (BERANDA)
   ========================================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.thumbnail-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Rasio 16:9 */
    background-color: #000;
}

.thumbnail-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.duration-tag {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.card-info {
    padding: 12px;
}

.card-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    font-size: 0.8rem;
    color: #888;
}

/* ==========================================
   PAGINATION
   ========================================== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
}

.page-btn {
    background-color: #1a1a1a;
    color: #ccc;
    border: 1px solid #333;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.page-btn:hover {
    background-color: #333;
    color: #fff;
}

.page-btn.active {
    background-color: #e50914;
    border-color: #e50914;
    color: #fff;
    font-weight: bold;
}

@media (max-width: 768px) {
    .header-nav {
        display: none;
    }
    .search-form {
        max-width: 180px;
    }
}
/* ==========================================
   STYLING MENU UTAMA & DROPDOWN
   ========================================== */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #bbb;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #fff;
}

/* Panah Indikator Dropdown */
.arrow-down {
    font-size: 0.65rem;
    opacity: 0.6;
    margin-left: 2px;
}

/* Ikon Menu */
.nav-icon {
    width: 15px;
    height: 15px;
}

/* Warna Aksen Teks & Ikon (Hot, Recent) */
.text-highlight {
    color: #9b1d36;
}

.text-highlight:hover {
    color: #b82845;
}

/* Badge Khusus SUB INDO */
.sub-indo-badge {
    background-color: #1a1a1a;
    border: 1px solid #9b1d36;
    color: #9b1d36 !important;
    padding: 3px 8px !important;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: bold;
    transition: all 0.2s ease;
}

.sub-indo-badge:hover {
    background-color: #9b1d36;
    border-color: #9b1d36;
    color: #fff !important;
}

/* Aksen Warna Tombol Aktif / Pagination */
.page-btn.active,
.btn-ctrl.active,
.tag-capsule:hover {
    background-color: #9b1d36 !important;
    border-color: #9b1d36 !important;
}

/* Kontainer Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #161616;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    min-width: 160px;
    padding: 6px 0;
    list-style: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    z-index: 1000;
}

.dropdown-menu li a {
    display: block;
    padding: 8px 16px;
    color: #bbb;
    text-decoration: none;
    font-size: 0.82rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-menu li a:hover {
    background-color: #242424;
    color: #fff;
}

/* Hover Trigger */
.nav-item.has-dropdown:hover .dropdown-menu {
    display: block;
}
/* Tata Letak 2 Iklan Menyamping */
.top-ads-container {
    display: flex;
    justify-content: center; /* Rata tengah */
    align-items: center;
    flex-wrap: wrap;         /* Otomatis turun ke bawah jika layar tidak cukup lebar */
    gap: 16px;               /* Jarak celah antar kedua iklan */
    width: 100%;
    max-width: 1520px;       /* Ruang cukup untuk 2 iklan (728 + 728 + gap) */
    margin: 20px auto 10px;  /* Jarak atas dan bawah */
    padding: 0 15px;
    box-sizing: border-box;
}

/* Slot Ukuran 728x90 */
.ad-slot-728 {
    width: 728px;
    height: 90px;
    max-width: 100%;         /* Responsif di layar HP */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #111;   /* Warna latar cadangan sebelum iklan termuat */
    overflow: hidden;
}

.ad-slot-728 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
