/* Live Teaser Popup — centered card on all screen sizes */
#live-teaser-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(8, 8, 16, 0.85);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 16px;
}

#live-teaser-overlay.active {
    display: flex;
}

#live-teaser-modal {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: var(--card-bg, #1e1e2e);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: liveTeaserSlideUp 0.35s ease-out;
    max-height: 92vh;
    max-height: 92dvh;
    display: flex;
    flex-direction: column;
}

@keyframes liveTeaserSlideUp {
    from { transform: translateY(24px) scale(0.97); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.live-teaser-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-teaser-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 38vh;
    max-height: 38dvh;
    background: #000;
    flex-shrink: 0;
}

#live-teaser-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.live-teaser-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 0, 200, 0.9);
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 5px 10px;
    border-radius: 999px;
}

.live-teaser-badge .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    animation: liveTeaserPulse 1.5s infinite;
}

@keyframes liveTeaserPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.live-teaser-viewers {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 999px;
}

.live-teaser-mute-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 5;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-teaser-mute-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.live-teaser-body {
    padding: 18px 20px 22px;
    text-align: center;
    overflow-y: auto;
}

.live-teaser-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.3;
}

.live-teaser-sub {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin: 0 0 14px;
}

.live-teaser-sub #live-teaser-count {
    color: var(--electric-pink, #FF00C8);
    font-weight: 800;
}

.live-teaser-progress {
    width: 100%;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    margin-bottom: 18px;
}

.live-teaser-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--electric-pink, #FF00C8), var(--aqua-cyan, #00FFF0));
    transition: width 1s linear;
}

.live-teaser-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.live-teaser-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.live-teaser-btn-primary {
    background: linear-gradient(90deg, var(--electric-pink, #FF00C8), #ff4dd8);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 0, 200, 0.4);
}

.live-teaser-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 28px rgba(255, 0, 200, 0.6);
}

.live-teaser-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.live-teaser-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Larger screens: give the centered card more room */
@media (min-width: 640px) {
    #live-teaser-overlay {
        padding: 20px;
    }

    #live-teaser-modal {
        max-width: 600px;
        max-height: 90vh;
        max-height: 90dvh;
    }

    .live-teaser-video-wrap {
        max-height: 400px;
    }

    .live-teaser-actions {
        flex-direction: row;
    }
}

/* Tablets/small laptops: a bit more room for the card */
@media (min-width: 900px) {
    #live-teaser-modal {
        max-width: 680px;
    }

    .live-teaser-video-wrap {
        max-height: 460px;
    }
}

/* Large desktop screens: cap growth so the card/video never dominate the viewport */
@media (min-width: 1440px) {
    #live-teaser-modal {
        max-width: 760px;
    }

    .live-teaser-video-wrap {
        max-height: 520px;
    }
}

/* Short viewports (e.g. landscape phones): keep the video from crowding out the CTA */
@media (max-height: 480px) {
    .live-teaser-video-wrap {
        max-height: 30vh;
        max-height: 30dvh;
    }

    .live-teaser-body {
        padding: 12px 20px 16px;
    }

    .live-teaser-progress {
        margin-bottom: 10px;
    }
}

