/*
Theme Name: StreamFlix PRO FINAL ULTRA
*/

body{
margin:0;
font-family:Arial, sans-serif;
background:linear-gradient(to bottom,#0f0f0f,#000);
color:#fff;
}

/* HEADER */
.header{
padding:15px;
background:#111;
font-size:20px;
font-weight:bold;
text-align:center;
letter-spacing:1px;
}

/* GRID HOMEPAGE */
.grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:8px;
padding:8px;
}

.card{
position:relative;
overflow:hidden;
border-radius:10px;
cursor:pointer;
}

.card img{
width:100%;
height:110px;
object-fit:cover;
border-radius:10px;
transition:0.3s;
}

.card:hover img{
transform:scale(1.08);
filter:brightness(1.2);
}

/* PLAY ICON */
.play{
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
width:50px;
height:50px;
background:rgba(0,0,0,0.6);
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
}

.play:after{
content:'▶';
color:#fff;
font-size:20px;
margin-left:3px;
}

/* PLAYER */
.player{
position:relative;
padding-top:56.25%;
border-radius:12px;
overflow:hidden;
background:#000;
box-shadow:0 0 25px rgba(255,0,0,0.4);
}

.player iframe{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
border:none;
}

/* LAYOUT */
.container{
display:flex;
gap:12px;
padding:10px;
}

.main{
flex:2;
}

.sidebar{
flex:1;
overflow:auto;
max-height:80vh;
}

/* SIDEBAR ITEM */
.item{
margin-bottom:10px;
}

.item img{
width:100%;
border-radius:8px;
transition:0.3s;
}

.item:hover img{
transform:scale(1.05);
filter:brightness(1.2);
}

/* SERVER BUTTON */
.servers{
display:flex;
gap:10px;
margin-top:12px;
}

.servers button{
flex:1;
padding:12px;
background:linear-gradient(45deg,#ff0000,#ff4d4d);
border:none;
border-radius:10px;
color:#fff;
font-weight:bold;
cursor:pointer;
transition:0.3s;
}

.servers button:hover{
transform:scale(1.05);
}

/* ACTION BUTTON */
.action a{
display:block;
margin-top:10px;
padding:12px;
background:#111;
border-radius:10px;
text-align:center;
color:#fff;
text-decoration:none;
transition:0.3s;
}

.action a:hover{
background:#ff0000;
}

/* STICKY ADS */
.sticky{
position:fixed;
bottom:0;
width:100%;
background:#111;
text-align:center;
z-index:999;
padding:5px;
}

/* SCROLLBAR (BIAR PREMIUM) */
::-webkit-scrollbar{
width:6px;
}
::-webkit-scrollbar-thumb{
background:#ff0000;
border-radius:10px;
}

/* MOBILE */
@media(max-width:768px){

.grid{
grid-template-columns:repeat(3,1fr);
gap:6px;
}

.card img{
height:90px;
}

.container{
flex-direction:column;
}

.sidebar{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:5px;
max-height:none;
}

.item img{
width:100%;
}

.player{
border-radius:8px;
}
}