/* ===== CSS Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gold: #ffd700;
    --dark-bg: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #999999;
    --border-color: rgba(255, 215, 0, 0.1);
    --shadow-light: rgba(255, 215, 0, 0.2);
    --gradient-bg: linear-gradient(135deg, #0a0a0a 0%, #1a0b2e 50%, #0a0a0a 100%);
}

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

/* ===== Animated Background ===== */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="0.5" fill="white" opacity="0.8"/><circle cx="80" cy="40" r="0.3" fill="white" opacity="0.6"/><circle cx="40" cy="80" r="0.4" fill="white" opacity="0.7"/><circle cx="90" cy="10" r="0.2" fill="white" opacity="0.5"/><circle cx="10" cy="70" r="0.3" fill="white" opacity="0.6"/></svg>') repeat;
    animation: twinkle 8s ease-in-out infinite alternate;
    z-index: -2;
}

.twinkling {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="50" cy="25" r="0.8" fill="gold" opacity="0.3"/><circle cx="150" cy="60" r="0.6" fill="lightblue" opacity="0.2"/><circle cx="75" cy="150" r="0.4" fill="pink" opacity="0.3"/></svg>') repeat;
    animation: float 6s ease-in-out infinite;
    z-index: -1;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* ===== Main Content ===== */
.main-content {
    margin-top: 0;
    min-height: 100vh;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-gold);
    text-decoration: none;
}

.logo i {
    font-size: 2rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-gold);
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* ===== Hero Section ===== */
.hero {
    height: 70vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10rem 2rem 4rem; /* Increased top padding to account for fixed navbar */
    margin-top: 80px; /* Add margin-top to push content below fixed header */
    position: relative;
    background: linear-gradient(135deg, rgba(26, 11, 46, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero-title-container {
    margin-bottom: 2rem;
    position: relative;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.2;
}

.hero-text-line {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.hero-highlight {
    background: linear-gradient(135deg, var(--primary-gold) 0%, #ffed4e 30%, #ff6b6b  60%, #4ecdc4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 300% 300%;
    animation: gradientShift 4s ease-in-out infinite, textGlow 2s ease-in-out infinite alternate;
    position: relative;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.hero-title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.decoration-line {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
    animation: lineGlow 3s ease-in-out infinite;
}

.decoration-icon {
    color: var(--primary-gold);
    font-size: 1.5rem;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes textGlow {
    0% {
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
    }
    100% {
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
    }
}

@keyframes lineGlow {
    0%, 100% {
        opacity: 0.5;
        transform: scaleX(0.8);
    }
    50% {
        opacity: 1;
        transform: scaleX(1.2);
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

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

.hero-highlight.text-change {
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.4rem);
    margin-bottom: 3rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

/* Hero Search Bar */
.hero-search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 3rem;
    display: flex;
    align-items: center;
}

.hero-search-input {
    width: 100%;
    padding: 1.5rem 5rem 1.5rem 4rem;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    font-family: inherit;
}

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

.hero-search-input:focus {
    border-color: var(--primary-gold);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 15px 40px var(--shadow-light);
}

.hero-search-container .search-icon {
    position: absolute;
    left: 1.5rem;
    color: var(--text-muted);
    font-size: 1.2rem;
    z-index: 1;
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-gold);
    color: var(--dark-bg);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 600;
}

.search-btn:hover {
    background: #ffed4e;
    transform: translateY(-50%) scale(1.05);
}

/* Quick Stats */
.quick-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-gold);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes shimmer {
    0%, 100% { 
        background-position: -200% center;
        filter: brightness(1);
    }
    50% { 
        background-position: 200% center;
        filter: brightness(1.2);
    }
}

/* ===== Search Section ===== */
.search-section {
    padding: 4rem 2rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.search-container {
    position: relative;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.search-input {
    width: 100%;
    padding: 1.25rem 1.5rem 1.25rem 4rem;
    font-size: 1.1rem;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-family: inherit;
}

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

.search-input:focus {
    border-color: var(--primary-gold);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px var(--shadow-light);
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-gold);
    font-size: 1.3rem;
    z-index: 2;
}

/* ===== Quick Filters ===== */
.quick-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 1rem 2rem;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 0.95rem;
    font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(255, 215, 0, 0.15);
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--shadow-light);
}

/* ===== Movies Grid ===== */
.movies-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-gold);
    position: relative;
    font-weight: 600;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
    border-radius: 2px;
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.movie-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(15px);
    position: relative;
}

.movie-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px var(--shadow-light);
    border-color: rgba(255, 215, 0, 0.5);
}

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

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

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

.movie-rating {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--primary-gold);
    padding: 0.5rem 0.8rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    backdrop-filter: blur(10px);
}

.movie-info {
    padding: 1.5rem;
}

.movie-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.movie-year {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.movie-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.genre-tag {
    background: rgba(255, 215, 0, 0.15);
    color: var(--primary-gold);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* ===== Modal Styles ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    backdrop-filter: blur(8px);
    animation: modalFadeIn 0.3s ease;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: relative;
    max-width: 1200px;
    max-height: 90vh;
    margin: 5vh auto;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a1a3a 100%);
    border-radius: 25px;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: var(--primary-gold);
    color: var(--dark-bg);
    transform: scale(1.1) rotate(90deg);
}

.modal-body {
    max-height: calc(90vh - 4px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-gold) rgba(255, 255, 255, 0.1);
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 4px;
}

/* ===== Modal Content Styles ===== */
.modal-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    padding: 3rem;
}

.modal-backdrop-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

.modal-backdrop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.modal-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 3rem;
    width: 100%;
    align-items: flex-end;
}

.modal-poster {
    position: relative;
    flex-shrink: 0;
}

.modal-poster img {
    width: 220px;
    height: 330px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.poster-rating {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--primary-gold);
    padding: 0.6rem 0.8rem;
    border-radius: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    backdrop-filter: blur(10px);
}

.modal-main-info {
    flex: 1;
    color: var(--text-primary);
}

.modal-title {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.modal-tagline {
    font-style: italic;
    font-size: 1.3rem;
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

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

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

.meta-item i {
    color: var(--primary-gold);
    font-size: 1.1rem;
}

.adult-rating {
    background: #ff4444;
    color: white;
    padding: 0.3rem 0.7rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8rem;
}

.modal-genres {
    display: flex;
    gap: 0.7rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.genre-pill {
    background: rgba(255, 215, 0, 0.2);
    color: var(--primary-gold);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

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

.action-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    font-family: inherit;
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--primary-gold) 0%, #ffed4e 100%);
    color: var(--dark-bg);
}

.action-btn.primary:hover {
    background: linear-gradient(135deg, #ffed4e 0%, var(--primary-gold) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

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

.action-btn.secondary:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    transform: translateY(-3px);
}

/* ===== Modal Content Sections ===== */
.modal-content-sections {
    padding: 3rem;
}

.content-section {
    margin-bottom: 4rem;
}

.content-section h2 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--primary-gold);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.overview-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.detail-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(15px);
}

.detail-card i {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 1.2rem;
}

.detail-card h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.detail-card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

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

.cast-card {
    text-align: center;
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(15px);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cast-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.2);
}

.cast-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: var(--primary-gold);
}

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

.cast-card-overlay i {
    font-size: 2rem;
}

.cast-card-overlay span {
    font-size: 0.9rem;
    font-weight: 600;
}

.cast-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.2rem;
    border: 3px solid rgba(255, 215, 0, 0.3);
}

.cast-card h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.cast-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

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

.similar-movie-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(15px);
}

.similar-movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px var(--shadow-light);
    border-color: rgba(255, 215, 0, 0.5);
}

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

.similar-movie-info {
    padding: 1.2rem;
}

.similar-movie-info h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.similar-movie-info p {
    font-size: 0.95rem;
    color: var(--primary-gold);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
}

/* ===== Trending Section ===== */
.trending-section {
    padding: 4rem 2rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.trending-container {
    max-width: 1400px;
    margin: 0 auto;
}

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

.trending-header h2 {
    color: var(--primary-gold);
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Cinzel', serif;
}

.trending-carousel-wrapper {
    overflow: hidden;
    border-radius: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.trending-track {
    display: flex;
    gap: 25px;
    padding: 10px 0;
    animation: autoScroll 60s linear infinite;
}

.trending-track:hover {
    animation-play-state: paused;
}

@keyframes autoScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ===== Side Movie Cards ===== */
.side-movie-cards {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1;
}

.left-cards {
    left: 2rem;
}

.right-cards {
    right: 2rem;
}

.side-card {
    width: 120px;
    height: 180px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.side-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.side-card:hover::before {
    opacity: 1;
}

.side-card:hover {
    transform: scale(1.05) translateY(-5px);
    border-color: var(--primary-gold);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.4);
}

.side-card .movie-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.side-card:hover .movie-title-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations for side cards */
.card-left-1, .card-right-1 {
    animation: sideFloat1 6s ease-in-out infinite;
}

.card-left-2, .card-right-2 {
    animation: sideFloat2 7s ease-in-out infinite 1s;
}

.card-left-3, .card-right-3 {
    animation: sideFloat3 8s ease-in-out infinite 2s;
}

@keyframes sideFloat1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(1deg); }
    50% { transform: translateY(-5px) rotate(-0.5deg); }
    75% { transform: translateY(-15px) rotate(0.5deg); }
}

@keyframes sideFloat2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(-1deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
    75% { transform: translateY(-12px) rotate(-0.5deg); }
}

@keyframes sideFloat3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(0.5deg); }
    50% { transform: translateY(-18px) rotate(-1deg); }
    75% { transform: translateY(-6px) rotate(1deg); }
}

/* Auto-scroll indicator */
.auto-scroll-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-gold);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Ensure smooth infinite scroll by duplicating content */
.trending-item {
    flex: 0 0 220px;
    height: 330px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--card-bg);
    border: 2px solid rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(10px);
}

.trending-item:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

.trending-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
    transition: transform 0.3s ease;
}

.trending-item:hover img {
    transform: scale(1.05);
}

.trending-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 0.95) 100%);
    backdrop-filter: blur(10px);
}

.trending-item-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.trending-item-year {
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.8;
}

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

.trending-item-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.trending-item-rating i {
    color: var(--primary-gold);
    font-size: 0.8rem;
}

.trending-item-rating span {
    font-weight: 600;
    color: var(--primary-gold);
}

@media (max-width: 1200px) {
    .side-movie-cards {
        display: none;
    }
}

@media (max-width: 768px) {
    .trending-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .auto-scroll-indicator {
        justify-content: center;
    }
    
    .hero-search-container {
        margin: 0 auto 2rem;
    }
    
    .hero-search-input {
        padding: 1.2rem 4rem 1.2rem 3rem;
        font-size: 1rem;
    }
    
    .search-btn {
        padding: 0.8rem 1.2rem;
        font-size: 1rem;
    }
    
    .quick-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-item {
        flex-direction: row;
        gap: 1rem;
    }
}

/* Fallback styling for empty side cards */
.side-card:empty {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px dashed rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-card:empty::after {
    content: '🎬';
    font-size: 2rem;
    opacity: 0.3;
    animation: pulse 2s ease-in-out infinite;
}

/* Ensure side cards are visible and have minimum styling */
.side-card {
    min-height: 180px;
    background-color: rgba(255, 255, 255, 0.02);
}

.side-card[style*="background-image"] {
    background-color: transparent;
}

/* Remove any unwanted tooltips or overlays that may appear */
div[style*="Jurassic"],
*[title*="Jurassic"],
*[alt*="Jurassic"],
.tooltip,
.popup-overlay,
.browser-tooltip,
[data-tooltip*="Jurassic"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Hide any floating elements that might be browser extensions */
div[style*="position: absolute"][style*="z-index"],
div[style*="position: fixed"][style*="z-index"] {
    pointer-events: none;
}

/* Ensure stats section has clean styling */
.quick-stats {
    position: relative;
    z-index: 10;
    isolation: isolate;
}

.quick-stats::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 50px;
    background: transparent;
    pointer-events: none;
    z-index: 100;
}

/* ===== Search Dropdown ===== */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 11, 46, 0.98);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-top: none;
    border-radius: 0 0 25px 25px;
    max-height: 450px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.search-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.search-dropdown-content {
    padding: 15px 0;
}

.search-suggestion {
    display: flex;
    align-items: center;
    padding: 16px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 10px;
    border-radius: 15px;
}

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

.search-suggestion:hover {
    background: rgba(255, 215, 0, 0.08);
    transform: translateX(8px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.15);
}

.search-suggestion.selected {
    background: rgba(255, 215, 0, 0.12);
    border-left: 4px solid var(--primary-gold);
    transform: translateX(12px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.25);
}

.search-suggestion.selected .search-suggestion-title {
    color: var(--primary-gold);
}

.search-suggestion-poster {
    width: 50px;
    height: 75px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.05);
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.1);
    overflow: hidden;
}

.search-suggestion-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 11px;
}

.search-suggestion-info {
    flex: 1;
    min-width: 0;
}

.search-suggestion-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.search-suggestion-details {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.search-suggestion-year {
    color: var(--primary-gold);
    font-weight: 500;
}

.search-suggestion-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 215, 0, 0.1);
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.85rem;
}

.search-suggestion-rating i {
    color: var(--primary-gold);
    font-size: 0.8rem;
}

.search-no-results {
    padding: 40px 30px;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.search-no-results i {
    font-size: 2.5rem;
    color: var(--primary-gold);
    opacity: 0.5;
}

.search-loading {
    padding: 40px 30px;
    text-align: center;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.search-loading .spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 215, 0, 0.2);
    border-top: 3px solid var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Dropdown scrollbar */
.search-dropdown::-webkit-scrollbar {
    width: 8px;
}

.search-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin: 10px 0;
}

.search-dropdown::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-gold), #ffed4e);
    border-radius: 4px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.search-dropdown::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ffed4e, var(--primary-gold));
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .search-dropdown {
        max-height: 300px;
        border-radius: 0 0 20px 20px;
    }
    
    .search-suggestion {
        padding: 14px 20px;
        margin: 0 5px;
    }
    
    .search-suggestion-poster {
        width: 45px;
        height: 65px;
        margin-right: 15px;
    }
    
    .search-suggestion-title {
        font-size: 1rem;
    }
    
    .search-suggestion-details {
        font-size: 0.85rem;
        gap: 10px;
    }
    
    .search-suggestion:hover,
    .search-suggestion.selected {
        transform: none;
    }
}

/* Simple and safe way to hide specific unwanted text overlays */
*[title="28 Years Later"],
*[title*="Weapons"],
*[data-tooltip*="Weapons"],
*[aria-label*="Weapons"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Additional protection for movie cards */
.movie-card {
    position: relative;
    overflow: hidden;
}

.movie-card * {
    position: relative;
    z-index: 1;
}

/* Hide any suspicious floating text elements */
div[style*="position: absolute"][style*="z-index: 999"],
div[style*="position: fixed"][style*="z-index: 999"],
span[style*="position: absolute"],
*[data-tooltip="Weapons"] {
    display: none !important;
}

/* Ensure movie posters are always visible */
.movie-poster img {
    position: relative;
    z-index: 2;
}

/* ===== Enhanced Footer Styles ===== */
.footer {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(26, 11, 46, 0.95) 50%, rgba(10, 10, 10, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    padding: 4rem 2rem 1rem;
    margin-top: 6rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.footer-brand .brand-container {
    max-width: 300px;
}

.footer-brand .logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand .logo-section i {
    font-size: 2rem;
    color: var(--primary-gold);
}

.footer-brand h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin: 0;
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Origin Story */
.origin-story {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
}

.origin-story::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-gold), #ffed4e);
}

.story-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-gold), #ffed4e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: float 3s ease-in-out infinite;
}

.story-icon i {
    font-size: 1.1rem;
    color: #000;
}

.story-content h5 {
    color: var(--primary-gold);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.story-content p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    font-style: italic;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.footer-section h4 {
    color: var(--primary-gold);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section h4 i {
    font-size: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a,
.footer-section ul li {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section ul li a:hover {
    color: var(--primary-gold);
    transform: translateX(5px);
}

.footer-section ul li i {
    font-size: 0.8rem;
    width: 12px;
}

/* Developer Section */
.developer-info {
    margin-top: 1rem;
}

.developer-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.developer-card:hover {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

.developer-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-gold), #ffed4e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
}

.developer-avatar::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary-gold), #ffed4e);
    border-radius: 50%;
    z-index: -1;
    filter: blur(8px);
    opacity: 0.3;
}

.developer-avatar i {
    font-size: 1.2rem;
    color: #000;
}

.developer-details h5 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.3rem 0;
}

.developer-title {
    color: var(--primary-gold);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 0 0.8rem 0 !important;
}

.developer-bio {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0 0 1.2rem 0 !important;
}

/* Contact Info */
.contact-info {
    margin-bottom: 1rem;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 25px;
    color: var(--primary-gold);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-email:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: var(--primary-gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.contact-email i {
    font-size: 0.9rem;
}

.developer-links {
    display: flex;
    gap: 0.8rem;
}

.dev-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 25px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.dev-link:hover::before {
    left: 100%;
}

.dev-link:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.dev-link.linkedin:hover {
    border-color: #0077b5;
    color: #0077b5;
}

.dev-link.github:hover {
    border-color: #333;
    color: #fff;
}

.dev-link i {
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

/* Footer Divider */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    margin: 3rem 0 2rem 0;
    position: relative;
}

.footer-divider::before,
.footer-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 6px;
    height: 6px;
    background: var(--primary-gold);
    border-radius: 50%;
    transform: translateY(-50%);
}

.footer-divider::before {
    left: 20%;
}

.footer-divider::after {
    right: 20%;
}

/* Footer Bottom */
.footer-bottom {
    position: relative;
    z-index: 1;
}

.footer-bottom-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.copyright-section p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0.2rem 0;
}

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

.made-by i {
    color: #ff6b6b;
    animation: heartbeat 2s ease-in-out infinite;
    margin: 0 0.2rem;
}

.made-by i.pulse {
    animation: pulse 2s ease-in-out infinite;
}

.made-by strong {
    color: var(--primary-gold);
    font-weight: 600;
}

@keyframes heartbeat {
    0%, 50%, 100% { transform: scale(1); }
    25%, 75% { transform: scale(1.1); }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        filter: brightness(1);
    }
    50% { 
        transform: scale(1.2);
        filter: brightness(1.3);
    }
}

/* Footer CTA */
.footer-cta {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.cta-text {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
    font-weight: 500;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-gold), #ffed4e);
    color: #000;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: linear-gradient(135deg, #ffed4e, var(--primary-gold));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.cta-button i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(3px);
}

.tmdb-attribution {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.tmdb-logo {
    height: 20px;
    width: auto;
    filter: brightness(0.9);
}

.tmdb-attribution p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 215, 0, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    color: var(--primary-gold);
    border-color: var(--primary-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2);
}

.social-link.linkedin:hover {
    color: #0077b5;
    border-color: #0077b5;
    box-shadow: 0 8px 20px rgba(0, 119, 181, 0.3);
}

.social-link.github:hover {
    color: #333;
    border-color: #666;
    box-shadow: 0 8px 20px rgba(102, 102, 102, 0.3);
}

.social-link.twitter:hover {
    color: #1da1f2;
    border-color: #1da1f2;
    box-shadow: 0 8px 20px rgba(29, 161, 242, 0.3);
}

.social-link.email:hover {
    color: #ea4335;
    border-color: #ea4335;
    box-shadow: 0 8px 20px rgba(234, 67, 53, 0.3);
}

.social-link i {
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem 1rem 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-brand .brand-container {
        max-width: none;
    }
    
    .origin-story {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        gap: 0.8rem;
    }
    
    .origin-story .story-icon {
        align-self: center;
    }
    
    .story-content h5 {
        justify-content: center;
        font-size: 0.9rem;
    }
    
    .story-content p {
        font-size: 0.8rem;
    }
    
    .developer-card {
        padding: 1rem;
    }
    
    .developer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .contact-email {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-cta {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .cta-text {
        font-size: 0.85rem;
    }
    
    .cta-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .tmdb-attribution {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* ===== Actor Modal Styles ===== */
.actor-modal-hero {
    position: relative;
    margin: -2rem -2rem 3rem -2rem;
    overflow: hidden;
    border-radius: 0 0 30px 30px;
}

.actor-backdrop {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.actor-backdrop-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px);
}

.actor-backdrop-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.7) 70%,
        rgba(0, 0, 0, 0.9) 100%
    );
}

.actor-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem;
    display: flex;
    gap: 2rem;
    align-items: flex-end;
}

.actor-profile-img {
    flex-shrink: 0;
    width: 180px;
    height: 270px;
    border-radius: 15px;
    overflow: hidden;
    border: 4px solid rgba(255, 215, 0, 0.8);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

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

.actor-main-info {
    flex: 1;
    color: white;
}

.actor-name {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-gold), #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.actor-aka {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.actor-content-sections {
    padding: 0 2rem;
}

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

.actor-biography {
    margin-top: 1rem;
}

.biography-text {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
    text-align: justify;
}

.no-biography {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

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

.actor-movie-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.actor-movie-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.2);
}

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

.actor-movie-info {
    padding: 1rem;
}

.actor-movie-info h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.actor-movie-info .movie-year {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.actor-movie-info .movie-character {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.actor-movie-info .movie-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--primary-gold);
    font-size: 0.85rem;
    font-weight: 600;
}

.actor-movie-info .movie-rating i {
    font-size: 0.75rem;
}

/* Responsive Actor Modal */
@media (max-width: 768px) {
    .actor-hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .actor-profile-img {
        width: 150px;
        height: 225px;
    }
    
    .actor-name {
        font-size: 2rem;
    }
    
    .actor-details-grid {
        grid-template-columns: 1fr;
    }
    
    .actor-movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
         .actor-movie-card img {
         height: 200px;
     }
 }
 
 /* ===== Netflix-Style Movies Page ===== */
 .movies-page {
     min-height: 100vh;
     padding-top: 100px;
     background: var(--gradient-bg);
     position: relative;
     z-index: 1;
     width: 100%;
 }
 
 .movies-page-hero {
     position: relative;
     height: 80vh;
     min-height: 600px;
     display: flex;
     align-items: center;
     justify-content: center;
     text-align: center;
     margin-bottom: 4rem;
     overflow: hidden;
 }
 
 .hero-background {
     position: absolute;
     inset: 0;
     z-index: -1;
 }
 
 .hero-backdrop {
     width: 100%;
     height: 100%;
     object-fit: cover;
     filter: blur(3px) brightness(0.4);
 }
 
 .hero-backdrop-overlay {
     position: absolute;
     inset: 0;
     background: linear-gradient(
         135deg,
         rgba(26, 11, 46, 0.8) 0%,
         rgba(10, 10, 10, 0.7) 50%,
         rgba(26, 11, 46, 0.8) 100%
     );
 }
 
 .hero-content-wrapper {
     position: relative;
     z-index: 2;
     max-width: 900px;
     padding: 2rem;
 }
 
 .movies-page-title {
     font-family: 'Cinzel', serif;
     font-size: clamp(2.5rem, 5vw, 4rem);
     font-weight: 700;
     margin-bottom: 1rem;
     background: linear-gradient(135deg, var(--primary-gold) 0%, #ffed4e 50%, var(--primary-gold) 100%);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
 }
 
 .movies-page-subtitle {
     font-size: clamp(1rem, 2.5vw, 1.3rem);
     color: var(--text-secondary);
     margin-bottom: 2rem;
 }
 
 .genre-quick-select {
     display: flex;
     justify-content: center;
     flex-wrap: wrap;
     gap: 1.5rem;
     margin-top: 3rem;
     max-width: 800px;
     margin-left: auto;
     margin-right: auto;
 }
 
 .genre-quick-btn {
     padding: 1rem 2rem;
     background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
     border: 2px solid rgba(255, 215, 0, 0.4);
     border-radius: 30px;
     color: var(--text-primary);
     font-size: 1rem;
     font-weight: 700;
     cursor: pointer;
     transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
     backdrop-filter: blur(15px);
     position: relative;
     overflow: hidden;
     text-transform: uppercase;
     letter-spacing: 0.5px;
 }
 
 .genre-quick-btn::before {
     content: '';
     position: absolute;
     inset: 0;
     background: linear-gradient(135deg, var(--primary-gold), #ffed4e);
     opacity: 0;
     transition: opacity 0.3s ease;
 }
 
 .genre-quick-btn span {
     position: relative;
     z-index: 1;
 }
 
 .genre-quick-btn:hover {
     background: var(--primary-gold);
     border-color: var(--primary-gold);
     color: #000;
     transform: translateY(-5px) scale(1.05);
     box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
 }
 
 .genre-quick-btn:hover::before {
     opacity: 1;
 }
 
 .movies-page-content {
     padding: 0 2rem;
     max-width: 1400px;
     margin: 0 auto;
 }
 
 .movie-category {
     margin-bottom: 5rem;
     padding: 2rem 0;
     border-radius: 20px;
     background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
     backdrop-filter: blur(10px);
     border: 1px solid rgba(255, 215, 0, 0.1);
 }
 
 .category-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-bottom: 3rem;
     padding: 0 2rem;
 }
 
 .category-title {
     font-family: 'Cinzel', serif;
     font-size: 2.5rem;
     font-weight: 700;
     background: linear-gradient(135deg, var(--primary-gold), #ffed4e);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
     margin: 0;
     text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
 }
 
 .category-description {
     color: var(--text-secondary);
     font-size: 1rem;
     margin: 0.5rem 0 0 0;
 }
 
 .view-all-btn {
     padding: 0.6rem 1.2rem;
     background: transparent;
     border: 2px solid var(--primary-gold);
     border-radius: 20px;
     color: var(--primary-gold);
     font-size: 0.9rem;
     font-weight: 600;
     cursor: pointer;
     transition: all 0.3s ease;
 }
 
 .view-all-btn:hover {
     background: var(--primary-gold);
     color: #000;
     transform: translateY(-2px);
     box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
 }
 
 .movies-carousel {
    position: relative;
    overflow-x: auto;
    overflow-y: visible;
    padding: 3rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
 
 .movies-carousel::-webkit-scrollbar {
     display: none;
 }
 
 .movies-carousel-track {
     display: flex;
     gap: 1.5rem;
     padding: 0 1rem;
     min-width: max-content;
 }
 
 .netflix-movie-card {
    flex: 0 0 250px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    margin: 1rem 0;
}
 
 .netflix-movie-card:hover {
     transform: scale(1.1) translateY(-15px) rotate(1deg);
     z-index: 10;
 }
 
 .netflix-movie-poster {
     position: relative;
     border-radius: 12px;
     overflow: hidden;
     aspect-ratio: 2/3;
     background: var(--card-bg);
     border: 2px solid rgba(255, 215, 0, 0.2);
     transition: all 0.3s ease;
 }
 
 .netflix-movie-card:hover .netflix-movie-poster {
     border-color: var(--primary-gold);
     box-shadow: 0 15px 35px rgba(255, 215, 0, 0.3);
 }
 
 .netflix-movie-poster img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     transition: transform 0.3s ease;
 }
 
 .netflix-movie-card:hover .netflix-movie-poster img {
     transform: scale(1.1);
 }
 
 .netflix-movie-overlay {
     position: absolute;
     inset: 0;
     background: linear-gradient(
         180deg,
         transparent 0%,
         rgba(0, 0, 0, 0.3) 40%,
         rgba(0, 0, 0, 0.8) 70%,
         rgba(0, 0, 0, 0.95) 100%
     );
     opacity: 0;
     transition: opacity 0.3s ease;
     display: flex;
     align-items: flex-end;
     padding: 1rem;
 }
 
 .netflix-movie-card:hover .netflix-movie-overlay {
     opacity: 1;
 }
 
 .netflix-movie-info {
     width: 100%;
     color: white;
 }
 
 .netflix-movie-title {
     font-size: 1rem;
     font-weight: 700;
     margin: 0 0 0.5rem 0;
     line-height: 1.2;
 }
 
 .netflix-movie-meta {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-bottom: 0.8rem;
     font-size: 0.85rem;
 }
 
 .netflix-movie-year {
     color: rgba(255, 255, 255, 0.8);
 }
 
 .netflix-movie-rating {
     display: flex;
     align-items: center;
     gap: 0.3rem;
     color: var(--primary-gold);
     font-weight: 600;
 }
 
 .netflix-movie-rating i {
     font-size: 0.75rem;
 }
 
 .netflix-movie-actions {
     display: flex;
     gap: 0.5rem;
 }
 
 .netflix-action-btn {
     width: 32px;
     height: 32px;
     border-radius: 50%;
     border: 2px solid rgba(255, 255, 255, 0.8);
     background: rgba(0, 0, 0, 0.7);
     color: white;
     display: flex;
     align-items: center;
     justify-content: center;
     cursor: pointer;
     transition: all 0.3s ease;
     font-size: 0.8rem;
 }
 
 .netflix-action-btn:hover {
     background: var(--primary-gold);
     border-color: var(--primary-gold);
     color: #000;
     transform: scale(1.1);
 }
 
 .netflix-action-btn.play-btn {
     background: var(--primary-gold);
     border-color: var(--primary-gold);
     color: #000;
 }
 
 .netflix-action-btn.play-btn:hover {
     background: #ffed4e;
     transform: scale(1.2);
 }
 
 /* Responsive Design */
 @media (max-width: 1024px) {
     .category-header {
         flex-direction: column;
         align-items: flex-start;
         gap: 1rem;
     }
     
     .netflix-movie-card {
         flex: 0 0 180px;
     }
 }
 
 @media (max-width: 768px) {
     .movies-page {
         padding-top: 80px;
     }
     
     .movies-page-hero {
         padding: 2rem 1rem;
     }
     
     .genre-quick-select {
         gap: 0.5rem;
     }
     
     .genre-quick-btn {
         padding: 0.6rem 1rem;
         font-size: 0.8rem;
     }
     
     .movies-page-content {
         padding: 0 1rem;
     }
     
     .category-title {
         font-size: 1.5rem;
     }
     
         .netflix-movie-card {
        flex: 0 0 150px;
    }
    
    .movies-carousel-track {
        gap: 1rem;
        padding: 0 0.5rem;
    }
}

/* View All Modal Styles */
.view-all-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.view-all-modal-content {
    background: linear-gradient(135deg, rgba(26, 11, 46, 0.95), rgba(10, 10, 10, 0.95));
    border-radius: 20px;
    max-width: 90vw;
    max-height: 90vh;
    width: 100%;
    border: 2px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(20px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.view-all-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
}

.view-all-title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-gold), #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.close-view-all {
    background: none;
    border: 2px solid rgba(255, 215, 0, 0.5);
    color: var(--primary-gold);
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-view-all:hover {
    background: var(--primary-gold);
    color: #000;
    transform: rotate(90deg);
}

.view-all-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    gap: 2rem;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 215, 0, 0.3);
    border-top: 4px solid var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.view-all-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.view-all-movie-card {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

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

.view-all-poster {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 2/3;
    background: linear-gradient(135deg, rgba(26, 11, 46, 0.9), rgba(10, 10, 10, 0.9));
}

.view-all-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.view-all-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 50%);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

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

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

.view-all-movie-info {
    color: white;
    text-align: center;
    width: 100%;
}

.view-all-movie-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--primary-gold);
    line-height: 1.2;
}

.view-all-movie-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    opacity: 0.9;
}

.view-all-year {
    color: rgba(255, 255, 255, 0.8);
}

.view-all-rating {
    color: var(--primary-gold);
    font-weight: 600;
}

/* View All Modal Mobile Styles */
@media (max-width: 768px) {
    .view-all-modal {
        padding: 1rem;
    }
    
    .view-all-modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .view-all-header {
        padding: 1.5rem;
    }
    
    .view-all-title {
        font-size: 1.5rem;
    }
    
    .view-all-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }
}

/* Genres Page Styles */
.genres-page {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(26, 11, 46, 0.98), rgba(10, 10, 10, 0.98));
}

.genres-page-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 3rem;
    overflow: hidden;
}

.genres-hero-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(26, 11, 46, 0.9) 0%, 
        rgba(15, 52, 96, 0.8) 50%, 
        rgba(10, 10, 10, 0.9) 100%);
    backdrop-filter: blur(20px);
}

.genres-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
}

.genres-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    padding: 2rem;
}

.genres-page-title {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-gold), #ffed4e, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 1rem 0;
    text-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.genres-page-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.genres-quick-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.genre-nav-btn {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 25px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.genre-nav-btn:hover {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    color: #000;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}

.genres-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    gap: 2rem;
    color: var(--text-primary);
}

.genres-page-content {
    padding: 0 2rem 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.genre-category {
    margin-bottom: 4rem;
    padding: 2rem 0;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.genre-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.genre-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.genre-title {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-gold), #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.5rem 0;
}

.genre-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-style: italic;
}

.genre-carousel {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.genre-carousel::before,
.genre-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px;
    z-index: 2;
    pointer-events: none;
}

.genre-carousel::before {
    left: 0;
    background: linear-gradient(to right, rgba(26, 11, 46, 0.8), transparent);
}

.genre-carousel::after {
    right: 0;
    background: linear-gradient(to left, rgba(26, 11, 46, 0.8), transparent);
}

.genre-carousel::-webkit-scrollbar {
    display: none;
}

.genre-carousel-track {
    display: flex;
    gap: 1.5rem;
    padding: 0 1rem;
    min-width: max-content;
    /* Removed auto-scroll animation for better user control */
}

.horizontal-movie-card {
    flex: 0 0 200px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

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

.horizontal-movie-poster {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 2/3;
    background: linear-gradient(135deg, rgba(26, 11, 46, 0.9), rgba(10, 10, 10, 0.9));
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

.horizontal-movie-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 50%);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

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

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

.horizontal-movie-info {
    color: white;
    text-align: center;
    width: 100%;
}

.horizontal-movie-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--primary-gold);
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.horizontal-movie-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    opacity: 0.9;
}

.horizontal-movie-year {
    color: rgba(255, 255, 255, 0.8);
}

.horizontal-movie-rating {
    color: var(--primary-gold);
    font-weight: 600;
}

/* Genres Page Mobile Styles */
@media (max-width: 768px) {
    .genres-page-title {
        font-size: 2.5rem;
    }
    
    .genres-page-subtitle {
        font-size: 1.1rem;
    }
    
    .genres-quick-nav {
        gap: 0.8rem;
    }
    
    .genre-nav-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .genre-title {
        font-size: 1.8rem;
    }
    
    .genre-description {
        font-size: 0.9rem;
    }
    
    .horizontal-movie-card {
        flex: 0 0 150px;
    }
    
    .genre-carousel-track {
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .genres-page-content {
        padding: 0 1rem 3rem 1rem;
    }
    
    .genre-header-actions {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-end;
    }
}

/* ===== WATCHLIST PAGE STYLES ===== */
.watchlist-page {
    min-height: 100vh;
    padding: 6rem 2rem 4rem;
    background: var(--dark-bg);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    overflow-y: auto;
}

.watchlist-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    position: relative;
}

.watchlist-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-gold) 0%, #ffed4e 50%, var(--primary-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.watchlist-title i {
    color: var(--primary-gold);
    -webkit-text-fill-color: var(--primary-gold);
}

.watchlist-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.clear-watchlist-btn {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 2px solid rgba(220, 53, 69, 0.3);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.clear-watchlist-btn:hover {
    background: rgba(220, 53, 69, 0.3);
    border-color: #dc3545;
    transform: translateY(-2px);
}

.empty-watchlist {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.empty-watchlist i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-watchlist h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.empty-watchlist p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.browse-movies-btn {
    background: linear-gradient(135deg, var(--primary-gold), #ffed4e);
    color: var(--dark-bg);
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.browse-movies-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.3);
}

.watchlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.watchlist-item {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.watchlist-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
    box-shadow: 0 20px 40px var(--shadow-medium);
}

.watchlist-poster {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    aspect-ratio: 2/3;
    max-height: 250px;
}

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

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

.watchlist-poster:hover .watchlist-overlay {
    opacity: 1;
}

.watchlist-poster:hover img {
    transform: scale(1.05);
}

.watchlist-overlay i {
    font-size: 3rem;
    color: var(--primary-gold);
}

.watchlist-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.watchlist-movie-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0;
}

.watchlist-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.watchlist-year {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.watchlist-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--primary-gold);
    font-weight: 600;
    font-size: 0.95rem;
}

.watchlist-overview {
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
    font-size: 0.95rem;
    margin: 0;
}

.remove-from-watchlist-btn {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
    padding: 0.7rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
}

.remove-from-watchlist-btn:hover {
    background: rgba(220, 53, 69, 0.25);
    border-color: #dc3545;
    transform: translateY(-1px);
}

.watchlist-item.error {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.watchlist-error {
    text-align: center;
    color: var(--text-muted);
}

.watchlist-error i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #dc3545;
}

/* Responsive Design for Watchlist */
@media (max-width: 768px) {
    .watchlist-page {
        padding: 5rem 1rem 3rem;
    }
    
    .watchlist-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .watchlist-item {
        flex-direction: row;
        height: auto;
    }
    
    .watchlist-poster {
        flex: 0 0 120px;
        aspect-ratio: 2/3;
        max-height: 180px;
    }
    
    .watchlist-info {
        padding: 1rem;
    }
    
    .watchlist-movie-title {
        font-size: 1.1rem;
    }
    
    .clear-watchlist-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* ===== ENHANCED STREAMING SERVICES STYLES ===== */
.streaming-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.streaming-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.streaming-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.streaming-item:hover::before {
    left: 100%;
}

.streaming-item:hover {
    transform: translateY(-3px);
    border-color: var(--hover-color, var(--primary-gold));
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, var(--card-bg), rgba(255, 255, 255, 0.05));
}

.streaming-logo {
    flex: 0 0 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.streaming-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.streaming-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.streaming-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.streaming-type {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.streaming-type.subscription {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.streaming-type.rent {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.streaming-type.buy {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.streaming-arrow {
    flex: 0 0 auto;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.streaming-item:hover .streaming-arrow {
    color: var(--hover-color, var(--primary-gold));
    transform: translateX(3px);
}

.streaming-disclaimer {
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.4;
}

.streaming-disclaimer i {
    color: #FFC107;
    margin-top: 0.1rem;
    flex: 0 0 auto;
}

.no-streaming-container {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed var(--border-color);
    border-radius: 15px;
    color: var(--text-secondary);
}

.no-streaming-container i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-streaming-container h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.no-streaming-container p {
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto;
}

/* Responsive Design for Streaming Services */
@media (max-width: 768px) {
    .streaming-services {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .streaming-item {
        padding: 0.8rem;
        gap: 0.8rem;
    }
    
    .streaming-logo {
        flex: 0 0 40px;
        height: 40px;
    }
    
    .streaming-name {
        font-size: 0.95rem;
    }
    
    .streaming-type {
        font-size: 0.8rem;
        padding: 0.15rem 0.5rem;
    }
    
    .no-streaming-container {
        padding: 2rem 1rem;
    }
    
    .no-streaming-container i {
        font-size: 2rem;
    }
}


