.match-center-wrapper {
  flex-grow: 1;
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
  padding-inline: 0.75rem;
  min-height: 400px;
}
body.dark-mode {
  background-color: #121212;
  color: #ffffff;
}

body.light-mode {
  background-color: #f5f5f5;
  color: #1f1f1f;
}

.filter-button {
  background-color: transparent;
  border: none;
  color: #999;
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 8px;
  transition: 0.2s ease;
  white-space: nowrap;
}
.filter-button:hover {
  color: #fff;
  background-color: #333;
}
.filter-button.active {
  background-color: #FF5F2E;
  color: #fff !important;
}
/* Footer bawah hanya muncul di mobile */
@media (min-width: 768px) {
.bottom-nav {
display: none !important;
}
}

/* Batasi lebar konten utama */
.main-wrapper {
max-width: 1080px;
margin: 0 auto;
padding: 0 15px;
}
.live-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #00ff00;
  border-radius: 50%;
  box-shadow: 0 0 6px #00ff00;
  animation: blink 1s infinite ease-in-out;

  position: relative;
  top: 1px; /* Atur manual biar pas */
  margin-right: 6px;
}

@keyframes blink {
0%, 100% {
opacity: 1;
transform: scale(1);
}
50% {
opacity: 0.3;
transform: scale(1.3);
}
}

.date-bar-wrapper {
padding: 0;
}

#matchFilterBar {
display: flex;
width: 100%;
}

.filter-button {
flex: 1;
font-size: 0.75rem;
padding: 8px 4px;
border: none;
background: transparent;
color: #ccc;
transition: 0.2s;
font-weight: 500;
line-height: 1.2;
}

.filter-button:hover {
background-color: #2e2e2e;
color: white;
}

.filter-button.active {
background-color: #ff5722;
color: white;
font-weight: 700;
border-radius: 8px;
}
/* Upgrade Hover Sport Button */
.btn-sport:hover {
background: linear-gradient(to right, #0d6efd, #1e90ff);
color: white !important;
border-color: transparent;
box-shadow: 0 0 8px rgba(13, 110, 253, 0.5);
}

/* Upgrade Hover Tanggal */
.filter-button:hover {
background: rgba(255, 87, 34, 0.2);
color: #ff5722;
font-weight: 600;
box-shadow: inset 0 -2px 0 rgba(255, 87, 34, 0.6);
transition: all 0.25s ease-in-out;
}
/* LOADER LINGKARAN MUTER */
.lds-ring {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
}
.lds-ring div {
box-sizing: border-box;
display: block;
position: absolute;
width: 64px;
height: 64px;
margin: 8px;
border: 6px solid #0d6efd;
border-radius: 50%;
animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
border-color: #0d6efd transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
animation-delay: -0.15s;
}
@keyframes lds-ring {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
/* Sembunyikan semua text default sebelum widget proper muncul */
#wg-api-football-games {
color: transparent;
font-size: 0;
position: relative;
}

#wg-api-football-games.ready {
color: inherit;
font-size: inherit;
}
@media (min-width: 768px) {
nav.fixed-bottom {
display: none !important;
}
}

.nav-item-footer:hover {
color: #0d6efd !important;
transition: all 0.2s ease-in-out;
}

.nav-item-footer.active {
color: #0d6efd !important;
font-weight: bold;
}
.has-bottom-nav {
margin-bottom: 80px; /* cukup buat nav tinggi + jarak */
}


.list-group-item {
background-color: transparent;
border: none;
color: #fff;
font-size: 0.85rem;
padding: 6px 10px;
transition: 0.2s ease-in-out;
}

.list-group-item:hover {
background-color: rgba(255,255,255,0.05);
color: #0d6efd;
cursor: pointer;
}

.list-group-item img {
width: 18px;
height: 14px;
object-fit: contain;
margin-right: 8px;
}


aside::-webkit-scrollbar {
width: 6px;
}
aside::-webkit-scrollbar-thumb {
background-color: rgba(255,255,255,0.1);
border-radius: 3px;
}

.list-group-item {
background-color: transparent;
border: none;
font-size: 0.85rem;
padding: 6px 10px;
color: #fff;
transition: 0.2s;
}

.list-group-item:hover {
background-color: rgba(255,255,255,0.05);
color: #0d6efd;
}

.list-group-item img {
width: 18px;
height: 14px;
object-fit: contain;
margin-right: 8px;
}
@media (min-width: 992px) {
#widgetWrapper {
margin: 0 auto;
}
}
/* === SIDEBAR WRAPPER YANG FLEX === */
aside {
display: flex;
width: 240px;
flex-shrink: 0;
flex-direction: column;
background-color: #1a1a1a;
border-radius: 12px;
border: 1px solid #333;
box-shadow: 0 0 12px rgba(0,0,0,0.3);
}

/* === BAGIAN LIGA LAINNYA YANG BISA DI-SCROLL === */
aside > div:last-child {
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: #0d6efd #1a1a1a;
}

/* CUSTOM SCROLLBAR (CHROME, EDGE) */
aside > div:last-child::-webkit-scrollbar {
width: 6px;
}
aside > div:last-child::-webkit-scrollbar-track {
background: #1a1a1a;
border-radius: 6px;
}
aside > div:last-child::-webkit-scrollbar-thumb {
background-color: #0d6efd;
border-radius: 6px;
}

/* === TULISAN JUDUL KATEGORI === */
.sidebar-title {
font-weight: bold;
font-size: 0.85rem;
text-transform: uppercase;
color: #f5f5f5;
margin-bottom: 8px;
}

/* === ITEM LIST LIGA === */
.list-group-item {
background-color: transparent;
border: none;
font-size: 0.85rem;
padding: 6px 10px;
color: #fff;
transition: all 0.2s ease;
display: flex;
align-items: center;
gap: 10px;
border-radius: 6px;
}

.list-group-item:hover {
background: rgba(13, 110, 253, 0.1);
color: #ff5722;
transform: translateX(2px);
box-shadow: inset 0 -2px 0 rgba(255, 87, 34, 0.6);  
}

.list-group-item img {
width: 18px;
height: 14px;
object-fit: contain;
border-radius: 2px;
}
.berita-item a:hover {
color: #0d6efd;
text-decoration: underline;
}
.news-thumb {
width: 100%;
height: 120px;
background-size: cover;
background-position: center;
border-radius: 8px;
box-shadow: 0 0 6px rgba(0,0,0,0.3);
transition: transform 0.3s ease;
}

.berita-item a:hover .news-thumb {
transform: scale(1.03);
}

.berita-item strong {
font-size: 0.85rem;
line-height: 1.2rem;
}

.berita-item span {
font-size: 0.75rem;
}
.loading-spinner {
width: 32px;
height: 32px;
border: 4px solid rgba(255, 255, 255, 0.2);
border-top: 4px solid #0d6efd;
border-radius: 50%;
animation: spin 1s linear infinite;
margin: 0 auto;
}

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}


#scrollToTopBtn {
  position: fixed;
  bottom: 40px;
  right: 20px;
  z-index: 999;
  background-color: #1a2a30;
  color: #ccc;
  border: none;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

#scrollToTopBtn.show {
  opacity: 1;
  visibility: visible;
}

#scrollToTopBtn:hover {
  background-color: #ff5722;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(255, 87, 34, 0.6);
}

.main-content-wrapper {
  max-width: 1320px;
  margin-inline: auto;
}

#widgetWrapper {
  flex-grow: 1;
  width: 100%;
  max-width: 820px; /* Bisa disesuaikan */
  margin-inline: auto;
  padding-inline: 0.75rem;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  color: #ffffff;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.sidebar-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.sidebar-btn {
  font-size: 0.875rem;
  border-radius: 8px;
  padding: 8px 14px;
}

.login-glow-btn {
  background: linear-gradient(to right, #00c6ff, #0072ff);
  color: #fff;
  font-weight: 500;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 123, 255, 0.4);
  transition: all 0.3s ease;
}

.login-glow-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(0, 123, 255, 0.6);
}

.dark-toggle-wrapper {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}
/* Tombol toggle custom */
.custom-dark-toggle {
  width: 50px;
  height: 24px;
  appearance: none;
  background-color: #6c757d;
  border-radius: 50px;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.custom-dark-toggle::before {
  content: "";
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 3px;
  transition: transform 0.3s ease;
}

.custom-dark-toggle:checked {
  background-color: #0d6efd;
}

.custom-dark-toggle:checked::before {
  transform: translateX(26px);
}  


.btn-cyber {
  padding: 8px 20px;
  border-radius: 100px;
  background: #111;
  color: #fff;
  border: 2px solid #0ef;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: 0.3s ease;
}
.btn-cyber::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, #0ef, transparent);
  transition: all 0.4s ease-in-out;
}
.btn-cyber:hover::before {
  left: 100%;
}
.btn-cyber:hover {
  color: #0ef;
  background-color: #0d0f11;
}
footer.bg-dark {
  background: url('/icons/aboutunderbg.jpg') no-repeat center center;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

footer.bg-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85); /* Layer hitam semi transparan biar teks tetap jelas */
  z-index: 0;
}

footer.bg-dark .container {
  position: relative;
  z-index: 1;
}



#sidebarBeritaList .berita-item {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 8px;
  transition: 0.3s;
}

#sidebarBeritaList .berita-item:hover {
  background: #222;
}

#sidebarBeritaList .news-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
}

#sidebarBeritaList strong {
  font-size: 0.8rem;
  line-height: 1.3;
  font-weight: 600;
  color: #58a6ff;
}

#sidebarBeritaList span {
  font-size: 0.7rem;
  color: #999;
}

#sidebarBeritaList .berita-item + .berita-item {
  margin-top: 14px;
}
.sidebar-news-item {
  transition: all 0.3s ease;
}
.sidebar-news-item:hover {
  background-color: #1f1f1f;
  transform: scale(1.01);
}
.sidebar-news-item img {
  border: 2px solid #007acc;
}
.sidebar-news-item .btn {
  font-size: 0.75rem;
  padding: 4px 8px;
  transition: all 0.2s ease-in-out;
}
.sidebar-news-item .btn:hover {
  background-color: #007acc;
  color: #fff;
  border-color: #007acc;
}
