/* =========================================
   CSS - SKYX STREAMING RAW NEO-BRUTALISM
========================================= */

:root {
    --bg-color: #fcefe7; /* Krem pastel */
    --card-bg: #e2e8f0;  /* Abu-abu kebiruan */
    --primary: #ff5e6c;  /* Pink */
    --secondary: #00d2ff; /* Cyan/Biru muda */
    --tertiary: #d4ff00; /* Kuning stabilo */
    --border-color: #000000; /* Garis hitam */
    --border-width: 3px;
    --border-radius: 12px; 
    --shadow-color: #000000; 
    
    /* SVG Noise Tekstur (Grain) */
    --noise-overlay: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E");
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    
    /* GRID TEGAS + TEKSTUR NOISE/GRAIN */
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.12) 2px, transparent 2px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.12) 2px, transparent 2px),
        var(--noise-overlay);
    background-size: 30px 30px, 30px 30px, 150px 150px;
    background-position: -2px -2px, -2px -2px, 0 0;
    
    color: #000000;
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
    padding-top: 80px !important;
    padding-bottom: 90px; 
}

/* =========================================
   TYPOGRAPHY (HEADINGS & ACCENTS)
========================================= */
h1, h2, .section-header h2, .modal-title, .logo-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-family: 'JetBrains Mono', monospace;
}

/* =========================================
   HEADER & NAVBAR
========================================= */
.navbar {
    display: flex;
    flex-direction: row; 
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background-color: var(--card-bg); 
    background-image: var(--noise-overlay);
    border-bottom: var(--border-width) solid var(--border-color);
    box-shadow: 0px 4px 0px var(--shadow-color);
    
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 999999999 !important; 
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #000; 
    white-space: nowrap;
}

.logo-icon {
    background: var(--primary);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--border-color);
    box-shadow: 2px 2px 0px var(--shadow-color);
    overflow: hidden;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.search-container {
    display: flex;
    gap: 8px;
    flex: 1; 
    max-width: 400px;
}

#searchInput {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: var(--border-width) solid var(--border-color);
    background: var(--card-bg);
    color: #000;
    font-family: 'Space Grotesk', inherit;
    font-weight: bold;
    font-size: 14px;
    border-radius: 8px;
}

#searchInput:focus {
    outline: none;
    background: #ffffff; 
    box-shadow: inset 2px 2px 0px rgba(0,0,0,0.1);
}

/* =========================================
   BOTTOM NAVIGATION
========================================= */
.bottom-nav {
    position: fixed;
    bottom: 15px;
    left: 15px;
    right: 15px;
    background-color: var(--card-bg);
    background-image: var(--noise-overlay);
    border: var(--border-width) solid var(--border-color);
    box-shadow: 4px 4px 0px var(--shadow-color);
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 5px;
    z-index: 1000;
}

.nav-item {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    text-decoration: none;
    font-weight: 900;
    width: 100%;
    border: 2px solid transparent;
    padding: 8px 2px;
    border-radius: 8px;
}

.nav-item.active-nav, .nav-item:active, .nav-item:focus {
    background: var(--primary);
    color: #000;
    border-color: var(--border-color);
}

.nav-text {
    font-family: 'JetBrains Mono', monospace; 
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =========================================
   BUTTONS
========================================= */
button {
    font-family: inherit;
    margin-right: 4px;
    margin-bottom: 4px;
    border-radius: 8px; 
}

#searchBtn, .btn-primary, .btn-secondary, .btn-more, .btn-close {
    padding: 10px 16px;
    font-weight: 900;
    font-size: 14px;
    border: var(--border-width) solid var(--border-color);
    background: var(--primary);
    background-image: var(--noise-overlay);
    color: #000;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 4px 4px 0px var(--shadow-color); 
    transition: transform 0.1s, box-shadow 0.1s;
}

.btn-secondary { background: var(--tertiary); }
.btn-close { background: #ff3333; color: #fff; }
.btn-more { background: var(--secondary); }

button:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px transparent;
}

/* =========================================
   HERO SECTION (SPOTLIGHT)
========================================= */
.hero-section {
    padding: 30px 20px;
    margin: 20px;
    width: calc(100% - 40px);
    border: var(--border-width) solid var(--border-color);
    background-color: #222; 
    background-image: var(--noise-overlay);
    box-shadow: 6px 6px 0px var(--shadow-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
    height: 300px; 
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff; 
}

.hero-section:active {
    transform: translate(6px, 6px);
    box-shadow: 0px 0px 0px transparent;
}

.hero-badge {
    display: inline-block;
    background: var(--primary);
    color: #000;
    padding: 6px 12px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    border: var(--border-width) solid var(--border-color);
    margin-bottom: 10px;
    border-radius: 20px; 
}

.hero-section h1 {
    font-size: 2.2rem;
    text-transform: uppercase;
    margin-bottom: 5px;
    line-height: 1.1;
    text-shadow: 3px 3px 0px #000; 
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-info {
    margin-bottom: 20px;
    font-size: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 0px #000;
}

/* =========================================
   FEED SECTIONS & MOVIE GRID
========================================= */
.feed-section {
    margin: 40px 20px;
    scroll-margin-top: 90px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 4px dotted var(--border-color); 
    padding-bottom: 10px;
}

.section-header h2 {
    font-size: 1.5rem;
    color: #000;
    text-transform: uppercase;
    font-weight: 900;
}

.movie-grid {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 20px;
    padding-top: 5px;
    -webkit-overflow-scrolling: touch;
    align-items: stretch;
}

.movie-grid::-webkit-scrollbar { height: 10px; }
.movie-grid::-webkit-scrollbar-track {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
}
.movie-grid::-webkit-scrollbar-thumb {
    background: var(--primary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
}

.movie-grid.view-all-mode {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: hidden;
    padding-bottom: 30px;
}
.movie-grid.view-all-mode .movie-card {
    flex: 0 0 calc(50% - 15px);
    max-width: 180px;
}

/* =========================================
   MOVIE CARDS
========================================= */
.movie-card {
    flex: 0 0 150px;
    background: var(--card-bg);
    background-image: var(--noise-overlay); 
    border: var(--border-width) solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 4px 0px var(--shadow-color);
    color: #000;
    overflow: hidden; 
    margin-bottom: 4px;
    margin-right: 4px;
    transition: transform 0.1s, box-shadow 0.1s;
}

.movie-card:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px transparent;
}

.movie-poster-container {
    position: relative;
    width: 100%;
    height: 220px;
    border-bottom: var(--border-width) solid var(--border-color);
    flex-shrink: 0;
}

.movie-poster-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-color: #eee;
}

.movie-type-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #000;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 6px;
    padding: 4px 8px;
    font-family: 'JetBrains Mono', monospace; 
    font-size: 0.65rem;
    font-weight: 800;
}

.movie-rating-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--tertiary);
    color: #000;
    border: 2px solid #000;
    border-radius: 6px;
    padding: 4px 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 800;
}

.movie-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
}

.movie-year {
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 800;
}

.movie-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 900;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.2;
}
/* =========================================
   GENERAL BOX (Search & Accordion)
========================================= */
.neo-brutal-box {
    background-color: var(--card-bg);
    background-image: var(--noise-overlay); 
    border: var(--border-width) solid var(--border-color);
    box-shadow: 6px 6px 0px var(--shadow-color);
    border-radius: var(--border-radius);
    margin: 20px;  /* TAMBAHAN BARU: Jarak luar */
    padding: 15px; /* TAMBAHAN BARU: Jarak dalam biar gak gepeng */
}

.accordion-box { padding: 0; }

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: transparent;
    color: #000;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: none;
    margin: 0;
}

.accordion-content {
    padding: 0 15px 15px 15px;
    border-top: 3px dashed var(--border-color);
    margin-top: 5px;
    padding-top: 15px;
}

.server-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-server {
    padding: 8px 14px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    font-size: 0.75rem;
    background: #ffffff; 
    color: #000;
    border: var(--border-width) solid var(--border-color);
    cursor: pointer;
    text-transform: uppercase;
    margin: 0;
    box-shadow: 2px 2px 0px var(--shadow-color);
    border-radius: 20px; 
}

.btn-server:hover { background: #eee; }
.btn-server.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 4px 4px 0px var(--shadow-color);
    transform: translate(-2px, -2px);
}

/* =========================================
   PLAYER SECTION (player.html)
========================================= */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 65%; /* Estetik 16:9 dilebarkan biar tombol ga kepotong */
    min-height: 280px; 
    background: #000;
}

.video-wrapper iframe, .video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
}

.tips-list {
    list-style-type: none;
    font-size: 0.85rem;
    color: #333;
}

.tips-list li {
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.tips-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 1rem;
    font-weight: bold;
}

.server-title {
    color: #000;
    font-weight: 900;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.detail-section {
    margin: 20px;
    padding: 20px;
    background: var(--card-bg);
    border: var(--border-width) solid var(--border-color);
    box-shadow: 4px 4px 0px var(--border-color);
}

.detail-section h1 {
    font-size: 1.5rem;
    color: #000;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.movie-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    align-items: center;
    font-weight: 900;
    font-size: 0.85rem;
}

.badge {
    background: var(--primary);
    color: #000;
    padding: 4px 8px;
    border: 2px solid #000;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
}

.movie-desc {
    color: #000;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* =========================================
   MODAL / POP-UP PEMBERITAHUAN
========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px); 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.modal-box {
    background-color: var(--card-bg);
    background-image: var(--noise-overlay);
    max-width: 450px;
    width: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 25px;
}

.modal-title {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 900;
    border-bottom: 4px solid #000;
    padding-bottom: 10px;
}

.modal-text {
    font-size: 1rem;
    color: #000;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 25px;
}

.modal-overlay.hidden { display: none !important; }

.btn-wa {
    display: block;
    text-align: center;
    background: #25D366;
    background-image: var(--noise-overlay);
    color: #000;
    padding: 12px;
    font-weight: 900;
    text-decoration: none;
    border: var(--border-width) solid var(--border-color);
    box-shadow: 4px 4px 0px var(--shadow-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    border-radius: 8px;
}

.btn-wa:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px transparent;
}

.btn-close:disabled {
    background: #ccc;
    color: #666;
    border-color: #999;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* =========================================
   UTILITIES & FOOTER
========================================= */
.hidden { display: none !important; }

.loading-state {
    padding: 20px;
    font-weight: bold;
    color: var(--primary);
    text-transform: uppercase;
}

.footer {
    text-align: center;
    padding: 20px;
    border-top: var(--border-width) solid var(--border-color);
    margin-top: 10px;
    margin-bottom: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    font-size: 0.8rem;
    color: #000;
    background-color: var(--card-bg); 
    background-image: var(--noise-overlay);
}

/* =========================================
   PENYESUAIAN KHUSUS DESKTOP (PC/Tablet)
========================================= */
@media (min-width: 768px) {
    .bottom-nav {
        position: static;
        flex-direction: row;
        border: none;
        box-shadow: none;
        background: transparent;
        padding: 0;
        justify-content: flex-start;
        gap: 15px;
    }
    .nav-item {
        flex-direction: row;
        width: auto;
        padding: 8px 16px;
        border: 2px solid transparent;
    }
    body { padding-bottom: 0; }
}

/* =========================================
   PENANGANAN IKLAN MONETAG IN-PAGE PUSH
========================================= */
body > div:not(#home):not(#player-container):not(.modal-overlay):not(.bottom-nav),
iframe[src*="nap5k"],
iframe[src*="monetag"],
div[class*="monetag"], 
div[id*="monetag"], 
div[class*="ipp"], 
div[id*="ipp"] {
    margin-top: 65px !important;
    max-width: 90% !important;
    left: 0 !important;
    right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    z-index: 9999 !important; 
}
