/* ============================================================
   MALZ-FLIX - STYLE.CSS
   ============================================================ */

/* ----- RESET & BASE ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #121414;
    color: #e3e2e2;
    -webkit-font-smoothing: antialiased;
    min-height: 100dvh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

/* ----- SCROLLBAR ----- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #1f2020;
}
::-webkit-scrollbar-thumb {
    background: #444748;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #636565;
}

/* ----- GLASSMORPHISM ----- */
.glass-panel {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

/* ----- MOVIE CARD ----- */
.movie-card-glow:hover {
    box-shadow: 0 10px 25px -5px rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ----- HIDE SCROLLBAR ----- */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ----- MATERIAL ICONS ----- */
.material-symbols-outlined {
    font-variation-settings: 'WHTS' 100;
}

/* ----- ROOT ----- */
:root {
    --radius-xl: 24px;
    --radius-lg: 16px;
}

/* ----- USER GREETING ----- */
#userGreeting {
    transition: all 0.3s ease;
}
#userGreeting:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

/* ----- TOMBOL PLAY ----- */
.btn-play {
    background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    color: #000;
    font-weight: 800;
    padding: 16px 48px;
    border-radius: 60px;
    font-size: 18px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}
.btn-play:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.25);
}

/* ----- ADBLOCK ----- */
[class*="google_ads"],
[class*="adsbygoogle"],
[id*="google_ads"],
[id*="adsbygoogle"],
.ad-container,
.ad-banner,
.ad-wrapper,
.ad-slot,
.ad-unit,
iframe[src*="doubleclick"],
iframe[src*="googleads"],
iframe[src*="googlesyndication"],
iframe[src*="adservice"],
iframe[src*="adserver"],
iframe[src*="adsystem"],
[class*="ad_"],
[id*="ad_"],
[class*="ads_"],
[id*="ads_"],
[data-ad],
[data-ad-client],
[data-ad-slot],
[data-ad-unit],
.advertisement,
.advertising,
.advert,
.sponsored,
.banner-ad,
.banner_ads,
.banner-ads,
iframe[src*="popup"],
iframe[src*="popunder"],
script[src*="googleads"],
script[src*="googlesyndication"] {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
}
*:has(> [class*="ad-"]),
*:has(> [id*="ad-"]) {
    display: none !important;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 768px) {
    #userGreeting {
        top: 80px;
        right: 10px;
        max-width: 200px;
        padding: 12px 16px;
    }
    #userGreeting .text-sm {
        font-size: 12px;
    }
    .btn-play {
        padding: 14px 28px;
        font-size: 15px;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .movie-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}

/* ----- LOADING ----- */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.3);
}
.loading-spinner::before {
    content: '';
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}