/* Shared ad-slot styling — desktop, mobile, and channel placements. */
.vh-ad-slot {
    position: relative;
    display: block;
    margin: 12px 0;
    border-radius: 10px;
    overflow: hidden;
    background: color-mix(in srgb, currentColor 4%, transparent);
}
.vh-ad-slot[hidden] { display: none; }

.vh-ad-local {
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(128, 128, 128, 0.25);
}
.vh-ad-local img,
.vh-ad-local video {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    display: block;
}
.vh-ad-caption {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
}
.vh-ad-caption strong { font-size: 14px; }
.vh-ad-caption span { font-size: 12px; opacity: .75; }
.vh-ad-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 10px;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Mobile pre-roll takeover (fixed, full-screen) */
.vh-ad-mobile-interstitial {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: #000;
}
.vh-ad-mobile-interstitial[hidden] { display: none; }

/* Desktop pre-roll overlay (covers the player-stage, which is already position:relative) */
.vh-ad-preroll-overlay {
    position: absolute;
    inset: 0;
    z-index: 40;
    background: #000;
}
.vh-ad-preroll-overlay[hidden] { display: none; }

/* Shared pre-roll inner layout (skippable video ad + countdown), used by both surfaces */
.vh-ad-preroll-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vh-ad-preroll-click {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}
.vh-ad-preroll-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    display: block;
}
.vh-ad-preroll-skip {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 41;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s ease;
}
.vh-ad-preroll-skip:disabled {
    opacity: .6;
    cursor: default;
}
.vh-ad-preroll-skip:not(:disabled):hover { background: rgba(0, 0, 0, 0.85); }
