:root { --bg-dark: #0a1128; --bg-panel: rgba(16, 33, 65, 0.8); --primary-neon: #ccff00; --text-light: #ffffff; --text-gray: #a0aec0; --accent-blue: #00b4d8; --border-color: rgba(0, 180, 216, 0.3); --winner-gold: #ffd700; --loser-dim: 0.4; }
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Rajdhani', sans-serif; }
body { background-color: var(--bg-dark); color: var(--text-light); display: flex; height: 100vh; overflow: hidden; background-image: radial-gradient(circle at 15% 50%, rgba(0, 180, 216, 0.08), transparent 25%), radial-gradient(circle at 85% 30%, rgba(204, 255, 0, 0.05), transparent 25%); }

/* ======== POP-UP FULL FRAME IMMERSIVE ======== */
.welcome-popup { position: fixed; top: 0; left: 0; width: 100vw; height: 100dvh; background: #040914 url('Untitled design (39).jpg') center/cover no-repeat; z-index: 99999; display: flex; justify-content: center; align-items: flex-end; transition: opacity 0.5s ease, visibility 0.5s ease; overflow: hidden; padding-bottom: 5vh; }
.popup-immersive-content { position: relative; width: 100%; height: 100%; max-width: 1600px; display: flex; justify-content: center; align-items: center; }
@keyframes floatIdle { 0% { transform: translateY(0px) rotate(var(--kemiringan, 0deg)); } 50% { transform: translateY(-12px) rotate(var(--kemiringan, 0deg)); } 100% { transform: translateY(0px) rotate(var(--kemiringan, 0deg)); } }
.popup-player { position: absolute; animation: floatIdle 6s ease-in-out infinite; transition: transform 0.3s ease, filter 0.3s ease; }
.popup-player:hover { filter: brightness(1.2) drop-shadow(0 0 10px rgba(255,255,255,0.2)); }
.popup-title { position: absolute; left: 50%; transform: translateX(-50%) rotate(var(--kemiringan, 0deg)); z-index: 10; mix-blend-mode: screen; --kemiringan: 0deg; }
.judul-pc { top: -10%; width: 1000px; max-width: 90vw; display: block; }
.link-judul-hp { display: none; position: absolute; z-index: 16; text-decoration: none; animation: pulseTitle 2s infinite; }
@keyframes pulseTitle { 0% { filter: brightness(1); transform: translateX(-50%) scale(1); } 50% { filter: brightness(1.2); transform: translateX(-50%) scale(1.02); } 100% { filter: brightness(1); transform: translateX(-50%) scale(1); } }
.judul-hp { width: 100%; mix-blend-mode: screen; }

/* FOTO KETUA DPRD SAJA */
.pp-center { left: 0; right: 0; margin: auto; bottom: 5%; height: 85vh; z-index: 10; animation-delay: 0s; --kemiringan: 0deg; } 

.nama-ketua { position: absolute; left: 50%; bottom: 21%; transform: translateX(-50%); width: 400px; z-index: 11; }
.btn-register-img { position: absolute; bottom: -5%; left: 50%; transform: translateX(-50%); width: 800px; max-width: 80vw; background: transparent; border: none; cursor: pointer; z-index: 15; transition: transform 0.3s ease; animation: pulseBtn 2.5s infinite; display: block; text-decoration: none; }
@keyframes pulseBtn { 0% { transform: translateX(-50%) scale(1); filter: brightness(1); } 50% { transform: translateX(-50%) scale(1.05); filter: brightness(1.2); } 100% { transform: translateX(-50%) scale(1); filter: brightness(1); } }
.btn-register-img img { width: 100%; height: auto; }
.btn-register-img:hover { animation: none; transform: translateX(-50%) scale(1.1); }
.btn-close-popup { position: absolute; top: 25px; right: 30px; background: rgba(0, 0, 0, 0.6); color: white; border: 2px solid white; border-radius: 50%; width: 45px; height: 45px; font-size: 20px; font-weight: bold; cursor: pointer; z-index: 20; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.btn-close-popup:hover { background: var(--primary-neon); color: black; border-color: var(--primary-neon); transform: rotate(90deg); }

/* CHECKBOX JANGAN TAMPILKAN LAGI */
.popup-footer { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 999999; background: rgba(0, 0, 0, 0.7); padding: 10px 20px; border-radius: 30px; border: 1px solid var(--border-color); display: flex; align-items: center; gap: 10px; color: var(--text-light); font-family: 'Rajdhani', sans-serif; font-size: 16px; cursor: pointer; transition: 0.3s; }
.popup-footer:hover { background: rgba(0, 0, 0, 0.9); border-color: var(--primary-neon); color: var(--primary-neon); }
.popup-footer input { cursor: pointer; width: 18px; height: 18px; accent-color: var(--primary-neon); }

/* ======== SIDEBAR & DASHBOARD ======== */
.mobile-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 15; backdrop-filter: blur(3px); }
.sidebar { width: 250px; background: linear-gradient(180deg, #0b1532 0%, #060b19 100%); border-right: 1px solid var(--border-color); padding: 20px 0; display: flex; flex-direction: column; z-index: 20; transition: left 0.3s ease; }
.logo-container { display: flex; align-items: center; justify-content: center; padding: 20px 20px 30px; border-bottom: 1px solid var(--border-color); margin-bottom: 20px; }
.logo-container img { width: 160px !important; max-width: 100%; height: auto; margin-right: 0 !important; }
.nav-menu { list-style: none; }
.nav-item { padding: 15px 30px; display: flex; align-items: center; cursor: pointer; transition: all 0.3s ease; color: var(--text-gray); font-size: 18px; font-weight: 600; border-left: 4px solid transparent; text-decoration: none; }
.nav-item:hover { background-color: rgba(0, 180, 216, 0.1); color: var(--text-light); }
.nav-item.active { background: linear-gradient(90deg, rgba(204, 255, 0, 0.15) 0%, transparent 100%); color: var(--primary-neon); border-left: 4px solid var(--primary-neon); }
.nav-item i { margin-right: 15px; font-size: 20px; }

.main-content { flex: 1; display: flex; flex-direction: column; overflow-y: auto; padding: 20px; }
.top-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 12px; margin-bottom: 20px; backdrop-filter: blur(10px); }
.header-title-container { display: flex; align-items: center; gap: 15px; }
.hamburger { display: none; background: none; border: none; color: var(--primary-neon); font-size: 24px; cursor: pointer; padding: 5px; }
.header-title h2 { font-family: 'Orbitron', sans-serif; color: var(--primary-neon); font-size: 20px; text-transform: uppercase; }
.user-controls { display: flex; align-items: center; gap: 20px; }
.admin-toggle { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,0.3); padding: 5px 15px; border-radius: 20px; border: 1px solid var(--text-gray); cursor: pointer; transition: 0.3s; white-space: nowrap; }
.admin-toggle.active { border-color: var(--primary-neon); color: var(--primary-neon); box-shadow: 0 0 10px rgba(204, 255, 0, 0.2); }

.dashboard-banner-container { position: relative; width: 100%; border-radius: 12px; overflow: hidden; margin-bottom: 25px; border: 1px solid var(--border-color); box-shadow: 0 5px 20px rgba(0,0,0,0.5); background: #000; display: block; }
.dashboard-banner-container img { width: 100%; max-height: 250px; object-fit: cover; display: block; opacity: 0.85; transition: 0.3s; }
.dashboard-banner-container:hover img { opacity: 1; }

.split-kategori { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.kategori-kolom { display: flex; flex-direction: column; }
.dashboard-grid { display: flex; flex-direction: column; gap: 20px; }
.bottom-panels { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; }
.panel { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; position: relative; }
.panel-header { font-family: 'Orbitron', sans-serif; font-size: 16px; color: var(--text-light); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; }

.spotlights-container { display: flex; flex-direction: column; gap: 15px; margin-bottom: 25px; }
.kategori-title { font-family: 'Orbitron', sans-serif; font-size: 18px; margin-top: 10px; margin-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 5px; text-transform: uppercase; letter-spacing: 1px;}

/* TOMBOL TAMBAH MATCH - HANYA MUNCUL SAAT ADMIN LOGIN */
.admin-add-match-container { display: none; }
body.admin-mode .admin-add-match-container { display: block; }

.btn-add-match { width: 100%; padding: 15px; background: rgba(204, 255, 0, 0.05); border: 2px dashed var(--primary-neon); color: var(--primary-neon); font-family: 'Orbitron', sans-serif; font-size: 16px; font-weight: bold; border-radius: 12px; cursor: pointer; transition: all 0.3s ease; letter-spacing: 1px; }

.match-card-esport { background: rgba(10, 17, 40, 0.6); border: 1px solid rgba(0, 180, 216, 0.2); border-radius: 8px; padding: 15px 20px; position: relative; transition: all 0.3s; box-shadow: inset 0 0 20px rgba(0,0,0,0.5); }
.match-card-esport:hover { border-color: rgba(0, 210, 255, 0.5); box-shadow: 0 0 15px rgba(0, 180, 216, 0.3); }
.match-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; font-size: 12px; color: var(--text-gray); font-family: 'Orbitron', sans-serif; border-bottom: 1px dashed rgba(255,255,255,0.1); padding-bottom: 10px; }

/* TOMBOL EDIT MATCH - HANYA MUNCUL SAAT ADMIN LOGIN */
.btn-admin-edit { background: none; border: 1px solid var(--text-gray); color: var(--text-light); padding: 4px 10px; border-radius: 5px; cursor: pointer; font-size: 12px; display: none; }
.btn-admin-edit:hover { border-color: var(--primary-neon); color: var(--primary-neon); }
body.admin-mode .btn-admin-edit { display: block; }

.esport-row { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.esport-team-side { display: flex; align-items: center; width: 40%; }

.esport-avatars { display: flex; align-items: center; margin: 0 10px; position: relative; z-index: 5; }
.esport-avatar { width: 55px; height: 55px; border-radius: 50%; border: 2px solid var(--accent-blue); background: #1a2035; box-shadow: 0 0 10px rgba(0, 180, 216, 0.5); overflow: hidden; display: flex; justify-content: center; align-items: center; color: var(--text-gray); }
.esport-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ava-1 { z-index: 2; position: relative; }
.ava-2 { z-index: 1; margin-left: -20px; position: relative; border-color: var(--primary-neon); }

.esport-bar { flex: 1; height: 45px; display: flex; align-items: center; font-family: 'Orbitron', sans-serif; font-size: 16px; font-weight: bold; color: white; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 0 15px rgba(138, 43, 226, 0.4); border-radius: 6px; }
.esport-bar.left { background: linear-gradient(90deg, #8a2be2, #00d2ff); justify-content: flex-end; padding-right: 20px; }
.esport-bar.right { background: linear-gradient(270deg, #e22b8a, #ff9a00); justify-content: flex-start; padding-left: 20px; }

.esport-center { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 20%; }
.esport-score { font-family: 'Orbitron', sans-serif; font-size: 32px; font-weight: 900; color: white; text-shadow: 0 0 15px var(--primary-neon); letter-spacing: 2px; line-height: 1; margin-bottom: 5px; }
.esport-status { font-size: 11px; font-weight: bold; color: var(--accent-blue); letter-spacing: 1px; text-transform: uppercase; text-align: center; }

.is-winner .esport-bar.left, .is-winner .esport-bar.right { background: linear-gradient(90deg, #ffd700, #ff8c00) !important; box-shadow: 0 0 15px rgba(255, 215, 0, 0.5); color: #000;}
.is-loser .esport-bar { filter: grayscale(100%); opacity: 0.5; }

.prize-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.prize-item { display: flex; justify-content: space-between; font-size: 18px; padding: 8px; background: rgba(0,0,0,0.2); border-radius: 6px; }
.prize-item.juara-1 { color: var(--winner-gold); font-weight: bold; border-left: 3px solid var(--winner-gold);}
.prize-item.juara-2 { color: #C0C0C0; border-left: 3px solid #C0C0C0;}
.prize-item.juara-3 { color: #CD7F32; border-left: 3px solid #CD7F32;}
.prize-total { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--border-color); display: flex; justify-content: space-between; font-size: 20px; font-weight: bold; color: var(--primary-neon); }

.team-list { list-style: none; overflow-y: auto; max-height: 250px; padding-right: 5px; display: flex; flex-direction: column; gap: 10px; }
.team-list::-webkit-scrollbar { width: 5px; }
.team-list::-webkit-scrollbar-thumb { background: var(--accent-blue); border-radius: 5px; }
.team-item { display: flex; align-items: flex-start; padding: 12px; background: rgba(0,0,0,0.3); border-radius: 8px; border: 1px solid rgba(0, 180, 216, 0.2); }
.team-item .team-number { font-family: 'Orbitron', sans-serif; color: var(--primary-neon); margin-right: 15px; font-size: 16px; font-weight: bold; padding-top: 2px; }
.team-info { display: flex; flex-direction: column; width: 100%; }
.team-title { font-family: 'Orbitron', sans-serif; font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.team-players { font-size: 13px; color: var(--text-gray); margin-bottom: 6px; }
.team-age { font-size: 12px; color: var(--accent-blue); background: rgba(0, 180, 216, 0.1); padding: 3px 8px; border-radius: 4px; font-weight: 600; width: fit-content; }
.team-age span { color: var(--primary-neon); }

.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 100; justify-content: center; align-items: center; backdrop-filter: blur(5px); }
.modal.active { display: flex; }
.modal-content { background: var(--bg-dark); border: 2px solid var(--primary-neon); border-radius: 15px; padding: 30px; width: 90%; max-width: 450px; box-shadow: 0 0 30px rgba(204, 255, 0, 0.2); max-height: 90vh; overflow-y: auto; }
.modal-content h3 { font-family: 'Orbitron', sans-serif; margin-bottom: 20px; color: var(--primary-neon); }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; color: var(--text-gray); font-size: 14px;}
.form-group select, .form-group input { width: 100%; padding: 10px; background: #060e24; border: 1px solid #1a365d; color: white; border-radius: 5px; font-family: 'Rajdhani', sans-serif; font-size: 16px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.btn-save { background: var(--primary-neon); color: black; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; font-weight: bold; }
.btn-cancel { background: transparent; border: 1px solid var(--text-gray); color: white; padding: 10px 20px; border-radius: 5px; cursor: pointer; }

/* PERBAIKAN TAMPILAN HP */
@media (max-width: 900px) {
    .judul-pc { display: none; }
    .link-judul-hp { display: block; top: 47%; width: 150%; left: 50%; transform: translateX(-50%); }
    .popup-player { height: auto; } 
    
    .pp-center { left: 0; right: 0; margin: auto; bottom: 25%; width: 80%; max-width: 400px; z-index: 5; --kemiringan: 0deg; } 
    
    .nama-ketua { left:50.5%; bottom: 30%; width: 400px; transform: translateX(-50%) rotate(-4.5deg); }
    .btn-register-img { display: none; }
    .btn-close-popup { top: 15px; right: 15px; width: 40px; height: 40px; font-size: 16px; }
    
    .popup-footer { bottom: 30px; padding: 8px 15px; font-size: 14px; width: 85%; justify-content: center; }

    .sidebar { position: fixed; left: -300px; top: 0; height: 100%; }
    .sidebar.show { left: 0; }
    .mobile-overlay.show { display: block; }
    .hamburger { display: block; }
    .top-bar { flex-wrap: wrap; gap: 15px; }
    .bottom-panels { grid-template-columns: 1fr; }
    
    .dashboard-banner-container { display: block !important; margin-bottom: 20px; width: 100%; border-radius: 8px; height: 130px; }
    .dashboard-banner-container img { height: 100%; width: 100%; object-fit: cover; object-position: center; }
    
    .split-kategori { grid-template-columns: 1fr; } 

    .esport-row { flex-direction: column; gap: 10px; }
    .esport-team-side { width: 100%; justify-content: center; }
    
    .esport-bar.left, .esport-bar.right { justify-content: center; padding: 0; margin: 0 15px; }
    .esport-team-side.right { flex-direction: row-reverse; } 
    .esport-center { margin: 10px 0; width: 100%; }
}
/* =========================================
   DESAIN HALAMAN TAB "TIM TERDAFTAR"
========================================= */
.neon-team-panel {
    background: rgba(10, 17, 40, 0.7);
    border: 2px solid #00b4d8;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.3), inset 0 0 10px rgba(0, 180, 216, 0.2);
    margin-top: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 900px;
}

.panel-header-neon {
    font-family: 'Orbitron', sans-serif;
    color: #ccff00;
    font-size: 22px;
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(204, 255, 0, 0.3);
    padding-bottom: 15px;
    letter-spacing: 2px;
}

/* Pengaturan Kotak Scroll */
.scrolling-team-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 550px; /* Tinggi maksimal kotak sebelum discroll */
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    scroll-behavior: smooth;
}
.scrolling-team-list::-webkit-scrollbar { 
    display: none; /* Chrome/Safari */
}

/* Layout Kotak per Tim (Kiri-Kanan) */
.team-item-neon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(16, 33, 65, 0.9);
    border: 1px solid rgba(0, 180, 216, 0.4);
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 15px 20px;
    transition: all 0.3s ease;
}
.team-item-neon:hover {
    border-color: #ccff00;
    box-shadow: 0 0 15px rgba(204, 255, 0, 0.3);
}

/* Area Kiri: Angka & Nama Tim */
.team-left {
    display: flex;
    align-items: center;
    gap: 20px;
}
.team-number {
    font-size: 24px;
    color: #ccff00;
    font-family: 'Orbitron', sans-serif;
    min-width: 30px;
}
.team-name {
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Area Kanan: Nama Pemain & Foto */
.team-right {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: right;
}
.team-players {
    display: flex;
    flex-direction: column;
}
.player-names {
    font-size: 16px;
    color: #ffffff;
    font-weight: 600;
}
.team-poin {
    font-size: 13px;
    color: #00b4d8;
}

/* Foto Profil Menumpuk */
.team-photos {
    display: flex;
}
.team-photos img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #00b4d8;
    object-fit: cover;
    object-position: center 15%; /* Fokus di 15% dari atas (area wajah standar) */
    flex-shrink: 0;
    background: #060b19;
}
.team-photos img:nth-child(2) {
    margin-left: -15px;
}
/* =========================================
   RESPONSIF KHUSUS UNTUK LAYAR HP (MOBILE)
========================================= */
@media (max-width: 768px) {
    .team-item-neon {
        flex-direction: column; /* Mengubah susunan menjadi atas dan bawah */
        align-items: flex-start;
        gap: 12px;
        padding: 15px;
    }
    
    .team-left {
        width: 100%;
        border-bottom: 1px dashed rgba(0, 180, 216, 0.3); /* Garis pemisah tipis */
        padding-bottom: 10px;
    }
    
    .team-right {
        width: 100%;
        justify-content: space-between; /* Teks pemain di kiri, foto di kanan */
        flex-direction: row;
        text-align: left;
    }
    
    .team-players {
        align-items: flex-start;
    }
    
    .team-photos {
        justify-content: flex-end;
    }

    /* Memastikan foto tidak membesar sendiri di HP */
    .team-photos img {
        max-width: 45px; /* Sesuaikan dengan lebar opsi 1 atau 2 Anda */
        max-height: 45px;
    }
}