

:root {
    --primary: #E50914;
    --primary-dark: #B20710;
    --background: #0F0F0F;
    --surface: #1a1a1a;
    --surface-light: #2a2a2a;
    --text-primary: #FFFFFF;
    --text-secondary: #B3B3B3;
    --text-muted: #666666;
    --radius: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}


body[dir="rtl"] {
    font-family: 'Inter', sans-serif;
}

body[dir="rtl"] .nav-brand,
body[dir="rtl"] .explore-header,
body[dir="rtl"] .lang-btn {
    direction: rtl;
    text-align: right;
}

body[dir="rtl"] .card-info h3 {
    direction: rtl;
}



.lang-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}

.lang-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lang-modal {
    background: linear-gradient(145deg, #1a0a0a 0%, #0f0f0f 100%);
    padding: 48px 40px;
    border-radius: 24px;
    text-align: center;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(229, 9, 20, 0.15);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 0 100px rgba(229, 9, 20, 0.1);
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-overlay.active .lang-modal {
    transform: scale(1) translateY(0);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-btn:hover {
    background: rgba(229, 9, 20, 0.2);
    color: var(--primary);
    transform: rotate(90deg);
}

body[dir="rtl"] .close-btn {
    right: auto;
    left: 20px;
}

.lang-modal h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-weight: 400;
}


.lang-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
}

.lang-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(229, 9, 20, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.lang-btn:hover::before {
    opacity: 1;
}

.lang-btn.active {
    background: rgba(229, 9, 20, 0.15);
    border-color: var(--primary);
    box-shadow: 
        0 0 0 1px var(--primary),
        0 8px 32px rgba(229, 9, 20, 0.3);
}

.lang-btn.active::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
    box-shadow: 0 2px 8px rgba(229, 9, 20, 0.5);
}

body[dir="rtl"] .lang-btn.active::after {
    right: auto;
    left: 8px;
}

.lang-btn .flag {
    font-size: 1.4rem;
    line-height: 1;
    filter: saturate(1.1);
}

.lang-btn span:last-child {
    flex: 1;
    font-weight: 500;
}


.lang-modal::-webkit-scrollbar {
    width: 6px;
}

.lang-modal::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
}

.lang-modal::-webkit-scrollbar-thumb {
    background: rgba(229, 9, 20, 0.3);
    border-radius: 3px;
}

.lang-modal::-webkit-scrollbar-thumb:hover {
    background: rgba(229, 9, 20, 0.5);
}

body.modal-open {
    overflow: hidden;
}



.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
    z-index: 1000;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.nav-brand:hover {
    transform: scale(1.02);
}

.brand-icon {
    font-size: 2rem;
    color: var(--primary);
    filter: drop-shadow(0 0 10px rgba(229, 9, 20, 0.5));
}

.brand-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #b3b3b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

.lang-toggle:hover {
    background: rgba(229, 9, 20, 0.1);
    border-color: rgba(229, 9, 20, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.2);
}

.dropdown-icon {
    font-size: 0.7rem;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.lang-toggle:hover .dropdown-icon {
    transform: rotate(180deg);
}

.nav-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
}

.nav-icon:hover {
    background: rgba(229, 9, 20, 0.1);
    border-color: rgba(229, 9, 20, 0.3);
    color: var(--primary);
    transform: translateY(-2px);
}



.explore-section {
    padding: 100px 4% 60px;
    max-width: 1600px;
    margin: 0 auto;
    min-height: 100vh;
}

.explore-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.explore-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #b3b3b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.results-count {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}



.pagination, .pagination-bottom {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-bottom {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-btn {
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    background: rgba(34, 0, 0, 0.6);
    border: 1.5px solid rgba(229, 9, 20, 0.3);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.page-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    background: rgba(229, 9, 20, 0.2);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.3);
}

.page-btn:hover:not(:disabled)::before {
    opacity: 1;
}

.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 16px rgba(229, 9, 20, 0.4);
    transform: scale(1.05);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.1);
}

.page-btn i {
    font-size: 0.8rem;
    font-weight: 900;
}


.page-dots {
    color: var(--text-secondary);
    padding: 0 8px;
    font-weight: 700;
    letter-spacing: 2px;
}



.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.explore-card {
    position: relative;
    aspect-ratio: 2/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform-style: preserve-3d;
}

.explore-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(229, 9, 20, 0.2);
    border-color: rgba(229, 9, 20, 0.3);
}

.explore-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.95) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.explore-card:hover::before {
    opacity: 1;
}

.explore-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.explore-card:hover img {
    transform: scale(1.15);
}

.card-rating {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.explore-card:hover .card-rating {
    background: rgba(229, 9, 20, 0.9);
    border-color: rgba(229, 9, 20, 0.5);
    transform: scale(1.1);
}

.card-rating i {
    color: #FFD700;
    font-size: 0.75rem;
}

.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.explore-card:hover .card-info {
    transform: translateY(0);
}

.card-info h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.card-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 40px rgba(229, 9, 20, 0.6);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.explore-card:hover .card-play {
    transform: translate(-50%, -50%) scale(1);
}

.card-play:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 60px rgba(229, 9, 20, 0.8);
}



.shimmer-card {
    background: linear-gradient(90deg, var(--surface) 0%, #2a1a1a 50%, var(--surface) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border: none;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}



.footer {
    padding: 40px 4%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    margin-top: 60px;
}

.disclaimer {
    color: var(--text-muted);
    font-size: 0.85rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}



#starCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(ellipse at bottom, #1a0000 0%, #000000 100%);
    pointer-events: none;
}

.star-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}



@media (max-width: 1024px) {
    .lang-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .explore-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .explore-header h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 60px;
        padding: 0 4%;
    }
    
    .brand-text {
        font-size: 1.3rem;
    }
    
    .explore-section {
        padding: 80px 4% 40px;
    }
    
    .explore-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }
    
    .explore-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .card-play {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
    
    .lang-modal {
        padding: 32px 24px;
        max-height: 90vh;
    }
    
    .lang-modal h3 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.85rem;
    }
    
    .lang-btn {
        padding: 14px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .lang-overlay {
        align-items: flex-end;
        padding: 0;
    }
    
    .lang-modal {
        width: 100%;
        max-width: 100%;
        border-radius: 24px 24px 0 0;
        padding: 32px 24px;
        max-height: 85vh;
        transform: translateY(100%);
    }
    
    .lang-overlay.active .lang-modal {
        transform: translateY(0);
    }
    
    .close-btn {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
    
    body[dir="rtl"] .close-btn {
        left: 16px;
        right: auto;
    }
    
    .lang-options {
        grid-template-columns: 1fr;
    }
    
    .explore-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .page-btn {
        min-width: 38px;
        height: 38px;
        padding: 0 12px;
        font-size: 0.85rem;
    }
    
    .pagination, .pagination-bottom {
        gap: 6px;
    }
    
    .explore-header h1 {
        font-size: 1.8rem;
    }
}


@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-overlay.active .lang-btn {
    animation: slideInUp 0.4s ease forwards;
    opacity: 0;
}

.lang-overlay.active .lang-btn:nth-child(1) { animation-delay: 0.05s; }
.lang-overlay.active .lang-btn:nth-child(2) { animation-delay: 0.1s; }
.lang-overlay.active .lang-btn:nth-child(3) { animation-delay: 0.15s; }
.lang-overlay.active .lang-btn:nth-child(4) { animation-delay: 0.2s; }
.lang-overlay.active .lang-btn:nth-child(5) { animation-delay: 0.25s; }
.lang-overlay.active .lang-btn:nth-child(6) { animation-delay: 0.3s; }



* {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

*::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
    display: none;
}