/* ============================================
   MOVIE WEBSITE - MAIN STYLESHEET
   Dark Theme | Netflix-Inspired Design
   ============================================ */

/* ==================== VARIABLES ==================== */
:root {
    --primary-bg: #050505;
    --secondary-bg: #0f0f0f;
    --card-bg: rgba(30, 30, 30, 0.4);
    --accent-color: #e50914;
    --accent-glow: rgba(229, 9, 20, 0.5);
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(10, 10, 10, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.6);
    --radius-lg: 16px;
    --radius-sm: 8px;
    --accent-hover: #ff1f2a;
    --shadow-glow: 0 0 20px rgba(229, 9, 20, 0.4);
}

/* ==================== RESET & GLOBAL ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a); /* Default placeholder */
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: var(--font-primary);
}

/* ==================== UTILITY CLASSES ==================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.text-muted {
    color: var(--text-secondary);
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-primary);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--secondary-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--card-bg);
    border-color: var(--text-secondary);
}

/* ==================== NAVBAR ==================== */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.navbar-brand img {
    height: 40px;
}

.navbar-menu ul {
    display: flex;
    gap: 30px;
}

.navbar-menu a {
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.navbar-menu a:hover {
    color: var(--accent-color);
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.navbar-menu a:hover::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--secondary-bg);
    min-width: 220px;
    padding: 10px 0;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.dropdown-content a:hover {
    color: var(--accent-color);
    background-color: var(--card-bg);
    padding-left: 25px;
}

/* Search Bar */
.navbar-search form {
    display: flex;
    align-items: center;
    background-color: var(--secondary-bg);
    border-radius: 4px;
    overflow: hidden;
}

.navbar-search input {
    background: transparent;
    border: none;
    padding: 8px 15px;
    color: var(--text-primary);
    outline: none;
    width: 250px;
}

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

.navbar-search button {
    background-color: var(--accent-color);
    padding: 8px 15px;
    color: var(--text-primary);
}

.navbar-search button:hover {
    background-color: var(--accent-hover);
}

/* Search Suggestions Glassmorphism */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    margin-top: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    overflow: hidden;
    display: none;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    transition: var(--transition);
    border-bottom: 1px solid var(--glass-border);
}

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

.suggestion-item:hover {
    background: rgba(255, 255, 255, 0.05);
    padding-left: 20px;
}

.suggestion-item img {
    width: 40px;
    height: 55px;
    object-fit: cover;
    border-radius: 4px;
}

.suggestion-item strong {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
}

.suggestion-item span {
    font-size: 11px;
    color: var(--text-secondary);
}


/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* ==================== HERO SLIDER ==================== */
.hero-slider {
    position: relative;
    height: 80vh;
    margin-top: 60px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

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

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.9), transparent);
}

.slide-content {
    position: absolute;
    bottom: 20%;
    left: 5%;
    max-width: 600px;
    z-index: 10;
}

.slide-content h1 {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 4px 15px rgba(0,0,0,0.9);
    letter-spacing: -1px;
}

.slide-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #e5e5e5;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.slide-meta {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    font-size: 15px;
    font-weight: 500;
}

.slide-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.premium-badge {
    display: inline-block;
    background: linear-gradient(90deg, #E50914, #ff0f1a);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(229, 9, 20, 0.4);
}

.slide-actions {
    display: flex;
    gap: 15px;
}

/* ==================== MOVIE SECTIONS ==================== */
.movie-section {
    padding: 50px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
    letter-spacing: -0.5px;
}

.section-header h2 i {
    color: var(--accent-color);
}

.see-all {
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 500;
}

.see-all:hover {
    text-decoration: underline;
}

/* Movie Grid */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* Movie Card */
.movie-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.movie-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), var(--shadow-glow);
    border-color: var(--accent-color);
    z-index: 10;
}

.movie-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 45%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 55%
    );
    transform: rotate(45deg);
    transition: 0.8s;
    pointer-events: none;
    opacity: 0;
}

.movie-card:hover::after {
    left: 100%;
    top: 100%;
    opacity: 1;
}

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

.movie-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

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

.movie-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.movie-meta {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.movie-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==================== AD CONTAINER ==================== */
.ad-container {
    padding: 30px 0;
    text-align: center;
}

.ad-container .adsbygoogle {
    background-color: var(--secondary-bg);
    border-radius: 8px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== TOP 10 RANKING ==================== */
.top-10-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 50px;
    overflow-x: auto;
    padding: 30px 10px 50px 40px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.top-10-grid::-webkit-scrollbar {
    display: none;
}

.top-10-card {
    position: relative;
    flex: 0 0 180px !important;
    width: 180px !important;
    margin-left: 20px;
    transition: var(--transition-smooth);
}

.top-10-card .movie-card {
    width: 100%;
}

.top-10-card .movie-card img {
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 8px;
    width: 100%;
    height: 270px;
}

.rank-number {
    position: absolute;
    left: -70px;
    bottom: -15px;
    font-size: 15rem;
    font-weight: 900;
    line-height: 0.8;
    color: #000;
    -webkit-text-stroke: 4px rgba(255, 255, 255, 0.4);
    font-family: 'Outfit', sans-serif;
    z-index: 10;
    user-select: none;
    transition: var(--transition-smooth);
    text-shadow: 0 0 30px rgba(229, 9, 20, 0.2);
    pointer-events: none;
}

.top-10-card:hover .rank-number {
    -webkit-text-stroke: 4px var(--accent-color);
    text-shadow: 0 0 50px rgba(229, 9, 20, 0.5);
    transform: scale(1.05);
}

.top-10-card:hover .rank-number {
    color: var(--accent-color);
    -webkit-text-stroke: 4px var(--accent-color);
    transform: scale(1.05) translateX(5px);
}

.top-10-card .movie-card {
    position: relative;
    z-index: 2;
}

.top-10-card:hover {
    transform: translateY(-10px) scale(1.05);
}

.top-10-card .movie-card {
    border: none;
    box-shadow: var(--shadow-premium);
}

/* ==================== MOVIE DETAIL PAGE ==================== */
.movie-detail-page {
    margin-top: 60px;
}

.movie-header {
    position: relative;
    height: 70vh;
    background-size: cover;
    background-position: center;
}

.movie-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.95), rgba(0,0,0,0.5));
    display: flex;
    align-items: flex-end;
}

.movie-header-content {
    display: flex;
    gap: 40px;
    padding: 50px 0;
}

.movie-poster {
    flex-shrink: 0;
}

.movie-poster img {
    width: 300px;
    height: 450px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.movie-main-info h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.movie-main-info .year {
    color: var(--text-secondary);
    font-weight: 400;
}

.movie-meta-info {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    flex-wrap: wrap;
}

.movie-meta-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rating {
    background-color: var(--warning-color);
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 600;
    color: var(--primary-bg);
}

.movie-genres {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.genre-tag {
    background-color: var(--secondary-bg);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    border: 1px solid var(--border-color);
}

.movie-tagline {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
    max-width: 700px;
}

.movie-actions {
    display: flex;
    gap: 15px;
}

.btn-watchlist,
.btn-share {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Movie Content */
.movie-content {
    padding: 50px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.content-section {
    background-color: var(--secondary-bg);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.content-section h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-color);
}

.content-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Box Office Section */
.box-office-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.box-office-card {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.box-office-card h3 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.box-office-card .amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 10px;
}

.box-office-card.highlight {
    background: linear-gradient(135deg, var(--accent-color), #c40812);
}

.box-office-card.highlight .amount {
    color: var(--text-primary);
}

.breakdown {
    font-size: 12px;
    color: var(--text-secondary);
}

.verdict {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
}

.verdict.blockbuster {
    background-color: var(--success-color);
    color: var(--primary-bg);
}

.verdict.hit {
    background-color: var(--info-color);
    color: var(--text-primary);
}

.verdict.average {
    background-color: var(--warning-color);
    color: var(--primary-bg);
}

.verdict.flop {
    background-color: var(--danger-color);
    color: var(--text-primary);
}

/* Profit Analysis */
.profit-analysis {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.profit-amount {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.profit-amount.profit {
    color: var(--success-color);
}

.profit-amount.loss {
    color: var(--danger-color);
}

.roi {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Plot Content */
.plot-content {
    line-height: 1.9;
    font-size: 15px;
    color: var(--text-secondary);
}

/* Cast & Crew */
.crew-info p {
    margin-bottom: 10px;
    font-size: 15px;
}

.crew-info strong {
    color: var(--text-primary);
    margin-right: 10px;
}

/* Trailer */
.trailer-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.trailer-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 80px;
}

.sidebar-ad {
    background-color: var(--secondary-bg);
    border-radius: 8px;
    min-height: 250px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-box {
    background-color: var(--secondary-bg);
    padding: 20px;
    border-radius: 8px;
}

.info-box h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.info-box ul li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.info-box ul li:last-child {
    border-bottom: none;
}

.info-box strong {
    color: var(--text-primary);
}

.info-box span {
    color: var(--text-secondary);
}

/* ==================== CAST SECTION ==================== */
.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.cast-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.cast-avatar img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.cast-info {
    padding: 10px;
}

.actor-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px; /* Space for character */
    position: relative;
}

.character-name {
    font-size: 11px;
    color: var(--text-secondary);
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
}

/* ==================== REVIEWS SECTION ==================== */
.user-rating-badge {
    background: var(--accent-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.review-form-container {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.rating-input {
    margin-bottom: 15px;
}

.rating-input select {
    background: var(--primary-bg);
    color: white;
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 4px;
    margin-left: 10px;
}

.review-form-container textarea {
    width: 100%;
    height: 100px;
    background: var(--primary-bg);
    color: white;
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    resize: vertical;
}

.review-card {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

.review-card:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.review-rating {
    color: var(--warning-color);
    font-weight: 600;
}

.review-date {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ==================== RELATED LIST ==================== */
.related-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-item {
    display: flex;
    gap: 12px;
    transition: var(--transition);
}

.related-item img {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.related-item:hover {
    background: rgba(255,255,255,0.05);
    transform: translateX(5px);
}

.related-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.related-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--secondary-bg);
    padding: 50px 0 20px;
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
    color: var(--accent-color);
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 13px;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1200px) {
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .movie-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .movie-poster img {
        width: 250px;
        height: 375px;
    }
}

@media (max-width: 768px) {
    .navbar-menu,
    .navbar-search {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-slider {
        height: 60vh;
    }
    
    .slide-content h1 {
        font-size: 32px;
    }
    
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .movie-card img {
        height: 225px;
    }
    
    .section-header h2 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .movie-main-info h1 {
        font-size: 28px;
    }
    
    .box-office-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== LOADING SPINNER ==================== */
.loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== BADGES ==================== */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background-color: var(--success-color);
    color: var(--primary-bg);
}

.badge-warning {
    background-color: var(--warning-color);
    color: var(--primary-bg);
}

.badge-danger {
    background-color: var(--danger-color);
    color: var(--text-primary);
}

.badge-info {
    background-color: var(--info-color);
    color: var(--text-primary);
}

/* ==================== AUTHENTICATION PAGES ==================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)), url('../images/auth-bg.png');
    background-size: cover;
    background-position: center;
    padding: 40px 20px;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    perspective: 1000px;
}

.auth-glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: authFadeIn 0.8s ease-out;
}

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

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header i {
    font-size: 40px;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.auth-header h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-form .form-group {
    position: relative;
    margin-bottom: 25px;
}

.auth-form .form-group i {
    position: absolute;
    left: 15px;
    top: 42px;
    color: #666;
    transition: var(--transition);
}

.auth-form .form-control {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 45px;
    height: 55px;
    border-radius: 12px;
    font-size: 15px;
    color: #fff;
    transition: all 0.3s;
}

.auth-form .form-control:focus {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.2);
    outline: none;
}

.auth-form .form-control:focus + i {
    color: var(--accent-color);
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #bbb;
}

.btn-block {
    width: 100%;
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-footer p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: #fff;
    font-weight: 600;
    transition: var(--transition);
}

.auth-footer a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}
