/* Modern Movie Platform Stylesheet */
:root {
    --primary-color: #0a0a0a;
    --secondary-color: #1a1a1a;
    --accent-color: #f59e0b;
    --accent-hover: #d97706;
    --text-color: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --card-bg: #1e293b;
    --card-hover: #334155;
    --border-color: #334155;
    --gradient-start: #f59e0b;
    --gradient-end: #d97706;
    --success-color: #10b981;
    --warning-color: #f59e0b;
}

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

body {
    background-color: var(--primary-color);
    color: var(--text-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Navigation Styles */
.navbar {
    background-color: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.navbar-brand {
    color: var(--accent-color) !important;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

.nav-link.active {
    color: var(--accent-color) !important;
}

.search-bar {
    background-color: var(--card-bg);
    border-radius: 25px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.search-bar:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-color);
    padding: 0.75rem 1rem;
}

.search-bar input:focus {
    outline: none;
    box-shadow: none;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}


/* Hero Section */
.hero-section {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    height: 100%;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 0 2rem;
}

.hero-content-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-main-content {
    flex: 1;
    max-width: 600px;
    padding-right: 2rem;
}

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

.rating-stars {
    display: flex;
    gap: 0.25rem;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.rating-score {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

.btn-watch-now {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-watch-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    color: white;
    text-decoration: none;
}

/* Navigation Buttons */
.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.hero-nav-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.hero-nav-prev {
    left: 1rem;
}

.hero-nav-next {
    right: 1rem;
}

/* Hero Sidebar */
.hero-sidebar {
    width: 300px;
    flex-shrink: 0;
    padding: 2rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.sidebar-title {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.up-next-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.up-next-item {
    transition: transform 0.3s ease;
}

.up-next-item:hover {
    transform: translateX(5px);
}

.up-next-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.up-next-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    text-decoration: none;
}

.up-next-thumbnail {
    position: relative;
    width: 80px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.up-next-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.up-next-thumbnail:hover .play-overlay {
    opacity: 1;
}

.play-overlay i {
    color: white;
    font-size: 1.5rem;
}

.up-next-info {
    flex: 1;
    min-width: 0;
}

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

.up-next-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--accent-color);
    font-size: 0.9rem;
}

.up-next-rating i {
    color: var(--accent-color);
}

.up-next-rating span {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Category Page Styles */
.category-hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 40vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.categories-main-section {
    padding: 4rem 0;
}

.category-count {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

/* Enhanced Category Grid */
.enhanced-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.enhanced-category-card {
    position: relative;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    transition: all 0.4s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.enhanced-category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    color: white;
    text-decoration: none;
}

.category-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.category-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 2;
}

.category-card-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.enhanced-category-card .category-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.enhanced-category-card:hover .category-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.enhanced-category-card .category-icon i {
    font-size: 1.8rem;
    color: white;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.category-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.category-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.enhanced-category-card:hover .category-arrow {
    opacity: 1;
    transform: translateX(0);
}

.category-arrow i {
    font-size: 1.2rem;
    color: white;
}

/* Load More Section */
.load-more-section {
    margin-top: 4rem;
    text-align: center;
}

.btn-load-more {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-load-more:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

/* Responsive Category Page */
@media (max-width: 768px) {
    .category-hero-section {
        min-height: 30vh;
        padding: 2rem 0;
    }
    
    .categories-main-section {
        padding: 2rem 0;
    }
    
    .enhanced-category-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .enhanced-category-card {
        height: 160px;
    }
    
    .category-card-content {
        padding: 1.5rem;
    }
    
    .category-title {
        font-size: 1.2rem;
    }
    
    .category-description {
        font-size: 0.9rem;
    }
    
    .enhanced-category-card .category-icon {
        width: 50px;
        height: 50px;
    }
    
    .enhanced-category-card .category-icon i {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .enhanced-category-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .enhanced-category-card {
        height: 140px;
    }
    
    .category-card-content {
        padding: 1rem;
    }
    
    .category-title {
        font-size: 1.1rem;
    }
    
    .category-description {
        font-size: 0.8rem;
    }
}

/* View All Movies Page Styles */
.view-all-hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 50vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.breadcrumb-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.breadcrumb-current {
    color: var(--accent-color);
    font-weight: 600;
}

.hero-breadcrumb i {
    color: var(--text-muted);
    font-size: 0.8rem;
}

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

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

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Filter and Sort Section */
.filter-sort-section {
    padding: 2rem 0;
    background: var(--secondary-color);
    border-radius: 12px;
    margin: 2rem 0;
}

.section-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.category-pills-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.sort-controls {
    text-align: right;
}

.sort-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.sort-btn {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.sort-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.sort-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Movies Listing Section */
.movies-listing-section {
    padding: 3rem 0;
}

.section-title-group {
    flex: 1;
}

.results-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
    display: block;
}

.view-options {
    display: flex;
    gap: 0.25rem;
}

.view-toggle {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-toggle:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.view-toggle.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* List View */
.movies-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.movies-grid.list-view .modern-movie-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.movies-grid.list-view .movie-poster-container {
    width: 120px;
    height: 180px;
    flex-shrink: 0;
}

.movies-grid.list-view .movie-info {
    flex: 1;
    padding: 0;
}

.movies-grid.list-view .movie-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.movies-grid.list-view .movie-meta {
    margin-top: 0.5rem;
}

/* Enhanced Pagination */
.pagination-container {
    margin-top: 4rem;
    padding: 2rem 0;
}

.pagination .page-link {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.75rem 1rem;
    margin: 0 0.125rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pagination .page-link:hover {
    background: var(--card-hover);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-1px);
    text-decoration: none;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.pagination .page-item.disabled .page-link {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Responsive View All Movies */
@media (max-width: 768px) {
    .view-all-hero-section {
        min-height: 40vh;
        padding: 2rem 0;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .filter-sort-section {
        padding: 1.5rem;
    }
    
    .category-pills-container {
        margin-bottom: 1rem;
    }
    
    .sort-controls {
        text-align: left;
    }
    
    .sort-buttons {
        justify-content: flex-start;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .view-options {
        align-self: flex-end;
    }
    
    .movies-grid.list-view .modern-movie-card {
        flex-direction: column;
        text-align: center;
    }
    
    .movies-grid.list-view .movie-poster-container {
        width: 150px;
        height: 225px;
    }
}

@media (max-width: 480px) {
    .hero-breadcrumb {
        flex-wrap: wrap;
        font-size: 0.8rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .category-pills-container {
        justify-content: center;
    }
    
    .sort-buttons {
        justify-content: center;
    }
    
    .view-options {
        align-self: center;
    }
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-card-stack {
    position: relative;
    width: 300px;
    height: 400px;
}

.hero-movie-card {
    position: absolute;
    width: 200px;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.hero-movie-card.card-1 {
    top: 0;
    left: 0;
    z-index: 3;
    transform: rotate(-5deg);
}

.hero-movie-card.card-2 {
    top: 20px;
    left: 40px;
    z-index: 2;
    transform: rotate(5deg);
}

.hero-movie-card.card-3 {
    top: 40px;
    left: 80px;
    z-index: 1;
    transform: rotate(-2deg);
}

.hero-movie-card:hover {
    transform: translateY(-10px) scale(1.05);
    z-index: 10;
}

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

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.hero-movie-card:hover .card-overlay {
    transform: translateY(0);
}

.card-overlay h5 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.rating-badge {
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

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

/* Button Styles */
.btn-primary-hero {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-primary-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    color: white;
}

.btn-secondary-hero {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--accent-color);
    padding: 1rem 2.5rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-secondary-hero:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.btn-primary-modern {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    color: white;
}

.btn-secondary-modern {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-secondary-modern:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Container Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Category Pills Section */
.category-pills-section {
    padding: 2rem 0;
    background: var(--primary-color);
}

.category-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.category-pill {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-block;
}

.category-pill:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

.category-pill.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Featured Banner */
.featured-banner {
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.banner-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    display: flex;
    align-items: center;
    border-radius: 12px;
    overflow: hidden;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    max-width: 600px;
}

.banner-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.banner-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.banner-rating .stars {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.banner-rating .rating-text {
    color: var(--text-secondary);
    font-weight: 600;
}

.banner-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.banner-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-info {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-info:hover {
    background: var(--text-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Category Navigation */
.category-navigation {
    padding: 3rem 0;
    background: var(--secondary-color);
    margin: 2rem 0;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.category-header h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-color);
}

.view-all-categories {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.view-all-categories:hover {
    color: var(--accent-hover);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.category-card:hover {
    transform: translateY(-5px);
    background: var(--card-hover);
    color: var(--text-color);
    border-color: var(--accent-color);
}

.category-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.category-card h4 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.category-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Section Styles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.view-all-btn {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    color: var(--accent-hover);
    transform: translateX(5px);
}

/* Movie Grid Styles */
.featured-movies,
.genre-section {
    padding: 3rem 0;
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
}

.modern-movie-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.modern-movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
}

.movie-poster-container {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

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

.modern-movie-card:hover .movie-poster {
    transform: scale(1.05);
}

.movie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-movie-card:hover .movie-overlay {
    opacity: 1;
}

.play-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.play-btn:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.movie-info {
    padding: 1.5rem;
}

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

.movie-title a {
    color: var(--text-color);
    transition: color 0.3s ease;
    text-decoration: none;
}

.movie-title a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.modern-movie-card:hover .movie-title a {
    color: var(--accent-color);
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.movie-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--warning-color);
}

.movie-category,
.movie-year {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Latest Spotlight Section */
.latest-spotlight {
    padding: 4rem 0;
    background: var(--secondary-color);
    margin: 2rem 0;
}

.spotlight-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.spotlight-header {
    text-align: center;
    margin-bottom: 3rem;
}

.spotlight-header .section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.spotlight-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.spotlight-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.spotlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spotlight-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;
}

.spotlight-image:hover .spotlight-overlay {
    opacity: 1;
}

.spotlight-play-btn {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.spotlight-play-btn:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
}

.spotlight-info {
    padding: 0 1rem;
}

.spotlight-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.spotlight-genres {
    color: var(--accent-color);
    font-size: 1.125rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.spotlight-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
    color: var(--warning-color);
}

.rating-value {
    color: var(--text-secondary);
    font-weight: 600;
}

.spotlight-description {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

/* Legacy compatibility styles */
.btn-play {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    color: white;
}

.view-all {
    color: var(--accent-color);
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}

.view-all:hover {
    color: var(--accent-hover);
}

.rating-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.stars {
    color: var(--warning-color);
}

/* Category pills for backward compatibility */
.category-pill {
    background-color: var(--card-bg);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 20px;
    margin-right: 10px;
    margin-bottom: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    text-decoration: none;
    display: inline-block;
}

.category-pill:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.category-pill.active {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Additional utility classes */
.text-gradient {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

.slide-up {
    animation: slideUp 0.6s ease-out;
}

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

/* Search Functionality Styles */
.navbar-search-form {
    min-width: 300px;
}

.search-container {
    position: relative;
}

.search-bar {
    background-color: var(--card-bg);
    border-radius: 25px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.search-bar:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-bar input {
    background: transparent !important;
    border: none;
    color: white !important;
    padding: 0.75rem 1rem;
}

.search-bar input:focus {
    outline: none;
    box-shadow: none;
    color: white !important;
    background: transparent !important;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.search-bar .input-group-text {
    background: transparent;
    border: none;
    color: var(--text-muted);
}

/* Search Suggestions Dropdown */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 0.5rem;
}

.search-suggestions.show {
    display: block !important;
}

.suggestion-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-color);
}

.suggestion-item:hover {
    background-color: var(--card-hover);
    color: white;
    text-decoration: none;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item.active {
    background-color: var(--card-hover);
    color: white;
}

.suggestion-image {
    width: 40px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.suggestion-content {
    flex: 1;
}

.suggestion-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.suggestion-item:hover .suggestion-title {
    color: white;
}

.suggestion-item.active .suggestion-title {
    color: white;
}

.suggestion-rating {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.suggestion-rating i {
    color: var(--warning-color);
}

.suggestions-loading {
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.no-suggestions {
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Search Results Page Styles */
.search-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.search-form-container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.search-form .input-group {
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    background: var(--primary-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 1rem;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
}

.search-input:focus {
    background: var(--primary-color);
    border-color: var(--accent-color);
    color: var(--text-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border: none;
    padding: 1rem 2rem;
    border-radius: 0 8px 8px 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.search-results .movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.movie-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-top: 0.5rem;
}

.no-results {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-top: 2rem;
}

.no-results .fa-search {
    color: var(--text-muted);
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination .page-link {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: var(--card-hover);
    border-color: var(--accent-color);
    color: var(--text-color);
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-color: var(--accent-color);
    color: white;
}

.pagination .page-item.disabled .page-link {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-muted);
}

/* Mobile Search Styles */
@media (max-width: 768px) {
    .navbar-search-form {
        min-width: 200px;
    }
    
    .search-form-container {
        padding: 1rem;
    }
    
    .search-btn {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .search-results .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .navbar-search-form {
        min-width: 150px;
    }
    
    .search-input {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .search-btn {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
    
    .search-results .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

/* Movie Detail Page Styles */
.movie-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.detail-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.detail-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.detail-card h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.detail-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.detail-value {
    color: var(--text-color);
    font-weight: 600;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Responsive Movie Detail */
@media (max-width: 768px) {
    .movie-details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .detail-card {
        padding: 1.5rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-main-title {
        font-size: 2rem !important;
    }
    
    .spotlight-description {
        font-size: 1rem;
    }
    
    .spotlight-actions {
        justify-content: center;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
    }
    
    .hero-container {
        padding: 1rem;
        min-height: 50vh;
    }
    
    .hero-content-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-main-content {
        padding-right: 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-sidebar {
        width: 100%;
        padding: 1rem;
    }
    
    .up-next-list {
        flex-direction: row;
        overflow-x: auto;
        gap: 1rem;
        padding-bottom: 0.5rem;
    }
    
    .up-next-item {
        flex-shrink: 0;
        width: 200px;
    }
    
    .hero-nav-btn {
        display: none;
    }
    
    .banner-bg {
        min-height: 300px;
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-content {
        padding: 1.5rem;
    }
    
    .banner-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-play,
    .btn-info {
        width: 100%;
        justify-content: center;
    }
    
    .spotlight-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .spotlight-title {
        font-size: 2rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .category-card {
        padding: 1.5rem 1rem;
    }
    
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .category-navigation {
        padding: 2rem 0;
    }
    
    .featured-movies,
    .genre-section {
        padding: 2rem 0;
    }
    
    .latest-spotlight {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .hero-container {
        padding: 0.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .hero-sidebar {
        padding: 0.5rem;
    }
    
    .sidebar-title {
        font-size: 1.2rem;
    }
    
    .up-next-item {
        width: 150px;
    }
    
    .up-next-thumbnail {
        width: 60px;
        height: 90px;
    }
    
    .up-next-title {
        font-size: 0.9rem;
    }
    
    .btn-watch-now {
        width: 100%;
        justify-content: center;
    }
    
    .banner-title {
        font-size: 1.5rem;
    }
    
    .banner-content {
        padding: 1rem;
    }
    
    .btn-primary-modern,
    .btn-secondary-modern {
        width: 100%;
        justify-content: center;
    }
    
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .spotlight-title {
        font-size: 1.75rem;
    }
    
    .spotlight-description {
        font-size: 1rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .modern-hero {
        padding: 2rem 0;
    }
    
    .hero-container {
        padding: 0 0.5rem;
    }
    
    .spotlight-container {
        padding: 0 0.5rem;
    }
}