/**
 * Brutal Paid Advice — floating outstream video (interim).
 * PiP click → go.phrutos.com (banner UTMs); expand → on-site modal.
 */

.hg-floating-video-ad {
    position: fixed;
    right: 16px;
    bottom: 20px;
    z-index: 10050;
    width: min(280px, calc(100vw - 32px));
    background: #111;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    font-family: var(--hg-font-family, inherit);
}

.hg-floating-video-ad:not(.is-visible) {
    display: none !important;
}

.hg-floating-video-ad.is-visible {
    display: block;
}

/* Minimized: thin bar docked to bottom — click to restore full PiP */
.hg-floating-video-ad.is-minimized {
    width: min(220px, calc(100vw - 24px));
    bottom: 0;
    right: 12px;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}

.hg-floating-video-ad.is-minimized .hg-fva-chrome,
.hg-floating-video-ad.is-minimized .hg-fva-player-wrap {
    display: none !important;
}

.hg-fva-restore {
    display: none;
    width: 100%;
    margin: 0;
    padding: 10px 14px;
    border: 0;
    background: #1a1a1a;
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font: inherit;
    text-align: left;
}

.hg-floating-video-ad.is-minimized .hg-fva-restore {
    display: flex;
}

.hg-fva-restore-label {
    flex: 1;
    font-size: 12px;
    font-weight: 600;
    color: #e8e8e8;
}

.hg-fva-restore-chevron {
    display: block;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 8px solid #fff;
}

.hg-fva-restore:hover,
.hg-fva-restore:focus-visible {
    background: #2a2a2a;
    outline: 2px solid #fff;
    outline-offset: -2px;
}

.hg-floating-video-ad.is-minimized .hg-fva-restore .hg-fva-ad-label {
    flex-shrink: 0;
}

.hg-fva-chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px 4px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 100%);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 6;
    pointer-events: none;
}

.hg-fva-chrome-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: auto;
}

.hg-fva-expand {
    appearance: none;
    border: 0;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.hg-fva-expand:hover,
.hg-fva-expand:focus-visible {
    background: rgba(255, 255, 255, 0.28);
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.hg-fva-expand-icon {
    display: block;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 2px;
    box-shadow: 3px 3px 0 -1px #fff;
}

.hg-fva-ad-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ccc;
    background: rgba(255, 255, 255, 0.12);
    padding: 2px 6px;
    border-radius: 3px;
}

.hg-fva-close {
    pointer-events: auto;
    appearance: none;
    border: 0;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.hg-fva-close:hover,
.hg-fva-close:focus-visible {
    background: rgba(255, 255, 255, 0.28);
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.hg-fva-player-wrap {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: #000;
    cursor: pointer;
    aspect-ratio: 16 / 9;
    text-align: left;
}

.hg-fva-player-wrap:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -2px;
}

.hg-fva-yt-mount,
.hg-fva-yt-mount iframe {
    width: 100% !important;
    height: 100% !important;
    display: block;
    border: 0;
    pointer-events: none;
}

.hg-fva-yt-shield {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.hg-fva-mute-hint {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    z-index: 4;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.65);
    padding: 4px 10px;
    border-radius: 999px;
    pointer-events: none;
    white-space: nowrap;
}

.hg-fva-modal {
    position: fixed;
    inset: 0;
    z-index: 100060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.hg-fva-modal[hidden] {
    display: none !important;
}

.hg-fva-modal.is-open {
    display: flex;
}

.hg-fva-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.82);
    cursor: pointer;
}

.hg-fva-modal-dialog {
    position: relative;
    z-index: 2;
    width: min(960px, 100%);
    max-height: calc(100vh - 48px);
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.hg-fva-modal-player {
    position: relative;
}

.hg-fva-yt-modal-mount {
    aspect-ratio: 16 / 9;
    width: 100%;
    background: #000;
}

.hg-fva-modal-video-shield {
    position: absolute;
    inset: 0;
    z-index: 4;
    border: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.hg-fva-modal-cta {
    display: block;
    text-align: center;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #fff !important;
    background: #222;
    text-decoration: none !important;
    border-top: 1px solid #333;
}

.hg-fva-modal-cta:hover,
.hg-fva-modal-cta:focus-visible {
    background: #333;
    color: #fff !important;
}

.hg-fva-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    appearance: none;
    border: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hg-fva-modal-close:hover,
.hg-fva-modal-close:focus-visible {
    background: rgba(0, 0, 0, 0.8);
    outline: 2px solid #fff;
    outline-offset: 2px;
}

body.hg-fva-modal-open {
    overflow: hidden;
}

.mvp-fly-top {
    z-index: 10040;
}

@media screen and (max-width: 600px) {
    .hg-floating-video-ad {
        right: 12px;
        bottom: 12px;
        width: min(240px, calc(100vw - 24px));
    }

    .hg-fva-modal {
        padding: 12px;
    }
}
