/* ===============================================
   CINEARENA - Netflix Style CSS
   Main Stylesheet
   =============================================== */

/* ===== CSS Variables ===== */
:root {
    --primary: #e50914;
    --primary-hover: #f40612;
    --secondary: #564d4d;
    --dark: #141414;
    --darker: #0a0a0a;
    --light: #e5e5e5;
    --gray: #808080;
    --success: #1db954;
    --warning: #f5c518;
    --info: #17a2b8;
    --gradient: linear-gradient(to right, #e50914, #b20710);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s ease;
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray);
}

/* ===== Side Navbar ===== */
.side-navbar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 70px;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    padding: 15px 0;
    transition: width 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.side-navbar:hover {
    width: 200px;
}

.side-navbar-brand {
    text-align: center;
    padding: 10px 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
}

.side-navbar-brand a {
    text-decoration: none;
}

.side-navbar-brand .logo-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
    white-space: nowrap;
}

.side-navbar:hover .side-navbar-brand .logo-text {
    font-size: 1.2rem;
}

.side-navbar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.side-navbar-nav .nav-item {
    position: relative;
}

.side-navbar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #b3b3b3;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
}

.side-navbar-nav .nav-link i {
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
    flex-shrink: 0;
}

.side-navbar-nav .nav-link span {
    margin-left: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.side-navbar:hover .nav-link span {
    opacity: 1;
}

.side-navbar-nav .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.side-navbar-nav .nav-link.active {
    color: #fff;
    background: linear-gradient(to right, var(--primary), transparent);
    border-left: 3px solid var(--primary);
}

.side-navbar-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
    margin-top: auto;
}

/* Tooltip for collapsed state */
.side-navbar:not(:hover) .nav-item[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 100;
}

.side-navbar:not(:hover) .nav-item:hover[data-tooltip]::after {
    opacity: 1;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-content {
    width: 100%;
    max-width: 700px;
    padding: 0 20px;
}

.search-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.search-close:hover {
    transform: rotate(90deg);
}

.search-overlay-form {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #fff;
    padding-bottom: 10px;
}

.search-overlay-form i {
    font-size: 1.5rem;
    color: #fff;
    margin-right: 15px;
}

.search-overlay-form input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 300;
}

.search-overlay-form input::placeholder {
    color: #666;
}

.search-suggestions-overlay {
    margin-top: 30px;
    max-height: 50vh;
    overflow-y: auto;
}

.search-suggestions-overlay .search-suggestion-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.search-suggestions-overlay .search-suggestion-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.search-suggestions-overlay .search-suggestion-item img {
    width: 50px;
    height: 75px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

/* Mobile Top Bar */
.mobile-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 1040;
}

@media (max-width: 991px) {
    .mobile-topbar {
        display: flex;
    }
}

.mobile-menu-toggle,
.mobile-search-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    padding: 10px;
    cursor: pointer;
}

.mobile-brand .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* Main Wrapper */
.main-wrapper {
    margin-left: 70px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* Hero section adjustment */
.netflix-hero {
    margin-left: -70px;
    width: calc(100% + 70px);
}

/* Footer adjustment */
.footer {
    margin-left: -70px;
    padding-left: calc(70px + 3rem);
}

@media (max-width: 991px) {
    .side-navbar {
        transform: translateX(-100%);
        width: 250px;
    }
    
    .side-navbar.active {
        transform: translateX(0);
    }
    
    .side-navbar .nav-link span {
        opacity: 1;
    }
    
    .main-wrapper {
        margin-left: 0;
        padding-top: 60px;
    }
    
    .netflix-hero {
        margin-left: 0;
        width: 100%;
        margin-top: -60px;
    }
    
    .footer {
        margin-left: 0;
        padding-left: 3rem;
    }
}

/* Mobile sidebar overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1045;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Old Navbar (hidden) */
.navbar {
    display: none;
}

/* ===== Search Form ===== */
.search-form {
    position: relative;
}

.search-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid transparent;
    color: var(--light);
    border-radius: 4px 0 0 4px;
    width: 200px;
    transition: var(--transition);
}

.search-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
    width: 300px;
    box-shadow: none;
}

.search-form .form-control::placeholder {
    color: var(--gray);
}

.search-form .btn {
    border-radius: 0 4px 4px 0;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--darker);
    border-radius: 0 0 8px 8px;
    box-shadow: var(--shadow);
    display: none;
    z-index: 1000;
}

.search-suggestions.show {
    display: block;
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: var(--transition);
}

.search-suggestion-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-suggestion-item img {
    width: 40px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
}

/* ===== Hero Section ===== */
.hero-section {
    margin-top: -76px;
    position: relative;
}

.hero-swiper {
    height: 80vh;
    min-height: 500px;
}

.hero-slide {
    height: 100%;
    background-size: cover;
    background-position: center top;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.2) 100%),
                linear-gradient(to top, var(--dark) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--light);
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.2rem;
}

.swiper-pagination-bullet {
    background: var(--light);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--primary);
    opacity: 1;
}

/* ===== Netflix Style Hero ===== */
.netflix-hero .hero-swiper {
    height: 100vh;
    min-height: 600px;
}

.netflix-hero .hero-slide {
    background-position: center center;
}

.netflix-hero .hero-overlay {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0.1) 100%),
                linear-gradient(to top, var(--dark) 0%, transparent 30%);
}

.netflix-hero .hero-content {
    position: absolute;
    bottom: 20%;
    left: 4%;
    top: auto;
    height: auto;
    display: block;
    padding: 0;
    max-width: 45%;
    z-index: 10;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.n-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    border-radius: 4px;
}

.series-text {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: #b3b3b3;
}

.hero-title-large {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    line-height: 1.1;
}

.hero-meta-netflix {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.match-score {
    color: #46d369;
    font-weight: 700;
    font-size: 1rem;
}

.hero-meta-netflix .year {
    color: #fff;
    font-weight: 500;
}

.quality-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px 6px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.hero-description-short {
    font-size: 1.1rem;
    color: #e5e5e5;
    margin-bottom: 12px;
    line-height: 1.5;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-ranking {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #b3b3b3;
    margin-bottom: 20px;
}

.hero-buttons-netflix {
    display: flex;
    gap: 12px;
}

.btn-play-netflix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: #fff;
    color: #141414;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-play-netflix:hover {
    background: rgba(255, 255, 255, 0.8);
    color: #141414;
}

.btn-info-netflix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: rgba(109, 109, 110, 0.7);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-info-netflix:hover {
    background: rgba(109, 109, 110, 0.5);
    color: #fff;
}

.hero-controls {
    position: absolute;
    right: 4%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.hero-control-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-control-btn:hover {
    border-color: #fff;
    background: rgba(0, 0, 0, 0.5);
}

.hero-pagination {
    bottom: 12% !important;
}

.hero-pagination .swiper-pagination-bullet {
    width: 40px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
}

.hero-pagination .swiper-pagination-bullet-active {
    background: rgba(255, 255, 255, 0.9);
}

/* Hero Video Background */
.netflix-hero .hero-slide {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-video-player {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
}

.netflix-hero .hero-slide .hero-overlay {
    z-index: 2;
}

.netflix-hero .hero-slide .hero-content {
    z-index: 10;
}

.netflix-hero .hero-slide .hero-controls {
    z-index: 10;
}

@media (max-width: 768px) {
    .hero-video {
        transform: translate(-50%, -50%) scale(1.5);
    }
}

@media (max-width: 991px) {
    .netflix-hero .hero-content {
        max-width: 70%;
    }
    
    .hero-title-large {
        font-size: 2.5rem;
    }
    
    .hero-controls {
        right: 2%;
    }
}

@media (max-width: 768px) {
    .netflix-hero .hero-swiper {
        height: 80vh;
    }
    
    .netflix-hero .hero-content {
        max-width: 90%;
        bottom: 15%;
        left: 3%;
    }
    
    .hero-title-large {
        font-size: 2rem;
    }
    
    .hero-description-short {
        font-size: 0.95rem;
    }
    
    .btn-play-netflix,
    .btn-info-netflix {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .hero-controls {
        display: none;
    }
}

/* ===== Main Content ===== */
.main-content {
    padding: 2rem 0;
    min-height: calc(100vh - 300px);
}

.page-content {
    padding-top: 100px;
}

/* ===== Section Styles ===== */
.movie-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.see-all {
    color: var(--gray);
    font-size: 0.9rem;
}

.see-all:hover {
    color: var(--primary);
}

/* ===== Movie Card ===== */
.movie-card {
    position: relative;
    transition: var(--transition);
    border-radius: 8px;
    overflow: hidden;
}

.movie-card:hover {
    transform: scale(1.05);
    z-index: 10;
}

.movie-poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    border-radius: 8px;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.movie-card:hover .movie-poster img {
    transform: scale(1.1);
}

.movie-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.movie-card:hover .movie-overlay {
    opacity: 1;
}

.play-button {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transform: scale(0);
    transition: var(--transition);
}

.movie-card:hover .play-button {
    transform: scale(1);
}

.movie-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.movie-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.movie-info {
    padding: 0.75rem 0;
}

.movie-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-title a {
    color: var(--light);
}

.movie-title a:hover {
    color: var(--primary);
}

.movie-meta {
    font-size: 0.8rem;
    color: var(--gray);
    display: flex;
    gap: 0.75rem;
}

/* ===== Movie Swiper ===== */
.movie-swiper {
    padding: 10px 0;
    overflow: visible !important;
}

.movie-swiper .swiper-slide {
    width: 180px;
}

.movie-swiper .swiper-button-next,
.movie-swiper .swiper-button-prev {
    top: 35%;
    width: 40px;
    height: 40px;
}

/* ===== Genre Cards ===== */
.genre-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
}

.genre-card:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.genre-card-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    min-height: 150px;
}

.genre-card-large:hover {
    background: linear-gradient(135deg, var(--primary), #b20710);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.genre-card-large .genre-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.genre-card-large h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.genre-card-large .movie-count {
    font-size: 0.85rem;
    color: var(--gray);
}

.genre-card-large:hover .movie-count {
    color: rgba(255, 255, 255, 0.8);
}

/* ===== Movie Detail Page ===== */
.movie-hero {
    margin-top: -76px;
    padding-top: 120px;
    padding-bottom: 3rem;
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 70vh;
}

.movie-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.5) 100%),
                linear-gradient(to top, var(--dark) 0%, transparent 30%);
}

.movie-hero .container {
    position: relative;
    z-index: 2;
}

.movie-detail-poster {
    position: sticky;
    top: 100px;
}

.movie-detail-poster img {
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.movie-detail-content {
    padding-left: 2rem;
}

.movie-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.movie-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.movie-detail-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.movie-detail-meta .rating {
    color: var(--warning);
    font-weight: 600;
}

.movie-genres {
    margin-bottom: 1.5rem;
}

.movie-genres .badge {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.movie-detail-description {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.movie-detail-info {
    margin-bottom: 0.75rem;
    color: var(--gray);
}

.movie-detail-info strong {
    color: var(--light);
}

.movie-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.trailer-section {
    margin-bottom: 3rem;
}

.trailer-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.movie-details-table {
    margin-bottom: 3rem;
}

.movie-details-table .table {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.movie-details-table .table th {
    background: rgba(255, 255, 255, 0.1);
    border: none;
}

.movie-details-table .table td {
    border-color: rgba(255, 255, 255, 0.1);
}

/* ===== Search Page ===== */
.search-page-form {
    max-width: 700px;
    margin: 0 auto 3rem;
}

.search-page-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light);
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
}

.search-page-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(229, 9, 20, 0.25);
}

.search-results-header {
    margin-bottom: 2rem;
}

.search-results-header h2 {
    margin-bottom: 0.5rem;
}

.popular-searches {
    margin-top: 2rem;
}

/* ===== Page Header ===== */
.page-header {
    margin-bottom: 2rem;
}

.page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0.5rem;
}

.page-header .breadcrumb-item a {
    color: var(--gray);
}

.page-header .breadcrumb-item.active {
    color: var(--light);
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--gray);
    font-size: 1rem;
}

/* ===== Filters ===== */
.filters-section {
    margin-bottom: 2rem;
}

.filters-section .form-select,
.filters-section .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light);
}

.filters-section .form-select:focus,
.filters-section .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
    box-shadow: none;
}

.filters-section .form-select option {
    background: var(--dark);
}

.active-filters .badge {
    padding: 0.5rem 1rem;
}

/* ===== No Results ===== */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray);
}

.no-results i {
    opacity: 0.5;
}

.no-results h3 {
    color: var(--light);
    margin-bottom: 0.5rem;
}

/* ===== Pagination ===== */
.pagination {
    gap: 0.25rem;
}

.pagination .page-link {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--light);
    padding: 0.75rem 1rem;
    border-radius: 4px;
}

.pagination .page-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--light);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    color: var(--light);
}

.pagination .page-item.disabled .page-link {
    background: transparent;
    color: var(--gray);
}

/* ===== Auth Pages ===== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding-top: 100px;
}

.auth-card {
    background: rgba(0, 0, 0, 0.75);
    border-radius: 12px;
    padding: 3rem;
    width: 100%;
    max-width: 450px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--gray);
}

.auth-card .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light);
    padding: 0.75rem 1rem;
}

.auth-card .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
    box-shadow: none;
}

.auth-card .input-group-text {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--gray);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-footer a {
    color: var(--primary);
}

/* ===== Buttons ===== */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-outline-light:hover {
    background: var(--light);
    color: var(--dark);
}

/* ===== Footer ===== */
.footer {
    background: var(--darker);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--light);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--gray);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.copyright {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: var(--light);
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
}

/* ===== Ad Container ===== */
.ad-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    min-height: 90px;
}

/* ===== Alerts ===== */
.alert {
    border: none;
    border-radius: 8px;
}

.alert-success {
    background: rgba(29, 185, 84, 0.2);
    color: var(--success);
}

.alert-danger {
    background: rgba(229, 9, 20, 0.2);
    color: var(--primary);
}

/* ===== Modal ===== */
.modal-content {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-swiper {
        height: 60vh;
    }
    
    .movie-detail-title {
        font-size: 1.75rem;
    }
    
    .movie-detail-poster {
        position: static;
        margin-bottom: 2rem;
        max-width: 250px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .movie-detail-content {
        padding-left: 0;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .search-form .form-control,
    .search-form .form-control:focus {
        width: 150px;
    }
    
    .movie-swiper .swiper-slide {
        width: 140px;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .auth-card {
        padding: 2rem;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer-links {
        margin-bottom: 1.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .hero-swiper {
        height: 50vh;
    }
    
    .movie-swiper .swiper-slide {
        width: 120px;
    }
}
