/* ============================================
   AniCineHub - Modern 2025 Stylesheet
   ============================================ */

/* CSS Variables */
:root {
    /* Colors */
    --neon-blue: #00D4FF;
    --electric-purple: #A259FF;
    --jet-black: #0A0A0A;
    --soft-gray: #1E1E1E;
    --text-white: #FFFFFF;
    --text-gray: #B0B0B0;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--neon-blue) 0%, var(--electric-purple) 100%);
    --gradient-dark: linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, rgba(30, 30, 30, 0.98) 100%);
    --gradient-card: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(162, 89, 255, 0.1) 100%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.5);
    --shadow-glow-purple: 0 0 20px rgba(162, 89, 255, 0.5);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--jet-black);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding-top: 0;
    /* Fixed: Removed padding to allow hero to go behind navbar */
}

/* Light Mode */
body:not(.night-mode) {
    background: #F5F5F5;
    color: #1A1A1A;
}

body:not(.night-mode) .navbar {
    background: rgba(255, 255, 255, 0.85);
    /* More transparent for glass effect */
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

body:not(.night-mode) .navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body:not(.night-mode) .logo-text {
    color: #1A1A1A;
}

body:not(.night-mode) .icon-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #333;
}

body:not(.night-mode) .icon-btn:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

body:not(.night-mode) .hamburger span {
    background: #1A1A1A;
}

body:not(.night-mode) .card {
    background: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body:not(.night-mode) .card-title {
    color: #1A1A1A;
}

body:not(.night-mode) .card-meta {
    color: #666;
}

body:not(.night-mode) p,
body:not(.night-mode) .text-gray {
    color: #555;
}

body:not(.night-mode) .footer {
    background: #E5E5E5;
    border-top-color: rgba(0, 0, 0, 0.05);
}

body:not(.night-mode) .footer-title {
    color: #1A1A1A;
}

body:not(.night-mode) .social-link {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

body:not(.night-mode) .social-link:hover {
    background: var(--gradient-primary);
    color: white;
}

body:not(.night-mode) .search-wrapper {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

body:not(.night-mode) .search-wrapper input {
    color: #1A1A1A;
}

body:not(.night-mode) .search-wrapper i {
    color: #666;
}

body:not(.night-mode) .close-search {
    color: #666;
}

body:not(.night-mode) .close-search:hover {
    color: #000;
}

body:not(.night-mode) .nav-link {
    color: #555;
}

body:not(.night-mode) .nav-link:hover,
body:not(.night-mode) .nav-link.active {
    color: #000;
    background: rgba(0, 0, 0, 0.05);
}

body:not(.night-mode) .btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #333;
}

body:not(.night-mode) .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: var(--neon-blue);
}

body:not(.night-mode) .search-dropdown {
    background: rgba(255, 255, 255, 0.98);
}

body:not(.night-mode) .search-suggestions {
    background: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body:not(.night-mode) .suggestion-item {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

body:not(.night-mode) .suggestion-item:hover {
    background: rgba(0, 212, 255, 0.05);
}

body:not(.night-mode) .suggestion-title {
    color: #1A1A1A;
}

/* Mobile Menu Light Mode */
body:not(.night-mode) .mobile-menu-overlay {
    background: rgba(255, 255, 255, 0.98);
}

body:not(.night-mode) .mobile-nav-link {
    color: #333;
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-gray);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.7);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--neon-blue);
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-normal);
}

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

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--jet-black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--neon-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacing-md);
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-sm) 0;
    z-index: 1000;
    transition: var(--transition-normal);
}

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

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
}

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

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-gray);
    font-weight: 500;
    transition: var(--transition-normal);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--gradient-primary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--gradient-primary);
    color: var(--text-white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-white);
    border-radius: 2px;
    transition: var(--transition-normal);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Search Dropdown */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    /* Fixed: No padding when hidden */
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal), padding var(--transition-normal);
    display: none;
    /* Fixed: Hidden by default */
}

.search-dropdown.active {
    display: block;
    max-height: 600px;
    padding: var(--spacing-md) 0;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 0 var(--spacing-md);
    transition: var(--transition-normal);
}

.search-wrapper:focus-within {
    border-color: var(--neon-blue);
    box-shadow: var(--shadow-glow);
}

.search-wrapper i {
    color: var(--text-gray);
    margin-right: var(--spacing-xs);
}

.search-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 1rem 0;
    color: var(--text-white);
    font-size: 1.1rem;
}

.close-search {
    background: transparent;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    transition: var(--transition-normal);
}

.close-search:hover {
    color: var(--text-white);
}

.search-suggestions {
    display: none;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 1rem;
    background: rgba(30, 30, 30, 0.98);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-normal);
    cursor: pointer;
}

.suggestion-item:hover {
    background: rgba(0, 212, 255, 0.1);
}

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

.suggestion-image {
    width: 50px;
    height: 75px;
    object-fit: cover;
    border-radius: 4px;
}

.suggestion-info {
    flex: 1;
}

.suggestion-title {
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.25rem;
}

.suggestion-meta {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* Cards */
.card {
    background: rgba(30, 30, 30, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
    position: relative;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: var(--neon-blue);
}

.card-image {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: var(--spacing-md);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--text-white);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.9rem;
    color: var(--text-gray);
}

.rating {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--gradient-primary);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
}

.rating i {
    color: #FFD700;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: var(--spacing-md);
}

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

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

.grid-6 {
    grid-template-columns: repeat(6, 1fr);
}

/* Section */
.section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
}

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

/* Footer */
.footer {
    background: var(--gradient-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.social-link:hover {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: var(--text-gray);
    font-size: 0.9rem;
    transition: var(--transition-normal);
}

.footer-links a:hover {
    color: var(--neon-blue);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.tmdb-attribution {
    margin-top: var(--spacing-sm);
}

.tmdb-attribution img {
    vertical-align: middle;
    opacity: 0.7;
    transition: var(--transition-normal);
}

.tmdb-attribution img:hover {
    opacity: 1;
}

/* Scroll to Top */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: var(--text-white);
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 999;
}

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

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.8);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md);
    z-index: 999;
    transform: translateY(100%);
    transition: transform var(--transition-normal);
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    max-width: 900px;
    margin: 0 auto;
}

.cookie-content i {
    font-size: 2rem;
    color: var(--neon-blue);
}

.cookie-content p {
    flex: 1;
    margin: 0;
}

/* Hero Section Overrides */
.trending-hero,
.search-hero {
    padding: 120px 0 50px;
    /* Increased top padding for fixed navbar */
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(162, 89, 255, 0.1) 100%);
    text-align: center;
    position: relative;
}

.details-content {
    padding-top: 120px !important;
    /* Ensure content clears navbar */
}

/* Search Box Styles (Moved from search.php) */
.search-box {
    max-width: 700px;
    margin: 2rem auto 0;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 1.2rem 3.5rem 1.2rem 1.5rem;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.search-box button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.8);
    transform: translateY(-50%) scale(1.05);
}

/* Light Mode Search Box Overrides */
body:not(.night-mode) .search-box input {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1A1A1A;
}

body:not(.night-mode) .search-box input:focus {
    background: #FFFFFF;
    border-color: var(--neon-blue);
}

/* Carousel Styles */
.carousel {
    position: relative;
    padding: 0 50px;
    /* Space for buttons */
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.carousel-item {
    flex: 0 0 16.666%;
    padding: 0 8px;
    box-sizing: border-box;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
    transition: all 0.3s ease;
    opacity: 0.9;
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.carousel-prev:hover,
.carousel-next:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.6);
    opacity: 1;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1.5rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active,
.carousel-dot:hover {
    background: var(--neon-blue);
    transform: scale(1.2);
}

body:not(.night-mode) .carousel-dot {
    background: rgba(0, 0, 0, 0.2);
}

body:not(.night-mode) .carousel-dot.active,
body:not(.night-mode) .carousel-dot:hover {
    background: var(--neon-blue);
}

@media (max-width: 1199px) {
    .carousel-item {
        flex: 0 0 25%;
    }
}

@media (max-width: 991px) {
    .carousel-item {
        flex: 0 0 33.333%;
    }

    .carousel {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        flex: 0 0 50%;
    }

    .carousel {
        padding: 0 35px;
    }

    .carousel-prev,
    .carousel-next {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .carousel-item {
        flex: 0 0 100%;
    }

    .carousel {
        padding: 0 30px;
    }

    .carousel-prev,
    .carousel-next {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}

/* Back Button - Stylish & Modern */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: var(--text-white);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

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

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

.back-button:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    transform: translateX(-3px);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
}

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

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

/* Light Mode Back Button */
body:not(.night-mode) .back-button {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #333;
}

body:not(.night-mode) .back-button:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}

/* Mobile Responsive Back Button */
@media (max-width: 768px) {
    .back-button {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .back-button i {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .back-button {
        padding: 0.5rem 0.9rem;
        font-size: 0.8rem;
    }
}

/* Light Mode Hero Overrides */
body:not(.night-mode) .trending-hero,
body:not(.night-mode) .search-hero {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(162, 89, 255, 0.05) 100%);
}

body:not(.night-mode) .details-title {
    color: #FFFFFF;
    /* Keep details title white on hero background */
}

body:not(.night-mode) .details-meta {
    color: rgba(255, 255, 255, 0.8);
}

/* Filter Tabs (Moved from inline) */
.tabs,
.filter-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.tab,
.filter-tab {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
}

.tab:hover,
.filter-tab:hover,
.tab.active,
.filter-tab.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

body:not(.night-mode) .tab,
body:not(.night-mode) .filter-tab {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #555;
}

body:not(.night-mode) .tab:hover,
body:not(.night-mode) .filter-tab:hover,
body:not(.night-mode) .tab.active,
body:not(.night-mode) .filter-tab.active {
    background: var(--gradient-primary);
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 5rem;
    color: var(--neon-blue);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

body:not(.night-mode) .empty-state h3 {
    color: #1A1A1A;
}


/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

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

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: var(--soft-gray);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-normal);
    z-index: 2;
}

.modal-close:hover {
    background: rgba(255, 0, 0, 0.8);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

.mt-1 {
    margin-top: var(--spacing-sm);
}

.mt-2 {
    margin-top: var(--spacing-md);
}

.mt-3 {
    margin-top: var(--spacing-lg);
}

.mb-1 {
    margin-bottom: var(--spacing-sm);
}

.mb-2 {
    margin-bottom: var(--spacing-md);
}

.mb-3 {
    margin-bottom: var(--spacing-lg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}