:root {
    /* تنظیمات پیش‌فرض (تم روشن) */
    --text-color: #fff;        /* متن‌های تیره برای تم روشن */
    --bg-card:    rgba(255, 255, 255, 0.05);    /* پس‌زمینه کارت روشن */
    --accent-color: #d56802;   /* همان نارنجی */
    --orange: #d56802;
    --white: #ffffff;
    --black: #111111;
    --border-color:  rgba(255, 255, 255, 0.3);

    --bg: var(--black);
    --text: var(--white);
}

.light-mode {
    /* تنظیمات برای تم دارک */
    --text-color: #333;        /* متن‌های سفید برای تم دارک */
    --bg-card: #f0f0f0; /* پس‌زمینه کارت دارک */
    --bg: var(--white);
    --text: var(--black);
    --border-color: rgba(0, 0, 0, 0.2);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    transition: 0.3s;
    font-family: 'Lalezar', sans-serif; 
}

/* هدر */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg);
    border-bottom: 4px solid var(--orange);
    padding: 20px 40px;
}

/* بخش راست (لوگو + منو) */
.header-right {
    display: flex;
    align-items: center;
}

/* لوگو */
.logo img {
    height: 70px;
    cursor: pointer;
    width: auto;
}

.logo-box {
    display: flex;
    flex-direction: column; /* لوگو بالا، متن پایین */
    align-items: center;
    text-decoration: none;
}

.studio-name {
    margin-top: 5px;
    font-size: 14px;
    color: var(--orange); /* نارنجی برند */
}


/* منو */
.nav a {
    margin-right: 20px;
    text-decoration: none;
    color: var(--text);
    transition: 0.2s;
    font-size: 18px; /* اندازه متن منو بزرگتر شد */
    padding: 10px 15px;
}

.nav a:hover {
    color: var(--orange);
}

.header-left {

    display: flex;

    align-items: center;

    gap: 20px;
}

/* برند */

.studio-brand {

    display: flex;

    flex-direction: column;

    align-items: flex-end;

    line-height: 1.2;
}

/* Hanikan Studio */

.studio-name {

    font-family: 'Jappokki', sans-serif;

    font-size: 28px;

    color: var(--orange);
}

/* زیرعنوان فارسی */

.studio-subtitle {

    font-size: 13px;
    direction: center;
    color: #999;
    font-weight: lighter;
}

.theme-btn {
    background: var(--orange);
    border: none;
    color: var(--white);
    padding: 6px 12px;
    font-size: 20px;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 15px;
    transition: 0.2s;
}

.theme-btn:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {

    .header {

        flex-direction: column;

        gap: 20px;

        padding: 20px;

    }

    .header-right {

        flex-direction: column;

        gap: 15px;

    }

    .header-left {

        justify-content: center;

    }

    .nav {

        display: flex;

        flex-wrap: wrap;

        justify-content: center;

        gap: 10px;

    }

    .nav a {

        margin-right: 0;

        font-size: 16px;

        padding: 8px 12px;

    }

    .studio-name {

        font-size: 24px;

    }

}


.latest-section {
    position: relative;
    padding: 0 5px;
    width: 95%;
    margin: 25px auto;
    direction: rtl; /* جهت راست به چپ */
    background: var(--background-light); /* رنگ متناسب با تم */
    text-align: right;
    font-weight: lighter;
}

.section-title {
    font-family: 'Lalezar', sans-serif;
    font-size: 28px;
    color: var(--orange);
    margin-bottom: 20px;
    font-weight: lighter;
}

.latest-slider {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    height: 500px; /* ارتفاع ثابت تو */
    border-radius: 15px;
}

.slide {
    display: none;
    width: 100%;
    height: 100%; /* اسلاید دقیقا 500 پیکسل بشه */
    position: absolute;
    top: 0;
    left: 0;
}

.slide.active {
    display: block;
}

/* عکس‌ها حالا در 500 پیکسل فیکس می‌شن بدون تغییر ابعاد غیرطبیعی */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

/* متن پایین عکس */
.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px 20px 20px; /* فضای بیشتر برای سایه */
    /* اینجا سایه از سیاه به شفاف ایجاد می‌شود */
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.caption h3 {
    font-size: 28px;
    margin-bottom: 5px;
    font-weight: lighter;
}

.caption p {
    font-size: 18px;
    opacity: 0.85;
    font-weight: lighter;
    color: #d56802;
}

/* استایل فلش‌ها */
.prev, .next {
    position: absolute;
    top: 50%;
    cursor: pointer;
    padding: 16px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 20px;
    z-index: 10;
}
.next { right: 0; }
.prev { left: 0; }

/* استایل دایره‌ها */
.dots-container {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    z-index: 10;
}
.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}
.dot.active {
    background-color: var(--orange); /* رنگ نارنجی برند تو */
}

/* تنظیمات کلی بخش دوبله اختصاصی */
.exclusive-section {
    width: 95%;
    margin: 50px auto;
    direction: rtl; /* جهت راست به چپ */
}

/* هدر بخش (عنوان راست، دکمه چپ) */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
}

.section-header h2 {
    font-family: 'Lalezar', sans-serif;
    font-size: 26px;
    color: var(--text-color); /* رنگ نارنجی برند */
    margin: 0;
}

/* دکمه مشاهده همه */
.view-all-btn {
    font-family: 'Lalezar', sans-serif;
    font-size: 16px;
    color: var(--text-color);
    text-decoration: none;
    background: transparent;
    border: 2px solid var(--orange, #d56802);
    padding: 8px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: var(--orange, #d56802);
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
    color: var(--text-color);
    border: 2px solid var(--accent-color);
}

/* شبکه (گرید) پوسترهای فیلم */
.posters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* ۴ ستون هم‌اندازه */
    gap: 25px; /* فاصله بین کارتها */
}

/* کارت هر فیلم */
.movie-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--bg-card);
}

.movie-card:hover {
    transform: translateY(-10px); /* بالا آمدن کارت هنگام هاور */
    box-shadow: 0 10px 25px rgba(255, 107, 0, 0.2);
}

/* باکس پوستر با ابعاد مشخص شده */
.poster-wrapper {
    width: 100%;
    height: 540px; /* تنظیم ارتفاع پوسترها طبق درخواست شما */
    overflow: hidden;
}

.poster-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* فیت شدن کامل عکس در کادر بدون تغییر شکل */
    transition: transform 0.5s ease;
}

/* افکت زوم ملایم عکس با رفتن موس روی کارت */
.movie-card:hover .poster-wrapper img {
    transform: scale(1.05);
}

/* بخش اطلاعات زیر پوستر */
.movie-info {
    padding: 20px;
    text-align: center;
}

.movie-info h3 {
    font-family: 'Lalezar', sans-serif;
    font-size: 18px;
    color: var(--text-color);
    margin: 0 0 15px 0;
    font-weight: lighter;
}

/* دکمه مشاهده */
.view-btn {
    display: inline-block;
    font-family: sans-serif;
    font-size: 15px;
    text-decoration: none;
    padding: 8px 30px;
    border-radius: 8px;
    transition: background 0.3s, transform 0.2s;
    color: #fff;
    background: var(--accent-color);
}

.view-btn:hover {
    background: #e05e00; /* نارنجی تیره تر در هاور */
    transform: scale(1.05);
}

/* ================= بخش کلاس‌ها در صفحه اصلی ================= */

.dubbing-class .info {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    align-items: stretch;

    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 25px;
}

.dubbing-class .info img {
    width: 320px;
    height: 460px;
    object-fit: cover;
    border-radius: 15px;
    display: block;
}

.dubbing-class .info p {
    font-family: "Lalezar", sans-serif;
    font-size: 26px;
    line-height: 2.3;
    font-weight: lighter;
    color: var(--text-color);
    margin: 0;

    display: flex;
    align-items: center;
}

.footer {
    margin-top: 40px;
    background-color: var(--bg-card);
    color: var(--text-color);
    padding: 10px 20px;
    font-size: 16px;
    border-top:
        1px solid var(--border-color);
    font-weight: lighter;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.footer-section p {
    margin: 0;
    line-height: 1.5;
}


.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
}

.social-links a:hover {
    color: white;
}

.social-icon {
    width: 30px;
    height: 30px;
}


/* ================= صفحه فیلم ================= */

.movie-detail-section {
    width: 95%;
    margin: 40px auto;
}

/* بخش بالایی */

.movie-top-section { 
    display: grid; 
    grid-template-columns: 320px 1fr 320px; 
    gap: 30px; 
    align-items: stretch; /* تغییر مهم */ 
    margin-bottom: 50px; 
} 

/* پوستر */ 
.movie-poster-box {

    position: relative;

    height: 100%;

    overflow: hidden;

    border-radius: 15px;
}

/* لایه روی پوستر */

.trailer-overlay {

    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, 0.65);

    display: flex;

    justify-content: center;

    align-items: center;

    opacity: 0;

    transition: 0.3s ease;
}

/* ظاهر شدن هنگام هاور */

.movie-poster-box:hover .trailer-overlay {

    opacity: 1;
}

/* دکمه */

.trailer-btn {

    text-decoration: none;

    color: white;

    background: var(--orange);

    padding: 12px 24px;

    border-radius: 10px;

    font-size: 18px;

    transition: 0.3s;
}

.trailer-btn:hover {

    transform: scale(1.05);
}

.movie-poster-box img {
    width: 100%; 
    height: 100%; /* مهم */ 
    border-radius: 10px; 
    object-fit: cover; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.25); 
}
/* اطلاعات */

.movie-main-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.movie-page-title {
    font-size: 52px;
    color: var(--text-color);
    font-weight: lighter;
}

.movie-meta-info {
    display: flex;
    flex-direction: column; /* مهم */
    gap: 12px;

    color: var(--orange);
    font-size: 18px;
}

.movie-description {
    line-height: 2;
    font-size: 18px;
    color: var(--text-color);
}

/* باکس خرید */

.movie-purchase-box { 
    background: var(--bg-card); 
    border-radius: 15px; 
    padding: 25px; 
    border: 1px solid var(--border-color); 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
}

.movie-purchase-box h2 {
    font-size: 34px;
    margin-bottom: 20px;
    font-weight: lighter;
}


.movie-price {
    font-size: 34px;
    color: var(--orange);
    margin-bottom: 25px;
}

/* کیفیت‌ها */

.quality-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.quality-btn {
    background: transparent;
    border: 2px solid var(--orange);
    color: var(--text-color);
    padding: 8px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Lalezar', sans-serif;
}

.quality-btn:hover {
    background: var(--orange);
    color: white;
}

.active-quality {
    background: var(--orange);
    color: white;
}

/* دکمه خرید */

.buy-movie-btn {
    width: 100%;
    background: var(--orange);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
    font-family: 'Lalezar', sans-serif;
    transition: 0.3s;
    margin-bottom: 25px;
}

.buy-movie-btn:hover {
    opacity: 0.9;
}

/* دانلود */

.download-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.download-box a {
    text-decoration: none;
    background: rgba(255,255,255,0.05);
    padding: 25px;
    border-radius: 20px;
    color: var(--text-color);
    transition: 0.3s;
}

.download-box a:hover {
    background: var(--orange);
    color: white;
}

/* اطلاعات دوبله */

.dub-info-section {
    margin-bottom: 60px;
}

.dub-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.dub-info-item {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.dub-info-item span {
    color: var(--orange);
    font-size: 18px;
}

.dub-info-item p {
    margin-top: 10px;
    font-size: 22px;
    color: var(--text-color);
}

/* گویندگان */

.voice-actors-section {
    margin-bottom: 60px;
}

.voice-actors-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.voice-actor-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: 0.3s;
    border: 1px solid var(--border-color);
}

.voice-actor-card:hover {
    transform: translateY(-8px);
}

.voice-actor-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    transition: 0.3s;
}


.voice-actor-card h3 {
    margin-bottom: 10px;
    font-weight: lighter;
    font-size: 20px;
}

.voice-actor-card p {
    color: var(--orange);
    font-size: 15px;
}

/* پلیر */

.movie-preview-section {
    margin-bottom: 60px;
}

.movie-video-box {
    overflow: hidden;
    border-radius: 20px;
    display: flex;
    justify-content: center;
}

.movie-video-box video {
    width: 70%;
}

/* ================= صفحه دوبله اختصاصی ================= */

.exclusive-page-section {

    width: 95%;
    margin: 50px auto;
}

/* گرید فیلم‌ها */

.exclusive-movies-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 30px;
}

/* کارت فیلم */

.movie-card {

    background: var(--bg-card);

    border-radius: 18px;

    overflow: hidden;

    border:
        1px solid var(--border-color);

    transition: 0.3s;
}

.movie-card:hover {

    transform: translateY(-8px);
}

/* پوستر */

.poster-wrapper {

    width: 100%;
    aspect-ratio: 2 / 3;

    overflow: hidden;
}

.poster-wrapper img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: 0.4s;
}

.movie-card:hover img {

    transform: scale(1.05);
}

/* اطلاعات */

.movie-info {

    padding: 20px;

    display: flex;

    flex-direction: column;

    gap: 18px;
}

.movie-info h3 {

    font-size: 24px;

    color: var(--text-color);

    font-weight: lighter;

    line-height: 1.7;
}

/* دکمه مشاهده */

.view-btn {

    display: inline-block;

    text-align: center;

    text-decoration: none;

    background: var(--orange);

    color: white;

    padding: 12px;

    border-radius: 12px;

    transition: 0.3s;
}

.view-btn:hover {

    opacity: 0.9;
}


/* ================= صفحه اکران‌ها ================= */

.screenings-page-section {

    width: 95%;
    margin: 50px auto;
}

/* گرید */

.screenings-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 30px;
}

/* کارت */

.screening-card {

    background: var(--bg-card);

    border:
        1px solid var(--border-color);

    border-radius: 20px;

    overflow: hidden;

    transition: 0.3s;
}

.screening-card:hover {

    transform: translateY(-8px);
}

/* پوستر */

.screening-poster {

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;
}

.screening-poster img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: 0.4s;
}

.screening-card:hover img {

    transform: scale(1.05);
}

/* اطلاعات */

.screening-info {

    padding: 25px;

    display: flex;

    flex-direction: column;

    gap: 18px;
}

.screening-info h3 {

    font-size: 28px;

    font-weight: lighter;

    color: var(--text-color);

    line-height: 1.6;
}

/* متا */

.screening-meta {

    display: flex;

    flex-direction: column;

    gap: 10px;

    color: var(--orange);

    font-size: 18px;
}

/* وضعیت */

.screening-status {

    width: fit-content;

    padding: 8px 16px;

    border-radius: 12px;

    font-size: 16px;
}

.active-status {

    background:
        rgba(40, 167, 69, 0.2);

    color: #4ade80;
}

.upcoming-status {

    background:
        rgba(255, 193, 7, 0.2);

    color: #facc15;
}

.finished-status {

    background:
        rgba(239, 68, 68, 0.2);

    color: #f87171;
}

/* ================= صفحه اطلاعات اکران ================= */

.screening-detail-section {

    width: 95%;
    margin: 50px auto;
}

/* بخش بالا */

.screening-top-section {

    display: grid;

    grid-template-columns:
        320px 1fr 320px;

    gap: 30px;

    align-items: stretch;

    margin-bottom: 60px;
}

/* پوستر */

.screening-detail-poster {

    height: 100%;
}

.screening-detail-poster img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 18px;

    box-shadow:
        0 4px 20px rgba(0,0,0,0.25);
}

/* باکس خرید */

.ticket-box {

    background: var(--bg-card);

    border:
        1px solid var(--border-color);

    border-radius: 18px;

    padding: 25px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;
}

.ticket-box h2 {

    font-size: 34px;

    font-weight: lighter;

    margin-bottom: 20px;
}

.ticket-price {

    font-size: 38px;

    color: var(--orange);

    margin-bottom: 30px;
}

/* دکمه خرید */

.buy-ticket-btn {

    width: 100%;

    background: var(--orange);

    border: none;

    color: white;

    padding: 15px;

    border-radius: 14px;

    font-size: 20px;

    cursor: pointer;

    font-family: 'Lalezar', sans-serif;

    transition: 0.3s;
}

.buy-ticket-btn:hover {

    opacity: 0.9;
}

/* پایان یافته */

.screening-finished-box {

    background:
        rgba(239, 68, 68, 0.15);

    color: #f87171;

    text-align: center;

    padding: 16px;

    border-radius: 14px;

    font-size: 22px;
}

/* اطلاعات اکران */

.screening-info-section {

    margin-bottom: 70px;
}

.screening-info-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 25px;
}

.screening-info-item {

    background: var(--bg-card);

    border:
        1px solid var(--border-color);

    border-radius: 16px;

    padding: 22px;
}

.screening-info-item span {

    color: var(--orange);

    font-size: 18px;
}

.screening-info-item p {

    margin-top: 12px;

    font-size: 24px;
}

.screening-address {

    margin-top: 10px;

    font-size: 15px;

    line-height: 1.8;

    color: #888;
}


/* گالری */

.screening-gallery-section {

    margin-bottom: 80px;
}

.screening-gallery-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}

.screening-gallery-grid img {

    width: 100%;

    height: 260px;

    object-fit: cover;

    border-radius: 18px;

    transition: 0.3s;
}

.screening-gallery-grid img:hover {

    transform: scale(1.03);
}

/* ================= صفحه مقاله ================= */

.article-page {

    width: 85%;
    max-width: 1000px;

    margin: 50px auto;
}

/* هدر */

.article-header {

    margin-bottom: 40px;
}

.article-title {

    font-size: 56px;

    line-height: 1.5;

    margin-bottom: 20px;

    font-weight: lighter;

    color: var(--text-color);
}

.article-meta {

    display: flex;

    gap: 20px;

    flex-wrap: wrap;

    color: #888;

    font-size: 16px;
}

/* مقدمه */

.article-intro {

    margin-bottom: 40px;
}

.article-intro p {

    font-family: "Roya";

    font-size: 22px;

    line-height: 2.2;
}

/* تصویر شاخص */

.article-featured-image {

    margin-bottom: 50px;
}

.article-featured-image img {

    width: 100%;

    border-radius: 20px;

    display: block;
}

/* متن */

.article-content {

    font-family: "Roya";

    line-height: 2.4;

    font-size: 20px;
}

.article-content p {

    font-family: "Roya";

    margin-bottom: 30px;
}

.article-content img {

    width: 100%;

    margin: 40px 0;

    border-radius: 20px;
}

/* تگ ها */

.article-tags {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 60px;
}

.article-tags a {

    text-decoration: none;

    background: var(--bg-card);

    border: 1px solid var(--border-color);

    color: var(--text-color);

    padding: 8px 16px;

    border-radius: 50px;

    transition: 0.3s;
}

.article-tags a:hover {

    background: var(--orange);

    color: white;
}

.backstage-video video {

    width: 100%;

    border-radius: 15px;

    display: block;
}

.backstage-info {

    margin-top: 15px;

    font-size: 20px;

    line-height: 1.8;

    text-align: center;
}

.backstage-info span {

    color: var(--orange);
}

.backstage-info a {

    color: var(--text-color);

    text-decoration: none;

    transition: 0.3s;
}

.backstage-info a:hover {

    color: var(--orange);
}

.backstage-item {

    margin-top: 20px;

    margin-bottom: 50px;

    padding-bottom: 30px;

    border-bottom:
        1px solid var(--border-color);
}

.pagination {

    display: flex;

    justify-content: center;

    gap: 10px;

    margin-top: 40px;
}

.pagination a {

    width: 40px;

    height: 40px;

    display: flex;

    justify-content: center;

    align-items: center;

    border-radius: 10px;

    background: var(--bg-card);

    color: var(--text-color);

    text-decoration: none;

    transition: 0.3s;
}

.pagination a:hover {

    background: var(--orange);

    color: white;
}

/* مقالات مرتبط */

.related-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.related-card {

    background: var(--bg-card);

    border: 1px solid var(--border-color);

    border-radius: 15px;

    padding: 25px;

    text-decoration: none;

    color: var(--text-color);

    transition: 0.3s;
}

.related-card:hover {

    transform: translateY(-5px);
}

.related-card h3 {

    font-weight: lighter;

    line-height: 1.8;
}


.error-page {

    min-height: 70vh;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    gap: 20px;

    text-align: center;

}

.error-page h1 {

    font-size: 120px;

}

/* ================= وبلاگ ================= */

.blog-page-section {

    width: 95%;

    margin: 50px auto;
}

/* لیست مقالات */

.articles-list {

    display: flex;

    flex-direction: column;

    gap: 25px;
}

/* کارت مقاله */

.article-card {

    display: flex;

    gap: 25px;

    background: var(--bg-card);

    border: 1px solid var(--border-color);

    border-radius: 18px;

    overflow: hidden;

    text-decoration: none;

    color: var(--text-color);

    transition: 0.3s;
}

.article-card:hover {

    transform: translateY(-5px);
}

/* تصویر */

.article-thumbnail {

    width: 300px;

    flex-shrink: 0;
}

.article-thumbnail img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;
}

/* محتوا */

.article-card-content {

    padding: 25px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    gap: 15px;
}

/* نوار انتخاب قسمت */

.episode-selector {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin: 15px 0 20px;
}

/* دکمه هر قسمت */

.episode-btn {

    background: var(--bg-card);

    color: var(--text-color);

    border: 1px solid var(--border-color);

    border-radius: 10px;

    padding: 8px 16px;

    cursor: pointer;

    font-family: inherit;

    font-size: 14px;

    transition: 0.3s;
}

/* هاور */

.episode-btn:hover {

    background: var(--orange);

    color: white;
}

/* قسمت انتخاب شده */

.episode-btn.active {

    background: var(--orange);

    color: white;

    border-color: var(--orange);
}

.article-card-content h2 {

    font-size: 34px;

    font-weight: lighter;

    line-height: 1.6;
}

.article-card-content p {

    font-family: "Roya";

    line-height: 2;

    font-size: 18px;

    color: var(--text);
}

/* مطالعه مقاله */

.read-more {

    color: var(--orange);

    font-size: 18px;
}

/* موبایل */

@media (max-width: 900px) {

    .article-card {

        flex-direction: column;
    }

    .article-thumbnail {

        width: 100%;
        height: 250px;
    }

}

/* موبایل */

@media (max-width: 800px) {

    .article-page {

        width: 92%;
    }

    .article-title {

        font-size: 38px;
    }

    .related-grid {

        grid-template-columns: 1fr;
    }

}

/* ================= صفحه گوینده ================= */

.voice-actor-page {

    width: 95%;

    margin: 50px auto;
}

/* هدر */

.voice-actor-header {

    display: grid;

    grid-template-columns:
        320px 1fr 280px;

    gap: 30px;

    align-items: stretch;

    margin-bottom: 70px;
}

/* عکس */

.actor-image img {

    width: 350px;
    height: 350px;

    object-fit: cover;

    border-radius: 20px;

    border:
        1px solid var(--border-color);
}

/* اطلاعات */

.actor-info {

    display: flex;

    flex-direction: column;

    justify-content: center;
}

.actor-name {

    font-size: 56px;

    font-weight: lighter;

    margin-bottom: 20px;

    margin-right: 75px;
}

.actor-stats {

    display: flex;

    gap: 15px;

    flex-wrap: wrap;

    margin-bottom: 20px;
}

.actor-stats span {

    background: var(--bg-card);

    border:
        1px solid var(--border-color);

    padding: 10px 18px;

    border-radius: 50px;

    color: var(--orange);
}

.actor-bio {

    line-height: 2.2;

    font-size: 20px;

    margin-bottom: 25px;
}

/* شبکه اجتماعی */

.actor-socials {

    display: flex;

    gap: 20px;

    flex-wrap: wrap;

    margin-right: 75px;
    
    margin-top: 20px;
}

.actor-socials a {

    text-decoration: none;

    color: var(--text-color);

    background: var(--bg-card);

    border:
        1px solid var(--border-color);

    padding: 14px 24px;

    font-size: 18px;

    border-radius: 14px;

    transition: 0.3s;

    min-width: 120px;

    text-align: center;
}

.actor-socials a:hover {

    background: var(--orange);

    color: white;
}

/* ویدیو */

.actor-video {

    display: flex;

    justify-content: center;
}

.actor-video video {

    width: 350px;

    height: 350px;

    border-radius: 20px;

    margin-left: 40px;

    border:
        1px solid var(--border-color);

    object-fit: cover;
}

/* آثار */

.actor-works-section {

    margin-bottom: 80px;
}

.actor-works-section .section-title {

    font-size: 42px;

    margin-bottom: 30px;
}

.actor-works-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(180px, 1fr));

    gap: 20px;
}

.actor-work-card {

    background: var(--bg-card);

    border:
        1px solid var(--border-color);

    border-radius: 18px;

    overflow: hidden;

    text-decoration: none;

    color: inherit;

    transition: 0.3s;
}

.actor-work-card:hover {

    transform: translateY(-5px);
}

.actor-work-card img {

    width: 100%;

    height: 240px;

    object-fit: cover;
}

.actor-work-card h3 {

    font-size: 18px;

    padding: 12px 12px 5px;

    font-weight: lighter;
}

.actor-work-card p {

    font-size: 14px;

    padding: 0 12px 12px;

    color: #888;
}


/* ریسپانسیو */

@media (max-width: 1200px) {

    .voice-actor-header {

        grid-template-columns: 1fr;
    }

    .actor-image {

        max-width: 350px;

        margin: auto;
    }

    .actor-video {

        max-width: 350px;

        margin: auto;
    }

}

@media (max-width: 900px) {

    .actor-works-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }

}

@media (max-width: 700px) {

    .ticket-price {

        font-size: 28px;

    }

    .ticket-box h2 {

        font-size: 26px;

    }

}


@media (max-width: 700px) {

    .actor-name {

        margin-right: 0;

        text-align: center;

        font-size: 40px;

    }

    .actor-works-grid {

        grid-template-columns:
            1fr;
    }

    .actor-socials {

        margin-right: 0;

        justify-content: center;

    }

    .actor-video video {

        width: 100%;

        height: auto;

        margin-left: 0;

    }

    .actor-image img {

        width: 100%;

        height: auto;

    }

}

/* ریسپانسیو */

@media (max-width: 1200px) {

    .screening-top-section {

        grid-template-columns: 1fr;
    }

    .screening-detail-poster {

        max-width: 400px;

        margin: auto;
    }

}

@media (max-width: 800px) {

    .screening-info-grid {

        grid-template-columns: 1fr;
    }

}

@media (max-width: 700px) {

    .screening-gallery-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }

}

@media (max-width: 500px) {

    .screening-gallery-grid {

        grid-template-columns: 1fr;
    }

}

/* ریسپانسیو */

@media (max-width: 1000px) {

    .screenings-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }

}

@media (max-width: 650px) {

    .screenings-grid {

        grid-template-columns:
            1fr;
    }

}


/* ریسپانسیو */

@media (max-width: 1000px) {

    .classes-gallery-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }

}

@media (max-width: 700px) {

    .class-info-grid {

        grid-template-columns:
            1fr;
    }

    .classes-gallery-grid {

        grid-template-columns:
            1fr;
    }

}

/* ریسپانسیو */

@media (max-width: 1200px) {

    .exclusive-movies-grid {

        grid-template-columns:
            repeat(3, 1fr);
    }

}

@media (max-width: 900px) {

    .exclusive-movies-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }

}

@media (max-width: 600px) {

    .exclusive-movies-grid {

        grid-template-columns:
            1fr;
    }

}


/* ریسپانسیو */

@media (max-width: 1200px) {

    .movie-top-section {
        grid-template-columns: 1fr;
    }

    .movie-poster-box {
        max-width: 400px;
        margin: auto;
    }

}

@media (max-width: 700px) {

    .movie-page-title {
        font-size: 38px;
    }

    .dub-info-grid {
        grid-template-columns: 1fr;
    }

}


/* ریسپانسیو: تغییر چیدمان در تبلت و موبایل */
@media (max-width: 1200px) {
    .poster-wrapper { height: 450px; } /* کوچک‌تر شدن ارتفاع در صفحات تبلت */
    .posters-grid { grid-template-columns: repeat(2, 1fr); } /* نمایش ۲ تایی */
}

@media (max-width: 600px) {
    .poster-wrapper { height: 400px; }
    .posters-grid { grid-template-columns: 1fr; } /* تک ستونه در موبایل */
}


@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
@font-face {
    font-family: 'Lalezar';
    src: url('../fonts/Lalezar.ttf') format('truetype');
    font-style: normal;
    font-weight: lighter;
}

@font-face {
    font-family: 'Jappokki';
    src: url('../fonts/Jaapokki.otf') format('truetype');
    font-style: normal;
    font-weight: 100;
}

@font-face {
    font-family: 'Roya';
    src: url('../fonts/Roya.ttf') format('truetype');
    font-style: normal;
}

@media (max-width: 700px) {

    .voice-actors-grid {

        grid-template-columns: 1fr;

    }

    .movie-video-box video {

        width: 100%;

    }

    .download-box a {

        padding: 18px;

    }

}

/* ================= اصلاح نهایی صفحه کلاس‌ها ================= */

.classes-page-section {
    width: 96%;
    max-width: 1600px;
    margin: 40px auto;
    direction: rtl;
}

/* بالای صفحه */
.classes-top-section {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 32px;
    align-items: stretch;
    margin-bottom: 60px;
}

.classes-poster-box {
    width: 360px;
    height: 500px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    justify-self: start;
}

.classes-poster-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* متن توضیحات */
.classes-description-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.classes-title {
    font-size: 36px;
    color: var(--orange);
    font-weight: lighter;
    margin: 0 0 18px;
}

.classes-description-box p {
    font-family: "Roya", sans-serif;
    font-size: 22px;
    line-height: 2.1;
    color: var(--text-color);
    margin: 0;
}

/* ویدئوها */
.classes-videos-section {
    margin-bottom: 60px;
}

.classes-videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.class-video-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: 0.3s;
}

.class-video-card:hover {
    transform: translateY(-5px);
}

.class-video-card video {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    background: #000;
}

.class-video-card h3 {
    font-size: 20px;
    font-weight: lighter;
    line-height: 1.7;
    padding: 15px 18px 18px;
    color: var(--text-color);
    margin: 0;
}

/* بخش ثبت نام */
.class-register-section {
    max-width: 760px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    padding: 32px;
    margin: 0 auto 70px;
}

.register-description {
    font-family: "Roya", sans-serif;
    font-size: 19px;
    line-height: 2.1;
    margin-bottom: 28px;
    color: var(--text-color);
}

/* فرم */
.class-register-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 20px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row label {
    font-size: 17px;
    color: var(--orange);
}

.form-row.full-width {
    grid-column: 1 / -1;
}

.class-form-input,
.class-register-form input,
.class-register-form select {
    width: 100%;
    min-height: 50px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 12px 15px;
    color: var(--text-color);
    font-size: 17px;
    font-family: "Lalezar", sans-serif;
    outline: none;
    transition: 0.25s;
}

.class-form-input:focus,
.class-register-form input:focus,
.class-register-form select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(213, 104, 2, 0.18);
    background: rgba(255, 255, 255, 0.09);
}

.class-register-form input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.light-mode .class-register-form input::placeholder {
    color: rgba(0, 0, 0, 0.45);
}

.class-register-form select option {
    color: #111;
}

/* آپلود فایل */
.class-register-form input[type="file"] {
    padding: 10px;
    cursor: pointer;
}

.class-register-form input[type="file"]::file-selector-button {
    background: var(--orange);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 8px 14px;
    font-family: "Lalezar", sans-serif;
    cursor: pointer;
    margin-left: 10px;
}

/* دکمه ثبت */
.class-submit-btn {
    grid-column: 1 / -1;
    background: var(--orange);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 15px;
    font-size: 21px;
    font-family: "Lalezar", sans-serif;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 8px;
}

.class-submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

@media (max-width: 950px) {

    .classes-top-section {
        grid-template-columns: 1fr;
    }

    .classes-poster-box {
        width: 340px;
        height: 470px;
        justify-self: center;
    }

    .classes-videos-grid {
        grid-template-columns: 1fr;
    }

    .class-video-card video {
        height: 300px;
    }

}
@media (max-width: 650px) {

    .classes-page-section {
        width: 94%;
        margin: 30px auto;
    }

    .classes-poster-box {
        width: 300;
        height: 420px;
    }

    .classes-description-box {
        padding: 22px;
    }

    .classes-title {
        font-size: 30px;
    }

    .classes-description-box p,
    .register-description {
        font-size: 17px;
    }

    .class-register-section {
        padding: 22px;
    }

    .class-register-form {
        grid-template-columns: 1fr;
    }

    .class-video-card video {
        height: 230px;
    }

}

/* ================= پهن‌تر کردن صفحه کلاس‌ها ================= */

.classes-page-section {
    width: 96%;
    max-width: 1600px;
}

/* بخش پوستر و توضیحات */
.classes-top-section {
    grid-template-columns: 420px 1fr;
    gap: 40px;
}

/* پوستر */
.classes-poster-box {
    width: 420px;
    height: 580px;
}

/* ویدئوها */
.classes-videos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.class-video-card video {
    height: 320px;
}

/* بخش ثبت نام همچنان خیلی کشیده نشود */
.class-register-section {
    max-width: 900px;
}

@media (max-width: 1100px) {

    .classes-top-section {
        grid-template-columns: 1fr;
    }

    .classes-poster-box {
        width: 360px;
        height: 500px;
        justify-self: center;
    }

    .class-video-card video {
        height: 260px;
    }

}

@media (max-width: 650px) {

    .classes-page-section {
        width: 94%;
    }

    .classes-poster-box {
        width: 300px;
        height: 420px;
    }

    .class-video-card video {
        height: 220px;
    }

}

/* ================= اصلاح نهایی ویدئوهای کلاس در موبایل ================= */

@media (max-width: 768px) {

    .classes-videos-grid {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 22px;
    }

    .class-video-card {
        width: 100%;
    }

    .class-video-card video {
        width: 100%;
        height: 230px;
        object-fit: cover;
        display: block;
    }

    .class-video-card h3 {
        font-size: 20px;
        text-align: center;
        padding: 16px;
    }

}

/* خطای فرم کلاس */

.form-error-box {
    display: none;
    grid-column: 1 / -1;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 18px;
    line-height: 1.8;
}

/* مودال موفقیت */

.success-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.success-modal-content {
    width: 100%;
    max-width: 430px;
    background: var(--bg);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}

.success-modal-content h2 {
    color: var(--orange);
    font-size: 30px;
    font-weight: lighter;
    margin-bottom: 18px;
}

.success-modal-content p {
    font-family: "Roya", sans-serif;
    font-size: 18px;
    line-height: 2;
    margin-bottom: 24px;
    color: var(--text-color);
}

.success-modal-content button {
    background: var(--orange);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 28px;
    font-size: 18px;
    font-family: "Lalezar", sans-serif;
    cursor: pointer;
}

/* حالت دکمه در زمان ثبت */

.class-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 800px) {

    .dubbing-class .info {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .dubbing-class .info img {
        width: 100%;
        max-width: 320px;
        height: 460px;
        margin: 0 auto;
    }

    .dubbing-class .info p {
        font-size: 18px;
        line-height: 2.1;
        display: block;
    }

}