body{
    background:#000;
    color:#fff;
    font-family:'Poppins',sans-serif;
    margin:0;
}

/* MENU */
.category-menu{
    display:flex;
    justify-content:center;
    gap:35px;
    padding:30px 15px;
    overflow-x:auto;
}

.menu-item{
    min-width:100px;
    text-align:center;
}

.menu-item i{
    width:75px;
    height:75px;
    line-height:75px;
    border-radius:50%;
    background:#1d1d1d;
    font-size:30px;
    box-shadow:0 0 20px rgba(255,255,255,.08);
}

.menu-item span{
    display:block;
    margin-top:12px;
    font-size:14px;
}

/* SECTION */
.movie-section{
    padding:10px;
}

.section-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
    margin-top: 30px;
}

.section-header h2{
    font-size:18px;
    font-weight:700;
    margin:0;
    padding-left:10px;
    position:relative;
}

.section-header h2::before{
    content:'';
    position:absolute;
    left:0;
    top:50%;
    transform:translateY(-50%);
    width:3px;
    height:18px;
    background:#ff1f1f;
}

.section-header a{
    color:#ccc;
    text-decoration:none;
    font-size:13px;
}

/* MOVIE SLIDER */
.movie-grid{
    display:flex;
    flex-wrap:nowrap;
    gap:14px;
    overflow-x:auto;
    white-space:nowrap;
}

.movie-grid::-webkit-scrollbar{
    height:5px;
}

.movie-grid::-webkit-scrollbar-thumb{
    background:#444;
    border-radius:20px;
}

/* CARD */
.movie-card{
    flex:0 0 auto;
    width:140px;
    background:#111;
    border-radius:12px;
    overflow:hidden;
}
.movie-card{
    min-width:180px;
    max-width:180px;
}
.poster{
    position:relative;
}

.poster img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.quality{
    position:absolute;
    top:8px;
    left:8px;
    background:#11c95d;
    color:#fff;
    padding:3px 8px;
    border-radius:5px;
    font-size:11px;
    font-weight:600;
}

.rating{
    position:absolute;
    top:8px;
    right:8px;
    background:rgba(0,0,0,.7);
    padding:3px 7px;
    border-radius:5px;
    font-size:11px;
}

.movie-info{
    padding:10px;
}

.movie-info h3{
    font-size:15px;
    margin:0;
    line-height:1.4;
    
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.movie-info span{
    color:#aaa;
    font-size:13px;
}

.card-buttons{
    display:flex;
    gap:6px;
    margin-top:10px;
}

.btn-trailer,
.btn-watch{
    flex:1;
    height:34px;
    border:none;
    border-radius:7px;
    font-size:12px;
    font-weight:600;
}

.btn-trailer{
    background:#16c64f;
    color:#fff;
}

.btn-watch{
    background:#ff1f1f;
    color:#fff;
}

.btn-plus{
    width:34px;
    border:none;
    border-radius:7px;
    background:#444;
    color:#fff;
    font-size:18px;
}

/* MOBILE */
@media(max-width:768px){

    .movie-card{
        min-width:145px;
        width:145px;
    }

    .poster img{
        height:215px;
    }

    .movie-info h3{
        font-size:13px;
    }

    .btn-trailer,
    .btn-watch{
        height:30px;
        font-size:11px;
    }

    .btn-plus{
        width:30px;
        font-size:15px;
    }
}

.category-menu{
    display:flex;
    gap:20px;
    overflow-x:auto;
    padding:15px 10px;
    justify-content:flex-start;
}

.category-menu::-webkit-scrollbar{
    display:none;
}

.menu-item{
    min-width:75px;
    text-align:center;
    flex-shrink:0;
}

.menu-item i{
    width:55px;
    height:55px;
    line-height:55px;
    border-radius:50%;
    background:#1a1a1a;
    font-size:22px;
    color:#fff;
}

.menu-item span{
    display:block;
    margin-top:8px;
    font-size:12px;
    color:#ddd;
}

.category-menu .menu-item{
    text-decoration:none;
    color:#fff;
    text-align:center;
    display:flex;
    flex-direction:column;
    align-items:center;
    transition:.3s;
}

.category-menu .menu-item:hover{
    transform:translateY(-3px);
}

.category-menu .menu-item i{
    width:55px;
    height:55px;
    line-height:55px;
    border-radius:50%;
    background:#1a1a1a;
    font-size:22px;
}

.category-menu .menu-item span{
    margin-top:8px;
    font-size:12px;
}

/* POPUP TRAILER */

.trailer-modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.9);
    z-index:99999;

    justify-content:center;
    align-items:center;
}

.trailer-box{
    width:90%;
    max-width:900px;
    position:relative;
}

.trailer-box iframe{
    width:100%;
    aspect-ratio:16/9;
    border:none;
    border-radius:12px;
}

.close-trailer{
    position:absolute;
    top:-40px;
    right:0;
    color:#fff;
    font-size:35px;
    cursor:pointer;
}

@media(max-width:768px){

    .trailer-box{
        width:95%;
    }

    .close-trailer{
        top:-35px;
        font-size:30px;
    }
}

.dg-row-wrapper{
    position:relative;
}

.dg-movie-grid{
    display:flex;
    gap:16px;
    overflow:hidden;
    scroll-behavior:smooth;
}

/* Desktop = 4 card */
.dg-movie-card{
    flex:0 0 calc((100% - 48px) / 4);
    max-width:calc((100% - 48px) / 4);
}

.dg-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:42px;
    height:42px;
    border:none;
    border-radius:50%;
    background:rgba(0,0,0,.8);
    color:#fff;
    cursor:pointer;
    z-index:99;
}

.dg-arrow-left{
    left:-15px;
}

.dg-arrow-right{
    right:-15px;
}

/* Laptop */
@media(max-width:1400px){
    .dg-movie-card{
        flex:0 0 calc((100% - 36px) / 4);
        max-width:calc((100% - 36px) / 4);
    }
}

/* Tablet */
@media(max-width:992px){
    .dg-movie-card{
        flex:0 0 calc((100% - 24px) / 3);
        max-width:calc((100% - 24px) / 3);
    }
}

/* Mobile */
@media(max-width:768px){

    .dg-movie-grid{
        overflow-x:auto;
        gap:12px;
    }

    .dg-movie-card{
        flex:0 0 150px;
        max-width:150px;
    }

    .dg-arrow{
        display:none;
    }
}



.dg-live-grid{
    display:flex;
    gap:16px;
    overflow:hidden;
    scroll-behavior:smooth;
}

.dg-live-card{
    flex:0 0 calc((100% - 32px) / 3);
}

.dg-live-card a{
    text-decoration:none;
    color:#fff;
}

.dg-live-thumb{
    height:155px;
    border-radius:12px;
    background:linear-gradient(135deg,#8fe8ff,#bfefff);
    position:relative;
    overflow:hidden;

    display:flex;
    align-items:center;
    justify-content:center;
}

.dg-live-thumb.pink{
    background:#f50072;
}

.dg-live-thumb.blue{
    background:#b9d3ff;
}

.dg-live-thumb.blue{
    background:#b9d3ff;
}

.dg-live-thumb.antv{
    background:#ff1313;
}
.dg-live-thumb.trans7{
    background:#206cce;
}
.dg-live-thumb.transtv{
    background:#78b3ff;
}
.dg-live-thumb.gtv{
    background:#5cd156;
}

.dg-live-thumb.inews{
    background:#f48181;
}

.dg-live-thumb.mdtv{
    background:#5493d6;
}
.dg-live-thumb.cnnindo{
    background:#f59f9f;
}

.dg-live-thumb.tvone{
    background:#e83c3c;
}
.dg-live-thumb.kompas{
    background:#7db3ff;
}
.dg-live-thumb.metro{
    background:#f8a053;
}

.dg-live-thumb.rtv{
    background:#a5a0e2;
}
.dg-live-thumb.cnbc{
    background:#589ce4;
}
.dg-live-thumb.tvri{
    background:#a4c4ff;
}
.dg-live-thumb.beritasatu{
    background:#f27474;
}

.dg-live-thumb.jowo{
    background:#ffc56e;
}
.dg-live-thumb.btv{
    background:#ff6c6c;
}
.dg-live-thumb.elshinta{
    background:#f5cb8c;
}
.dg-live-thumb.magna{
    background:#cd9cfa;
}

.dg-live-thumb.jaktv{
    background:#92fa7e;
}

.dg-live-thumb.rodjatv{
    background:#f79797;
}

.dg-live-thumb.nusantaratv{
    background:#82a7f6;
}

.dg-live-thumb.saktitv{
    background:#7ebaeb;
}

.dg-live-thumb.daaitv{
    background:#fbfcff;
}
.dg-live-thumb.dutatv{
    background:#96ed95;
}

.dg-live-thumb img{
    max-width:65%;
    max-height:65%;
    object-fit:contain;
}

.dg-live-badge{
    position:absolute;
    top:10px;
    left:10px;

    background:red;
    color:#fff;

    padding:4px 8px;
    border-radius:5px;
    font-size:11px;
    font-weight:700;
}

.dg-quality{
    position:absolute;
    top:10px;
    right:10px;

    background:#fff;
    color:#111;

    padding:4px 8px;
    border-radius:5px;
    font-size:11px;
    font-weight:700;
}

.dg-live-info{
    padding-top:10px;
}

.dg-live-info h3{
    margin:0;
    font-size:15px;
    font-weight:700;
}

.dg-live-info span{
    
    color:#aaa;
    font-size:13px;
}

/* Mobile */
@media(max-width:768px){

    .dg-live-grid{
        overflow-x:auto;
        gap:12px;
    }

    .dg-live-grid::-webkit-scrollbar{
        display:none;
    }

    .dg-live-card{
        flex:0 0 280px;
    }

}

/* Berita */

.dg-news-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:15px;
}

.dg-news-card{
    background:#111;
    border-radius:12px;
    overflow:hidden;
    transition:.3s;
}

.dg-news-card:hover{
    transform:translateY(-3px);
}

.dg-news-card img{
    width:100%;
    height:180px;
    object-fit:cover;
}

.dg-news-content{
    padding:12px;
}

.dg-news-content h3{
    font-size:15px;
    margin:0 0 8px;
    line-height:1.4;
    color:#fff;
}

.dg-news-content p{
    color:#aaa;
    font-size:13px;
    margin:0;
}

.dg-news-card a{
    text-decoration:none;
}

@media(max-width:768px){

    .dg-news-grid{
        grid-template-columns:1fr;
    }

}