body{
background:#0f0f0f;
color:white;
font-family:Roboto, Arial, sans-serif;
margin:0;
}

a{
color:white;
text-decoration:none;
}

/* ================= HEADER ================= */

.header{
border-bottom:1px solid #222;
background:#0f0f0f;
position:sticky;
top:0;
z-index:999;
}

.header-bar{
max-width:1400px;
margin:auto;
display:flex;
align-items:center;
justify-content:space-between;
gap:20px;
padding:12px 20px;
}

.header{
height:60px;
}

/* LOGO */

.logo-area{
display:flex;
align-items:center;
gap:10px;
font-size:20px;
font-weight:700;
}

.logo-area img{
height:24px;
}

/* SEARCH BAR (AFFILIATE SLOT) */

.search-ad{
flex:1;
display:flex;
align-items:center;
justify-content:center;
height:40px;
border-radius:20px;
background:#121212;
border:1px solid #333;
color:#aaa;
max-width:650px;
margin-left:40px;   /* dorong ke kanan */
margin-right:10px;  /* dekatkan ke mic */
cursor:pointer;
transition:.2s;
}

.search-ad span{
font-size:14px;
}

/* VOICE BUTTON */

.voice-btn{
width:40px;
height:40px;
background:#181818;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
cursor:pointer;
font-size:16px;
margin-right:320px; /* jarak ke notif/menu */
}

/* RIGHT MENU */

.right-menu{
display:flex;
align-items:center;
gap:18px;
}

/* CREATE BUTTON */

.create-btn{
background:#272727;
border:none;
color:white;
padding:8px 16px;
border-radius:20px;
cursor:pointer;
font-size:14px;
}

/* NOTIFICATION */

.notif{
position:relative;
font-size:18px;
cursor:pointer;
}

.notif-badge{
position:absolute;
top:-6px;
right:-8px;
background:red;
color:white;
font-size:10px;
padding:2px 6px;
border-radius:10px;
}

/* AVATAR */

.channel-avatar{
width:32px;
height:32px;
border-radius:50%;
cursor:pointer;
}
/* ================= CONTAINER ================= */

.container{
max-width:1400px;
margin:auto;
padding:20px;
}

/* ================= HERO ================= */

.hero-row{
display:flex;
gap:20px;
margin-bottom:20px;
align-items:stretch;
}

.hero{
flex:2;
}

.hero iframe{
width:100%;
aspect-ratio:16/9;
border-radius:10px;
border:none;
}

/* ================= TRENDING ================= */

.trending{
flex:1;
background:#181818;
padding:15px;
border-radius:14px;
display:flex;
flex-direction:column;
}

.trend-card{
display:flex;
gap:10px;
margin-bottom:12px;
}

.trend-card img{
width:100px;
height:auto;
border-radius:6px;
}

.video-title{
font-size:14px;
line-height:1.4;
}

/* ================= CHANNEL INFO ================= */

.channel-info{
margin-top:30px;
border-bottom:1px solid #222;
padding:20px;
background:#181818;
border-radius:14px;
}

.channel-header{
display:flex;
gap:20px;
}

#channel-logo{
width:90px;
height:90px;
border-radius:50%;
}

.channel-main{
flex:1;
}

.channel-row{
display:flex;
align-items:center;
gap:12px;
margin-bottom:6px;
}

#channel-name{
font-size:22px;
margin:0;
}

.subscribe-btn{
background:#cc0000;
color:white;
border:none;
padding:8px 16px;
border-radius:4px;
cursor:pointer;
}

#channel-handle,
#subscriber-count{
color:#aaa;
font-size:14px;
}

.channel-links{
margin-top:10px;
display:flex;
gap:10px;
align-items:center;
}

.social-btn{
background:#222;
padding:8px;
border-radius:6px;
}

.sawer-btn{
background:#ffcc00;
border:none;
padding:8px 14px;
border-radius:6px;
font-weight:bold;
cursor:pointer;
}

.channel-description{
margin-top:10px;
color:#aaa;
font-size:14px;
}

.channel-description a{
color:#3ea6ff;
}

/* ================= CONTENT ================= */

.content-row{
display:flex;
gap:20px;
margin-top:30px;
}

.left-content{
flex:3;
}

/* ================= SIDEBAR ADS ================= */

.right-ads{
flex:1;
display:flex;
flex-direction:column;
gap:20px;
}

.ads{
width:100%;
aspect-ratio:300/250;
background:#222;
border-radius:10px;
overflow:hidden;
display:block;
}

.ads img{
width:100%;
height:100%;
object-fit:contain;
display:block;
}

/* ================= SHORTS ================= */

#shorts-row{
display:grid;
grid-template-columns:repeat(6,1fr);
gap:12px;
margin-bottom:30px;
}

.short-card{
background:#181818;
border-radius:10px;
overflow:hidden;
transition:.25s;
}

.short-card:hover{
transform:scale(1.05);
}

.short-video{
position:relative;
width:100%;
padding-top:177%;
overflow:hidden;
}

.short-video img{
position:absolute;
top:0;
left:50%;
transform:translateX(-50%);
height:100%;
width:auto;
}

.short-meta{
font-size:12px;
color:#aaa;
padding:6px 8px;
display:flex;
justify-content:space-between;
}

/* ================= VIDEO GRID ================= */

.videos{
display:grid;
grid-template-columns:repeat(6,1fr);
gap:12px;
}

.video-card{
transition:.25s;
}

.video-card:hover{
transform:scale(1.07);
}

.video-card img{
width:100%;
border-radius:6px;
display:block;
}

.video-meta{
font-size:12px;
color:#aaa;
margin-top:4px;
}

/* ================= FLOATING PROMO ================= */

.floating-bar{
position:fixed;
bottom:0;
left:0;
width:100%;
background:#cc0000;
color:white;
font-weight:bold;
text-align:center;
padding:14px;
z-index:9999;
box-shadow:0 -2px 10px rgba(0,0,0,.6);
}

.floating-bar a{
color:white;
}

/* ================= POPUP ================= */

.popup{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.8);
display:none;
align-items:center;
justify-content:center;
}

.popup-content{
background:#181818;
padding:30px;
max-width:600px;
border-radius:10px;
position:relative;
}

#close-popup{
position:absolute;
top:10px;
right:10px;
background:red;
border:none;
color:white;
padding:5px 10px;
cursor:pointer;
}

/* ================= MOBILE ================= */

@media (max-width:900px){

.hero-row{
flex-direction:column;
}

.content-row{
flex-direction:column;
}

.right-ads{
flex-direction:row;
overflow-x:auto;
gap:10px;
}

.ads{
min-width:220px;
height:120px;
}

#shorts-row{
grid-template-columns:repeat(3,1fr);
}

.videos{
grid-template-columns:repeat(2,1fr);
}

.channel-header{
flex-direction:column;
align-items:flex-start;
}

#channel-logo{
width:70px;
height:70px;
}

}

@media (max-width:500px){

#shorts-row{
grid-template-columns:repeat(2,1fr);
}

.videos{
grid-template-columns:repeat(1,1fr);
}

}

/* ================= HAMBURGER MENU ================= */

.menu-toggle{
font-size:22px;
cursor:pointer;
margin-right:15px;
}

/* SIDEBAR */

.sidebar{
position:fixed;
top:0;
left:-260px;
width:260px;
height:100%;
background:#0f0f0f;
border-right:1px solid #222;
transition:0.3s;
z-index:2000;
padding-top:70px;
}

.sidebar.active{
left:0;
}

.sidebar-menu{
display:flex;
flex-direction:column;
}

.sidebar-menu a{
padding:12px 20px;
text-decoration:none;
color:#ddd;
font-size:14px;
transition:0.2s;
}

.sidebar-menu a:hover{
background:#1f1f1f;
}

.menu-title{
padding:15px 20px;
font-size:12px;
color:#888;
text-transform:uppercase;
}
/* ================= MENU OVERLAY ================= */

.menu-overlay{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.6);
opacity:0;
visibility:hidden;
transition:opacity .3s ease;
z-index:1500;
}

.menu-overlay.active{
opacity:1;
visibility:visible;
}

/* ================= SIDEBAR ANIMATION ================= */

.sidebar{
position:fixed;
top:0;
left:-260px;
width:260px;
height:100%;
background:#0f0f0f;
border-right:1px solid #222;
transition:left .35s ease;
z-index:2000;
padding-top:70px;
}

.sidebar.active{
left:0;
}

/* ================= MOBILE HEADER FIX ================= */

@media (max-width:768px){

.header-bar{
gap:8px;
padding:10px;
}

/* search bar diperkecil */

.search-ad{
max-width:180px;
font-size:12px;
}

/* voice icon lebih kecil */

.voice-btn{
width:34px;
height:34px;
font-size:14px;
}

/* menu kanan lebih rapat */

.right-menu{
gap:10px;
}

/* create disembunyikan di HP */

.create-btn{
display:none;
}

}

/* ================= MOBILE HEADER SIMPLIFY ================= */

@media (max-width:768px){

/* sembunyikan nama channel */

.logo-area span{
display:none;
}

/* sembunyikan icon yang tidak diperlukan di mobile */

@media (max-width:768px){

.create-btn,
.voice-btn,
.notif{
display:none !important;
}

}

/* header lebih rapat */

.header-bar{
gap:8px;
padding:10px 12px;
}

/* logo youtube */

.logo-area img{
height:22px;
}

/* search bar / iklan diperbesar */

.search-ad{
flex:1;
max-width:none;
height:34px;
font-size:12px;
margin:0 6px;
}

/* avatar */

.channel-avatar{
width:28px;
height:28px;
}

}

/* ================= JADWAL WAYANG (UPGRADE) ================= */

.jadwal-box{
padding:14px 16px;
background:#161616;
border-radius:10px;
}


/* HEADER JADWAL */

.jadwal-title{
display:flex;
align-items:flex-start;
gap:12px;
margin:0;
font-size:17px;
font-weight:700;
letter-spacing:.4px;
}

/* ICON */

.jadwal-icon{
font-size:34px;
line-height:1;
margin-top:2px;
}

/* DATE */

.jadwal-date{
font-size:15px;
color:#ffffff;
margin-top:-4px;
margin-left:46px;
font-weight:600;
text-transform:uppercase;
letter-spacing:.5px;
}

/* LIST (SCROLL, BUKAN ROLL) */

.jadwal-list{
max-height:240px;
overflow-y:auto;
display:flex;
flex-direction:column;
gap:10px;
padding-right:4px;
}

/* ITEM */

.jadwal-item{
border-bottom:1px solid #222;
padding-bottom:6px;
transition:.2s;
}

.jadwal-item:hover{
background:#1a1a1a;
border-radius:6px;
padding:6px;
}

/* DALANG */

.jadwal-item .dalang{
font-size:13px;
font-weight:600;
letter-spacing:.3px;
}

/* LOKASI */

.jadwal-item .lokasi{
font-size:11px;
opacity:.65;
margin-top:2px;
line-height:1.3;
}

/* ================= CTA PALING PENTING ================= */

.jadwal-btn{
margin-top:12px;
display:block;
text-align:center;
background:#cc0000;
color:white;
padding:12px;
border-radius:10px;
font-size:13px;
font-weight:600;
letter-spacing:.5px;
text-decoration:none;
position:relative;
overflow:hidden;
}

/* 🔥 efek glow halus (bukan kedip norak) */
.jadwal-btn::before{
content:"";
position:absolute;
top:0;
left:-100%;
width:100%;
height:100%;
background:linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
transition:.6s;
}

.jadwal-btn:hover::before{
left:100%;
}

/* 🔥 pulse halus */
@keyframes pulseRed {
0% { box-shadow:0 0 0 0 rgba(204,0,0,.6); }
70% { box-shadow:0 0 0 10px rgba(204,0,0,0); }
100% { box-shadow:0 0 0 0 rgba(204,0,0,0); }
}

.jadwal-btn{
animation:pulseRed 2.5s infinite;
}

/* TAP EFFECT */

.jadwal-btn:active{
transform:scale(0.96);
background:#990000;
}

/* NOTE */

.jadwal-note{
font-size:10px;
opacity:.5;
margin-top:8px;
line-height:1.4;
}

/* SCROLLBAR DARK */

.jadwal-list::-webkit-scrollbar{
width:4px;
}

.jadwal-list::-webkit-scrollbar-thumb{
background:#333;
border-radius:10px;
}
