﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0a0a;
    font-family: 'Segoe UI', 'Poppins', sans-serif;
    color: #fff;
}

.movies-sliders-section {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    background: #0a0a0a;
}

.slider-container {
    margin-bottom: 4rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.2rem;
    border-right: 4px solid #f5c518;
    padding-right: 1rem;
}

    .section-header h2 {
        font-size: 1.7rem;
        font-weight: 700;
        background: linear-gradient(135deg, #f5f5f5, #f5c518);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

    .section-header a {
        color: #aaa;
        font-size: 0.85rem;
        text-decoration: none;
        transition: 0.2s;
    }

        .section-header a:hover {
            color: #f5c518;
        }

.movie-card {
    background: #141414;
    border-radius: 16px;
    overflow: hidden;
    transition: 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .movie-card:hover {
        transform: scale(1.02) translateY(-5px);
        box-shadow: 0 20px 30px -8px rgba(245,197,24,0.2);
    }

.poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
}

    .poster img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: 0.4s;
    }

.movie-card:hover .poster img {
    transform: scale(1.05);
}

.rating-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #f5c518;
    color: #000;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    z-index: 2;
}

.card-info {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

    .card-info h4 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.meta {
    display: flex;
    gap: 0.8rem;
    font-size: 0.75rem;
    color: #bbb;
    margin-top: 5px;
    flex-wrap: wrap;
}

.btn-icon {
    background: #f5c518;
    border: none;
    border-radius: 30px;
    padding: 4px 12px;
    color: #000;
    font-weight: bold;
    font-size: 0.7rem;
    margin-top: 12px;
    display: inline-block;
    width: fit-content;
    cursor: pointer;
    transition: 0.2s;
}

    .btn-icon:hover {
        background: #ffdb4a;
    }

.swiper {
    padding: 10px 5px 25px 5px;
}

.swiper-button-next, .swiper-button-prev {
    color: #f5c518;
    background: rgba(0,0,0,0.6);
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

    .swiper-button-next:after, .swiper-button-prev:after {
        font-size: 1rem;
    }

.swiper-pagination-bullet-active {
    background: #f5c518;
}

@media (max-width: 768px) {
    .movies-sliders-section {
        padding: 1rem;
    }

    .section-header h2 {
        font-size: 1.3rem;
    }

    .card-info h4 {
        font-size: 0.85rem;
    }
}








/*Ai سینماچی*/
.cinemachi_container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* هدر */
.cinemachi_header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.cinemachi_glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1), transparent 70%);
    filter: blur(40px);
    animation: cinemachi_pulseGlow 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes cinemachi_pulseGlow {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.cinemachi_logoArea {
    position: relative;
    display: inline-block;
}

.cinemachi_logoIcon {
    position: absolute;
    top: -20px;
    right: -40px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    animation: cinemachi_rotate 4s linear infinite;
}

@keyframes cinemachi_rotate {
    0% {
        transform: rotate(0deg);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    }

    50% {
        transform: rotate(180deg);
        box-shadow: 0 0 40px rgba(255, 140, 0, 0.5);
    }

    100% {
        transform: rotate(360deg);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    }
}

.cinemachi_logoIcon svg {
    width: 35px;
    height: 35px;
}

.cinemachi_header h1 {
    font-size: clamp(2rem, 6vw, 3.8rem);
    background: linear-gradient(135deg, #ffd700, #ffaa00, #ff8c00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    letter-spacing: -2px;
    font-weight: 800;
}

/* باکس دسته‌بندی */
.cinemachi_categoriesBox {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin: 1.5rem auto;
    padding: 0.5rem;
}

.cinemachi_categoryBadge {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 2rem;
    padding: 0.6rem 1.3rem;
    font-size: clamp(0.75rem, 3vw, 0.9rem);
    font-weight: 600;
    color: #ffd700;
    transition: all 0.3s ease;
    cursor: default;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .cinemachi_categoryBadge:hover {
        transform: translateY(-3px);
        border-color: #ff8c00;
        color: #ff8c00;
    }

/* باکس دکمه‌ها */
.cinemachi_buttonsGlass {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    border-radius: 2rem;
    padding: 2rem;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

.cinemachi_buttonsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.cinemachi_btn {
    background: linear-gradient(135deg, rgba(20, 15, 0, 0.9), rgba(10, 8, 0, 0.95));
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 0.9rem 0.5rem;
    border-radius: 1.5rem;
    font-size: clamp(0.7rem, 3vw, 0.85rem);
    font-weight: 600;
    color: #ffd700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    position: relative;
    overflow: hidden;
}

    .cinemachi_btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
        transition: left 0.5s ease;
    }

    .cinemachi_btn:hover::before {
        left: 100%;
    }

    .cinemachi_btn:hover {
        transform: translateY(-5px);
        border-color: #ff8c00;
        color: #ff8c00;
    }

.cinemachi_btnIcon {
    width: 24px;
    height: 24px;
}

@media (max-width: 550px) {
    .cinemachi_buttonsGrid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 0.7rem;
    }

    .cinemachi_btn {
        padding: 0.7rem 0.4rem;
        font-size: 0.7rem;
        flex-direction: column;
        gap: 0.3rem;
    }
}

/* ========== مودال پاسخ ========== */
.cinemachi_modalOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .cinemachi_modalOverlay.cinemachi_active {
        opacity: 1;
        visibility: visible;
    }

.cinemachi_modalContent {
    background: linear-gradient(135deg, rgba(15, 12, 0, 0.98), rgba(8, 6, 0, 0.98));
    backdrop-filter: blur(20px);
    border-radius: 2rem;
    border: 1px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(255, 215, 0, 0.2);
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    margin: 1rem;
}

.cinemachi_modalOverlay.cinemachi_active .cinemachi_modalContent {
    transform: scale(1);
}

.cinemachi_modalContent::-webkit-scrollbar {
    width: 6px;
}

.cinemachi_modalContent::-webkit-scrollbar-track {
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
}

.cinemachi_modalContent::-webkit-scrollbar-thumb {
    background: #ffd700;
    border-radius: 10px;
}

.cinemachi_modalClose {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 35px;
    height: 35px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

    .cinemachi_modalClose:hover {
        background: rgba(255, 100, 0, 0.3);
        border-color: #ff8c00;
        transform: rotate(90deg);
    }

    .cinemachi_modalClose svg {
        width: 20px;
        height: 20px;
        stroke: #ffd700;
    }

.cinemachi_modalBody {
    padding: 2rem;
}

.cinemachi_loadingArea {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    padding: 2rem;
}

.cinemachi_spinner {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #ffd700, #ff8c00, #ffaa00, #ffd700);
    animation: cinemachi_spinAnim 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 8px));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 8px));
}

@keyframes cinemachi_spinAnim {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.cinemachi_loadingText {
    color: #ffd700;
    font-size: clamp(0.8rem, 3.5vw, 1rem);
    letter-spacing: 2px;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.cinemachi_loadingDots::after {
    content: '';
    animation: cinemachi_dotsAnim 1.5s steps(3, end) infinite;
}

@keyframes cinemachi_dotsAnim {
    0%, 20% {
        content: '.';
    }

    40% {
        content: '..';
    }

    60%, 100% {
        content: '...';
    }
}

.cinemachi_responseArea {
    animation: cinemachi_fadeInUp 0.5s ease-out;
}

.cinemachi_responseText {
    color: #f0f0f0;
    line-height: 1.8;
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    white-space: pre-wrap;
    word-break: break-word;
}

.cinemachi_moreBtn {
    margin-top: 1.5rem;
    background: linear-gradient(90deg, #ffd700, #ff8c00);
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 2rem;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: clamp(0.75rem, 3vw, 0.85rem);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

    .cinemachi_moreBtn:hover {
        transform: scale(1.02);
        box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
        background: linear-gradient(90deg, #ffed4a, #ffaa00);
    }

    .cinemachi_moreBtn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

@keyframes cinemachi_fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cinemachi_footer {
    text-align: center;
    margin-top: 2rem;
    color: rgba(255, 215, 0, 0.4);
    font-size: 0.7rem;
}





/* ----------------------------------------------
           کلاس اصلی wrapper برای جلوگیری از تداخل با سایر CSS
           ---------------------------------------------- */
.hederfeme * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.hederfeme {
    background: #0f0f0f;
    font-family: 'Segoe UI', 'Poppins', system-ui, sans-serif;
}

    .hederfeme .hero-slider {
        position: relative;
        width: 100%;
        min-height: 100vh;
        background: #0a0a0a;
        overflow: hidden;
    }

    .hederfeme .swiper {
        width: 100%;
        height: 100vh;
        position: relative;
    }

    .hederfeme .swiper-slide {
        position: relative;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }

/* تنظیم مخصوص موبایل و تبلت برای عکس پس زمینه */
@media (max-width: 768px) {
    .hederfeme .swiper-slide {
        background-size: cover;
        background-position: 30% center;
    }
}

@media (max-width: 480px) {
    .hederfeme .swiper-slide {
        background-position: 40% center;
    }
}

/* اورلی بهتر و ملایم‌تر */
.hederfeme .swiper-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

/* هدر کانتنت */
.hederfeme .header-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ردیف بالایی که لوگو و منو هردو توش هستن */
.hederfeme .top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.hederfeme .logo h2 {
    color: #f5c518;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f5c518, #e4b109);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hederfeme .logo span {
    color: #fff;
    font-size: 0.75rem;
    display: block;
}

/* منوی اصلی - بدون باکس جدا */
.hederfeme .main-nav {
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    padding: 0;
    border: none;
    box-shadow: none;
}

.hederfeme .nav-links {
    display: flex;
    gap: 1.8rem;
    list-style: none;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}

    .hederfeme .nav-links li a {
        color: #fff;
        text-decoration: none;
        font-weight: 600;
        font-size: 1rem;
        padding: 0.4rem 0;
        transition: 0.2s;
        position: relative;
        white-space: nowrap;
    }

        /* خط زیر منو */
        .hederfeme .nav-links li a::after {
            content: '';
            position: absolute;
            bottom: -4px;
            right: 0;
            width: 0%;
            height: 2px;
            background: #f5c518;
            transition: 0.3s;
        }

        .hederfeme .nav-links li a:hover::after,
        .hederfeme .nav-links li a.active::after {
            width: 100%;
        }

        .hederfeme .nav-links li a:hover,
        .hederfeme .nav-links li a.active {
            color: #f5c518;
        }

/* آیکون‌های سمت راست */
.hederfeme .nav-icons {
    display: flex;
    gap: 1.2rem;
}

    .hederfeme .nav-icons i {
        color: #fff;
        font-size: 1.3rem;
        cursor: pointer;
        transition: 0.2s;
    }

        .hederfeme .nav-icons i:hover {
            color: #f5c518;
        }

/* متن پایین اسلایدر */
.hederfeme .slide-caption {
    position: absolute;
    bottom: 10%;
    right: 5%;
    z-index: 20;
    max-width: 550px;
    text-align: right;
    direction: rtl;
    animation: hederfeme-fadeInUp 0.7s ease;
}

    .hederfeme .slide-caption h1 {
        font-size: 3rem;
        font-weight: 800;
        color: #fff;
        text-shadow: 0 2px 15px black;
        margin-bottom: 0.5rem;
    }

.hederfeme .movie-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin: 0.8rem 0;
}

.hederfeme .rating {
    background: #f5c518;
    color: #1e1e1e;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.8rem;
}

.hederfeme .year,
.hederfeme .genre {
    color: #ddd;
}

.hederfeme .slide-caption p {
    color: #e0e0e0;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.hederfeme .btn-watch {
    background: #f5c518;
    color: #000;
    border: none;
    padding: 10px 28px;
    font-weight: bold;
    border-radius: 40px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .hederfeme .btn-watch:hover {
        background: #ffdb4a;
        transform: scale(1.02);
    }

/* استایل اسلایدر */
.hederfeme .swiper-button-next,
.hederfeme .swiper-button-prev {
    color: #f5c518 !important;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.hederfeme .swiper-pagination-bullet-active {
    background: #f5c518 !important;
}

@keyframes hederfeme-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ریسپانسیو منو و لوگو */
@media (max-width: 992px) {
    .hederfeme .slide-caption h1 {
        font-size: 2.2rem;
    }

    .hederfeme .nav-links {
        gap: 1rem;
    }

        .hederfeme .nav-links li a {
            font-size: 0.85rem;
            white-space: nowrap;
        }
}

@media (max-width: 768px) {
    .hederfeme .header-content {
        padding: 1rem;
    }

    .hederfeme .top-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }

    .hederfeme .logo {
        text-align: center;
    }

    .hederfeme .main-nav {
        text-align: center;
    }

    .hederfeme .nav-links {
        justify-content: center;
        gap: 1rem;
    }

        .hederfeme .nav-links li a {
            font-size: 0.8rem;
            white-space: nowrap;
        }

    .hederfeme .nav-icons {
        justify-content: center;
    }

    .hederfeme .slide-caption {
        bottom: 8%;
        right: 4%;
        max-width: 90%;
    }

        .hederfeme .slide-caption h1 {
            font-size: 1.6rem;
        }

    .hederfeme .btn-watch {
        padding: 6px 16px;
        font-size: 0.8rem;
    }
}

@media (max-width: 550px) {
    .hederfeme .nav-links {
        gap: 0.7rem;
        flex-wrap: wrap;
    }

        .hederfeme .nav-links li a {
            font-size: 0.7rem;
        }
}

.hederfeme .dummy-content {
    background: #0f0f0f;
    padding: 4rem 2rem;
    text-align: center;
    color: #aaa;
}
