:root {
    --bg-dark: #0a0c10;
    --bg-card: #141820;
    --bg-card-hover: #1c222e;
    --bg-header: rgba(10, 12, 16, 0.85);
    --text-light: #f1f5f9;
    --text-muted: #94a3b8;
    --primary-yellow: #ffb703;
    --primary-gold: #ffd700;
    --primary-green: #00e676;
    --accent-glow: rgba(255, 183, 3, 0.2);
    --border-color: rgba(255, 255, 255, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-dark);
    background-image: radial-gradient(circle at top, #1a2233 0%, #0a0c10 70%);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
}

.container { 
    padding: 0 15px; 
    max-width: 960px; 
    margin: 0 auto; 
}

h1, h2, h3, h4, h5, h6 {
    text-align: center !important;
}

header {
    background: var(--bg-dark);
    text-align: center;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

header .logo { 
    height: 80px; 
    width: auto; 
    object-fit: contain; 
    max-width: 100%; 
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.2));
    transition: transform 0.3s ease;
}

header .logo:hover {
    transform: scale(1.03);
}

nav {
    background: var(--bg-header);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    gap: 8px;
}

nav a {
    display: inline-block;
    color: #cbd5e1;
    text-decoration: none;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

nav a:hover, nav a.active { 
    background: linear-gradient(135deg, #ffb703, #fb8500); 
    color: #000; 
    box-shadow: 0 0 15px rgba(255, 183, 3, 0.4);
    transform: translateY(-1px);
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 26px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: absolute;
    left: 20px;
    top: 15px;
    z-index: 1001;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.hamburger-menu.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

@media (max-width: 800px) {
    nav { justify-content: flex-start; }
    .hamburger-menu { display: flex; }
    nav ul.nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #0f131a;
        border-bottom: 1px solid var(--border-color);
        padding: 10px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.8);
    }
    nav ul.nav-links.active { display: flex; }
    nav ul.nav-links li {
        width: 100%;
        text-align: center;
    }
    nav ul.nav-links a { 
        padding: 12px; 
        width: 90%; 
        border-radius: 8px;
        margin: 2px auto;
    }
}

section { padding: 15px 0; }

.section-title { 
    font-size: 1.25rem; 
    font-weight: 800;
    color: var(--primary-yellow); 
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.section-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Styling Countdown Timer */
.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 15px auto 20px auto;
    max-width: 360px;
}

.countdown-box {
    background: rgba(10, 15, 12, 0.9);
    border: 1.5px solid var(--primary-green);
    border-radius: 10px;
    padding: 10px 10px 6px 10px;
    text-align: center;
    min-width: 70px;
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.25);
}

.countdown-number {
    font-family: 'Consolas', 'Courier New', 'Arial Black', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #00ff66;
    text-shadow: 0 0 8px rgba(0, 255, 102, 0.7);
    line-height: 1;
}

.countdown-label {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 6px;
}

.countdown-separator {
    font-family: 'Consolas', 'Courier New', 'Arial Black', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    color: #00ff66;
    text-shadow: 0 0 8px rgba(0, 255, 102, 0.7);
}

#event-ended-image {
    display: none;
    width: 100%;
    max-width: 350px;
    height: auto;
    margin: 15px auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.notice {
    background: linear-gradient(90deg, rgba(0, 200, 83, 0.15), rgba(0, 200, 83, 0.05));
    padding: 14px;
    border: 1px solid rgba(0, 200, 83, 0.3);
    border-left: 5px solid var(--primary-green);
    margin: 25px 0 20px 0;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-size: 0.95rem;
}

.slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
    border: 1px solid var(--border-color);
}

.slide { display: none; }
.slide img { width: 100%; display: block; }
.slide:first-child { display: block; }

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 12, 16, 0.7);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
}

.slider-btn:hover { background: var(--primary-yellow); color: #000; }
.prev { left: 15px; }
.next { right: 15px; }

.collapsible { 
    background: var(--bg-card); 
    border-radius: 12px; 
    margin-bottom: 20px; 
    overflow: hidden; 
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.collapsible-trigger { 
    padding: 18px 20px; 
    cursor: pointer; 
    color: var(--primary-yellow); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    transition: background 0.3s;
}

.collapsible-trigger:hover {
    background: rgba(255, 183, 3, 0.05);
}

.collapsible-trigger h3 { 
    margin: 0; 
    font-size: 1.05rem; 
    text-align: center;
    width: 100%;
    padding: 0 25px;
}

.indicator { 
    font-size: 1.5rem; 
    font-weight: bold; 
    color: var(--primary-yellow);
    position: absolute;
    right: 20px;
}

.collapsible-content { 
    padding: 0 20px 20px 20px; 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.4s ease-out; 
}

/* FIX UTAMA: Paksa padding-left list menembus universal CSS reset * */
.collapsible-content ul, 
.collapsible-content ol {
    padding-left: 55px !important;
    margin-top: 10px !important;
    margin-bottom: 15px !important;
    list-style-position: outside !important;
}

.collapsible-content li {
    padding-left: 5px !important;
    margin-bottom: 6px !important;
}

.collapsible-content p {
    margin-top: 15px;
    margin-bottom: 8px;
}

.juara-container {
    text-align: center;
    margin: 20px 0;
    padding: 20px 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.juara-logo {
    max-width: 340px;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}

.juara-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.juara-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 450px;
    padding: 10px 15px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.juara-item h2 {
    margin: 0 !important;
    font-size: 1.2rem;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

.juara-item.gold h2 { color: #ffd700; }
.juara-item.silver h2 { color: #e2e8f0; }
.juara-item.bronze h2 { color: #cd7f32; }

.juara-icon {
    font-size: 1.5rem;
    line-height: 1;
}

#peserta-wrapper {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 25px auto;
    background: rgba(20, 24, 32, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.klasemen-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.klasemen-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(20, 24, 32, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    padding: 12px 18px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.klasemen-item:hover {
    transform: translateX(5px);
    background: rgba(28, 34, 46, 0.9);
    border-color: rgba(255, 183, 3, 0.4);
}

.klasemen-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rank-badge-pill {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    background: #1e293b;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.klasemen-item.top-1 {
    border-color: rgba(255, 215, 0, 0.4);
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.12) 0%, rgba(20, 24, 32, 0.8) 100%);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.1);
}
.klasemen-item.top-1 .rank-badge-pill {
    background: linear-gradient(135deg, #ffd700, #ffa500);
    color: #000;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.klasemen-item.top-2 {
    border-color: rgba(203, 213, 225, 0.3);
    background: linear-gradient(90deg, rgba(203, 213, 225, 0.08) 0%, rgba(20, 24, 32, 0.8) 100%);
}
.klasemen-item.top-2 .rank-badge-pill {
    background: linear-gradient(135deg, #e2e8f0, #94a3b8);
    color: #000;
}

.klasemen-item.top-3 {
    border-color: rgba(205, 127, 50, 0.3);
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.08) 0%, rgba(20, 24, 32, 0.8) 100%);
}
.klasemen-item.top-3 .rank-badge-pill {
    background: linear-gradient(135deg, #cd7f32, #8b4513);
    color: #fff;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

.user-status {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

.pts-badge-pill {
    background: rgba(255, 183, 3, 0.1);
    border: 1px solid rgba(255, 183, 3, 0.3);
    color: var(--primary-yellow);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

@media (max-width: 400px) {
    #peserta-wrapper {
        padding: 16px 12px;
    }
    .klasemen-item {
        padding: 10px 12px;
    }
    .klasemen-left {
        gap: 10px;
    }
    .user-name {
        font-size: 0.85rem;
    }
    .pts-badge-pill {
        padding: 4px 10px;
        font-size: 0.78rem;
    }
}

.winner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
    padding: 10px 0;
}

.winner-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.winner-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-yellow);
    box-shadow: 0 6px 15px rgba(0,0,0,0.5);
}

.winner-card .season-tag {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.winner-card .username {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.winner-card .prize-info {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-yellow);
}

.winner-card.active-season {
    background: linear-gradient(135deg, rgba(255, 183, 3, 0.15), rgba(20, 24, 32, 0.8));
    border: 1px solid var(--primary-yellow);
    box-shadow: 0 0 12px rgba(255, 183, 3, 0.2);
}

.winner-card.active-season .season-tag {
    color: var(--primary-gold);
}

footer {
    background: #06080b;
    text-align: center;
    padding: 25px;
    color: #64748b;
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

.social-buttons {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1002;
}

.social-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    box-shadow: 0 6px 15px rgba(0,0,0,0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-buttons a:hover { transform: scale(1.15) rotate(5deg); }
.social-buttons img { width: 28px; height: 28px; }
.whatsapp { background: #25D366; }
.facebook { background: #1877F2; }