/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles - Standardized */
.header {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 0.8rem 0; /* Standardized height */
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 64px; /* Fixed height for consistency */
    display: flex;
    align-items: center;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-right {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 1.6rem; /* Standardized size */
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0; /* Remove default margin */
    line-height: 1;
}

.logo i {
    color: #ff6b6b;
    font-size: 1.8rem; /* Standardized size */
}

/* Hamburger Menu Button */
.hamburger-menu {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: all 0.3s ease;
    width: 36px;
    height: 32px;
    justify-content: center;
    align-items: center;
}

.hamburger-menu:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.5);
    transform: translateY(-2px);
}

.hamburger-line {
    width: 18px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Slide-out Navigation */
.slide-nav {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
}

.slide-nav.open {
    left: 0;
    animation: slideInLeft 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideInLeft {
    from {
        left: -320px;
        opacity: 0.8;
    }
    to {
        left: 0;
        opacity: 1;
    }
}

.slide-nav-header {
    background: rgba(255, 107, 107, 0.1);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slide-nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
}

.slide-nav-logo i {
    color: #ff6b6b;
    font-size: 1.3rem;
}

.slide-nav-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-nav-close:hover {
    background: rgba(255, 107, 107, 0.3);
    transform: scale(1.1);
}

.slide-nav-content {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation Sections */
.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section-title {
    padding: 0.8rem 1.5rem 0.5rem 1.5rem;
    color: #ff6b6b;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 107, 107, 0.2);
    margin-bottom: 0.5rem;
}

.slide-nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-left: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.slide-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 107, 0.1), transparent);
    transition: left 0.5s ease;
}

.slide-nav-item:hover::before {
    left: 100%;
}

.slide-nav-item:hover {
    background: rgba(255, 107, 107, 0.15);
    border-left-color: #ff6b6b;
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

.slide-nav-item.active {
    background: rgba(255, 107, 107, 0.2);
    border-left-color: #ff6b6b;
    color: #ff6b6b;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.slide-nav-item.hidden {
    display: none;
}

/* Ensure request and legal items are always visible */
.slide-nav-item.request-item,
.slide-nav-item[onclick*="openLegalPage"],
.slide-nav-item[onclick*="openRequestModal"] {
    display: flex !important;
}

.slide-nav-item i {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
    color: #ff6b6b;
    transition: all 0.3s ease;
}

.slide-nav-item:hover i {
    transform: scale(1.1);
    color: #ffffff;
}

.slide-nav-item span {
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.slide-nav-item:hover span {
    font-weight: 600;
}

/* Request Item Special Styling */
.slide-nav-item.request-item {
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.25), rgba(255, 167, 38, 0.25));
    border: 2px solid rgba(255, 107, 107, 0.5);
    margin: 0.5rem 1rem;
    border-radius: 12px;
    position: relative;
    animation: requestGlow 2.5s ease-in-out infinite alternate;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

@keyframes requestGlow {
    0% {
        box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3), 0 0 20px rgba(255, 107, 107, 0.2);
        border-color: rgba(255, 107, 107, 0.5);
    }
    50% {
        box-shadow: 0 6px 25px rgba(255, 107, 107, 0.5), 0 0 30px rgba(255, 107, 107, 0.4);
        border-color: rgba(255, 107, 107, 0.8);
    }
    100% {
        box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3), 0 0 20px rgba(255, 107, 107, 0.2);
        border-color: rgba(255, 107, 107, 0.5);
    }
}

.slide-nav-item.request-item:hover {
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.35), rgba(255, 167, 38, 0.35));
    border-color: #ff6b6b;
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.6);
    animation: none; /* Stop glow animation on hover */
}

.request-badge {
    background: linear-gradient(45deg, #ff6b6b, #ffa726);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    position: absolute;
    top: -8px;
    right: 8px;
    animation: requestBadgePulse 2s infinite;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    z-index: 10;
}

@keyframes requestBadgePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 4px 15px rgba(255, 107, 107, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    }
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design for Hamburger Menu */
@media (max-width: 768px) {
    .hamburger-menu {
        width: 32px;
        height: 28px;
        padding: 0.4rem;
    }
    
    .hamburger-line {
        width: 16px;
    }
    
    .slide-nav {
        width: 260px;
        left: -260px;
    }
    
    .slide-nav-header {
        padding: 1.2rem;
    }
    
    .slide-nav-logo {
        font-size: 1rem;
    }
    
    .slide-nav-item {
        padding: 0.8rem 1.2rem;
    }
    
    .slide-nav-item span {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hamburger-menu {
        width: 30px;
        height: 26px;
        padding: 0.3rem;
    }
    
    .hamburger-line {
        width: 14px;
        height: 1.5px;
    }
    
    .slide-nav {
        width: 240px;
        left: -240px;
    }
    
    .slide-nav-header {
        padding: 1rem;
    }
    
    .slide-nav-logo {
        font-size: 0.9rem;
        gap: 0.6rem;
    }
    
    .slide-nav-logo i {
        font-size: 1.1rem;
    }
    
    .slide-nav-close {
        width: 28px;
        height: 28px;
    }
    
    .slide-nav-content {
        padding: 1.2rem 0;
    }
    
    .slide-nav-item {
        padding: 0.7rem 1rem;
        gap: 0.8rem;
    }
    
    .slide-nav-item i {
        font-size: 1rem;
        width: 18px;
    }
    
    .slide-nav-item span {
        font-size: 0.85rem;
    }
}

/* Search Styles */
.search-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.search-container:focus-within {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ff6b6b;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
}

.search-input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    width: 250px;
    transition: width 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-btn {
    background: #ff6b6b;
    border: none;
    border-radius: 50%;
    width: 40px; /* Reduced size */
    height: 40px; /* Reduced size */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #ff5252;
    transform: scale(1.05);
}

/* Main Content */
.main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px); /* Adjusted for bottom nav */
    margin-bottom: 80px; /* Space for bottom nav */
}

.section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    background: linear-gradient(45deg, #ff6b6b, #ffa726);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Movies Grid - Mobile-first responsive design */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    gap: 1rem;
    margin-top: 1rem;
}

/* Tablet and larger screens */
@media (min-width: 768px) {
    .movies-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on tablet+ */
        gap: 1.5rem;
    }
}

/* Movie Card Styles */
.movie-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.movie-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 107, 107, 0.5);
}

/* Movie thumbnail with fixed 16:9 aspect ratio */
.movie-thumbnail {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio (9/16 * 100) */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.movie-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Views overlay on movie thumbnail */
.movie-views-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #4caf50;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(76, 175, 80, 0.3);
    z-index: 2;
}

.movie-views-overlay i {
    font-size: 0.7rem;
}

.movie-card:hover .movie-thumbnail img {
    transform: scale(1.05);
}

.movie-info {
    padding: 1.5rem;
}

.movie-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #ffffff;
    line-height: 1.3;
}

/* Movie stats mini section */
.movie-stats-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    gap: 0.5rem;
}

.views-count {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #4caf50;
    font-size: 0.8rem;
    font-weight: 600;
}

.views-count i {
    font-size: 0.75rem;
}

.movie-category-tag {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid rgba(33, 150, 243, 0.3);
    white-space: nowrap;
}

.movie-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Movie card hover effect */
.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 107, 107, 0.5);
}

/* Loading and Error States */
.loading {
    text-align: center;
    padding: 3rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.hidden {
    display: none !important;
}

/* Search Results */
#searchResults {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Advanced Search Styles */
.advanced-search-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-input-container {
    position: relative;
    margin-bottom: 2rem;
}

.advanced-search-input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #ffffff;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
}

.advanced-search-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ff6b6b;
    box-shadow: 0 0 25px rgba(255, 107, 107, 0.4);
    transform: translateY(-2px);
}

.advanced-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.suggestion-item {
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.suggestion-item:hover {
    background: rgba(255, 107, 107, 0.2);
    transform: translateX(5px);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-icon {
    color: #ff6b6b;
    width: 20px;
    text-align: center;
}

.suggestion-text {
    flex: 1;
}

.suggestion-type {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 107, 107, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
}

/* Categories Display */
.categories-container {
    margin-bottom: 2rem;
}

.category-section {
    margin-bottom: 2.5rem;
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #ffffff;
    border-left: 4px solid #ff6b6b;
    padding-left: 1rem;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.category-pill {
    background: rgba(255, 107, 107, 0.2);
    color: #ffffff;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 107, 107, 0.3);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.category-pill:hover,
.category-pill.active {
    background: linear-gradient(45deg, #ff6b6b, #ffa726);
    border-color: #ff6b6b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.category-pill.all-categories {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.category-pill.all-categories:hover,
.category-pill.all-categories.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

.filter-toggle-btn {
    background: linear-gradient(45deg, #ff6b6b, #ffa726);
    border: none;
    border-radius: 25px;
    padding: 0.8rem 1.5rem;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.filter-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.filter-panel {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.9rem;
}

.filter-select {
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.filter-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ff6b6b;
}

.filter-select option {
    background: #2a2a2a;
    color: #ffffff;
}

.year-filter {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.year-slider {
    width: 100%;
    height: 5px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.year-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff6b6b;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.year-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff6b6b;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.year-display {
    text-align: center;
    font-weight: 600;
    color: #ff6b6b;
}

.filter-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(45deg, #ff6b6b, #ffa726);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: rgba(158, 158, 158, 0.8);
    color: white;
}

.btn-secondary:hover {
    background: rgba(117, 117, 117, 0.8);
    transform: translateY(-2px);
}

.advanced-search-results {
    margin-top: 2rem;
}

.results-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.admin-link {
    color: #ff6b6b;
    text-decoration: none;
    margin-left: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.admin-link:hover {
    color: #ff5252;
    text-decoration: underline;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.8rem 0;
    z-index: 100;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 60px;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    transform: translateY(-2px);
}

.bottom-nav-item i {
    font-size: 1.2rem;
}

.bottom-nav-item span {
    font-size: 0.7rem;
    font-weight: 600;
}

/* Responsive Design - Mobile-first approach */
@media (max-width: 767px) {
    .header .container {
        flex-direction: row;
        gap: 1rem;
        justify-content: space-between;
    }

    .nav-left, .nav-right {
        flex: 1;
    }

    .nav-right {
        justify-content: flex-end;
    }

    .search-input {
        width: 150px;
    }

    .logo h1 {
        font-size: 1.4rem; /* Reduced responsive size for mobile */
    }
    
    .logo i {
        font-size: 1.6rem; /* Reduced size */
    }

    .section-title {
        font-size: 1.5rem;
    }

    /* Movies grid already optimized for mobile */
    .movies-grid {
        gap: 0.8rem;
    }

    .container {
        padding: 0 15px;
    }

    .main {
        margin-bottom: 90px; /* More space for bottom nav on mobile */
    }
    
    /* Advanced search mobile styles */
    .filter-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .advanced-search-container {
        padding: 1.5rem;
    }
    
    .search-btn {
        width: 36px; /* Reduced mobile size */
        height: 36px; /* Reduced mobile size */
    }
}

@media (max-width: 480px) {
    .search-input {
        width: 120px;
    }

    .logo h1 {
        font-size: 1.2rem; /* Even smaller for very small screens */
    }
    
    .logo i {
        font-size: 1.4rem; /* Reduced size */
    }

    .movie-info {
        padding: 1rem;
    }

    .section-title {
        font-size: 1.3rem;
    }
    
    .movies-grid {
        gap: 0.5rem;
    }

    .bottom-nav-item span {
        font-size: 0.6rem;
    }

    .bottom-nav-item i {
        font-size: 1rem;
    }
}

/* Animation for movie cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.movie-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Legal Pages Modal */
.legal-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    animation: modalFadeIn 0.3s ease;
}

.legal-modal-content {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-20px);
    animation: modalSlideIn 0.4s ease-out forwards;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.legal-modal-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 15px 15px 0 0;
}

.legal-modal-header h2 {
    color: #ffffff;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.legal-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.legal-modal-close:hover {
    background: rgba(255, 107, 107, 0.3);
    transform: scale(1.1);
}

.legal-modal-body {
    padding: 2rem;
    color: #ffffff;
    line-height: 1.6;
}

.legal-modal-body h3 {
    color: #ff6b6b;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.2rem;
}

.legal-modal-body p {
    margin-bottom: 1rem;
    text-align: justify;
}

.legal-modal-body ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-modal-body li {
    margin-bottom: 0.5rem;
}

/* Request Modal */
.request-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    animation: modalFadeIn 0.3s ease;
}

.request-modal-content {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-20px);
    animation: modalSlideIn 0.4s ease-out forwards;
}

.request-modal-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 15px 15px 0 0;
}

.request-modal-header h2 {
    color: #ffffff;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.request-modal-header i {
    color: #ff6b6b;
}

.request-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.request-modal-close:hover {
    background: rgba(255, 107, 107, 0.3);
    transform: scale(1.1);
}

.request-modal-body {
    padding: 2rem;
}

.request-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.request-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.request-form label {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
}

.request-form input,
.request-form select,
.request-form textarea {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.request-form input:focus,
.request-form select:focus,
.request-form textarea:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ff6b6b;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.3);
    transform: translateY(-2px);
}

.request-form input::placeholder,
.request-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.request-form select option {
    background: #2a2a2a;
    color: #ffffff;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(45deg, #ff6b6b, #ffa726);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: rgba(158, 158, 158, 0.8);
    color: white;
}

.btn-secondary:hover {
    background: rgba(117, 117, 117, 0.8);
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Mobile Responsive for Modals */
@media (max-width: 768px) {
    .legal-modal-content,
    .request-modal-content {
        margin: 5% auto;
        width: 95%;
    }
    
    .legal-modal-header,
    .request-modal-header {
        padding: 1rem;
    }
    
    .legal-modal-header h2,
    .request-modal-header h2 {
        font-size: 1.2rem;
    }
    
    .legal-modal-body,
    .request-modal-body {
        padding: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 107, 0.6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 107, 0.8);
}