* { margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body { background: #181a1b;

        }

        /* Main news card container */
        .news-container {
            max-width: 1400px;
            width: 100%;
            background: rgba(18, 25, 45, 0.75);
            backdrop-filter: blur(2px);
            border-radius: 2rem;
            box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(66, 153, 225, 0.2);
            overflow: hidden;
            transition: all 0.2s ease;
        }

        /* Header section with live indicator */
        .ticker-header {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            padding: 1.2rem 2rem;
            background: rgba(10, 15, 27, 0.9);
            border-bottom: 1px solid rgba(56, 189, 248, 0.3);
            flex-wrap: wrap;
            gap: 0.75rem;
        }

        .brand {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .live-badge {
            background: #e11d48;
            color: white;
            font-weight: 700;
            font-size: 0.75rem;
            padding: 0.25rem 0.8rem;
            border-radius: 40px;
            letter-spacing: 1px;
            text-transform: uppercase;
            box-shadow: 0 0 8px rgba(225, 29, 72, 0.6);
            animation: pulse 1.5s infinite;
        }

        @keyframes pulse {
            0% { opacity: 0.7; box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.5);}
            70% { opacity: 1; box-shadow: 0 0 0 8px rgba(225, 29, 72, 0);}
            100% { opacity: 0.7; box-shadow: 0 0 0 0 rgba(225, 29, 72, 0);}
        }

        .brand h1 {
            font-size: 1.5rem;
            font-weight: 600;
            background: linear-gradient(135deg, #f0f9ff, #7dd3fc);
            background-clip: text;
            -webkit-background-clip: text;
            color: transparent;
            letter-spacing: -0.3px;
        }

        .update-info {
            display: flex;
            gap: 1rem;
            align-items: center;
            font-size: 0.8rem;
            color: #94a3b8;
        }

        .refresh-btn {
            background: #1e293b;
            border: none;
            color: #cbd5e6;
            padding: 0.3rem 0.9rem;
            border-radius: 30px;
            font-size: 0.75rem;
            font-weight: 500;
            cursor: pointer;
            transition: 0.2s;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .refresh-btn:hover {
            background: #2d3a52;
            color: white;
            transform: scale(0.97);
        }

        /* Ticker tape area - horizontal marquee effect */
        .ticker-tape {
            position: relative;
            overflow: hidden;
            white-space: nowrap;
            backdrop-filter: blur(4px);
        }

        .ticker-content {
            display: inline-block;
            white-space: nowrap;
            animation: scrollTicker 438s linear infinite;
            font-size: 1.1rem;
            font-weight: 600;
            letter-spacing: 0.3px;
            padding-right: .1rem;


        }

        .ticker-content span {
            display: inline-block;
            margin-right: 2.2rem;
            color: #2791F5;
            transition: color .2s;
        }

        .ticker-content span i {
            font-style: normal;
            background: #38bdf8;
            color: #0f172a;
            font-size: 0.7rem;
            font-weight: bold;
            padding: 0px 1px;
            border-radius: 30px;
            margin-right: 10px;
        }

        .ticker-content span strong {
            font-weight: 600;
            color: #facc15;
            margin-right: 8px;
        }

        /* pause on hover */
        .ticker-tape:hover .ticker-content {
            animation-play-state: paused;
        }

        @keyframes scrollTicker {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); }
        }

        /* Double content for seamless loop */
        .ticker-content.duplicate {
            margin-left: 2rem;
        }

        /* Main news grid (static headlines) */
        .news-grid {
            padding: .5rem .5rem .5rem .5rem;
        }

        .section-title {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            margin-bottom: 1.2rem;
            flex-wrap: wrap;
        }

        .section-title h2 {
            color: #e2e8f0;
            font-size: 1.2rem;
            font-weight: 500;
            letter-spacing: -0.2px;
            border-left: 4px solid #3b82f6;
            padding-left: 12px;
        }

        .timestamp {
            font-size: 0.7rem;
            color: #5b6e8c;
            font-family: monospace;
        }

        .headline-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 1.2rem;
        }

        .news-card {
            background: rgba(15, 23, 42, 0.7);
            backdrop-filter: blur(4px);
            border-radius: 1.2rem;
            padding: .2rem 1.2rem;
            transition: transform 0.2s, background 0.2s;
            border: 1px solid rgba(51, 65, 85, 0.5);
            box-shadow: 0 6px 12px -8px rgba(0, 0, 0, 0.3);
        }

        .news-card:hover {
            transform: translateY(-3px);
            background: rgba(30, 41, 59, 0.8);
            border-color: #3b82f670;
        }

        .news-source {
            display: inline-block;
            font-size: 0.65rem;
            font-weight: 700;
            text-transform: uppercase;
            background: #1e293b;
            padding: 0.2rem 01.6rem;
            border-radius: 20px;
            color: #90e0ff;
            letter-spacing: 0.5px;
            margin-bottom: 0.65rem;
        }

        .news-title {
            font-size: 1rem;
            font-weight: 500;
            line-height: 1.4;
            color: #feb47b;
            margin-bottom: 0.5rem;
        }

        .news-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 0.7rem;
            font-size: 0.7rem;
            color: #7e8aa8;
        }

        .read-link {
            color: #60a5fa;
            text-decoration: none;
            font-weight: 500;
            font-size: 0.7rem;
            transition: 0.1s;
        }

        .read-link:hover {
            color: #a5f3fc;
            text-decoration: underline;
        }

        .loading-placeholder {
            color: #94a3b8;
            text-align: center;
            padding: 2rem;
            font-style: italic;
        }

        .footer-note {
            text-align: center;
            padding: 1rem 1rem 1.2rem;
            font-size: 0.7rem;
            color: #4b556b;
            border-top: 1px solid #1e293b;
            background: #0a0f1c80;
        }

        .error-toast {
            background: #7f1a2ecc;
            color: #ffe2e8;
            border-radius: 50px;
            padding: 6px 14px;
            font-size: 0.75rem;
            backdrop-filter: blur(8px);
        }
		
		
		

        @media (max-width: 680px) {
            .ticker-content {
                font-size: 0.9rem;
            }
            .news-grid {
                padding: 1rem;
            }
            .ticker-header {
                padding: 0.8rem 1rem;
            }
            .brand h1 {
                font-size: 1.2rem;
            }
        }
