.acd-youtube-carousel {
    position: relative;
    width: 100%;
    --acd-head-space: 12px;
}

.acd-youtube-slider {
    overflow: hidden;
    width: 100%;
}

.acd-slider-track {
    display: flex;
    gap: var(--acd-space-between, 16px);
    transition: transform 0.45s ease;
    will-change: transform;
}

.acd-slider-item {
    flex: 0 0 var(--acd-slide-width, 100%);
    min-width: 0;
    height: auto;
}

.acd-video-card {
    position: relative;
    height: 500px;
    border-radius: 14px;
    overflow: hidden;
    background: #0f1115;
    isolation: isolate;
}

.acd-video-card__media {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100% !important;
    height: 100% !important;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.acd-video-card__thumb,
.acd-video-card__player,
.acd-video-card__player iframe,
.acd-video-card__overlay {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}

.acd-video-card__thumb {
    object-fit: cover !important;
    object-position: center;
    z-index: 1;
    max-width: none !important;
}

.acd-video-card__player {
    z-index: 2;
    background: #000;
    display: none;
}

.acd-video-card.acd-has-player .acd-video-card__player {
    display: block;
}

.acd-video-card__player iframe {
    border: 0;
}

.acd-video-card__overlay {
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.24) 100%);
}

.acd-video-card.acd-is-playing .acd-video-card__thumb {
    opacity: 0;
    pointer-events: none;
}

.acd-video-card.acd-is-playing .acd-video-card__overlay {
    opacity: 0.35;
}

.acd-video-card__head {
    position: absolute;
    inset: var(--acd-head-space) var(--acd-head-space) auto var(--acd-head-space);
    padding: 8px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.55);
}

.acd-video-card__brand {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.acd-video-card__brand img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.acd-video-card__text {
    min-width: 0;
    margin-right: auto;
}

.acd-video-card__title-row {
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.acd-video-card__title {
    color: #fff;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
}

.acd-video-card__separator {
    color: #f7f7f7;
    margin: 0 3px;
}

.acd-video-card__subtitle {
    color: #f0f0f0;
    font-size: 13px;
    line-height: 1.2;
}

.acd-video-card__actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.acd-video-card__actions--top {
    margin-left: auto;
}

.acd-video-card__actions--bottom {
    position: absolute;
    left: var(--acd-head-space);
    right: var(--acd-head-space);
    bottom: var(--acd-head-space);
    justify-content: space-between;
    z-index: 5;
}

.acd-icon-circle {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    padding: 0;
}

.acd-icon-circle:hover {
    transform: scale(1.05);
    opacity: 0.95;
}

.acd-icon-circle.is-shared {
    background: #2e8b57;
    color: #fff;
}

.acd-icon-circle img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.acd-icon-circle span {
    display: inline-flex;
    font-size: 16px;
    line-height: 1;
}

.acd-swiper-pagination {
    position: relative;
    margin-top: 14px;
    text-align: center;
}

.acd-swiper-pagination .acd-page-dot {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    margin: 0 4px;
    cursor: pointer;
    opacity: 0.4;
    background: #999;
}

.acd-swiper-pagination .acd-page-dot.is-active {
    opacity: 1;
    background: #111;
}

.acd-swiper-nav {
    position: absolute;
    top: calc(50% - 18px);
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    cursor: pointer;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    padding: 0;
}

.acd-swiper-nav img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.acd-swiper-prev {
    left: 8px;
}

.acd-swiper-next {
    right: 8px;
}

.acd-share-toast {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 20;
}

.acd-share-toast.is-visible {
    opacity: 1;
}

.acd-video-empty {
    margin: 10px 0 0;
    font-size: 14px;
}

@media (max-width: 1024px) {
    .acd-video-card {
        height: 420px;
    }
}

@media (max-width: 767px) {
    .acd-video-card {
        height: 360px;
    }

    .acd-video-card__head {
        inset: 8px 8px auto 8px;
        padding: 6px;
    }

    .acd-video-card__actions--bottom {
        left: 8px;
        right: 8px;
        bottom: 8px;
    }

    .acd-swiper-nav {
        display: none;
    }
}
