/* ========================================
   INFOFILM.FYI — STYLE.CSS (UNIFIED)
   Basis: desain baru (dark/cyan). Semua class dari style.css/home.css/
   section.css/detail.css lama dipertahankan, direstyle ke palet ini.
   ======================================== */

:root {
    --bg-base: #030712;
    --bg-card: #1f2937;
    --bg-card-2: #111827;
    --border: #1f2937;
    --border-2: #374151;
    --text-main: #f3f4f6;
    --text-sub: #9ca3af;
    --text-dim: #6b7280;
    --cyan: #22d3ee;
    --cyan-dark: #0891b2;
    --shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    background: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 40px;
    min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; height: auto; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; width: 100%; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }

/* ===== HEADER ===== */
.site-header {
    background: rgba(3, 7, 18, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}
.header-top {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    gap: 12px;
    position: relative;
}
.search-toggle-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-2);
    color: var(--text-sub);
    width: 42px; height: 42px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0; transition: all 0.2s;
}
.search-toggle-btn:hover, .search-toggle-btn[aria-expanded="true"] { background: var(--cyan-dark); color: #fff; border-color: var(--cyan-dark); }
.logo-link { display: flex; justify-content: center; flex: 1; min-width: 0; }
.site-logo { height: 68px; width: auto; max-width: 100%; object-fit: contain; }
.header-spacer { width: 42px; flex-shrink: 0; } /* nyeimbangin tombol search di kiri biar logo bener2 center */

.search-panel {
    max-width: 1280px;
    margin: 0 auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
}
.search-panel.is-open { max-height: 80px; padding: 0 20px 12px; }
.search-panel .search-form { max-width: none; }
.search-panel .search-input { max-width: 100%; width: 100%; }

/* ===== SKIP LINK (aksesibilitas) ===== */
.skip-link {
    position: absolute; top: -100px; left: 0; background: var(--cyan-dark); color: #fff;
    padding: 8px 16px; z-index: 2000; border-radius: 0 0 6px 0; transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ===== HAMBURGER + DRAWER SIDEBAR ===== */
.hamburger-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-2);
    color: var(--text-sub);
    width: 42px; height: 42px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0; transition: all 0.2s;
}
.hamburger-btn:hover, .hamburger-btn[aria-expanded="true"] { background: var(--cyan-dark); color: #fff; border-color: var(--cyan-dark); }

.drawer-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6);
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease;
    z-index: 1998;
}
.drawer-overlay.active { opacity: 1; visibility: visible; }

.drawer {
    position: fixed; top: 0; left: 0; bottom: 0; width: 280px; max-width: 85vw;
    background: var(--bg-card-2); border-right: 1px solid var(--border);
    z-index: 1999; transform: translateX(-100%); transition: transform 0.3s ease;
    display: flex; flex-direction: column; overflow-y: auto;
}
.drawer.open { transform: translateX(0); }

.drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1rem 1rem; border-bottom: 1px solid var(--border); }
.drawer-logo { height: 32px; width: auto; }
.drawer-tagline { font-size: 0.75rem; color: var(--text-dim); margin-top: 4px; }
.drawer-close { background: none; border: none; color: var(--text-sub); cursor: pointer; padding: 4px; display: flex; }
.drawer-close:hover { color: #fff; }

.drawer-search { padding: 1rem; border-bottom: 1px solid var(--border); }
.drawer-search-box { display: flex; align-items: center; background: var(--bg-card); border: 1px solid var(--border-2); border-radius: 8px; overflow: hidden; }
.drawer-search-box input { flex: 1; background: none; border: none; padding: 10px 12px; color: var(--text-main); font-size: 14px; outline: none; }
.drawer-search-box input::placeholder { color: var(--text-dim); }
.drawer-search-box button { background: none; border: none; color: var(--text-sub); padding: 0 12px; cursor: pointer; display: flex; align-items: center; }
.drawer-search-box button:hover { color: var(--cyan); }

.drawer-body { padding: 0.5rem 0 1.5rem; }
.drawer-section { padding: 0.75rem 0.5rem; }
.drawer-section-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); padding: 0 0.75rem; margin-bottom: 6px; }
.drawer-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 0.75rem; border-radius: 8px;
    color: var(--text-sub); font-size: 14px; transition: all 0.15s;
}
.drawer-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.drawer-item:hover { background: var(--bg-card); color: var(--text-main); }
.drawer-item.is-active { background: var(--cyan-dark); color: #fff; }

@media (min-width: 900px) {
    .drawer { width: 320px; }
}

.search-form { position: relative; display: flex; align-items: center; flex-grow: 1; max-width: 500px; justify-content: flex-end; }
.search-input {
    background: var(--bg-card);
    border: 1px solid var(--border-2);
    color: var(--text-main);
    padding: 10px 15px 10px 40px;
    border-radius: 24px;
    font-size: 14px;
    width: 100%;
    max-width: 300px;
    outline: none;
    transition: all 0.2s ease;
}
.search-input::placeholder { color: var(--text-dim); }
.search-input:focus { border-color: var(--cyan-dark); box-shadow: 0 0 0 3px rgba(8,145,178,0.2); max-width: 350px; }
.search-icon-btn { position: absolute; left: 12px; color: var(--text-sub); pointer-events: none; font-size: 20px; z-index: 1; }

.header-bottom { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.nav-scroller { display: flex; gap: 24px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; padding: 5px 0; -webkit-overflow-scrolling: touch; }
.nav-scroller::-webkit-scrollbar { display: none; }
.nav-link { display: inline-block; color: var(--text-sub); font-size: 14px; font-weight: 500; padding: 0 5px 12px 5px; border-bottom: 3px solid transparent; text-transform: capitalize; transition: all 0.2s; min-width: max-content; }
.nav-link:hover { color: var(--text-main); }
.nav-link.active { color: var(--cyan); border-bottom-color: var(--cyan); }

/* ===== FOOTER ===== */
.site-footer { border-top: 1px solid var(--border); margin-top: 60px; padding: 40px 20px; text-align: center; color: var(--text-dim); font-size: 14px; }
.footer-logo {
    height: 44px; width: auto; margin: 0 auto 24px; display: block;
    filter: grayscale(100%); opacity: 0.7; transition: all 0.25s ease;
}
.footer-logo:hover { filter: grayscale(0%); opacity: 1; }
.social-icons { margin-bottom: 25px; display: flex; justify-content: center; gap: 15px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-2); display: flex; align-items: center; justify-content: center; color: var(--text-sub); background: var(--bg-card-2); transition: all 0.2s; }
.icon-btn:hover { background: var(--cyan-dark); color: #fff; border-color: var(--cyan-dark); transform: translateY(-2px); }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin-bottom: 20px; }
.footer-links a { color: var(--text-sub); font-weight: 500; padding: 5px 10px; transition: color 0.2s; }
.footer-links a:hover { color: var(--cyan); }
.disclaimer { margin: 20px auto; max-width: 800px; font-size: 13px; color: var(--text-dim); line-height: 1.6; padding: 0 15px; }

.back-top {
    position: fixed; bottom: 25px; right: 25px; width: 50px; height: 50px;
    background: var(--cyan-dark); color: #fff; border-radius: 50%; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 999;
    box-shadow: 0 3px 12px rgba(8,145,178,0.4); font-size: 20px;
}
.back-top:hover { background: var(--cyan); transform: translateY(-2px); }
.back-top.show { opacity: 1; visibility: visible; }

/* ===== GLOBAL UTILITIES ===== */
.breadcrumb { font-size: 13px; color: var(--text-sub); margin: 20px 0 15px; display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.breadcrumb a { color: var(--text-sub); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--cyan); }
.page-h1 { font-size: 22px; color: var(--text-main); margin: 0 0 25px 0; font-weight: 700; border-left: 4px solid var(--cyan-dark); padding-left: 15px; }
.sec-title { font-size: 16px; font-weight: 700; margin-bottom: 15px; border-left: 4px solid var(--cyan-dark); padding-left: 10px; color: var(--text-main); text-transform: none; letter-spacing: normal; }

/* ===== HERO SECTION (home) ===== */
.hero-section { position: relative; width: 100%; height: 350px; background-size: cover; background-position: top; margin-bottom: 20px; border-radius: 0.75rem; overflow: hidden; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(3,7,18,0.60) 0%, rgba(3,7,18,0.35) 55%, rgba(3,7,18,0.05) 100%); display: flex; align-items: center; }
.hero-content { color: #fff; max-width: 600px; padding: 20px; }
.hero-badge { background: var(--cyan-dark); padding: 4px 10px; font-size: 11px; border-radius: 4px; font-weight: 700; letter-spacing: 1px; }
.hero-title { font-size: 30px; margin: 15px 0; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 2px 8px rgba(0,0,0,0.7); }
.hero-meta { font-size: 14px; color: var(--text-sub); margin-bottom: 15px; }
.hero-desc { font-size: 14px; color: #d1d5db; line-height: 1.6; margin-bottom: 25px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-btn { display: inline-block; padding: 12px 30px; background: var(--cyan-dark); color: #fff; border-radius: 30px; font-weight: 700; transition: 0.3s; box-shadow: 0 4px 15px rgba(8,145,178,0.4); }
.hero-btn:hover { background: var(--cyan); transform: scale(1.05); }

/* ===== CATEGORY NAV ===== */
.cat-nav-wrapper { margin-bottom: 20px; }
.cat-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 5px; white-space: nowrap; -webkit-overflow-scrolling: touch; }
.cat-btn { padding: 8px 16px; background: var(--bg-card); border-radius: 20px; color: var(--text-sub); font-size: 13px; font-weight: 500; transition: 0.2s; border: 1px solid var(--border-2); }
.cat-btn:hover, .cat-btn.active { background: var(--cyan-dark); color: #fff; border-color: var(--cyan-dark); }

/* ===== TRENDING (horizontal scroll) ===== */
.horizontal-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 15px; }
.h-card { position: relative; width: 130px; flex-shrink: 0; border-radius: 6px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.3); background: var(--bg-card-2); }
.h-card img { width: 100%; height: 190px; object-fit: cover; transition: 0.3s; }
.h-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 28px; opacity: 0; transition: 0.3s; }
.h-title { position: absolute; bottom: 0; left: 0; width: 100%; padding: 15px 5px 5px; background: linear-gradient(to top, rgba(0,0,0,0.75), transparent); color: #fff; font-size: 10px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0.9; z-index: 2; }
.h-card:hover .h-title { opacity: 1; background: linear-gradient(to top, rgba(8,145,178,0.75), transparent); }
.h-card:hover img { transform: scale(1.1); }
.h-card:hover .h-overlay { opacity: 1; }

/* ===== MOVIE GRID (listing) ===== */
.movie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 15px; margin-bottom: 20px; }
@media (min-width: 768px) { .movie-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; } }
.movie-card { background: var(--bg-card); border-radius: 10px; overflow: hidden; border: 1px solid var(--border); transition: all 0.25s ease; display: block; }
.movie-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.4); border-color: var(--cyan-dark); }
.movie-card .poster-wrap { position: relative; padding-top: 145%; background: var(--bg-card-2); }
.movie-card .poster-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Badge di pojok atas poster: year kiri, quality kanan */
.year-badge, .quality-badge {
    position: absolute; top: 6px; z-index: 2;
    padding: 2px 6px; font-size: 10px; font-weight: 700; border-radius: 4px;
    line-height: 1.4;
}
.year-badge { left: 6px; background: rgba(0,0,0,0.85); color: #fff; }
.quality-badge { right: 6px; background: var(--cyan-dark); color: #fff; }

.card-info { padding: 10px; }
.movie-title { font-size: 12px; font-weight: 500; color: var(--text-main); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 31px; }

/* ===== BLOG / REKOMENDASI ===== */
.blog-section { margin-top: 50px; border-top: 1px solid var(--border); padding-top: 20px; }
.blog-list { display: flex; flex-direction: column; gap: 15px; }
.blog-card { display: flex; background: var(--bg-card-2); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; padding: 12px; transition: 0.2s; }
.blog-card:hover { border-color: var(--cyan-dark); transform: translateX(5px); }
.bc-thumb { width: 100px; height: 140px; flex-shrink: 0; background: var(--bg-card); border-radius: 4px; overflow: hidden; }
.bc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bc-info { flex: 1; padding-left: 15px; display: flex; flex-direction: column; justify-content: center; }
.bc-title { font-size: 15px; font-weight: 700; margin-bottom: 5px; color: var(--text-main); line-height: 1.3; }
.bc-meta { font-size: 12px; color: var(--text-dim); margin-bottom: 8px; }
.bc-desc { font-size: 13px; color: var(--text-sub); line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }

/* ===== PAGINATION ===== */
.pagination { margin: 30px 0; text-align: center; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.page-btn { padding: 8px 14px; background: var(--bg-card); border: 1px solid var(--border-2); color: var(--text-sub); border-radius: 6px; font-size: 14px; transition: 0.2s; }
.page-btn:hover { background: var(--border-2); color: #fff; }
.page-btn.active { background: var(--cyan-dark); color: #fff; border-color: var(--cyan-dark); pointer-events: none; }

/* ===== RELATED FILMS (detail page, list-style) ===== */
.related-list { display: flex; flex-direction: column; gap: 12px; }
.related-item { display: flex; background: var(--bg-card-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px; transition: all 0.2s; }
.related-item:hover { border-color: var(--cyan-dark); transform: translateY(-2px); }
.ri-thumb { width: 100px; height: 140px; flex-shrink: 0; background: var(--bg-card); border-radius: 4px; overflow: hidden; }
.ri-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ri-info { flex: 1; padding-left: 15px; display: flex; flex-direction: column; justify-content: center; }
.ri-title { font-size: 14px; font-weight: 700; color: var(--text-main); margin-bottom: 4px; line-height: 1.3; }
.ri-year { font-size: 12px; color: var(--cyan); font-weight: 500; }

/* Base badge (dipakai bareng badge-cyan/badge-red dari desain baru) */
.badge { font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.6rem; border-radius: 0.25rem; }
.badge-red { background: #dc2626; color: #fff; }
.badge-cyan { background: var(--cyan-dark); color: #fff; }

/* ===== DETAIL PAGE (dari desain baru) ===== */
.detail-layout { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .detail-layout { grid-template-columns: 300px 1fr; gap: 2.5rem; } }
@media (min-width: 1280px) { .detail-layout { grid-template-columns: 320px 1fr; gap: 3rem; } }

.detail-poster-box { position: relative; aspect-ratio: 2 / 3; border-radius: 0.75rem; overflow: hidden; border: 1px solid var(--border); background: var(--bg-card-2); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); }
.detail-poster-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.detail-poster-box:hover img { transform: scale(1.05); }
.poster-gradient { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85), transparent 60%); opacity: 0; transition: opacity 0.3s; }
.detail-poster-box:hover .poster-gradient { opacity: 1; }
.poster-badges { position: absolute; top: 0.75rem; left: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; }
.poster-play-hover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; cursor: pointer; }
.detail-poster-box:hover .poster-play-hover { opacity: 1; }
.play-icon-lg { background: rgba(6, 182, 212, 0.9); padding: 1rem; border-radius: 50%; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3); transition: transform 0.2s; }
.play-icon-lg:hover { transform: scale(1.1); }
.play-icon-lg svg { width: 2rem; height: 2rem; color: #fff; margin-left: 0.25rem; }

.btn-group { display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin-top: 1rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem; border-radius: 0.5rem; font-weight: 600; font-size: 0.875rem; border: none; cursor: pointer; transition: all 0.2s; }
.btn svg { width: 1.25rem; height: 1.25rem; }
.btn-cyan { background: var(--cyan-dark); color: #fff; box-shadow: 0 10px 15px -3px rgba(8,145,178,0.25); }
.btn-cyan:hover { background: var(--cyan); }

.stats-mobile { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; margin-top: 1rem; }
@media (min-width: 1024px) { .stats-mobile { display: none; } }
.stat-card-m { background: var(--bg-card-2); border: 1px solid var(--border); border-radius: 0.5rem; padding: 0.75rem; text-align: center; }
.stat-val-m { font-size: 1.125rem; font-weight: 700; }
.stat-cyan { color: var(--cyan); }
.stat-yellow { color: #facc15; }
.stat-label-m { font-size: 0.75rem; color: var(--text-dim); margin-top: 0.25rem; }

.detail-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; }
.detail-h1 { font-size: 1.5rem; font-weight: 700; color: #fff; line-height: 1.25; }
@media (min-width: 768px) { .detail-h1 { font-size: 2rem; } }

.meta-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; font-size: 0.875rem; color: var(--text-sub); margin-bottom: 1rem; }
.meta-item { display: flex; align-items: center; gap: 0.25rem; }
.meta-dot { color: var(--border-2); }

.stats-desktop { display: none; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; }
@media (min-width: 1024px) { .stats-desktop { display: flex; } }
.stat-row { display: flex; align-items: center; gap: 0.375rem; font-size: 0.875rem; color: #d1d5db; }
.stat-row svg { width: 1.25rem; height: 1.25rem; }
.icon-cyan { color: var(--cyan-dark); }

.btn-share {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 1rem;
    background: none; border: 1px solid var(--border-2); color: var(--text-sub);
    padding: 8px 16px; border-radius: 50px; font-size: 13px; font-weight: 500;
    cursor: pointer; transition: all 0.2s;
}
.btn-share:hover { border-color: var(--cyan-dark); color: var(--cyan); }
.btn-share svg { flex-shrink: 0; }

.box { background: rgba(17, 24, 39, 0.5); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1.25rem; }
.box-title { font-size: 0.875rem; font-weight: 600; color: var(--text-sub); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.box-text { color: #d1d5db; line-height: 1.625; font-size: 0.9375rem; }
.hashtag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.hashtag-item { font-size: 11px; color: var(--text-dim); }

.player-sec { display: none; padding-top: 1rem; }
.player-sec.is-active { display: block; animation: playerReveal 0.45s ease forwards; }
@keyframes playerReveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.player-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.pulse-dot { width: 0.5rem; height: 0.5rem; background: #ef4444; border-radius: 50%; animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.player-wrap { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 0.75rem; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); }
.player-iframe { width: 100%; height: 100%; border: 0; }

.player-loading {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--bg-card-2); gap: 0.75rem; transition: opacity 0.25s ease; z-index: 2;
}
.player-loading.is-hidden { opacity: 0; pointer-events: none; }
.player-loading p { color: var(--text-sub); font-size: 0.875rem; }
.spinner-cyan {
    width: 42px; height: 42px; border-radius: 50%;
    border: 4px solid rgba(34, 211, 238, 0.2);
    border-top-color: var(--cyan);
    animation: spin-cyan 0.8s linear infinite;
}
@keyframes spin-cyan { to { transform: rotate(360deg); } }

.player-empty {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--bg-card-2); gap: 0.5rem; text-align: center; padding: 1rem;
}
.player-empty p { color: var(--text-dim); font-size: 0.875rem; }
.player-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--bg-card-2); cursor: pointer; }
.player-placeholder:hover { background: #0f172a; }
.player-ph-icon { background: rgba(8, 145, 178, 0.15); padding: 1rem; border-radius: 50%; margin-bottom: 0.75rem; }
.player-ph-icon svg { width: 2.5rem; height: 2.5rem; color: var(--cyan); }
.player-ph-text { color: var(--text-sub); font-size: 0.875rem; }

.server-control-area { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-server { background: var(--bg-card); border: 1px solid var(--border-2); color: var(--text-sub); padding: 8px 16px; border-radius: 50px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.btn-server:hover { border-color: var(--cyan-dark); color: var(--cyan); }
.btn-server.active { background: var(--cyan-dark); color: #fff; border-color: var(--cyan-dark); }

.space-y-6 > * + * { margin-top: 1.5rem; }
.text-gray { color: var(--text-dim); }
.text-sm { font-size: 0.875rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .header-top { padding: 12px 15px; }
    .site-logo { height: 52px; }
}
@media (max-width: 600px) {
    .header-top { padding: 10px 15px; gap: 15px; }
    .search-input { width: 160px; max-width: 160px; padding: 8px 15px 8px 35px; font-size: 13px; }
    .search-input:focus { width: 180px; max-width: 180px; }
    .nav-scroller { gap: 18px; padding: 0 10px; margin: 0 -10px; }
    .hero-section { height: 280px; }
    .hero-title { font-size: 22px; }
    .hero-desc { display: -webkit-box; -webkit-line-clamp: 1; font-size: 12px; margin-bottom: 15px; }
    .hero-content { padding: 15px; }

    /* Grid 3 kolom fixed ala LK21/streaming site, bukan auto-fill (yg bisa jadi 2 kolom doang di HP) */
    .movie-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .card-info { padding: 8px 10px; }
    .movie-title { font-size: 13px; height: auto; -webkit-line-clamp: 2; }
    .year-badge, .quality-badge { font-size: 11px; padding: 3px 8px; top: 6px; }
    .year-badge { left: 6px; }
    .quality-badge { right: 6px; }

    .h-card { width: 105px; }
    .h-card img { height: 155px; }

    .blog-card { padding: 8px; }
    .bc-thumb { width: 75px; height: 105px; }
    .bc-title { font-size: 13px; }
    .bc-desc { -webkit-line-clamp: 2; }
}
@media (max-width: 380px) {
    .site-logo { height: 46px; }
    .movie-grid { gap: 6px; }
    .card-info { padding: 6px 8px; }
    .movie-title { font-size: 12px; height: auto; }
    .site-footer { padding: 30px 15px; }
}
