/* ===== SGX SLOT UI ===== */

/* SEARCH */
.sgx-search-box {
    position: relative;
}

.sgx-search-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    background: #161616;
    border: 1px solid #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
}
#sgxSearchInput { pointer-events: none; }
.sgx-search-box.active #sgxSearchInput { pointer-events: auto; }

.sgx-search-icon i {
    font-size: 14px;
    color: #aaa;
}

.sgx-search-icon:hover i {
    color: #f4c16d;
}

#sgxSearchInput {
    position: absolute;
    right: 0;
    top: 0;
    width: 0;
    opacity: 0;
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid #333;
    background: #1b1b1b;
    color: #fff;
    transition: .3s ease;
    z-index: 5;
}

.sgx-search-box.active #sgxSearchInput {
    width: 180px;
    opacity: 1;
}

.sgx-search-btn {
    background: #1b1b1b;
    border: 1px solid #333;
    color: #fff;
    padding: 10px 14px;
    border-radius: px;
    cursor: pointer;
}

.sgx-search-btn:hover {
    border-color: #f4c16d;
    color: #f4c16d;
}

/* PAGE */
.sgx-slot-page {
    background: #FF000000;
    padding: 10px 0 40px;
    color: #fff;
}

.sgx-container {
    width: 95%;
    max-width: 1200px;
    margin: 10px auto 0;
}

/* FILTER BAR */
.sgx-header-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.sgx-filter-right {
    display: flex;
    gap: 10px;
}

.sgx-livejp-btn {
    background: linear-gradient(180deg,#3a2f1d,#241c11);
    color: #f4c16d;
    border: 1px solid #3c3322;
    padding: 8px 14px;
    border-radius: 5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sgx-dot {
    width: 6px;
    height: 6px;
    background: #f4c16d;
    border-radius: 50%;
}

/* PROVIDER DROPDOWN */
.sgx-provider-dropdown {
    position: relative;
    width: 150px;
    font-size: 14px;
}

.sgx-provider-selected {
    background: #151515;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.sgx-provider-selected img {
    width: 18px;
    height: 18px;
}

.sgx-provider-selected i {
    margin-left: auto;
    font-size: 12px;
    opacity: .7;
}

.sgx-provider-options {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background: #151515;
    border: 1px solid #333;
    border-radius: 12px;
    display: none;
    z-index: 10;
}

.sgx-provider-options div {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.sgx-provider-options div img {
    width: 22px;
}

.sgx-provider-options div:hover {
    background: #222;
}

/* GRID */
.sgx-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 14px;
}

/* CARD */
.sgx-game-card {
   background: #111111;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
        opacity: 0;
    transform: translateY(20px);
    animation: fadeUp .5s ease forwards;
}


/* AKTIF SETELAH PAGE READY */
body.page-ready .sgx-game-card {
    animation: fadeUp .45s ease forwards;
}


@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sgx-game-thumb img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.sgx-player-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0,0,0,.75);
    padding: 4px 8px;
    font-size: 10px;
    border-radius: 8px;
}

.sgx-game-provider {
    text-align: center;
    padding: 8px;
    font-size: 12px;
    background: #111;
    color: #aaa;
}



/* HOVER */
.sgx-game-hover {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: .3s;
}

.sgx-game-card:hover .sgx-game-hover {
    opacity: 1;
}

.sgx-play-btn {
    background: linear-gradient(135deg,#f7c14d,#e39a1d);
    color: #000;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
}

/* ===== SHIMMER ===== */
.sgx-shimmer {
  background: #151515;
  border-radius: 14px;
  height: 160px;
  position: relative;
  overflow: hidden;
}

.sgx-shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.08),
    transparent
  );
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* ===== PROVIDER BOTTOM SHEET ===== */
.sgx-provider-sheet {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.sgx-sheet-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
}

.sgx-sheet-content {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  background: #111;
  border-radius: 16px 16px 0 0;
  padding-bottom: 12px;
  animation: slideUp 1.0s ease forwards;
}

@keyframes slideUp {
  to { bottom: 0; }
}

.sgx-sheet-header {
      padding:14px 16px;
    background:#1b1b1b;
    display:flex;
    justify-content:space-between;
    align-items:center;
    border-bottom:1px solid #222;
    color: white;
}

.sgx-sheet-close {
  background: none;
  border: none;
  font-size: 22px;
  color: #aaa;
}

.sgx-sheet-body {
  max-height: 45vh;
  overflow-y: auto;
}

.sgx-sheet-item {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  gap: 10px;
  border-bottom: 1px solid #222;
  color: #ddd;
}

.sgx-sheet-item input {
  accent-color: #d4af37;
}

.sgx-sheet-item img {
  margin-left: auto;
  height: 22px;
}

.sgx-sheet-footer {
  display: flex;
  gap: 10px;
  padding: 12px;
}

.sgx-sheet-footer button {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: none;
}

.sgx-reset {
  background: #333;
  color: #ccc;
}

.sgx-confirm {
  background: linear-gradient(135deg,#f5d48b,#c89b3c);
  color: #000;
  font-weight: 600;
}

.game-hover-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, 0.05);
    
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sgx-game-hover:hover .game-hover-overlay {
    opacity: 1;
}

.play-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* icon play */
.play-content i {
    font-size: 30px;
    color: #fff;
    transition: transform 0.3s ease;
}

.sgx-game-hover:hover .game-hover-overlay {
    opacity: 1;
}

.sgx-game-hover:hover .game-hover-overlay i {
    transform: scale(1.2);
}