:root {
    --bg-dark: #eef1f5;
    --bg-light: #ffffff;
    --bg-lighter: #e2e2e2;
    --text-light: #13233a;
    --text-medium: #6b6b6b;
    --text-dark: #333333;
    --accent-color: #f26b1d;
    --accent-hover: #ff8a3d;
    --navy: #13233a;
    --band: #0b1626;
    --panel: #13233a;
    --yellow: #ffb347;
    --header-bg: #ffffff;
    --header-text: #13233a;
    --subnav-bg: linear-gradient(90deg, #0f2440 0%, #1b3a63 100%);
    --card-w: 130px;
}
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    -webkit-text-size-adjust: 100%;
}
body {
    background: var(--bg-dark);
    color: var(--text-light);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}
a {
    color: inherit;
    text-decoration: none;
}
img {
    max-width: 100%;
}
button {
    font-family: inherit;
}
.container {
    width: 100%;
    max-width: 1286px;
    margin: 0 auto;
    padding: 0 15px;
}
.main-content {
    width: 100%;
    max-width: 1286px;
    margin: 0 auto;
    padding: 1.25rem 15px 2rem;
}
.site-header {
    position: relative;
    z-index: 1000;
    background: var(--header-bg);
    color: var(--header-text);
    box-shadow: 0 1px 0 #dde3eb;
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 56px;
}
.site-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.site-logo img {
    height: 36px;
    width: auto;
    display: block;
}
.logo-text {
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: .04em;
    color: var(--header-text);
    white-space: nowrap;
}
.logo-text::first-letter {
    color: var(--accent-color);
}
.site-logo--crop img {
    width: 150px;
    height: 50px;
    object-fit: cover;
}
.search-form {
    display: flex;
    flex: 0 1 370px;
    min-width: 0;
    height: 34px;
}
.search-form input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 1px solid #cfd6e0;
    border-right: 0;
    border-radius: 20px 0 0 20px;
    background: #f4f6f9;
    color: var(--navy);
    padding: 0 .6rem;
    font-size: .95rem;
    outline: none;
    border-radius: 0;
}
.search-form input::placeholder {
    color: #8a96a8;
}
.search-form input:focus {
    background: #fff;
    border-color: var(--accent-color);
}
.search-form button {
    width: 42px;
    height: 100%;
    border: 0;
    border-radius: 0 20px 20px 0;
    background: var(--accent-color);
    color: #fff;
    cursor: pointer;
    font-size: .95rem;
}
.main-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
    height: 100%;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: .4rem;
    height: 100%;
    padding: 0 .7rem;
    color: var(--header-text);
    font-size: .95rem;
    font-weight: 600;
    white-space: nowrap;
}
.nav-link:hover {
    color: var(--accent-color);
}
.nav-link i {
    font-size: .85rem;
    color: var(--accent-color);
}
.nav-home {
    display: none;
}
.nav-dropdown {
    position: relative;
    height: 100%;
}
.nav-dropdown > .nav-link::after {
    content: "";
    border: 4px solid transparent;
    border-top-color: currentColor;
    border-bottom: 0;
    margin-left: .15rem;
}
.nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    padding: .5rem;
    background: #fff;
    border-radius: 0 0 8px 8px;
    border-top: 3px solid var(--accent-color);
    box-shadow: 0 8px 20px rgba(19, 35, 58, .2);
    grid-template-columns: repeat(2, 1fr);
}
.nav-dropdown:last-child .nav-menu {
    left: auto;
    right: 0;
}
.nav-dropdown:hover .nav-menu {
    display: grid;
}
.nav-menu a {
    padding: .4rem .7rem;
    color: #2b2f36;
    font-size: .92rem;
    border-radius: 3px;
}
.nav-menu a:hover {
    background: var(--accent-color);
    color: #fff;
}
.nav-burger {
    display: none;
}
.subnav {
    background: var(--subnav-bg);
}
.subnav-inner {
    display: flex;
    gap: 1.1rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.subnav-inner::-webkit-scrollbar {
    display: none;
}
.subnav a {
    padding: .55rem 0;
    color: #e6edf7;
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}
.subnav a:hover {
    color: var(--yellow);
}
.band {
    background: var(--band);
    color: #fff;
}
.page-band {
    background: var(--band);
    color: #fff;
}
.page-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 56px;
    padding-top: .5rem;
    padding-bottom: .5rem;
    flex-wrap: wrap;
}
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    font-size: 1.15rem;
    font-weight: 700;
}
.breadcrumb a {
    color: #fff;
}
.breadcrumb a:hover {
    color: var(--yellow);
}
.breadcrumb .sep {
    color: #888;
    font-weight: 400;
}
.breadcrumb .current {
    color: #fff;
}
.type-tabs {
    display: flex;
    gap: .4rem;
}
.type-tabs a {
    padding: .4rem .9rem;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 20px;
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
}
.type-tabs a.active,
.type-tabs a:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}
.page-title {
    font-size: 1.35rem;
    line-height: 1.3;
    margin-bottom: .5rem;
}
.list-intro {
    color: var(--text-medium);
    font-size: .95rem;
    line-height: 1.6;
    max-width: 900px;
    margin-bottom: 1rem;
}
.section {
    margin-bottom: 1.75rem;
}
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .75rem;
}
.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    padding-left: .6rem;
    border-left: 4px solid var(--accent-color);
}
.btn-all {
    flex-shrink: 0;
    background: var(--accent-color);
    color: #fff;
    padding: .3rem .9rem;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
}
.btn-all:hover {
    background: var(--accent-hover);
}
.row-wrap {
    position: relative;
}
.row-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.row-scroll::-webkit-scrollbar {
    display: none;
}
.row-scroll > .card {
    flex: 0 0 var(--card-w);
    scroll-snap-align: start;
}
.row-next,
.row-prev {
    position: absolute;
    top: calc(var(--card-w) * .75 - 22px);
    width: 30px;
    height: 44px;
    border: 0;
    background: rgba(255, 255, 255, .92);
    color: var(--accent-color);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.row-next {
    right: -6px;
    border-radius: 4px 0 0 4px;
}
.row-prev {
    left: -6px;
    border-radius: 0 4px 4px 0;
    display: none;
}
.row-wrap.scrolled .row-prev {
    display: block;
}
.band .row-next,
.band .row-prev {
    background: rgba(0, 0, 0, .6);
    color: #fff;
}
.card {
    min-width: 0;
}
.card-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 8px;
    background: #1b2d47;
    box-shadow: 0 3px 8px rgba(19, 35, 58, .18);
}
.card-poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s;
}
.card-poster:hover img {
    transform: scale(1.05);
}
.badge {
    position: absolute;
    top: 6px;
    z-index: 2;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}
.badge-rating {
    left: 6px;
    background: rgba(11, 22, 38, .85);
    padding: .25rem .45rem;
    border-radius: 10px;
}
.badge-rating b {
    color: var(--yellow);
    font-weight: 400;
    margin-right: .15rem;
}
.badge-q {
    right: 6px;
    padding: .25rem .4rem;
    border-radius: 10px;
}
.q-hd {
    background: #3a8a2f;
}
.q-sd {
    background: #3d6fa8;
}
.q-cam {
    background: #c0272d;
}
.q-tv {
    background: #a10fb3;
}
.card-foot {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    padding: 1.4rem .55rem .45rem;
    background: linear-gradient(to top, rgba(11, 22, 38, .9), transparent);
    color: #ddd;
    font-size: .76rem;
}
.card-foot b {
    color: #fff;
}
.card-body {
    padding-top: .35rem;
}
.card-meta {
    color: #7a8698;
    font-size: .74rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-title {
    font-size: .98rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--navy);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-title a:hover {
    color: var(--accent-color);
}
.band .card-title {
    color: #fff;
}
.band .card-meta {
    color: #aaa;
}
.poster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.25rem 1rem;
}
.empty-text {
    padding: 2rem 0;
    color: var(--text-medium);
}
.pagination-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .35rem;
    margin-top: 2rem;
}
.pagination-btn {
    display: inline-block;
    min-width: 40px;
    padding: .5rem .8rem;
    background: #fff;
    color: var(--text-dark);
    border: 1px solid #d5dce6;
    border-radius: 6px;
    text-align: center;
    font-weight: 700;
    font-size: .9rem;
}
a.pagination-btn:hover,
.pagination-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}
.hub-title {
    font-size: 1.1rem;
    margin: 1.5rem 0 .75rem;
}
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.tag-cloud a {
    background: #fff;
    color: var(--text-dark);
    border: 1px solid var(--bg-lighter);
    padding: .4rem .9rem;
    border-radius: 20px;
    font-size: .88rem;
    font-weight: 600;
}
.tag-cloud a:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}
.site-footer {
    background: var(--navy);
    color: #c3cedd;
    margin-top: 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: 2rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.footer-col h3 {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: #fff;
    font-size: 1.05rem;
    text-transform: uppercase;
    margin-bottom: .75rem;
}
.footer-col h3::after {
    content: "";
    flex: 1;
    height: 3px;
    background: var(--accent-color);
}
.footer-col p {
    font-size: .92rem;
    line-height: 1.6;
}
.footer-col ul {
    list-style: none;
}
.footer-col li a {
    display: inline-block;
    padding: .15rem 0;
    font-size: .92rem;
}
.footer-col li a::before {
    content: "\2022";
    margin-right: .5rem;
    color: #888;
}
.footer-col a:hover {
    color: var(--yellow);
}
.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}
.footer-bottom {
    background: var(--band);
    padding: 1.1rem 0;
    text-align: center;
    font-size: .9rem;
}
.footer-bottom nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .4rem 1.2rem;
    margin-bottom: .5rem;
}
.footer-bottom nav a {
    color: #fff;
    font-weight: 600;
}
.footer-bottom nav a:hover,
.footer-bottom .brand {
    color: var(--accent-hover);
}
.ad-banner-container {
    width: 100%;
    margin: 1.5rem auto;
    text-align: center;
}
.ad-banner-container img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}
.ad-stack-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem auto;
    align-items: center;
}
.ad-banner-item a,
.ad-banner-item img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}
.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 5rem auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
#scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}
.idlix-ads-container {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2147483647;
    width: 728px;
    max-width: 95vw;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}
.idlix-ads-header {
    display: flex;
    justify-content: flex-start;
    pointer-events: auto;
}
.idlix-close-btn {
    pointer-events: auto;
    background: #fff;
    color: #000;
    border: 1px solid #333;
    font-size: 11px;
    font-family: sans-serif;
    padding: 3px 12px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 2px 2px 0 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, .2);
}
.idlix-ads-body {
    pointer-events: auto;
    background: rgba(0, 0, 0, .9);
    display: flex;
    flex-direction: column;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, .5);
}
.idlix-img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1px;
}
#popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .85);
    z-index: 2147483647;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.popup-content {
    position: relative;
    width: 100%;
    max-width: 600px;
}
#close-popup-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--accent-color);
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 1.8rem;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .4);
    z-index: 1;
}
.popup-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.popup-banner-link {
    display: block;
    overflow: hidden;
    border-radius: 6px;
}
.popup-banner-link img {
    width: 100%;
    height: auto;
    display: block;
}
@media (max-width: 1100px) {
    .header-inner {
        gap: .6rem;
        height: 52px;
    }
    .nav-burger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 32px;
        height: 32px;
        flex-shrink: 0;
        background: none;
        border: 0;
        padding: 4px;
        cursor: pointer;
    }
    .nav-burger span {
        display: block;
        width: 24px;
        height: 3px;
        background: var(--header-text);
        border-radius: 2px;
        transition: transform .2s, opacity .2s;
    }
    .menu-open .nav-burger span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-open .nav-burger span:nth-child(2) {
        opacity: 0;
    }
    .menu-open .nav-burger span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .site-logo img {
        height: 30px;
    }
    .site-logo--crop img {
        width: 126px;
        height: 42px;
    }
    .search-form {
        flex: 1;
    }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: auto;
        max-height: calc(100vh - 52px);
        overflow-y: auto;
        background: var(--panel);
        flex-direction: column;
        align-items: stretch;
        box-shadow: 0 10px 20px rgba(0, 0, 0, .4);
    }
    .menu-open .main-nav {
        display: flex;
    }
    .nav-home {
        display: flex;
    }
    .nav-link {
        height: auto;
        padding: .8rem 1rem;
        color: var(--yellow);
        font-weight: 700;
        text-transform: uppercase;
        border-bottom: 1px solid #22385a;
    }
    .nav-dropdown {
        height: auto;
        border-bottom: 1px solid #22385a;
        padding-bottom: .6rem;
    }
    .nav-dropdown > .nav-link {
        border-bottom: 0;
    }
    .nav-dropdown > .nav-link::after {
        content: "LIHAT SEMUA \2192";
        border: 0;
        margin-left: auto;
        color: var(--accent-hover);
        font-size: .82rem;
    }
    .nav-menu,
    .nav-dropdown:hover .nav-menu {
        display: grid;
        position: static;
        min-width: 0;
        padding: 0 1rem;
        background: none;
        box-shadow: none;
        border-radius: 0;
        border-top: 0;
    }
    .nav-menu a {
        padding: .45rem 0;
        color: #dbe3ee;
        font-size: .95rem;
    }
    .nav-menu a:hover {
        background: none;
        color: var(--yellow);
    }
    body.menu-lock {
        overflow: hidden;
    }
    body.menu-lock .idlix-ads-container {
        display: none;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    :root {
        --card-w: 108px;
    }
    .site-logo img {
        height: 26px;
    }
    .site-logo--crop img {
        width: 105px;
        height: 35px;
    }
    .logo-text {
        font-size: 1rem;
        letter-spacing: .02em;
    }
    .search-form {
        height: 32px;
    }
    .search-form input {
        font-size: .9rem;
    }
    .subnav-inner {
        gap: .9rem;
    }
    .subnav a {
        font-size: .8rem;
        padding: .45rem 0;
    }
    .main-content {
        padding: 1rem 10px 1.5rem;
    }
    .container {
        padding: 0 10px;
    }
    .section-title {
        font-size: 1.1rem;
    }
    .btn-all {
        font-size: .75rem;
    }
    .row-next,
    .row-prev {
        display: none !important;
    }
    .card-title {
        font-size: .82rem;
    }
    .card-meta {
        font-size: .68rem;
    }
    .badge {
        font-size: .7rem;
    }
    .card-foot {
        font-size: .68rem;
        padding: 1.2rem .4rem .35rem;
    }
    .poster-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: .9rem .5rem;
    }
    .breadcrumb {
        font-size: 1rem;
    }
    .page-title {
        font-size: 1.1rem;
    }
    .list-intro {
        font-size: .85rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .idlix-ads-container {
        width: 100%;
        max-width: 100vw;
        left: 0;
        transform: none;
    }
}
@media (max-width: 480px) {
    .popup-grid {
        gap: .5rem;
    }
    .pagination-btn {
        min-width: 34px;
        padding: .45rem .55rem;
    }
}
