s* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #e00000;
    --primary-dark: #b40000;
    --dark: #111111;
    --text: #222222;
    --muted: #777777;
    --border: #e5e5e5;
    --bg: #f5f6f8;
    --white: #ffffff;
}

body {
    font-family:
        Arial,
        "Noto Sans Devanagari",
        sans-serif;

    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    width: 100%;
    display: block;
}

.container {
    width: min(1200px, 94%);
    margin: auto;
}


/* ================= TOP BAR ================= */

.top-bar {
    background: #111;
    color: #ddd;
    font-size: 13px;
}

.top-content {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-links {
    display: flex;
    gap: 20px;
}

.top-links a:hover {
    color: white;
}


/* ================= HEADER ================= */

.header {
    background: white;
    padding: 18px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--primary);
    color: white;

    font-size: 32px;
    font-weight: bold;
}

.logo {
    font-size: 34px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 1px;
}

.logo span,
.footer-logo span {
    color: var(--primary);
}

.tagline {
    color: #777;
    font-size: 13px;
    margin-top: 5px;
}

.header-live {
    color: var(--primary);
    font-weight: bold;

    display: flex;
    gap: 8px;
    align-items: center;
}

.live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: red;

    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: .3;
    }
}


/* ================= NAV ================= */

.navbar {
    background: var(--primary);
    color: white;
}

.nav-container {
    display: flex;
    align-items: center;
}

.nav-menu {
    list-style: none;

    display: flex;
    align-items: center;

    flex: 1;
}

.nav-menu li a {
    display: block;
    padding: 14px 15px;

    font-size: 15px;
    font-weight: 600;

    transition: .2s;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: var(--primary-dark);
}

.live-menu {
    background: #111;
}

.nav-actions {
    display: flex;
    gap: 8px;
}

.nav-actions button,
.menu-toggle {
    border: none;
    background: transparent;
    color: white;

    font-size: 20px;
    cursor: pointer;
}

.nav-actions button {
    padding: 8px;
}

.menu-toggle {
    display: none;
}


/* ================= SEARCH ================= */

.search-box {
    display: none;
    background: white;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.search-box.show {
    display: block;
}

.search-inner {
    display: flex;
    gap: 10px;
}

.search-inner input {
    flex: 1;

    padding: 12px 15px;

    border: 1px solid #ddd;
    border-radius: 5px;

    font-size: 16px;
}

.search-inner button {
    width: 45px;
    border: none;

    background: var(--primary);
    color: white;

    border-radius: 5px;

    cursor: pointer;
}


/* ================= BREAKING ================= */

.breaking {
    background: white;
    border-bottom: 1px solid var(--border);
}

.breaking-inner {
    display: flex;
    align-items: center;
}

.breaking-title {
    background: var(--primary);
    color: white;

    padding: 10px 18px;

    font-weight: bold;
    white-space: nowrap;
}

.breaking-slider {
    overflow: hidden;
    flex: 1;
}

.breaking-track {
    display: flex;
    gap: 80px;

    width: max-content;

    padding-left: 30px;

    animation: ticker 30s linear infinite;
}

.breaking-track span {
    white-space: nowrap;
    font-weight: 600;
}

@keyframes ticker {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }

}


/* ================= MAIN ================= */

main {
    padding: 30px 0;
}


/* ================= HERO ================= */

.hero-section {
    display: grid;

    grid-template-columns: 2fr 1fr;

    gap: 22px;
}

.hero-card {
    position: relative;

    min-height: 430px;

    overflow: hidden;

    border-radius: 10px;

    background: #111;
}

.hero-card img {
    height: 430px;
    object-fit: cover;

    opacity: .8;
}

.hero-overlay {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding: 35px;

    color: white;

    background:
        linear-gradient(
            transparent,
            rgba(0,0,0,.9)
        );
}

.category {
    display: inline-block;

    background: var(--primary);

    color: white;

    padding: 3px 10px;

    border-radius: 3px;

    font-size: 12px;
    font-weight: bold;
}

.hero-overlay h1 {
    font-size: 32px;
    margin-top: 10px;
}

.hero-overlay p {
    color: #ddd;
}

.news-meta {
    margin-top: 10px;

    font-size: 13px;
    color: #ddd;
}


/* ================= SECTION HEADING ================= */

.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 18px;
}

.section-heading h2 {
    font-size: 23px;
    white-space: nowrap;
}

.section-heading span {
    height: 3px;
    background: var(--primary);
    flex: 1;
}

.section-heading a {
    color: var(--primary);
    font-size: 14px;
    font-weight: bold;
}


/* ================= TOP NEWS ================= */

.top-news {
    background: white;

    padding: 20px;

    border-radius: 10px;
}

.small-news {
    display: grid;

    grid-template-columns: 95px 1fr;

    gap: 12px;

    padding: 13px 0;

    border-bottom: 1px solid var(--border);
}

.small-news:last-child {
    border-bottom: 0;
}

.small-news img {
    width: 95px;
    height: 75px;

    object-fit: cover;

    border-radius: 5px;
}

.small-news h3 {
    font-size: 15px;
    line-height: 1.4;

    margin-top: 3px;
}

.small-news small {
    color: #999;
}


/* ================= LIVE ================= */

.live-section {
    margin-top: 35px;

    background: #111;

    border-radius: 10px;

    padding: 20px;

    color: white;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 15px;
}

.section-title h2 {
    display: inline-block;

    margin-left: 10px;

    font-size: 24px;
}

.live-badge {
    background: red;

    padding: 4px 10px;

    border-radius: 4px;

    font-size: 12px;
    font-weight: bold;
}

.live-status {
    color: #ff3333;

    font-size: 13px;
    font-weight: bold;
}

.live-player {
    position: relative;

    background: #000;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    border-radius: 7px;
}

.live-player video {
    width: 100%;
    height: 100%;

    background: #000;
}

.player-message {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    text-align: center;

    pointer-events: none;
}

.player-icon {
    width: 65px;
    height: 65px;

    border-radius: 50%;

    background: var(--primary);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 25px;

    margin-bottom: 15px;
}

.player-message p {
    color: #aaa;
}


/* ================= CONTENT ================= */

.content-layout {
    display: grid;

    grid-template-columns: 2fr 1fr;

    gap: 25px;

    margin-top: 35px;
}

.news-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;
}

.news-card {
    background: white;

    border-radius: 9px;

    overflow: hidden;

    transition: .2s;
}

.news-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 8px 25px rgba(0,0,0,.08);
}

.news-image {
    position: relative;
}

.news-image img {
    height: 190px;

    object-fit: cover;
}

.news-image span {
    position: absolute;

    left: 10px;
    bottom: 10px;

    background: var(--primary);

    color: white;

    padding: 4px 9px;

    font-size: 12px;
}

.news-content {
    padding: 15px;
}

.news-content h3 {
    font-size: 18px;
    line-height: 1.4;
}

.news-content p {
    color: #777;

    font-size: 14px;

    margin: 8px 0;
}

.news-content small {
    color: #999;
}


/* ================= SIDEBAR ================= */

.ad-box {
    background: white;

    height: 250px;

    border: 1px dashed #ccc;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    color: #aaa;

    margin-bottom: 25px;
}

.ad-box div {
    font-size: 24px;

    margin: 15px 0;

    color: #bbb;
}

.sidebar-widget {
    background: white;

    padding: 20px;

    border-radius: 8px;

    margin-bottom: 20px;
}

.widget-title {
    border-bottom: 3px solid var(--primary);

    padding-bottom: 10px;

    margin-bottom: 10px;
}

.popular-news {
    display: flex;

    gap: 12px;

    padding: 13px 0;

    border-bottom: 1px solid var(--border);
}

.popular-news span {
    color: var(--primary);

    font-size: 24px;

    font-weight: 900;
}

.popular-news h4 {
    font-size: 15px;
}

.social-buttons {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 8px;

    margin-top: 15px;
}

.social-buttons a {
    background: #f3f3f3;

    padding: 10px;

    text-align: center;

    border-radius: 5px;

    font-size: 13px;
}


/* ================= VIDEO ================= */

.video-section {
    margin-top: 40px;
}

.video-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.video-card {
    background: white;

    padding-bottom: 15px;

    border-radius: 8px;

    overflow: hidden;
}

.video-thumb {
    position: relative;
}

.video-thumb img {
    height: 210px;

    object-fit: cover;
}

.play {
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 55px;
    height: 55px;

    background: rgba(224,0,0,.95);

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;

    font-size: 20px;
}

.video-card h3 {
    padding: 13px 15px 0;

    font-size: 17px;
}


/* ================= FOOTER ================= */

.footer {
    margin-top: 50px;

    background: #111;

    color: #bbb;
}

.footer-grid {
    padding: 45px 0;

    display: grid;

    grid-template-columns:
        2fr 1fr 1fr 1fr;

    gap: 35px;
}

.footer-logo {
    font-size: 30px;

    font-weight: 900;

    color: white;

    margin-bottom: 10px;
}

.footer h3 {
    color: white;

    margin-bottom: 15px;
}

.footer a {
    display: block;

    margin-bottom: 8px;
}

.footer a:hover {
    color: white;
}

.copyright {
    border-top: 1px solid #292929;

    text-align: center;

    padding: 18px;

    font-size: 13px;
}


/* ================= DARK MODE ================= */

body.dark {
    --bg: #0d0d0d;
    --white: #171717;
    --text: #eee;
    --border: #303030;
}

body.dark .header,
body.dark .breaking,
body.dark .top-news,
body.dark .news-card,
body.dark .sidebar-widget,
body.dark .ad-box {
    background: #171717;
}

body.dark .navbar {
    background: #8f0000;
}

body.dark .news-content p,
body.dark .tagline {
    color: #aaa;
}


/* ================= MOBILE ================= */

@media (max-width: 900px) {

    .nav-menu {
        display: none;

        position: absolute;

        top: 100%;

        left: 0;
        right: 0;

        background: var(--primary);

        flex-direction: column;

        align-items: stretch;

        z-index: 1000;
    }

    .nav-container {
        position: relative;
    }

    .nav-menu.show {
        display: flex;
    }

    .menu-toggle {
        display: block;

        margin-right: 15px;
    }

    .nav-menu li a {
        border-bottom: 1px solid rgba(255,255,255,.15);
    }

    .hero-section,
    .content-layout {
        grid-template-columns: 1fr;
    }

    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 600px) {

    .top-links {
        display: none;
    }

    .logo {
        font-size: 27px;
    }

    .logo-icon {
        width: 45px;
        height: 45px;

        font-size: 24px;
    }

    .header-live {
        font-size: 12px;
    }

    .hero-card,
    .hero-card img {
        min-height: 350px;
        height: 350px;
    }

    .hero-overlay {
        padding: 20px;
    }

    .hero-overlay h1 {
        font-size: 24px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .breaking-title {
        padding: 9px 10px;

        font-size: 12px;
    }

    .section-title {
        align-items: flex-start;

        flex-direction: column;

        gap: 8px;
    }

}