:root {
    --prudent-red: #DD221B;
    --dark-text: #111111;
    --muted: #666666;
    --border-gray: #E5E5E5;
    --radius: 5px;
}

body.live-page-body { background-color: #fff; margin: 0; font-family: 'Neue Haas Grotesk Display Pro', 'Inter', sans-serif; }
.main-container { width: 1400px; margin: 0 auto; }
.live-mt { padding-top: 30px; padding-bottom: 80px; }
.main-content-flex { display: flex; gap: 22px; align-items: flex-start; }

/* LEFT COLUMN (925px) */
.left-col { width: 925px; flex-shrink: 0; }

.main-live-player { 
    width: 925px; height: 522px; background: #000; position: relative; 
    border-radius: var(--radius); overflow: hidden; 
}
.main-live-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.live-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; border-radius: var(--radius); }

.live-badge-top {
    position: absolute; top: 15px; left: 15px; background: var(--prudent-red);
    color: #fff; font-size: 11px; font-weight: 800; padding: 5px 12px; border-radius: 50px;
}
.live-badge-top i { font-size: 8px; margin-right: 5px; }

.play-btn-main {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 75px; height: 75px; background: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: #111; cursor: pointer;
}

.live-info-area { padding-top: 25px; }
.now-on { color: var(--prudent-red); font-weight: 800; font-size: 14px; }
.live-title { font-size: 28px; font-weight: 800; margin: 8px 0; color: #111; }
.live-meta { font-size: 14px; color: var(--muted); }

/* Share Row */
.share-row-pills { display: flex; align-items: center; gap: 20px; padding: 25px 0; border-bottom: 1px solid var(--border-gray); }
.share-label { font-weight: 800; font-size: 14px; color: #111; }
.share-btns { display: flex; gap: 10px; }
.s-pill { 
    background: #fff; border: 1px solid #111; border-radius: 50px; padding: 8px 18px; 
    font-size: 13px; font-weight: 700; cursor: pointer; color: #111;
}

/* Today's Bulletin List */
.todays-bulletin-section { margin-top: 35px; border: 1px solid var(--border-gray); border-radius: var(--radius); padding: 25px; }
.section-head { display: flex; justify-content: space-between; margin-bottom: 25px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.section-head h3 { font-size: 16px; font-weight: 700; color: #242424; }
.section-head span { color: #999; font-size: 13px; }

.bulletin-row-card { display: flex; align-items: center; gap: 20px; padding: 15px 0; border-bottom: 1px solid #f6f6f6; }
.b-thumb { width: 237px; height: 130px; position: relative; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; }
.b-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

.badge-new { position: absolute; top: 8px; left: 8px; background: #fff; color: var(--prudent-red); font-weight: 800; font-size: 10px; padding: 2px 6px; border-radius: 2px; }
.b-duration { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.8); color: #fff; font-size: 10px; padding: 2px 5px; border-radius: 2px; }
.b-play-sm { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 35px; height: 35px; background: rgba(255,255,255,0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; }

.b-info { flex: 1; }
.cat-red { color: var(--prudent-red); font-weight: 800; font-size: 12px; display: block; margin-bottom: 5px; }
.b-info h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: #242424; }
.b-info h4 a { color: inherit; text-decoration: none; }
.b-info h4 a:hover { color: var(--prudent-red); }
.b-info p { font-size: 13px; color: var(--muted); }
.b-thumb { display: block; text-decoration: none; color: inherit; }

.b-share-btn { border: 1px solid #111; background: transparent; padding: 7px 20px; border-radius: 50px; font-weight: 700; cursor: pointer; font-size: 13px; }

/* SIDEBAR (RIGHT COL) */
.sidebar-card { margin-bottom: 30px; border: 1px solid var(--border-gray); border-radius: var(--radius); overflow: hidden; }
.sidebar-card h3 { font-size: 16px; font-weight: 700; padding: 15px 20px; margin: 0; background: #fff; border-bottom: 1px solid #eee;color: #242424; }
.side-featured-thumb { width: 100%; height: 230px; position: relative; }
.side-featured-thumb img{width: 100%; height: 100%;}
.side-play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 45px; height: 45px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #111; }
.side-ep-badge { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,0.8); color: #fff; font-size: 10px; padding: 3px 8px; border-radius: 3px; font-weight: 800; }

.live-headlines-player-wrap { padding: 0 0 15px; }
.live-headlines-player-wrap .headlines-main-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}
.live-headlines-player-wrap .headlines-main-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.live-headlines-player-wrap .headlines-thumbs {
    display: flex;
    justify-content: space-between;
    gap: 5px;
    margin: 8px 12px 0;
}
.live-headlines-player-wrap .headlines-thumb {
    flex: 1;
    min-width: 0;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 3px;
    cursor: pointer;
    background: none;
    overflow: hidden;
}
.live-headlines-player-wrap .headlines-thumb:hover,
.live-headlines-player-wrap .headlines-thumb.active {
    border-color: var(--prudent-red);
}
.live-headlines-player-wrap .headlines-thumb img {
    width: 100%;
    height: 50px;
    object-fit: cover;
    display: block;
}

.top-story-list { list-style: none; padding: 0; margin: 0; background: #fbfbfb; }
.top-story-list li { display: flex; gap: 15px; padding: 18px 20px; border-bottom: 1px solid #eee; align-items: center; }
 /* .active { text-decoration: none; color: #ad0f0f; font-weight: 600; font-size: 13px; line-height: 1.4; } */
.rank { font-weight: 800; font-size: 16px; color: #111; }
.rank.red { color: var(--prudent-red); }
.top-story-list li a { text-decoration: none; color: #111; font-weight: 600; font-size: 13px; line-height: 1.4; }
.top-story-list li a.active { color: #ad0f0f; }
.top-story-list li span.active { color: #ad0f0f; font-weight: 600; font-size: 13px; line-height: 1.4; }

/* MOBILE RESPONSIVE */
@media (max-width: 991px) {
    .main-container { width: 100% !important; padding: 0 15px; }
    .main-content-flex { flex-direction: column; gap: 30px; }
    .left-col, .right-col { width: 100% !important; }
    .main-live-player { height: auto; aspect-ratio: 16 / 9; }
    .share-row-pills { justify-content: space-between; }
    .share-btns { font-size: 0; }
    .s-pill { width: 40px; height: 40px; border-radius: 50%; padding: 0; display: flex; align-items: center; justify-content: center; }
    .s-pill i { font-size: 16px; }
    .bulletin-row-card { flex-direction: column; align-items: flex-start; }
    .b-thumb { width: 100%; height: 200px; }
    .b-share-btn { width: 100%; margin-top: 10px; }
}

/* --- PROFESSIONAL LIVE BLINK INDICATOR --- */

.live-badge-top {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #DD221B;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* The actual dot */
.live-indicator {
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    position: relative;
}

/* The ripple/blink effect */
.live-indicator::after {
    content: "";
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    animation: live-ripple 1.5s infinite ease-out;
}

@keyframes live-ripple {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }
    100% {
        transform: scale(3.5); /* How far the ripple goes */
        opacity: 0;
    }
}

/* ============================================================
   STRICT FULLY MOBILE RESPONSIVE CODE - LIVE TV
   ============================================================ */

@media (max-width: 991px) {
    /* 1. Global Layout Reset */
    .main-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
        overflow-x: hidden !important;
    }

    /* 2. Layout Stacking: Left (Player) First, Right (Sidebar) Second */
    .main-content-flex {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
    }

    .left-col, .right-col {
        width: 100% !important;
        max-width: 100% !important;
        flex-shrink: 1 !important;
    }

    /* 3. Responsive Live Player */
    .main-live-player {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        border-radius: 0 !important; /* Full bleed on mobile */
    }

    .play-btn-main {
        width: 55px !important;
        height: 55px !important;
    }

    .live-badge-top {
        top: 10px !important;
        left: 10px !important;
        font-size: 10px !important;
        padding: 4px 10px !important;
    }

    /* 4. Live Info Area */
    .live-title {
        font-size: 20px !important;
        line-height: 1.3 !important;
    }

    .live-meta {
        font-size: 13px !important;
    }

    /* 5. Circular Share Buttons (Icons Only) */
    .share-row-pills {
        justify-content: space-between !important;
        padding: 15px 0 !important;
    }

    .share-btns {
        display: flex !important;
        gap: 8px !important;
    }

    .s-pill {
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0 !important; /* Hides text labels */
        border: 1px solid #999 !important;
        background-color: #fff !important;
    }

    .s-pill i {
        font-size: 18px !important;
        color: #111 !important;
        margin: 0 !important;
    }

    /* 6. Today's Bulletin Row Fix */
    .todays-bulletin-section {
        padding: 15px !important;
        margin-top: 25px !important;
    }

    .bulletin-row-card {
        flex-direction: column !important; /* Stack image and info */
        align-items: flex-start !important;
        gap: 15px !important;
        padding: 15px 0 !important;
    }

    .b-thumb {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
    }

    .b-info h4 {
        font-size: 16px !important;
    }

    .b-share-btn {
        width: 100% !important;
        text-align: center !important;
    }

    /* 7. Sidebar (Right Col) Adjustment */
    .sidebar-card {
        margin-bottom: 20px !important;
    }

    .side-featured-thumb {
        height: 200px !important;
    }

    .top-story-list li {
        padding: 15px !important;
    }

    /* 8. Padding for Floating Nav */
    body {
        padding-bottom: 90px !important;
    }
}

/* Specific Fix for Extra Small Screens */
@media (max-width: 480px) {
    .live-title {
        font-size: 18px !important;
    }

    .s-pill {
        width: 36px !important;
        height: 36px !important;
    }

    .s-pill i {
        font-size: 16px !important;
    }
}

/* --- STRICT MOBILE BACKGROUND FIX --- */

@media (max-width: 991px) {
    /* 1. Force Body and Content Containers to White */
    body.live-page-body,
    .live-mt,
    .main-container,
    .left-col,
    .right-col {
        background-color: #ffffff !important;
    }

    /* 2. Fix Today's Bulletin Section background and border */
    .todays-bulletin-section {
        background-color: #ffffff !important;
        border: 1px solid #eeeeee !important;
    }

    /* 3. Ensure all text is dark and visible */
    .live-title, 
    .section-head h3, 
    .b-info h4,
    .share-label,
    .sidebar-card h3,
    .top-story-list li a {
        color: #111111 !important;
    }

    .live-meta,
    .section-head span,
    .b-info p,
    .rank:not(.red) {
        color: #666666 !important;
    }

    /* 4. Ensure the Share row is clean on white background */
    .share-row-pills {
        background-color: #ffffff !important;
        border-bottom: 1px solid #eeeeee !important;
    }

    /* 5. Fix Share Icon container colors */
    .s-pill {
        background-color: #ffffff !important;
        border-color: #999999 !important;
    }

    .s-pill i {
        color: #111111 !important;
    }
}

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75px;
    background-color: #000000;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    display: none;
    /* Changed via media query */
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    padding: 0 10px;
}

/* Visibility Logic */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    /* Add padding to the bottom of the body so the nav doesn't hide content */
    body {
        padding-bottom: 75px;
    }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffff;
    font-family: "Neue Haas Grotesk Display Pro", sans-serif;
    transition: all 0.2s ease;
    flex: 1;
}

.nav-icon {
    width: 24px;
    height: 24px;
    fill: #ffffff;
    /* Default icon color */
    margin-bottom: 5px;
}

.nav-item span {
    font-size: 12px;
    font-weight: 700;
    /* Bold as per image */
    text-align: center;
}

/* Active State Styles */
.nav-item.active {
    color: #E11B22;
    /* Prudent Red */
}

.nav-item.active .nav-icon {
    fill: #E11B22;
    /* Active Icon Color */
}

/* Optional: Slight feedback when clicking */
.nav-item:active {
    transform: scale(0.92);
}