:root {
    --primary: #0073FF;
    --primary-dark: #0056b3;
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a1a;
    --bg-hover: #2a2a2a;
    --text: #ffffff;
    --text-muted: #b3b3b3;
    --border: #333;
    --radius: 8px;
    --shadow: 0 4px 20px rgba(0,0,0,0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

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

/* Loading Screen for Homepage */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;
}

.loading-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 115, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 115, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 115, 255, 0.06) 0%, transparent 50%);
    animation: filmScroll 20s linear infinite;
}

.mascot-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 30px;
    z-index: 2;
}

.mascot-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 170px;
    height: 170px;
    background: radial-gradient(circle, rgba(0, 115, 255, 0.4) 0%, rgba(0, 115, 255, 0) 70%);
    border-radius: 50%;
    animation: pulseGlow 2s ease-in-out infinite;
    filter: blur(10px);
}

.mascot-spinner {
    width: 100%;
    height: 100%;
    animation: mascotFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 115, 255, 0.6));
}

.loading-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    animation: particleFloat 6s ease-in-out infinite;
}

.particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { top: 60%; left: 80%; animation-delay: 1s; }
.particle:nth-child(3) { top: 80%; left: 20%; animation-delay: 2s; }
.particle:nth-child(4) { top: 30%; left: 90%; animation-delay: 3s; }
.particle:nth-child(5) { top: 70%; left: 5%; animation-delay: 4s; }
.particle:nth-child(6) { top: 10%; left: 70%; animation-delay: 5s; }

.loading-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    text-align: center;
    z-index: 2;
    animation: textPulse 2s ease-in-out infinite;
}

.progress-container {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 20px;
    z-index: 2;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, #00ff88 50%, var(--primary) 100%);
    background-size: 300px 100%;
    animation: progressShimmer 2s ease-in-out infinite;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.loading-message {
    color: var(--text-muted);
    font-size: 1.1rem;
    text-align: center;
    z-index: 2;
    max-width: 400px;
    line-height: 1.5;
}

/* Enhanced loading states for existing elements */
.loading {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    animation: fadeIn 0.3s ease-in;
    position: relative;
    overflow: hidden;
}

.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(0, 115, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(0, 115, 255, 0.03) 0%, transparent 50%);
}

.loading i {
    font-size: 3rem;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
    display: inline-block;
    color: var(--primary);
}

.loading p {
    margin: 0;
    font-size: 1.1rem;
}

/* Enhanced search loading */
.search-loading {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
    grid-column: 1 / -1;
    display: none;
    position: relative;
    overflow: hidden;
}

.search-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 40% 40%, rgba(0, 115, 255, 0.03) 0%, transparent 50%);
}

.loading-mascot {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.search-loading p {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
}

/* Loading more indicator */
.loading-more {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    grid-column: 1 / -1;
    position: relative;
    overflow: hidden;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.loading-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 50% 20%, rgba(0, 115, 255, 0.02) 0%, transparent 50%);
}

.loading-more i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
    margin-bottom: 0.5rem;
    display: inline-block;
    color: var(--primary);
}

.loading-more p {
    margin: 0;
    font-size: 0.95rem;
}

/* No results state */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    grid-column: 1 / -1;
    position: relative;
    overflow: hidden;
}

.no-results::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 60% 40%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    display: inline-block;
}

.no-results p {
    margin: 0;
    font-size: 1.1rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Tab panel loading states */
.tab-panel.loading {
    position: relative;
    min-height: 200px;
}

.tab-panel.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 115, 255, 0.3);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

.tab-panel.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(0, 115, 255, 0.02) 0%, transparent 50%);
}

/* Logo Styles */
.nav-logo {
    height: 80px;
    width: auto;
    display: block;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(10,10,10,0.9) 0%, transparent 100%);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10,10,10,0.95);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
}

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

.brand strong {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    flex: 1;
    margin-left: 3rem;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

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

.search-trigger {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: var(--transition);
    font-size: 1.5rem;
}

.search-trigger:hover {
    background: var(--bg-hover);
    color: var(--primary);
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    color: var(--text);
    font-size: 1.5rem;
    align-items: center;
    justify-content: center;
}

/* Selection Mascot Icon */
.selection-mascot {
    width: 34px;
    height: 34px;
    object-fit: contain;
    transition: var(--transition);
}

/* Selection Counter - Show on desktop, duplicate in mobile menu */
.selection-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(0, 115, 255, 0.1);
    border: 1px solid var(--primary);
    border-radius: 20px;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.selection-counter:hover {
    background: rgba(0, 115, 255, 0.2);
    transform: translateY(-2px);
}

.selection-count-badge {
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Mobile selection counter - hidden by default, shown in mobile menu */
#selection-counter-mobile {
    display: none;
}

/* Empty Selection Mascot */
.empty-selection-mascot {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin-bottom: 1rem;
}

/* Delivery Section */
.delivery-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.btn-delivery-request {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    border: none;
    border-radius: var(--radius);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.btn-delivery-request:hover:not(:disabled) {
    background: linear-gradient(135deg, #15803d, #16a34a);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.btn-delivery-request:disabled {
    background: var(--bg-hover);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

.delivery-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin: 0;
}

/* Success Modal */
.success-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.success-modal.active {
    display: flex;
}

.success-modal-container {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius);
    max-width: 450px;
    width: 100%;
    z-index: 2;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.success-modal-content {
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: #22c55e;
    margin-bottom: 1.5rem;
    animation: successPulse 0.6s ease-in-out;
}

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

.success-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.success-message {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.5;
}

.selection-code-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius);
}

.code-label {
    font-weight: 600;
    color: var(--text);
}

.code-value {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1.2rem;
    color: #22c55e;
    letter-spacing: 1px;
}

.copy-code-btn {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: var(--radius);
    color: #22c55e;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.copy-code-btn:hover {
    background: rgba(34, 197, 94, 0.3);
    transform: scale(1.05);
}

.copy-code-btn.copied {
    background: #22c55e;
    color: white;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Delivery Modal Styles */
.delivery-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.delivery-modal.active {
    display: flex;
}

.delivery-modal-container {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.delivery-modal-content {
    padding: 2rem;
}

.delivery-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
}

.delivery-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
    color: var(--text);
}

.delivery-subtitle {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.delivery-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.form-label::after {
    content: ' *';
    color: #ef4444;
}

.form-group:has(textarea:not([required])) .form-label::after {
    content: '';
}

.delivery-form input,
.delivery-form textarea {
    padding: 0.8rem 1rem;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.delivery-form input:focus,
.delivery-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 115, 255, 0.1);
}

.delivery-form input:invalid:not(:focus):not(:placeholder-shown),
.delivery-form textarea:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.delivery-summary {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1rem 0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    color: var(--text-muted);
}

.summary-item.total {
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-weight: 700;
    color: var(--text);
    font-size: 1.1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.form-actions .btn {
    flex: 1;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
}

/* Mobile adjustments for delivery modal */
@media (max-width: 768px) {
    .delivery-modal {
        padding: 1rem;
    }
    
    .delivery-modal-container {
        max-width: 100%;
    }
    
    .delivery-modal-content {
        padding: 1.5rem;
    }
    
    .delivery-title {
        font-size: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .delivery-summary {
        padding: 1rem;
    }
}

/* Mobile adjustments for success modal */
@media (max-width: 768px) {
    .success-modal {
        padding: 1rem;
    }
    
    .success-modal-container {
        max-width: 100%;
    }
    
    .success-modal-content {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .success-icon {
        font-size: 3rem;
    }
    
    .success-title {
        font-size: 1.5rem;
    }
    
    .selection-code-display {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .success-actions {
        flex-direction: column;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    margin-top: 80px;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.7) 40%, transparent 100%),
                linear-gradient(to top, rgba(10,10,10,0.95) 0%, transparent 50%);
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.8);
    line-height: 1.1;
}

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

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.hero-meta i {
    color: var(--primary);
}

.hero-genres {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.hero-genre {
    padding: 0.3rem 0.8rem;
    background: rgba(0, 115, 255, 0.3);
    border: 1px solid var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Main Content */
.main-content {
    padding: 3rem 0;
}

.content-container {
    padding: 0 2rem;
}

/* Tabs Section */
.tabs-section {
    margin-bottom: 4rem;
}

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

.tabs-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    background: var(--bg-hover);
    color: var(--text);
}

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

.tabs-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-select {
    position: relative;
}

.filter-select select {
    padding: 0.8rem 2.5rem 0.8rem 1rem;
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    min-width: 150px;
    transition: var(--transition);
}

.filter-select select:hover {
    border-color: var(--primary);
}

.filter-select select:focus {
    outline: 2px solid var(--primary);
}

.filter-select::after {
    content: '\f282';
    font-family: 'boxicons' !important;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted);
}

/* Smoother transitions for tab panels */
.tab-panel {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.tab-panel.active {
    display: block;
    opacity: 1;
    animation: smoothFadeIn 0.3s ease-in-out;
}

.tab-panel.loading {
    position: relative;
}

.tab-panel.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 115, 255, 0.3);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

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

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    will-change: transform, opacity;
    align-items: stretch; /* Ensure all items stretch to same height */
}

/* Movie Card Item - Consistent height layout */
.movie-card-item {
    position: relative;
    will-change: transform, opacity;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure full height */
}

/* Content Card - Fixed consistent height */
.content-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid transparent;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    height: 100%; /* Make all cards equal height */
    min-height: 380px; /* Set a minimum height */
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(0, 115, 255, 0.3);
}

/* Enhanced image fallback system */
.card-image {
    position: relative;
    padding-top: 150%;
    overflow: hidden;
    background: #000;
    flex-shrink: 0;
    background: var(--bg-dark);
}

.card-image.fallback {
    background: var(--bg-dark) url('./images/mascot.svg') center/30% no-repeat;
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    background: var(--bg-dark);
}

.card-image img.fallback {
    object-fit: contain;
    padding: 20%;
    opacity: 0.7;
}

.content-card:hover .card-image img {
    transform: scale(1.05);
}

/* New Release/Episodes Banners - Positioned on movie-card-item */
.new-release-badge {
    position: absolute;
    top: 5px;
    left: -15px;
    padding: 8px 8px;
    background: var(--bg-dark);
    /* background: linear-gradient(135deg, #dc2626, #ef4444); */
    /* border: 2px solid #f87171; */
    border-radius: 6px;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 5;
    color: #ef4444;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.5);
    transition: var(--transition);
    transform: rotate(-30deg);
    white-space: nowrap;
    /* -webkit-text-fill-color: transparent;  */
    /* -webkit-background-clip: text; */
}

.movie-card-item:hover .new-release-badge {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6);
}

.new-episodes-badge {
    position: absolute;
    top: 5px;
    left: -15px;
    padding: 8px 8px;
    background: var(--bg-dark);
    /* background: linear-gradient(135deg, #16a34a, #22c55e); */
    /* border: 2px solid #4ade80; */
    border-radius: 6px;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 5;
    color: #e51885;
    box-shadow: 0 4px 15px rgba(255, 0, 157, 0.5);
    transition: var(--transition);
    transform: rotate(-30deg);
    white-space: nowrap;
    /* -webkit-text-fill-color: transparent;  */
    /* -webkit-background-clip: text; */
}

.movie-card-item:hover .new-episodes-badge {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 0, 157, 0.6);
}

/* Quality Badge - Bottom Left */
.quality-badge {
    position: absolute;
    bottom: 0.25rem;
    left: 0.25rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 1 !important;
    visibility: visible !important;
}

/* Quality Colors */
.quality-badge[data-quality="BLUERAY"],
.quality-badge[data-quality="BLURAY"] {
    background: var(--bg-dark);
    border: 1px solid var(--bg-dark);
    color: var(--primary);
    /* background: linear-gradient(135deg, #1e3a8a, #3b82f6); */
    /* border: 1px solid #60a5fa; */
    /* -webkit-text-fill-color: transparent; 
    -webkit-background-clip: text; */
}

.quality-badge[data-quality="4K"] {
    background: var(--bg-dark);
    border: 1px solid var(--bg-dark);
    color: #ef4444;
    /* background: linear-gradient(135deg, #7c3aed, #a78bfa);
    border: 1px solid #c4b5fd;
    -webkit-text-fill-color: transparent; 
    -webkit-background-clip: text; */
}

.quality-badge[data-quality="HDRIP"] {
    background: var(--bg-dark);
    border: 1px solid var(--bg-dark);
    color: #ef4444;
    /* background: linear-gradient(135deg, #dc2626, #ef4444);
    border: 1px solid #f87171;
    -webkit-text-fill-color: transparent; 
    -webkit-background-clip: text; */
}

.quality-badge[data-quality="BRRIP"] {
    background: var(--bg-dark);
    border: 1px solid var(--bg-dark);
    color: #ef4444;
    /* background: linear-gradient(135deg, #ea580c, #f97316);
    border: 1px solid #fb923c;
    -webkit-text-fill-color: transparent; 
    -webkit-background-clip: text; */
}

.quality-badge[data-quality="DVDRIP"] {
    background: var(--bg-dark);
    border: 1px solid var(--bg-dark);
    color: #ef4444;
    /* background: linear-gradient(135deg, #ea580c, #f97316);
    border: 1px solid #fb923c;
    -webkit-text-fill-color: transparent; 
    -webkit-background-clip: text; */
}

.quality-badge[data-quality="SCREENCOPY"] {
    background: var(--bg-dark);
    border: 1px solid var(--bg-dark);
    color: #ef4444;
    /* background: linear-gradient(135deg, #16a34a, #22c55e);
    border: 1px solid #4ade80;
    -webkit-text-fill-color: transparent; 
    -webkit-background-clip: text; */
}

.quality-badge[data-quality="WATCHABLE"] {
    background: var(--bg-dark);
    border: 1px solid var(--bg-dark);
    color: #ef4444;
    /* background: linear-gradient(135deg, #ca8a04, #eab308);
    border: 1px solid #facc15;
    -webkit-text-fill-color: transparent; 
    -webkit-background-clip: text; */
}

/* Default quality badge */
.quality-badge:not([data-quality]) {
    background: var(--bg-dark);
    border: 1px solid var(--bg-dark);
    color: #ef4444;
    /* background: linear-gradient(135deg, #6b7280, #9ca3af);
    border: 1px solid #d1d5db;
    -webkit-text-fill-color: transparent; 
    -webkit-background-clip: text; */
}

/* Series Status Badge */
.series-status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0.3rem 0;
    align-self: flex-start;
    flex-shrink: 0; /* Prevent status badge from shrinking */
}

.series-status-complete {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.4);
    color: #28a745;
}

.series-status-ongoing {
    background: var(--bg-dark);
    border: 1px solid var(--bg-dark);
    color: #ef4444;
}

/* Card Content - Consistent spacing */
.card-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1; /* Take remaining space */
    min-height: 120px; /* Ensure content area has minimum height */
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6rem;
    margin-bottom: 0;
    flex-shrink: 0; /* Prevent title from shrinking */
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0;
    flex-shrink: 0; /* Prevent meta from shrinking */
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Movie Type Badge */
.card-type-badge {
    padding: 0.3rem 0.8rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    align-self: flex-start;
    margin: 10px 0;
    flex-shrink: 0; /* Prevent badge from shrinking */
}

.card-price-badge {
    padding: 0.4rem 0rem;
    /* background: linear-gradient(135deg, #00d4aa 0%, #00a085 100%); */
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #28a745;
    align-self: flex-start;
    margin: 0.5rem 0;
    flex-shrink: 0;
    /* box-shadow: 0 2px 8px rgba(0, 212, 170, 0.3); */
    transition: all 0.3s ease;
}

.content-card:hover .card-price-badge {
    transform: translateY(-2px);
    /* box-shadow: 0 4px 12px rgba(0, 212, 170, 0.4); */
}

.card-genres {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0;
    flex: 1; /* Allow genres to take available space */
    align-items: flex-end; /* Push genres to bottom */
}

.genre-badge {
    padding: 0.25rem 0.6rem;
    background: rgba(0, 115, 255, 0.15);
    border: 1px solid rgba(0, 115, 255, 0.3);
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
}

/* Add to Selection Button - Top Right */
.card-add-selection {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    background: var(--primary);
    border: 2px solid white;
    border-radius: 50%;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 115, 255, 0.4);
    z-index: 4;
    opacity: 0;
    transform: scale(0.8);
}

.content-card:hover .card-add-selection {
    opacity: 1;
    transform: scale(1);
}

.card-add-selection:hover {
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 6px 20px rgba(0, 115, 255, 0.6);
}

.card-add-selection.added {
    background: #28a745;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    animation: successPulse 0.6s ease;
}

.card-add-selection.added:hover {
    transform: scale(1.15) rotate(0deg);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6);
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Subtitles Indicator - Bottom Right */
.subtitles-indicator {
    position: absolute;
    bottom: 0.25rem;
    right: 0.25rem;
    width: 38px;
    height: 28px;
    background: rgba(0, 115, 255, 0.9);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
    z-index: 3;
    opacity: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Card Overlay */
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.9) 100%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    z-index: 2;
}

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

/* Selection Panel (Sidebar) */
.selection-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background: var(--bg-card);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 4000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.selection-panel.active {
    right: 0;
}

/* Selection Panel Backdrop for Mobile */
.selection-panel-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 3999;
    display: none;
    backdrop-filter: blur(2px);
}

.selection-panel.active ~ .selection-panel-backdrop,
.selection-panel-backdrop.active {
    display: block;
}

.selection-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.selection-panel-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.selection-panel-close {
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.selection-panel-close:hover {
    background: var(--bg-hover);
    color: var(--primary);
    transform: rotate(90deg);
}

.selection-panel-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem;
}

.selection-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.selection-item {
    display: flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    transition: var(--transition);
    align-items: center;
    flex-wrap: wrap;
}

.selection-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.selection-item-image {
    width: 60px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background: var(--bg-dark);
}

.selection-item-image.fallback {
    object-fit: contain;
    padding: 10%;
    background: var(--bg-dark) url('./images/mascot.svg') center/30% no-repeat;
    opacity: 0.7;
}

.selection-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.selection-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
    word-wrap: break-word;
}

.selection-item-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.selection-item-price {
    font-weight: 700;
    color: #28a745;
}

.selection-item-remove {
    background: none;
    border: none;
    color: #ff4d4d;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: var(--transition);
    flex-shrink: 0;
}

.selection-item-remove:hover {
    background: rgba(255, 77, 77, 0.1);
}

/* Episode Preview in Selection Panel */
.series-preview-toggle {
    background: rgba(0, 115, 255, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    justify-content: center;
}

.series-preview-toggle:hover {
    background: rgba(0, 115, 255, 0.2);
}

.series-preview-toggle i {
    font-size: 1rem;
}

.series-edit-btn {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid #ffc107;
    color: #ffc107;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    justify-content: center;
}

.series-edit-btn:hover {
    background: rgba(255, 193, 7, 0.2);
}

.series-edit-btn i {
    font-size: 0.9rem;
}

.selection-item-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    width: 100%;
}

.selection-item-actions button {
    flex: 1;
}

.episodes-preview-list {
    width: 100%;
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    border: 1px solid rgba(0, 115, 255, 0.2);
}

.episode-preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
}

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

.episode-preview-price {
    color: #28a745;
    font-weight: 600;
}

.selection-panel-footer {
    padding: 1.5rem;
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.selection-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.selection-total-label {
    color: var(--text-muted);
}

.selection-total-amount {
    color: #28a745;
}

.selection-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-clear-selection {
    flex: 1;
    padding: 0.8rem;
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    border-radius: 6px;
    color: #ff4d4d;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-clear-selection:hover {
    background: rgba(220, 53, 69, 0.3);
}

.btn-finalize-selection {
    flex: 1;
    padding: 0.8rem;
    background: var(--primary);
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-finalize-selection:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.empty-selection {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-selection i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.series-group {
    position: relative;
}

.series-group::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* Advanced Search Panel */
.search-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    z-index: 2500;
    transition: right 0.4s ease;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    transform: translateX(100%);
    opacity: 0;
}

.search-panel.active {
    transform: translateX(0);
    opacity: 1;
    right: 0;
}

.search-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.search-panel-header h2 {
    font-size: 1.8rem;
    margin: 0;
}

.search-panel-close {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-panel-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.search-panel-content {
    scroll-behavior: smooth;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.advanced-search-box {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.advanced-search-box input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 1.1rem;
    transition: var(--transition);
}

.advanced-search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 115, 255, 0.1);
}

.advanced-filters {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.filter-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.filter-title {
    font-size: 1.3rem;
    font-weight: 600;
}

.reset-filters-btn {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius);
    color: var(--text);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.reset-filters-btn:hover {
    background: var(--primary);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.filter-group-advanced {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label-advanced {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.filter-select-advanced select {
    width: 100%;
    padding: 0.8rem 2.5rem 0.8rem 1rem;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
}

.filter-select-advanced {
    position: relative;
}

.filter-select-advanced::after {
    content: '\f282';
    font-family: 'boxicons' !important;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted);
}

.filter-select-advanced select:hover {
    border-color: var(--primary);
}

.filter-select-advanced select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 115, 255, 0.1);
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.sort-options span {
    font-weight: 600;
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.sort-btn {
    padding: 0.6rem 1.2rem;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.sort-btn:hover {
    border-color: var(--primary);
    color: var(--text);
}

.sort-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text);
}

.search-results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-count {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.view-btn:hover {
    border-color: var(--primary);
    color: var(--text);
}

.view-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text);
}

/* Advanced Search Loading Indicator */
.search-loading {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
    grid-column: 1 / -1;
    display: none;
}

.loading-mascot {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.mascot-spinner {
    width: 100%;
    height: 100%;
    animation: mascotBounce 2s infinite ease-in-out;
    filter: drop-shadow(0 4px 8px rgba(0, 115, 255, 0.3));
}

@keyframes mascotBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }
    25% {
        transform: translateY(-10px) scale(1.05);
        opacity: 1;
    }
    50% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-5px) scale(1.02);
        opacity: 0.9;
    }
}

.search-loading p {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
}

/* Enhanced fallback image styling */
.card-image img.fallback,
.selection-item-image.fallback,
.modal-poster img.fallback {
    object-fit: contain !important;
    padding: 20% !important;
    opacity: 0.7 !important;
    background: var(--bg-dark) !important;
}

/* Ensure fallback works in all contexts */
.card-image.fallback {
    background: var(--bg-dark) url('./images/mascot.svg') center/30% no-repeat !important;
}

.card-image.fallback img {
    opacity: 0 !important;
}

/* Details Modal */
.details-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.details-modal.active {
    display: flex;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(8px);
    z-index: 1;
}

.modal-container {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2;
}

body.modal-open {
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    color: var(--text);
    font-size: 1.5rem;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

.modal-content {
    padding: 2rem;
}

.modal-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.modal-poster {
    width: 300px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    background: var(--bg-dark);
}

.modal-poster.fallback {
    background: var(--bg-dark) url('./images/mascot.svg') center/20% no-repeat;
}

.modal-poster img {
    width: 100%;
    display: block;
    background: var(--bg-dark);
}

.modal-poster img.fallback {
    object-fit: contain;
    padding: 15%;
    opacity: 0.7;
}

.modal-quality-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 215, 0, 0.9);
    color: #000;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.modal-info {
    flex: 1;
}

.modal-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

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

.modal-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.modal-meta-item i {
    color: var(--primary);
}

.modal-meta-item i.bx-hd {
    color: var(--primary);
}

.modal-meta-item i.bx-captions {
    color: var(--primary);
}

.modal-genres {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.modal-genre {
    padding: 0.5rem 1rem;
    background: rgba(0, 115, 255, 0.2);
    border: 1px solid var(--primary);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text);
}

.modal-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

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

.btn {
    padding: 0.8rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
}

/* Series Selection Modal Styles */
.series-modal-content {
    max-height: 80vh;
    overflow-y: auto;
}

.series-modal-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.series-modal-poster {
    width: 200px;
    flex-shrink: 0;
    background: var(--bg-dark);
}

.series-modal-poster.fallback {
    background: var(--bg-dark) url('./images/mascot.svg') center/20% no-repeat;
}

.series-modal-poster img {
    width: 100%;
    border-radius: var(--radius);
    background: var(--bg-dark);
}

.series-modal-poster img.fallback {
    object-fit: contain;
    padding: 15%;
    opacity: 0.7;
}

.series-modal-info {
    flex: 1;
}

.series-modal-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.series-modal-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    flex-wrap: wrap;
}

.series-modal-meta i {
    color: var(--primary);
}

.series-modal-description {
    color: var(--text-muted);
    line-height: 1.6;
}

.seasons-list {
    margin-bottom: 2rem;
}

.season-container {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid var(--border);
}

.season-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    background: rgba(0, 115, 255, 0.05);
    transition: var(--transition);
}

.season-header:hover {
    background: rgba(0, 115, 255, 0.1);
}

.season-title {
    font-size: 1.1rem;
    font-weight: 600;
    flex: 1;
}

.season-price {
    color: #28a745;
    font-weight: 700;
    margin-right: 1rem;
}

.season-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
    position: relative;
}

/* Indeterminate checkbox styling */
input[type="checkbox"]:indeterminate {
    position: relative;
    background-color: var(--primary);
    border-color: var(--primary);
}

input[type="checkbox"]:indeterminate::before {
    content: '−';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: bold;
    color: white;
}

.episodes-container {
    display: none;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
}

.episodes-container.expanded {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

.episode-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.episode-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

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

.episode-info {
    flex: 1;
}

.episode-title {
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.episode-number {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.episode-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.series-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.total-price-badge {
    display: inline-block;
    /* background: rgba(40, 167, 69, 0.2); */
    color: var(--text);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 700;
    margin-left: 0.5rem;
    /* border: 1px solid rgba(40, 167, 69, 0.4); */
}

/* Better season expand indicator */
.season-header::after {
    content: '▼';
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 1rem;
    transition: transform 0.3s ease;
}

.season-container:has(.episodes-container.expanded) .season-header::after {
    transform: rotate(180deg);
}

/* Footer */
.footer {
    background: var(--bg-card);
    margin-top: 4rem;
    padding: 3rem 0 1rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand .brand {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-column a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
}

/* Loading State */
.loading {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    animation: fadeIn 0.3s ease-in;
}

.loading i {
    font-size: 3rem;
    animation: spin 1s linear infinite;
}

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

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-hover);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Modal scrollbar styling */
.series-modal-content::-webkit-scrollbar,
.modal-container::-webkit-scrollbar {
    width: 8px;
}

.series-modal-content::-webkit-scrollbar-track,
.modal-container::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

.series-modal-content::-webkit-scrollbar-thumb,
.modal-container::-webkit-scrollbar-thumb {
    background: var(--bg-hover);
    border-radius: 4px;
}

.series-modal-content::-webkit-scrollbar-thumb:hover,
.modal-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* List View for Advanced Search */
.content-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.content-grid.list-view .movie-card-item {
    display: flex;
    width: 100%;
    margin-top: 0;
}

.content-grid.list-view .content-card {
    display: flex;
    width: 100%;
    margin-top: 0;
    flex-direction: row;
    height: auto; /* Changed from 150px to auto */
    min-height: 150px; /* Keep minimum height */
    max-height: none; /* Remove max height restriction */
}

/* Fixed list view image styling */
.content-grid.list-view .card-image {
    width: 120px;
    min-width: 120px;
    /* height: 150px; */ /* Fixed height instead of 100% */
    padding-top: 0; /* Remove padding-top since we're using fixed height */
    position: relative;
    flex-shrink: 0;
}

.content-grid.list-view .card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Position badges correctly in list view */
.content-grid.list-view .new-release-badge,
.content-grid.list-view .new-episodes-badge {
    top: -16px;
    left: 7px;
    z-index: 5;
    transform: rotate(0deg);
    font-size: 0.45rem;
    padding: 4px 8px;
}

.content-grid.list-view .quality-badge {
    bottom: 8px;
    left: 8px;
    font-size: 0.6rem;
    padding: 2px 6px;
}

/* List view adjustments for series status badge */
.content-grid.list-view .series-status-badge {
    font-size: 0.6rem;
    padding: 0.2rem 0.6rem;
    margin: 0.2rem 0;
}

.content-grid.list-view .subtitles-indicator {
    bottom: 8px;
    right: 8px;
    width: 28px;
    height: 20px;
    font-size: 0.6rem;
}

.content-grid.list-view .card-add-selection {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    font-size: 1rem;
    opacity: 1;
    transform: scale(1);
}

.content-grid.list-view .card-overlay {
    opacity: 0;
}

/* List View Title Fix */
.content-grid.list-view .card-content {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Changed from center to flex-start */
    overflow: visible; /* Changed from hidden to visible */
    min-height: auto;
    gap: 0.5rem; /* Add consistent gap between elements */
}

.content-grid.list-view .card-title {
    font-size: 1rem;
    min-height: auto;
    margin-bottom: 0.5rem;
    -webkit-line-clamp: 3; /* Increased from 2 to 3 */
    line-height: 1.3;
    max-height: none; /* Remove any max-height restrictions */
    height: auto; /* Allow natural height */
}

.content-grid.list-view .card-meta {
    margin-bottom: 0.5rem;
}

.content-grid.list-view .card-type-badge {
    align-self: flex-start;
    margin-bottom: 0.5rem;
}

.content-grid.list-view .card-genres {
    flex-wrap: wrap;
}

/* Mobile adjustments for list view images */
@media (max-width: 768px) {
    .content-grid.list-view .card-image {
        width: 90px;
        min-width: 90px;
        height: 120px; /* Adjusted height for mobile */
    }
    
    .content-grid.list-view .content-card {
        height: auto; /* Allow natural height on mobile */
        min-height: 120px;
        flex-direction: row;
    }
    
    .content-grid.list-view .card-content {
        padding: 0.8rem;
    }
    
    .content-grid.list-view .card-title {
        font-size: 0.9rem;
        -webkit-line-clamp: 3; /* Keep 3 lines on mobile */
    }
    
    .content-grid.list-view .card-meta {
        font-size: 0.75rem;
    }
    
    .content-grid.list-view .new-release-badge,
    .content-grid.list-view .new-episodes-badge {
        top: 4px;
        left: 4px;
        font-size: 0.5rem;
        padding: 3px 6px;
    }
}

@media (max-width: 480px) {
    .content-grid.list-view .card-image {
        width: 70px;
        min-width: 70px;
        height: 100px; /* Adjusted height for very small screens */
    }
    
    /* List view for very small screens */
    .content-grid.list-view .content-card {
        height: auto; /* Allow natural height on very small screens */
        min-height: 100px;
    }
    
    .content-grid.list-view .card-content {
        padding: 0.6rem;
    }
    
    .content-grid.list-view .card-title {
        font-size: 0.85rem;
        -webkit-line-clamp: 3; /* Still 3 lines on very small screens */
    }
}

/* Checkbox styling improvements */
input[type="checkbox"] {
    cursor: pointer;
}

input[type="checkbox"]:hover {
    transform: scale(1.1);
}

/* Better focus states for accessibility */
.season-checkbox:focus,
.episode-checkbox:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Better button states */
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn:not(:disabled):active {
    transform: scale(0.98);
}

/* Mobile adjustments for aligned layout */
@media (max-width: 768px) {
    .nav-logo {
        height: 28px;
    }
    
    .brand {
        font-size: 1.3rem;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 1rem 2rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    /* Hide desktop selection counter, show mobile one in menu */
    .nav-actions .selection-counter {
        display: none;
    }
    
    .nav-links #selection-counter-mobile {
        display: flex;
        margin-top: 1rem;
    }
    
    .hero-content {
        left: 2rem;
        right: 2rem;
        bottom: 10%;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .tabs-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tabs-filters {
        width: 100%;
    }
    
    .filter-select select {
        min-width: 120px;
    }
    
    .content-grid {
        will-change: contents;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    /* Mobile adjustments for consistent card heights */
    .content-card {
        margin-top: 12px;
        min-height: 350px; /* Slightly smaller on mobile */
    }
    
    .new-release-badge,
    .new-episodes-badge {
        top: -7px;
        left: -14px;
        padding: 6px 6px;
        font-size: 0.5rem;
    }
    
    .card-add-selection {
        top: 0.8rem;
        right: 0.8rem;
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        opacity: 1; /* Always visible on mobile */
        transform: scale(1);
    }
    
    .subtitles-indicator {
        bottom: 0.8rem;
        right: 0.8rem;
        width: 32px;
        height: 24px;
        font-size: 0.65rem;
    }
    
    .quality-badge {
        bottom: 0.8rem;
        left: 0.8rem;
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }
    
    .modal-header {
        flex-direction: column;
    }
    
    .modal-poster {
        width: 100%;
        max-width: 300px;
        margin: 0 auto 2rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .search-panel-content {
        padding: 1rem;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .sort-options {
        justify-content: center;
    }
    
    .search-results-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .selection-panel {
        width: 100%;
        max-width: 100%;
        right: -100%;
    }
    
    .selection-panel.active {
        right: 0;
    }
    
    .selection-panel-body {
        padding: 1rem;
    }
    
    .selection-item {
        padding: 0.8rem;
    }
    
    .selection-item-image {
        width: 50px;
        height: 75px;
    }
    
    .selection-item-title {
        font-size: 0.85rem;
    }
    
    .selection-panel-footer {
        padding: 1rem;
    }
    
    .selection-total {
        font-size: 1rem;
    }
    
    .btn-clear-selection,
    .btn-finalize-selection {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
    
    .card-overlay {
        opacity: 1;
        background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 50%, rgba(0,0,0,0.7) 100%);
    }
    
    /* Series modal mobile */
    .series-modal-header {
        flex-direction: column;
    }
    
    .series-modal-poster {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
    
    .series-modal-title {
        font-size: 1.5rem;
    }
    
    .series-modal-actions {
        flex-direction: column;
    }
    
    .series-modal-actions .btn {
        width: 100%;
    }
    
    .season-header {
        padding: 0.8rem 1rem;
    }
    
    .season-title {
        font-size: 0.95rem;
    }
    
    .episode-item {
        padding: 0.6rem 0.8rem;
    }
    
    .episodes-preview-list {
        padding: 0.5rem;
    }
    
    .episode-preview-item {
        font-size: 0.75rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
}

@media (max-width: 480px) {
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
    
    .content-card {
        min-height: 320px; /* Even smaller on very small screens */
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .modal-title {
        font-size: 1.8rem;
    }
    
    .modal-meta {
        gap: 1rem;
    }
    
    .modal-meta-item {
        font-size: 0.9rem;
    }
}

/* Language Filters Section - Homepage Tabs */
.language-filters-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    animation: fadeIn 0.3s ease-in;
    transition: all 0.3s ease-in-out;
    will-change: transform, opacity;
}

.language-filters-grid {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
}

.lang-filter-btn {
    padding: 0.7rem 1.5rem;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.lang-filter-btn:hover {
    border-color: var(--primary);
    color: var(--text);
    transform: translateY(-2px);
}

.lang-filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text);
    box-shadow: 0 4px 12px rgba(0, 115, 255, 0.3);
}

/* Language Sub-Filters in Advanced Search */
.language-subfilters {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.language-subfilters-grid {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
}

.advanced-lang-filter-btn {
    padding: 0.7rem 1.5rem;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.advanced-lang-filter-btn:hover {
    border-color: var(--primary);
    color: var(--text);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 115, 255, 0.2);
}

.advanced-lang-filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text);
    box-shadow: 0 4px 12px rgba(0, 115, 255, 0.3);
}

/* Responsive adjustments for language filters */
@media (max-width: 768px) {
    .language-filters-grid,
    .language-subfilters-grid {
        gap: 0.5rem;
    }
    
    .lang-filter-btn,
    .advanced-lang-filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .language-filters-section {
        padding: 0.8rem;
    }
    
    .language-filters-grid,
    .language-subfilters-grid {
        gap: 0.4rem;
    }
    
    .lang-filter-btn,
    .advanced-lang-filter-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Custom Notification System */
.notification-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    pointer-events: none;
}

.notification {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: all;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.hide {
    transform: translateX(400px);
    opacity: 0;
}

.notification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notification.success {
    border-left-color: #22c55e;
    /* background: rgba(34, 197, 94, 0.2); */
    background: var(--bg-card);
}

.notification.success .notification-icon {
    color: #22c55e;
}

.notification.error {
    border-left-color: #ef4444;
    /* background: rgba(239, 68, 68, 0.2); */
    background: var(--bg-card);
}

.notification.error .notification-icon {
    color: #ef4444;
}

.notification.warning {
    border-left-color: #f59e0b;
    /* background: rgba(245, 159, 11, 0.2); */
    background: var(--bg-card);
}

.notification.warning .notification-icon {
    color: #f59e0b;
}

.notification.info {
    border-left-color: var(--primary);
    /* background: rgba(0, 115, 255, 0.1); */
    background: var(--bg-card);
}

.notification.info .notification-icon {
    color: var(--primary);
}

.notification-content {
    flex: 1;
}

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

.notification-message {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: var(--transition);
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

/* Footer Mascot */
.footer-mascot {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Confirmation Modal */
.confirmation-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.confirmation-modal.active {
    display: flex;
}

.confirmation-modal-container {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius);
    max-width: 400px;
    width: 100%;
    z-index: 2;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.confirmation-modal-content {
    padding: 2rem;
    text-align: center;
}

.confirmation-icon {
    font-size: 3rem;
    color: #f59e0b;
    margin-bottom: 1rem;
}

.confirmation-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.confirmation-message {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.confirmation-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-confirm-cancel {
    padding: 0.8rem 1.5rem;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    border-radius: var(--radius);
    color: #ef4444;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
}

.btn-confirm-cancel:hover {
    background: rgba(239, 68, 68, 0.3);
}

.btn-confirm-ok {
    padding: 0.8rem 1.5rem;
    background: var(--primary);
    border: none;
    border-radius: var(--radius);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
}

.btn-confirm-ok:hover {
    background: var(--primary-dark);
}

/* Mobile adjustments for notifications */
@media (max-width: 768px) {
    .notification-container {
        top: 80px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification {
        max-width: none;
    }
    
    .confirmation-modal {
        padding: 1rem;
    }
    
    .confirmation-modal-container {
        max-width: 100%;
    }
    
    .confirmation-actions {
        flex-direction: column;
    }
}