/* Movies Page Styling - Matching Website Theme */

/* CSS Variables - Match main site theme */
:root {
    --primary-color: #E52E2D;
    --text-color: #454545;
    --bg-color: #fff;
    --card-bg: #fff;
    --border-color: #a3a3a3;
    --primary-color-rgb: 229, 46, 45;
    --secondary-color: #6c757d;
    --accent-color: #28a745;
    --bg-color: #ffffff;
    --card-bg: #f8f9fa;
    --text-color: #333333;
    --text-secondary: #6c757d;
    --border-color: #dee2e6;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
    --gradient: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

/* Dark theme variables */
[data-theme="dark"] {
    --primary-color: #ff4444;
    --text-color: #fff;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --border-color: #333;
    --text-color: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #404040;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.4);
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
}

/* Add smooth transitions for all theme-related elements */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Theme switcher removed - using main site's theme toggle */

/* Hero Section - Professional Design with Header Clearance */
.hero-section {
    background: var(--gradient) !important;
    color: white !important;
    padding: 90px 0 50px !important; /* Reduced padding for minimal height */
    margin-top: 70px !important; /* Header height compensation */
    text-align: center;
    position: relative;
    overflow: visible !important; /* Allow content to be visible */
    min-height: 300px !important; /* Minimal height for content */
    max-height: 400px !important; /* Limit maximum height */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important; /* Ensure height is not constrained */
    z-index: 1 !important; /* Below header but above other content */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/pexels-vlada-karpovich-7433839.jpg') center/cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%;
    background: linear-gradient(135deg, rgba(229, 46, 45, 0.85), rgba(40, 167, 69, 0.75));
    z-index: -1;
}

.hero-content {
    z-index: 10; /* Increased z-index to ensure visibility */
    max-width: 1000px;
    margin: 0.8rem auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.hero-title {
    font-size: 2.8rem; /* Reduced font size for minimal height */
    font-weight: 800;
    margin-bottom: 1rem; /* Reduced margin */
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: white !important; /* Ensure white color */
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 11;
    position: relative;
    display: block !important;
}

.hero-subtitle {
    font-size: 1.3rem; /* Reduced font size */
    margin-bottom: 1.5rem; /* Reduced margin */
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: white !important; /* Ensure white color */
    visibility: visible !important;
    z-index: 11;
    position: relative;
    display: block !important;
}

/* Movie Slideshow Styles */
.movie-slideshow {
    margin: 1rem 0; /* Reduced margin for minimal height */
    padding: 0 20px;
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 10; /* Ensure slideshow is visible */
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

.slideshow-title {
    font-size: 1.3rem; /* Reduced font size */
    font-weight: 600;
    margin-bottom: 1rem; /* Reduced margin */
    color: #ffd700 !important; /* Ensure golden color */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    visibility: visible !important;
    z-index: 11;
    position: relative;
    display: block !important;
}

.slideshow-container {
    position: relative;
    max-width: 800px; /* Reduced width for minimal design */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px; /* Reduced border radius */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 200px; /* Fixed height for minimal design */
}

.slideshow-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 10px; /* Reduced gap */
    height: 100%;
}

.slideshow-item {
    min-width: 160px; /* Reduced width */
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px; /* Reduced border radius */
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.slideshow-item:hover {
    transform: translateY(-3px) scale(1.03); /* Reduced transform for minimal effect */
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.slideshow-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

.slideshow-item-content {
    padding: 1rem;
    text-align: center;
}

.slideshow-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
    line-height: 1.3;
}

.slideshow-item .year {
    font-size: 0.9rem;
    color: #ffd700;
    font-weight: 500;
}

.slideshow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    width: 40px; /* Reduced size for minimal design */
    height: 40px; /* Reduced size for minimal design */
    border-radius: 50%;
    font-size: 1.2rem; /* Reduced font size */
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.slideshow-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.05); /* Reduced scale effect */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.prev-btn {
    left: 10px; /* Reduced positioning */
}

.next-btn {
    right: 10px; /* Reduced positioning */
}

.slideshow-dots {
    display: flex;
    justify-content: center;
    gap: 8px; /* Reduced gap */
    margin-top: 1rem; /* Reduced margin */
}

.dot {
    width: 10px; /* Reduced size for minimal design */
    height: 10px; /* Reduced size for minimal design */
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #ffd700;
    transform: scale(1.1); /* Reduced scale effect for minimal design */
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    min-width: 120px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.accent-text {
    color: #ffd700 !important; /* Golden color */
    font-family: 'Dancing Script', cursive;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 12;
    position: relative;
}

/* Search and Filter Section - Enhanced Design */
.search-filter-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--card-bg), rgba(var(--primary-color-rgb), 0.05));
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-container input {
    flex: 1;
    padding: 18px 25px;
    border: 2px solid var(--border-color);
    border-radius: 50px 0 0 50px;
    font-size: 1.1rem;
    background: var(--bg-color);
    color: var(--text-color);
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.search-container input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(var(--primary-color-rgb), 0.15);
    transform: translateY(-2px);
}

.search-container button {
    padding: 18px 30px;
    background: linear-gradient(135deg, var(--primary-color), #ff6b6b);
    color: white;
    border: none;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.3);
}

.search-container button:hover {
    background: linear-gradient(135deg, #c41e3a, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-color-rgb), 0.4);
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.filter-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 180px;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-color);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select {
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.15);
    transform: translateY(-2px);
}

/* Main Content - Professional Spacing */
.main-content {
    padding: 80px 0;
    background: var(--bg-color);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-color);
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Movies Grid - Enhanced Design */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 0 10px;
}

.movie-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    animation: fadeIn 0.6s ease forwards;
    display: flex;
    flex-direction: column;
    height: auto;
}

.movie-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
    z-index: -1;
}

.movie-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.movie-card:hover::before {
    opacity: 0.1;
}

.movie-poster {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

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

.movie-card:hover .movie-poster img {
    transform: scale(1.1);
}

.movie-quality {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, var(--primary-color), #ff6b6b);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    animation: pulse 2s infinite;
}

.movie-info {
    padding: 2rem 1.5rem;
    background: var(--card-bg);
}

.movie-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
}

.movie-year, .movie-genre, .movie-rating {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(var(--primary-color-rgb), 0.2);
}

.movie-rating {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    border-color: #ffd700;
}

.movie-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0.8rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: justify;
    flex: 1;
}

.movie-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: auto;
    padding-top: 0.8rem;
}

.btn {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #ff6b6b);
    color: white;
    box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-color-rgb), 0.5);
    background: linear-gradient(135deg, #c41e3a, var(--primary-color));
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #6c757d);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
    background: linear-gradient(135deg, #5a6268, var(--secondary-color));
}

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

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
}

.modal-content {
    background: var(--card-bg);
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);
    animation: slideInUp 0.4s ease;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.close-modal:hover {
    color: #fff;
    background: var(--primary-color);
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
}

.modal-poster {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.modal-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.modal-info {
    background: var(--card-bg);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.modal-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

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

/* Video Modal - Enhanced for better audio/video experience */
.video-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
}

.video-container {
    position: relative;
    width: 95%;
    max-width: 1200px;
    margin: 2% auto;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
    animation: slideInUp 0.4s ease;
}

.video-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.video-title {
    color: #fff;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 500;
}

.close-video {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-video:hover {
    background: rgba(255, 68, 68, 0.8);
    transform: scale(1.1);
}

.video-player-wrapper {
    position: relative;
    padding: 20px;
}

#video-player {
    width: 100%;
    height: auto;
    max-height: 70vh;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: #000;
}

/* Custom Controls */
.custom-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 15px;
    backdrop-filter: blur(10px);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.volume-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    min-width: 40px;
}

.volume-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.volume-slider {
    flex: 1;
    max-width: 150px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(var(--primary-color-rgb), 0.6);
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.volume-display {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    min-width: 45px;
    text-align: center;
}

.playback-controls {
    display: flex;
    gap: 10px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 18px;
    padding: 10px 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.4);
}

.video-info {
    padding: 0 20px 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-container {
        width: 98%;
        margin: 1% auto;
    }
    
    .custom-controls {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .volume-control {
        width: 100%;
        justify-content: center;
    }
    
    .volume-slider {
        max-width: 200px;
    }
    
    .video-header {
        padding: 12px 15px;
    }
    
    .video-title {
        font-size: 1.1rem;
    }
}

/* Volume slider track styling for Firefox */
.volume-slider::-moz-range-track {
    background: rgba(255, 255, 255, 0.3);
    height: 6px;
    border-radius: 3px;
    border: none;
}

.volume-slider::-moz-range-progress {
    background: var(--primary-color);
    height: 6px;
    border-radius: 3px;
}

/* Volume animations */
@keyframes volumePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.volume-btn.active {
    animation: volumePulse 0.3s ease;
}

/* Professional Animations and Effects */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.movie-card {
    animation: slideInUp 0.6s ease forwards;
}

.movie-quality {
    animation: pulse 2s infinite;
}

/* Optimized Loading Styles for Fast Performance */
.video-loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    pointer-events: none;
}

.loading-spinner-simple {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: fastSpin 0.8s linear infinite;
}

.quick-play-btn {
    transition: all 0.3s ease;
}

.quick-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.05);
    background: rgba(0, 0, 0, 0.9) !important;
}

.quick-play-btn .play-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

/* Fast spinner animation */
@keyframes fastSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Optimized modal animations */
.video-modal {
    animation: fadeInFast 0.2s ease;
}

.video-container {
    animation: slideInUpFast 0.2s ease;
}

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

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

/* Enhanced Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Professional Focus Styles */
.btn:focus,
.search-container input:focus,
.filter-group select:focus {
    outline: 3px solid rgba(var(--primary-color-rgb), 0.3);
    outline-offset: 2px;
}

/* Loading Animation Enhancement */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

/* Enhanced Hover Effects for Professional Look */
.search-container input:hover {
    border-color: rgba(var(--primary-color-rgb), 0.5);
}

.filter-group select:hover {
    border-color: rgba(var(--primary-color-rgb), 0.5);
}

/* Glass Morphism Effect for Modern Look */
.hero-overlay {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Enhanced Typography */
body {
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Professional Shadow Effects */
.movie-card:hover {
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(var(--primary-color-rgb), 0.1);
}

/* Smooth Transitions for All Interactive Elements */
.movie-card,
.btn,
.search-container input,
.filter-group select,
.movie-poster img {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Responsive Design */

/* Tablet and Small Laptops */
@media (max-width: 1024px) {
    .hero-section {
        padding: 120px 0 60px;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .hero-stats {
        gap: 2rem; /* Reduced for minimal design */
    }
    
    .stat {
        min-width: 100px;
        padding: 0.8rem;
    }
    
    /* .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
    } */
    
    .search-container {
        max-width: 500px;
    }
    
    .filter-container {
        gap: 2rem;
    }
    
    .filter-group {
        min-width: 160px;
    }
}

/* Mobile Landscape and Large Tablets */
@media (max-width: 768px) {
    .hero-section {
        padding: 70px 0 40px !important; /* Further reduced padding for minimal height */
        margin-top: 60px !important; /* Adjusted for mobile header */
        min-height: 250px !important; /* Reduced minimum height */
        max-height: 350px !important; /* Reduced maximum height */
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        z-index: 1 !important;
    }
    
    .hero-content {
        padding: 0 15px !important; /* Reduced side padding */
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 10 !important;
    }
    
    .hero-title {
        font-size: 2rem !important; /* Further reduced for minimal height */
        margin-bottom: 0.8rem !important; /* Reduced margin */
        line-height: 1.2 !important;
        color: white !important;
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important; /* Further reduced */
        margin-bottom: 0.8rem !important; /* Reduced margin */
        color: white !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .movie-slideshow {
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 10 !important;
    }
    
    .slideshow-title {
        color: #ffd700 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .hero-stats {
        gap: 1.5rem; /* Smaller gaps */
        margin-top: 1.5rem;
        flex-wrap: wrap;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .stat {
        min-width: 90px;
        padding: 0.7rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Slideshow responsive styles */
    .movie-slideshow {
        margin: 1.5rem 0; /* Reduced margin */
        padding: 0 10px;
    }
    
    .slideshow-title {
        font-size: 1.4rem; /* Slightly reduced */
        margin-bottom: 1rem; /* Reduced margin */
    }
    
    .slideshow-container {
        max-width: 100%; /* Full width on tablets */
    }
    
    .slideshow-item {
        min-width: 160px;
    }
    
    .slideshow-item img {
        height: 200px; /* Reduced height */
    }
    
    .slideshow-item-content {
        padding: 0.7rem; /* Reduced padding */
    }
    
    .slideshow-item h4 {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    
    .slideshow-item .year {
        font-size: 0.8rem;
    }
    
    .slideshow-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .slideshow-dots {
        margin-top: 1rem; /* Reduced margin */
    }
    
    .search-filter-section {
        padding: 40px 0;
    }
    
    .search-container {
        margin-bottom: 2rem;
        max-width: 100%;
        padding: 0 10px;
    }
    
    .search-container input {
        font-size: 1rem;
        padding: 15px 20px;
    }
    
    .search-container button {
        padding: 15px 25px;
        font-size: 1rem;
    }
    
    .filter-container {
        gap: 1.5rem;
        padding: 0 10px;
    }
    
    .filter-group {
        min-width: 140px;
    }
    
    .main-content {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }
    
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 0 5px;
    }
    
    .movie-poster {
        height: 380px;
    }
    
    .movie-info {
        padding: 1.5rem;
    }
    
    .container {
        padding: 0 15px;
    }
}
    
    .section-title {
        font-size: 1.8rem; /* Reduced from 2rem */
        margin-bottom: 2rem;
    }
    
    .theme-switcher {
        bottom: 20px;
        right: 20px;
    }
    
    .theme-toggle-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    /* Navigation improvements for mobile */
    .container {
        padding: 0 15px;
    }


/* Mobile Portrait */
@media (max-width: 480px) {
    .hero-section {
        padding: 80px 0 40px; /* Compact padding for mobile */
        margin-top: 50px; /* Reduced for mobile header */
    }
    
    .hero-content {
        padding: 0 10px; /* Minimal side padding */
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 1.8rem; /* Mobile-optimized size */
        margin-bottom: 0.8rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0.8rem; /* Minimal margin */
    }
    
    .hero-stats {
        gap: 1rem;
        margin-top: 1rem; /* Reduced margin */
        flex-direction: row;
        justify-content: center;
    }
    
    .stat {
        min-width: 70px;
        padding: 0.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Slideshow mobile styles */
    .movie-slideshow {
        margin: 1rem 0; /* Compact margin */
        padding: 0 5px;
        width: 100%;
    }
    
    .slideshow-title {
        font-size: 1.2rem; /* Compact title */
        margin-bottom: 0.8rem;
    }
    
    .slideshow-container {
        border-radius: 15px;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .slideshow-item {
        min-width: 140px; /* Larger items for mobile */
        flex-shrink: 0;
    }
    
    .slideshow-item img {
        height: 200px; /* Reasonable height */
    }
    
    .slideshow-item-content {
        padding: 0.6rem;
    }
    
    .slideshow-item h4 {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
        line-height: 1.2;
    }
    
    .slideshow-item .year {
        font-size: 0.75rem;
    }
    
    .slideshow-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .prev-btn {
        left: 5px;
    }
    
    .next-btn {
        right: 5px;
    }
    
    .slideshow-dots {
        gap: 8px;
        margin-top: 1rem;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .search-filter-section {
        padding: 30px 0;
    }
    
    .search-container {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 1.5rem;
    }
    
    .search-container input {
        border-radius: 25px;
        font-size: 0.95rem;
        padding: 12px 18px;
    }
    
    .search-container button {
        border-radius: 25px;
        font-size: 0.95rem;
    }
    
    .container {
        padding: 0 10px;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .movie-poster {
        height: 280px;
    }
    
    .movie-card {
        max-width: 320px;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .main-content {
        padding: 40px 0; /* Reduced from 60px */
    }
    
    .search-filter-section {
        padding: 30px 0;
    }
    
    .search-container {
        margin-bottom: 1.5rem;
    }
    
    .search-container input {
        max-width: 250px;
        padding: 10px 15px;
    }
    
    .search-container button {
        padding: 10px 18px;
    }
    
    .filter-container {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    
    .filter-group {
        width: 100%;
        max-width: 200px;
    }
    
    .filter-group select {
        width: 100%;
        min-width: unset;
    }
    
    .movies-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .featured-carousel {
        gap: 1rem;
        padding: 15px 0;
    }
    
    .featured-card {
        min-width: 220px;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .movie-card {
        max-width: 320px;
        margin: 0 auto;
    }
    
    .container {
        padding: 0 10px;
    }
}

/* Grid layout responsive design */
@media (max-width: 1200px) {
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
        padding: 0 5px;
    }
    
    .movie-poster {
        height: 250px;
    }
    
    .movie-info {
        padding: 1rem;
    }
    
    .movie-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .movies-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .movie-poster {
        height: 220px;
    }
    
    .movie-info {
        padding: 0.8rem;
    }
}

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

.movie-card {
    animation: fadeIn 0.6s ease forwards;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.btn:focus,
.search-container input:focus,
.filter-group select:focus,
.theme-toggle-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Enhanced Modal Styling for Professional Look */
.modal {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);
    animation: slideInUp 0.4s ease;
}

.video-modal {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.video-container {
    background: rgba(0, 0, 0, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideInUp 0.4s ease;
}

.close-modal, .close-video {
    background: rgba(var(--primary-color-rgb), 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.close-modal:hover, .close-video:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Professional Page Layout */
.main-content {
    position: relative;
    z-index: 1;
}

/* Add subtle gradient background for depth */
body {
    background: linear-gradient(135deg, var(--bg-color) 0%, rgba(var(--primary-color-rgb), 0.02) 100%);
}

/* Enhanced Dark Mode Support */
[data-theme="dark"] .modal-content {
    background: var(--card-bg);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .close-modal,
[data-theme="dark"] .close-video {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Final Polish - Remove CSS Lint Errors */
.movie-card:last-child {
    margin-bottom: 0;
}

/* Fix for body visibility and preloader issues */
body {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
}

/* Ensure main content is always visible */
.main-content,
.hero-section,
.search-filter-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Override any hiding styles from main site */
section {
    display: block !important;
}

/* Fix preloader on movies page */
#preload-overlay {
    z-index: 9999;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out;
}

#preload-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Extra Small Devices - 360px and below */
@media (max-width: 360px) {
    .hero-section {
        padding: 90px 0 40px; /* Further reduced padding */
    }
    
    .hero-title {
        font-size: 1.6rem; /* Even smaller for tiny screens */
        margin-bottom: 0.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }
    
    .movie-slideshow {
        margin: 0.8rem 0;
    }
    
    .slideshow-title {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }
    
    .slideshow-item {
        min-width: 120px;
    }
    
    .slideshow-item img {
        height: 160px;
    }
    
    .slideshow-item h4 {
        font-size: 0.7rem;
    }
    
    .slideshow-item .year {
        font-size: 0.65rem;
    }
    
    .hero-stats {
        gap: 0.8rem;
        margin-top: 1rem;
    }
    
    .stat {
        min-width: 60px;
        padding: 0.4rem;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
}

/* Additional mobile fixes for slideshow */
@media (max-width: 380px) {
    .hero-section {
        padding: 70px 0 30px; /* Even more compact */
    }
    
    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 0.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }
    
    .movie-slideshow {
        margin: 0.8rem 0;
        padding: 0;
    }
    
    .slideshow-title {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }
    
    .slideshow-container {
        margin: 0 5px;
    }
    
    .slideshow-item {
        min-width: 120px;
    }
    
    .slideshow-item img {
        height: 170px;
    }
    
    .slideshow-item h4 {
        font-size: 0.8rem;
    }
    
    .slideshow-item .year {
        font-size: 0.7rem;
    }
    
    .slideshow-btn {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .hero-stats {
        gap: 0.8rem;
        margin-top: 0.8rem;
    }
    
    .stat {
        min-width: 60px;
        padding: 0.4rem;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}
