            .video-overlay-play-button {
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                background: rgba(0, 0, 0, 0.6);
                border-radius: 50%;
                width: 60px;
                height: 60px;
                display: flex;
                align-items: center;
                justify-content: center;
                cursor: pointer;
                z-index: 10;
            }
            .video-overlay-play-button::before {
                content: '\25BA';
                color: white;
                font-size: 28px;
                margin-left: 4px;
            }
            .auto-play-toggle{
                background: #fafafa;
                border-radius: 5px;
                padding: 10px 60px 10px 60px;
            }
            .modal .comment-wrapper h4 {
                margin-bottom: 20px;
                font-weight: bold;
            }
            .modal .comment-wrapper {
                border: 1px solid #E2E2E2;
                border-radius: 10px;
                padding: 20px;
                background-color: white;
                margin-top: 40px;
                /*margin-bottom: 60px;*/
            }
            .modal.modal-top-offset .modal-dialog {
            margin-top: 20px !important;     /* Push it below navbar */
            margin-bottom: 20px !important;  /* Space at bottom */
                transform: none !important;      /* Disable vertical centering */
            }

            @media (max-width: 768px) {
                .modal.modal-top-offset .modal-dialog {
                margin-top: 20px !important;
                margin-bottom: 20px !important;
            }
        }

        /* Ensure modal appears below fixed navbar with consistent spacing */
        .modal {
            padding-top: 80px !important;
            padding-bottom: 20px !important;
        }

        @media (max-width: 768px) {
            .modal {
                padding-top: 80px !important;
                padding-bottom: 20px !important;
            }
        }

        .modal-dialog-scrollable {
            max-height: calc(100vh - 120px) !important;
            }
            .modal .btn-close {
                z-index: 1056 !important; /* Higher than Bootstrap modal backdrop (1050) */
                position: relative;
            }
    
            .modal{
                overflow-y: hidden;
            }
    
            .modal-dialog-scrollable{
                height: calc(100% - 80px);
            }
    
            .modal-dialog-scrollable .modal-content{
                max-height: 100%;
                top: 50%;
                transform: translateY(-50%);
            }
    
            .commento-container {
                max-width: 100%; /* Take full width of parent */
                padding: 20px 15px; /* Padding on sides */
                margin: 40px auto; /* Centered with top/bottom spacing */
                background-color: #fff; /* White background */
                border-radius: 8px; /* Slight rounding */
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
            }
    
            /* For larger screens - match the container width */
            @media (min-width: 1200px) {
                .commento-container {
                    max-width: 1300px; /* Same as Bootstrap's container */
                }
            }
    
            @media (min-width: 992px) and (max-width: 1199px) {
                .commento-container {
                    max-width: 960px;
                }
            }
    
            @media (min-width: 768px) and (max-width: 991px) {
                .commento-container {
                    max-width: 720px;
                }
            }
    
            /* Main Commento wrapper */
            #commento {
                font-family: 'Roboto', sans-serif; /* YouTube uses Roboto */
            }
    
            /* Comment input area */
            #commento textarea#commento-textarea-root {
                width: 100%;
                min-height: 40px !important; /* Single-line height */
                max-height: 40px !important; /* Prevent growing beyond one line */
                resize: none; /* Disable resizing */
                padding: 10px 14px; /* Comfortable padding */
                font-size: 14px;
                line-height: 20px;
                border: 1px solid #ccc; /* Light gray border */
                border-radius: 4px;
                box-shadow: none;
                background-color: #f8f9fa; /* Light background */
                transition: border-color 0.3s ease;
            }
    
            #commento textarea#commento-textarea-root:focus {
                border-color: #FFD500; /* Theme color on focus */
                outline: none;
                box-shadow: 0 0 0 2px rgba(255, 213, 0, 0.3); /* Subtle glow */
            }
    
            /* Buttons below the comment input */
            #commento .commento-button {
                background-color: #FFD500; /* Theme color */
                color: #000; /* Black text for contrast */
                border: none;
                border-radius: 20px; /* Rounded like YouTube */
                padding: 6px 16px;
                font-size: 13px;
                font-weight: 500;
                text-transform: uppercase;
                cursor: pointer;
                transition: background-color 0.2s ease;
            }
    
            #commento .commento-button:hover {
                background-color: #ffcc00; /* Slightly darker yellow on hover */
            }
    
            /* Comment cards */
            #commento .commento-card {
                border-bottom: 1px solid #eee; /* Light separator like YouTube */
                padding: 15px 15px;
                margin: 0;
                background-color: transparent;
            }
    
            /* Comment header (username, timestamp) */
            #commento .commento-name {
                font-weight: 500;
                font-size: 13px;
                color: #030303; /* YouTube's dark text color */
            }
    
            #commento .commento-timeago {
                font-size: 12px;
                color: #606060; /* Muted gray like YouTube */
            }
    
            /* Comment body text */
            #commento .commento-body {
                font-size: 14px;
                color: #030303;
                line-height: 1.4;
                margin-top: 4px;
            }
    
            /* Like/Dislike buttons */
            #commento .commento-button-vote {
                color: #606060;
                font-size: 12px;
                padding: 2px 8px;
                background: none;
                border: none;
                cursor: pointer;
            }
    
            #commento .commento-button-vote:hover {
                color: #FFD500; /* Theme color on hover */
            }
    
            /* Reply button */
            #commento .commento-button-reply {
                color: #606060;
                font-size: 12px;
                text-transform: uppercase;
                font-weight: 500;
                background: none;
                border: none;
                cursor: pointer;
            }
    
            #commento .commento-button-reply:hover {
                color: #FFD500; /* Theme color on hover */
            }
    
            /* Sort options */
            #commento .commento-sort-policy {
                font-size: 13px;
                color: #606060;
            }
    
            /* Responsive adjustments */
            @media (max-width: 768px) {
                .commento-container {
                    padding: 15px;
                    margin: 20px 10px;
                }
    
                #commento textarea#commento-textarea-root {
                    font-size: 13px;
                    padding: 8px 12px;
                }
            }
            .speed-controls {
                margin-left: 10px;
            }
    
            .speed-buttons {
                display: flex;
                gap: 5px;
            }
    
            .speed-btn {
                background: #fff;
                border: 1px solid #000;
                border-radius: 4px;
                padding: 2px 6px;
                cursor: pointer;
                font-size: 12px;
                color: #000;
            }
    
            .speed-btn.active {
                background: #000;
                color: #fff;
            }
            .dropdown-menu a {
                text-decoration: none !important;
            }
            .speed-dropdown {
                display: none; /* Hidden by default on desktop */
                padding: 2px 6px;
                border: 1px solid #000;
                border-radius: 4px;
                font-size: 12px;
                background: #fff;
                cursor: pointer;
            }
    
            /* Media query for mobile screens (adjust breakpoint as needed) */
            @media (max-width: 768px) {
                .speed-buttons {
                    display: none; /* Hide buttons on mobile */
                }
    
                .speed-dropdown {
                    display: block; /* Show dropdown on mobile */
                    background: black;
                    color: white;
                }
            }
            body, html {
                overflow: inherit;
                background-color: #f8f9fa;
            }
    
            /*.navbar {*/
            /*    position: fixed;*/
            /*    top: 0;*/
            /*    width: 100%;*/
            /*    z-index: 1020;*/
            /*}*/

            /*!* Navbar Container *!*/
            /*.navbar .container {*/
            /*    display: flex;*/
            /*    align-items: center;*/
            /*    justify-content: space-between;*/
            /*}*/
    
            .news-header {
                display: flex;
                gap: 20px; /* Space between image & text */
                margin-top: 20px;
                align-items: flex-start;
            }
    
            .news-header img {
                width: 100%;
                max-width: 350px;
                border-radius: 8px;
                box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
            }
    
            .news-info {
                flex: 1;
            }
    
            .news-title {
                font-size: 24px;
                font-weight: bold;
                margin-bottom: 10px;
            }
    
            .card-title{
                font-weight: bold;
            }
    
            .news-body-card{
                padding-top: 0 !important;
                padding-bottom: 0 !important;
            }
    
            .news-summary {
                font-size: 16px;
                color: #555;
                margin-top: 5px;
            }
    
            .news-content {
                font-size: 16px;
                line-height: 1.6;
                margin-top: 20px;
                padding-top: 15px;
                border-top: 2px solid #ddd;
            }
    
            .news-content p {
                text-align: justify;
                font-size: 18px;
                color: #333;
                line-height: 1.8;
                margin-bottom: 20px;
                padding-bottom: 10px;
                border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            }
    
            /* Audio Progress Bar */
            .audio-progress {
                flex: 1;
                height: 8px;
                background: rgba(0, 0, 0, 0.3);
                border-radius: 4px;
                overflow: hidden;
                position: relative;
            }
    
            /* Actual progress fill */
            .audio-progress-fill {
                width: 0%; /* Initially empty */
                height: 100%;
                background: black; /* Progress color */
                transition: width 0.2s ease-in-out;
            }
    
            .original-link {
                margin-top: 20px;
                display: block;
                text-align: center;
                font-size: 16px;
                color: #007bff;
                font-weight: bold;
                text-decoration: none;
            }
    
            .original-link:hover {
                text-decoration: underline;
            }
    
            /*.footer {*/
            /*    background-color: #343a40;*/
            /*    color: white;*/
            /*    padding: 20px;*/
            /*    text-align: center;*/
            /*    margin-top: 30px;*/
            /*}*/
    
            @media (max-width: 1000px) {
                .news-header {
                    flex-direction: column;
                    text-align: center;
                    margin-bottom: 20px;
                }
    
                .news-header img {
                    width: 100%;
                    max-width: 100%;
                }
            }
    
            @media (max-width: 1000px) {
                .modal-dialog {
                    max-width: 90%;
                    margin: 0 auto;
                    width: 90%;
                }
            }
    
            .audio-player {
                width: 100%;
                background-color: #ffd015; /* Yellow background */
                padding: 10px;
                border-radius: 10px;
                box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
                display: flex;
                align-items: center;
                justify-content: center;
                position: relative;
            }
    
            /* Audio Control Buttons */
            .audio-player button {
                background: transparent;
                border: none;
                font-size: 24px;
                color: black;
                cursor: pointer;
            }
    
            /* Audio Progress Bar */
            .audio-progress {
                flex: 1;
                height: 8px;
                background: rgba(0, 0, 0, 0.3);
                border-radius: 4px;
                overflow: hidden;
                position: relative;
            }
    
            /* Wavy Progress Animation */
            .audio-progress::before {
                content: "";
                position: absolute;
                width: 0%;
                height: 100%;
                background: black;
                transition: width 0.2s;
            }
    
            /* Wave Animation */
            @keyframes wave-animation {
                0% {
                    transform: scaleY(1);
                }
                50% {
                    transform: scaleY(1.5);
                }
                100% {
                    transform: scaleY(1);
                }
            }
    
            .audio-wave {
                display: flex;
                align-items: center;
                justify-content: center;
                margin-left: 10px;
            }
    
            .audio-wave span {
                display: block;
                width: 5px;
                height: 20px;
                background: black;
                margin: 0 2px;
                transform: scaleY(1);
                transition: transform 0.2s;
            }
    
            .audio-wave.playing span {
                animation: wave-animation 1s infinite ease-in-out;
            }
    
            /* New News Card Styles */
            .news-card {
                border-radius: 12px;
                border: 1px solid #e9ecef;
                padding: 16px;
                margin-bottom: 20px;
                transition: all 0.3s ease;
                background: #fff;
            }
            
            .news-card:hover {
                transform: translateY(-2px);
                box-shadow: 0 4px 15px rgba(0,0,0,0.1);
                border-color: #FFD500;
            }
            
            .news-card-top {
                display: flex;
                align-items: flex-start;
                gap: 12px;
                margin-bottom: 12px;
            }
            
            .news-card-image-container {
                flex-shrink: 0;
                width: 80px;
                height: 80px;
                border-radius: 8px;
                overflow: hidden;
                background: #f2f2f2;
            }
            
            .news-card-image-container img,
            .news-card-image-container .news-image {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
            
            .card-title {
                font-weight: 600;
                font-size: 20px;
                line-height: 1.3;
                color: #333;
                margin-bottom: 6px;
            }
            
            .news-category-pill {
                background-color: #e9ecef;
                color: #000;
                padding: 4px 12px;
                border-radius: 20px;
                font-size: 12px;
                font-weight: 500;
                white-space: nowrap;
                flex-shrink: 0;
                display: inline-block;
            }
            
            .card-description {
                color: #666;
                line-height: 1.4;
                margin: 0 0 12px 0;
                font-size: 16px;
                display: -webkit-box;
                -webkit-line-clamp: 3;
                -webkit-box-orient: vertical;
                overflow: hidden;
            }
            
            .card-footer-section {
                margin-top: auto;
                position: relative;
                padding-top: 10px;
                border-top: 1px solid #e9ecef;
            }
            
            .source-section {
                display: flex;
                align-items: center;
                gap: 8px;
                flex: 1;
            }
            
            .action-section {
                gap: 8px;
                flex-shrink: 0;
            }
            
            .source-pill {
            display: none !important; /* Hide the black source pill */
            }
            
            
    
            
            .bookmark-badge {
                width: 30px;
                height: 30px;
                background-color: #303f9f;
                border: 1px solid #303f9f;
                transition: all 0.2s ease;
            }
            
            .bookmark-badge:hover {
                background-color: #3f51b5;
                border-color: #3f51b5;
            }
            
            .bookmark-icon {
                font-size: 14px;
                cursor: pointer;
                color: white;
            }
            
            .bookmark-icon:hover {
                color: white;
            }
    
            @keyframes wave-animation {
                0% {
                    transform: scaleY(1);
                }
                50% {
                    transform: scaleY(1.8);
                }
                100% {
                    transform: scaleY(1);
                }
            }
    
            @media (min-width: 769px){
                .news-card-image-container {
                    width: 80px;
                    height: 80px;
                }
            }
    
            @media (max-width: 768px) {
                .news-card {
                    padding: 12px !important;
                }
    
                .news-card-top {
                    gap: 8px;
                    margin-bottom: 10px;
                }
                
                .news-card-image-container {
                    width: 60px !important;
                    height: 60px !important;
                }
    
                .card-title {
                    font-size: 18px !important;
                }
                
                .news-category-pill {
                    font-size: 11px !important;
                    padding: 3px 10px !important;
                    margin-left: 2px;
                }
    
                .card-description {
                    font-size: 16px !important;
                    margin-bottom: 10px;
                }
    
                .source-pill {
                    font-size: 10px !important;
                    padding: 3px 8px !important;
                }
    
                .audio-badge {
                    font-size: 10px !important;
                    padding: 2px 6px !important;
                }
    
                .bookmark-badge {
                    width: 24px !important;
                    height: 24px !important;
                }
                
                .bookmark-icon {
                    font-size: 12px !important;
                }
    
                .audio-player {
                    top: 0px; /* Set to 0 for mobile */
                }
    
                .category-selector {
                    line-height: 15px;
                }
            }
    
            .audio-wave span:nth-child(1) {
                animation-delay: 0s;
            }
    
            .audio-wave span:nth-child(2) {
                animation-delay: 0.2s;
            }
    
            .audio-wave span:nth-child(3) {
                animation-delay: 0.4s;
            }
    
            .audio-wave span:nth-child(4) {
                animation-delay: 0.6s;
            }
    
            .audio-wave span:nth-child(5) {
                animation-delay: 0.8s;
            }
            .search-box {
                border: 1px solid #ccc;
                border-radius: 8px;
                padding-left: 10px;
                padding-right: 10px;
                background-color: #fff;
                align-items: center;
                /*position: relative;*/
                height: 38px;
            }
    
            .search-box .category-btn {
                background: transparent;
                border: none;
                color: #555;
                font-size: 14px;
                padding: 0 12px;
                border-right: 1px solid #ddd;
                height: 100%;
                display: flex;
                align-items: center;
            }
    
            .search-box .search-icon {
                margin-left: 10px;
                color: #999;
                font-size: 14px;
                display: flex;
                align-items: center;
            }
    
            .search-box .search-input {
                border: none;
                box-shadow: none;
                outline: none;
                flex-grow: 1;
                padding-left: 8px;
                font-size: 14px;
                background-color: transparent;
                display: flex;
                align-items: center;
            }
    
            .search-box .form-control:focus {
                box-shadow: none;
            }
            @media (max-width: 767.98px) {
                .search-box {
                    width: 100% !important;
                    max-width: 100% !important;
                    margin-top: 10px;
                }
    
                .search-box .category-btn {
                    padding: 0 8px;
                    font-size: 13px;
                }
    
                .search-box .search-input {
                    font-size: 13px;
                }
    
                .search-box .search-icon {
                    margin-left: 8px;
                    font-size: 13px;
                }
            }
            @media (min-width: 768px) and (max-width: 1024.98px) {
                .search-box {
                    width: 100% !important;
                    max-width: 100% !important;
                    margin-top: 10px;
                }
    
                .search-box .category-btn {
                    padding: 0 10px;
                    font-size: 14px;
                    height: 100%;
                    display: flex;
                    align-items: center;
                }
    
                .search-box .search-input {
                    font-size: 14px;
                    padding-left: 8px;
                }
    
                .search-box .search-icon {
                    margin-left: 10px;
                    font-size: 14px;
                }
            }
    
            #categoryDropdownMenu {
                max-height: 250px;
                overflow-y: auto;
                scrollbar-width: none; /* Firefox */
                -ms-overflow-style: none; /* IE 10+ */
            }
    
            #categoryDropdownMenu::-webkit-scrollbar {
                display: none; /* Chrome, Safari */
            }
    
            .scroll-container {
                max-height: 250px;
                overflow-y: auto;
                scrollbar-width: none;
            }
    
            .scroll-container::-webkit-scrollbar {
                display: none;
            }
            .video-thumbnail-wrapper {
                position: relative;
                display: block;
                overflow: hidden;
                border-radius: 8px;
            }
    
            .video-thumbnail-wrapper img {
                display: block;
                width: 100%;
                height: auto;
                border-radius: 8px;
            }
    
            .play-icon-overlay {
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                color: white;
                font-size: 40px;
                opacity: 0;
                transition: opacity 0.3s ease;
                cursor: pointer;
            }
    
            /* Show play icon only on hover if it's a video */
            .video-thumbnail-wrapper.has-video .play-icon-overlay {
                opacity: 1;
            }
            
            /* --- Sentiment Icon Styles --- */
            .sentiment-icon {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                width: 24px;
                height: 24px;
                border-radius: 50%;
                margin-left: 8px; /* Space between source and sentiment */
                font-size: 14px; /* Icon size */
            }
            .sentiment-icon.positive {
                background-color: #e6f7e6;
                border: 2px solid #a8e6a8;
                color: #2f852f; /* Icon color */
            }
            .sentiment-icon.neutral {
                background-color: #e6f2f7;
                border: 2px solid #a8d8e6;
                color: #3b7197; /* Icon color */
            }
            .sentiment-icon.negative {
                background-color: #f7e6e6;
                border: 2px solid #e6a8a8;
                color: #c0392b; /* Icon color */
            }
            .sentiment-icon .emoji {
                font-size: 14px;
            }
    
            /* --- Sentiment Tooltip --- */
            .sentiment-icon-wrapper {
                position: relative;
                display: inline-flex;
            }
    
            .sentiment-tooltip {
                visibility: hidden;
                background-color: #555;
                color: #fff;
                text-align: center;
                border-radius: 6px;
                padding: 5px 10px;
                position: absolute;
                z-index: 999999;
                bottom: 125%;
                left: 50%;
                transform: translateX(-50%);
                opacity: 0;
                transition: opacity 0.3s;
                font-size: 12px;
                white-space: nowrap;
            }
    
            .sentiment-icon-wrapper:hover .sentiment-tooltip {
                visibility: visible;
                opacity: 1;
            }
    
            .sentiment-tooltip::after {
                content: "";
                position: absolute;
                top: 100%;
                left: 50%;
                margin-left: -5px;
                border-width: 5px;
                border-style: solid;
                border-color: #555 transparent transparent transparent;
            }

        /* Bias Segmented Bar for Homepage */
        .bias-segmented-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex: 1;
            margin-left: 0px; /* Space for source/sentiment on left */
            margin-right: 5px;
            min-width: 0; /* Allow flex shrinking */
        }

        .bias-bar-container {
            display: flex;
            width: 60%;
            max-width: calc(100% - 60px);
            height: 28px;
            border-radius: 14px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
            flex-shrink: 0;
            background-color: #f5f5f5;
        }

        .bias-segment {
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 11px;
            position: relative;
        }

        .bias-segment-left {
            background-color: #214986;
            color: #ffffff;
        }

        .bias-segment-left span{
            margin-right: 5px;
        }

        .bias-segment-center {
            background-color: #ffffff;
            color: #000000;
        }

        .bias-segment-right {
            background-color: #802827;
            color: #ffffff;
        }

        .bias-segment-right span{
            margin-right: 5px;
        }

        .bias-sources-count {
            font-weight: 600;
            color: #000000;
            white-space: nowrap;
            font-size: 11px;
            margin-left: auto;
            margin-right: 12px;
            flex-shrink: 0;
        }

        /* Mobile version - hidden on desktop */
        .bias-segmented-bar-mobile {
            display: none;
            margin-top: 12px;
            margin-bottom: 12px;
            width: 100%;
        }

        /* Desktop version - always visible on desktop */
        .bias-segmented-bar-desktop {
            display: flex;
        }

        @media (max-width: 768px) {
            /* Hide desktop version on mobile */
            .bias-segmented-bar-desktop {
                display: none !important;
            }

            /* Show mobile version on mobile */
            .bias-segmented-bar-mobile {
                display: flex;
                margin-left: 0;
                margin-right: 0;
                margin-top: 12px;
                margin-bottom: 12px;
                width: 100%;
                gap: 4px;
            }

            .bias-segmented-bar-mobile .bias-bar-container {
                max-width: 100%;
                width: 80%;
                height: 24px; /* Reduced height for mobile */
            }

            .bias-segmented-bar-mobile .bias-segment {
                font-size: 9px; /* Smaller font for mobile */
            }

            .bias-segmented-bar-mobile .bias-sources-count {
                font-size: 9px; /* Smaller font for mobile */
                margin-left: 0; /* Remove auto margin on mobile to reduce gap */
            }

            /* Keep desktop version styles for footer (though hidden) */
            .bias-segmented-bar {
                margin-left: 0px; /* Space for sentiment icon (24px + 8px gap) */
                margin-right: 4px;
                flex: 1;
                min-width: 0;
                gap: 4px; /* Reduced gap between bar and sources count */
            }

            .bias-bar-container {
                max-width: 100%;
                width: 50%; /* Slightly narrower to make room */
                height: 24px; /* Reduced height for mobile */
            }

            .bias-segment {
                font-size: 9px; /* Smaller font for mobile */
            }

            .bias-sources-count {
                font-size: 9px; /* Smaller font for mobile */
                margin-left: 0; /* Remove auto margin on mobile to reduce gap */
            }
        }
        
        /* Event Trending News Styles */
        #event-trending-container h4.fw-bold {
            color: #9e9e9e !important; /* Light grey color */
        }
        .event-trending-card {
            border-radius: 12px;
            border: 1px solid #e9ecef;
            padding: 12px;
            margin-bottom: 0;
            transition: all 0.3s ease;
            background: #ffffff;
            height: 100%;
            display: flex;
            flex-direction: column;
        }
        
        .event-trending-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            border-color: #FFD500;
        }
        
        .event-trending-top {
            display: flex;
            align-items: flex-start;
            gap: 12px;
        }
        
        .event-trending-image-container {
            flex-shrink: 0;
            width: 80px;
            height: 80px;
            border-radius: 8px;
            overflow: hidden;
            background: #f2f2f2;
        }
        
        .event-trending-image-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .event-trending-card .card-title {
            font-weight: 600;
            font-size: 18px;
            line-height: 1.5;
            color: #333;
            margin: 0;
            min-height: 2.6em; /* Reserve space for 2 lines (1.3 * 2) */
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            flex: 1;
        }
        
        .event-trending-card .card-description {
            color: #666;
            line-height: 1.4;
            margin: 0 0 8px 0;
            font-size: 15px;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            flex: 1;
            min-height: 0; /* Allow flex shrinking */
        }
        
        .event-trending-card .card-footer {
            margin-top: auto; /* Push footer to bottom */
            padding-top: 10px;
            border-top: 1px solid #e9ecef;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-shrink: 0;
            gap: 8px;
        }
        
        .event-trending-card .source-pill {
            font-size: 11px;
            padding: 4px 8px;
        }
        
        /* Bias meter for event trending cards - in footer */
        .event-trending-card .event-trending-bias {
            display: flex;
            align-items: center;
            gap: 4px;
            flex-shrink: 0;
        }
        
        .event-trending-card .event-trending-bias .bias-bar-container {
            display: flex;
            width: calc(100% - 60px);
            height: 18px;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
            flex-shrink: 0;
            background-color: #f5f5f5;
        }
        
        .event-trending-card .event-trending-bias .bias-segment {
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 8px;
            position: relative;
        }
        
        .event-trending-card .event-trending-bias .bias-sources-count {
            font-weight: 600;
            color: #000000;
            white-space: nowrap;
            font-size: 8px;
            flex-shrink: 0;
        }
        
        @media (max-width: 768px) {
            .event-trending-card .event-trending-bias .bias-bar-container {
                width: calc(100% - 60px);
                height: 16px;
            }
            
            .event-trending-card .event-trending-bias .bias-segment {
                font-size: 7px;
            }
            
            .event-trending-card .event-trending-bias .bias-sources-count {
                font-size: 7px;
            }
        }
        
        /* Desktop: scrollable row showing 3 cards at a time */
        @media (min-width: 769px) {
            #event-trending-news-row {
                overflow-x: auto;
                overflow-y: hidden;
                flex-wrap: nowrap !important;
                scroll-snap-type: x mandatory;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
                -ms-overflow-style: none;
                padding-bottom: 4px;
            }

            #event-trending-news-row::-webkit-scrollbar {
                display: none;
            }

            #event-trending-news-row > div {
                flex: 0 0 calc(33.333% - 8px) !important;
                max-width: calc(33.333% - 8px) !important;
                width: calc(33.333% - 8px) !important;
                scroll-snap-align: start;
                flex-shrink: 0;
            }
        }

        /* Trending nav arrows */
        .trending-nav-btn {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            padding: 0;
            font-size: 18px;
            line-height: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid #dee2e6;
            background: #fff;
            cursor: pointer;
            transition: background 0.15s, border-color 0.15s;
        }

        .trending-nav-btn:hover {
            background: #FFD500;
            border-color: #FFD500;
            color: #000;
        }

        [data-theme="dark"] .trending-nav-btn {
            background: #252525;
            border-color: #444;
            color: #fff;
        }

        [data-theme="dark"] .trending-nav-btn:hover {
            background: #FFD500;
            border-color: #FFD500;
            color: #000;
        }

        /* Mobile slider for trending cards */
        @media (max-width: 768px) {
            #event-trending-news-row {
                display: flex !important;
                overflow-x: auto !important;
                overflow-y: hidden !important;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
                -ms-overflow-style: none;
                gap: 12px;
                flex-wrap: nowrap !important;
                padding-bottom: 10px;
                margin: 0;
            }
            
            #event-trending-news-row::-webkit-scrollbar {
                display: none;
            }
            
            #event-trending-news-row .col-12,
            #event-trending-news-row > div {
                flex: 0 0 85% !important;
                max-width: 85% !important;
                width: 85% !important;
            }
            
            .event-trending-card {
                padding: 10px;
            }
            
            .event-trending-image-container {
                width: 60px;
                height: 60px;
            }
            
            .event-trending-card .card-title {
                font-size: 18px;
            }
            
            .event-trending-card .card-description {
                font-size: 16px;
            }
        }
    
            .category-pill {
                padding: 5px 12px;
                border: 1px solid #ddd;
                border-radius: 20px;
                cursor: pointer;
                transition: all 0.2s ease;
                user-select: none;
            }
            .category-pill.selected {
                background-color: #FFD500;
                color: white;
                border-color: #FFD500;
            }

        /* Ensure category selector links look like buttons */
        .category-selector {
            text-decoration: none !important;
        }
        .category-selector:hover,
        .category-selector:focus,
        .category-selector:active {
            text-decoration: none !important;
            color: inherit;
        }
            
            .sentiment-pill {
                padding: 8px 16px;
                border: 2px solid #ddd;
                border-radius: 20px;
                cursor: pointer;
                transition: all 0.3s ease;
                user-select: none;
                background: white;
                display: inline-flex;
                align-items: center;
                font-weight: 500;
            }
            .sentiment-pill:hover {
                transform: translateY(-2px);
                box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            }
            .sentiment-pill[data-sentiment="positive"] {
                border-color: #28a745;
                color: #28a745;
            }
            .sentiment-pill[data-sentiment="positive"].selected {
                background-color: #28a745;
                color: white;
            }
            .sentiment-pill[data-sentiment="neutral"] {
                border-color: #6c757d;
                color: #6c757d;
            }
            .sentiment-pill[data-sentiment="neutral"].selected {
                background-color: #6c757d;
                color: white;
            }
            .sentiment-pill[data-sentiment="negative"] {
                border-color: #dc3545;
                color: #dc3545;
            }
            .sentiment-pill[data-sentiment="negative"].selected {
                background-color: #dc3545;
                color: white;
            }
            
            /* Preferences Modal Sizing */
            #preferencesModal .modal-dialog {
                max-width: 700px;
            }
            #preferencesModal .modal-body {
                max-height: 70vh;
                overflow-y: auto;
            }
            @media (max-width: 768px) {
                #preferencesModal .modal-dialog {
                    max-width: 95%;
                    margin: 10px auto;
                }
                #preferencesModal .modal-body {
                    max-height: 60vh;
                }
            }
            
            .source-pill .source-name {
                display: inline-block;
                max-width: 150px;   /* ~50 chars depending on font size */
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                vertical-align: middle;
            }
            /* Banner container: slim, no alert chrome */
            .for-you-banner{
                display:flex;
                align-items:center;
                justify-content:space-between;
                gap:.75rem;
                padding: .25rem 0;            /* tight like the screenshot */
                margin-bottom:.75rem;
                background:transparent;
                border:0;
                font-size:14px;               /* small text */
                color:#6b7280;                /* muted gray */
            }

            /* Left chunk (icon + text) */
            .for-you-left{
                display:flex;
                align-items:center;
                gap:.5rem;
                line-height:1.3;
            }

            /* “Personalize ▸” pill */
            .for-you-pill{
                display:inline-flex;
                align-items:center;
                gap:.35rem;
                padding:.25rem .6rem;
                border:1px solid #e5e7eb;     /* light outline like the image */
                background:#ffffff;
                color:#111827;                /* near-black text */
                border-radius:9999px;         /* pill */
                font-size:12px;
                font-weight:600;
                line-height:1;
            }

            .for-you-pill:hover{
                background:#f9fafb;
                border-color:#d1d5db;
            }

        /* Mobile App Download Banner */
        #appDownloadBanner {
            position: fixed;
            bottom: -200px;
            left: 0;
            right: 0;
            background: linear-gradient(135deg, #FFD500 0%, #FFC700 100%);
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
            z-index: 9998;
            transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            border-top-left-radius: 16px;
            border-top-right-radius: 16px;
        }

        #appDownloadBanner.show {
            bottom: 0;
        }

        .app-banner-content {
            padding: 16px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .app-banner-icon {
            width: 56px;
            height: 56px;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .app-banner-text {
            flex: 1;
            min-width: 0;
        }

        .app-banner-title {
            font-size: 15px;
            font-weight: 700;
            color: #000;
            margin: 0 0 2px 0;
            line-height: 1.3;
        }

        .app-banner-subtitle {
            font-size: 12px;
            color: #333;
            margin: 0;
            line-height: 1.3;
        }

        .app-banner-button {
            background: #000;
            color: #FFD500;
            border: none;
            padding: 10px 20px;
            border-radius: 20px;
            font-weight: 600;
            font-size: 14px;
            text-decoration: none;
            display: inline-block;
            white-space: nowrap;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            transition: transform 0.2s;
        }

        .app-banner-button:hover {
            transform: scale(1.05);
            color: #FFD500;
        }

        .app-banner-close {
            background: rgba(0, 0, 0, 0.1);
            border: none;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: #000;
            font-size: 18px;
            flex-shrink: 0;
            transition: background 0.2s;
        }

        .app-banner-close:hover {
            background: rgba(0, 0, 0, 0.2);
        }

        @media (min-width: 768px) {
            #appDownloadBanner {
                display: none !important;
            }
        }

        /* Dark Mode Toggle Button */
        .theme-toggle-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            border: 2px solid #6c757d;
            background: transparent;
            transition: all 0.3s ease;
        }

        .theme-toggle-btn:hover {
            background: #6c757d;
            color: white;
            transform: scale(1.1);
        }

        .theme-toggle-btn i {
            font-size: 18px;
        }

        /* Theme Selector in Top Header Bar */
        .theme-selector-top {
            font-size: 13px;
        }

        .theme-option {
            transition: color 0.2s ease;
            user-select: none;
        }

        .theme-option:hover {
            color: #ffffff !important;
        }

        .theme-option.active {
            color: #ffffff !important;
            font-weight: 500;
        }

        @media (max-width: 768px) {
            /* Hide date/time on mobile */
            #current-time {
                display: none !important;
            }

            .theme-selector-top {
                font-size: 12px;
            }

            .theme-selector-top span {
                font-size: 12px !important;
            }

            .theme-options {
                gap: 6px !important;
            }

            .jqjo-social-icons {
                margin-bottom: 0.5rem !important;
            }

            #event-trending-container {
                margin-top: 0rem !important;
                margin-bottom: -1rem !important;
            }

            #event-trending-container .mb-3 {
                margin-bottom: 0.15rem !important;
            }
            
            #event-trending-container .row.g-3 {
                margin-bottom: 0 !important;
            }
        }

        /* Dark Mode CSS Variables */
        :root {
            --bg-primary: #f8f9fa;
            --bg-secondary: #ffffff;
            --text-primary: #333333;
            --text-secondary: #666666;
            --text-muted: #999999;
            --border-color: #e9ecef;
            --card-bg: #ffffff;
            --card-border: #e9ecef;
            --navbar-bg: #FFD500;
            --input-bg: #ffffff;
            --input-border: #ccc;
        }

        [data-theme="dark"] {
            --bg-primary: #121212;
            --bg-secondary: #1e1e1e;
            --text-primary: #e0e0e0;
            --text-secondary: #b0b0b0;
            --text-muted: #808080;
            --border-color: #333333;
            --card-bg: #1e1e1e;
            --card-border: #333333;
            --navbar-bg: #1a1a1a;
            --input-bg: #2a2a2a;
            --input-border: #444444;
        }

        /* Apply Dark Mode Styles */
        [data-theme="dark"] body,
        [data-theme="dark"] html {
            background-color: var(--bg-primary);
            color: var(--text-primary);
        }

        [data-theme="dark"] .navbar {
            background-color: var(--navbar-bg) !important;
        }

        [data-theme="dark"] .news-card,
        [data-theme="dark"] .event-trending-card {
            background-color: #252525;
            border-color: var(--card-border);
            color: var(--text-primary);
        }
        
        [data-theme="dark"] .card-footer-section {
            border-top-color: var(--border-color);
        }

        [data-theme="dark"] .card-title,
        [data-theme="dark"] .news-title,
        [data-theme="dark"] h4,
        [data-theme="dark"] h5 {
            color: var(--text-primary);
        }

        [data-theme="dark"] .text-muted {
            color: var(--text-muted) !important;
        }

        [data-theme="dark"] .card-description,
        [data-theme="dark"] .news-summary {
            color: var(--text-secondary);
        }

        [data-theme="dark"] .search-box {
            background-color: var(--input-bg);
            border-color: var(--input-border);
        }

        [data-theme="dark"] .search-input {
            background-color: var(--input-bg);
            color: var(--text-primary);
        }

        [data-theme="dark"] .search-input::placeholder {
            color: var(--text-muted);
        }

        [data-theme="dark"] .category-holder {
            background-color: var(--bg-primary);
        }

        [data-theme="dark"] .category-selector {
            color: var(--text-primary);
            background-color: var(--bg-secondary);
            border-color: var(--border-color);
        }

        [data-theme="dark"] .category-selector:hover {
            background-color: #FFD500 !important;
            color: #000000 !important;
        }

        [data-theme="dark"] .category-selector.active {
            background-color: #FFD500;
            color: #000;
        }

        [data-theme="dark"] .jqjo-social-icons a {
            color: var(--text-primary);
        }

        [data-theme="dark"] .jqjo-social-icons a:hover {
            color: #FFD500;
        }

        [data-theme="dark"] .dropdown-menu {
            background-color: var(--card-bg);
            border-color: var(--card-border);
        }

        [data-theme="dark"] .dropdown-item {
            color: var(--text-primary);
        }

        [data-theme="dark"] .dropdown-item:hover {
            background-color: var(--bg-secondary);
            color: var(--text-primary);
        }

        [data-theme="dark"] .btn-outline-secondary {
            border-color: var(--border-color);
            color: var(--text-primary);
        }

        [data-theme="dark"] .btn-outline-secondary:hover {
            background-color: var(--bg-secondary);
            border-color: var(--border-color);
            color: var(--text-primary);
        }

        [data-theme="dark"] .modal-content {
            background-color: var(--card-bg);
            color: var(--text-primary);
        }

        [data-theme="dark"] .modal-header {
            border-bottom-color: var(--border-color);
        }

        [data-theme="dark"] .modal-footer {
            border-top-color: var(--border-color);
        }

        [data-theme="dark"] .form-control {
            background-color: var(--input-bg);
            border-color: var(--input-border);
            color: var(--text-primary);
        }

        [data-theme="dark"] .form-control:focus {
            background-color: var(--input-bg);
            border-color: #FFD500;
            color: var(--text-primary);
        }

        [data-theme="dark"] .source-pill {
            background-color: var(--bg-secondary);
            color: #ffffff !important;
            border-color: var(--border-color);
        }

        [data-theme="dark"] .source-pill .source-name {
            color: #ffffff !important;
        }

        [data-theme="dark"] .event-trending-card .source-pill {
            color: #ffffff !important;
        }

        [data-theme="dark"] .event-trending-card .source-pill .source-name {
            color: #ffffff !important;
        }

        [data-theme="dark"] .news-category-pill {
            background-color: #0c0a0a;
            color: var(--text-primary);
        }

        [data-theme="dark"] .bias-bar-container {
            background-color: #2a2a2a;
        }

        [data-theme="dark"] .bias-segment-center {
            background-color: #ffffff;
            color: #000000;
        }

        [data-theme="dark"] .bias-sources-count {
            color: var(--text-primary) !important;
        }

        [data-theme="dark"] .footer {
            background-color: var(--navbar-bg);
        }

        [data-theme="dark"] .btn-read {
            background-color: #FFD500;
            color: #000000;
        }
        
        [data-theme="dark"] .btn-watch {
            background-color: #424649;
            color: var(--text-primary);
        }

        [data-theme="dark"] .commento-container {
            background-color: var(--card-bg);
        }

        [data-theme="dark"] #commento textarea#commento-textarea-root {
            background-color: var(--input-bg);
            border-color: var(--input-border);
            color: var(--text-primary);
        }

        [data-theme="dark"] .for-you-banner {
            background-color: var(--card-bg);
            color: var(--text-secondary);
        }

        [data-theme="dark"] .for-you-pill {
            background-color: var(--card-bg);
            border-color: var(--border-color);
            color: var(--text-primary);
        }

        [data-theme="dark"] #appDownloadBanner {
            background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
        }

        [data-theme="dark"] .app-banner-title,
        [data-theme="dark"] .app-banner-subtitle {
            color: var(--text-primary);
        }

        [data-theme="dark"] .theme-toggle-btn {
            border-color: var(--text-primary);
            color: var(--text-primary);
        }

        [data-theme="dark"] .theme-toggle-btn:hover {
            background-color: var(--text-primary);
            color: var(--bg-primary);
        }

        [data-theme="dark"] .btn-dark {
            background-color: var(--bg-secondary);
            border-color: var(--border-color);
            color: var(--text-primary);
        }

        [data-theme="dark"] .btn-dark:hover {
            background-color: var(--bg-primary);
            border-color: var(--border-color);
        }

        [data-theme="dark"] .btn-outline {
            background-color: #212529;
            border-color: #212529;
            color: #ffffff;
        }

        [data-theme="dark"] .btn-outline:hover {
            background-color: #424649;
            border-color: #424649;
            color: #ffffff;
        }

        [data-theme="dark"] .btn-outline-dark {
            background-color: #212529;
            border-color: #212529;
            color: #ffffff;
        }

        [data-theme="dark"] .btn-outline-dark:hover {
            background-color: #424649;
            border-color: #424649;
            color: #ffffff;
        }

        [data-theme="dark"] .btn-dark {
            background-color: #212529;
            border-color: #212529;
            color: #ffffff;
        }

        [data-theme="dark"] .btn-dark:hover {
            background-color: #424649;
            border-color: #424649;
            color: #ffffff;
        }

        [data-theme="dark"] .btn-primary {
            background-color: #FFD500;
            border-color: #FFD500;
            color: #000;
        }

        [data-theme="dark"] .btn-primary:hover {
            background-color: #ffcc00;
            border-color: #ffcc00;
        }

        [data-theme="dark"] .btn-secondary {
            background-color: var(--bg-secondary);
            border-color: var(--border-color);
            color: var(--text-primary);
        }

        [data-theme="dark"] .btn-secondary:hover {
            background-color: var(--bg-primary);
            border-color: var(--border-color);
        }

        [data-theme="dark"] .badge {
            background-color: var(--bg-secondary);
            color: var(--text-primary);
        }

        [data-theme="dark"] .alert {
            background-color: var(--card-bg);
            border-color: var(--border-color);
            color: var(--text-primary);
        }

        [data-theme="dark"] .pagination .page-link {
            background-color: var(--card-bg);
            border-color: var(--border-color);
            color: var(--text-primary);
        }

        [data-theme="dark"] .pagination .page-link:hover {
            background-color: var(--bg-secondary);
            color: var(--text-primary);
        }

        [data-theme="dark"] .pagination .page-item.active .page-link {
            background-color: #FFD500;
            border-color: #FFD500;
            color: #000;
        }

        [data-theme="dark"] .list-group-item {
            background-color: var(--card-bg);
            border-color: var(--border-color);
            color: var(--text-primary);
        }

        [data-theme="dark"] .table {
            color: var(--text-primary);
        }

        [data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) {
            background-color: var(--bg-secondary);
        }

        [data-theme="dark"] .table-hover > tbody > tr:hover {
            background-color: var(--bg-secondary);
        }

        [data-theme="dark"] .border {
            border-color: var(--border-color) !important;
        }

        [data-theme="dark"] .shadow-sm {
            box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.5) !important;
        }

        [data-theme="dark"] .shadow {
            box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5) !important;
        }

        [data-theme="dark"] .bg-light {
            background-color: var(--bg-secondary) !important;
        }

        [data-theme="dark"] .bg-white {
            background-color: var(--card-bg) !important;
        }

        [data-theme="dark"] .text-dark {
            color: var(--text-primary) !important;
        }

        [data-theme="dark"] .text-black {
            color: var(--text-primary) !important;
        }

        [data-theme="dark"] hr {
            border-color: var(--border-color);
        }

        [data-theme="dark"] .audio-player {
            background-color: #FFD500;
        }

        [data-theme="dark"] .audio-badge {
            background-color: #FFD500 !important;
            color: #000 !important;
        }

        /* Logo color inversion in dark mode */
        [data-theme="dark"] .logo {
            filter: brightness(0) invert(1);
        }
        
        /* Top header bar styling */
        .top-header-bar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1050;
            background-color: #2c2c2c;
            color: #ffffff;
            padding: 8px 0;
            font-size: 13px;
            border-bottom: 1px solid #3a3a3a;
        }

        #current-time {
            font-size: 13px;
        }
        
        /* Adjust navbar position to be below top header */
        .navbar {
            position: fixed;
            top: 35px;
            left: 0;
            right: 0;
            z-index: 1040;
        }
        
        /* Add padding to body to account for both headers */
        body {
            padding-top: 100px;
        }
        
        /* Top header bar dark mode */
        [data-theme="dark"] .top-header-bar {
            background-color: #1a1a1a !important;
            color: #ffffff !important;
            border-bottom-color: #2a2a2a !important;
        }
        
        /* Ensure country dropdown appears above navbar */
        #countryDropdown ~ .dropdown-menu,
        .dropdown-menu[aria-labelledby="countryDropdown"] {
            z-index: 1060 !important;
        }
        
        /* Trending Titles Ticker */
        .trending-ticker-wrapper {
            position: fixed;
            top: 100px; /* Below navbar (35px top header + 55px navbar) */
            left: 0;
            right: 0;
            z-index: 1030;
            background-color: #f8f9fa;
            border-bottom: 1px solid #dee2e6;
            overflow-x: auto;
            overflow-y: hidden;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none; /* IE and Edge */
        }
        
        .trending-ticker-wrapper::-webkit-scrollbar {
            display: none; /* Chrome, Safari, Opera */
        }
        
        .trending-ticker {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 8px 15px;
            min-height: 40px;
            position: relative;
        }
        
        .trending-titles-list {
            display: flex;
            align-items: center;
            gap: 10px;
            white-space: nowrap;
            overflow-x: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
            padding-right: 15px;
            -webkit-overflow-scrolling: touch;
        }
        
        .trending-titles-list::-webkit-scrollbar {
            display: none;
        }
        
        /* Arrow pill - first item, sticky on scroll */
        .trending-arrow-pill {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background-color: #f8f9fa;
            color: #000000;
            font-size: 12px;
            padding: 6px 12px;
            border-radius: 20px;
            position: sticky;
            left: 0;
            z-index: 5;
            flex-shrink: 0;
        }
        
        [data-theme="dark"] .trending-arrow-pill {
            background-color: #f8f9fa;
            color: #000000;
        }
        
        .trending-title-item {
            display: inline-flex;
            align-items: center;
            background-color: #000000;
            color: #ffffff;
            text-decoration: none;
            font-size: 13px;
            font-weight: 500;
            padding: 6px 12px;
            border-radius: 20px;
            white-space: nowrap;
            transition: all 0.2s;
            flex-shrink: 0;
            gap: 8px;
        }
        
        .trending-title-item:hover {
            background-color: #333333;
            color: #ffffff;
            text-decoration: none;
        }
        
        /* Adjust body padding to account for ticker */
        body {
            padding-top: 130px; /* 35px top header + 55px navbar + 40px ticker */
        }
        
        /* Dark mode for trending ticker */
        [data-theme="dark"] .trending-ticker-wrapper {
            background-color: #1a1a1a;
            border-bottom-color: #333;
        }
        
        [data-theme="dark"] .trending-title-item {
            background-color: #FFD500;
            color: #000000;
        }
        
        [data-theme="dark"] .trending-title-item:hover {
            background-color: #ffcc00;
            color: #000000;
        }
        
        /* Tablet responsive */
        @media (max-width: 1024px) and (min-width: 769px) {
            .trending-titles-list {
                padding-right: 12px;
            }
        }
        
        /* Mobile responsive */
        @media (max-width: 768px) {
            .trending-ticker-wrapper {
                top: 100px; /* Adjust for mobile navbar height */
            }
            
            .trending-ticker {
                padding: 8px 10px;
                min-height: 40px;
                gap: 8px;
                justify-content: center;
            }
            
            .trending-arrow-pill {
                font-size: 13px;
                padding: 8px 14px;
            }
            
            .trending-title-item {
                font-size: 13px;
                padding: 8px 14px;
                border-radius: 20px;
                flex-shrink: 0; /* Prevent tags from shrinking */
            }
            
            .trending-titles-list {
                gap: 8px;
                padding-right: 10px;
            }
            
            body {
                padding-top: 115px; /* Adjust for mobile */
            }
        }
        
        /* Small mobile screens */
        @media (max-width: 480px) {
            .trending-titles-list {
                padding-right: 8px;
                gap: 8px;
            }
            
            .trending-title-item {
                font-size: 12px;
                padding: 7px 12px;
            }
            
            .trending-arrow-pill {
                padding: 7px 12px;
                font-size: 12px;
            }
        }
        
        /* Date Breaker Styles */
        .date-breaker-container {
            display: flex;
            align-items: center;
            margin: 30px 0 20px 0;
            width: 100%;
        }
        
        .date-breaker-line {
            flex: 1;
            height: 1px;
            background-color: #dee2e6;
        }
        
        .date-breaker-label {
            padding: 0 16px;
            font-size: 14px;
            font-weight: 600;
            color: #6c757d;
            white-space: nowrap;
        }
        
        [data-theme="dark"] .date-breaker-line {
            background-color: #444444;
        }
        
        [data-theme="dark"] .date-breaker-label {
            color: #b0b0b0;
        }
        
        @media (max-width: 768px) {
            .date-breaker-container {
                margin: 20px 0 15px 0;
            }
            
            .date-breaker-label {
                font-size: 13px;
                padding: 0 12px;
            }
        }

        /* Persistent Audio Player Styles */
        .persistent-audio-player {
            position: fixed;
            bottom: 50px;
            left: 0;
            right: 0;
            background: linear-gradient(135deg, #1c1c1c 0%, #252525 100%);
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
            z-index: 1000;
            display: none;
            padding: 8px 15px;
            border-top: 2px solid rgba(255, 213, 0, 0.15);
        }

        .persistent-audio-player.active {
            display: block;
            animation: slideUp 0.3s ease-out;
        }

        @keyframes slideUp {
            from {
                transform: translateY(100%);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .player-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            max-width: 1400px;
            margin: 0 auto;
            gap: 15px;
        }

        .player-left {
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 0 0 auto;
            min-width: 0;
            max-width: 300px;
        }

        .player-image {
            width: 45px;
            height: 45px;
            border-radius: 8px;
            object-fit: cover;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            flex-shrink: 0;
        }

        .player-info {
            display: flex;
            flex-direction: column;
            min-width: 0;
            flex: 1;
        }

        .player-title {
            font-weight: 600;
            font-size: 13px;
            color: #fff;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-bottom: 2px;
        }

        .player-category {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.6);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .player-right {
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 1;
            justify-content: flex-end;
        }

        .player-progress-wrapper {
            display: flex;
            align-items: center;
            gap: 8px;
            flex: 1;
            max-width: 500px;
        }

        .player-time {
            font-size: 11px;
            color: #fff;
            font-weight: 600;
            min-width: 38px;
            text-align: center;
            flex-shrink: 0;
        }

        .player-progress-container {
            flex: 1;
            height: 6px;
            background: rgba(255, 255, 255, 0.15);
            border-radius: 3px;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .player-progress-bar {
            height: 100%;
            background: #FFD500;
            border-radius: 3px;
            width: 0%;
            transition: width 0.1s linear;
        }

        .player-btn-main {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #FFD500;
            color: #000;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
            flex-shrink: 0;
        }

        .player-btn-main:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
        }

        .player-btn-main i {
            font-size: 14px;
        }

        .player-btn-close {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.08);
            color: #fff;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            flex-shrink: 0;
        }

        .player-btn-close:hover {
            background: rgba(255, 255, 255, 0.15);
        }

        .player-btn-close i {
            font-size: 14px;
        }

        /* Highlight active news card */
        .news-card.playing,
        .event-trending-card.playing {
            background: linear-gradient(135deg, rgba(255, 213, 0, 0.2) 0%, rgba(255, 213, 0, 0.1) 100%) !important;
            border: 2px solid #FFD500 !important;
            box-shadow: 0 4px 20px rgba(255, 213, 0, 0.4) !important;
            transform: translateY(-2px);
            transition: all 0.3s ease;
        }

        a.news-card-link.playing {
            opacity: 1;
        }

        a.news-card-link.playing .news-card,
        a.news-card-link.playing .event-trending-card {
            background: linear-gradient(135deg, rgba(255, 213, 0, 0.2) 0%, rgba(255, 213, 0, 0.1) 100%) !important;
            border: 2px solid #FFD500 !important;
            box-shadow: 0 4px 20px rgba(255, 213, 0, 0.4) !important;
            transform: translateY(-2px);
        }

        .audio-badge {
            cursor: pointer;
            transition: all 0.2s ease;
            position: relative;
        }

        .audio-badge:hover {
            transform: scale(1.05);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }

        .audio-badge.playing {
            background: #000 !important;
            color: #FFD500 !important;
            animation: pulse 2s infinite;
            box-shadow: 0 0 10px rgba(255, 213, 0, 0.5) !important;
        }

        @keyframes pulse {
            0%, 100% {
                box-shadow: 0 0 10px rgba(255, 213, 0, 0.5);
            }
            50% {
                box-shadow: 0 0 20px rgba(255, 213, 0, 0.8);
            }
        }

        .audio-badge.playing svg {
            fill: #FFD500;
        }

        .audio-badge.playing svg path {
            fill: #FFD500;
        }

        .audio-badge.playing .audio-time {
            color: #FFD500 !important;
        }

        /* Mobile responsive */
        @media (max-width: 768px) {
            .persistent-audio-player {
                padding: 8px 12px;
                bottom: 50px;
            }

            .player-content {
                gap: 8px;
            }

            .player-left {
                max-width: 150px;
            }

            .player-image {
                width: 40px;
                height: 40px;
            }

            .player-title {
                font-size: 12px;
            }

            .player-category {
                font-size: 10px;
            }

            .player-progress-wrapper {
                max-width: none;
            }

            .player-btn-main {
                width: 36px;
                height: 36px;
            }

            .player-btn-main i {
                font-size: 12px;
            }

            .player-btn-close {
                width: 28px;
                height: 28px;
            }

            .player-btn-close i {
                font-size: 12px;
            }

            .player-time {
                font-size: 10px;
                min-width: 32px;
            }
        }

        /* Dark mode styles - same as light mode for audio player */
        /* Player styling is identical in both themes */

        [data-theme="dark"] .news-card.playing,
        [data-theme="dark"] .event-trending-card.playing {
            background: linear-gradient(135deg, rgba(255, 213, 0, 0.15) 0%, rgba(255, 213, 0, 0.08) 100%) !important;
            border-color: #FFD500 !important;
            box-shadow: 0 4px 20px rgba(255, 213, 0, 0.3) !important;
        }

        [data-theme="dark"] a.news-card-link.playing .news-card,
        [data-theme="dark"] a.news-card-link.playing .event-trending-card {
            background: linear-gradient(135deg, rgba(255, 213, 0, 0.15) 0%, rgba(255, 213, 0, 0.08) 100%) !important;
            border-color: #FFD500 !important;
            box-shadow: 0 4px 20px rgba(255, 213, 0, 0.3) !important;
        }

        [data-theme="dark"] .audio-badge.playing {
            background: #FFD500 !important;
            color: #000 !important;
        }

        [data-theme="dark"] .audio-badge.playing svg path {
            fill: #000;
        }

        [data-theme="dark"] .audio-badge.playing .audio-time {
            color: #000 !important;
        }
