/* =========================
   BODY
========================= */
body{
font-family:'Segoe UI',sans-serif;
margin:0;
background:linear-gradient(135deg,#14ffb5,#41a7fa,#16a9f2);
background-attachment:fixed;
color:#333;
}


/* =========================
   TOPBAR
========================= */
.topbar{
    display:flex;
    justify-content:center;
    align-items:center;
    background:transparent;
    padding:12px;
    color:#fff;
}

.center{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:9px;
}

.header-main{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
}

.header-bottom{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:8px;
}

.icon{
    width:68px;
    height:68px;
    object-fit:contain;
}

.brand{
    font-size:clamp(18px, 4vw, 38px);
    font-weight:900;
    color:#FFF;
    text-align:center;
}

.viewer-counter{
    font-size:14px;
}

.logo span{
color:#00ff88;
}


/* =========================
   MAIN LAYOUT
========================= */
.stream-container{
display:flex;
gap:20px;

max-width:1300px;
margin:auto;
padding:15px;

align-items:flex-start;
}


/* =========================
   PLAYER AREA
========================= */
.player-area{
flex:3;
min-width:0;
}


/* =========================
   VIDEO PLAYER
========================= */
.video-wrapper{
position:relative;
width:100%;
aspect-ratio:16/9;   /* lebih stabil dari padding-top */

background:black;

border-radius:12px;
overflow:hidden;

border:2px solid rgba(204,255,0,0.7);

box-shadow:
0 0 15px rgba(204,255,0,0.5),
0 0 30px rgba(204,255,0,0.3);

z-index:2;
}


.video-wrapper iframe{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
border:none;
}


/* =========================
   STREAM INFO
========================= */
.stream-info{
display:flex;
align-items:center;
gap:10px;

margin-top:10px;
color:white;
}

.live-badge{
background:red;
color:white;

font-weight:bold;
padding:4px 8px;
border-radius:4px;
font-size:12px;
}

.chat-panel{
flex:1;
min-width:320px;

background:transparent;
border-radius:10px;
padding:12px;

box-shadow:0 4px 15px rgba(0,0,0,0.2);

z-index:1;
}

.chat-title{
font-weight:bold;
margin-bottom:10px;
text-align:center;
}


/* =========================
   CHAT MESSAGES
========================= */
.chat-messages{
height:420px;
overflow-y:auto;

border:1px solid #ddd;
padding:8px;
margin-bottom:10px;
}


/* SCROLLBAR */
.chat-messages::-webkit-scrollbar{
width:6px;
}

.chat-messages::-webkit-scrollbar-thumb{
background:#999;
border-radius:3px;
}


/* =========================
   CHAT INPUT
========================= */
.chat-input{
width:100%;
padding:10px;

border:1px solid #ddd;
border-radius:6px;

margin-bottom:8px;
}


/* =========================
   SEND BUTTON
========================= */
.send-btn{
width:100%;
padding:10px;

background:#39ff14;   /* hijau stabilo */

border:none;
border-radius:6px;

font-weight:bold;
color:black;          /* supaya teks jelas */
cursor:pointer;

box-shadow:0 0 10px rgba(57,255,20,0.8);
}

.send-btn:hover{
background:#2ee012;
transform:scale(1.03);
}


/* =========================
   SLIDER MATCH
========================= */
.slider-section{
max-width:1300px;
margin:auto;
padding:20px;
}

.slider-title{
color:white;
margin-bottom:10px;
}

.slider{
display:flex;
gap:15px;

overflow-x:auto;
scroll-behavior:smooth;
}

.slider::-webkit-scrollbar{
display:none;
}

.slide-card{
min-width:200px;

background:white;
border-radius:10px;

overflow:hidden;

box-shadow:0 3px 10px rgba(0,0,0,0.2);

cursor:pointer;
transition:.2s;
}

.slide-card img{
width:100%;
display:block;
}

.slide-card span{
display:block;
padding:8px;

font-size:13px;
font-weight:bold;
}

.slide-card:hover{
transform:scale(1.05);
}


/* =========================
   FOOTER
========================= */
footer{
text-align:center;
padding:14px;

margin-top:30px;

background:linear-gradient(135deg,#36c8f5,#7b27d6,#fc0851);
color:white;
}


/* =========================
   RESPONSIVE
========================= */
@media(max-width:768px){

.stream-container{
flex-direction:column;
}

.player-area{
width:100%;
}

.chat-panel{
width:100%;
min-width:unset;
margin-top:10px;
}

.chat-messages{
height:220px;
}

.slide-card{
min-width:50px;
}
}
