/* === MAIN STYLE === */
@font-face{
    font-family:"Poppins";
    src:url("../fonts/Poppins-Regular.woff2") format("woff2");
    font-weight:400;
    font-style:normal;
    font-display:swap;
}
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:"Poppins",Arial,Helvetica,sans-serif;
}
body{
    min-height:100vh;
    color:#fff;
    overflow-x:hidden;
    position:relative;
}
/* === BACKGROUND === */
body::before{
    content:"";
    position:fixed;
    inset:0;
    z-index:-2;
    pointer-events:none;
    background:linear-gradient(rgba(15,23,42,.58),rgba(15,23,42,.58)),url("../../images/bg-a.jpg") center/cover no-repeat fixed;
    animation:bgMove 35s linear infinite alternate;
}
body.index::before{
    background:linear-gradient(rgba(15,23,42,.55),rgba(15,23,42,.55)),url("../../images/bg-d.jpg") center/cover no-repeat fixed;
}
body.movies::before{
    background:linear-gradient(rgba(15,23,42,.55),rgba(15,23,42,.55)),url("../../images/bg-c.jpg") center/cover no-repeat fixed;
}
body.music::before{
    background:linear-gradient(rgba(15,23,42,.55),rgba(15,23,42,.55)),url("../../images/bg-a.webp") center/cover no-repeat fixed;
}
/* === CONTAINER === */
.container{
    width:100%;
    max-width:1100px;
    margin:0 auto;
    padding:30px 20px;
    animation:fadeIn .5s ease;
}
/* === HEADER === */
.header{
    width:100%;
    text-align:center;
    padding:28px 22px 24px;
    margin-bottom:24px;
    background:linear-gradient(135deg,rgba(15,23,42,.58),rgba(30,41,59,.28));
    border:1px solid rgba(255,255,255,.12);
    border-radius:22px;
    backdrop-filter:none;
    box-shadow:0 15px 40px rgba(0,0,0,.35);
}
.hero-icon{
    font-size:54px;
    line-height:1;
    margin-bottom:10px;
    filter:drop-shadow(0 5px 12px rgba(0,0,0,.5));
}
.header h1{
    font-size:42px;
    letter-spacing:2px;
    text-shadow:0 4px 20px rgba(0,0,0,.8);
}
.hero-subtitle{
    margin-top:8px;
    color:#cbd5e1;
    font-size:17px;
    letter-spacing:1px;
}
/* === WELCOME RUNNING TEXT === */
.hero-description{
    width:100%;
    max-width:850px;
    margin:18px auto 0;
    overflow:hidden;
    white-space:nowrap;
    padding:10px 0;
    border-top:1px solid rgba(255,255,255,.08);
    border-bottom:1px solid rgba(255,255,255,.08);
    background:rgba(15,23,42,.22);
    border-radius:8px;
}
.welcome-track{
    display:inline-block;
    padding-left:100%;
    white-space:nowrap;
    color:#e5e7eb;
    animation:welcomeRunning 32s linear infinite;
}
@keyframes welcomeRunning{
    from{
        transform:translateX(0);
    }
    to{
        transform:translateX(-100%);
    }
}
/* === MAIN HUB LINK === */
.main-hub-link{
    display:inline-block;
    margin-top:18px;
    padding:10px 20px;
    color:#fff;
    text-decoration:none;
    background:rgba(37,99,235,.65);
    border-radius:10px;
    font-weight:bold;
    transition:.25s ease;
}
.main-hub-link:hover{
    background:#2563eb;
    transform:translateY(-2px);
}
/* === MEDIA MENU GRID === */
.menu-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px;
}
/* === MEDIA CARD === */
.menu-card{
    min-height:260px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:25px 20px;
    background:linear-gradient(145deg,rgba(15,23,42,.58),rgba(30,41,59,.25));
    border:1px solid rgba(255,255,255,.12);
    border-radius:20px;
    backdrop-filter:none;
    box-shadow:0 12px 35px rgba(0,0,0,.35);
    transition:transform .3s ease,background .3s ease;
}
.menu-card:hover{
    transform:translateY(-8px);
    background:linear-gradient(145deg,rgba(37,99,235,.42),rgba(30,41,59,.32));
}
.movie-card{
    border-top:3px solid rgba(239,68,68,.55);
}
.music-card{
    border-top:3px solid rgba(168,85,247,.55);
}
.menu-icon{
    font-size:64px;
    margin-bottom:12px;
    filter:drop-shadow(0 6px 12px rgba(0,0,0,.45));
}
.menu-card h2{
    font-size:25px;
    letter-spacing:2px;
}
.menu-card p{
    max-width:280px;
    margin:10px 0 20px;
    color:#cbd5e1;
    line-height:1.5;
}
.menu-card a{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:10px 22px;
    color:#fff;
    text-decoration:none;
    background:#2563eb;
    border-radius:10px;
    font-weight:bold;
    transition:.25s ease;
}
.menu-card a:hover{
    background:#1d4ed8;
    transform:translateY(-2px);
}
/* === SERVER STATUS === */
.server-status{
    width:100%;
    max-width:500px;
    margin:25px auto 0;
    padding:14px 20px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    text-align:center;
    background:rgba(15,23,42,.55);
    border:1px solid rgba(255,255,255,.10);
    border-radius:14px;
    backdrop-filter:none;
}
.status-indicator{
    font-size:18px;
}
.status-content{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    text-align:center;
}
.status-content strong{
    text-align:center;
}
.status-content span{
    color:#cbd5e1;
    font-size:13px;
    text-align:center;
}
/* === GENERIC CARD === */
.card{
    padding:20px;
    margin-bottom:20px;
    background:rgba(17,24,39,.18);
    border:1px solid rgba(255,255,255,.08);
    border-radius:16px;
    backdrop-filter:none;
    box-shadow:0 8px 25px rgba(0,0,0,.3);
}
/* === PLAYER === */
#player{
    margin-bottom:20px;
}
video,
audio{
    width:100%;
    display:block;
    border-radius:12px;
    background:#000;
    box-shadow:0 8px 25px rgba(0,0,0,.4);
}
/* === PLAYER BUTTONS === */
.player-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    gap:10px;
    width:100%;
    margin-top:15px;
}
.player-btn button{
    padding:10px 16px;
    border:0;
    border-radius:10px;
    background:#2563eb;
    color:#fff;
    font-weight:bold;
    cursor:pointer;
    transition:.25s ease;
}
.player-btn button:hover{
    background:#1d4ed8;
    transform:translateY(-2px);
}
/* === NOW PLAYING === */
.now-playing{
    width:100%;
    text-align:center;
    margin-bottom:12px;
    font-size:18px;
}
.title-scroll{
    display:inline-block;
    max-width:80%;
    overflow:hidden;
    vertical-align:middle;
}
.title-scroll span{
    display:inline-block;
    white-space:nowrap;
}
@media(max-width:600px){
    .title-scroll span{
        animation:scrollTitle 15s linear infinite;
    }
}
@keyframes scrollTitle{
    from{
        transform:translateX(100%);
    }
    to{
        transform:translateX(-100%);
    }
}
/* === MEDIA LIST === */
#movies,
#music{
    width:100%;
}
/* === LIST GRID === */
#movie-list,
#music-list{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:12px;
    width:100%;
}
/* === MEDIA ITEM === */
.item{
    width:100%;
    min-width:0;
    min-height:62px;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    padding:12px 15px;
    overflow:hidden;
    text-align:left;
    background:linear-gradient(135deg,rgba(30,41,59,.42),rgba(15,23,42,.28));
    border:1px solid rgba(255,255,255,.10);
    border-radius:12px;
    cursor:pointer;
    transition:transform .25s ease,background .25s ease,border .25s ease;
}
/* === ITEM HOVER === */
.item:hover{
    background:linear-gradient(135deg,rgba(37,99,235,.75),rgba(30,64,175,.55));
    border-color:rgba(147,197,253,.45);
    transform:translateY(-3px);
}
/* === TEXT === */
.item{
    white-space:normal;
    word-break:break-word;
    line-height:1.35;
}
/* === SEARCH === */
.search{
    width:100%;
    padding:11px 14px;
    margin-bottom:12px;
    border:1px solid rgba(255,255,255,.15);
    border-radius:10px;
    outline:none;
    color:#111827;
}
/* === BACK BUTTON === */
.back{
    text-align:center;
    margin-top:25px;
}
.back a{
    display:inline-block;
    padding:10px 20px;
    background:linear-gradient(
        45deg,
        #2563eb,
        #06b6d4,
        #8b5cf6,
        #2563eb
    );
    background-size:300% 300%;
    color:#ffffff;
    text-decoration:none;
    border-radius:10px;
    font-weight:bold;
    animation:warna 5s ease infinite;
}

@keyframes warna{
    0%{
        background-position:0% 50%;
        box-shadow:0 0 15px #2563eb;
    }
    50%{
        background-position:100% 50%;
        box-shadow:0 0 20px #8b5cf6;
    }
    100%{
        background-position:0% 50%;
        box-shadow:0 0 15px #06b6d4;
    }
}

.back a:hover{
    background:#1d4ed8;
    transform:translateY(-2px);
}
/* === SCROLLBAR === */
::-webkit-scrollbar{
    width:8px;
}
::-webkit-scrollbar-thumb{
    background:#2563eb;
    border-radius:20px;
}
/* === ANIMATIONS === */
@keyframes bgMove{
    from{
        transform:scale(1);
    }
    to{
        transform:scale(1.05);
    }
}
@keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(8px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}
/* === MOBILE === */
@media(max-width:700px){
    .container{
        padding:15px 10px 25px;
    }
    .header{
        padding:24px 14px 20px;
        border-radius:18px;
    }
    .hero-icon{
        font-size:46px;
    }
    .header h1{
        font-size:29px;
        letter-spacing:1px;
    }
    .hero-subtitle{
        font-size:15px;
    }
    .hero-description{
        font-size:14px;
    }
    /* === HOME MEDIA CARD === */
    .menu-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:10px;
    }
    .menu-card{
        min-height:220px;
        padding:18px 8px;
        border-radius:15px;
    }
    .menu-icon{
        font-size:42px;
    }
    .menu-card h2{
        font-size:18px;
        letter-spacing:1px;
    }
    .menu-card p{
        font-size:12px;
        line-height:1.35;
        margin:8px 0 14px;
    }
    .menu-card a{
        padding:8px 12px;
        font-size:12px;
    }
    /* === SERVER STATUS === */
    .server-status{
        max-width:100%;
        padding:12px 10px;
    }
    /* === GENERIC CARD === */
    .card{
        padding:15px;
    }
    /* === MEDIA LIST HP === */
    #movie-list,
    #music-list{
        grid-template-columns:1fr;
        gap:10px;
    }
    .item{
        min-height:58px;
        padding:10px 14px;
        font-size:14px;
    }
    /* === PLAYER === */
    .player-btn{
        gap:8px;
    }
    .player-btn button{
        padding:9px 12px;
        font-size:12px;
    }
}
/* === MUSIC CATEGORY LIBRARY === */
.library-header{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:14px;
    margin-bottom:20px;
}
/* === ICON === */
.library-icon{
    width:52px;
    height:52px;
    flex-shrink:0;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:30px;
    border-radius:14px;
    background:rgba(168,85,247,.25);
}
/* === TEXT BLOCK === */
.library-header > div:last-child{
    display:flex;
    flex-direction:column;
    justify-content:center;
    text-align:left;
}
.library-header h2{
    margin:0;
    font-size:22px;
}
.library-header p{
    margin-top:4px;
    color:#cbd5e1;
    font-size:14px;
}
/* === CATEGORY GRID === */
.category-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:14px;
}
/* === CATEGORY CARD === */
.category-card{
    position:relative;
    min-height:170px;
    padding:20px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    overflow:hidden;
    cursor:pointer;
    border-radius:18px;
    background:linear-gradient(145deg,rgba(30,41,59,.55),rgba(15,23,42,.38));
    border:1px solid rgba(255,255,255,.10);
    box-shadow:0 8px 25px rgba(0,0,0,.28);
    transition:transform .25s ease,background .25s ease,border-color .25s ease;
}
.category-card:hover{
    transform:translateY(-5px);
    background:linear-gradient(145deg,rgba(126,34,206,.48),rgba(30,41,59,.55));
    border-color:rgba(216,180,254,.35);
}
/* === CATEGORY ICON === */
.category-card .category-icon{
    font-size:42px;
    line-height:1;
    margin-bottom:10px;
    filter:drop-shadow(0 5px 8px rgba(0,0,0,.45));
}
/* === CATEGORY INFO === */
.category-info h3{
    margin:0;
    font-size:20px;
    letter-spacing:1px;
    text-transform:uppercase;
}
.category-info p{
    margin-top:5px;
    color:#cbd5e1;
    font-size:13px;
}
.category-info span{
    display:block;
    margin-top:8px;
    color:#e9d5ff;
    font-size:13px;
    font-weight:bold;
}
/* === EXPLORE === */
.category-arrow{
    margin-top:15px;
    color:#ddd6fe;
    font-size:12px;
    font-weight:bold;
    letter-spacing:1px;
    transition:transform .25s ease;
}
.category-card:hover .category-arrow{
    transform:translateX(5px);
}
/* === MUSIC CATEGORY PAGE - CENTER === */
.category-header{
    width:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    margin-bottom:20px;
}
/* === TOMBOL KEMBALI === */
.category-back{
    display:block;
    margin:0 auto 18px;
    padding:9px 16px;
    border:0;
    border-radius:9px;
    color:#fff;
    background:rgba(37,99,235,.52);
    cursor:pointer;
    font-weight:bold;
    text-align:center;
}
/* === JUDUL KATEGORI === */
.category-title{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:14px;
    margin-top:14px;
    text-align:left;
}
.category-title .category-icon{
    width:52px;
    height:52px;
    flex-shrink:0;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:30px;
    border-radius:14px;
    background:rgba(37,99,235,.25);
}
.category-title > div{
    display:flex;
    flex-direction:column;
    justify-content:center;
    text-align:left;
}
.category-title h2{
    margin:0;
}
.category-title p{
    margin-top:4px;
    color:#cbd5e1;
    font-size:13px;
}
/* === SEARCH CENTER === */
.category-header + .search{
    display:block;
    width:100%;
    margin:0 auto 15px;
}
/* === DAFTAR LAGU === */
#music-list{
    width:100%;
}
/* === ITEM LAGU === */
#music-list .item{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:10px;
    text-align:left;
}
/* === BACK CATEGORY === */
.category-back{
    padding:9px 15px;
    border:0;
    border-radius:9px;
    color:#fff;
    background:rgba(37,99,235,.72);
    cursor:pointer;
    font-weight:bold;
    transition:.2s ease;
}
.category-back:hover{
    background:#2563eb;
}
/* === MOBILE === */
@media(max-width:600px){
    .library-header{
        gap:10px;
    }
    .library-icon{
        width:44px;
        height:44px;
        font-size:25px;
    }
    .library-header h2{
        font-size:19px;
    }
    .library-header p{
        font-size:12px;
    }
    .category-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:10px;
    }
    .category-card{
        min-height:165px;
        padding:14px;
        border-radius:14px;
    }
    .category-card .category-icon{
        font-size:34px;
    }
    .category-info h3{
        font-size:15px;
    }
    .category-info p{
        font-size:11px;
    }
    .category-info span{
        font-size:11px;
    }
    .category-arrow{
        font-size:10px;
    }
}

/* ====== FOOTER ====== */
.bottom-wrapper{
    width:100%;
    text-align:center;
    padding-bottom:70px;
}

.footer{
    position:fixed;
    left:0;
    bottom:0;
    width:100%;
    z-index:9999;
    pointer-events:none;

    text-align:center;
    padding:8px 0 10px;

    color:#ffffff;
    font-weight:500;

    background:transparent;
}
