/* ============================================================
   TV1.LK21OFFICIAL.STUDY — CUSTOM CSS
   ------------------------------------------------------------
   Struktur:
   1. Global & Utilities
   2. Navbar & Menu
   3. Gambar & Poster
   4. Sidebar
   5. Menu Kustom (Vivamax, Marvel)
   6. FAQ Section
   7. Responsive (Mobile)
   8. Utility Classes
   9. Megamenu & SR-Only (dari header.php)
   10. Download Notif (Google Play Style)
   ============================================================ */


/* ============================================================
   1. GLOBAL & UTILITIES
   ============================================================ */

.tag-cloud-link,
a.tag-cloud-link {
    font-size: 14px !important;
}

a:focus:not(:focus-visible),
td:focus:not(:focus-visible) {
    outline: none;
}

#go-top {
    opacity: 0;
    bottom: 30px;
    right: 10px;
    z-index: 99;
    border: none;
    outline: 0;
    background-color: #e50a4a;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    font-size: 20px !important;
}

.social-block a,
.social-search a {
    padding: 7px;
    border-radius: 3px;
    display: block;
    font-size: 100% !important;
    font-weight: 600;
}


/* ============================================================
   2. NAVBAR & MENU
   ============================================================ */

li.menu-item {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

li.menu-item > a {
    padding: 8px 10px !important;
}


/* ============================================================
   3. GAMBAR & POSTER
   ============================================================ */

/* 3.1 Poster (2:3) */
.grid-poster,
.img-adblock.lazy,
img.lazy {
    aspect-ratio: 2 / 3;
    width: 100%;
    height: auto;
    object-fit: cover;
    background: #1a1a2e;
}

/* 3.2 Episode list (16:9) */
.episode-list img {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
    object-fit: cover;
    background: #1a1a2e;
}

/* 3.3 Semua gambar dari TMDB (fallback poster) */
img[src*="image.tmdb.org"] {
    aspect-ratio: 2 / 3;
    width: 100%;
    height: auto;
    background: #1a1a2e;
}

/* 3.4 Backdrop / banner (16:9) */
img[src*="w780"],
img[src*="w1280"],
img[src*="backdrop"] {
    aspect-ratio: 16 / 9 !important;
}

/* 3.5 Gambar tanpa src → sembunyikan */
img[src=""],
img:not([src]) {
    display: none !important;
}

/* 3.6 Wrapper poster */
.poster-wrapper {
    position: relative;
    overflow: hidden;
    background: #1a1a2e;
}

.poster-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ============================================================
   4. SIDEBAR
   ============================================================ */

.sidebar {
    position: static;
}

@media (min-width: 992px) {
    .sidebar {
        position: -webkit-sticky;
        position: sticky;
        top: 5px;
        z-index: 100;
    }
}


/* ============================================================
   5. MENU KUSTOM — Vivamax & Marvel
   ============================================================ */

/* 5.1 Vivamax — text gradient warna logo */
a.menu-vivamax {
    background: linear-gradient(135deg, #1e88e5 0%, #29b6f6 45%, #ff9800 55%, #ff6b35 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
    background-color: transparent !important;

    font-weight: 900 !important;
    letter-spacing: .5px !important;
    text-shadow: none !important;
    padding: 8px 12px !important;

    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: all .3s ease !important;

    filter: drop-shadow(0 0 6px rgba(30, 136, 229, 0.5))
            drop-shadow(0 0 12px rgba(255, 152, 0, 0.3)) !important;
}

a.menu-vivamax::before {
    display: none !important;
    content: none !important;
}

a.menu-vivamax:hover {
    filter: drop-shadow(0 0 10px rgba(255, 152, 0, 0.8))
            drop-shadow(0 0 18px rgba(30, 136, 229, 0.6)) !important;
}

li.current-menu-item > a.menu-vivamax,
li.current_page_item > a.menu-vivamax {
    filter: drop-shadow(0 0 12px rgba(255, 152, 0, 0.9))
            drop-shadow(0 0 22px rgba(30, 136, 229, 0.7)) !important;
}

/* 5.2 Marvel — putih glow merah */
a.menu-marvel {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow:
        0 0 6px rgba(255, 45, 85, 0.8),
        0 0 12px rgba(255, 45, 85, 0.5),
        0 1px 2px rgba(0, 0, 0, 0.3) !important;

    font-weight: 900 !important;
    letter-spacing: .8px !important;
    padding: 8px 12px !important;

    background: none !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: none !important;
    transition: all .3s ease !important;
}

a.menu-marvel::before {
    display: none !important;
    content: none !important;
}

a.menu-marvel > .fa,
a.menu-marvel > .fa-star,
a.menu-marvel > i {
    display: none !important;
}

a.menu-marvel:hover {
    text-shadow:
        0 0 8px rgba(255, 45, 85, 1),
        0 0 18px rgba(255, 45, 85, 0.8),
        0 0 30px rgba(255, 45, 85, 0.5),
        0 1px 2px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-1px);
}

li.current-menu-item > a.menu-marvel,
li.current_page_item > a.menu-marvel {
    color: #ff2d55 !important;
    -webkit-text-fill-color: #ff2d55 !important;
    text-shadow:
        0 0 10px rgba(255, 45, 85, 1),
        0 0 20px rgba(255, 45, 85, 0.8) !important;
}


/* ============================================================
   6. FAQ SECTION
   ============================================================ */

/* 6.1 Container */
.faq-section {
    background: #333333;
    padding: 30px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-section .faq-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 6.2 SEO Intro */
.faq-section .seo-intro {
    margin-bottom: 30px;
    padding: 0;
    border-radius: 0;
}

.faq-section .seo-intro p {
    font-size: 16px;
    line-height: 1.8;
    color: #fff;
}

/* 6.3 Header */
.faq-section .faq-header {
    text-align: center;
    margin-bottom: 25px;
}

.faq-section .faq-header .faq-badge {
    display: inline-block;
    color: #e50914;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.faq-section .faq-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 5px;
    padding: 0;
}

.faq-section .faq-header p {
    color: #aaaaaa;
    font-size: 14px;
    margin: 0;
    padding: 0;
}

/* 6.4 FAQ Item */
.faq-section .faq-item {
    border-radius: 8px;
    padding: 0;
    margin-bottom: 8px;
}

.faq-section .faq-item .q-number {
    color: #e50914;
    font-weight: 700;
    font-size: 14px;
    display: inline-block;
    min-width: 32px;
}

.faq-section .faq-item .q-text {
    color: #f0f0f0;
    font-weight: 600;
    font-size: 14px;
    display: inline;
}

.faq-section .faq-item .faq-answer {
    margin-top: 6px;
    padding-left: 32px;
}

.faq-section .faq-item .faq-answer p {
    color: #bbbbbb;
    font-size: 13.5px;
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

.faq-section .faq-item .faq-answer strong {
    color: #ffffff;
    font-weight: 600;
}

/* 6.5 Link di dalam FAQ */
.faq-section a {
    color: #e50914;
    text-decoration: none;
    transition: color .2s ease;
}

.faq-section a:hover {
    color: #ff2d55;
    text-decoration: underline;
}


/* ============================================================
   7. RESPONSIVE — MOBILE
   ============================================================ */

/* 7.1 Tablet (≤768px) */
@media (max-width: 768px) {
    li.menu-item > a {
        padding: 6px 8px !important;
        font-size: .9em !important;
    }
    a.menu-marvel {
        letter-spacing: .5px !important;
    }
}

/* 7.2 Mobile (≤640px) — FAQ */
@media (max-width: 640px) {
    .faq-section .seo-intro p {
        font-size: 14px;
    }
    .faq-section .faq-header h2 {
        font-size: 18px;
    }
    .faq-section .faq-header p {
        font-size: 13px;
    }
    .faq-section .faq-item {
        padding: 12px 14px;
    }
    .faq-section .faq-item .q-text {
        font-size: 13px;
    }
    .faq-section .faq-item .faq-answer {
        padding-left: 20px;
    }
    .faq-section .faq-item .faq-answer p {
        font-size: 12.5px;
    }
}

/* 7.3 Mobile kecil (≤480px) */
@media (max-width: 480px) {
    li.menu-item > a {
        padding: 5px 6px !important;
        font-size: .82em !important;
    }
    a.menu-marvel {
        letter-spacing: .3px !important;
    }
}


/* ============================================================
   8. UTILITY CLASSES — Hide on device
   ============================================================ */

@media (min-width: 768px) {
    .navbar {
        border-radius: 0px;
    }
    .hide-on-desktop {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .hide-on-mobile {
        display: none !important;
    }
}


/* ============================================================
   9. MEGAMENU & SR-ONLY
   (dipindah dari <style> di header.php)
   ============================================================ */

.primary .megamenu {
    position: relative;
    margin-bottom: 35px;
}

li a.fa-heart ~ ul.dropdown-menu > li .megamenu,
li a.fa-star ~ ul.dropdown-menu > li .megamenu {
    margin-bottom: 0;
}

.primary .dropdown li a.btn.btn-primary {
    color: #fff !important;
    display: block !important;
    position: absolute;
    bottom: -45px !important;
    width: 95% !important;
    border-radius: 2px !important;
    font-size: 12px;
    text-align: center;
    left: 50% !important;
    transform: translate(-50%, -50%);
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


/* ============================================================
   10. DOWNLOAD NOTIF — Google Play Style
   (dipindah dari <style> di footer.php)
   ============================================================ */

@keyframes lk21Slide {
    from { transform: translateY(40px) scale(0.9); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

#lk21-download-notif:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), 0 4px 10px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-2px);
    transition: all 0.25s ease;
}

#lk21-download-notif:hover > div:last-child > div:last-child > div:last-child {
    background: #017a56 !important;
}

#lk21-download-notif button:hover {
    background: rgba(0, 0, 0, 0.05);
}

