*{margin:0;padding:0;box-sizing:border-box}

:root{
--gold:#f4c15d;
--gold2:#ffd978;
--bg:#0f0f0f;
--card:#171717;
--border:rgba(255,255,255,.06);
--text:#fff;
--muted:#8e8e8e;
}

body{
background:radial-gradient(circle at top,rgba(244,193,93,.08),transparent 35%),var(--bg);
color:var(--text);
font-family:Inter,Arial,sans-serif;
min-height:100vh;
padding-top:110px;
padding-bottom:90px;
}

/* ================= HEADER ================= */

.topbar{
    position:fixed;
    top:0;
    left:0;
    right:0;
    height:65px;

    display:flex;
    align-items:center;
    gap:16px;

    padding:0 15px;

    background:rgba(15,15,15,.92);
    backdrop-filter:blur(20px);

    border-bottom:1px solid var(--border);

    z-index:1000;
}

/* ================= LOGO ================= */

.logo{
    display:flex;
    align-items:center;
    gap:8px;

    flex-shrink:0;

    font-size:24px;
    font-weight:800;

    background:linear-gradient(
        90deg,
        var(--gold),
        var(--gold2)
    );

    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.logo img{
    display:block;
    width:auto;
    height:42px;
}

.logo i{
    font-size:20px;
    -webkit-text-fill-color:var(--gold);
}

/* Mobile */
@media (max-width:768px){

    .logo{
        font-size:18px;
        gap:6px;
    }

    .logo img{
        height:30px;
    }

    .logo i{
        font-size:16px;
    }

}


/* ================= SEARCH ================= */

/* Mobile default */
.header-search{
    width:220px;
    max-width:220px;
    margin-left:auto;

    display:flex;
    align-items:center;

    flex-shrink:0;
}

/* Tablet */
@media (min-width:768px){

    .header-search{
        width:350px;
        max-width:350px;
    }

}

/* Laptop/Desktop */
@media (min-width:1024px){

    .header-search{
        flex:1;
        max-width:none;
        margin-left:auto;
    }

}

.header-search input{
    flex:1;

    width:100%;
    height:40px;

    padding:0 14px;

    border:none;
    outline:none;

    color:#fff;
    font-size:13px;

    background:#1b1b1b;

    border-radius:12px 0 0 12px;
}

.header-search input::placeholder{
    color:#888;
}

.header-search button{
    width:44px;
    height:40px;

    border:none;

    cursor:pointer;

    color:#111;

    background:linear-gradient(
        135deg,
        var(--gold),
        #e5ab2d
    );

    border-radius:0 12px 12px 0;

    transition:.2s;
}

.header-search button:hover{
    opacity:.9;
}

/* ================= MENU ================= */

.header-menu{
    display:flex;
    align-items:center;
    gap:10px;

    margin-left:auto;

    flex-shrink:0;
}

.menu-link{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    gap:3px;

    min-width:58px;

    color:#fff;
    text-decoration:none;

    transition:.2s;
}

.menu-link:hover{
    transform:translateY(-2px);
}

.menu-link i{
    font-size:18px;

    background:linear-gradient(
        135deg,
        var(--gold),
        #e5ab2d
    );

    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.menu-link span{
    font-size:10px;
    font-weight:600;
}

/* ================= BUTTONS ================= */

.btn-download,
.btn-login,
.btn-register{
    display:flex;
    align-items:center;
    gap:6px;

    height:40px;
    padding:0 14px;

    border-radius:12px;

    text-decoration:none;

    font-size:13px;
    font-weight:700;

    transition:.2s;
}

.btn-download{
    color:#fff;
    background:#dc2626;
    border:1px solid #ef4444;
}

.btn-download:hover{
    background:#b91c1c;
}

.btn-login{
    color:#fff;
    background:#16a34a;
    border:1px solid #22c55e;
}

.btn-login:hover{
    background:#15803d;
}

.btn-register{
    color:#111;

    background:linear-gradient(
        135deg,
        var(--gold),
        #e5ab2d
    );

    border:1px solid rgba(255,215,0,.3);
}

.btn-register:hover{
    transform:translateY(-1px);
}

/* BREADCRUMB */

.breadcrumb{
position:fixed;
top:65px;
left:0;
right:0;
height:38px;
display:flex;
align-items:center;
gap:8px;
padding:0 15px;
background:#121212;
border-bottom:1px solid var(--border);
z-index:999;
font-size: 13px;
}

.breadcrumb a{
display:flex;
align-items:center;
gap:6px;
color:inherit;
text-decoration:none;
}

.breadcrumb a:hover{color:var(--gold)}
.breadcrumb strong{color:var(--gold)}

/* WELCOME */

.welcome-card{
position:fixed;
top:65px;
left:0;
right:0;
height:56px;
display:flex;
align-items:center;
gap:10px;
padding:0 15px;
background:#121212;
border-bottom:1px solid var(--border);
color:#fff;
z-index:999;
}

.welcome-card i{
font-size:18px;
color:var(--gold);
flex-shrink:0;
}

.welcome-text{
display:flex;
flex-direction:column;
justify-content:center;
min-width:0;
}

.welcome-title{
font-size:13px;
font-weight:700;
line-height:1.2;
}

.welcome-desc{
font-size:11px;
color:#999;
line-height:1.2;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}

/* TABS */

.tabs{
position:fixed;
top:103px;
left:0;
right:0;
height:52px;
display:flex;
align-items:center;
gap:10px;
padding:0 15px;
overflow-x:auto;
overflow-y:hidden;
background:#121212;
border-bottom:1px solid var(--border);
z-index:998;
}

.tabs::-webkit-scrollbar{display:none}

.tab{
border:none;
cursor:pointer;
color:#aaa;
font-size:13px;
font-weight:600;
padding:10px 16px;
border-radius:999px;
background:#1c1c1c;
white-space:nowrap;
transition:.2s;
}

.tab.active{
color:#111;
background:linear-gradient(135deg,var(--gold),var(--gold2));
}

/* PAGE TITLE */

.page-title{
position:fixed;
top:155px;
left:0;
right:0;
padding:10px 15px;
background:var(--bg);
border-bottom:1px solid var(--border);
z-index:997;
}

.page-title h2{font-size:18px}

.page-title p{
margin-top:6px;
font-size:13px;
color:#888;
}

/* PROVIDERS */

.provider-section{
margin:30px 0;
}

.provider-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 12px;
    margin-bottom:15px;
}

.provider-title{
    display:flex;
    align-items:center;
    gap:10px;
}

.provider-logo{
    width:28px;
    height:28px;
    object-fit:contain;
    flex-shrink:0;
}

.provider-header h2{
    margin:0;
    font-size:18px;
    font-weight:700;
}

.provider-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 12px;
    margin-bottom:15px;
}

.provider-title{
    display:flex;
    align-items:center;
    gap:10px;
}

.provider-logo{
    width:32px;
    height:32px;
    border-radius:50%;
    object-fit:cover;
    flex-shrink:0;
}

.provider-header h2{
    margin:0;
    font-size:18px;
    font-weight:700;
}

.provider-header a{
display:flex;
align-items:center;
gap:6px;
color:var(--gold);
text-decoration:none;
font-size:13px;
font-weight:600;
}

/* GRID */

.grid,
.provider-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:10px;
}

.grid{padding:120px 12px 20px}
.provider-grid{padding:0 12px 20px}

.card{
color:#fff;
text-decoration:none;
transition:.25s;
}

.card:hover{transform:translateY(-4px)}

.cover{
width:100%;
aspect-ratio:2/3;
object-fit:cover;
background:#222;
box-shadow:0 5px 15px rgba(0,0,0,.35);
}

.title{
margin-top:10px;
margin-bottom:10px;
margin-left:5px;
font-size:12px;
font-weight:700;
line-height:1.3;
display:-webkit-box;
-webkit-line-clamp:2;
-webkit-box-orient:vertical;
overflow:hidden;
}

/* LOADING */

.loading{
display:none;
padding:25px;
text-align:center;
color:#888;
}

/* FOOTER */

.bottom-nav{
position:fixed;
left:0;
right:0;
bottom:0;
height:70px;
display:flex;
align-items:center;
justify-content:space-around;
background:rgba(17,17,17,.95);
backdrop-filter:blur(20px);
border-top:1px solid var(--border);
z-index:1000;
}

.bottom-nav a{
display:flex;
flex-direction:column;
align-items:center;
gap:5px;
color:#888;
text-decoration:none;
transition:.2s;
}

.bottom-nav a.active{color:var(--gold)}
.bottom-nav a i{font-size:18px}
.bottom-nav a span{font-size:11px}

/* TEXT */

em{
color:var(--gold);
font-style:normal;
font-weight:700;
}

/* TABLET */

@media(max-width:768px){

.menu-link{min-width:48px}
.menu-link i{font-size:16px}
.menu-link span{font-size:9px}

.btn-download span,
.btn-login span,
.btn-register span{
display:none;
}

.btn-download,
.btn-login,
.btn-register{
width:40px;
padding:0;
justify-content:center;
}

}

@media(min-width:768px){

.grid,
.provider-grid{
grid-template-columns:repeat(4,1fr);
}

.grid{padding:120px 15px 20px}
.provider-grid{padding:0 15px 20px}

.title{font-size:13px}

}

/* DESKTOP */

@media(min-width:1200px){

.grid,
.provider-grid{
grid-template-columns:repeat(6,1fr);
gap:16px;
}

.grid{padding:120px 20px 20px}
.provider-grid{padding:0 20px 20px}

.title{font-size:14px}

.tag,
.heat{
font-size:12px;
}

}


/* ================= CARD ================= */
.card{
position:relative;
overflow:hidden;
background:#111;
color:#fff;
text-decoration:none;
transition:.25s;
}

.card:hover{transform:translateY(-4px)}

/* FIX: skeleton jangan nutup teks */
.card::before{
content:"";
position:absolute;
inset:0;
background:linear-gradient(90deg,#111,#1b1b1b,#111);
background-size:200% 100%;
animation:shimmer 1.2s infinite;
z-index:0;
pointer-events:none;
}

.card > *{
position:relative;
z-index:2;
}

/* ================= COVER ================= */
.cover{
width:100%;
aspect-ratio:2/3;
object-fit:cover;
background:#222;
box-shadow:0 5px 15px rgba(0,0,0,.35);
display:block;
filter:blur(18px);
transform:scale(1.08);
transition:.35s;
}

.cover.loaded{
filter:blur(0);
transform:scale(1);
opacity:1;
}


.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255,255,255,0.15);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


.highlight{
    background:#ffeb3b;
    color:#000;
    padding:2px 4px;
    border-radius:4px;
    font-weight:600;
}


.meta{
display:flex;
justify-content:space-between;
align-items:center;
margin-top:6px;
font-size:12px;
color:#999;
}

.meta .episode{
font-weight:500;
}

.meta .views{
display:flex;
align-items:center;
gap:4px;
}

.meta i{
font-size:11px;
}