*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Arial,sans-serif;
}

body{
background:#0f0f0f;
color:#fff;
}

/* ===== NAVBAR ===== */

.navbar{
    position:sticky;
    top:0;
    z-index:999;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 30px;
    background:rgba(15,15,15,.85);
    backdrop-filter:blur(12px);
    border-bottom:1px solid #262626;
}

.logo a{
    display:flex;
    align-items:center;
    gap:8px;
    text-decoration:none;
    color:#fff;
    font-size:28px;
    font-weight:bold;
}

.logo span{
    color:#8b5cf6;
}

nav{
    display:flex;
    gap:10px;
}

nav a{
    text-decoration:none;
    color:#bbb;
    padding:10px 18px;
    border-radius:12px;
    transition:.25s;
}

nav a:hover{
    background:#27272a;
    color:white;
}

nav a.active{
    background:#7c3aed;
    color:white;
}

.container{
    width:100%;
    max-width:1400px;
    margin:auto;
    padding:25px;
}

.video-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:22px;
    margin-top:30px;
}

.card{

background:#18181c;

border-radius:18px;

overflow:hidden;

transition:.3s;

box-shadow:0 5px 18px rgba(0,0,0,.25);

}

.card:hover{

transform:translateY(-8px);

box-shadow:0 15px 35px rgba(124,58,237,.25);

}

.description{

background:#18181c;

padding:18px;

border-radius:15px;

margin:25px 0;

line-height:28px;

}

.thumb{
    position:relative;
    width:100%;
    aspect-ratio:16/9;
    overflow:hidden;
    border-radius:16px 16px 0 0;
    background:#111;
}

.thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    display:block;
}

.duration{

position:absolute;

bottom:10px;

right:10px;

background:#000;

padding:4px 8px;

border-radius:5px;

font-size:12px;

}

.info{

padding:14px;

}

.info h3{

font-size:16px;

font-weight:700;

line-height:22px;

margin-bottom:8px;

color:#fff;

display:-webkit-box;

-webkit-box-orient:vertical;

overflow:hidden;

}

.info p{

color:#9ca3af;

font-size:14px;

}

.pagination{

display:flex;

justify-content:center;

gap:10px;

margin:40px 0;

}

.pagination a{

width:40px;

height:40px;

background:#222;

display:flex;

justify-content:center;

align-items:center;

color:#fff;

text-decoration:none;

border-radius:8px;

}

.pagination a.active{

background:#7c3aed;

}

.footer{

margin-top:50px;

padding:20px;

text-align:center;

color:#777;

}

.sidebar{
position:fixed;
left:0;
top:0;
width:230px;
height:100vh;
background:#181818;
padding:20px;
}

.sidebar h2{
margin-bottom:30px;
color:#7c3aed;
}

.sidebar a{
display:block;
padding:14px;
margin-bottom:10px;
color:white;
text-decoration:none;
border-radius:8px;
transition:.3s;
}

.sidebar a:hover{
background:#7c3aed;
}

.admin-content{
margin-left:250px;
padding:30px;
}
.stats{
display:flex;
gap:20px;
margin:30px 0;
}

.box{
background:#1f2937;
padding:20px;
border-radius:10px;
width:220px;
text-align:center;
}

.box h3{
margin-bottom:10px;
color:#bbb;
}

.box h1{
font-size:34px;
color:#7c3aed;
}

table{
width:100%;
border-collapse:collapse;
margin-top:20px;
}

table th,
table td{
padding:12px;
border-bottom:1px solid #333;
text-align:left;
}

/* Tablet */
@media (max-width: 992px){
    .video-grid{
        grid-template-columns:repeat(3,1fr);
    }
}

/* HP */
@media(max-width:768px){

.video-grid{

grid-template-columns:repeat(2,1fr);

gap:15px;

}

.container{

padding:18px;

}

}

.player{

margin-top:25px;

margin-bottom:25px;

border-radius:20px;

overflow:hidden;

background:#000;

}

.player video{

width:100%;

display:block;

border-radius:20px;

}

.video-title{

font-size:34px;

font-weight:bold;

margin-top:20px;

margin-bottom:10px;

}

.video-meta{

color:#9ca3af;

margin-bottom:20px;

}

.related{

margin-top:40px;

}

.related h2{

font-size:24px;

margin-bottom:20px;

}

.support-box{
    background:#18181c;
    padding:20px;
    margin:30px 0;
    border-radius:16px;
    text-align:center;
    border:1px solid #2b2b2b;
}

.support-box h3{
    margin-bottom:10px;
    color:#fff;
}

.support-box p{
    color:#bdbdbd;
    margin-bottom:18px;
}

.support-btn{
    display:inline-block;
    padding:12px 24px;
    background:#7c3aed;
    color:#fff;
    text-decoration:none;
    border-radius:10px;
    font-weight:bold;
    transition:.3s;
}

.support-btn:hover{
    background:#6d28d9;
}
.upload-card{

max-width:700px;

margin:40px auto;

background:#18181c;

padding:30px;

border-radius:20px;

box-shadow:0 10px 30px rgba(0,0,0,.25);

}

.upload-card h1{

margin-bottom:10px;

}

.upload-card p{

color:#9ca3af;

margin-bottom:25px;

}

.upload-card label{

display:block;

margin:18px 0 8px;

font-weight:bold;

}

.upload-card input,

.upload-card textarea{

width:100%;

padding:14px;

border:none;

background:#262626;

color:#fff;

border-radius:10px;

}

.upload-card button{

margin-top:25px;

width:100%;

padding:15px;

background:#7c3aed;

border:none;

color:white;

font-size:16px;

font-weight:bold;

border-radius:10px;

cursor:pointer;

transition:.3s;

}

.upload-card button:hover{

background:#6d28d9;

}

.upload-menu{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-decoration:none;
    color:#fff;
    padding:8px 15px;
    transition:.3s;
}

.upload-menu .title{
    font-size:16px;
    font-weight:700;
}

.upload-menu .subtitle{
    font-size:11px;
    color:#a78bfa;
    margin-top:2px;
    font-weight:500;
}

.upload-menu.active .subtitle{
    color:#ffffff;
}

/* ===========================
   HEADER RESPONSIVE MOBILE
=========================== */
@media (max-width:768px){

.navbar{
    padding:10px 15px;
}

.navbar .logo span{
    font-size:22px;
}

.navbar nav{
    display:flex;
    align-items:center;
    gap:8px;
}

.navbar nav a{
    font-size:14px;
    padding:8px 12px;
}

.upload-menu .title{
    font-size:13px;
}

.upload-menu .subtitle{
    font-size:9px;
}

}

/* PLAYER */
.player{
    display:flex;
    justify-content:center;
    margin:25px auto;
}

.player video{
    width:100%;
    max-width:430px;
    max-height:450px;
    border-radius:18px;
    background:#000;
    object-fit:contain;
    box-shadow:0 10px 30px rgba(0,0,0,.45);
}

.video-info{

margin-top:20px;

}

.video-info h1{

font-size:30px;

font-weight:700;

margin-bottom:8px;

color:#fff;

}

.video-meta{

display:flex;

gap:12px;

align-items:center;

color:#aaa;

margin-bottom:20px;

font-size:15px;

}

.video-actions{

display:flex;

flex-wrap:wrap;

gap:12px;

margin-bottom:25px;

}

.action-btn{

background:#232323;

border:none;

padding:12px 20px;

border-radius:50px;

color:#fff;

cursor:pointer;

font-size:15px;

transition:.3s;

}

.action-btn:hover{

background:#8b5cf6;

}

.video-desc{

background:#181818;

padding:18px;

border-radius:18px;

line-height:1.8;

color:#ddd;

}

/* ===== LOGIN & SIGNUP ===== */

.auth-page{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    background:linear-gradient(135deg,#0f172a,#1e1b4b,#7c3aed);
    padding:20px;
}

.auth-box{
    width:100%;
    max-width:430px;
    background:rgba(22,22,28,.95);
    border-radius:24px;
    padding:35px;
    color:#fff;
    backdrop-filter:blur(15px);
    box-shadow:0 20px 60px rgba(0,0,0,.45);
}

.auth-logo{
    text-align:center;
    font-size:34px;
    font-weight:700;
    margin-bottom:10px;
}

.auth-desc{
    text-align:center;
    color:#bdbdbd;
    margin-bottom:30px;
    line-height:1.6;
}

.input-group{
    margin-bottom:18px;
}

.input-group input{
    width:100%;
    padding:15px;
    border:none;
    border-radius:14px;
    background:#2b2b35;
    color:#fff;
    font-size:15px;
    outline:none;
}

.input-group input:focus{
    border:2px solid #8b5cf6;
}

.auth-btn{
    width:100%;
    padding:15px;
    border:none;
    border-radius:14px;
    background:#8b5cf6;
    color:#fff;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
}

.auth-btn:hover{
    background:#6d28d9;
    transform:translateY(-2px);
}

.auth-footer{
    margin-top:20px;
    text-align:center;
    color:#bdbdbd;
}

.auth-footer a{
    color:#a78bfa;
    text-decoration:none;
    font-weight:600;
}

.dashboard-page{

max-width:1100px;

margin:40px auto;

padding:20px;

}

.dashboard-header{

background:linear-gradient(135deg,#7c3aed,#5b21b6);

padding:30px;

border-radius:22px;

color:#fff;

margin-bottom:30px;

}

.dashboard-header h1{

font-size:32px;

margin-bottom:10px;

}

.menu-grid{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

gap:20px;

}

.menu-card{

background:#1b1b22;

border-radius:18px;

padding:35px;

text-align:center;

text-decoration:none;

color:#fff;

transition:.3s;

}

.menu-card:hover{

transform:translateY(-6px);

box-shadow:0 15px 30px rgba(124,58,237,.3);

}

.menu-card{

font-size:45px;

}

.menu-card h3{

margin-top:15px;

font-size:18px;

}
.upload-box{

max-width:700px;

margin:50px auto;

background:#1b1b22;

padding:35px;

border-radius:20px;

}

.upload-box h1{

color:#fff;

margin-bottom:10px;

}

.upload-box p{

color:#999;

margin-bottom:25px;

}

.upload-box input,

.upload-box textarea{

width:100%;

padding:15px;

background:#2b2b35;

border:none;

border-radius:12px;

margin-bottom:18px;

color:#fff;

}

.upload-box button{

width:100%;

padding:15px;

background:#7c3aed;

border:none;

border-radius:12px;

color:#fff;

font-size:17px;

cursor:pointer;

transition:.3s;

}

.upload-box button:hover{

background:#6d28d9;

}

.success{

background:#16a34a;

padding:15px;

border-radius:10px;

margin-bottom:20px;

color:white;

}

.myvideos{

max-width:1200px;

margin:40px auto;

padding:20px;

}

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.my-card{

background:#1b1b22;

border-radius:18px;

overflow:hidden;

}

.my-card img{

width:100%;

aspect-ratio:16/9;

object-fit:cover;

display:block;

}

.my-card h3{

padding:15px;

color:#fff;

font-size:18px;

}

.my-card p{

padding:0 15px 15px;

color:#aaa;

}

.action{

display:flex;

justify-content:space-between;

padding:15px;

}

.action a{

color:#fff;

background:#7c3aed;

padding:10px 16px;

border-radius:10px;

text-decoration:none;

transition:.3s;

}

.action a:hover{

background:#5b21b6;

}

.admin-table{

width:100%;

border-collapse:collapse;

background:#1b1b22;

border-radius:15px;

overflow:hidden;

}

.admin-table th{

background:#7c3aed;

padding:15px;

color:white;

}

.admin-table td{

padding:15px;

border-bottom:1px solid #333;

color:white;

}

.admin-table tr:hover{

background:#252530;

}

.admin-table a{

background:#ef4444;

padding:8px 15px;

border-radius:8px;

text-decoration:none;

color:white;

}

/* SYARAT DASHBOARD USER */

.terms-box{
    width:95%;
    max-width:1000px;
    margin:25px auto;
    padding:25px;
    box-sizing:border-box;
    background:#1f2937;
    border:1px solid #374151;
    border-radius:18px;
    color:white;
}

.terms-box h2{
    margin-top:0;
    margin-bottom:18px;
}

.terms-box ul{
    margin:0;
    padding-left:22px;
}

.terms-box li{
    margin-bottom:10px;
    color:#d1d5db;
    line-height:1.5;
}

.admin-contact{
    margin-top:20px;
    padding-top:20px;
    border-top:1px solid #374151;
}

.admin-contact p{
    color:#9ca3af;
    line-height:1.5;
}

.telegram-btn{
    display:inline-block;
    padding:11px 18px;
    background:#229ED9;
    color:white;
    text-decoration:none;
    border-radius:10px;
    font-weight:bold;
}

.telegram-btn:hover{
    opacity:.85;
}

@media (max-width: 600px) {

    .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .video-grid .card {
        min-width: 0;
    }

    .video-grid .card img {
        width: 100%;
        display: block;
        object-fit: cover;
    }

    .video-grid .info {
        padding: 8px;
    }

    .video-grid .info h3 {
        font-size: 13px;
        line-height: 1.3;
        margin: 0 0 5px;
    }

    .video-grid .info p {
        font-size: 11px;
        margin: 0;
    }

}

/* =================================
   MOBILE USER AREA
   Dashboard + Login + Register
   ================================= */

@media screen and (max-width: 600px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        min-width: 0 !important;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    * {
        box-sizing: border-box;
    }


    /* =========================
       DASHBOARD USER
       ========================= */

    .dashboard {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 auto !important;
        padding: 12px !important;
    }

    .dashboard h1 {
        font-size: 23px !important;
    }


    /* =========================
       SYARAT & KETENTUAN
       ========================= */

    .terms-box {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 0 20px 0 !important;
        padding: 17px !important;
    }

    .terms-box h2 {
        font-size: 18px !important;
    }

    .terms-box li {
        font-size: 12px !important;
        line-height: 1.5;
    }


    /* =========================
       TOMBOL DASHBOARD
       ========================= */

    .dashboard-menu,
    .menu {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .dashboard-menu a,
    .menu a {
        width: 100% !important;
        min-width: 0 !important;
        padding: 14px 5px !important;
        font-size: 12px !important;
        text-align: center !important;
        box-sizing: border-box;
    }


    /* =========================
       LOGIN / SIGNUP
       ========================= */

    .login-container,
    .register-container,
    .auth-container {
        width: calc(100% - 30px) !important;
        max-width: 380px !important;
        min-width: 0 !important;
        margin: 20px auto !important;
        padding: 20px !important;
        box-sizing: border-box !important;
    }


    .login-container input,
    .register-container input,
    .auth-container input {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }


    .login-container button,
    .register-container button,
    .auth-container button {
        width: 100% !important;
        box-sizing: border-box !important;
    }

}

/* HEADER MOBILE */

.upload-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 145px;
    min-height: 58px;
    padding: 8px 14px;
    border-radius: 15px;
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    color: white;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.1;
    box-sizing: border-box;
}

.upload-btn span {
    font-size: 15px;
}

.upload-btn small {
    font-size: 12px;
    font-weight: 600;
}

.upload-btn:hover {
    transform: translateY(-1px);
    opacity: .95;
}
@media (max-width: 600px) {

    header {
        padding: 14px 16px !important;
    }

    nav {
        gap: 14px !important;
        align-items: center;
    }

    nav a {
        white-space: nowrap;
    }

    .upload-btn {
        min-width: 130px;
        min-height: 58px;
        padding: 7px 10px;
        border-radius: 14px;
    }
}

