* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --netflix-red: #E50914;
    --dark-bg: #141414;
    --secondary-bg: #221f1f;
    --text-color: #ffffff;
    --text-secondary: #808080;
    --border-color: #404040;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 100%);
    padding: 16px 50px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
    background: rgba(0,0,0,0.98);
    padding: 10px 50px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--netflix-red);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    flex-shrink: 0;
    transition: font-size 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.logo:hover {
    transform: scale(1.05);
}

.logo i {
    font-size: 28px;
    transition: font-size 0.3s ease;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--netflix-red);
    background: rgba(229, 9, 20, 0.1);
}

/* Dropdown Menu */
.nav-item-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.98);
    min-width: 300px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 10px;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

.dropdown-menu a:hover {
    background-color: var(--secondary-bg);
    color: var(--netflix-red);
    border: 1px solid var(--netflix-red);
}

.dropdown-menu a i {
    width: 14px;
    text-align: center;
    display: none;
}

.dropdown-menu li:first-child {
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 8px;
}

.dropdown-divider {
    grid-column: 1 / -1;
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
    border: none;
    padding: 0;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-toggle-btn,
.menu-toggle-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
    transition: color 0.3s ease;
}

.search-toggle-btn:hover,
.menu-toggle-btn:hover {
    color: var(--netflix-red);
}

.search-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 4px;
    color: var(--text-color);
    font-size: 14px;
    width: 200px;
    transition: all 0.3s ease;
    min-width: 50px;
}

.search-box:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--netflix-red);
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.3);
}
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 4px;
    color: var(--text-color);
    font-size: 14px;
    width: 200px;
    transition: all 0.3s ease;
    min-width: 50px;
}

.search-box:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--netflix-red);
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.3);
}

/* Search Suggestions Dropdown */
.search-wrapper {
    position: relative;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    right: 0;
    width: 400px;
    background: var(--card-bg, #1f1f1f);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 600px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.search-suggestions.show {
    display: block;
}

.suggestions-list {
    display: flex;
    flex-direction: column;
}

.suggestion-item {
    display: flex;
    gap: 14px;
    padding: 14px 18px;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.suggestion-item:hover {
    background: rgba(255, 255, 255, 0.08);
    padding-left: 24px;
}

.suggestion-poster {
    width: 50px;
    height: 75px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.suggestion-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.suggestion-content {
    flex: 1;
    min-width: 0;
}

.suggestion-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.suggestion-meta {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.suggestion-meta .year {
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.suggestion-meta .rating {
    color: #FFD700;
}

.suggestions-empty {
    padding: 20px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.admin-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 8px;
}

.admin-toggle-btn:hover {
    color: var(--netflix-red);
}

/* ===== MOVIE MODAL POPUP ===== */
.movie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.movie-modal.active {
    display: flex;
    opacity: 1;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 950px;
    max-height: 80vh;
    background: linear-gradient(to right, var(--secondary-bg) 0%, #1a1a1a 100%);
    border-radius: 12px;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 60px rgba(229, 9, 20, 0.2);
    animation: modalPopIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10;
    border: 1px solid rgba(229, 9, 20, 0.2);
}

.modal-box {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: var(--secondary-bg);
    border-radius: 12px;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    animation: modalPopIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10;
}

@keyframes modalPopIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.modal-close:hover {
    background: var(--netflix-red);
    transform: rotate(90deg);
}

.modal-flex {
    display: flex;
    gap: 40px;
    padding: 40px;
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 32px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    padding: 0;
}

.modal-close-btn:hover {
    background: var(--netflix-red);
    color: white;
    transform: rotate(90deg);
}

.modal-left {
    flex: 0 0 300px;
}

.modal-poster {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.modal-poster-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.modal-play-section {
    margin-top: 20px;
}

.modal-play-btn {
    width: 100%;
    padding: 14px;
    background: var(--netflix-red);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modal-play-btn:hover {
    background: #ff1a1a;
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.4);
}

.modal-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-right h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.modal-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(229, 9, 20, 0.3);
    flex-wrap: wrap;
}

.modal-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(229, 9, 20, 0.1);
    padding: 6px 12px;
    border-radius: 4px;
}

.modal-movie-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.modal-movie-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.modal-right p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.modal-biography {
    color: #aaa;
    font-style: italic;
    margin-bottom: 20px !important;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(229, 9, 20, 0.2);
}

.btn-primary {
    flex: 1;
    padding: 14px 24px;
    background: var(--netflix-red);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    background: #ff1a1a;
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.5);
    transform: scale(1.02);
}

.btn-secondary {
    flex: 1;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(229, 9, 20, 0.5);
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: rgba(229, 9, 20, 0.2);
    border-color: var(--netflix-red);
    color: var(--netflix-red);
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.btn-add-list,
.btn-share {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
}

.btn-add-list:hover,
.btn-share:hover {
    border-color: var(--netflix-red);
    color: var(--netflix-red);
}

.admin-modal.active {
    display: flex;
}

.admin-modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.admin-modal-content {
    position: relative;
    background: var(--dark-bg);
    border: 2px solid var(--netflix-red);
    border-radius: 12px;
    padding: 50px 40px;
    width: 95%;
    max-width: 420px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.9), 0 0 40px rgba(229, 9, 20, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    background: var(--netflix-red);
    color: white !important;
    transform: rotate(90deg);
}

.admin-form-wrapper {
    text-align: center;
}

.admin-form-wrapper h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--netflix-red);
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: var(--netflix-red);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-login:hover {
    background: #ff1a1a;
    box-shadow: 0 4px 20px rgba(229, 9, 20, 0.4);
}

.demo-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 15px;
}

.admin-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
}

.admin-message.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.5);
}

.admin-message.error {
    background: rgba(229, 9, 20, 0.2);
    color: var(--netflix-red);
    border: 1px solid rgba(229, 9, 20, 0.5);
}

/* ===== HERO SLIDER ===== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 700px;
    margin-top: 60px;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    border-radius: 16px;
    box-shadow: inset 0 0 80px rgba(0,0,0,0.8), 0 20px 60px rgba(229, 9, 20, 0.15);
    cursor: grab;
    user-select: none;
}

.hero-slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-slide.active {
    opacity: 1;
    z-index: 10;
}

@keyframes heroSlideIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) contrast(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 35%, rgba(0,0,0,0.3) 70%, transparent 100%);
    z-index: 2;
}

.hero-content {
    position: absolute;
    bottom: 8%;
    left: 50px;
    right: 50px;
    z-index: 3;
    max-width: 700px;
    animation: heroContentSlideUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s backwards;
}

@keyframes heroContentSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 68px;
    font-weight: 900;
    margin-bottom: 18px;
    text-shadow: 4px 4px 30px rgba(0,0,0,0.95);
    letter-spacing: -2px;
    line-height: 1.1;
    color: white;
    word-wrap: break-word;
}

.hero-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 25px;
    line-height: 1.6;
    text-shadow: 2px 2px 12px rgba(0,0,0,0.95);
    max-width: 600px;
}

.hero-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 1px 1px 8px rgba(0,0,0,0.9);
}

.meta-item i {
    font-size: 16px;
    color: var(--netflix-red);
    width: 20px;
    text-align: center;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 12px 28px;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-play {
    background: var(--netflix-red);
    color: white;
    box-shadow: 0 6px 25px rgba(229, 9, 20, 0.6);
    padding: 12px 28px;
    font-size: 13px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.btn-play::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.btn-play:hover::before {
    left: 100%;
}

.btn-play:hover {
    background: #ff1a1a;
    box-shadow: 0 12px 40px rgba(229, 9, 20, 0.8);
    transform: scale(1.06);
}

.btn-info {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    padding: 12px 28px;
    font-size: 13px;
    position: relative;
    overflow: hidden;
    font-weight: 700;
}

.btn-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transition: left 0.3s ease;
}

.btn-info:hover::before {
    left: 100%;
}

.btn-info:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    color: white;
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.25);
    transform: scale(1.06);
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 28px;
    width: 60px;
    height: 60px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    border-radius: 4px;
    display: none !important;
    align-items: center;
    justify-content: center;
}

.hero-prev,
.hero-next {
    display: none !important;
}

/* Hero Indicators */
.hero-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.3);
}

.indicator.active {
    background: var(--netflix-red);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(229, 9, 20, 0.8);
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--netflix-red);
    width: 30px;
    border-radius: 6px;
}

/* ===== CONTENT SECTION (HOME) ===== */
.content-section {
    padding: 60px 50px;
    background: var(--dark-bg);
}

.genre-section {
    margin-bottom: 60px;
}

.genre-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: nowrap;
    gap: 15px;
}

.genre-title {
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--netflix-red);
    margin: 0;
    flex-shrink: 0;
}

.see-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(229, 9, 20, 0.2);
    color: var(--netflix-red);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid rgba(229, 9, 20, 0.4);
    flex-shrink: 0;
    white-space: nowrap;
}

.see-more-btn:hover {
    background: rgba(229, 9, 20, 0.3);
    border-color: var(--netflix-red);
    transform: translateX(4px);
}

.see-more-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.see-more-buttons .see-more-btn {
    padding: 8px 14px;
    font-size: 13px;
    gap: 6px;
}

.movies-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.carousel-btn {
    position: relative;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: rgba(229, 9, 20, 0.7);
    border: 2px solid var(--netflix-red);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--netflix-red);
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.8);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-prev {
    order: -1;
}

.carousel-next {
    order: 1;
}

.movies-grid-scroll {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    padding: 10px 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    scrollbar-width: none;
}

.movies-grid-scroll::-webkit-scrollbar {
    display: none;
}

/* Custom scrollbar for carousel - thin red Netflix style */
.movies-grid-scroll::-webkit-scrollbar {
    height: 4px;
}

.movies-grid-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.movies-grid-scroll::-webkit-scrollbar-thumb {
    background: var(--netflix-red);
    border-radius: 10px;
}

.movies-grid-scroll::-webkit-scrollbar-thumb:hover {
    background: #ff4444;
}

.movie-tile {
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 0 0 calc(20% - 16px);
    min-width: 180px;
    max-width: 100%;
    overflow: hidden;
}

.movie-tile:hover {
    transform: scale(1.08);
    z-index: 5;
}

.movie-poster-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.movie-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.movie-tile:hover .movie-overlay {
    opacity: 1;
}

.play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--netflix-red);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn:hover {
    background: white;
    color: var(--netflix-red);
    transform: scale(1.1);
}

.movie-info-card {
    padding: 8px 4px;
}

.movie-info-card h4 {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 3px;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    font-size: 10px;
    color: var(--text-secondary);
}

.movie-meta-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.movie-meta-info .movie-meta {
    margin-bottom: 0;
    flex: 1;
}

.movie-type-tag {
    background: var(--tags-color);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== MOVIES CONTAINER ===== */
.movies-container {
    padding: 60px 50px;
}

.movie-row {
    margin-bottom: 60px;
}

.row-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.movies-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.movies-scroll::-webkit-scrollbar {
    height: 4px;
}

.movies-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.movies-scroll::-webkit-scrollbar-thumb {
    background: var(--netflix-red);
    border-radius: 4px;
}

.movies-scroll::-webkit-scrollbar-thumb:hover {
    background: #ff4444;
}

/* ===== MOVIE CARD ===== */
.movie-card {
    flex: 0 0 200px;
    height: 300px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.movie-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.3);
}

.movie-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.movie-card:hover .movie-card-overlay {
    opacity: 1;
}

.movie-card-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.movie-year {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.movie-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 12px;
}

.movie-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-buttons {
    display: flex;
    gap: 10px;
}

.btn-play,
.btn-info {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-play {
    background: var(--netflix-red);
    color: white;
}

.btn-play:hover {
    background: #ff1a1a;
}

.btn-info {
    background: transparent;
    color: white;
    border: 1px solid white;
}

.btn-info:hover {
    background: white;
    color: var(--dark-bg);
}

/* ===== MOVIES PAGE ===== */
.movies-page,
.tvshows-page {
    margin-top: 60px;
    padding: 30px 50px;
    min-height: 100vh;
}

.page-title {
    font-size: 36px;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
    display: flex;
    align-items: center;
}

/* Filters Section */
.filters-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 15px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--netflix-red);
    color: var(--netflix-red);
    background: rgba(229, 9, 20, 0.1);
}

.filter-btn.active {
    background: var(--netflix-red);
    border-color: var(--netflix-red);
    color: white;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border-radius: 4px;
    font-size: 14px;
}

.search-input:focus {
    outline: none;
    border-color: var(--netflix-red);
    background: rgba(255, 255, 255, 0.15);
}

.btn-search {
    padding: 10px 20px;
    background: var(--netflix-red);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-search:hover {
    background: #ff1a1a;
}

/* Movies Grid */
.movies-grid-section,
.shows-grid-section {
    margin-bottom: 40px;
}

.results-count {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.movies-grid-main {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

@media (max-width: 1400px) {
    .movies-grid-main {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1000px) {
    .movies-grid-main {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .movies-grid-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .movie-grid-card {
        display: flex;
        flex-direction: column;
        height: auto;
        min-width: 0;
    }

    .movie-poster-container {
        width: 100%;
        aspect-ratio: 2 / 3;
        flex-shrink: 0;
        overflow: hidden;
    }

    .pagination {
        gap: 10px;
        margin-top: 35px;
    }

    .pagination-btn {
        padding: 7px 8px;
        font-size: 12px;
        height: 32px;
        min-width: 32px;
    }

    .pagination-info {
        min-width: 100px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .movies-grid-main {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        margin-bottom: 20px;
    }

    .movie-grid-card {
        display: flex;
        flex-direction: column;
        height: auto;
        min-width: 0;
    }

    .movie-poster-container {
        width: 100%;
        aspect-ratio: 2 / 3 !important;
        position: relative;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        flex-shrink: 0;
    }

    .movie-poster {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .movie-hover-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    .movie-rating-badge {
        position: absolute;
        top: 8px;
        right: 8px;
        background: rgba(0, 0, 0, 0.85);
        color: var(--netflix-red);
        padding: 4px 6px;
        border-radius: 3px;
        font-size: 9px;
        font-weight: 700;
        z-index: 10;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 55px;
        border: 1px solid var(--netflix-red);
    }

    .movie-episode-badge {
        position: absolute;
        top: 8px;
        right: 68px;
        background: rgba(0, 0, 0, 0.85);
        color: var(--netflix-red);
        padding: 4px 6px;
        border-radius: 3px;
        font-size: 9px;
        font-weight: 700;
        z-index: 10;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        border: 1px solid var(--netflix-red);
    }

    .episode-card .movie-title-section {
        padding: 8px;
        height: auto;
        min-height: 70px;
    }

    .episode-info {
        font-size: 11px;
        color: var(--text-secondary);
        margin: 3px 0;
    }

    .episode-description {
        font-size: 10px;
        color: var(--text-secondary);
        margin-top: 3px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .movie-title-section {
        flex-shrink: 0;
        padding: 4px 0;
        max-height: 32px;
        display: flex;
        flex-direction: column;
        width: 100%;
        min-width: 0;
    }

    .movie-title-section h4 {
        font-size: 10px;
        margin: 0;
        word-break: break-word;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-height: 1.2;
    }

    .movie-title-section p {
        font-size: 8px;
        margin: 0;
        color: var(--text-secondary);
        line-height: 1;
    }

    .pagination {
        gap: 4px;
        margin-top: 20px;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .pagination-btn {
        padding: 4px 4px;
        font-size: 10px;
        height: 28px;
        min-width: 28px;
    }

    .pagination-info {
        min-width: auto;
        font-size: 8px;
    }
}

.movie-grid-card {
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: auto;
}

.movie-grid-card:hover {
    transform: scale(1.05);
}

.movie-poster-container {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.movie-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.movie-grid-card:hover .movie-hover-overlay {
    opacity: 1;
}

.play-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--netflix-red);
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-icon:hover {
    background: white;
    color: var(--netflix-red);
    transform: scale(1.15);
    box-shadow: 0 8px 30px rgba(229, 9, 20, 0.5);
}

.movie-rating-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: var(--netflix-red);
    padding: 4px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    z-index: 10;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60px;
    border: 1px solid var(--netflix-red);
}

.movie-episode-badge {
    position: absolute;
    top: 8px;
    right: 69px;
    background: rgba(0, 0, 0, 0.85);
    color: var(--netflix-red);
    padding: 4px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    z-index: 10;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid var(--netflix-red);
}

.movie-title-section {
    padding: 12px 0;
    max-height: 48px;
    flex-shrink: 0;
    width: 100%;
    min-width: 0;
}

.movie-title-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-title-section p {
    font-size: 12px;
    margin: 0;
    color: var(--text-secondary);
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.no-results i {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.btn-reset {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: var(--netflix-red);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    background: #ff1a1a;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.pagination-btn {
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

.pagination-btn:hover {
    background: var(--netflix-red);
    border-color: var(--netflix-red);
    color: white;
}

.pagination-info {
    color: var(--text-secondary);
    font-weight: 600;
    min-width: 120px;
    text-align: center;
}

/* ===== PLAYER PAGE ===== */
.player-page {
    margin-top: 60px;
    padding: 0;
    min-height: 100vh;
    background: var(--dark-bg);
}

.video-player-container {
    max-width: 1400px;
    margin: 80px auto 30px;
    background: transparent;
    padding: 0 20px;
    position: relative;
}

.video-player-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 25px;
}

.video-player {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(229, 9, 20, 0.3), 0 0 60px rgba(0, 0, 0, 0.8);
    background: #000;
}

#videoPlayer {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Player Server Selection */
.player-servers {
    max-width: 1200px;
    margin: 20px auto 40px;
    padding: 0;
    border-radius: 0;
    border: none;
    background: transparent;
    backdrop-filter: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.servers-label {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin: 0;
    display: block;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.server-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.server-btn {
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(229, 9, 20, 0.3);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    font-size: 11px;
    min-width: 32px;
    height: 32px;
}

.server-btn:hover {
    background: rgba(229, 9, 20, 0.2);
    border-color: var(--netflix-red);
    color: white;
    transform: scale(1.05);
}

.server-btn.active {
    background: var(--netflix-red);
    border-color: var(--netflix-red);
    color: white;
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.5);
}

/* Episode Controls for TV Shows */
.episode-controls {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    padding: 25px 20px;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.btn-ep-control {
    padding: 12px 24px;
    background: var(--netflix-red);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    text-decoration: none;
    min-width: 140px;
}

.btn-ep-control span {
    display: inline;
}

.btn-ep-control:hover {
    background: #ff4444;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.6);
}

.btn-ep-control:disabled {
    background: rgba(229, 9, 20, 0.4);
    cursor: not-allowed;
    transform: none;
}

.btn-ep-control i {
    font-size: 16px;
}

/* Player Details */
.player-details-wrapper {
    padding: 50px 40px;
    max-width: 1400px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.8) 0%, rgba(26, 26, 26, 0.8) 100%);
}

.details-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
}

/* Left Side - Poster */
.details-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.share-button-wrapper {
    position: relative;
    display: inline-block;
    align-self: flex-start;
}

.movie-poster-display {
    width: 100%;
    max-width: 250px;
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(229, 9, 20, 0.3);
}

.movie-poster-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-trailer {
    padding: 12px 20px;
    width: 100%;
    max-width: 250px;
    background: var(--netflix-red);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
}

.btn-trailer span {
    display: none;
}

.btn-trailer:hover {
    background: #ff1a1a;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.6);
    transform: scale(1.05);
}

/* Right Side - Details */
.details-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.title-rating {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.details-right h1 {
    font-size: 48px;
    font-weight: 900;
    margin: 0;
    line-height: 1.1;
}

.episode-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(229, 9, 20, 0.1);
    border: 1px solid rgba(229, 9, 20, 0.3);
    padding: 8px 12px;
    border-radius: 6px;
    width: fit-content;
}

.ep-btn {
    background: var(--netflix-red);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ep-btn:hover {
    background: #ff4444;
    transform: scale(1.1);
}

.ep-btn:disabled {
    background: rgba(229, 9, 20, 0.4);
    cursor: not-allowed;
    transform: none;
}

.current-episode {
    font-weight: 700;
    color: var(--netflix-red);
    font-size: 14px;
    min-width: 60px;
    text-align: center;
}

.rating-badge {
    background: var(--netflix-red);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(229, 9, 20, 0.4);
    width: fit-content;
}

.movie-meta-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.meta-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.meta-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.description-block,
.biography-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.description-block h3,
.biography-block h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.description-block p,
.biography-block p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
}

.credits-section {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.credit-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    position: relative;
}

.share-credit-box {
    cursor: pointer;
}

.credit-icon {
    width: 45px;
    height: 45px;
    background: rgba(229, 9, 20, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--netflix-red);
    font-size: 20px;
    flex-shrink: 0;
}

.featured-credit .credit-icon {
    background: rgba(229, 9, 20, 0.3);
    color: #ff1a1a;
}

/* Share Credit Box Button */
.share-credit-box .credit-icon {
    padding: 0;
}

.btn-share-credit {
    width: 100%;
    height: 100%;
    border: none;
    background: rgba(229, 9, 20, 0.2);
    color: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
}

.btn-share-credit:hover {
    background: rgba(229, 9, 20, 0.4);
    color: #ffffff;
    transform: scale(1.05);
}

.share-credit-box:hover .credit-icon {
    background: rgba(229, 9, 20, 0.3);
}

/* Share Dropdown for Credits */
.share-dropdown-credits {
    position: absolute;
    top: 100%;
    left: -10px;
    margin-top: 8px;
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 12px;
    padding: 12px;
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 160px;
    max-width: 200px;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.share-dropdown-credits.show {
    display: flex;
}

.credit-box h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--netflix-red);
    margin-bottom: 8px;
}

.credit-box p {
    font-size: 14px;
    color: var(--text-color);
    margin: 0;
}

.credit-name {
    font-size: 15px;
    color: var(--text-color);
    margin: 0;
    font-weight: 600;
}

/* Cast Section */
.cast-section {
    margin-bottom: 40px;
}

.cast-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    gap: 12px;
}

.cast-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.cast-card:hover {
    transform: translateY(-4px);
}

.cast-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cast-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cast-info {
    text-align: center;
}

.actor-name {
    font-size: 12px;
    font-weight: 700;
    color: white;
    margin: 0 0 2px 0;
    line-height: 1.2;
}

.actor-role {
    font-size: 10px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.1;
}

/* Cast Section Full Width */
.cast-section-full {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(229, 9, 20, 0.2);
}

.cast-section-full h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Related Movies Section */
.related-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(229, 9, 20, 0.2);
}

.related-section h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: white;
}

/* Sidebar - Related Movies */
.details-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.details-sidebar h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.related-movies {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.related-movie-card {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.related-movie-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.3);
}

.related-movie-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-movie-card:hover .card-overlay {
    opacity: 1;
}

.card-overlay i {
    font-size: 48px;
    color: var(--netflix-red);
}

.related-movie-card p {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.9) 100%);
    color: white;
    padding: 15px 10px;
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== FOOTER ===== */
.footer {
    background: #0f0f0f;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
    padding: 40px 50px 20px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: var(--netflix-red);
    letter-spacing: 1px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--netflix-red);
}

.social-links {
    display: flex;
    gap: 12px !important;
}

.social-links a {
    font-size: 16px !important;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--netflix-red);
    border-color: var(--netflix-red);
    color: white !important;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 12px;
}

/* ===== TRAILER MODAL ===== */
.trailer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    backdrop-filter: blur(4px);
}

.trailer-modal.show {
    display: flex;
}

.trailer-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(229, 9, 20, 0.4);
    aspect-ratio: 16 / 9;
}

.trailer-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(229, 9, 20, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    z-index: 3001;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trailer-modal-close:hover {
    background: var(--netflix-red);
    transform: scale(1.1);
}

.trailer-modal iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

/* ===== TV SHOW INFORMATION PAGE ===== */
.info-container {
    padding: 80px 40px 50px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 20px;
}

.info-header h1 {
    font-size: 48px;
    font-weight: 900;
    margin: 0;
}

.btn-back-to-player {
    padding: 12px 24px;
    background: var(--netflix-red);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 14px;
}

.btn-back-to-player:hover {
    background: #ff4444;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.6);
}

.show-details {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 50px;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.show-poster-section {
    display: flex;
    justify-content: center;
}

.show-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(229, 9, 20, 0.3);
    object-fit: cover;
}

.show-info-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 700;
    color: var(--netflix-red);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.info-value {
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-section {
    margin-top: 20px;
}

.info-section h3 {
    font-size: 20px;
    color: var(--netflix-red);
    margin: 0 0 12px 0;
}

.info-section p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    font-size: 14px;
}

/* Cast Section */
.cast-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.cast-section h2 {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 30px 0;
    color: var(--netflix-red);
    display: flex;
    align-items: center;
    gap: 12px;
}

.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.actor-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.actor-card:hover {
    background: rgba(229, 9, 20, 0.15);
    border-color: var(--netflix-red);
    transform: translateY(-4px);
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
}

.actor-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.actor-info {
    padding: 12px;
    text-align: center;
}

.actor-card h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: white;
}

.actor-role {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin: 4px 0 0 0;
}

/* Episodes Grid */
.episodes-section {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.season-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.season-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    color: var(--netflix-red);
    display: flex;
    align-items: center;
    gap: 12px;
}

.season-title::before {
    content: '';
    width: 4px;
    height: 28px;
    background: var(--netflix-red);
    border-radius: 2px;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.episode-card-item {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid transparent;
}

.episode-card-item.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.episode-card-item.disabled:hover {
    border-color: transparent;
    transform: scale(1);
}

.episode-card-item:hover {
    border-color: var(--netflix-red);
    transform: scale(1.05);
}

.episode-card-item.active {
    border-color: var(--netflix-red);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.5);
}

.episode-poster {
    position: relative;
    width: 100%;
    height: 100%;
}

.episode-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.episode-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.episode-card-item:hover .episode-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.episode-overlay i {
    font-size: 32px;
    color: var(--netflix-red);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.episode-card-item:hover .episode-overlay i {
    opacity: 1;
}

.episode-tag {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: var(--tags-color);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
}

.episode-inactive-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(229, 9, 20, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    z-index: 11;
    white-space: nowrap;
}

/* ===== ADMIN MODAL ===== */
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(2px);
}

@media (max-width: 1024px) {
    .hero-slider {
        height: 500px;
    }

    .hero-content {
        bottom: 10%;
        left: 40px;
        right: 40px;
    }

    .hero-content h1 {
        font-size: 48px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-meta {
        gap: 18px;
        font-size: 13px;
        margin-bottom: 25px;
    }

    .movies-grid-scroll {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 12px 16px;
    }

    .nav-left {
        gap: 20px;
    }

    .logo {
        font-size: 18px;
        gap: 4px;
    }

    .logo i {
        font-size: 20px;
    }

    .nav-menu {
        gap: 0;
        flex-wrap: wrap;
    }

    .nav-link {
        font-size: 11px;
        padding: 4px 6px;
        gap: 3px;
    }

    .search-box {
        width: 90px;
        font-size: 11px;
        padding: 6px 10px;
    }

    /* Dropdown menu on mobile/tablet - inline style */
    .nav-item-dropdown {
        position: static;
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .nav-item-dropdown .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 10px 12px;
    }

    .nav-item-dropdown .nav-link i:last-child {
        transition: transform 0.3s ease;
        margin-left: auto;
        flex-shrink: 0;
    }

    .nav-item-dropdown .nav-link.expanded i:last-child {
        transform: rotate(180deg);
    }

    .dropdown-menu {
        position: static;
        top: auto;
        left: auto;
        background: transparent;
        border: none;
        box-shadow: none;
        min-width: auto;
        display: flex;
        flex-direction: column;
        grid-template-columns: unset;
        gap: 0;
        padding: 0;
        margin: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .dropdown-menu.show {
        max-height: 800px;
    }

    .dropdown-menu li {
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .dropdown-menu a {
        display: block;
        width: 100%;
        padding: 10px 12px 10px 32px;
        font-size: 13px;
        text-align: left;
        justify-content: flex-start;
        background: rgba(229, 9, 20, 0.05);
        border-radius: 0;
    }

    .dropdown-menu a:hover {
        background: rgba(229, 9, 20, 0.15);
    }

    .dropdown-menu li:first-child a {
        font-weight: 600;
        background: transparent;
    }

    .dropdown-divider {
        display: none;
    }

    .footer {
        padding: 30px 20px 15px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        margin-bottom: 20px;
    }

    .footer-section h4 {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .footer-section a {
        font-size: 12px;
    }

    .social-links a {
        width: 32px;
        height: 32px;
        font-size: 14px !important;
    }

    .footer-bottom {
        font-size: 11px;
    }

    .hero-slider {
        height: 380px;
        margin-top: 50px;
        border-radius: 8px;
    }

    .hero-content {
        bottom: 8%;
        left: 30px;
        right: 30px;
        max-width: none;
    }

    .hero-content h1 {
        font-size: 36px;
        margin-bottom: 12px;
    }

    .hero-content p {
        font-size: 14px;
        margin-bottom: 20px;
        line-height: 1.5;
    }

    .hero-meta {
        gap: 12px;
        font-size: 12px;
        margin-bottom: 15px;
    }

    .btn-large {
        padding: 12px 28px;
        font-size: 13px;
        border-radius: 20px;
    }

    .hero-buttons {
        gap: 12px;
    }

    .hero-prev,
    .hero-next {
        padding: 12px 8px;
        font-size: 20px;
    }

    .hero-prev {
        left: 8px;
    }

    .hero-next {
        right: 8px;
    }

    .content-section {
        padding: 40px 20px;
    }

    .genre-header {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .genre-title {
        font-size: 20px;
        margin-bottom: 0;
    }

    .see-more-btn {
        padding: 8px 14px;
        font-size: 11px;
        flex-shrink: 0;
    }

    .movies-grid-scroll {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 12px;
        padding: 10px 0;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: auto;
    }

    .movies-grid-scroll::-webkit-scrollbar {
        display: block;
    }

    .carousel-btn {
        display: none !important;
    }

    .movie-tile {
        flex: 0 0 calc(50% - 6px);
        transition: transform 0.2s ease;
    }

    .movie-tile:hover {
        transform: scale(1.05);
    }

    .modal-content {
        width: 95%;
        max-height: 85vh;
    }

    .modal-flex {
        flex-direction: column;
        gap: 20px;
        padding: 25px;
    }

    .modal-left {
        flex: 0 0 auto;
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    .modal-right {
        width: 100%;
    }

    .modal-right h2 {
        font-size: 24px;
    }

    .modal-meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .nav-left {
        gap: 15px;
    }

    /* Hide hero navigation buttons on mobile, show indicators */
    .hero-prev,
    .hero-next {
        display: none !important;
    }

    .hero-indicators {
        display: none !important;
    }

    /* Hide carousel buttons on tablet/mobile - users scroll manually */
    .carousel-btn {
        display: none;
    }

    .movies-carousel {
        display: block;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px 10px;
    }

    .nav-left {
        gap: 12px;
        flex-wrap: wrap;
    }

    .logo {
        font-size: 14px;
        gap: 3px;
        letter-spacing: 1px;
    }

    .logo i {
        font-size: 16px;
    }

    .nav-menu {
        display: none;
        gap: 6px;
        flex-wrap: wrap;
        order: 3;
        width: 100%;
    }

    .nav-link {
        font-size: 14px;
        padding: 10px 12px;
        gap: 8px;
    }

    .nav-right {
        gap: 8px;
        flex-wrap: nowrap;
        width: auto;
        order: 2;
    }

    .search-toggle-btn,
    .menu-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        padding: 6px 8px;
        transition: transform 0.3s ease;
    }

    .menu-toggle-btn.active {
        transform: rotate(90deg);
    }

    .admin-toggle-btn {
        font-size: 14px;
        padding: 4px;
    }

    .search-box {
        display: none;
        position: fixed;
        top: 60px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 500px;
        margin-top: 8px;
        padding: 12px;
        font-size: 14px;
        border-radius: 4px;
        z-index: 999;
        order: unset;
    }

    .search-box.show {
        display: block;
    }

    .search-suggestions {
        position: fixed;
        top: 105px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 520px;
        z-index: 998;
    }

    .suggestion-poster {
        width: 45px;
        height: 68px;
    }

    .suggestion-item {
        padding: 12px 16px;
        gap: 12px;
    }

    .suggestion-title {
        font-size: 13px;
    }

    .nav-menu.show {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-bg);
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        gap: 0;
        flex-wrap: nowrap;
        order: unset;
        padding: 8px 10px;
        z-index: 100;
    }

    .footer {
        padding: 30px 16px 15px;
        margin-top: 40px;
    }

    .footer-container {
        max-width: 100%;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-bottom: 15px;
    }

    .footer-section h4 {
        font-size: 11px;
        margin-bottom: 8px;
        letter-spacing: 0px;
    }

    .footer-section ul li {
        margin-bottom: 5px;
    }

    .footer-section a {
        font-size: 10px;
    }

    .social-links {
        gap: 6px !important;
    }

    .social-links a {
        width: 28px;
        height: 28px;
        font-size: 11px !important;
    }

    .footer-bottom {
        font-size: 9px;
        padding-top: 12px;
    }

    .hero-slider {
        height: 250px;
        margin-top: 40px;
        border-radius: 4px;
        box-shadow: inset 0 0 40px rgba(0,0,0,0.8), 0 10px 30px rgba(229, 9, 20, 0.1);
    }

    .hero-content {
        bottom: 5%;
        left: 15px;
        right: 15px;
        max-width: none;
    }

    .hero-content h1 {
        font-size: 20px;
        margin-bottom: 6px;
        font-weight: 800;
    }

    .hero-content p {
        font-size: 11px;
        margin-bottom: 10px;
        display: none;
        text-shadow: 2px 2px 8px rgba(0,0,0,0.95);
    }

    .hero-meta {
        gap: 8px;
        font-size: 10px;
        margin-bottom: 10px;
        flex-wrap: wrap;
    }

    .meta-item i {
        font-size: 12px;
    }

    .btn-large {
        padding: 10px 20px;
        font-size: 11px;
        letter-spacing: 0.5px;
        border-radius: 18px;
    }

    .hero-buttons {
        gap: 8px;
    }

    .hero-prev,
    .hero-next {
        padding: 8px 6px;
        font-size: 16px;
        left: 4px;
        right: 4px;
    }

    .content-section {
        padding: 30px 12px;
    }

    .page-title {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .filters-section {
        padding: 12px;
        margin-bottom: 15px;
        max-height: 80vh;
        overflow-y: auto;
    }

    .filter-title {
        font-size: 10px;
        margin-bottom: 6px;
        font-weight: 700;
    }

    .filter-buttons {
        gap: 4px;
        margin-bottom: 10px;
    }

    .filter-btn {
        padding: 4px 8px;
        font-size: 8px;
        gap: 2px;
    }

    .search-form {
        gap: 4px;
        flex-direction: column;
        margin-bottom: 10px;
    }

    .search-input {
        width: 100%;
        padding: 5px 8px;
        font-size: 10px;
    }

    .btn-search {
        padding: 5px 8px;
        font-size: 9px;
        width: 100%;
    }

    .btn-filter-toggle {
        padding: 1px 3px;
        font-size: 7px;
        width: auto;
        margin-bottom: 6px;
        gap: 2px;
        min-height: auto;
        line-height: 1;
        border-radius: 3px;
        letter-spacing: 0;
    }

    .btn-filter-toggle i {
        font-size: 9px;
    }

    .genre-header {
        gap: 6px;
        flex-wrap: nowrap;
    }

    .genre-title {
        font-size: 16px;
        margin-bottom: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .see-more-btn {
        padding: 6px 10px;
        font-size: 9px;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .see-more-btn i {
        font-size: 8px;
    }

    .movies-grid-scroll {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 10px;
        padding: 10px 0;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: auto;
    }

    .movies-grid-scroll::-webkit-scrollbar {
        display: block;
    }

    .carousel-btn {
        display: none !important;
    }

    .movie-tile {
        flex: 0 0 calc(60% - 5px);
        transition: transform 0.15s ease;
    }

    .movie-tile:hover {
        transform: scale(1.03);
    }

    .movie-info-card {
        margin-top: 8px;
    }

    .movie-info-card h4 {
        font-size: 12px;
    }

    .movie-meta {
        font-size: 10px;
    }

    .movie-meta-info {
        gap: 6px;
    }

    .movie-type-tag {
        padding: 2px 5px;
        font-size: 8px;
    }

    .modal-content {
        width: 98%;
        max-height: 90vh;
        border-radius: 8px;
    }

    .modal-close-btn {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }

    .modal-flex {
        flex-direction: column;
        gap: 15px;
        padding: 18px;
    }

    .modal-left {
        width: 100%;
        max-width: 220px;
        margin: 0 auto;
    }

    .modal-poster {
        aspect-ratio: 2 / 3;
    }

    .modal-right h2 {
        font-size: 20px;
    }

    .modal-right p {
        font-size: 12px;
    }

    .modal-meta {
        gap: 8px;
        font-size: 10px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 10px 16px;
        font-size: 12px;
    }

    .page-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .filters-section {
        padding: 20px;
        margin-bottom: 25px;
    }

    .filter-title {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .filter-buttons {
        gap: 6px;
        flex-wrap: wrap;
        margin-bottom: 15px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 11px;
        gap: 4px;
    }

    .search-form {
        gap: 8px;
        flex-wrap: wrap;
    }

    .search-input {
        flex: 1;
        min-width: 150px;
        padding: 8px 12px;
        font-size: 12px;
    }

    .btn-search {
        padding: 8px 12px;
        font-size: 11px;
    }

    .btn-filter-toggle {
        padding: 5px 0;
        font-size: 0;
        gap: 0;
        width: 32px;
        height: 32px;
    }

    .btn-filter-toggle i {
        font-size: 14px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* ===== FILTER TOGGLE BUTTON ===== */
.btn-filter-toggle {
    padding: 6px 8px;
    background: var(--netflix-red);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 36px;
    height: 36px;
    overflow: hidden;
}

.btn-filter-toggle i {
    font-size: 16px;
}

.btn-filter-toggle:hover {
    background: #ff1a1a;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
    transform: translateY(-2px);
}

#filterSection {
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 1;
    margin-bottom: 30px;
}

#filterSection.collapsed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-bottom: 0;
}

/* ===== RESPONSIVE - PLAYER PAGE ===== */
@media (max-width: 1200px) {
    .details-container {
        grid-template-columns: 1fr;
    }
    
    .details-sidebar {
        order: -1;
    }
    
    .movie-meta-row {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Info Page Mobile */
    .info-container {
        padding: 50px 15px 20px;
    }

    .info-header h1 {
        font-size: 24px;
    }

    .btn-back-to-player {
        width: 100%;
        justify-content: center;
    }

    .show-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .show-poster {
        max-width: 120px;
    }

    .info-row {
        grid-template-columns: 70px 1fr;
        gap: 10px;
    }

    .info-label {
        font-size: 11px;
    }

    .info-value {
        font-size: 13px;
    }

    .season-title {
        font-size: 20px;
    }

    .episodes-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    .episode-card-item {
        aspect-ratio: 2 / 3;
    }

    .cast-grid {
        grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
        gap: 10px;
    }

    /* Mobile Episode Controls - Icons Only */
    .episode-controls {
        gap: 12px;
        padding: 15px 10px;
    }

    .btn-ep-control {
        padding: 10px 12px;
        min-width: auto;
        font-size: 13px;
    }

    .btn-ep-control span {
        display: none;
    }

    /* Mobile Player Details */
    .details-container {
        grid-template-columns: 100px 1fr;
        gap: 12px;
    }

    .details-left {
        align-items: flex-start;
        gap: 8px;
    }

    .movie-poster-display {
        max-width: 100px;
    }

    .btn-trailer {
        width: 100%;
        padding: 8px 10px;
        font-size: 11px;
    }

    .btn-trailer span {
        display: none;
    }

    .details-right {
        gap: 12px;
    }

    .details-right h1 {
        font-size: 16px;
        line-height: 1.2;
        margin: 0;
    }

    .title-rating {
        flex-direction: row;
        gap: 6px;
        align-items: center;
    }

    .rating-badge {
        padding: 2px 3px;
        font-size: 7px;
        gap: 1px;
        flex-shrink: 0;
    }

    .rating-badge i {
        font-size: 7px;
    }

    .movie-meta-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .meta-box {
        padding: 8px;
    }

    .meta-label {
        font-size: 9px;
    }

    .meta-value {
        font-size: 11px;
    }

    .description-block,
    .biography-block {
        gap: 6px;
        margin-bottom: 12px;
    }

    .description-block h3,
    .biography-block h3 {
        font-size: 12px;
        margin: 0;
    }

    .description-block p,
    .biography-block p {
        font-size: 10px;
        line-height: 1.4;
        margin: 0;
    }

    .credits-section {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
        margin-bottom: 12px;
    }

    .credit-box {
        gap: 10px;
    }

    .credit-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .credit-box h4 {
        font-size: 10px;
        margin-bottom: 4px;
    }

    .credit-box p {
        font-size: 9px;
    }

    .cast-section-full {
        margin-top: 20px;
        padding-top: 15px;
    }

    .cast-section-full h3 {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .cast-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 10px;
    }

    .related-section {
        margin-top: 20px;
        padding-top: 15px;
    }

    .related-section h3 {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .related-movies {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 10px;
    }

    .related-movie-card {
        aspect-ratio: 2 / 3;
    }

    .related-movie-card p {
        font-size: 9px;
        padding: 10px 8px;
    }

    /* Mobile Info Page */
    .show-details {
        display: grid;
        grid-template-columns: 75px 1fr;
        gap: 8px;
        margin-bottom: 35px;
        padding-bottom: 25px;
    }

    .show-poster-section {
        display: flex;
        justify-content: flex-start;
    }

    .show-poster {
        width: 100%;
        max-width: 75px;
    }

    .show-info-section {
        gap: 2px;
    }

    .info-row {
        grid-template-columns: 50px 1fr;
        gap: 3px;
        padding: 0;
        border-bottom: none;
    }

    .info-label {
        font-size: 10px;
        white-space: nowrap;
    }

    .info-value {
        font-size: 12px;
    }

    .info-section h3 {
        font-size: 13px;
        margin: 8px 0 3px 0;
    }

    .info-section p {
        font-size: 11px;
        line-height: 1.3;
    }

    .season-title {
        font-size: 16px;
    }

    .episodes-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 8px;
    }

    .episode-tag {
        font-size: 10px;
        padding: 4px 5px;
        bottom: 3px;
        left: 3px;
    }

    .cast-section h2 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .cast-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 8px;
    }

    .actor-card {
        gap: 6px;
    }

    .actor-image {
        aspect-ratio: 1 / 1;
    }

    .actor-info {
        padding: 6px;
    }

    .actor-card h4 {
        font-size: 12px;
    }

    .actor-role {
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    .player-servers {
        padding: 0;
        margin: 0 auto 30px;
        gap: 10px;
    }
    
    .servers-label {
        font-size: 11px;
    }
    
    .server-btn {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 32px;
        height: 32px;
    }
    
    .player-details-wrapper {
        padding: 20px;
    }
    
    .title-rating {
        flex-direction: row;
        gap: 6px;
        align-items: center;
    }
    
    .details-main h1 {
        font-size: 28px;
    }
    
    .rating-badge {
        font-size: 7px;
        padding: 2px 3px;
    }
    
    .movie-meta-row {
        grid-template-columns: 1fr;
    }
    
    .credits-section {
        grid-template-columns: 1fr;
    }
    
    .description-block,
    .biography-block {
        gap: 8px;
    }
    
    .description-block h3,
    .biography-block h3 {
        font-size: 16px;
    }
    
    .description-block p,
    .biography-block p {
        font-size: 13px;
    }

    .related-movies {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 12px;
    }

    .trailer-modal-content {
        width: 95%;
        max-width: none;
    }

    .trailer-modal iframe {
        height: 300px;
    }

    .trailer-modal-close {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }

    /* Info Page Responsive */
    .info-container {
        padding: 50px 8px 30px;
    }

    .info-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .info-header h1 {
        font-size: 32px;
    }

    .show-details {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .show-poster-section {
        justify-content: flex-start;
    }

    .show-poster {
        max-width: 150px;
    }

    .info-row {
        grid-template-columns: 80px 1fr;
        gap: 15px;
    }

    .episodes-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 8px;
    }

    .episode-card-item {
        aspect-ratio: 2 / 3;
    }

    .episode-tag {
        font-size: 10px;
        padding: 4px 6px;
    }

    .cast-grid {
        grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
        gap: 12px;
    }

    .actor-card h4 {
        font-size: 13px;
    }

    .actor-role {
        font-size: 11px;
    }

    .episodes-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 10px;
    }

    .episode-card-item {
        aspect-ratio: 2 / 3;
    }

    .episode-tag {
        font-size: 11px;
        padding: 5px 8px;
    }
}

/* Fix mobile 480px layout - override 768px rules */
@media (max-width: 480px) {
    .show-details {
        display: grid;
        grid-template-columns: 75px 1fr;
        gap: 8px;
    }
}


