/* ===================================================== */
/* 1. FILTER & SEARCH BOX STYLES */
/* ===================================================== */
.filter-search-box {
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.filters-box {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.filters {
    position: relative;
    background: #222;
    color: #fff;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 150px;
    box-sizing: border-box;
}

.filters i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.filters i.fa-angle-up {
    transform: rotate(180deg);
}

.filters .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #111;
    color: #fff;
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0;
    border-radius: 4px;
    display: none;
    z-index: 999;
    box-shadow: 0 5px 10px rgba(0,0,0,0.4);
    box-sizing: border-box;
}

.filters .dropdown li {
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.filters .dropdown li:hover {
    background: #333;
}

.search-filters {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 300px;
    margin-bottom: 15px;
    background: #222;
    border-radius: 4px;
    padding: 5px 10px;
    box-sizing: border-box;
}

.search-filters input {
    border: none;
    outline: none;
    background: transparent;
    color: #fff;
    flex: 1;
    padding: 5px;
    font-size: 14px;
    min-width: 0;
}

.search-filters i {
    color: #fff;
    margin-left: 8px;
}

/* ===================================================== */
/* 2. PLAYER & SOUNDTRACK STYLES */
/* ===================================================== */
#playlist-ui::-webkit-scrollbar { width: 6px; }
#playlist-ui::-webkit-scrollbar-thumb { background: #444; border-radius: 10px; }

.soundtrack-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #555;
}

.soundtrack-placeholder i {
    font-size: 80px;
    display: block;
    margin-bottom: 15px;
    color: #222;
}

.coming-soon-track {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
    border-bottom: 1px solid #1a1a1a;
}

.soundtrack-item {
    padding: 18px 20px;
    border-bottom: 1px solid #1a1a1a;
    cursor: pointer;
    transition: 0.2s ease-in-out;
    display: flex;
    align-items: center;
    color: #999;
}

.soundtrack-item:hover {
    background: #151515;
    color: #fff;
}

.soundtrack-item.active-track {
    background: #111;
    color: #ff0000;
    border-left: 4px solid #ff0000;
}

.track-title {
    font-size: 14px;
    font-weight: 500;
    margin-left: 12px;
}

.player-controls-container {
    background: #0a0a0a;
    padding: 15px 20px;
    border-bottom: 1px solid #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.playback-controls button {
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    margin-right: 20px;
    cursor: pointer;
    transition: 0.2s;
}

.playback-controls button:hover { color: #ff0000; }

.toggle-group { display: flex; gap: 20px; }
.toggle-item { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 1px; color: #555; }

.dallada-switch { position: relative; width: 36px; height: 18px; }
.dallada-switch input { opacity: 0; width: 0; height: 0; }
.dallada-slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #222; transition: .4s; border-radius: 20px;
}
.dallada-slider:before {
    position: absolute; content: ""; height: 12px; width: 12px; left: 3px; bottom: 3px;
    background-color: #999; transition: .4s; border-radius: 50%;
}
input:checked + .dallada-slider { background-color: #444; }
input:checked + .dallada-slider:before { background-color: #ff0000; transform: translateX(18px); }

/* ===================================================== */
/* 3. REVIEWS & CARDS */
/* ===================================================== */
#details-cast-crew, #details-starring {
    animation: fadeIn 1.2s ease-in-out;
}

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

.critic-review-card {
    background: #0a0a0a;
    border-left: 3px solid #28a745;
    border-radius: 4px;
    padding: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.7);
    margin-bottom: 2rem;
}

.critic-name {
    font-weight: 800;
    letter-spacing: 1.5px;
    font-size: 1.1rem;
    color: #ffffff;
    text-transform: uppercase;
}

.critic-label {
    color: #aaa;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.verified-badge-text {
    color: #28a745;
    font-size: 0.7rem;
    font-weight: 700;
}

.rating-number {
    font-size: 1.6rem; 
    color: #ffffff; 
    font-weight: 900;
    font-family: 'Arial Black', sans-serif;
}

.member-review-item {
    padding: 1.8rem 0;
    border-bottom: 1px solid #1a1a1a;
}

.tier-badge {
    font-size: 0.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 2px 8px;
    border-radius: 2px;
    margin-right: 10px;
    background: rgba(255, 255, 255, 0.05);
}

.member-affiliation {
    color: #444;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* ===================================================== */
/* 4. VIBE SELECTOR & MODAL (PREMIUM CINEMATIC) */
/* ===================================================== */
#vibe-dropdown-wrapper {
    position: relative;
    width: 100%;
}

#vibe-marker-list {
    display: none;
    position: absolute;
    width: 100%;
    z-index: 1000;
    max-height: 250px;
    overflow-y: scroll; 
    background: #0d0d0d;
    border: 1px solid #333;
    padding: 0;
    margin: 5px 0 0 0;
    list-style: none;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    box-sizing: border-box;
}

#vibe-marker-list li {
    padding: 14px 16px;
    border-bottom: 1px solid #1a1a1a;
    color: #ccc;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

#vibe-marker-list li:hover { background: #1a1a1a; color: #fff; }

#vibe-marker-list::-webkit-scrollbar { width: 6px; }
#vibe-marker-list::-webkit-scrollbar-thumb { background: #444; border-radius: 10px; }
#vibe-marker-list::-webkit-scrollbar-thumb:hover { background: #ff0000; }

.modal { z-index: 1050 !important; }
.modal-backdrop { z-index: 1040 !important; }

#vibeModal .modal-dialog {
    max-width: 440px;
    display: flex;
    align-items: center;
    min-height: calc(100% - 3.5rem);
}

#vibeModal .modal-content {
    background: radial-gradient(circle at top, #181818, #050505);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    box-shadow: 0 40px 90px rgba(0,0,0,0.9);
    overflow: hidden;
    width: 100%;
}

#vibeModal .modal-header {
    border: none;
    padding: 22px 24px 8px;
    text-align: center;
    display: block;
}

#vibeModal .modal-title {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.4px;
    color: #fff;
}

#vibeModal .close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: auto;
    height: auto;
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 1.4rem;
    cursor: pointer;
}

#vibeModal .modal-body {
    padding: 10px 26px 28px;
}

#vibe-modal-instructions {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    text-align: center;
    line-height: 1.5;
    margin: 10px 0 24px;
}

#vibe-modal-instructions b { color: #fff; font-weight: 800; }

#emoji-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    box-sizing: border-box;
}

.vibe-emoji-choice {
    background: linear-gradient(180deg, #1c1c1c, #0c0c0c);
    border-radius: 16px;
    padding: 22px 0;
    font-size: 3.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 10px 22px rgba(0,0,0,0.7);
    transition: transform 0.18s cubic-bezier(.2,.8,.2,1), box-shadow 0.18s ease, background 0.18s ease;
}

.vibe-emoji-choice:hover {
    transform: translateY(-6px) scale(1.1);
    background: linear-gradient(180deg, #222, #111);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15), 0 20px 45px rgba(0,0,0,0.95);
}

.vibe-emoji-choice:active {
    transform: translateY(-4px) scale(1.05);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15), 0 15px 35px rgba(0,0,0,0.85);
}

/* ===================================================== */
/* 5. UNIVERSAL MOBILE RESPONSIVE FIXES */
/* ===================================================== */
@media (max-width: 768px) {
    .filters-box {
        flex-direction: column;
        gap: 10px;
    }
    .filters, .filters .dropdown {
        min-width: 100%;
    }
    .search-filters {
        max-width: 100%;
    }
    .player-controls-container {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    #vibeModal .modal-dialog {
        max-width: 90%; /* Tighten slightly to ensure centering */
        margin: 1rem auto;
    }
    #vibeModal .modal-body {
        padding: 10px 14px 28px; /* Reduce horizontal padding to maximize space */
    }
    #emoji-grid {
        /* CRITICAL FIX: Switches to 3 columns on tiny screens to prevent emoji cut-off */
        grid-template-columns: repeat(3, 1fr); 
        gap: 12px; 
    }
    .vibe-emoji-choice {
        font-size: 2.6rem; /* Scaled to look perfect in 3-column layout */
        padding: 16px 0;
        border-radius: 12px;
    }
    #vibe-modal-instructions {
        font-size: 0.85rem;
        margin-bottom: 18px;
    }
}

/* landscape/Short Screen Fix */
@media (max-height: 600px) {
    #vibeModal .modal-dialog { margin: 0.5rem auto; }
    .vibe-emoji-choice { padding: 10px 0; }
}


/* 1. Add this to the TOP of index.css to ensure the header doesn't cut off the menu */
header {
    overflow: visible !important;
    position: relative;
    z-index: 10; /* Lower than the dropdown, higher than the background */
}

/* 2. Force the dropdown container to stay on top */
#news-dropdown-container {
    position: relative;
    z-index: 99999 !important;
}

/* 3. The most important part: The Dropdown Menu fix */
.dropdown-menu {
    position: absolute !important;
    z-index: 1000000 !important;
    background: #000 !important;
    /* This ensures it stays on top of the next section (#111 section) */
    visibility: visible !important;
    display: none; /* Controlled by your JS/Bootstrap toggle */
}

/* 4. Fix the section below (the "Membership Portal") */
/* We need to ensure this section sits UNDER the header's dropdowns */
.movie-ticket-book {
    position: relative;
    z-index: 1 !important; /* Keep it low so the dropdown overlaps it */
    background: #111 !important;
    border: 1px solid #222;
    /* ... rest of your existing styles ... */
}