/* ==========================================================================
   LOVEFLIX STYLE SYSTEM (Vanilla CSS)
   ========================================================================== */

/* 1. Reset and Variables */
:root {
    --bg-dark: #141414;
    --bg-darker: #0b0b0b;
    --text-white: #ffffff;
    --text-gray: #e5e5e5;
    --text-muted: #a3a3a3;
    --netflix-red: #e50914;
    --netflix-red-hover: #b20710;
    --card-bg: #181818;
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-cursive: 'Great Vibes', cursive;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 4px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 2. Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: #5a090d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--netflix-red);
}

/* Helper Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   3. "WHO IS WATCHING?" SCREEN
   ========================================================================== */
.profile-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.profile-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.profile-container {
    text-align: center;
    max-width: 90%;
    width: 600px;
}

.profile-title {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 2.5rem;
    letter-spacing: 0.5px;
    color: var(--text-white);
    animation: fadeInDown 0.8s ease;
}

.profile-list {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    animation: scaleIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.profile-avatar-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1rem;
    border: 3px solid transparent;
    transition: var(--transition-smooth);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.profile-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

/* Profile Hover states */
.profile-card:hover .profile-avatar-wrapper {
    border-color: var(--text-white);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
}

.profile-card:hover .profile-img {
    transform: scale(1.08);
}

.profile-card:hover .profile-name {
    color: var(--text-white);
}

.profile-name {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 400;
    transition: var(--transition-smooth);
}

.profile-manage-btn {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--text-muted);
    padding: 0.6rem 1.8rem;
    font-size: 1rem;
    letter-spacing: 2px;
    cursor: pointer;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    outline: none;
}

.profile-manage-btn:hover {
    border-color: var(--text-white);
    color: var(--text-white);
}

/* Profile Zoom effect on select */
.profile-card.selected .profile-avatar-wrapper {
    animation: profileZoom 0.9s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards;
}

/* ==========================================================================
   4. NAVIGATION HEADER
   ========================================================================== */
.main-content {
    opacity: 0;
    transition: opacity 1s ease-in;
}

.main-content.fade-in {
    opacity: 1;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 68px;
    padding: 0 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    background-color: rgba(20, 20, 20, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.header-left, .header-right {
    display: flex;
    align-items: center;
}

.logo {
    color: var(--netflix-red);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    margin-right: 2.5rem;
    user-select: none;
}

.nav-menu {
    display: flex;
    gap: 1.2rem;
}

.nav-item {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-weight: 400;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-white);
}

.header-right {
    gap: 1.5rem;
}

.icon-svg {
    width: 24px;
    height: 24px;
    cursor: pointer;
    color: var(--text-white);
    transition: var(--transition-smooth);
}

.icon-svg:hover {
    transform: scale(1.1);
}

.notification-bell {
    position: relative;
    cursor: pointer;
}

.bell-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--netflix-red);
    color: var(--text-white);
    font-size: 0.65rem;
    font-weight: bold;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius);
    cursor: pointer;
    object-fit: cover;
}

/* ==========================================================================
   5. BILLBOARD HERO BANNER
   ========================================================================== */
.hero-banner {
    position: relative;
    height: 85vh;
    min-height: 550px;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 0 4%;
    margin-bottom: 2rem;
}

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

.hero-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.netflix-n {
    color: var(--netflix-red);
    font-weight: 900;
    font-size: 1.6rem;
    font-family: Arial, sans-serif;
    letter-spacing: -2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-badge-text {
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: var(--text-muted);
    font-weight: 700;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.6);
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.match-score {
    color: #46d369;
    font-weight: 600;
}

.maturity-rating {
    border: 1px solid var(--text-muted);
    padding: 0.1rem 0.4rem;
    font-size: 0.75rem;
    border-radius: 2px;
}

.hd-badge {
    border: 1px solid var(--text-muted);
    padding: 0.1rem 0.3rem;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 2px;
    letter-spacing: 0.5px;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--text-gray);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.7rem 2rem;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-icon {
    width: 24px;
    height: 24px;
}

.btn-play {
    background-color: var(--text-white);
    color: black;
}

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

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

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

/* Ambient Streaming Music HUD */
.music-hud {
    position: absolute;
    right: 4%;
    bottom: 8%;
    background-color: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 320px;
    padding: 1.2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    z-index: 20;
    animation: fadeInRight 0.8s ease;
}

.hud-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.hud-music-info {
    display: flex;
    flex-direction: column;
}

.hud-now-playing {
    font-size: 0.65rem;
    color: var(--netflix-red);
    letter-spacing: 1px;
    font-weight: 700;
}

.hud-track-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}

.hud-controls {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.hud-btn {
    background: transparent;
    border: none;
    color: var(--text-white);
    cursor: pointer;
    outline: none;
    transition: var(--transition-smooth);
}

.hud-btn:hover {
    color: var(--netflix-red);
    transform: scale(1.15);
}

.hud-icon {
    width: 28px;
    height: 28px;
}

.hud-icon-small {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.hud-volume-container {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hud-volume-slider {
    width: 60px;
    height: 3px;
    -webkit-appearance: none;
    background: #555;
    outline: none;
    border-radius: 2px;
}

.hud-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--netflix-red);
    cursor: pointer;
}

.hud-progress-container {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.hud-progress-bar {
    flex-grow: 1;
    height: 3px;
    -webkit-appearance: none;
    background: #333;
    outline: none;
    border-radius: 2px;
    cursor: pointer;
}

.hud-progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--netflix-red);
    cursor: pointer;
}

.hud-upload-container {
    margin-top: 0.5rem;
    text-align: center;
}

.hud-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 2px;
    width: 100%;
    justify-content: center;
    transition: var(--transition-smooth);
}

.hud-upload-label:hover {
    border-color: var(--netflix-red);
    color: var(--text-white);
}

.hero-vignette {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15vh;
    background: linear-gradient(to top, var(--bg-dark), rgba(20,20,20,0));
    z-index: 2;
    pointer-events: none;
}

/* ==========================================================================
   6. ROW 1: "TRENDING NOW" - KENCAN CARD ROW
   ========================================================================== */
.movie-row-section {
    padding: 0 4%;
    margin-bottom: 4rem;
    position: relative;
    z-index: 5;
}

.row-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.row-container {
    position: relative;
    display: flex;
    align-items: center;
}

.movie-row {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1.5rem 0; /* Extra space to accommodate hovered expanded card scale */
    scrollbar-width: none; /* Firefox scrollbar remove */
}

.movie-row::-webkit-scrollbar {
    display: none; /* Chrome/Safari scrollbar remove */
}

.row-nav-btn {
    position: absolute;
    height: calc(100% - 3rem);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: var(--text-white);
    z-index: 10;
    cursor: pointer;
    width: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
    opacity: 0;
}

.row-container:hover .row-nav-btn {
    opacity: 1;
}

.row-nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.85);
    transform: scaleY(1.05);
}

.prev-btn {
    left: -4%;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.next-btn {
    right: -4%;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.nav-arrow {
    width: 32px;
    height: 32px;
}

/* Netflix Style Zoom Card Hover */
.movie-card {
    flex: 0 0 calc(25% - 0.4rem); /* 4 cards per viewport row */
    min-width: 250px;
    aspect-ratio: 16 / 9;
    position: relative;
    border-radius: var(--border-radius);
    overflow: visible; /* Crucial for overflow content of hovered scale card */
    background-color: var(--card-bg);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card-img-placeholder {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Custom couple images for row 1 cards */
.g-kencan-1 {
    background-image: url('assets/kencan1.png');
}

.g-kencan-2 {
    background-image: url('assets/kencan2.png');
}

.g-kencan-3 {
    background-image: url('assets/kencan3.png');
}

.g-kencan-4 {
    background-image: url('assets/kencan4.png');
}

.card-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    background-color: rgba(0, 0, 0, 0.6);
    padding: 0.2rem 0.6rem;
    border-radius: var(--border-radius);
    letter-spacing: 0.5px;
}

.card-hover-info {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--card-bg);
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
    padding: 1.2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    opacity: 0;
    visibility: hidden;
    transform: scaleY(0);
    transform-origin: top;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 100;
}

/* Hover expansion animation */
.movie-card:hover {
    transform: translateY(-50px) scale(1.18);
    z-index: 100;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7);
}

.movie-card:hover .card-img-placeholder {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.movie-card:hover .card-hover-info {
    opacity: 1;
    visibility: visible;
    transform: scaleY(1);
}

.hover-controls {
    display: flex;
    gap: 0.5rem;
}

.hover-circle-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    background-color: rgba(40, 40, 40, 0.7);
    color: var(--text-white);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.hover-circle-btn:hover {
    border-color: var(--text-white);
    background-color: rgba(60, 60, 60, 0.9);
    transform: scale(1.1);
}

.hover-circle-btn.play {
    background-color: var(--text-white);
    color: black;
    border-color: var(--text-white);
}

.hover-circle-btn.play:hover {
    background-color: var(--netflix-red);
    color: var(--text-white);
    border-color: var(--netflix-red);
}

.hover-icon {
    width: 16px;
    height: 16px;
}

.hover-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
}

.card-rating {
    border: 1px solid var(--text-muted);
    padding: 0.05rem 0.2rem;
    font-size: 0.65rem;
    border-radius: 1px;
}

.hover-categories {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-white);
}

.hover-synopsis {
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   7. ROW 2: "KARENA KAMU SUKA MANJA" - INTERACTIVE QUIZ
   ========================================================================== */
.interactive-quiz-section {
    padding: 0 4%;
    margin-bottom: 4rem;
}

.quiz-container {
    background-color: #121212;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.quiz-badge {
    background-color: rgba(229, 9, 20, 0.15);
    color: var(--netflix-red);
    padding: 0.6rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(229, 9, 20, 0.2);
}

.badge-icon {
    width: 16px;
    height: 16px;
}

.quiz-main-card {
    padding: 2rem;
}

.quiz-content-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.quiz-visual {
    position: relative;
    aspect-ratio: 16 / 10;
    background-color: var(--bg-darker);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.quiz-visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 50%);
    z-index: 2;
    pointer-events: none;
}

.quiz-scene-number {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--netflix-red);
    color: var(--text-white);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.25rem 0.6rem;
    border-radius: 2px;
    z-index: 5;
    letter-spacing: 1px;
}

.quiz-scene-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: filter 0.5s ease;
}

.quiz-text-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-question {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.25;
}

.quiz-description {
    font-size: 1.05rem;
    line-height: 1.45;
    color: var(--text-gray);
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.quiz-opt-btn {
    background-color: rgba(51, 51, 51, 0.6);
    color: var(--text-white);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quiz-opt-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--text-white);
    padding-left: 1.8rem;
}

.quiz-opt-btn.selected {
    background-color: var(--netflix-red);
    border-color: var(--netflix-red);
    color: var(--text-white);
}

.opt-arrow {
    width: 20px;
    height: 20px;
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.quiz-opt-btn:hover .opt-arrow {
    opacity: 1;
    transform: translateX(4px);
}

.quiz-feedback {
    background-color: rgba(40, 40, 40, 0.8);
    border-left: 4px solid #46d369;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 0.5rem;
    animation: slideInUp 0.4s ease;
}

.feedback-badge {
    font-size: 0.7rem;
    font-weight: 800;
    color: #46d369;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
    display: block;
}

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

/* ==========================================================================
   8. SECTION: EPISODE LIST & SEASONS DROPDOWN
   ========================================================================== */
.episodes-section {
    padding: 0 4%;
    margin-bottom: 4rem;
}

.episodes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.2rem;
    margin-bottom: 2rem;
}

.episodes-header .row-title {
    margin-bottom: 0;
}

/* Netflix Style Dropdown */
.season-dropdown-wrapper {
    position: relative;
    z-index: 50;
}

.season-btn {
    background-color: var(--bg-darker);
    color: var(--text-white);
    border: 1px solid var(--text-muted);
    padding: 0.6rem 1.4rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition-smooth);
}

.season-btn:hover {
    background-color: rgba(255,255,255,0.05);
    border-color: var(--text-white);
}

.dropdown-caret {
    width: 20px;
    height: 20px;
    color: var(--text-white);
    transition: transform 0.3s ease;
}

.season-dropdown-wrapper.open .dropdown-caret {
    transform: rotate(180deg);
}

.season-menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background-color: #181818;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius);
    list-style: none;
    width: 230px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.8);
    overflow: hidden;
    animation: fadeInDown 0.2s ease;
}

.season-option {
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.season-option:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
}

.season-option.active {
    color: var(--text-white);
    font-weight: 600;
    border-left: 3px solid var(--netflix-red);
    background-color: rgba(229, 9, 20, 0.05);
}

/* Episode row item list */
.episodes-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.episode-item {
    display: grid;
    grid-template-columns: 40px 180px 1fr;
    gap: 1.5rem;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.episode-item:hover {
    background-color: rgba(255, 255, 255, 0.02);
    padding-left: 0.8rem;
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.ep-num {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
}

.ep-thumbnail-container {
    position: relative;
    width: 180px;
    aspect-ratio: 16 / 9;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--bg-darker);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ep-thumb-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ep-thumb-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.2) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.ep-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--text-white);
    color: var(--text-white);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.ep-thumbnail-container:hover .ep-play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.ep-play-icon {
    width: 22px;
    height: 22px;
    margin-left: 2px;
}

.ep-details {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ep-title-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ep-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-white);
}

.ep-duration {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.ep-synopsis {
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--text-muted);
}

/* ==========================================================================
   9. VIRTUAL CAKE & CANDLE BLOWING SECTION
   ========================================================================== */
.cake-section {
    padding: 4rem 4%;
    background-color: #0e0e0e;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 4rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0.5rem auto 3rem;
}

.cake-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.cake-interactive {
    position: relative;
    width: 320px;
    height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.candle-container {
    position: absolute;
    bottom: 170px;
    width: 200px;
    display: flex;
    justify-content: space-around;
    z-index: 10;
}

/* ==========================================================================
   9. NETFLIX FEATURED CARD (MATCHING USER SCREENSHOT)
   ========================================================================== */
.netflix-featured-section {
    padding: 4rem 4%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-dark);
}

.featured-movie-card {
    position: relative;
    width: 100%;
    max-width: 820px;
    background-color: #181818;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-bg-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(2px) brightness(0.35);
}

.card-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15,15,15,0.96) 0%, rgba(15,15,15,0.85) 50%, rgba(15,15,15,0.55) 100%);
}

.card-inner-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 2.2rem;
    padding: 2.2rem 2.4rem;
}

.card-poster-wrapper {
    flex-shrink: 0;
    width: 160px;
    height: 220px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.card-info-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.featured-movie-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.featured-meta-badges {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    font-weight: 700;
}

.star-rating {
    background: rgba(255, 255, 255, 0.1);
    color: #ffc107;
    padding: 0.3rem 0.7rem;
    border-radius: 7px;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.meta-season {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
    padding: 0.3rem 0.7rem;
    border-radius: 7px;
}

.meta-trending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffd54f;
    padding: 0.3rem 0.8rem;
    border-radius: 7px;
    border: 1px solid rgba(255, 213, 79, 0.4);
}

.featured-synopsis {
    font-size: 0.98rem;
    color: #cccccc;
    line-height: 1.55;
    margin-bottom: 1.6rem;
    max-width: 500px;
}

.btn-watch-now {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    background-color: var(--netflix-red);
    color: var(--text-white);
    border: none;
    padding: 0.85rem 1.9rem;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-watch-now:hover {
    background-color: #f6121d;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.btn-watch-now:active {
    transform: translateY(0);
}

.watch-icon {
    width: 22px;
    height: 22px;
}

/* ==========================================================================
   10. NETFLIX SPECIAL PLAYER MODAL (POPUP)
   ========================================================================== */
.letter-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 1.5rem;
    animation: fadeInModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@keyframes fadeInModal {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.letter-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1;
}

.netflix-player-card {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    background-color: #141414;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    overflow-y: auto;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95);
    z-index: 2;
    transform: scale(1);
    animation: scaleUpModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

@keyframes scaleUpModal {
    0% { transform: scale(0.92); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.player-top-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-close-btn {
    position: static;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.player-close-btn:hover {
    background: var(--netflix-red);
    border-color: var(--netflix-red);
    transform: scale(1.1);
}

.close-icon {
    width: 18px;
    height: 18px;
}

.player-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background-color: #1c1c1c;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.player-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.player-series-title {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-gray);
}

.player-badge-hd {
    font-size: 0.65rem;
    font-weight: 700;
    border: 1px solid var(--text-gray);
    color: var(--text-gray);
    padding: 0.1rem 0.4rem;
    border-radius: 2px;
}

.player-display {
    padding: 2.5rem 2rem;
    background: linear-gradient(to bottom, rgba(20,20,20,0.95) 0%, rgba(15,15,15,0.98) 100%);
}

.player-meta-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
}

.player-meta-info .match-score {
    color: #46d369;
    font-weight: 700;
}

.player-meta-info .rating, .player-meta-info .duration {
    color: var(--text-gray);
}

.player-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.letter-content {
    min-height: 220px;
    margin-bottom: 2rem;
}

.letter-paragraph {
    font-size: 1.1rem;
    line-height: 1.85;
    color: #e5e5e5;
    white-space: pre-wrap;
    font-family: var(--font-primary);
}

.letter-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.2rem;
}

.letter-sign {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

.letter-sender {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--netflix-red);
    margin-top: 0.2rem;
}

.player-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background-color: #181818;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.control-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-control-btn {
    background: none;
    border: none;
    color: var(--text-white);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.ctrl-icon {
    width: 20px;
    height: 20px;
}

.control-time {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.ctrl-tag {
    font-size: 0.7rem;
    color: var(--netflix-red);
    font-weight: 700;
    letter-spacing: 1px;
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.main-footer-copyright {
    padding: 4rem 4% 2.5rem;
    background-color: var(--bg-darker);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links {
    display: flex;
    gap: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links span {
    cursor: pointer;
    transition: var(--transition-smooth);
}

.footer-links span:hover {
    color: var(--text-white);
    text-decoration: underline;
}

.footer-copyright-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* ==========================================================================
   12. ANIMATIONS
   ========================================================================== */
@keyframes flicker {
    0% { transform: scale(1) rotate(-1deg); }
    20% { transform: scale(1.05) rotate(1deg); }
    40% { transform: scale(0.95) rotate(-0.5deg); }
    60% { transform: scale(1.1) rotate(1.5deg); }
    80% { transform: scale(0.9) rotate(-1deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.7);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes profileZoom {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 35px rgba(229, 9, 20, 0.4);
        border-color: var(--netflix-red);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(229, 9, 20, 0.1);
        border-color: transparent;
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==========================================================================
   13. RESPONSIVE DESIGN (MOBILE-FRIENDLY)
   ========================================================================== */
@media screen and (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .movie-card {
        flex: 0 0 calc(33.333% - 0.4rem); /* 3 cards per view */
    }
    
    .quiz-content-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .quiz-visual {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .profile-title {
        font-size: 1.5rem;
    }
    
    .profile-avatar-wrapper {
        width: 110px;
        height: 110px;
    }
    
    .main-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        padding: 0.6rem 4%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        background: transparent;
        box-shadow: none;
        z-index: 1000;
    }

    .main-header.scrolled {
        background-color: rgba(20, 20, 20, 0.98);
        box-shadow: 0 4px 15px rgba(0,0,0,0.6);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .header-left {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
        margin-bottom: 0;
    }
    
    .logo {
        font-size: 1.4rem;
        margin-right: 0;
    }
    
    .nav-menu {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        gap: 0.8rem;
        padding: 0.3rem 0;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }
    
    .nav-menu::-webkit-scrollbar {
        display: none;
    }
    
    .nav-item {
        font-size: 0.82rem;
        padding: 0.2rem 0.4rem;
        flex-shrink: 0;
    }
    
    .header-right {
        position: absolute;
        top: 0.6rem;
        right: 4%;
        display: flex;
        align-items: center;
        gap: 0.7rem;
    }
    
    .hero-banner {
        height: auto;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: flex-start;
        padding: 105px 5% 2rem 5%;
        background-position: center 20%;
    }
    
    .hero-info-container {
        width: 100%;
        max-width: 100%;
        margin-top: 0;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 0.6rem;
    }
    
    .hero-meta {
        flex-wrap: wrap;
        gap: 0.4rem 0.6rem;
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .hero-description {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1.2rem;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.6rem;
        margin-bottom: 1.2rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .music-hud {
        position: relative;
        left: 0;
        right: 0;
        bottom: 0;
        top: 0;
        width: 100%;
        max-width: 100%;
        margin-top: 0.5rem;
        padding: 1rem;
        box-shadow: 0 4px 15px rgba(0,0,0,0.6);
        border-color: rgba(255, 255, 255, 0.15);
    }
    
    .movie-card {
        flex: 0 0 75%;
        min-width: 200px;
    }

    .row-nav-btn {
        display: none;
    }
    
    .episodes-section {
        padding: 0 4%;
        margin-bottom: 3rem;
    }

    .episodes-header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        gap: 0.8rem;
        padding-bottom: 1rem;
        margin-bottom: 1.2rem;
    }

    .season-dropdown-wrapper {
        margin-left: auto;
        flex-shrink: 0;
    }

    .episode-item {
        grid-template-columns: 24px 120px 1fr;
        gap: 0.8rem;
        padding-bottom: 1rem;
        align-items: center;
    }
    
    .ep-num {
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--text-muted);
        text-align: center;
    }
    
    .ep-thumbnail-container {
        width: 100%;
        max-width: 120px;
        height: auto;
        aspect-ratio: 16 / 9;
        border-radius: 6px;
    }
    
    .ep-play-overlay {
        opacity: 0.85;
        transform: translate(-50%, -50%) scale(0.85);
    }
    
    .ep-details {
        text-align: left;
    }

    .ep-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15rem;
    }

    .ep-title {
        font-size: 0.95rem;
        font-weight: 600;
        line-height: 1.25;
    }
    
    .ep-duration {
        font-size: 0.78rem;
        color: var(--text-muted);
        font-weight: 500;
    }

    .ep-synopsis {
        font-size: 0.8rem;
        line-height: 1.4;
        color: var(--text-muted);
        display: block;
        overflow: visible;
        white-space: normal;
        margin-top: 0.15rem;
    }
    
    .card-inner-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 1.5rem 1.2rem;
        gap: 1.2rem;
    }

    .card-poster-wrapper {
        width: 150px;
        height: 200px;
    }

    .card-info-side {
        align-items: center;
    }

    .featured-movie-title {
        font-size: 1.4rem;
    }

    .featured-synopsis {
        text-align: center;
    }

    .letter-container {
        padding: 2rem 1.2rem;
        width: 100%;
        border-radius: 16px;
    }
    
    .letter-header {
        font-size: 1.4rem;
    }
    
    .letter-paragraph {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .letter-sender {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 480px) {
    .movie-card {
        flex: 0 0 85%;
    }

    .my-list-grid {
        grid-template-columns: 1fr;
    }
    
    .episodes-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .episodes-header .row-title {
        font-size: 1.15rem;
        white-space: nowrap;
    }
    
    .season-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
        gap: 0.5rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .season-menu {
        width: 190px;
        right: 0;
    }
    
    .episode-item {
        grid-template-columns: 20px 105px 1fr;
        gap: 0.65rem;
        padding-bottom: 0.85rem;
        align-items: flex-start;
        text-align: left;
    }
    
    .episode-item:hover {
        padding-left: 0;
    }
    
    .ep-num {
        font-size: 1rem;
        text-align: center;
        border-bottom: none;
        padding-bottom: 0;
        align-self: center;
    }
    
    .ep-thumbnail-container {
        width: 100%;
        max-width: 105px;
        margin: 0;
        border-radius: 4px;
    }
    
    .ep-title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .ep-synopsis {
        font-size: 0.78rem;
        line-height: 1.35;
        display: block;
        overflow: visible;
        white-space: normal;
    }
}

/* ==========================================================================
   NETFLIX STYLE DETAILS MODAL
   ========================================================================== */
.details-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.details-modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 750px;
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    z-index: 10;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.details-modal.open .modal-content {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #181818;
    border: none;
    color: var(--text-white);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 20;
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    background-color: #333;
    transform: scale(1.1);
}

.modal-close-icon {
    width: 20px;
    height: 20px;
}

.modal-hero {
    height: 320px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 2.5rem;
}

.modal-hero-info {
    z-index: 5;
    max-width: 80%;
}

.modal-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.modal-controls {
    display: flex;
    gap: 1rem;
}

.modal-vignette {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, var(--card-bg) 0%, rgba(24, 24, 24, 0) 100%);
    pointer-events: none;
}

.modal-body {
    padding: 2rem 2.5rem 3rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    background-color: var(--card-bg);
}

.modal-body-left {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.modal-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
}

.modal-description {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-gray);
}

.modal-body-right {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    font-size: 0.95rem;
}

.modal-info-label {
    line-height: 1.4;
    color: var(--text-gray);
}

.modal-info-label span {
    color: var(--text-muted);
}

@media screen and (max-width: 768px) {
    .modal-hero {
        height: 220px;
        padding: 1.5rem;
    }
    .modal-title {
        font-size: 1.8rem;
    }
    .modal-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    .modal-content {
        max-width: 95%;
    }
}

/* ==========================================================================
   MY LIST: FAVORITE THINGS ABOUT YOU (3D FLIP CARDS)
   ========================================================================== */
.my-list-section {
    padding: 2rem 4% 4rem;
    background-color: var(--bg-dark);
}

.my-list-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.list-card {
    background-color: transparent;
    aspect-ratio: 16 / 10;
    perspective: 1000px;
    cursor: pointer;
    min-height: 180px;
}

.list-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.list-card:hover .list-card-inner, .list-card.flipped .list-card-inner {
    transform: rotateY(180deg);
}

.list-card-front, .list-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.list-card-front {
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Use inset box-shadow instead of standard border to prevent subpixel rounded corner bleed */
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.list-card-front::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: -1px; /* Extend slightly below the bottom edge to cover subpixel clipping issues */
    /* Start at 100% solid pitch black at the bottom to fully cover bright image areas */
    background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.85) 15%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.card-title-overlay {
    position: relative;
    z-index: 2;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    padding: 1.2rem;
    text-align: left;
    width: 100%;
    text-shadow: 1px 2px 4px rgba(0,0,0,0.8);
}

.list-card-back {
    background-color: #1e1e1e;
    color: var(--text-white);
    transform: rotateY(180deg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    border: 1.5px solid var(--netflix-red);
    text-align: left;
    box-shadow: 0 10px 25px rgba(229, 9, 20, 0.15);
}

.list-badge {
    background-color: var(--netflix-red);
    color: var(--text-white);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.list-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 0.5rem;
    color: var(--text-white);
}

.list-card-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-gray);
    margin-top: 0.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-card-meta {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    padding-top: 0.6rem;
    margin-top: 0.6rem;
}

/* Custom background images for My List front sides */
.g-favorit-1 { background-image: url('assets/fav1.png'); }
.g-favorit-2 { background-image: url('assets/fav2.png'); }
.g-favorit-3 { background-image: url('assets/fav3.png'); }
.g-favorit-4 { background-image: url('assets/fav4.png'); }

/* Responsive adjustments for My List */
@media screen and (max-width: 1024px) {
    .my-list-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
}

@media screen and (max-width: 480px) {
    .my-list-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .list-card {
        min-height: 160px;
    }
}
