:root {
    --red: #ed050c;
    --red-dark: #710000;
    --red-deep: #2a0000;
    --white: #ffffff;
    --black: #030406;
    --gold: #ffcc16;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body {
    color: var(--white);
    background: #000;
    font-family: "Nirmala UI", "Mangal", Arial, Helvetica, sans-serif;
}

.broadcast-shell {
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-rows: clamp(78px, 11.4vh, 108px) minmax(0, 1fr) clamp(48px, 7vh, 66px) clamp(50px, 6.6vh, 62px);
    background: #000;
    overflow: hidden;
}

.broadcast-shell > * {
    min-width: 0;
    max-width: 100vw;
}

.channel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(12px, 2vh, 24px) clamp(18px, 3vw, 36px);
    background: linear-gradient(180deg, #020202, #08090c);
    border-bottom: 4px solid #d50000;
    box-shadow: 0 2px 18px rgba(255, 0, 0, 0.55);
}

.menu-button,
.mobile-latest {
    display: none;
}

.channel-brand {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 24px);
    min-width: 0;
}

.channel-logo {
    width: clamp(54px, 6.5vh, 74px);
    height: clamp(54px, 6.5vh, 74px);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 1000;
    font-size: clamp(25px, 3.4vh, 38px);
    border-radius: 7px;
    background: linear-gradient(180deg, #ff141a, #b30007);
    box-shadow: 0 0 22px rgba(255, 0, 0, 0.35);
}

.channel-brand h1 {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(34px, 4.4vw, 52px);
    line-height: 1;
    font-weight: 1000;
    text-shadow: 0 2px 3px rgba(255,255,255,0.18);
}

.brand-logo-image {
    display: block;
    width: 190px;
    height: 40px;
    object-fit: contain;
    object-position: left center;
}

.channel-brand p {
    margin: 7px 0 0;
    font-size: clamp(16px, 1.7vw, 21px);
    line-height: 1;
}

.header-live {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: clamp(46px, 6.2vh, 64px);
    padding: 0 clamp(18px, 2.2vw, 28px);
    border-radius: 6px;
    background: var(--red);
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(22px, 2.6vw, 34px);
    font-weight: 1000;
    box-shadow: 0 0 16px rgba(255,0,0,0.4);
}

.pulse {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 12px rgba(255,255,255,0.8);
    animation: pulse 1.2s infinite;
}

.db-alert {
    position: absolute;
    z-index: 10;
    left: 20px;
    top: 120px;
    max-width: calc(100vw - 40px);
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.5);
    background: rgba(0,0,0,0.72);
}

.mobile-ad {
    display: none;
}

.news-screen {
    position: relative;
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #7c0000;
}

.news-background {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 44% 8%, rgba(255, 214, 90, 0.95), transparent 1.2%),
        radial-gradient(circle at 84% 55%, rgba(255, 0, 0, 0.42), transparent 15%),
        radial-gradient(circle at 12% 52%, rgba(255, 0, 0, 0.46), transparent 15%),
        repeating-radial-gradient(circle at 3% 50%, rgba(255,255,255,0.16) 0 3px, transparent 4px 12px),
        repeating-radial-gradient(circle at 97% 50%, rgba(255,255,255,0.16) 0 3px, transparent 4px 12px),
        linear-gradient(126deg, transparent 0 14%, rgba(255,255,255,0.08) 15%, transparent 21% 32%, rgba(255,255,255,0.08) 33%, transparent 40%),
        linear-gradient(145deg, #210000 0%, #e00000 46%, #300000 100%);
}

.news-background::before,
.news-background::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(130deg, transparent 0 34px, rgba(255,255,255,0.08) 35px 39px, transparent 40px 86px);
    opacity: 0.65;
}

.news-background::after {
    background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.34));
    opacity: 1;
}

.mini-breaking {
    position: absolute;
    z-index: 2;
    top: clamp(8px, 2vh, 18px);
    left: 50%;
    display: grid;
    grid-template-columns: 1fr auto;
    min-width: clamp(280px, 26vw, 430px);
    height: clamp(42px, 6.2vh, 58px);
    transform: translateX(-50%) skewX(-7deg);
    border: 2px solid var(--gold);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 16px rgba(255, 204, 22, 0.85), 0 8px 22px rgba(0,0,0,0.5);
}

.mini-breaking strong,
.mini-breaking span {
    display: grid;
    place-items: center;
    padding: 0 18px;
    font-family: Arial, Helvetica, sans-serif;
    font-style: italic;
    font-size: clamp(26px, 3.2vw, 42px);
    font-weight: 1000;
    line-height: 1;
    transform: skewX(7deg);
    text-shadow: 0 2px 0 rgba(0,0,0,0.35);
}

.mini-breaking strong {
    background: linear-gradient(180deg, #ec080f, #8e0005);
    color: #fff;
}

.mini-breaking span {
    background: linear-gradient(180deg, #fff, #eee);
    color: #b60000;
}

.headline-frame {
    position: absolute;
    z-index: 1;
    left: clamp(42px, 4.2vw, 72px);
    right: clamp(42px, 4.2vw, 72px);
    top: clamp(68px, 11vh, 112px);
    bottom: clamp(18px, 3vh, 34px);
    border: 5px solid rgba(255,255,255,0.94);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(246,0,0,0.96), rgba(100,0,0,0.94));
    box-shadow:
        inset 0 0 130px rgba(0,0,0,0.24),
        0 0 18px rgba(255,255,255,0.6),
        0 0 24px rgba(255, 204, 22, 0.55);
    overflow: hidden;
}

.headline-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: radial-gradient(circle at 50% 10%, rgba(255,255,255,0.12), transparent 24%);
    pointer-events: none;
}

.headline-card {
    position: absolute;
    inset: clamp(22px, 4vh, 46px) clamp(28px, 4vw, 58px);
    display: grid;
    place-items: center;
    min-width: 0;
    text-align: center;
}

.headline-card span {
    display: block;
    width: 100%;
    max-width: 1080px;
    color: #fff;
    font-size: clamp(58px, min(8.7vw, 13.8vh), 126px);
    line-height: 1.22;
    font-weight: 1000;
    overflow-wrap: break-word;
    text-wrap: balance;
    text-shadow: 0 6px 0 rgba(0,0,0,0.18), 0 0 16px rgba(255,255,255,0.16);
}

.news-flash {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 250px;
    align-items: stretch;
    background: #fff;
    color: #111;
    border-top: 3px solid #ffd200;
    overflow: hidden;
}

.news-flash > strong {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: clamp(210px, 16vw, 280px);
    padding: 0 clamp(18px, 2vw, 30px);
    color: #fff;
    background: linear-gradient(180deg, #ff171c, #dc0008);
    border-right: 6px solid rgba(255,255,255,0.92);
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(20px, 2.4vw, 32px);
    font-weight: 1000;
    white-space: nowrap;
    overflow: visible;
    animation: flashPulse 1.25s ease-in-out infinite;
}

.news-flash > strong::before {
    content: none;
}

.news-flash > strong::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 42%;
    background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,0.65) 48%, transparent 100%);
    transform: translateX(-140%) skewX(-18deg);
    animation: flashShine 2s linear infinite;
    pointer-events: none;
}

.flash-track {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    padding-left: 22px;
}

.flash-track span {
    display: inline-block;
    padding-left: 100%;
    color: #161616;
    font-size: clamp(18px, 1.8vw, 24px);
    font-weight: 900;
    animation: ticker 24s linear infinite;
}

.flash-time {
    position: relative;
    z-index: 3;
    display: grid;
    place-items: center;
    align-content: center;
    width: 250px;
    min-width: 250px;
    max-width: 250px;
    background: linear-gradient(110deg, #ffea00, #ffc400);
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
    font-style: normal;
    font-weight: 1000;
    line-height: 1.05;
}

.flash-time b {
    font-size: 30px;
    white-space: nowrap;
}

.flash-time small {
    font-size: 17px;
    font-weight: 900;
    white-space: nowrap;
}

.social-footer {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    align-items: center;
    justify-content: center;
    gap: clamp(22px, 4vw, 64px);
    padding: 0 22px;
    background: #050505;
    border-top: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(16px, 1.55vw, 22px);
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    min-width: 0;
    max-width: 100vw;
}

.social-footer span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.social-footer img {
    width: clamp(24px, 2.4vw, 34px);
    height: clamp(24px, 2.4vw, 34px);
    object-fit: contain;
    flex: 0 0 auto;
}

.social-footer strong {
    font-weight: 1000;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.74); }
}

@keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

@keyframes flashPulse {
    0%, 100% {
        filter: brightness(1);
        text-shadow: 0 0 0 rgba(255,255,255,0);
    }
    50% {
        filter: brightness(1.22);
        text-shadow: 0 0 10px rgba(255,255,255,0.48);
    }
}

@keyframes flashShine {
    from { transform: translateX(-150%) skewX(-18deg); }
    to { transform: translateX(260%) skewX(-18deg); }
}

@media (max-width: 900px) {
    .broadcast-shell {
        grid-template-rows: 78px minmax(0, 1fr) 52px 48px;
    }

    .channel-brand h1 {
        font-size: clamp(28px, 6vw, 40px);
    }

    .channel-brand p {
        font-size: 14px;
    }

    .header-live {
        min-height: 44px;
        font-size: 20px;
    }

    .headline-frame {
        left: 20px;
        right: 20px;
        top: 88px;
        bottom: 18px;
        border-width: 3px;
    }

    .headline-card {
        inset: 20px;
    }

    .headline-card span {
        max-width: 92%;
        font-size: clamp(32px, min(8vw, 9vh), 62px);
        line-height: 1.24;
    }

    .social-footer {
        justify-content: start;
        overflow: hidden;
    }

    .news-flash {
        grid-template-columns: auto minmax(0, 1fr) 218px;
    }

    .flash-time {
        width: 218px;
        min-width: 218px;
        max-width: 218px;
    }

    .flash-time b {
        font-size: 25px;
    }

    .flash-time small {
        font-size: 14px;
    }
}

@media (max-width: 560px) {
    body {
        display: block;
        background: #050608;
        overflow-y: hidden;
        overflow-x: hidden;
    }

    .channel-header,
    .news-screen,
    .mobile-ad,
    .news-flash,
    .social-footer {
        width: 100vw;
        max-width: 100vw;
        min-width: 0;
    }

    .broadcast-shell {
        height: 100vh;
        min-height: 0;
        display: grid;
        grid-template-rows: 78px minmax(250px, 1fr) 42px 132px 98px;
        overflow: hidden;
        box-shadow: none;
    }

    .mobile-ad {
        display: none;
    }

    .channel-header {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 10px;
        height: 78px;
        padding: 11px 14px;
        border-bottom-width: 2px;
    }

    .menu-button {
        display: grid;
        gap: 5px;
        width: 32px;
        height: 34px;
        padding: 0;
        border: 0;
        background: transparent;
        flex: 0 0 auto;
    }

    .menu-button span {
        display: block;
        width: 30px;
        height: 4px;
        border-radius: 999px;
        background: #fff;
        box-shadow: 0 0 8px rgba(255,255,255,0.25);
    }

    .channel-logo {
        width: 50px;
        height: 50px;
        font-size: 27px;
        border-radius: 7px;
    }

    .channel-brand {
        gap: 12px;
        min-width: 0;
        overflow: hidden;
    }

    .channel-brand h1 {
        font-size: clamp(22px, 6.2vw, 28px);
        white-space: nowrap;
    }

    .brand-logo-image {
        width: 190px;
        height: 40px;
        max-width: 100%;
    }

    .channel-brand p {
        margin-top: 6px;
        font-size: clamp(11px, 3.1vw, 14px);
        white-space: nowrap;
    }

    .header-live {
        display: inline-flex;
        min-height: 38px;
        padding: 0 10px;
        border-radius: 5px;
        font-size: 18px;
    }

    .pulse {
        width: 10px;
        height: 10px;
    }

    .mini-breaking {
        top: 24px;
        min-width: min(232px, calc(100% - 56px));
        height: 48px;
        border-width: 2px;
    }

    .mini-breaking strong,
    .mini-breaking span {
        font-size: 24px;
        padding: 0 13px;
    }

    .news-screen {
        width: 100vw;
        max-width: 100vw;
        height: auto;
        min-height: 0;
        aspect-ratio: auto;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .headline-frame {
        left: 18px;
        right: 18px;
        width: auto;
        max-width: none;
        top: 58px;
        bottom: 12px;
        border-width: 4px;
        border-radius: 22px;
    }

    .headline-card {
        inset: 14px;
        width: auto;
        max-width: none;
    }

    .headline-card span {
        width: 100%;
        max-width: min(82vw, 360px);
        font-size: clamp(26px, 7.5vw, 30px);
        line-height: 1.18;
        white-space: normal;
        overflow-wrap: break-word;
        word-break: break-word;
        text-wrap: balance;
    }

    .news-flash {
        height: 42px;
        grid-template-columns: 112px minmax(0, 1fr) 100px;
        grid-template-rows: 1fr;
        border-top-width: 2px;
    }

    .news-flash > strong {
        justify-content: center;
        background: #ed050c;
        min-width: 0;
        padding: 0 8px;
        border-right-width: 3px;
        font-size: 15px;
    }

    .flash-track {
        padding-left: 6px;
    }

    .flash-track span {
        font-size: 13px;
        font-weight: 900;
    }

    .flash-time {
        display: grid;
        width: 100px;
        min-width: 100px;
        max-width: 100px;
    }

    .flash-time b {
        font-size: 15px;
    }

    .flash-time small {
        font-size: 9px;
    }

    .mobile-latest {
        display: block;
        min-height: 0;
        padding: 8px 14px 6px;
        background: linear-gradient(180deg, #07090d, #11151d);
        border-top: 1px solid rgba(255,255,255,0.12);
        overflow: hidden;
    }

    .mobile-latest-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(255,255,255,0.18);
    }

    .mobile-latest-heading h2 {
        margin: 0;
        padding-left: 10px;
        border-left: 4px solid var(--red);
        font-size: 18px;
    }

    .mobile-latest-heading a {
        color: #fff;
        text-decoration: none;
        border-radius: 4px;
        background: var(--red);
        padding: 7px 10px;
        font-weight: 900;
        font-size: 13px;
    }

    .mobile-latest ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mobile-latest li {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        align-items: center;
        padding: 6px 4px;
        border-bottom: 1px solid rgba(255,255,255,0.16);
        color: #fff;
        font-size: 12px;
    }

    .mobile-latest li::before {
        content: "";
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--red);
        grid-row: 1;
    }

    .mobile-latest li span {
        grid-column: 1;
        padding-left: 18px;
    }

    .mobile-latest li time {
        grid-column: 2;
        color: rgba(255,255,255,0.62);
        white-space: nowrap;
        font-size: 12px;
    }

    .social-footer {
        display: grid;
        grid-auto-flow: row;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
        gap: 5px 8px;
        padding: 7px 14px 0;
        font-size: 10px;
        overflow: hidden;
        background: #050608;
    }

    .social-footer img {
        width: 16px;
        height: 16px;
    }

    .social-footer span {
        min-width: 0;
        gap: 5px;
        justify-content: center;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .social-footer strong {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        gap: 12px;
        align-items: center;
        color: #fff;
        font-size: 13px;
        font-weight: 900;
    }

    .social-footer strong::before,
    .social-footer strong::after {
        content: "";
        height: 1px;
        background: rgba(255,255,255,0.3);
    }

    .social-footer .social-website {
        grid-column: 1 / -1;
        margin: 2px -14px 0;
        padding: 8px 14px;
        background: var(--red);
        font-size: 14px;
    }
}

@media (max-width: 390px) {
    .broadcast-shell {
        display: grid;
        grid-template-rows: 76px minmax(240px, 1fr) 42px 128px 96px;
    }

    .channel-logo {
        width: 46px;
        height: 46px;
        font-size: 24px;
    }

    .news-flash {
        grid-template-columns: 100px minmax(0, 1fr) 92px;
    }

    .news-flash > strong {
        font-size: 14px;
    }

    .flash-time {
        width: 92px;
        min-width: 92px;
        max-width: 92px;
    }

    .flash-time b {
        font-size: 12px;
    }

    .flash-time small {
        font-size: 9px;
    }

    .social-footer {
        font-size: 11px;
        gap: 14px;
    }

    .headline-card span {
        max-width: min(80vw, 318px);
        font-size: clamp(24px, 7.8vw, 33px);
    }

    .flash-track span {
        font-size: 12px;
    }
}
