.pv-blob-preview-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.88);
    padding: 32px 20px;
    box-sizing: border-box;
    overflow: auto;
}

.pv-blob-preview-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto;
    max-width: min(96vw, 1100px);
    margin: auto;
}

.pv-blob-preview-frame {
    position: relative;
    display: inline-block;
    line-height: 0;
    background: #fff;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
    max-width: min(92vw, 1000px);
}

.pv-blob-preview-frame img {
    display: block;
    max-width: min(92vw, 1000px);
    max-height: min(78vh, 1400px);
    width: auto;
    height: auto;
    object-fit: contain;
    vertical-align: middle;
}

.pv-blob-preview-frame iframe {
    display: block;
    width: min(88vw, 920px);
    height: min(76vh, 900px);
    border: none;
    background: #fff;
}

.pv-blob-preview-placeholder {
    padding: 2.5rem 2.75rem;
    text-align: center;
    color: #444;
    font-family: Roboto, system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    max-width: 400px;
    line-height: 1.5;
}

.pv-blob-preview-placeholder strong {
    display: block;
    margin-top: 0.85rem;
    font-weight: 500;
    word-break: break-all;
    color: #222;
}

.pv-blob-preview-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: rgba(40, 40, 40, 0.95);
    color: #fff;
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    z-index: 3;
    transition: background 0.15s ease;
}

.pv-blob-preview-close:hover {
    background: #000;
}

.pv-blob-preview-download {
    margin-top: 28px;
    flex-shrink: 0;
    padding: 11px 52px;
    min-width: 160px;
    font-size: 14px;
    font-family: Roboto, system-ui, sans-serif;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #fff;
    background: #3a3a3a;
    border: none;
    border-radius: 22px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    transition: background 0.15s ease;
}

.pv-blob-preview-download:hover {
    background: #222;
}
