﻿
/* =========================================================
           Garmiran Cinematic Video
           Reference proportions:
           Card: 1060 × 568
           Info: 298px
           Video side: 762px
           ========================================================= */
.gi-cinema-section {
    width: 100%;
    max-width: 1060px;
    margin: 38px auto 20px;
    direction: ltr;
}

    /* هماهنگ‌کردن فونت کارت ویدیو با قالب سایت */
    .gi-cinema-section,
    .gi-cinema-section button,
    .gi-cinema-section input,
    .gi-cinema-section textarea,
    .gi-cinema-section select {
        font-family: inherit;
    }

        .gi-cinema-section,
        .gi-cinema-section * {
            font-family: inherit !important;
        }

.gi-cinema-toolbar-code {
    font-family: Arial, sans-serif !important;
}
.gi-cinema-card {
    width: 100%;
    height: auto;
    aspect-ratio: 1060 / 568;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28.1132%;
    grid-template-areas: "media info";
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 23px;
    background: #05080d;
    box-shadow: 0 26px 60px rgba(3, 8, 15, 0.22), 0 5px 14px rgba(3, 8, 15, 0.12);
}

/* =========================================================
           پنل اطلاعات سمت راست
           ========================================================= */

.gi-cinema-info {
    grid-area: info;
    min-width: 0;
    height: 100%;
    padding: 47px 31px 26px;
    position: relative;
    overflow: hidden;
    direction: rtl;
    text-align: right;
    color: #ffffff;
    border-right: 0;
    border-left: 3px solid #0877ce;
    background: radial-gradient( circle at 82% 2%, rgba(26, 131, 210, 0.18), transparent 37% ), linear-gradient( 210deg, #1b2634 0%, #111922 47%, #0a1119 100% );
}

    .gi-cinema-info::before {
        content: "";
        position: absolute;
        inset: 0;
        opacity: 0.17;
        pointer-events: none;
        background-image: linear-gradient( rgba(255, 255, 255, 0.06) 1px, transparent 1px ), linear-gradient( 90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px );
        background-size: 25px 25px;
    }

.gi-cinema-info-content {
    height: 100%;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    direction: rtl;
    text-align: right;
}

.gi-cinema-badge {
    align-self: flex-start;
    min-height: 31px;
    padding: 5px 12px;
    margin-bottom: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(27, 139, 222, 0.42);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(16, 119, 199, 0.15);
    font-size: 0.74rem;
    font-weight: 800;
}

.gi-cinema-title {
    width: 100%;
    margin: 0;
    direction: rtl;
    text-align: right;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    color: #ffffff;
    font-size: clamp(1.18rem, 1.63vw, 1.58rem);
    font-weight: 900;
    line-height: 1.85;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.20);
}

.gi-cinema-title-line {
    width: 49px;
    height: 3px;
    margin: 19px 0 17px;
    align-self: flex-start;
    border-radius: 999px;
    background: linear-gradient( 90deg, #1689e3, #096cba );
    box-shadow: 0 0 13px rgba(22, 137, 227, 0.35);
}

.gi-cinema-description {
    width: 100%;
    direction: rtl;
    text-align: right;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    color: rgba(255, 255, 255, 0.67);
    font-size: 0.81rem;
    line-height: 2.05;
}

.gi-cinema-meta {
    margin-top: 24px;
    display: grid;
    gap: 12px;
}

.gi-cinema-meta-item {
    min-width: 0;
    direction: rtl;
    text-align: right;
    min-height: 54px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.026);
}

.gi-cinema-meta-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #1689df;
    background: rgba(22, 137, 223, 0.11);
}

    .gi-cinema-meta-icon svg {
        width: 18px;
        height: 18px;
        fill: currentColor;
    }

.gi-cinema-meta-text {
    min-width: 0;
    direction: rtl;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gi-cinema-meta-label {
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.65rem;
}

.gi-cinema-meta-value {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.78rem;
    font-weight: 800;
}

.gi-cinema-brand {
    margin-top: auto;
    direction: rtl;
    text-align: right;
    padding-top: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gi-cinema-brand-symbol {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: #ffffff;
    background: linear-gradient( 145deg, #2899ee, #0871c9 );
    box-shadow: 0 9px 24px rgba(12, 112, 191, 0.25);
    font-weight: 900;
    direction: ltr;
}

.gi-cinema-brand-text {
    min-width: 0;
    direction: rtl;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

    .gi-cinema-brand-text strong {
        color: #ffffff;
        font-size: 0.91rem;
    }

    .gi-cinema-brand-text span {
        color: rgba(255, 255, 255, 0.40);
        font-size: 0.67rem;
    }

.gi-cinema-side-word {
    position: absolute;
    right: 10px;
    left: auto;
    bottom: 18px;
    z-index: 1;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: rgba(255, 255, 255, 0.032);
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.08em;
    pointer-events: none;
    user-select: none;
}

/* =========================================================
           بخش ویدیو سمت چپ
           ========================================================= */

.gi-cinema-media {
    grid-area: media;
    min-width: 0;
    height: 100%;
    display: grid;
    grid-template-rows: 50px auto minmax(0, 1fr);
    direction: rtl;
    background: #02050a;
}

.gi-cinema-toolbar {
    height: 50px;
    padding: 0 19px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    direction: ltr;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient( 90deg, #101720 0%, #121922 60%, #151c24 100% );
}

.gi-cinema-toolbar-code {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    white-space: nowrap;
}

.gi-cinema-toolbar-title {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    direction: rtl;
    color: rgba(255, 255, 255, 0.89);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.gi-cinema-status-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: #1687df;
    box-shadow: 0 0 0 5px rgba(22, 135, 223, 0.14), 0 0 16px rgba(22, 135, 223, 0.74);
}

.gi-cinema-stage {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    background: #000000;
}

.gi-cinema-player {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    object-fit: contain;
    background: #000000;
}

.gi-cinema-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient( to top, rgba(0, 0, 0, 0.69) 0%, rgba(0, 0, 0, 0.16) 28%, rgba(0, 0, 0, 0.02) 56%, rgba(0, 0, 0, 0.12) 100% );
}

/* چهار گوشه قاب */

.gi-cinema-corner {
    width: 28px;
    height: 28px;
    position: absolute;
    z-index: 4;
    opacity: 0.93;
    pointer-events: none;
}

.gi-cinema-corner-tr {
    top: 17px;
    right: 17px;
    border-top: 1px solid #1686df;
    border-right: 1px solid #1686df;
}

.gi-cinema-corner-tl {
    top: 17px;
    left: 17px;
    border-top: 1px solid rgba(255, 255, 255, 0.80);
    border-left: 1px solid rgba(255, 255, 255, 0.80);
}

.gi-cinema-corner-br {
    right: 17px;
    bottom: 17px;
    border-right: 1px solid #1686df;
    border-bottom: 1px solid #1686df;
}

.gi-cinema-corner-bl {
    left: 17px;
    bottom: 17px;
    border-left: 1px solid rgba(255, 255, 255, 0.80);
    border-bottom: 1px solid rgba(255, 255, 255, 0.80);
}

/* دکمه پخش مرکزی */

.gi-cinema-play {
    width: 126px;
    min-height: 126px;
    padding: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: opacity 0.24s ease, visibility 0.24s ease, transform 0.24s ease;
}

    .gi-cinema-play:hover {
        transform: translate(-50%, -50%) scale(1.045);
    }

.gi-cinema-play-visual {
    width: 82px;
    height: 82px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gi-cinema-play-ring {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(22, 135, 223, 0.34);
    border-radius: 50%;
    background: rgba(22, 135, 223, 0.08);
}

.gi-cinema-play-ring-inner {
    inset: 9px;
    border-color: rgba(22, 135, 223, 0.48);
    background: rgba(22, 135, 223, 0.10);
}

.gi-cinema-play-button {
    width: 58px;
    height: 58px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.50);
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient( 145deg, rgba(35, 155, 241, 0.98), rgba(13, 105, 190, 0.98) );
    box-shadow: 0 0 0 8px rgba(22, 135, 223, 0.15), 0 12px 34px rgba(0, 0, 0, 0.46);
}

    .gi-cinema-play-button svg {
        width: 25px;
        height: 25px;
        margin-right: -3px;
        fill: currentColor;
    }

.gi-cinema-play-caption {
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.94);
    background: rgba(3, 7, 13, 0.73);
    font-size: 0.74rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.gi-cinema-card.is-playing .gi-cinema-play {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.86);
}

.gi-cinema-bottom-label {
    max-width: calc(100% - 82px);
    min-height: 38px;
    padding: 7px 13px;
    position: absolute;
    right: 22px;
    bottom: 18px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.94);
    background: rgba(5, 9, 15, 0.73);
    font-size: 0.74rem;
    font-weight: 800;
    pointer-events: none;
    backdrop-filter: blur(8px);
}

.gi-cinema-bottom-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: #1686df;
}

    .gi-cinema-bottom-icon svg {
        width: 11px;
        height: 11px;
        fill: currentColor;
    }

/*
         * بخش مشکی پایین تصویر مرجع.
         * ارتفاع به صورت خودکار از نسبت 1060×568 محاسبه می‌شود.
         */
.gi-cinema-media-footer {
    min-height: 0;
    background: #05080d;
}


/* =========================================================
   RTL desktop alignment helpers
   ========================================================= */

.gi-cinema-info,
.gi-cinema-info-content,
.gi-cinema-title,
.gi-cinema-description,
.gi-cinema-meta-item,
.gi-cinema-meta-text,
.gi-cinema-brand,
.gi-cinema-brand-text {
    direction: rtl;
    text-align: right;
}

.gi-cinema-badge,
.gi-cinema-title-line {
    align-self: flex-start;
}

/* =========================================================
           Responsive
           ========================================================= */

@media (max-width: 991.98px) {
    .gi-cinema-section {
        max-width: 760px;
    }

    .gi-cinema-card {
        aspect-ratio: auto;
        grid-template-columns: 1fr;
        grid-template-areas: "media" "info";
    }

    .gi-cinema-media {
        height: auto;
        grid-template-rows: 48px auto;
    }

    .gi-cinema-media-footer {
        display: none;
    }

    .gi-cinema-info {
        min-height: 390px;
        padding: 30px 25px 27px;
        border-top: 3px solid #0877ce;
        border-right: 0;
        border-left: 0;
    }

    .gi-cinema-brand {
        margin-top: 28px;
    }
}

@media (max-width: 575.98px) {
    .gi-cinema-section {
        margin-top: 28px;
    }

    .gi-cinema-card {
        border-radius: 15px;
    }

    .gi-cinema-toolbar {
        height: 45px;
        padding: 0 12px;
    }

    .gi-cinema-toolbar-code {
        font-size: 0.57rem;
        letter-spacing: 0.08em;
    }

    .gi-cinema-toolbar-title {
        font-size: 0.67rem;
    }

    .gi-cinema-corner {
        width: 21px;
        height: 21px;
    }

    .gi-cinema-corner-tr,
    .gi-cinema-corner-tl {
        top: 10px;
    }

    .gi-cinema-corner-br,
    .gi-cinema-corner-bl {
        bottom: 10px;
    }

    .gi-cinema-corner-tr,
    .gi-cinema-corner-br {
        right: 10px;
    }

    .gi-cinema-corner-tl,
    .gi-cinema-corner-bl {
        left: 10px;
    }

    .gi-cinema-play-visual {
        width: 68px;
        height: 68px;
    }

    .gi-cinema-play-button {
        width: 49px;
        height: 49px;
    }

    .gi-cinema-play {
        width: 108px;
        min-height: 108px;
    }

    .gi-cinema-bottom-label {
        right: 12px;
        bottom: 11px;
        min-height: 32px;
        padding: 5px 9px;
        font-size: 0.63rem;
    }

    .gi-cinema-info {
        min-height: 370px;
        padding: 25px 19px 23px;
    }

    .gi-cinema-title {
        font-size: 1.16rem;
    }

    .gi-cinema-description {
        font-size: 0.79rem;
    }

    .gi-cinema-side-word {
        font-size: 2.8rem;
    }
}
/* =========================================================
   کنترل‌های گالری تصاویر
   ========================================================= */

.gi-gallery-footer {
    margin-left: 0;
    margin-right: 0;
}

.gi-gallery-nav-button {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(8, 117, 199, 0.22);
    border-radius: 50%;
    color: #0875c7;
    background: linear-gradient( 145deg, rgba(255, 255, 255, 1), rgba(235, 245, 252, 0.96) );
    box-shadow: 0 8px 20px rgba(8, 92, 153, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

    .gi-gallery-nav-button::before {
        content: "";
        position: absolute;
        inset: 4px;
        border: 1px solid rgba(8, 117, 199, 0.09);
        border-radius: 50%;
        pointer-events: none;
    }

    .gi-gallery-nav-button svg {
        width: 21px;
        height: 21px;
        position: relative;
        z-index: 1;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.2;
        stroke-linecap: round;
        stroke-linejoin: round;
        transition: transform 0.22s ease;
    }

    .gi-gallery-nav-button:hover {
        color: #ffffff;
        border-color: #0875c7;
        background: linear-gradient( 145deg, #2799ed, #0871c8 );
        box-shadow: 0 11px 27px rgba(8, 113, 199, 0.27), 0 0 0 5px rgba(8, 113, 199, 0.07);
        transform: translateY(-2px);
    }

        .gi-gallery-nav-button:hover svg {
            transform: scale(1.12);
        }

    .gi-gallery-nav-button:active {
        transform: translateY(0) scale(0.94);
    }

    .gi-gallery-nav-button:focus-visible {
        outline: 3px solid rgba(8, 118, 201, 0.20);
        outline-offset: 3px;
    }

/* تبلت */

@media (max-width: 767.98px) {

    .gi-gallery-nav-button {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

        .gi-gallery-nav-button svg {
            width: 19px;
            height: 19px;
        }
}

/* موبایل */

@media (max-width: 575.98px) {

    .gi-gallery-footer > .col-1 {
        padding-left: 2px;
        padding-right: 2px;
    }

    .gi-gallery-footer > .col-10 {
        padding-left: 5px;
        padding-right: 5px;
    }

    .gi-gallery-nav-button {
        width: 31px;
        height: 31px;
        flex-basis: 31px;
        box-shadow: 0 5px 13px rgba(8, 92, 153, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    }

        .gi-gallery-nav-button::before {
            inset: 3px;
        }

        .gi-gallery-nav-button svg {
            width: 16px;
            height: 16px;
            stroke-width: 2.3;
        }
}
