.ks-ad-video {
    margin: 24px 0;
    padding: 20px;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    background: #fafafa;
}

.ks-ad-video__title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
}

.ks-ad-video__hint {
    margin: 0 0 16px;
    color: #666;
    font-size: 14px;
    line-height: 1.45;
}

.ks-ad-video__pay {
    margin: 0 0 12px;
}

.ks-ad-video__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.ks-ad-video__controls[hidden],
.ks-ad-video__pay[hidden] {
    display: none !important;
}

.ks-ad-video__file {
    max-width: 100%;
}

.ks-ad-video__delete {
    border: 0;
    background: #fff;
    color: #c0392b;
    cursor: pointer;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #f0d0d0;
}

.ks-ad-video__progress {
    margin-top: 12px;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.ks-ad-video__progress-bar {
    height: 100%;
    width: 0;
    background: #2ecc71;
    transition: width 0.2s ease;
}

.ks-ad-video__msg {
    margin-top: 12px;
    font-size: 14px;
    color: #333;
}

.ks-ad-video__msg--error {
    color: #c0392b;
}

.ks-ad-video__preview video,
.items-catalog__video-player {
    display: block;
    width: 100%;
    max-height: 480px;
    border-radius: 8px;
    background: #000;
}

.ks-ad-video__meta {
    margin: 8px 0 0;
    font-size: 13px;
    color: #666;
}

.items-catalog__video {
    margin-top: 16px;
}

.items-catalog__video-label {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
}

.ks-ad-video--uploading {
    border-color: #e6a23c;
    background: #fff9f0;
    box-shadow: 0 0 0 2px rgba(230, 162, 60, 0.25);
}

.ks-ad-video--uploading .ks-ad-video__progress {
    height: 10px;
}

.ks-ad-video--uploading .ks-ad-video__msg {
    font-weight: 500;
    color: #333;
}


.items-catalog__video-status {
    margin: 0;
    padding: 12px 16px;
    border-radius: 8px;
    background: #fff9f0;
    border: 1px solid #f0d9b5;
    color: #666;
    font-size: 14px;
    line-height: 1.45;
}

/* Видео в общей карусели деталки (первый слайд) */
.slide--listing-video .slide-listing-video {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #353433;
    border-radius: 8px;
    max-height: 530px;
    height: 33vw;
    min-height: 180px;
    overflow: hidden;
}

.slide-listing-video__player {
    display: block;
    width: 100%;
    max-height: 530px;
    border-radius: 8px;
    background: #000;
}

.slide-listing-video__badge,
.slide-listing-video-thumb__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.slide-listing-video--processing {
    padding: 16px;
    min-height: 120px;
    height: auto;
    background: #fafafa;
}

.slide-listing-video--processing .items-catalog__video-status {
    width: 100%;
}

.slide-listing-video-thumb {
    position: relative;
}

.slide-listing-video-thumb__placeholder {
    display: block;
    width: 220px;
    height: 124px;
    background: #353433;
    border-radius: 8px;
}

.slide-listing-video-thumb__play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
}

.slide-listing-video-thumb__play::after {
    content: '';
    position: absolute;
    left: 14px;
    top: 10px;
    border-style: solid;
    border-width: 8px 0 8px 14px;
    border-color: transparent transparent transparent #fff;
}

.slide-listing-video-thumb__badge {
    top: 6px;
    left: 6px;
}

.slide-listing-video-thumb--processing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 80px;
    min-width: 120px;
    background: #fff9f0;
    border: 1px solid #f0d9b5;
    border-radius: 8px;
}

.slide-listing-video-thumb__status {
    font-size: 12px;
    color: #666;
}

@media (max-width: 990px) {
    .slide--listing-video .slide-listing-video {
        height: auto;
        min-height: 0;
        max-height: none;
        background: transparent;
    }

    .slide-listing-video__player {
        max-height: 70vw;
    }
}
