/* Aparat Carousel 1.0.3 */

.apcc {
    width: 100%;
    direction: rtl;
    box-sizing: border-box;
    --apcc-color: #C12F63;
    --apcc-radius: 20px;
}

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

.apcc-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.apcc-track {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    transition: transform .45s ease;
    will-change: transform;
}

.apcc-slide {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
    padding: 8px !important;
    direction: rtl;
}

.apcc-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}

.apcc-video {
    position: relative;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: #111;
    overflow: hidden;
    cursor: pointer;
    border-radius: var(--apcc-radius) !important;
    appearance: none;
    -webkit-appearance: none;
}

.apcc-poster {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: var(--apcc-radius) !important;
    filter: brightness(.9);
    transition: transform .3s ease, filter .3s ease;
}

.apcc-poster-error {
    display: none !important;
}

.apcc-video:hover .apcc-poster {
    transform: scale(1.025);
    filter: brightness(.72);
}

.apcc-play {
    position: absolute;
    z-index: 10;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0,0,0,.72);
    transition: background-color .25s ease, transform .25s ease;
}

.apcc-video:hover .apcc-play {
    background: #C12F63;
    transform: translate(-50%, -50%) scale(1.05);
}

.apcc-play svg {
    width: 23px;
    height: 23px;
    fill: #fff;
    margin-right: 3px;
}

.apcc-duration,
.apcc-views {
    position: absolute;
    z-index: 20;
    color: #fff;
    background: rgba(0,0,0,.65);
    border-radius: 5px;
    font-size: 11px;
    line-height: 1;
    padding: 5px 7px;
}

.apcc-duration {
    left: 8px;
    bottom: 8px;
}

.apcc-views {
    right: 8px;
    top: 8px;
}

.apcc-card h3 {
    display: block;
    width: 100%;
    margin: 10px 4px 4px !important;
    padding: 0 !important;
    font-size: 15px;
    line-height: 1.7;
    font-weight: 500;
    color: #C12F63;
    direction: rtl;
    text-align: right;
}

.apcc-dots {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 5px 5px;
    direction: ltr;
}

.apcc-dot {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: block !important;
    flex: 0 0 8px !important;
    width: 8px !important;
    height: 8px !important;
    min-width: 8px !important;
    max-width: 8px !important;
    min-height: 8px !important;
    max-height: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #EB88A6 !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer;
    transition: background-color .25s ease, transform .25s ease;
}

.apcc-dot.is-active {
    background: #C12F63 !important;
    transform: scale(1.25);
}

.apcc-message {
    width: 100%;
    padding: 20px;
    text-align: center;
}

.apcc-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.apcc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.84);
}

.apcc-modal-box {
    position: relative;
    z-index: 2;
    width: min(1100px, 96vw);
}

.apcc-modal-box iframe {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 20px;
    background: #000;
}

.apcc-modal-close {
    position: absolute;
    z-index: 4;
    top: -44px;
    left: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #111;
    font-size: 27px;
    line-height: 36px;
    cursor: pointer;
    padding: 0;
}

@media (max-width: 600px) {
    .apcc-slide {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        padding: 5px !important;
    }

    .apcc-card h3 {
        font-size: 13px;
        margin-top: 8px !important;
    }

    .apcc-play {
        width: 46px;
        height: 46px;
    }

    .apcc-play svg {
        width: 20px;
        height: 20px;
    }

    .apcc-duration,
    .apcc-views {
        font-size: 10px;
        padding: 4px 5px;
    }

    .apcc-modal {
        padding: 10px;
    }

    .apcc-modal-box {
        width: 100%;
    }

    .apcc-modal-box iframe {
        border-radius: 16px;
    }
}
