/* Main Showcase Container (RTL by default) */
.movies-grid-container-9b7e1621 {
    direction: rtl;
    text-align: right;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding: 20px 0;
}

.movies-grid-9b7e1621 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

/* Base Card Style */
.movie-item-card-9b7e1621 {
    background-color: #111;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.movie-item-card-9b7e1621:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.movie-card-thumb-9b7e1621 {
    position: relative;
    aspect-ratio: 2/3;
    background-size: cover;
    background-position: center;
    background-color: #222;
}

.movie-thumb-overlay-9b7e1621 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.movie-item-card-9b7e1621:hover .movie-thumb-overlay-9b7e1621 {
    opacity: 1;
}

.movie-view-btn-9b7e1621 {
    background: #e50914;
    color: #fff;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.movie-item-card-9b7e1621:hover .movie-view-btn-9b7e1621 {
    transform: scale(1);
}

.movie-card-info-9b7e1621 {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.movie-card-title-9b7e1621 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-card-director-9b7e1621 {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.movie-card-director-9b7e1621 strong {
    color: #e50914;
}

.movie-card-director-9b7e1621 span {
    color: #ccc;
}

.movie-card-specs-9b7e1621 {
    font-size: 0.85rem;
    color: #888;
}

/* ==========================================================================
   DIFFERENT LAYOUT STRUCTURES
   ========================================================================== */

/* 1. Horizontal Layout (Row List) */
.movie-grid-layout-layout-horizontal .movies-grid-9b7e1621 {
    grid-template-columns: 1fr;
}

.movie-grid-layout-layout-horizontal .movie-item-card-9b7e1621 {
    flex-direction: row;
    align-items: center;
    max-height: 220px;
}

.movie-grid-layout-layout-horizontal .movie-card-thumb-9b7e1621 {
    width: 150px;
    aspect-ratio: 2/3;
    flex-shrink: 0;
}

.movie-grid-layout-layout-horizontal .movie-card-info-9b7e1621 {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
    padding: 30px;
}

/* 2. Overlay Minimal Layout */
.movie-grid-layout-layout-overlay .movie-item-card-9b7e1621 {
    position: relative;
    aspect-ratio: 2/3;
}

.movie-grid-layout-layout-overlay .movie-card-thumb-9b7e1621 {
    height: 100%;
}

.movie-grid-layout-layout-overlay .movie-card-info-9b7e1621 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    z-index: 2;
    padding: 25px 20px;
}


/* Details Full Screen overlay Modal */
.movie-modal-overlay-9b7e1621 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.96);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

/* Offset top under WP Admin bar */
body.admin-bar .movie-modal-overlay-9b7e1621 {
    top: var(--wp-admin--admin-bar--height, 32px);
}

@media screen and (max-width: 782px) {
    body.admin-bar .movie-modal-overlay-9b7e1621 {
        top: 46px;
    }
}

.movie-modal-inner-9b7e1621 {
    background: #181818;
    color: #f1f1f1;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 16px;
    overflow-y: auto;
    position: relative;
    padding: 40px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    direction: rtl;
    text-align: right;
}

.movie-modal-overlay-9b7e1621.is-active {
    opacity: 1;
}

.movie-modal-overlay-9b7e1621.is-active .movie-modal-inner-9b7e1621 {
    transform: scale(1);
}

.movie-modal-close-9b7e1621 {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.movie-modal-close-9b7e1621:hover {
    background: #e50914;
    transform: rotate(90deg);
}

/* Modal Content details */
.movie-modal-title-9b7e1621 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    border-right: 5px solid #e50914;
    padding-right: 15px;
    line-height: 1.2;
}

.movie-modal-director-9b7e1621 {
    font-size: 1.05rem;
    margin-bottom: 25px;
}

.movie-modal-director-9b7e1621 strong {
    color: #e50914;
}

.movie-modal-specs-row-9b7e1621 {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: rgba(255, 255, 255, 0.04);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.movie-modal-screening-box-9b7e1621 {
    background: rgba(229, 9, 20, 0.08);
    border: 1px solid rgba(229, 9, 20, 0.15);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.movie-modal-screening-box-9b7e1621 h4 {
    margin: 0 0 12px 0;
    font-size: 1.15rem;
    color: #fff;
}

.movie-modal-scr-grid-9b7e1621 {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.movie-modal-synopsis-9b7e1621 {
    margin-bottom: 30px;
}

.movie-modal-synopsis-9b7e1621 h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #fff;
}

.movie-modal-synopsis-9b7e1621 p {
    color: #ccc;
    font-size: 1.05rem;
    line-height: 1.85;
}

.movie-modal-video-9b7e1621 {
    margin-bottom: 35px;
}

.movie-modal-video-9b7e1621 h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #fff;
}

.video-container-9b7e1621 {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.video-container-9b7e1621 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.movie-modal-gallery-9b7e1621 h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #fff;
}

.modal-gallery-grid-9b7e1621 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.modal-gallery-grid-9b7e1621 img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.modal-gallery-grid-9b7e1621 img:hover {
    transform: scale(1.04);
}

@media(max-width:768px) {
    .movie-grid-layout-layout-horizontal .movie-item-card-9b7e1621 {
        flex-direction: column !important;
        max-height: none !important;
    }
    .movie-grid-layout-layout-horizontal .movie-card-thumb-9b7e1621 {
        width: 100% !important;
    }
    .movie-modal-inner-9b7e1621 {
        padding: 25px;
    }
    .modal-gallery-grid-9b7e1621 {
        grid-template-columns: repeat(2, 1fr);
    }
}
