/* ============================================
   CineVerse — Movie Streaming Website
   A vibrant, modern, immersive design
   ============================================ */

/* === CSS Variables / Design Tokens === */
:root {
    /* Colors */
    --bg-primary: #0a0a1a;
    --bg-secondary: #12122a;
    --bg-card: rgba(20, 20, 50, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --bg-glass-hover: rgba(255, 255, 255, 0.1);

    /* Accent Colors */
    --accent-primary: #ff3cac;
    --accent-secondary: #784ba0;
    --accent-tertiary: #2b86c5;
    --accent-gold: #ffd700;
    --accent-cyan: #00f5d4;
    --accent-orange: #ff6b35;
    --accent-lime: #adff2f;
    --accent-violet: #8b5cf6;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #ff3cac 0%, #784ba0 50%, #2b86c5 100%);
    --gradient-hot: linear-gradient(135deg, #f72585 0%, #b5179e 50%, #7209b7 100%);
    --gradient-warm: linear-gradient(135deg, #ff6b35 0%, #f72585 100%);
    --gradient-cool: linear-gradient(135deg, #00f5d4 0%, #2b86c5 100%);
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ff6b35 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 60, 172, 0.1), rgba(43, 134, 197, 0.1));

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);

    /* Borders */
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(255, 60, 172, 0.3);

    /* Shadows */
    --shadow-glow: 0 0 30px rgba(255, 60, 172, 0.3), 0 0 60px rgba(120, 75, 160, 0.2);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-deep: 0 20px 60px rgba(0, 0, 0, 0.5);

    /* Spacing */
    --nav-height: 72px;
    --section-padding: 60px;
    --card-radius: 16px;

    /* Fonts */
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Inter', sans-serif;
}

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) var(--bg-primary);
}

::-webkit-scrollbar {
    width: 8px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
}

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

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

/* === Animated Background === */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-tertiary);
    top: 50%;
    right: -200px;
    animation-delay: -5s;
    animation-duration: 25s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--accent-secondary);
    bottom: -150px;
    left: 30%;
    animation-delay: -10s;
    animation-duration: 22s;
}

.orb-4 {
    width: 350px;
    height: 350px;
    background: var(--accent-cyan);
    top: 30%;
    left: 60%;
    animation-delay: -15s;
    animation-duration: 28s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -50px) scale(1.1); }
    50% { transform: translate(-30px, 30px) scale(0.95); }
    75% { transform: translate(40px, 40px) scale(1.05); }
}

/* === Navbar === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 30px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.logo i {
    font-size: 1.4rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-glass-hover);
}

.nav-link.active {
    color: var(--text-primary);
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(255, 60, 172, 0.3);
}

.nav-link i {
    font-size: 0.85rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 0;
    padding: 10px 0;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.search-container.active .search-input {
    width: 250px;
    padding: 10px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    margin-right: 8px;
}

.search-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

.mobile-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    font-size: 1.2rem;
    align-items: center;
    justify-content: center;
}

/* === Hero Section === */
.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
    overflow: hidden;
}

.hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    transition: opacity 1s ease, background-image 1s ease;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 26, 0.3) 0%,
        rgba(10, 10, 26, 0.5) 40%,
        rgba(10, 10, 26, 0.85) 70%,
        var(--bg-primary) 100%
    ),
    linear-gradient(
        to right,
        rgba(10, 10, 26, 0.9) 0%,
        transparent 50%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    animation: fadeUp 1s ease;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--gradient-warm);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 60, 172, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(255, 60, 172, 0); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    max-width: 700px;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    font-size: 0.95rem;
}

.hero-rating {
    color: var(--accent-gold);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-year {
    color: var(--text-secondary);
    padding: 3px 12px;
    background: var(--bg-glass);
    border-radius: 6px;
    font-weight: 500;
}

.hero-lang {
    color: var(--accent-cyan);
    font-weight: 600;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.hero-slider {
    position: absolute;
    bottom: 30px;
    right: 40px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 2px solid var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: scale(1.2);
    box-shadow: 0 0 10px var(--accent-primary);
}

/* === Buttons === */
.btn {
    padding: 14px 32px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

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

.btn-glow {
    box-shadow: 0 0 20px rgba(255, 60, 172, 0.3);
}

.btn-glow:hover {
    box-shadow: 0 0 40px rgba(255, 60, 172, 0.5), 0 0 80px rgba(120, 75, 160, 0.3);
}

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

.btn-secondary:hover {
    background: var(--bg-glass-hover);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

/* === Movie Sections === */
.main-content {
    position: relative;
    z-index: 1;
    padding: 20px 0 60px;
}

.movie-section {
    padding: 30px 40px;
}

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

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.3rem;
}

.see-all-btn {
    padding: 8px 20px;
    border-radius: 10px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.see-all-btn:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateX(4px);
}

/* === Movie Row (Horizontal Scroll) === */
.movie-row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 20px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.movie-row::-webkit-scrollbar {
    height: 4px;
}

.movie-row::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 10px;
}

/* === Movie Grid (Search Results) === */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

/* === Movie Card === */
.movie-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
    cursor: pointer;
    position: relative;
    border-radius: var(--card-radius);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
}

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

.movie-card:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: var(--accent-primary);
    box-shadow: 0 15px 40px rgba(255, 60, 172, 0.2), 0 0 0 1px var(--accent-primary);
    z-index: 10;
}

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

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

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

.movie-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(10, 10, 26, 0.95) 0%, rgba(10, 10, 26, 0.3) 40%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
}

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

.card-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 30px rgba(255, 60, 172, 0.5);
}

.movie-card:hover .card-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.15) !important;
}

.card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 2;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.card-rating i {
    font-size: 0.7rem;
}

.card-lang-badge {
    padding: 4px 8px;
    background: var(--gradient-cool);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
}

.movie-card-info {
    padding: 14px;
}

.movie-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
}

.movie-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.movie-card-year {
    color: var(--text-secondary);
}

/* === Genre Section === */
.genre-section, .language-section {
    padding: 30px 40px;
}

.genre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.genre-card {
    position: relative;
    padding: 24px 20px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    cursor: pointer;
    text-align: center;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.genre-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--genre-gradient, var(--gradient-primary));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.genre-card:hover::before {
    opacity: 0.2;
}

.genre-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(255, 60, 172, 0.15);
}

.genre-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
    position: relative;
    z-index: 1;
}

.genre-name {
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* === Language Pills === */
.language-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.lang-pill {
    padding: 10px 22px;
    border-radius: 25px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-pill:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
    border-color: var(--accent-cyan);
}

.lang-pill.active {
    background: var(--gradient-cool);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 245, 212, 0.3);
}

.lang-pill .lang-flag {
    font-size: 1.1rem;
}

/* === Player Modal === */
.player-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    overflow-y: auto;
    padding: 40px 20px;
    animation: modalFadeIn 0.4s ease;
}

.player-modal.active {
    display: block;
}

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

.player-container {
    margin: 40px auto;
    width: 100%;
    max-width: 1200px;
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-deep);
    animation: modalSlideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-glass);
}

.player-info {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.player-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.player-year {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 2px 10px;
    background: var(--bg-glass);
    border-radius: 6px;
}

.player-close {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.player-close:hover {
    background: #e74c3c;
    color: white;
}

.player-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

.player-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.player-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--text-secondary);
    font-size: 0.95rem;
    z-index: 5;
    transition: opacity 0.4s ease;
}

.player-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--bg-glass);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.player-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border-glass);
    flex-wrap: wrap;
    gap: 12px;
}

.subtitle-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.subtitle-btn {
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: var(--font-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.subtitle-btn.active {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    border-color: var(--accent-cyan);
    font-weight: 600;
}

.subtitle-lang-select {
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
}

.subtitle-lang-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.server-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.server-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.server-btn {
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: 0.83rem;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
}

.server-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 60, 172, 0.3);
}

.server-btn:hover:not(.active) {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

/* === Detail Modal === */
.detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5000;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    overflow-y: auto;
    padding: 40px 20px;
}

.detail-modal.active {
    display: block;
}

.detail-container {
    position: relative;
    margin: 40px auto;
    width: 100%;
    max-width: 900px;
    background: var(--bg-secondary);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-deep);
    animation: modalSlideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.detail-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.detail-close:hover {
    background: #e74c3c;
    transform: rotate(90deg);
}

.detail-backdrop {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.detail-backdrop::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--bg-secondary), transparent);
}

.detail-content {
    display: flex;
    gap: 30px;
    padding: 0 30px 30px;
    margin-top: -100px;
    position: relative;
    z-index: 2;
}

.detail-poster-wrap {
    flex-shrink: 0;
    width: 200px;
}

.detail-poster {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--border-glass);
}

.detail-watch-btn {
    width: 100%;
    margin-top: 16px;
    justify-content: center;
    padding: 12px;
    font-size: 0.95rem;
}

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

.detail-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.detail-rating {
    color: var(--accent-gold);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.detail-year, .detail-runtime, .detail-lang {
    color: var(--text-secondary);
    padding: 3px 12px;
    background: var(--bg-glass);
    border-radius: 6px;
}

.detail-lang {
    color: var(--accent-cyan);
    text-transform: uppercase;
    font-weight: 600;
}

.detail-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.detail-genre-tag {
    padding: 5px 14px;
    border-radius: 20px;
    background: var(--gradient-card);
    border: 1px solid var(--border-glass);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.detail-overview {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.detail-extra {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.detail-extra-item {
    padding: 14px;
    background: var(--bg-glass);
    border-radius: 12px;
    border: 1px solid var(--border-glass);
}

.extra-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.extra-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* === Toast === */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 14px 28px;
    background: var(--gradient-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    z-index: 10000;
    box-shadow: var(--shadow-glow);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* === Footer === */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-glass);
    padding: 60px 40px 30px;
    position: relative;
}

.footer-content {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 350px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    font-size: 0.88rem;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--border-glass);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-socials {
    display: flex;
    gap: 14px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* === Scroll to Top === */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--gradient-primary);
    color: white;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    box-shadow: var(--shadow-glow);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 40px rgba(255, 60, 172, 0.5);
}

/* === Loading Skeleton === */
.skeleton-card {
    flex: 0 0 200px;
    height: 340px;
    border-radius: var(--card-radius);
    background: linear-gradient(110deg, var(--bg-glass) 8%, rgba(255,255,255,0.08) 18%, var(--bg-glass) 33%);
    background-size: 200% 100%;
    animation: shimmer 1.5s linear infinite;
}

@keyframes shimmer {
    to { background-position-x: -200%; }
}

/* === Hidden Utility === */
.hidden {
    display: none !important;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .detail-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .detail-poster-wrap {
        width: 160px;
    }

    .detail-meta, .detail-genres {
        justify-content: center;
    }

    .detail-extra {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(10, 10, 26, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border-glass);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .search-container.active .search-input {
        width: 160px;
    }

    .hero {
        height: 65vh;
        min-height: 450px;
        padding-bottom: 60px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-slider {
        right: 20px;
        bottom: 20px;
    }

    .movie-section, .genre-section, .language-section {
        padding: 20px;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-links {
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .player-controls-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .movie-card {
        flex: 0 0 160px;
    }

    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 14px;
    }

    .genre-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }

    .detail-extra {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-meta {
        gap: 10px;
        font-size: 0.82rem;
    }

    .movie-card {
        flex: 0 0 140px;
    }

    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* === User Menu / Login Button === */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.login-nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 12px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 60, 172, 0.3);
}

.login-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 60, 172, 0.45);
}

.login-nav-btn i {
    font-size: 0.85rem;
}

.user-profile {
    position: relative;
}

.user-avatar-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: 2px solid transparent;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.user-avatar-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(255, 60, 172, 0.4);
}

.user-avatar {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 240px;
    background: rgba(18, 18, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

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

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
}

.dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

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

.dropdown-email {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-glass);
    margin: 4px 8px;
}

.dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(255, 60, 172, 0.1);
    color: var(--accent-primary);
}

.dropdown-item i {
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
}

    }
}

/* === Website Feedback UI === */
.feedback-float-btn {
    position: fixed !important; /* Safety Guard: Lock in place */
    bottom: 30px !important;
    right: 30px !important;
    z-index: 9999 !important; /* Higher than everything else */
    background: linear-gradient(135deg, #ff3cac, #784ba0, #2b86c5);
    background-size: 200% auto;
    color: white;
    border: none;
    padding: 14px 26px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 60, 172, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: gradientShift 5s ease infinite;
}

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

.feedback-float-btn:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 60, 172, 0.6);
}

.feedback-float-btn i {
    font-size: 1.1rem;
    color: #ffd700;
    animation: pulseHeart 1.5s infinite;
}

@keyframes pulseHeart {
    0% { transform: scale(1); }
    15% { transform: scale(1.3); }
    30% { transform: scale(1); }
    45% { transform: scale(1.3); }
    60% { transform: scale(1); }
}

.feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feedback-modal.active {
    opacity: 1;
    visibility: visible;
}

.feedback-container {
    background: rgba(22, 22, 38, 0.95);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    padding: 35px 30px;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    text-align: center;
}

.feedback-modal.active .feedback-container {
    transform: scale(1) translateY(0);
}

.feedback-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.feedback-close:hover {
    background: rgba(255, 60, 172, 0.2);
    color: var(--accent-primary);
    transform: rotate(90deg);
}

.feedback-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 200, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.feedback-container h3 {
    font-size: 1.6rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.feedback-container p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.star-rating-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px;
}

.star-rating-container i {
    font-size: 2rem;
    color: var(--border-glass);
    cursor: pointer;
    transition: all 0.2s ease;
}

.star-rating-container i:hover,
.star-rating-container i.hovered {
    color: var(--accent-gold);
    transform: scale(1.1);
}

.star-rating-container i.selected {
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.star-rating-container i.fas {
    /* Required because far fa-star doesn't fill */
}

#feedbackComment {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    color: white;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    resize: none;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

#feedbackComment:focus {
    outline: none;
    border-color: var(--accent-primary);
}

#submitFeedbackBtn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
}

.feedback-success {
    text-align: center;
    padding: 20px 0;
}

/* === Movie Player Modal === */
.player-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    align-items: flex-start; /* Allow scrolling from the top */
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto; /* Enable scrolling */
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.player-modal.active {
    opacity: 1;
    visibility: visible;
}

.player-container {
    width: 95%;
    max-width: 1100px;
    background: #12122a;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: playerPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes playerPop {
    from { transform: scale(0.9) translateY(40px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.player-header {
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.player-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.player-year {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.player-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-action-btn, .player-close {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.player-action-btn:hover, .player-close:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 60, 172, 0.4);
    border-color: transparent;
}

.player-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

.player-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.player-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    z-index: 5;
    transition: opacity 0.5s ease;
}

.player-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.player-controls-bar {
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.02);
}

.server-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.server-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-right: 5px;
}

.server-btn {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.server-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.server-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(255, 60, 172, 0.3);
}

@media (max-width: 768px) {
    .player-container { width: 100%; border-radius: 0; height: 100%; display: flex; flex-direction: column; }
    .player-wrapper { aspect-ratio: auto; flex: 1; }
    .player-controls-bar { padding: 15px; }
    .server-controls { gap: 6px; }
    .server-btn { padding: 6px 12px; font-size: 0.75rem; }
}

/* === Fullscreen Optimization (Surgical Addition) === */
.player-container:fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    border-radius: 0 !important;
    display: flex;
    flex-direction: column;
}

.player-container:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    border-radius: 0 !important;
    display: flex;
    flex-direction: column;
}

.player-container:fullscreen .player-wrapper {
    flex: 1;
}

