/* video-specific styles */

.play-btn {
    position: absolute;
    z-index: 4;
    right: 10px;
    /* top: 1px; */
    transform: translate(-50%, -50%);
    width: 86px;
    height: 86px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    border: none;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(43, 102, 255, 0.98), rgba(0, 60, 200, 0.88));
    color: white;
    box-shadow: 0 14px 30px rgba(43, 102, 255, 0.28), 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform .18s ease, box-shadow .18s ease, opacity .15s ease;
    backdrop-filter: blur(4px);
}

.play-btn svg {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.play-btn:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 18px 36px rgba(43, 102, 255, 0.36);
}

.play-btn:active {
    transform: translate(-50%, -50%) scale(.98);
}

/* subtle preview: when hovering card play small muted looped preview */
.media video.preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    display: none;
    filter: saturate(1.04) contrast(.98);
}

/* when hovered, show preview and mask background image a bit */
.story-card:hover .media video.preview {
    display: block;
}

.story-card:hover .media img.bg {
    opacity: 0.14;
    transition: opacity .25s ease;
}

/* Modal */
.video-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
}

.video-modal[aria-hidden="false"] {
    display: flex;
}

.video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 12, 30, 0.6);
    backdrop-filter: blur(3px);
}

.video-modal__panel {
    position: relative;
    z-index: 2;
    max-width: min(1100px, 95vw);
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(3, 12, 30, 0.6);
    overflow: hidden;
    background: linear-gradient(180deg, #09173a, #04102b);
    padding: 18px;
}

.video-modal__close {
    position: absolute;
    right: 12px;
    top: 10px;
    z-index: 5;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.video-wrapper {
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    height: calc(56vw);
    max-height: 620px;
}

@media (min-width: 900px) {
    .video-wrapper {
        height: calc(1100px * 9 / 16);
    }

    /* keep 16:9 on large screens */
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    display: block;
}

/* Small accessibility focus styles */
.play-btn:focus,
.video-modal__close:focus {
    outline: 3px solid rgba(43, 102, 255, 0.25);
    outline-offset: 2px;
    border-radius: 12px;
}


/* — Hero video block — */
.hero-video {
    width: 100%;
    max-width: 1000px;
    margin: 18px auto 30px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(3, 12, 30, 0.18);
    position: relative;
    background: linear-gradient(180deg, #ffffff, #f6f8ff);
}

.hero-inner {
    position: relative;
    min-height: 280px;
    display: grid;
    align-items: center;
    gap: 18px;
}

/* Poster fills area */
.hero-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.03) contrast(.98);
    transform-origin: center;
}

/* soft gradient overlay for readability */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 12, 30, 0.32) 0%, rgba(6, 12, 30, 0.12) 45%, rgba(6, 12, 30, 0.18) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Content sits above poster */
.hero-content {
    position: absolute;
    z-index: 2;
    left: 24px;
    bottom: 24px;
    color: #fff;
    width: 100%;    
    text-shadow: 0 6px 30px rgba(0, 0, 0, 0.45);
}

.hero-title {
    margin: 0 0 8px;
    font-size: clamp(20px, 3.3vw, 34px);
    line-height: 1.05;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
}

.hero-sub {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    opacity: .95;
}

/* Actions: hero play (big) + small CTA */
.hero-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Reuse play-btn but slightly larger visual for hero */
.play-btn.hero-play {
    /* width: 110px;
    height: 110px;*/
    border-radius: 999px; 
    /* box-shadow: 0 20px 50px rgba(43, 102, 255, 0.28), 0 4px 12px rgba(0, 0, 0, 0.18);
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
    z-index: 3; */
}

.play-btn.hero-play svg {
    width: 36px;
    height: 36px;
    transform: translateX(2px);
}

/* Smaller CTA button visual matches .btn but inverted on hero */
.hero-actions .btn {
    --h: 44px;
    height: var(--h);
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.92);
    color: #0b2e80;
    font-weight: 800;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(12, 32, 80, 0.08);
    text-decoration: none;
}

/* Responsive: center content on small screens */
@media (max-width: 840px) {
    .hero-content {
        left: 18px;
        right: 18px;
        bottom: 18px;
        max-width: 100%;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-inner {
        min-height: 220px;
    }

    .play-btn.hero-play {
        width: 86px;
        height: 86px;
    }
}