.quick-preview[hidden] { display: none; }

.quick-preview {
    position: fixed;
    inset: 0;
    z-index: 1200;
}

.quick-preview__overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 20, 26, 0.84);
}

.quick-preview__panel {
    position: relative;
    width: min(1420px, 96vw);
    height: min(900px, 94vh);
    margin: 2vh auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 460px;
    gap: 14px;
}

.quick-preview__stage {
    position: relative;
    background: #080808;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2b2b2b;
}

.quick-preview__stage-top {
    height: 62px;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
}

.stage-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    background: #404040;
    color: #fff;
    font-size: 22px;
}

.stage-tabs {
    display: flex;
    gap: 18px;
}

.stage-tab {
    border: 0;
    height: 40px;
    background: transparent;
    color: #9ca3af;
    font-size: 22px;
    font-weight: 700;
    border-bottom: 3px solid transparent;
}

.stage-tab.active {
    color: #fff;
    border-bottom-color: #fff;
}

.quick-preview__media {
    height: calc(100% - 62px);
    background: #000;
}

.quick-preview__media video,
.quick-preview__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.stage-mute {
    position: absolute;
    right: 16px;
    top: 76px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 0;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    font-size: 20px;
}

.stage-mute i {
    font-size: 20px;
    color: #fff;
}

.stage-bottom {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 14px;
}

.stage-progress {
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
    overflow: hidden;
}

.stage-progress-fill {
    height: 100%;
    width: 0;
    background: #fff;
}

.stage-duration {
    margin: 8px 0 0;
    color: #fff;
    text-align: right;
    font-weight: 700;
    font-size: 13px;
}

.stage-carousel-nav {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.stage-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: rgba(32, 32, 32, 0.78);
    color: #fff;
    font-size: 30px;
}

.stage-dots {
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(32, 32, 32, 0.78);
}

.stage-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8f8f8f;
}

.stage-dot.active {
    width: 10px;
    height: 10px;
    background: #fff;
}

.stage-actions {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stage-action {
    width: 62px;
    border: 0;
    color: #fff;
    background: transparent;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.stage-action:disabled {
    opacity: 0.7;
    cursor: wait;
}

.stage-action.is-busy span {
    transform: scale(0.98);
}

.stage-action span {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(72, 72, 72, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 19px;
}

.stage-action i {
    font-size: 19px;
    color: #f5f7fa;
}

.stage-action i.is-pop {
    animation: actionIconPop 0.34s ease;
}

.stage-action-pop {
    position: absolute;
    top: 6px;
    font-style: normal;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    background: rgba(31, 99, 216, 0.96);
    border-radius: 999px;
    padding: 2px 6px;
    opacity: 0;
    animation: actionPopFloat 0.52s ease forwards;
}

.stage-action.is-active span {
    background: #1f63d8;
    border-color: rgba(255, 255, 255, 0.3);
}

.stage-action.is-active i {
    color: #fff;
}

.stage-action small {
    font-size: 12px;
    font-weight: 700;
}

@keyframes actionIconPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes actionPopFloat {
    0% {
        opacity: 0;
        transform: translateY(8px) scale(0.92);
    }
    25% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-16px) scale(1);
    }
}

.quick-preview__info {
    background: #f4f5f7;
    color: #111827;
    border-radius: 20px;
    border: 1px solid #dcdfe4;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: auto;
}

.quick-preview__info h3 {
    margin: 0;
    font-size: 34px;
    line-height: 1.2;
}

.quick-preview__info .subline {
    margin: 0;
    color: #454b57;
    font-size: 20px;
}

.quick-preview__info .price {
    margin: 2px 0;
    color: #f03263;
    font-size: 46px;
    font-weight: 800;
}

.quick-preview__info p {
    margin: 0;
    color: #2d3440;
    font-size: 17px;
}

#quickPreviewLocation,
#quickPreviewTime {
    display: flex;
    align-items: center;
    gap: 8px;
}

#quickPreviewLocation i,
#quickPreviewTime i {
    width: 16px;
    text-align: center;
    color: #5b6473;
    font-size: 15px;
}

.preview-thumbs {
    display: flex;
    gap: 8px;
    overflow: auto;
    padding-bottom: 2px;
}

.preview-thumb {
    width: 68px;
    height: 68px;
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 3px;
    background: #fff;
}

.preview-thumb.active {
    border-color: #111;
}

.preview-thumb img {
    width: 100%;
    height: 100%;
    border-radius: 7px;
    object-fit: cover;
}

.preview-seller {
    display: grid;
    grid-template-columns: 50px 1fr;
    align-items: center;
    gap: 10px;
}

.preview-seller .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.preview-seller strong {
    display: block;
    font-size: 18px;
}

.preview-seller p {
    margin-top: 2px;
    font-size: 14px;
    color: #68707d;
}

.preview-tabs {
    margin-top: 2px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #e2e6ed;
}

.preview-tabs button {
    border: 0;
    height: 44px;
    font-weight: 700;
    background: transparent;
    color: #78818f;
    border-bottom: 2px solid transparent;
}

.preview-tabs button.active {
    color: #111827;
    border-bottom-color: #111827;
}

.preview-description h4 {
    margin: 0 0 6px;
    font-size: 22px;
}

.preview-description p {
    font-size: 15px;
    line-height: 1.55;
    color: #374151;
}

.preview-spec {
    margin: 0;
}

.preview-spec div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 8px;
    padding: 8px 0;
    border-top: 1px solid #eaedf2;
}

.preview-spec dt {
    color: #7a8392;
}

.preview-spec dd {
    margin: 0;
    font-weight: 700;
}

.preview-footer {
    margin-top: auto;
    position: sticky;
    bottom: -20px;
    background: #f4f5f7;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 8px;
}

.preview-footer button {
    border: 0;
    height: 42px;
    border-radius: 10px;
    font-weight: 800;
}

.preview-footer .call-btn {
    background: #f8d000;
}

.quick-preview__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 22px;
}

@media (max-width: 1280px) {
    .quick-preview__panel {
        grid-template-columns: 1fr;
        height: 96vh;
    }

    .quick-preview__stage {
        min-height: 55vh;
    }

    .stage-actions {
        display: none;
    }

    .quick-preview__info {
        border-radius: 12px;
    }
}

@media (max-width: 760px) {
    .stage-tab { font-size: 16px; }
    .quick-preview__info h3 { font-size: 22px; }
    .quick-preview__info .subline,
    .quick-preview__info p { font-size: 15px; }
    .quick-preview__info .price { font-size: 30px; }
}
