:root {
    --bg-color: #141414;
    --primary-red: #E50914;
    --text-main: #FFFFFF;
    --text-muted: #B3B3B3;
    --text-dark: #333333;
    --nav-bg: rgba(20, 20, 20, 0.95);
    --hover-bg: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

::selection {
    background: var(--primary-red);
    color: var(--text-main);
}

.hidden {
    display: none !important;
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Password Gate --- */
#password-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

#password-gate.fade-out {
    opacity: 0;
    pointer-events: none;
}

.lock-container {
    text-align: center;
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.lock-container .logo {
    color: var(--primary-red);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 3rem;
    margin-top: -5rem;
}

#lock-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#pin-input {
    background: #333;
    border: 2px solid #555;
    border-radius: 4px;
    color: var(--text-main);
    font-size: 1.5rem;
    padding: 1rem;
    text-align: center;
    letter-spacing: 8px;
    outline: none;
    transition: border-color 0.3s;
}

#pin-input:focus {
    border-color: var(--primary-red);
    background: #444;
}

#pin-input.error {
    border-color: var(--primary-red);
}

.btn-unlock {
    background-color: var(--primary-red);
    color: var(--text-main);
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-unlock:hover {
    background-color: #f40612;
}

#hint-toggle {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
}

#hint-toggle:hover {
    text-decoration: underline;
    color: var(--text-main);
}

#hint-popup {
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-main);
    animation: fadeIn 0.3s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}
.shake { 
    animation: shake 0.5s ease-in-out; 
}

/* --- Navbar --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 10%, transparent);
    transition: background-color 0.4s ease;
}

header.scrolled {
    background-color: var(--nav-bg);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.logo {
    color: var(--primary-red);
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 1px;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-muted);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.nav-btn:hover {
    color: var(--text-muted);
}

/* ============================================
   HERO SLIDER STYLES
   ============================================ */

.hero-container {
    position: relative;
    height: 85vh;
    min-height: 600px;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 4%;
    overflow: hidden;
}

/* Slider: stacked fullscreen slides */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    transform: scale(1.05);
    transition: opacity 1.2s ease-in-out, transform 6s ease-out;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

/* Arrow buttons */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.45);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s, background 0.2s;
}

.hero-container:hover .hero-arrow {
    opacity: 1;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.75);
}

.hero-arrow-left  { left: 16px; }
.hero-arrow-right { right: 16px; }

/* Dot indicators */
.hero-dots {
    position: absolute;
    bottom: 110px;
    right: 48px;
    display: flex;
    gap: 8px;
    z-index: 10;
    align-items: center;
}

.hero-dot {
    width: 10px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.35s ease;
}

.hero-dot.active {
    width: 24px;
    background: var(--primary-red);
}

/* Progress bar */
.hero-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--primary-red);
    z-index: 20;
    transition: width 0.12s linear;
}

/* ============================================
   END HERO SLIDER STYLES
   ============================================ */

.hero-vignette-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg-color) 0%, transparent 60%);
    z-index: -1;
}

.hero-vignette-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, rgba(20,20,20,0.9) 0%, transparent 100%);
    z-index: -1;
}

.hero-content {
    max-width: 600px;
    z-index: 10;
    margin-top: 50px;
}

.n-series {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.n-logo {
    color: var(--primary-red);
    font-size: 1.5rem;
    font-weight: 800;
}

.series-text {
    letter-spacing: 0.3rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
}

.movie-title {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.45);
    margin-bottom: 1rem;
}

.top-10 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.45);
}

.top-10-badge {
    background: var(--primary-red);
    color: var(--text-main);
    padding: 2px 5px;
    font-size: 0.7rem;
    text-align: center;
    line-height: 1;
    font-weight: 900;
    border-radius: 2px;
}

.hero-desc {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.5;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.45);
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s, background-color 0.2s;
}

.btn:hover {
    transform: scale(1.05);
}

.btn-play {
    background-color: var(--text-main);
    color: var(--bg-color);
}

.btn-play:hover {
    background-color: rgba(255, 255, 255, 0.75);
}

.btn-more {
    background-color: rgba(109, 109, 110, 0.7);
    color: var(--text-main);
}

.btn-more:hover {
    background-color: rgba(109, 109, 110, 0.4);
}


/* Rows & Carousels */
.row-container {
    padding: 3rem 4%;
    position: relative;
    z-index: 5;
}

.row-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-muted);
    transition: color 0.3s;
}

.row-container:hover .row-title {
    color: var(--text-main);
}

.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.slider {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 40px 0;
    margin: -40px 0;
    scrollbar-width: none;
}

.slider::-webkit-scrollbar {
    display: none;
}

.card {
    flex: 0 0 250px;
    height: 140px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0.3s ease;
    position: relative;
    z-index: 1;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s;
}

.card:hover {
    transform: scale(1.2);
    box-shadow: 0 10px 20px rgba(0,0,0,0.8);
    z-index: 10;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: var(--text-main);
    border: none;
    height: calc(100% - 80px);
    width: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.3s, background 0.3s;
}

.slider-wrapper:hover .slider-arrow {
    opacity: 1;
}

.slider-arrow:hover {
    background: rgba(0,0,0,0.7);
}

.left-arrow { left: -4%; }
.right-arrow { right: -4%; }

/* Special Features (3D) */
.special-feature-wrapper {
    display: flex;
    gap: 2rem;
    background: #181818;
    padding: 2rem;
    border-radius: 8px;
    align-items: center;
    border: 1px solid #333;
}

.feature-info {
    flex: 1;
}

.feature-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-info p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1rem;
}

.feature-interactive {
    flex: 1;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    cursor: grab;
    background: radial-gradient(circle, #2a2a2a 0%, #111 100%);
}

.feature-interactive:active {
    cursor: grabbing;
}

/* Playlist Section */
.playlist-section {
    background: linear-gradient(to top, rgba(229,9,20,0.1), transparent);
}

.playlist-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.mood-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.mood-btn {
    background: transparent;
    border: 2px solid var(--text-muted);
    color: var(--text-main);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.mood-btn:hover, .mood-btn.active {
    border-color: var(--text-main);
    background: var(--text-main);
    color: var(--bg-color);
}

.playlist-result {
    background: #181818;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #333;
}

.playlist-result.hidden {
    display: none;
}

#playlist-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-red);
}

#playlist-list {
    list-style: none;
}

#playlist-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

#playlist-list li:before {
    content: '▶';
    font-size: 0.8rem;
    color: var(--text-main);
}

/* Wishes Section */
.wishes-wrapper {
    display: flex;
    gap: 2rem;
}

.wish-form-container {
    flex: 0 0 350px;
    background: #181818;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #333;
}

.wish-form-container h3 {
    margin-bottom: 1.5rem;
}

#wish-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#wish-form input, #wish-form textarea {
    padding: 1rem;
    background: #333;
    border: none;
    border-radius: 4px;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
}

#wish-form input:focus, #wish-form textarea:focus {
    background: #444;
}

#wish-form textarea {
    height: 120px;
    resize: none;
}

.wish-board {
    flex: 1;
    background: #111;
    border-radius: 8px;
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.sticker {
    position: absolute;
    background: #000;
    padding: 1.2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-red);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    max-width: 250px;
    z-index: 5;
    transition: transform 0.2s, z-index 0.2s;
    cursor: grab;
    animation: fadeIn 0.5s ease;
}

.sticker:hover {
    transform: scale(1.05) !important;
    z-index: 20;
    background: #111;
}

.sticker:active {
    cursor: grabbing;
}

.sticker-name {
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.sticker-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.netflix-modal {
    background: #181818;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal:not(.hidden) .netflix-modal {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    color: var(--text-main);
    cursor: pointer;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transition: transform 0.2s;
}

.close-btn:hover {
    transform: scale(1.1);
}

.modal-video-placeholder {
    background: #000;
    line-height: 0;
}

.modal-video-placeholder::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, #181818, transparent);
}

.play-icon-large {
    font-size: 5rem;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    z-index: 2;
    transition: transform 0.2s, color 0.2s;
}

.play-icon-large:hover {
    transform: scale(1.1);
    color: var(--text-main);
}

.modal-details {
    padding: 2rem 3rem;
}

.modal-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.modal-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.match { color: #46d369; font-weight: 700; }
.hd { border: 1px solid var(--text-muted); padding: 0 4px; border-radius: 3px; font-size: 0.8rem; }

.modal-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-main);
}

.cast {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    background: #000;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .movie-title { font-size: 3rem; }
    .hero-desc { font-size: 1rem; }
    .wishes-wrapper, .special-feature-wrapper { flex-direction: column; }
    .wish-form-container { flex: none; width: 100%; }
    .slider { gap: 5px; }
    .card { flex: 0 0 180px; height: 100px; }
    .slider-arrow { display: none; }
    .hero-vignette-left { width: 100%; }
    .hero-arrow { display: flex; opacity: 0.7; width: 36px; height: 36px; font-size: 18px; }
    .hero-dots { bottom: 80px; right: 16px; }
}

/* ========== GALERI KENANGAN STYLES ========== */
.galeri-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 3rem 2rem 3rem;
    gap: 12px;
}

.galeri-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #b0b0b0;
    border-left: 4px solid #E50914;
    padding-left: 14px;
}

.row-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 180px;
}

.row-track-clip {
    flex: 1;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    cursor: grab;
}

.row-track {
    display: inline-flex;
    gap: 4px;
    padding: 8px 0 12px 0;
}

.grid-card {
    flex: 0 0 280px;
    width: 280px;
    height: 158px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    filter: grayscale(70%) brightness(0.7);
    transition: all 0.3s ease;
}

.grid-card:hover {
    filter: grayscale(0%) brightness(1.05);
    transform: scale(1.22);
    z-index: 55;
}

.grid-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.row-btn {
    position: absolute;
    top: 50%;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    width: 44px;
    height: 70%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.25s;
    border-radius: 8px;
}

.row-wrapper:hover .row-btn { opacity: 0.9; }
.btn-left { left: 4px; }
.btn-right { right: 4px; }

.scroll-hint {
    text-align: right;
    font-size: 0.7rem;
    color: #6c6c6c;
    margin-bottom: 12px;
}

.extra-page-section {
    border-top: 1px solid rgba(229,9,20,0.3);
    padding-top: 12px;
    margin-top: 4px;
}

@media (max-width: 900px) {
    .grid-card { flex: 0 0 240px; width: 240px; height: 135px; }
    .row-btn { width: 32px; }
}