/* ==================== CUSTOM STYLES (custom.css) ==================== */
/* Ultra-Modern Custom Styles */

html,
body {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    overflow-x: hidden;
}

/* Advanced Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.3), 0 0 40px rgba(139, 92, 246, 0.2);
    }

    100% {
        box-shadow: 0 0 30px rgba(236, 72, 153, 0.5), 0 0 60px rgba(236, 72, 153, 0.3);
    }
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes scaleSlow {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-float {
    animation: float 8s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite alternate;
}

.animate-gradient {
    animation: gradient 15s ease infinite;
}

.animate-scale-slow {
    animation: scaleSlow 20s linear infinite alternate;
}

/* Ultra-Modern Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-strong {
    background: rgba(10, 14, 39, 0.7);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
    background: rgba(20, 25, 50, 0.9);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Premium Gradient Backgrounds */
.gradient-bg {
    background: linear-gradient(-45deg, #0a0e27, #1a1f3a, #2a1545, #1a2f4a);
    background-size: 400% 400%;
}

.gradient-purple-pink {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
}

/* Ultra-Modern Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 14, 39, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.6);
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Premium Hover Effects */
.hover-lift {
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

/* Star Rating with Glow */
.star-rating {
    color: #fbbf24;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6));
}

/* Premium Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
}

.badge-quality {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
}

.badge-year {
    background: rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
    border-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.badge-rating {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.3);
}

/* Genre Tags with Neon Effect */
.genre-tag {
    background: rgba(139, 92, 246, 0.1);
    color: #d8b4fe;
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 0.5rem 1.25rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.genre-tag:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
    color: white;
}

/* Movie Card Ultra-Modern Effect */
.movie-card {
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
}

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

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

.movie-card::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    border-radius: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    filter: blur(15px);
}

/* Button Hover Effects */
.btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary::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;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.6), 0 0 60px rgba(236, 72, 153, 0.4);
    transform: translateY(-2px) scale(1.02);
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #8b5cf6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Filter Button */
.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #9ca3af;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.filter-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.filter-btn.active {
    color: white;
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

/* Responsive Optimizations */
@media (max-width: 640px) {

    .glass,
    .glass-strong {
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }

    /* Prevent horizontal scroll on mobile */
    body,
    html {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* Ensure containers don't overflow */
    .container {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Smooth Transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Selection Color */
::selection {
    background: rgba(139, 92, 246, 0.5);
    color: white;
}

::-moz-selection {
    background: rgba(139, 92, 246, 0.5);
    color: white;
}

/* Focus Styles */
*:focus-visible {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
}

/* Image Loading Placeholder */
img {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(236, 72, 153, 0.05));
}

/* Skeleton Loader Styles */
.skeleton {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.03) 0%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0.03) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 1rem;
}

.skeleton-card {
    position: relative;
    overflow: hidden;
}

.skeleton-poster {
    width: 100%;
    aspect-ratio: 2/3;
    background: linear-gradient(90deg,
            rgba(139, 92, 246, 0.1) 0%,
            rgba(236, 72, 153, 0.1) 50%,
            rgba(139, 92, 246, 0.1) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 1rem;
}

.skeleton-text {
    height: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    animation: shimmer 1.5s ease-in-out infinite;
}

/* Enhanced Player Tab */
.player-tab {
    position: relative;
}

.player-tab::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.player-tab.active::before,
.player-tab:hover::before {
    width: 80%;
}

/* Lazy Load Fade In */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 50;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 30px rgba(139, 92, 246, 0.6);
}

@media (max-width: 640px) {
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* ==================== ADVANCED STYLES (advanced.css) ==================== */

/* ==================== LIGHT THEME ==================== */
.light-theme {
    --bg-dark: #f5f5f5;
    --bg-dark-light: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
}

.light-theme body {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: #1a1a1a;
}

.light-theme .glass,
.light-theme .glass-strong,
.light-theme .glass-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

.light-theme .text-white {
    color: #1a1a1a !important;
}

.light-theme .text-gray-400,
.light-theme .text-gray-500 {
    color: #666666 !important;
}

.light-theme .bg-dark,
.light-theme .bg-dark-light {
    background: #ffffff !important;
}

.light-theme .border-white\/10 {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* ==================== PARTICLE EFFECTS ==================== */
.particle {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    animation: particle-float 3s ease-out forwards;
    z-index: 9999;
}

@keyframes particle-float {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateY(-200px) scale(0);
        opacity: 0;
    }
}

/* ==================== CARD FLIP ANIMATION ==================== */
.movie-card-flip {
    perspective: 1000px;
}

.movie-card-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.movie-card-flip:hover .movie-card-flip-inner {
    transform: rotateY(180deg);
}

.movie-card-flip-front,
.movie-card-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 1rem;
}

.movie-card-flip-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(236, 72, 153, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

/* ==================== CUSTOM CURSOR ==================== */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #8b5cf6;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.2s ease;
    mix-blend-mode: difference;
}

.custom-cursor.active {
    transform: scale(1.5);
    background: rgba(139, 92, 246, 0.3);
}

/* ==================== CONFETTI ==================== */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    pointer-events: none;
    z-index: 9999;
    animation: confetti-fall 3s ease-out forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ==================== FULLSCREEN MODE ==================== */
.fullscreen-mode {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: #0a0e27;
    overflow-y: auto;
}

/* ==================== THEATER MODE ==================== */
.theater-mode {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.theater-mode .container {
    max-width: 100% !important;
}

/* ==================== MOOD BADGES ==================== */
.mood-badge {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.mood-badge.happy {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.mood-badge.sad {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.mood-badge.excited {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.mood-badge.relaxed {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.mood-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ==================== STATISTICS DASHBOARD ==================== */
.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== SWIPE INDICATOR ==================== */
.swipe-indicator {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    padding: 1rem;
    background: rgba(139, 92, 246, 0.9);
    border-radius: 0.5rem;
    color: white;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.swipe-indicator.left {
    left: 2rem;
}

.swipe-indicator.right {
    right: 2rem;
}

.swipe-indicator.active {
    opacity: 1;
}

/* ==================== SLIDE ANIMATIONS ==================== */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

/* ==================== GLOW EFFECTS ==================== */
.glow-primary {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5),
        0 0 40px rgba(139, 92, 246, 0.3),
        0 0 60px rgba(139, 92, 246, 0.1);
}

.glow-secondary {
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.5),
        0 0 40px rgba(236, 72, 153, 0.3),
        0 0 60px rgba(236, 72, 153, 0.1);
}

/* ==================== PULSE ANIMATION ==================== */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    }

    50% {
        box-shadow: 0 0 40px rgba(139, 92, 246, 0.8);
    }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* ==================== LIGHT THEME OVERRIDES (light-theme.css) ==================== */
/* ==================== COMPREHENSIVE LIGHT THEME ==================== */
.light-theme {
    --bg-dark: #f8fafc;
    --bg-dark-light: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
}

/* === BACKGROUNDS === */
.light-theme body {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    color: #0f172a !important;
}

.light-theme .bg-dark {
    background: #ffffff !important;
}

.light-theme .bg-dark-light {
    background: #f8fafc !important;
}

.light-theme .bg-gradient-to-br,
.light-theme .bg-gradient-to-t,
.light-theme .bg-gradient-to-r {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9)) !important;
}

/* === TEXT COLORS === */
.light-theme .text-white {
    color: #0f172a !important;
}

.light-theme .text-gray-200,
.light-theme .text-gray-300,
.light-theme .text-gray-400,
.light-theme .text-gray-500 {
    color: #64748b !important;
}

.light-theme .text-gray-600 {
    color: #475569 !important;
}

/* === GLASS EFFECTS === */
.light-theme .glass,
.light-theme .glass-strong,
.light-theme .glass-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

/* === BORDERS === */
.light-theme .border-white\/5,
.light-theme .border-white\/10,
.light-theme .border-white\/20,
.light-theme .border-white\/30 {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* === BACKGROUNDS WITH OPACITY === */
.light-theme .bg-white\/5,
.light-theme .bg-white\/10 {
    background: rgba(0, 0, 0, 0.05) !important;
}

.light-theme .bg-black\/60,
.light-theme .bg-black\/80 {
    background: rgba(255, 255, 255, 0.9) !important;
}

/* === MOVIE CARDS === */
.light-theme .movie-card {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

.light-theme .movie-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* === HEADER === */
.light-theme #header {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}

/* === FOOTER === */
.light-theme footer {
    background: #ffffff !important;
    border-top-color: rgba(0, 0, 0, 0.1) !important;
}

/* === BUTTONS === */
.light-theme .btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #ec4899) !important;
    color: white !important;
}

.light-theme button {
    color: #0f172a;
}

/* === BADGES === */
.light-theme .badge {
    background: rgba(139, 92, 246, 0.15) !important;
    color: #7c3aed !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
}

.light-theme .badge-year,
.light-theme .badge-rating,
.light-theme .badge-quality {
    background: rgba(139, 92, 246, 0.15) !important;
    color: #7c3aed !important;
}

/* === FILTER BUTTONS === */
.light-theme .filter-btn {
    color: #64748b !important;
    background: rgba(0, 0, 0, 0.03) !important;
}

.light-theme .filter-btn:hover {
    background: rgba(139, 92, 246, 0.1) !important;
    color: #7c3aed !important;
}

.light-theme .filter-btn.active {
    background: rgba(139, 92, 246, 0.2) !important;
    color: #7c3aed !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
}

/* === INPUTS === */
.light-theme input,
.light-theme select,
.light-theme textarea {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
}

.light-theme input::placeholder {
    color: #94a3b8 !important;
}

/* === SCROLLBAR === */
.light-theme ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05) !important;
}

.light-theme ::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.4) !important;
}

.light-theme ::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.6) !important;
}

/* === FLOATING PARTICLES === */
.light-theme .absolute.top-1\/4,
.light-theme .absolute.bottom-1\/4,
.light-theme .absolute.top-1\/2 {
    opacity: 0.2 !important;
}

/* === STATS DASHBOARD === */
.light-theme .stat-card {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.light-theme #stats-dashboard {
    background: rgba(255, 255, 255, 0.98) !important;
    color: #0f172a !important;
}

/* === SHARE MODAL === */
.light-theme #share-modal {
    background: rgba(0, 0, 0, 0.5) !important;
}

.light-theme #share-modal>div {
    background: rgba(255, 255, 255, 0.98) !important;
    color: #0f172a !important;
}

/* === BACK TO TOP BUTTON === */
.light-theme .back-to-top {
    background: linear-gradient(135deg, #8b5cf6, #ec4899) !important;
    color: white !important;
}

/* === THEME TOGGLE BUTTON === */
.light-theme #theme-toggle {
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
}

/* === HERO SECTION === */
.light-theme .absolute.inset-0.bg-gradient-to-t,
.light-theme .absolute.inset-0.bg-gradient-to-r {
    background: linear-gradient(to top, rgba(248, 250, 252, 0.9), transparent) !important;
}

/* === CONTINUE WATCHING === */
.light-theme #continue-watching-section {
    color: #0f172a !important;
}

/* === PAGINATION === */
.light-theme .pagination a {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #0f172a !important;
}

/* === TOAST NOTIFICATIONS === */
.light-theme #toast-container>div {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #0f172a !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* === MOBILE MENU === */
.light-theme #mobile-menu {
    background: rgba(255, 255, 255, 0.98) !important;
}

/* === SEARCH SUGGESTIONS === */
.light-theme #search-suggestions {
    background: rgba(255, 255, 255, 0.98) !important;
    color: #0f172a !important;
}

/* === MOOD BADGES === */
.light-theme .mood-badge {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* ==================== FIXES AND ADJUSTMENTS (fixes.css) ==================== */
/* === LOGO FIX - Make visible in light theme === */
.light-theme .text-transparent {
    -webkit-text-fill-color: #8b5cf6 !important;
    background: linear-gradient(135deg, #8b5cf6, #ec4899) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

/* === FILTER BAR - Light theme styling === */
.light-theme #filter-bar {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #0f172a !important;
}

.light-theme #filter-bar select,
.light-theme #filter-bar input,
.light-theme #filter-bar button {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
}

.light-theme #filter-bar label,
.light-theme #filter-bar span {
    color: #64748b !important;
}

.light-theme #filter-bar option {
    background: #ffffff !important;
    color: #0f172a !important;
}

/* === STATS DASHBOARD - COMPLETELY HIDDEN === */
#stats-dashboard {
    display: none !important;
}

/* === REMOVE CUSTOM CURSOR === */
.custom-cursor {
    display: none !important;
}

/* === BUTTON ALIGNMENT AND CENTERING === */
.back-to-top {
    bottom: 2rem !important;
    right: 2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#theme-toggle {
    bottom: 6.5rem !important;
    right: 2rem !important;
}

@media (max-width: 640px) {
    .back-to-top {
        bottom: 1rem !important;
        right: 1rem !important;
    }

    #theme-toggle {
        bottom: 5rem !important;
        right: 1rem !important;
    }
}

/* === MOBILE MENU === */
.light-theme #mobile-menu {
    background: rgba(255, 255, 255, 0.98) !important;
}

/* === SEARCH SUGGESTIONS === */
.light-theme #search-suggestions {
    background: rgba(255, 255, 255, 0.98) !important;
    color: #0f172a !important;
}

/* === MOOD BADGES === */
.light-theme .mood-badge {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* === ADAPTIVE FILTER MENU === */
@media (max-width: 768px) {
    #filter-bar {
        overflow-x: auto !important;
    }

    #filter-bar>div {
        flex-wrap: nowrap !important;
        min-width: max-content !important;
    }
}

/* === LIGHT THEME CONTRAST FIXES === */
.light-theme .text-yellow-400 {
    color: #d97706 !important;
    /* Darker gold for visibility on white */
}

/* Ensure social buttons keep white text in light theme */
.light-theme .bg-blue-600,
.light-theme .bg-sky-500,
.light-theme .bg-green-600 {
    color: white !important;
}

/* Fix remove button visibility in continue watching */
.light-theme #continue-watching-section button.bg-black\/60 {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #ef4444 !important;
    /* Red icon for visibility */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Light Theme Text Override */
.light-theme .text-gray-300 {
    color: #4b5563 !important;
}