.property-video-uploader {
    --video-navy: #102a4c;
    --video-gold: #cfb06f;
    border: 1px solid rgba(16, 42, 76, .12);
    border-radius: 18px;
    background: linear-gradient(145deg, #fff 0%, #fbfaf7 100%);
    padding: 20px;
    margin-top: 22px;
}

.property-video-uploader__head,
.property-videos__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.property-video-uploader__title,
.property-videos__title {
    color: var(--video-navy, #102a4c);
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
}

.property-video-uploader__hint,
.property-videos__hint {
    color: #6b7280;
    font-size: .86rem;
    margin: 4px 0 0;
}

.property-video-uploader__button {
    align-items: center;
    background: var(--video-navy);
    border: 0;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.property-video-uploader__button:hover {
    box-shadow: 0 8px 22px rgba(16, 42, 76, .2);
    color: #fff;
    transform: translateY(-1px);
}

.property-video-uploader__button.is-disabled {
    cursor: not-allowed;
    opacity: .55;
    pointer-events: none;
}

.property-video-list,
.property-videos__grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.property-video-file {
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    display: grid;
    gap: 12px;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    padding: 12px;
}

.property-video-file__icon {
    align-items: center;
    aspect-ratio: 1;
    background: rgba(207, 176, 111, .18);
    border-radius: 12px;
    color: var(--video-navy);
    display: flex;
    font-size: 1.2rem;
    justify-content: center;
}

.property-video-file__name {
    color: #172033;
    display: block;
    font-size: .88rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.property-video-file__status {
    color: #6b7280;
    display: block;
    font-size: .76rem;
    margin-top: 3px;
}

.property-video-file__progress {
    background: #edf0f4;
    border-radius: 999px;
    height: 4px;
    margin-top: 7px;
    overflow: hidden;
}

.property-video-file__progress > span {
    background: var(--video-gold);
    display: block;
    height: 100%;
    transition: width .2s ease;
}

.property-video-file__progress.is-indeterminate > span {
    animation: property-video-progress 1.25s ease-in-out infinite;
    width: 34% !important;
}

.property-video-file.is-ready .property-video-file__progress > span {
    background: #258750;
}

@keyframes property-video-progress {
    0% { margin-inline-start: -34%; }
    50% { margin-inline-start: 48%; }
    100% { margin-inline-start: 100%; }
}

.property-video-file__remove {
    align-items: center;
    background: #fff3f3;
    border: 0;
    border-radius: 9px;
    color: #b42318;
    cursor: pointer;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.property-video-file.is-failed {
    border-color: #f4b4ae;
}

.property-video-file.is-ready {
    border-color: #b8dbc5;
}

.maqrat-video-upload-dialog .maqrat-upload-item__video-icon {
    align-items: center;
    background: linear-gradient(145deg, #102a4c, #1f4c79);
    border-radius: 9px;
    color: #fff;
    display: flex;
    font-size: 17px;
    height: 52px;
    justify-content: center;
    padding-inline-start: 2px;
    width: 58px;
}

.maqrat-video-upload-dialog .maqrat-upload-dialog__later {
    cursor: pointer;
}

.property-videos {
    --video-navy: #102a4c;
    margin-top: 32px;
    /* The legacy theme applies 120px vertical padding to every <section>. */
    padding: 0;
}

.property-video-card {
    background: #07182c;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 14px 36px rgba(7, 24, 44, .15);
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    position: relative;
    text-align: start;
}

.property-video-card::after {
    background: linear-gradient(180deg, transparent 38%, rgba(4, 15, 28, .86));
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.property-video-card__poster,
.property-video-card__placeholder {
    aspect-ratio: 16 / 9;
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.property-video-card__placeholder {
    background: radial-gradient(circle at 70% 20%, #244d76, #07182c 72%);
}

.property-video-card__play {
    align-items: center;
    background: rgba(255, 255, 255, .94);
    border-radius: 50%;
    color: #102a4c;
    display: flex;
    height: 58px;
    inset: 50% auto auto 50%;
    justify-content: center;
    position: absolute;
    transform: translate(-50%, -50%);
    transition: transform .2s ease, background .2s ease;
    width: 58px;
    z-index: 2;
}

.property-video-card:hover .property-video-card__play {
    background: #cfb06f;
    transform: translate(-50%, -50%) scale(1.07);
}

.property-video-card__meta {
    bottom: 14px;
    color: #fff;
    display: flex;
    font-size: .82rem;
    inset-inline: 16px;
    justify-content: space-between;
    position: absolute;
    z-index: 2;
}

.property-video-modal[hidden] { display: none !important; }

.property-video-modal {
    align-items: center;
    background: rgba(3, 13, 25, .9);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 10050;
}

.property-video-modal__dialog {
    background: #050b13;
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .45);
    max-width: 1080px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.property-video-modal__player {
    aspect-ratio: 16 / 9;
    background: #000;
    display: block;
    max-height: calc(100vh - 48px);
    width: 100%;
}

.property-video-modal__close {
    align-items: center;
    background: rgba(3, 13, 25, .72);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    height: 42px;
    inset-inline-start: 14px;
    justify-content: center;
    position: absolute;
    top: 14px;
    width: 42px;
    z-index: 2;
}

@media (max-width: 575.98px) {
    .property-video-uploader__head { align-items: stretch; flex-direction: column; }
    .property-video-uploader__button { justify-content: center; width: 100%; }
    .property-video-modal { padding: 10px; }
    .maqrat-video-upload-dialog .maqrat-upload-item__video-icon {
        height: 46px;
        width: 48px;
    }
}
