/* hf-video.css — HyperFrames video component styles */

/* ── hero background mode ─────────────────────────────── */
.hf-video[data-mode="bg"] {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    background: #07090d;
}
.hf-video[data-mode="bg"] video,
.hf-video[data-mode="bg"] .hf-video-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}
.hf-video[data-mode="bg"]::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(7, 9, 13, 0.25) 0%, rgba(7, 9, 13, 0.55) 55%, var(--hf-page-bottom, rgba(7, 9, 13, 0.92)) 100%);
}

/* ── accent card mode ─────────────────────────────────── */
.hf-video[data-mode="accent"] {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.hf-video[data-mode="accent"]::before {
    content: "";
    display: block;
    padding-top: 56.25%;
}
.hf-video[data-mode="accent"] video,
.hf-video[data-mode="accent"] .hf-video-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── thumb mode (app-card video image) ────────────────── */
.hf-video[data-mode="thumb"] {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    margin-bottom: 18px;
}
.hf-video[data-mode="thumb"]::before {
    content: "";
    display: block;
    padding-top: 46%;
}
.hf-video[data-mode="thumb"] video,
.hf-video[data-mode="thumb"] .hf-video-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.15) contrast(1.05);
}
/* lead cards: fill the .lead-media frame (16/8.4) instead of own box */
.lead-media .hf-video[data-mode="thumb"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    margin-bottom: 0;
}
.lead-media .hf-video[data-mode="thumb"]::before { display: none; }
.lead-media .hf-video[data-mode="thumb"] video,
.lead-media .hf-video[data-mode="thumb"] .hf-video-img {
    object-fit: cover;
    object-position: center 42%;
    filter: brightness(1.45) contrast(1.08);
}

/* ── banner mode (page-top cinematic strip) ───────────── */
.hf-banner {
    position: relative;
    width: 100%;
    height: clamp(220px, 34vw, 400px);
    overflow: hidden;
    background: #07090d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 28px;   /* clean separation from the page header below */
}
.hf-banner video,
.hf-banner .hf-video-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}
.hf-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(7, 9, 13, 0.25), transparent 30%, transparent 60%, rgba(7, 9, 13, 0.85) 100%);
    pointer-events: none;
}
.hf-banner--slim { height: clamp(160px, 22vw, 260px); }

/* ── splash mode (games) ──────────────────────────────── */
.hf-splash {
    display: none;
}
.hf-splash.hf-splash-active {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #07090d;
    overflow: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.hf-splash.hf-splash-closing {
    opacity: 0;
    visibility: hidden;
}
.hf-splash video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}
.hf-splash::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 100% at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}
.hf-splash-btn {
    position: absolute;
    left: 50%;
    bottom: 18%;
    transform: translateX(-50%);
    z-index: 2;
    font-family: inherit;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #04141a;
    background: linear-gradient(90deg, #22d3ee, #67e8f9);
    border: none;
    border-radius: 999px;
    padding: 18px 44px;
    cursor: pointer;
    box-shadow: 0 0 60px rgba(34, 211, 238, 0.5);
    animation: hf-splash-pulse 1.6s ease-in-out infinite;
}
.hf-splash-btn:hover {
    filter: brightness(1.1);
}
@keyframes hf-splash-pulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
}

/* ── reduced motion: no autoplay anyway (JS handles poster) ── */
@media (prefers-reduced-motion: reduce) {
    .hf-splash-btn { animation: none; }
}
