body{
    margin:0;
    background:#111;
    font-family:Arial,sans-serif;
    color:#fff;
    overflow-x:hidden;
}



/* PLAYER (desktop) */

.player{
    width:100%;
    max-width:1400px;
    margin:auto;
    background:#000;
    position:relative;
    padding-top:25px;
    z-index:1;
}


.player video{
    width:100%;
    aspect-ratio:16/9;
    display:block;
    background:#000;
    object-fit:contain;
    height:auto;
    padding-top:0;
    box-sizing:border-box;
}

/* LIVE HEADER */

.live-header{
 position:absolute;
 top:0; left:0;
 width:100%;
 height:25px;
 background:#d40000;
 display:flex;
 justify-content:center;
 align-items:center;
 z-index:1000;
 box-sizing:border-box; 

}

.live-badge{
    margin-left:10px;
    background:#fff;
    color:#d40000;
    padding:3px 10px;
    border-radius:20px;
    font-size:12px;
    font-weight:bold;
}

/* HEADLINE */

.headline-bar{
    width:100%;
    display:flex;
    align-items:center;
    background:#111;
    color:#fff;
    overflow:hidden;
    border-top:2px solid #d40000;
}

.headline-label{
    background:#d40000;
    padding:8px 12px;
    white-space:nowrap;
    flex-shrink:0;
    font-weight:bold;
}

.headline-bar marquee{
    flex:1;
    padding:8px;
}

/* BREAKING NEWS */

.breaking-news{
    display:flex;
    align-items:center;
    width:100%;
    background:#111;
    margin-top:10px;
    border-top:2px solid #d60000;
}

.label{
    background:#d60000;
    color:#fff;
    padding:12px 20px;
    font-weight:bold;
    white-space:nowrap;
}

.ticker{
    flex:1;
    color:#fff;
    font-size:16px;
}

/* TABS */

.tabs{
    display:grid;
    grid-template-columns:repeat(5, 1fr);
    gap:6px;
    width:100%;
    box-sizing:border-box;
    
}

.tabs button{
    width:100%;
    padding:8px 4px;
    border:none;
    background:#222;
    color:#fff;
    font-size:12px;
    cursor:pointer;
    border-radius:6px;
    text-align:center;
    white-space:nowrap;
}

/* active tab */
.tabs button.active{
    background:#e60023;
}

/* CATEGORY */

.category{
    display:none;
}

.category.active{
    display:block;
}

/* CHANNEL GRID */

.channel-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;
    padding:10px;
}

/* CHANNEL CARD */

.channel{
    background:#1a1a1a;
    border-radius:14px;
    padding:12px;
    text-align:center;
    cursor:pointer;
    transition:transform .25s ease, box-shadow .25s ease;
}

.channel:hover{
    transform:scale(1.06);
    box-shadow:0 8px 20px rgba(0,0,0,.6);
}

.channel:active{
    transform:scale(.96);
}

.channel img{
    width:60px;
    height:60px;
    object-fit:contain;
}

.channel span{
    display:block;
    margin-top:8px;
    font-size:13px;
}

/* MOBILE */

@media(max-width:600px){

.channel-grid{
    grid-template-columns:repeat(3,1fr);
}

.channel img{
    width:50px;
    height:50px;
}

.channel span{
    font-size:12px;
}

}

/* MOBILE PLAYER */

@media screen and (max-width:600px){
    .player{
        position:sticky;
        padding-top:25px;
        top:0;
        z-index:9999;
    }
}



/* DESKTOP */

@media(min-width:1024px){

.player{
    width:700px;
    max-width:700px;
    margin:0 auto 15px auto;
}

.channel-grid{
    grid-template-columns:repeat(4,1fr);
}

}

