*{margin:0;padding:0;box-sizing:border-box;}
body{font-family:sans-serif;background:#121212;color:#fff;padding-bottom:70px;}
header{background:#ff6600;padding:15px;display:flex;justify-content:space-between;align-items:center;}
header h1{font-size:1.6rem;}
main{padding:20px;max-width:1000px;margin:auto;}
.prediksi-box,.live-draw-box,.syair-box,.admin-panel{background:#222;padding:15px;border-radius:10px;margin-bottom:15px;}
button{padding:10px;border:none;border-radius:5px;background:#ff6600;color:#fff;cursor:pointer;}
button:hover{background:#e65c00;}
table{width:100%;border-collapse:collapse;margin-top:10px;}
th,td{padding:10px;text-align:center;}
th{background:#ff6600;}
td{background:#333;}
.bottom-menu{position:fixed;bottom:0;left:0;width:100%;display:flex;justify-content:space-around;background:#222;padding:8px 0;z-index: 10;}
.bottom-menu a{display:flex;flex-direction:column;align-items:center;color:#fff;text-decoration:none;font-size:12px;}
.bottom-menu a img{width:28px;height:28px;margin-bottom:3px;}
.bottom-menu a:hover{color:#ff6600;}
@media(max-width:600px){header h1{font-size:1.2rem;}}
.live-draw-cards{display:flex; flex-wrap:wrap; gap:10px; margin-top:10px;}
.live-card{background:#333; padding:15px; border-radius:10px; flex:1 1 150px; text-align:center; box-shadow:0 0 10px rgba(0,0,0,0.5);}
.live-card h3{color:#ff6600; margin-bottom:5px;}
.live-card p{font-size:1.2rem; margin-bottom:5px;}
.live-card small{color:#aaa;}
.progress-bar {
  width: 100%;
  background: #ddd;
  border-radius: 10px;
  overflow: hidden;
  height: 25px;
  margin-top: 10px;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4caf50, #8bc34a);
  text-align: center;
  line-height: 25px;
  color: #fff;
  font-weight: bold;
  transition: width 1s ease;
}
#syairPagination {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.pagination-left, .pagination-right {
  display: flex;
  gap: 5px;
}

.active-page {
  font-weight: bold;
  background-color: #4CAF50;
  color: white;
  border-radius: 4px;
  padding: 3px 7px;
}
.live-card {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 4/3;
  margin: 10px;
  border-radius: 10px;
  overflow: hidden;
  color: #fff;
  position: relative;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* teks selalu di bawah card */
  padding-bottom: 10px;
}

.live-card h3,
.live-card p,
.live-card small {
  margin: 0;
  z-index: 1;
  position: relative;
}

/* Tulisan RGB clickable tetap di bawah */
.live-rgb {
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  margin-top: 5px;
  z-index: 2;
  position: relative;
}

/* Smooth RGB animation */
@keyframes rgbGlow {
  0% { color: rgb(255,0,0); }
  14% { color: rgb(255,127,0); }
  28% { color: rgb(255,255,0); }
  42% { color: rgb(0,255,0); }
  57% { color: rgb(0,255,255); }
  71% { color: rgb(0,0,255); }
  85% { color: rgb(127,0,255); }
  100% { color: rgb(255,0,0); }
}

.live-rgb.animate {
  animation: rgbGlow 3s linear infinite;
}

/* container flex untuk card */
#liveDrawCards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

@media screen and (max-width: 600px) {
  .live-card {
    max-width: 90%;
  }
}