/* =========================
   LIVE TAB WRAPPER
========================= */

.live-tab-wrapper {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* =========================
   LIVE STREAM CONTAINER
========================= */

.live-stream-main {
    position: relative;
    border-radius: 12px;
    overflow: hidden;

    border: 1px solid rgba(200, 80, 255, 0.25);

    box-shadow:
        0 0 25px rgba(200, 80, 255, 0.25),
        inset 0 0 20px rgba(120, 0, 255, 0.15);

    background: #0b0b12;
}

/* =========================
   PLAYER
========================= */

.live-stream-player iframe {
    width: 100%;
    height: 420px;
    border: none;
    display: block;
}

/* =========================
   OVERLAY (BOTTOM GRADIENT)
========================= */

.live-stream-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;

    padding: 16px;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85),
        rgba(0, 0, 0, 0.4),
        transparent
    );

    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* =========================
   LIVE BADGE
========================= */

.live-indicator-overlay {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    background: rgba(255, 0, 80, 0.15);
    border: 1px solid rgba(255, 0, 80, 0.4);

    color: #ff4d6d;

    font-size: 11px;
    font-weight: 700;

    padding: 4px 8px;
    border-radius: 999px;

    width: fit-content;

    box-shadow: 0 0 12px rgba(255, 0, 80, 0.35);
}

/* 🔴 Pulsing dot */
.live-dot-overlay {
    font-size: 8px;
    color: #ff4d6d;

    animation: pulseLive 1.2s infinite;
}

@keyframes pulseLive {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.6); }
    100% { opacity: 1; transform: scale(1); }
}

/* =========================
   STREAM TEXT
========================= */

.live-stream-overlay h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.live-stream-overlay p {
    font-size: 13px;
    color: #c9c9c9;
}

/* =========================
   OFFLINE STATE
========================= */

.live-offline {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 60px 20px;

    background: #141824;
    border: 1px solid #2a3042;
    border-radius: 12px;

    color: #9ca3af;
    gap: 10px;
}

.live-offline i {
    font-size: 28px;
    opacity: 0.7;
}

/* =========================
   VODS SECTION
========================= */

.vods-section {
    background: #171b26;
    border: 1px solid #232938;
    border-radius: 12px;

    padding: 14px;
}

/* HEADER */
.vods-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;

    color: #dde4ec;
}

/* =========================
   GRID
========================= */

.vods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

/* =========================
   CARD
========================= */

.vod-card {
    background: #1f2432;
    border: 1px solid #2a3042;
    border-radius: 10px;

    overflow: hidden;

    transition: 0.2s;
}

.vod-card:hover {
    transform: translateY(-3px);
    border-color: #c855f7;

    box-shadow: 0 0 15px rgba(200, 80, 255, 0.35);
}

/* =========================
   THUMBNAIL
========================= */

.vod-thumbnail {
    position: relative;
}

.vod-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* VIEW COUNT */
.vod-views {
    position: absolute;
    bottom: 6px;
    right: 6px;

    background: rgba(0, 0, 0, 0.7);
    padding: 4px 6px;
    border-radius: 6px;

    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* =========================
   INFO
========================= */

.vod-info {
    padding: 10px;
}

.vod-info h4 {
    font-size: 13px;
    font-weight: 600;
    color: #fff;

    margin-bottom: 4px;

    /* truncate long titles */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vod-info p {
    font-size: 11px;
    color: #9ca3af;
}

/* =========================
   LIVE NOW FLAG
========================= */

.live-now-flag {
    font-size: 10px;
    font-weight: 700;
    margin-left: 4px;

    padding: 2px 6px;
    border-radius: 4px;

    background: rgba(255, 0, 80, 0.2);
    color: #ff4d6d;

    border: 1px solid rgba(255, 0, 80, 0.5);

    animation: liveNowFlash 1.2s infinite;
}

/* Flash animation */
@keyframes liveNowFlash {
    0% {
        opacity: 1;
        box-shadow: 0 0 6px rgba(255, 0, 80, 0.6);
    }
    50% {
        opacity: 0.4;
        box-shadow: 0 0 14px rgba(255, 0, 80, 1);
    }
    100% {
        opacity: 1;
        box-shadow: 0 0 6px rgba(255, 0, 80, 0.6);
    }
}

/* =========================
   LIVE TAB BUTTON GLOW
========================= */

.tabs-links button.live-active {
    border: 1px solid rgba(255, 0, 80, 0.6);
    box-shadow: 0 0 12px rgba(255, 0, 80, 0.6);
    animation: liveTabPulse 1.5s infinite;
}

@keyframes liveTabPulse {
    0% { box-shadow: 0 0 6px rgba(255, 0, 80, 0.4); }
    50% { box-shadow: 0 0 16px rgba(255, 0, 80, 1); }
    100% { box-shadow: 0 0 6px rgba(255, 0, 80, 0.4); }
}


/* =========================
   HEADER BAR
========================= */

.live-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 10px 14px;

    background: linear-gradient(90deg, #1a0b2e, #0b0b12);
    border: 1px solid rgba(200,80,255,.25);
    border-radius: 10px;

    box-shadow: 0 0 15px rgba(200,80,255,.25);
}

.live-badge {
    color: #ff4d6d;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-badge i {
    animation: pulseLive 1.2s infinite;
}

/* =========================
   INFO PANEL
========================= */

.live-info-panel {
    padding: 14px;

    background: #121521;
    border-top: 1px solid #2a3042;

    display: flex;
    flex-direction: column;
    gap: 8px;
}

.live-info-panel h2 {
    font-size: 16px;
    font-weight: 600;
}

.live-meta {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: #9ca3af;
}

/* =========================
   TWITCH BUTTON
========================= */

.watch-twitch-btn {
    margin-top: 8px;

    background: linear-gradient(90deg, #9146ff, #772ce8);
    padding: 8px 12px;
    border-radius: 6px;

    font-weight: 600;
    font-size: 13px;

    text-align: center;
    transition: 0.2s;
}

.watch-twitch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(145,70,255,.6);
}

/* =========================
   VODS ENHANCED
========================= */

.vod-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);

    opacity: 0;
    font-size: 20px;
    color: #fff;

    transition: 0.2s;
}

.vod-card:hover .vod-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* =========================
   EXTRA GLOW
========================= */

.live-stream-main {
    box-shadow:
        0 0 25px rgba(200,80,255,.3),
        0 0 60px rgba(120,0,255,.15);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .live-stream-player iframe {
        height: 260px;
    }

    .vods-grid {
        grid-template-columns: 1fr;
    }
}