/* Reset Dasar & Latar Belakang Tirai */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    background: #000000;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding-bottom: 80px;
    position: relative;
    overflow-x: hidden;
}
.bj {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
}

.box {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    position: relative;
    z-index: 1;
}

/* Header & Penataan Logo */
.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}
.logo {
    height: 45px;
    object-fit: contain;
}
.top-btns {
    display: flex;
    gap: 12px;
}
.logo-btn {
    background: rgba(26, 28, 35, 0.8);
    border: 1px solid #2e323f;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    z-index: 101;
}

/* ==========================================================================
   DESAIN SIDEBAR MENU KANAN SESUAI WEBSITE ASLI
   ========================================================================== */
.sidebar-menu {
    position: fixed;
    top: 0;
    right: -280px; /* Sembunyi di luar layar kanan */
    width: 280px;
    height: 100vh;
    background: #ffffff; /* Latar belakang putih seperti gambar target */
    z-index: 9999;
    box-shadow: -4px 0 15px rgba(0,0,0,0.5);
    transition: right 0.3s ease;
    padding-top: 50px;
    overflow-y: auto;
}
.sidebar-menu.open {
    right: 0; /* Muncul menggeser masuk */
}
.sidebar-close {
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 28px;
    color: #cc0000;
    cursor: pointer;
    font-weight: bold;
}
.sidebar-menu a {
    display: block;
    padding: 12px 20px;
    color: #cc0000; /* Teks merah tebal sesuai gambar */
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    border-bottom: 1px solid #e6b8b8; /* Garis pembatas tipis kemerahan */
    transition: background 0.2s;
}
.sidebar-menu a:hover {
    background: #fff0f0;
}
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
    display: none;
}
.menu-overlay.open {
    display: block;
}

/* Teks Berjalan */
.marquee-container {
    background: rgba(17, 19, 23, 0.85);
    padding: 10px 15px;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid #1f2229;
}
.marquee-text {
    white-space: nowrap;
    animation: marquee linear 25s infinite;
    color: #cbd5e1;
    font-size: 14px;
}
@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Desain Area Banner Slider */
.banner-slider {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #f59e0b;
}
.banner-slider img {
    width: 100%;
    height: auto;
    display: block;
}

/* Judul Banner Tengah */
.main-title {
    text-align: center;
    font-size: 24px;
    color: #ffffff;
    font-weight: 800;
    margin: 15px 0 5px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}
.sub-title {
    text-align: center;
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* PANEL FILTER & PROVIDER GAME */
.sticky {
    background: rgba(18, 11, 11, 0.95);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #3a1b1b;
    margin-bottom: 20px;
    position: -webkit-sticky; 
    position: sticky;         
    top: 0;                   
    z-index: 100;             
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8); 
}
.yangshi-box {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 14px;
    margin-bottom: 5px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.yangshi-box::-webkit-scrollbar {
    height: 8px; 
}
.yangshi-box::-webkit-scrollbar-track {
    background: #1c1d22; 
    border-radius: 10px;
}
.yangshi-box::-webkit-scrollbar-thumb {
    background: #5a5d64; 
    border-radius: 10px;
}
.yangshi-box::-webkit-scrollbar-thumb:hover {
    background: #7c808a;
}
.site-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: rgba(25, 27, 32, 0.7);
    border: 1px solid #2a2c35;
    border-radius: 6px;
    padding: 10px 8px;
    min-width: 115px;
    height: 75px;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.2s ease;
}
.site-box.active {
    color: #ffffff;
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}
.site-box img {
    height: 28px;
    max-width: 95px;
    object-fit: contain;
    margin-bottom: 4px;
}
.site-name {
    font-size: 10px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Input Pencarian & Paginasi Bersanding */
.sticky-tab {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    flex-wrap: wrap;
    gap: 15px;
}
.input-wrapper {
    flex: 1;
    min-width: 280px;
}
.input-wrapper input {
    width: 100%;
    background: #111317;
    border: 1px solid #374151;
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    outline: none;
}
.pagination-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #9ca3af;
}
.pagination-controls select {
    background: #111317;
    border: 1px solid #374151;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
}
.page-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}
.page-nav button {
    background: #111317;
    border: 1px solid #374151;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
}
.page-nav button.go-btn {
    background: #f59e0b;
    color: #000;
    border-color: #f59e0b;
    font-weight: bold;
}

/* Grid Tampilan Kartu Game Premium Berbaris Banyak */
.kuai {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}
.item {
    background: rgba(17, 19, 23, 0.9);
    border: 1px solid #2e323f;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}
.item:hover {
    transform: translateY(-4px);
    border-color: #f59e0b;
}
.img {
    width: 100%;
    height: 140px;
    background: #1f2229;
}
.img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.text {
    padding: 10px;
}
.title {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

/* Bar Indikator Winrate RTP */
.rtp-box {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}
.progress {
    flex: 1;
    background: #1f2229;
    height: 14px;
    border-radius: 7px;
    overflow: hidden;
    border: 1px solid #374151;
}
.progress-bar {
    height: 100%;
    transition: width 0.4s ease;
}
.num {
    font-size: 12px;
    font-weight: bold;
    min-width: 35px;
    text-align: right;
}

/* Pola Info */
.pola {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px;
    border-radius: 6px;
}
.pola-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pola-item span:first-child {
    color: #9ca3af;
}
.pola-status-yes {
    color: #10b981;
    font-weight: bold;
}
.pola-status-no {
    color: #ef4444;
    font-weight: bold;
}

/* Navigasi Menu Bawah Kontrol */
.bottom-btns {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #111317;
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 1px solid #2e323f;
    z-index: 999;
}
.bottom-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: #9ca3af;
    cursor: pointer;
}
.bottom-btn.active {
    color: #f59e0b;
}
.bottom-btn i {
    font-size: 20px;
    margin-bottom: 3px;
}
p.bottom {
    text-align: center;
    font-size: 11px;
    color: #4b5563;
    padding: 20px 0;
}

@media(max-width: 480px) {
    .kuai {
        grid-template-columns: repeat(2, 1fr);
    }
    .sticky-tab {
        flex-direction: column;
        align-items: stretch;
    }
    .pagination-controls {
        justify-content: space-between;
    }
}


.bottom-icon {
  width: 20px;       
  height: 20px;      
  object-fit: contain;
  margin-bottom: 5px; 
}

.bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none; 
  color: #ffffff;        
}


.btn-text {
  font-size: 11px;      
}