/* =========================================
   TORAB — درانتظار
   Clean stylesheet
   ========================================= */

/* ---------- متغیرها و تنظیمات پایه ---------- */

:root {
    --kh-gold: #c6a044;
    --kh-gold-light: #ddbd68;
    --kh-bg: #080807;
    --kh-panel: #10100e;
    --kh-text: #f1eee7;
    --kh-muted: #aaa69d;
    --kh-line: rgba(198, 160, 68, 0.20);
    --kh-border: rgba(255, 255, 255, 0.07);
    --kh-transition: 0.25s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--kh-bg);
    scroll-padding-top: 20px;
}

body {
    margin: 0;
    background: var(--kh-bg);
    color: var(--kh-text);
    font-family: "Vazirmatn", Tahoma, sans-serif;
    font-size: 14px;
    line-height: 2;
    overflow-x: hidden;
}

body.mah-lightbox-open {
    overflow: hidden;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    color: inherit;
}

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

a,
button {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--kh-gold-light);
    outline-offset: 4px;
}

/* ---------- هدر ---------- */

.mah-header {
    position: relative;
    z-index: 5;
    direction: rtl;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 5%;
    background: #0d0d0b;
    border-bottom: 1px solid rgba(198, 160, 68, 0.22);
}

/* نام گروه و زیرعنوان */

.mah-brand,
.mah-logo {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    color: var(--kh-gold-light);
    text-decoration: none;
    line-height: 1.7;
}

.mah-brand-name {
    color: var(--kh-gold-light);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.5;
}

.mah-brand-subtitle {
    color: var(--kh-muted);
    font-size: 11px;
    font-weight: 400;
}

.mah-logo {
    font-size: 22px;
    font-weight: 600;
}

.mah-logo span {
    color: var(--kh-muted);
    font-size: 10px;
    font-weight: 300;
}

/* لینک‌های منو */

.mah-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 26px;
    min-width: 0;
}

.mah-nav a {
    color: #ddd8ce;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--kh-transition);
}

.mah-nav a:hover {
    color: var(--kh-gold-light);
}

/* دکمه گرد بازگشت */

.mah-back {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--kh-gold);
    border-radius: 50%;
    color: var(--kh-gold-light);
    background: transparent;
    font-size: 25px;
    line-height: 1;
    text-decoration: none;
    transition:
        background var(--kh-transition),
        color var(--kh-transition),
        transform var(--kh-transition);
}

.mah-back:hover {
    color: var(--kh-bg);
    background: var(--kh-gold);
    transform: translateX(3px);
}

/* ---------- عرض کلی صفحه ---------- */

.mah-page {
    width: min(1100px, 88%);
    margin-inline: auto;
}

.mah-section {
    padding: 65px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

/* ---------- معرفی اصلی نمایش ---------- */

.mah-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(35px, 6vw, 80px);
    padding: 65px 0 75px;
}

.mah-poster-wrap {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 340px;
    margin-inline: auto;
}

.mah-poster-glow {
    position: absolute;
    z-index: -1;
    inset: 12% 7%;
    background: radial-gradient(
        ellipse,
        rgba(198, 160, 68, 0.25),
        rgba(130, 84, 44, 0.10) 48%,
        transparent 75%
    );
    filter: blur(35px);
    pointer-events: none;
}

.mah-poster {
    display: block;
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.mah-intro {
    min-width: 0;
}

.mah-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--kh-gold);
    font-size: 11px;
    letter-spacing: 0.2px;
}

.mah-intro h1 {
    position: relative;
    margin: 0;
    padding-right: 15px;
    color: var(--kh-text);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 600;
    line-height: 1.9;
}

.mah-intro h1::before {
    position: absolute;
    top: 50%;
    right: 0;
    width: 2px;
    height: 42px;
    background: var(--kh-gold);
    content: "";
    transform: translateY(-50%);
}

.mah-title-line {
    width: 62px;
    height: 1px;
    margin: 17px 0 23px;
    background: var(--kh-gold);
}

.mah-description {
    margin: 0 0 15px;
    color: #ddd8ce;
    font-size: 14px;
    line-height: 2.5;
}

.mah-note {
    margin: 0;
    color: var(--kh-muted);
    font-size: 12px;
    line-height: 2.2;
}

/* خلاصه نمایش در معرفی */

.mah-intro-summary {
    margin-top: 18px;
    padding: 15px 18px;
    background: linear-gradient(
        110deg,
        rgba(198, 160, 68, 0.055),
        rgba(255, 255, 255, 0.012)
    );
    border-right: 2px solid var(--kh-gold);
    border-radius: 5px;
}

.mah-intro-summary h2 {
    margin: 0 0 5px;
    color: var(--kh-gold-light);
    font-size: 15px;
    font-weight: 600;
}

.mah-intro-summary p {
    margin: 0;
    color: #d8d3ca;
    font-size: 13px;
    line-height: 2.2;
}

/* ---------- اطلاعات اجرا ---------- */

.mah-facts {
    margin: 28px 0;
    border-top: 1px solid var(--kh-line);
}

.mah-fact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 3px;
    border-bottom: 1px solid var(--kh-border);
}

.mah-fact span {
    color: var(--kh-gold-light);
    font-size: 12px;
}

.mah-fact strong {
    color: var(--kh-text);
    font-size: 12px;
    font-weight: 400;
    text-align: left;
}

.mah-fact1 strong {
    color: var(--kh-text);
    font-size: 12px;
    font-weight: 400;
    text-align: right;
}

/* ---------- دکمه‌ها ---------- */

.mah-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mah-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 25px;
    border: 1px solid var(--kh-gold);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.mah-btn:hover {
    transform: translateY(-2px);
}

.mah-btn-primary {
    color: #11100c;
    background: var(--kh-gold);
}

.mah-btn-primary:hover {
    color: var(--kh-gold-light);
    background: transparent;
}

.mah-btn-outline {
    color: var(--kh-gold-light);
    background: transparent;
}

.mah-btn-outline:hover {
    color: #11100c;
    background: var(--kh-gold);
}

/* ---------- عنوان بخش‌ها ---------- */

.mah-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.mah-section-mark {
    flex: 0 0 2px;
    width: 2px;
    height: 27px;
    background: var(--kh-gold);
}

.mah-section-heading h2 {
    margin: 0;
    color: var(--kh-gold-light);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.9;
}

.mah-section-subtitle {
    margin: -7px 0 25px;
    color: var(--kh-muted);
    font-size: 12px;
}

/* ---------- خلاصه داستان ---------- */

.mah-story {
    padding: 24px 27px;
    background: linear-gradient(
        110deg,
        rgba(198, 160, 68, 0.045),
        rgba(255, 255, 255, 0.012)
    );
    border-right: 1px solid var(--kh-gold);
    border-radius: 4px;
}

.mah-story p {
    margin: 0;
    color: #d8d3ca;
    font-size: 14px;
    line-height: 2.5;
}

/* ---------- گالری افقی ---------- */

.mah-gallery {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-radius: 10px;
}

.mah-gallery::-webkit-scrollbar {
    display: none;
}

.mah-gallery-track {
    display: flex;
    flex-direction: row;
    gap: 16px;
    width: max-content;
    padding: 3px 2px 15px;
}

.mah-gallery-item {
    flex: 0 0 280px;
    width: 280px;
    height: 205px;
    margin: 0;
    overflow: hidden;
    scroll-snap-align: start;
    background: #11110f;
    border: 1px solid rgba(198, 160, 68, 0.15);
    border-radius: 9px;
}

.mah-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.4s ease;
}

.mah-gallery-item:hover img {
    transform: scale(1.04);
}

/* کنترل‌های قبلی و بعدی گالری */

.mah-gallery-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 17px;
    margin-top: 12px;
    color: var(--kh-muted);
    font-size: 11px;
}

.mah-gallery-controls button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    color: var(--kh-gold-light);
    background: transparent;
    border: 1px solid var(--kh-line);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
}

.mah-gallery-controls button:hover {
    background: rgba(198, 160, 68, 0.12);
}

/* نقطه‌های انتخاب تصویر؛ هر دو نام کلاس فعال پشتیبانی می‌شوند */

.mah-gallery-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 25px;
    direction: ltr;
}

.mah-gallery-dots button,
.mah-gallery-dot {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(221, 189, 104, 0.35);
    cursor: pointer;
    transition:
        width 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}

.mah-gallery-dots button.active,
.mah-gallery-dot.active,
.mah-gallery-dot.is-active {
    width: 20px;
    border-radius: 999px;
    background: var(--kh-gold-light);
    transform: scale(1.05);
}

/* ---------- نمایش بزرگ تصاویر ---------- */

.mah-lightbox {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 60px 5vw;
    background: rgba(0, 0, 0, 0.92);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.28s ease,
        visibility 0.28s ease;
}

.mah-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mah-lightbox > img {
    width: auto;
    height: auto;
    max-width: min(78vw, 1000px);
    max-height: 82vh;
    object-fit: contain;
    border: 1px solid rgba(198, 160, 68, 0.35);
    border-radius: 8px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.6);
    transform: scale(0.94);
    transition: transform 0.28s ease;
}

.mah-lightbox.is-open > img {
    transform: scale(1);
}

.mah-lightbox-close,
.mah-lightbox-arrow {
    display: grid;
    place-items: center;
    color: var(--kh-gold-light);
    background: rgba(15, 15, 13, 0.85);
    border: 1px solid var(--kh-line);
    cursor: pointer;
}

.mah-lightbox-close {
    position: absolute;
    top: 18px;
    left: 22px;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
}

.mah-lightbox-arrow {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    font-size: 30px;
}

/* ---------- کارت بازیگران ---------- */

/* چیدمان کارت‌های بازیگران */
.mah-actors-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.mah-actor {
    min-width: 0;
    padding: 23px 15px 20px;
    text-align: center;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.025),
        rgba(255, 255, 255, 0.006)
    );
    border: 1px solid rgba(198, 160, 68, 0.13);
    border-radius: 13px;
    transition:
        border-color 0.25s ease,
        transform 0.25s ease;
}

.mah-actor:hover {
    border-color: rgba(198, 160, 68, 0.5);
    transform: translateY(-3px);
}

.mah-actor-image {
    width: 112px;
    height: 112px;
    margin: 0 auto 15px;
    padding: 4px;
    border: 1px solid var(--kh-gold);
    border-radius: 50%;
    background: #0a0a09;
}

.mah-actor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.mah-actor h3 {
    margin: 0 0 4px;
    color: var(--kh-text);
    font-size: 13px;
    font-weight: 500;
}

.mah-actor > span {
    color: var(--kh-gold);
    font-size: 11px;
}

/* ---------- اسامی بیشتر ---------- */

.mah-more-actors {
    margin-top: 22px;
    padding: 20px 23px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(198, 160, 68, 0.13);
    border-radius: 8px;
}

.mah-more-actors[hidden] {
    display: none !important;
}

.mah-more-actors h3 {
    margin: 0 0 10px;
    color: var(--kh-gold-light);
    font-size: 14px;
}

.mah-more-actors ul {
    margin: 0;
    padding-right: 20px;
}

.mah-more-actors li {
    padding: 5px 0;
    color: #ddd8ce;
    font-size: 13px;
}

.mah-show-more {
    display: block;
    margin: 27px auto 0;
    padding: 8px 17px;
    color: var(--kh-gold-light);
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--kh-line);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: color var(--kh-transition);
}

.mah-show-more:hover {
    color: var(--kh-text);
}

@media (max-width: 650px) {
    .mah-actors-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .mah-actor {
        padding: 14px 5px;
    }

    .mah-actor-image {
        width: 76px;
        height: 76px;
    }

    .mah-actor h3 {
        font-size: 11px;
    }
}

/* ---------- عوامل نمایش ---------- */

.mah-credits p {
    max-width: 700px;
    margin: 0;
    color: var(--kh-muted);
    font-size: 13px;
    line-height: 2.5;
}

/* ---------- بخش رزرو ---------- */

.mah-booking {
    padding: 65px 20px 75px;
    text-align: center;
}

.mah-booking .mah-title-line {
    margin: 0 auto 25px;
}

.mah-booking h2 {
    margin: 0 0 13px;
    color: var(--kh-gold-light);
    font-size: 21px;
    font-weight: 600;
    line-height: 2;
}

.mah-booking p {
    max-width: 540px;
    margin: 0 auto 25px;
    color: var(--kh-muted);
    font-size: 13px;
    line-height: 2.3;
}

.mah-booking .mah-btn {
    min-width: 210px;
}

/* ---------- پابرگ ---------- */

.mah-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 24px 7%;
    background: #060605;
    border-top: 1px solid rgba(198, 160, 68, 0.13);
}

.mah-footer p {
    margin: 0;
    color: #77736b;
    font-size: 11px;
}

.mah-footer a {
    color: var(--kh-gold);
    font-size: 11px;
    text-decoration: none;
}

/* ---------- تبلت ---------- */

@media (max-width: 850px) {
    .mah-page {
        width: 90%;
    }

    .mah-hero {
        gap: 30px;
    }

    .mah-poster-wrap {
        max-width: 300px;
    }

    .mah-actors-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mah-header {
        gap: 16px;
        padding-inline: 4%;
    }

    .mah-nav {
        gap: 18px;
    }
}

/* ---------- موبایل ---------- */

@media (max-width: 650px) {
    body {
        font-size: 13px;
    }

    /* هدر در یک ردیف باقی می‌ماند */
    .mah-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 13px 4%;
    }

    .mah-brand,
    .mah-logo {
        flex-shrink: 0;
    }

    .mah-brand-name {
        font-size: 20px;
    }

    .mah-brand-subtitle {
        font-size: 9px;
    }

    .mah-logo {
        font-size: 19px;
    }

    .mah-logo span {
        font-size: 9px;
    }

    .mah-nav {
        flex: 1 1 auto;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
        gap: clamp(8px, 2.4vw, 15px);
        min-width: 0;
    }

    .mah-nav a {
        font-size: clamp(9px, 2.5vw, 11px);
    }

    .mah-back {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
        font-size: 21px;
    }

    .mah-page {
        width: 88%;
    }

    .mah-hero {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
        padding: 30px 0 45px;
    }

    .mah-poster-wrap {
        width: 100%;
        max-width: 285px;
    }

    .mah-poster {
        max-height: 390px;
    }

    .mah-intro h1 {
        font-size: 24px;
    }

    .mah-description {
        font-size: 13px;
    }

    .mah-intro-summary {
        margin-top: 14px;
        padding: 14px;
    }

    .mah-facts {
        margin: 22px 0;
    }

    .mah-fact {
        padding: 12px 2px;
    }

    .mah-fact span,
    .mah-fact strong {
        font-size: 11px;
    }

    .mah-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .mah-btn {
        min-width: 0;
        padding: 10px 12px;
        font-size: 11px;
    }

    .mah-section {
        padding: 42px 0;
    }

    .mah-section-heading h2 {
        font-size: 20px;
    }

    .mah-story {
        padding: 18px;
    }

    .mah-story p {
        font-size: 13px;
    }

    .mah-gallery-item {
        flex-basis: 78vw;
        width: 78vw;
        height: 57vw;
        max-height: 260px;
    }

    .mah-gallery-controls {
        gap: 10px;
        font-size: 10px;
    }

    .mah-gallery-dots {
        gap: 7px;
        margin: 14px 0 22px;
    }

    .mah-actors-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .mah-actor {
        padding: 18px 8px 16px;
    }

    .mah-actor-image {
        width: 92px;
        height: 92px;
    }

    .mah-actor h3 {
        font-size: 12px;
    }

    .mah-more-actors {
        padding: 17px;
    }

    .mah-booking {
        padding: 45px 5px 55px;
    }

    .mah-booking h2 {
        font-size: 19px;
    }

    .mah-lightbox {
        gap: 8px;
        padding: 65px 10px 25px;
    }

    .mah-lightbox > img {
        max-width: calc(100vw - 86px);
        max-height: 75vh;
    }

    .mah-lightbox-arrow {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
        font-size: 24px;
    }

    .mah-lightbox-close {
        top: 12px;
        left: 12px;
    }

    .mah-footer {
        flex-direction: column;
        text-align: center;
    }
}

/* ---------- موبایل‌های کوچک ---------- */

@media (max-width: 380px) {
    .mah-header {
        gap: 7px;
        padding-inline: 3%;
    }

    .mah-brand-name {
        font-size: 17px;
    }

    .mah-brand-subtitle {
        font-size: 8px;
    }

    .mah-nav {
        gap: 7px;
    }

    .mah-nav a {
        font-size: 9px;
    }

    .mah-back {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
        font-size: 19px;
    }

    .mah-actions {
        grid-template-columns: 1fr;
    }

    .mah-actor-image {
        width: 80px;
        height: 80px;
    }
}

/* ---------- کاهش حرکت ---------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* اصلاح نهایی چیدمان بازیگران */
.mah-actors-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px;
    width: 100%;
}

@media (max-width: 650px) {
    .mah-actors-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px;
    }

    .mah-actor {
        padding: 12px 4px;
    }

    .mah-actor-image {
        width: 75px;
        height: 75px;
    }

    .mah-actor h3 {
        font-size: 10px;
        overflow-wrap: anywhere;
    }
}

/* فاصله کمتر برای گالری */
.mah-section.mah-gallery-section {
    padding-top: 15px !important;
}

/* کاهش فاصله بالای بخش بازیگران */
.mah-section.mah-actors-section {
    padding-top: 10px !important;
    margin-top: -50px !important;
}


/* دکمه شیشه‌ای به‌زودی روی پوستر */
.mah-poster-wrap {
    position: relative;
}

.mah-coming-soon {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;

    padding: 5px 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;

    background: rgba(15, 15, 13, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    color: #ddbd68;
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.mah-actors-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
    padding: 0;
    margin: 20px 0 0;
    list-style: none;
}

.mah-actors-list li {
    text-align: center;
    line-height: 1.9;
    padding: 8px;
    border-bottom: 1px solid rgba(221, 189, 104, 0.2);
    font-size: 13px;
}

@media (max-width: 480px) {
    .mah-actors-list {
        gap: 8px 12px;
    }

    .mah-actors-list li {
        font-size: 12px;
        padding: 6px 2px;
    }
}
.mah-actors-list .mah-actors-inline {
    grid-column: 1 / -1;
    text-align: center;
}
