html {
    scrollbar-gutter: stable;
}

body {
    overflow-y: scroll;
   
}

/* ===== BACKGROUND (same theme system) ===== */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;

    background-image: radial-gradient(
        125% 125% at 50% 90%,
        #ffffff 40%,
        #7c3aed 100%
    );

    background-size: 100% 100%;
    font-family: "Lato", sans-serif;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    opacityw: 0.45;
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
    font-family: 'Lato', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== MAIN WRAPPER ===== */
.live-page {
    width: 90%;
    max-width: 1200px;
    margin: 100px auto 200px;
    
}

/* ===== STATUS BAR ===== */
.live-status-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* ===== STATUS PILL ===== */
.status-pill {
    padding: 10px 18px;
    border-radius: 50px;

    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;

    background: rgba(255,255,255,0.4);
    border: 1px solid rgba(255,255,255,0.3);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    color: #333;

    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* ===== LIVE ===== */
.status-live {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ===== STARTING SOON ===== */
.status-starting {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ===== OFFLINE ===== */
.status-offline {
    background: rgba(107, 114, 128, 0.15);
    color: #a7aab1;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

/* ===== LIVE WRAPPER CARD ===== */
.live-wrapper {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.18),
        rgba(255, 255, 255, 0.06)
    );

    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;

    padding: 30px;

    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.12);

    text-align: center;

}

@keyframes blink {
    0% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
    }

    50% {
        opacity: 0.2;
        transform: scale(0.8);
        box-shadow: 0 0 2px rgba(239, 68, 68, 0.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
    }
}

/* ===== TITLE ===== */
.live-wrapper h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 10px;
}

/* ===== DESCRIPTION ===== */
.live-wrapper p {
    color: #555;
    margin-bottom: 20px;
    font-size: 1rem;
}

/* ===== VIDEO ===== */
.live-wrapper iframe {
    width: 100%;
    height: 650px;
    border-radius: 16px;
    border: none;

    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* ===== OFFLINE STATE ===== */
.offline-box {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.18),
        rgba(255, 255, 255, 0.06)
    );

    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;

    padding: 60px 30px;

    text-align: center;

    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.12);
}

.offline-box h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 10px;
}

.offline-box p {
    color: #666;
    font-size: 1rem;
}

.past-streams {
    width: 90%;
    max-width: 1200px;
    margin: 80px auto;
}

.past-streams h2 {
    text-align: center;
    margin-bottom: 35px;
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: #1a1a1a;
}

/* GRID */
#pastContainer {
    display: flex;
    gap: 18px;

    overflow-x: auto;
    padding: 10px 5px 20px;

    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

/* hide scrollbar (clean enterprise look) */
#pastContainer::-webkit-scrollbar {
    display: none;
}

#pastContainer {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* SMALLER CARD */
.past-card {
    flex: 0 0 260px; /* key for horizontal scroll */
    scroll-snap-align: start;

    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    border-radius: 18px;
    padding: 12px;
    border: 1px solid rgba(124, 58, 237, 0.10);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;

    position: relative;
}

.past-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(124, 58, 237, 0.16);
}

.past-card {
    position: relative;
}

/* TAG BADGE */
.past-tag {
    position: absolute;
    top: 10px;
    left: 10px;

    background: rgba(124, 58, 237, 0.95);
    color: white;

    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;

    padding: 5px 10px;
    border-radius: 8px;

    text-transform: uppercase;

    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.25);
}

/* Optional platform colors */
.past-tag.YOUTUBE {
    background: #ff0000;
}

.past-tag.FACEBOOK {
    background: #1877f2;
}

/* SMALLER IMAGE */
.past-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
}

/* TEXT */
.past-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 4px 0;
    color: #111;
}

.past-card p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

/* DATE */
.past-card small {
    font-size: 0.75rem;
    color: #888;
}

/* BUTTON SMALLER */
.watch-replay-btn {
    margin-top: 6px;
    padding: 8px 12px;
    font-size: 0.8rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

.watch-replay-btn:hover {
    transform: scale(1.02);
}

.watch-replay-btn::before {
    content: "▶";
    margin-right: 6px;
    font-size: 0.7rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

    .live-wrapper iframe {
        height: 350px;
    }

    .live-wrapper h1 {
        font-size: 1.6rem;
    }

    .live-page {
        width: 92%;
    }
}
