::selection{
    color: #f008f8 !important;
}
html {
    scroll-behavior: smooth;
  }

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

     body {
         background-color: #0a0a0a;
        
         color: #ffffff;
         font-family: 'Vazirmatn', sans-serif;
         overflow-x: hidden;
     }

 
     ::-webkit-scrollbar {
         width: 8px;
     }

     ::-webkit-scrollbar-track {
         background: #1a1a1a;
     }

     ::-webkit-scrollbar-thumb {
         background: #4a4a4a;
         border-radius: 4px;
     }

     ::-webkit-scrollbar-thumb:hover {
         background: #6a6a6a;
     }


     .bg-animation {
         position: fixed;
         width: 100%;
         height: 100%;
         top: 0;
         left: 0;
         z-index: -1;
         background: linear-gradient(135deg, #0a0a0a 0%, #1a0033 50%, #0a0a0a 100%);
         overflow: hidden;
     }

     .bg-animation::before {    
         content: '';
         position: absolute;
         width: 200%;
         height: 200%;
         background: radial-gradient(circle, rgba(138, 43, 226, 0.1) 0%, transparent 70%);
         animation: rotate 30s linear infinite;
     }

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

         100% {
             transform: rotate(360deg);
         }
     }
  
     .search-container {
         position: relative;
         max-width: 600px;
         margin: 0 auto;
     }

     .search-input {
         width: 100%;
         padding: 20px 60px 20px 25px;
         background: rgba(255, 255, 255, 0.05);
         border: 2px solid rgba(138, 43, 226, 0.3);
         border-radius: 50px;
         color: #ffffff;
         font-size: 18px;
         outline: none;
         transition: all 0.3s ease;
         backdrop-filter: blur(10px);
     }

     .search-input:focus {
         border-color: #8a2be2;
         background: rgba(255, 255, 255, 0.08);
         box-shadow: 0 0 30px rgba(138, 43, 226, 0.3);
     }

     .search-input::placeholder {
         color: rgba(255, 255, 255, 0.5);
     }

     .search-btn {
         position: absolute;
         left: 10px;
         top: 50%;
         transform: translateY(-50%);
         background: linear-gradient(135deg, #8a2be2, #6a1b9a);
         border: none;
         width: 45px;
         height: 45px;
         border-radius: 50%;
         color: white;
         cursor: pointer;
         transition: all 0.3s ease;
         display: flex;
         align-items: center;
         justify-content: center;
     }

     .search-btn:hover {
         transform: translateY(-50%) scale(1.1);
         box-shadow: 0 5px 20px rgba(138, 43, 226, 0.5);
     }

    
     .movie-card {
         background: rgba(255, 255, 255, 0.05);
         border-radius: 12px;
         overflow: hidden;
         transition: all 0.3s ease;
         cursor: pointer;
         position: relative;
         width: 100%;
     }

     .movie-card:hover {
         transform: translateY(-8px);
         box-shadow: 0 15px 30px rgba(138, 43, 226, 0.3);
     }

   
     .movie-image-container {
         position: relative;
         width: 100%;
         padding-bottom: 150%;
     
         overflow: hidden;
     }

     .movie-card img {
         position: absolute;
         top: 0;
         left: 0;
         width: 100%;
         height: 100%;
         object-fit: cover;
         transition: transform 0.3s ease;
     }

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

     .movie-info {
         position: absolute;
         bottom: 0;
         left: 0;
         right: 0;
         padding: 12px;
         background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
         z-index: 2;
     }

     .movie-rating {
         background: rgba(138, 43, 226, 0.8);
         padding: 3px 8px;
         border-radius: 15px;
         font-size: 12px;
         display: inline-block;
         margin-bottom: 6px;
     }

     .movie-title {
         font-size: 14px;
         font-weight: bold;
         margin-bottom: 4px;
         line-height: 1.2;
     }

     .movie-genre {
         font-size: 12px;
         color: #e0e0e0;
     }


     /* Footer styles */
     .footer {
         margin-top: -5px;
         background: rgba(0, 0, 0, 0.9);
         border-top: 1px solid rgba(138, 43, 226, 0.3);
     }

     /* Loading animation */
     .loading {
         display: none;
         text-align: center;
         padding: 20px;
     }

     .loading.active {
         display: block;
     }

     .spinner {
         border: 3px solid rgba(138, 43, 226, 0.3);
         border-radius: 50%;
         border-top: 3px solid #8a2be2;
         width: 40px;
         height: 40px;
         animation: spin 1s linear infinite;
         margin: 0 auto;
     }

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

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

     /* Responsive */
     @media (max-width: 768px) {
         .search-input {
             font-size: 16px;
             padding: 15px 50px 15px 20px;
         }
     }

     /* alert -------------------------------------*/

     
:root{
--rdp-accent:#a362ff;
--rdp-accent2:#7d4dff;
--rdp-text:#f3ecff;
--rdp-muted:rgba(255,255,255,0.7);
}

#rdp_overlay_2026{
position:fixed;
inset:0;
background:rgba(20,5,35,0.75);
backdrop-filter:blur(8px);
display:none;
align-items:center;
justify-content:center;
z-index:99999;
padding:20px;
}

.rdp_panel_2026{
width:100%;
max-width:420px;
background:rgba(255,255,255,0.05);
border:1px solid rgba(163,98,255,0.2);
border-radius:18px;
padding:26px 22px;
text-align:center;
color:var(--rdp-text);
box-shadow:0 10px 40px rgba(0,0,0,0.6);
transform:translateY(20px) scale(.97);
opacity:0;
transition:all .35s;
}

#rdp_overlay_2026.show .rdp_panel_2026{
transform:translateY(0) scale(1);
opacity:1;
}

.rdp_icon_2026{
width:60px;
height:60px;
margin:auto;
margin-bottom:14px;
border-radius:14px;
background:rgba(163,98,255,0.15);
display:flex;
align-items:center;
justify-content:center;
}

.rdp_title_2026{
font-size:18px;
font-weight:700;
margin-bottom:10px;
}

.rdp_message_2026{
font-size:14px;
line-height:1.8;
color:var(--rdp-muted);
white-space:pre-line;
}

.rdp_btn_primary_2026{
margin-top:18px;
background:linear-gradient(135deg,var(--rdp-accent),var(--rdp-accent2));
border:none;
padding:11px 18px;
border-radius:12px;
font-weight:600;
font-size:14px;
cursor:pointer;
color:white;
transition:.25s;
box-shadow:0 8px 25px rgba(163,98,255,0.35);
}

.rdp_btn_primary_2026:hover{
transform:translateY(-2px);
box-shadow:0 12px 30px rgba(163,98,255,0.45);
}

.rdp_checkbox_2026{
margin-top:14px;
display:flex;
align-items:center;
justify-content:center;
gap:8px;
font-size:13px;
color:var(--rdp-muted);
cursor:pointer;
}

.rdp_checkbox_2026 input{
display:none;
}

.rdp_checkbox_2026 span{
width:20px;
height:20px;
border-radius:6px;
border:2px solid rgba(163,98,255,0.5);
display:flex;
align-items:center;
justify-content:center;
background:rgba(255,255,255,0.05);
transition:.25s;
}

.rdp_checkbox_2026 span:after{
content:"";
width:10px;
height:10px;
border-radius:3px;
background:var(--rdp-accent);
transform:scale(0);
transition:.2s;
}

.rdp_checkbox_2026 input:checked + span:after{
transform:scale(1);
}

.rdp_checkbox_2026 input:checked + span{
border-color:var(--rdp-accent);
box-shadow:0 0 10px rgba(163,98,255,0.5);
}

.rdp_close_2026{
position:absolute;
top:12px;
right:14px;
background:none;
border:none;
font-size:20px;
cursor:pointer;
color:rgba(255,255,255,0.6);
}

@media (max-width:480px){

.rdp_panel_2026{
padding:22px 18px;
border-radius:16px;
}

.rdp_title_2026{
font-size:16px;
}

.rdp_message_2026{
font-size:13px;
}

}

     /*end  alert -------------------------------------*/
     


        /* ------------------------------------category --------------------------------- */

            .pro-cat-wrapper {
        position: relative;
        direction: rtl;
        overflow: hidden;
        margin: 40px 0;
        font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, sans-serif;
        isolation: isolate; 
    }

    .pro-cat-title-box {
        position: absolute;
        right: 24px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1; 
        display: flex;
        align-items: center;
        gap: 12px;
        pointer-events: none;
        opacity: 1;
        transition: opacity 0.4s ease, transform 0.4s ease;
        background: transparent;
        border: none;
        padding: 0;
    }

    .pro-cat-title-box.is-hidden {
        opacity: 0;
        transform: translateY(-50%) translateX(25px);
    }

    .pro-cat-title-accent {
        width: 4px;
        height: 26px;
        background-color: #a855f7; 
        border-radius: 4px;
    }

    .pro-cat-title-text {
        font-size: 1.3rem;
        font-weight: 800;
        color: #ffffff; /* رنگ سفید */
        white-space: nowrap;
        letter-spacing: -0.3px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); /* سایه ریز برای خوانایی روی پس‌زمینه‌های مختلف */
    }

    .pro-cat-scroll {
        position: relative; 
        z-index: 2; 
        display: flex;
        flex-wrap: nowrap; 
        gap: 16px;
        overflow-x: auto;
        padding: 10px 20px;
        padding-right: 180px; 
        scroll-behavior: auto; 
        -webkit-user-select: none; 
        user-select: none;
        cursor: grab; 
        scrollbar-width: none; 
        -ms-overflow-style: none;
    }
    
    .pro-cat-scroll.active-drag {
        cursor: grabbing;
    }

    .pro-cat-scroll::-webkit-scrollbar {
        display: none;
    }

    .pro-cat-card {
        flex: 0 0 auto;
        flex-shrink: 0; 
      
        width: min(300px, 80vw); 
        aspect-ratio: 16 / 9;
        position: relative;
        border-radius: 14px;
        overflow: hidden;
        text-decoration: none;
    
        background-color: #111111; 
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        transition: transform 0.35s ease, box-shadow 0.35s ease;
        -webkit-user-select: none; 
        user-select: none;
    }

    .pro-cat-card:hover {
     
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    }

    .pro-cat-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.5s ease;
        pointer-events: none; 
    }

    .pro-cat-card:hover img {
        transform: scale(1.05); 
    }

    .pro-cat-grad {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 70%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0) 100%);
        pointer-events: none;
        z-index: 1; 
    }

    .pro-cat-name {
        position: absolute;
        bottom: 12px;
        right: 12px;
        left: 12px;
        color: #fff;
        font-size: 0.85rem;
        font-weight: 700;
        line-height: 1.5;
        z-index: 3; 
    }

    /* --------------------------------------------- end category----------------------------------------------------- */