/* --- MULAI KODE CSS BARU UNTUK LIGA --- */
.main_title {
	color: #ffffff;
	font-size: 18px;
	line-height: 25px;
	margin: 1px 0 0;
	padding: 0 10px;
	margin-bottom: 10px;
}

/* 2. KONTEN UTAMA (menggunakan .container dari file Anda) */
.container {
	max-width: 950px;
	margin: 5px auto;
	padding: 5px;
}

/* 3. GRID MENU LIGA */
.league-grid {
	display: grid;
	/* DIUBAH: minmax 280px menjadi 160px agar muat 2 kolom di HP */
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 10px;
	/* Jarak antar kotak juga dikecilkan */
	border: 3px solid #ffc107;
	border-radius: 12px;
	padding: 8px;
}

.league-box {
	/* --- PERMINTAAN KHUSUS ANDA: BORDER EMAS --- */
	background: linear-gradient(145deg, #2a314d, #1e253b);
	border-radius: 15px;
	padding: 8px;
	cursor: pointer;
	transition: transform 0.2s ease, background-color 0.2s ease;
	width: 100%;
	color: #ffffff;
	display: flex;
	align-items: center;
	position: relative;
	/* Diperlukan untuk pseudo-element */
	overflow: hidden;
	/* Agar kilap tidak keluar */
	text-align: left;
	/* --- TAMBAHKAN BARIS BOX-SHADOW DI SINI --- */
	box-shadow: 1px 2px 4px #4e6c75;
	border: 0px solid #171c2e;
}

.league-box:hover {
	transform: translateY(-5px) scale(1.02);
	/* Sedikit membesar saat naik */
	background: linear-gradient(145deg, #3a415d, #2e354b);
	/* Gradient hover */
	box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.5);
	/* Bayangan lebih jelas */
	border-color: #ffda63;
	/* (Opsional) Ubah warna border saat hover */
}

.league-box::before {
	content: "";
	position: absolute;
	top: 0;
	left: -80%;
	/* Mulai dari luar kiri */
	width: 60%;
	/* Lebar kilap */
	height: 100%;
	background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
	transform: skewX(-25deg);
	/* Miringkan kilap */
	opacity: 0;
	/* Sembunyi secara default */
	transition: left 0.6s ease-in-out, opacity 0.4s ease;
	/* Transisi untuk hover */
}

.league-box:hover::before {
	left: 120%;
	/* Pindahkan ke kanan saat hover */
	opacity: 1;
	/* Tampilkan saat hover */
}

.league-logo {
	width: 40px;
	height: 40px;
	margin-right: 5px;
	margin-left: 5px;
	object-fit: contain;
}

.league-text span {
	display: block;
	font-size: 0.7em;
	color: #8899bb;
	letter-spacing: 0px;
	/* SEMULA: margin-bottom: 2px; */
	text-transform: uppercase;
	font-weight: 600;
	font-family: 'Oswald', sans-serif;
	line-height: 1;

}

.league-text h3 {
	font-size: 1.2em;
	letter-spacing: -0.5px;
	color: #fff;
	text-align: left;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
	font-family: 'Oswald', sans-serif;
	font-weight: 850;
	/* SEMULA: line-height: 1.1; */
	line-height: 1;
	margin-top: 0;
	margin-bottom: 0;
	/* <-- TAMBAHKAN margin-bottom 0 */
}

/* --- CSS BARU UNTUK DESKRIPSI LIGA --- */
.league-text p {
	font-family: 'Oswald', sans-serif;
	font-size: 0.4em;
	color: #ffffff;
	font-weight: 400;
	line-height: 1.5;
	margin-top: 0;
	/* Pastikan ini sudah 0 */
	margin-bottom: 0;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* 4. WADAH WIDGET (TERSEMBUNYI) */
.widget-wrapper {
	/* display: none; */
	/* <-- HAPUS INI */
	display: block;
	/* --- TAMBAHKAN INI UNTUK MEMBATASI LEBAR WIDGET --- */
	max-width: 600px;
	/* Atur lebar maksimal widget (sesuaikan) */
	width: 95%;
	/* Lebar widget (sedikit lebih kecil dari grid) */
	margin-left: auto;
	/* Tengahkan widget */
	margin-right: auto;
	/* Tengahkan widget */
}

.widget-container {
	/* --- PERMINTAAN KHUSUS ANDA: BORDER EMAS --- */
	border: 3px inset #ffc107;

	border-radius: 8px;
	overflow: hidden;
	background-color: #b90000;
	min-height: 500px;
}

.widget-container iframe {
	width: 100%;
	height: 600px;
	border: none;
	display: block;
}

/* --- SELESAI KODE CSS BARU UNTUK LIGA --- */

/* --- CSS BARU UNTUK NAVIGASI WIDGET --- */
/* --- BUAT SEMUA TOMBOL BERUKURAN SAMA --- */
.navigation-buttons>* {
	/* Target SEMUA anak langsung */
	flex: 1;
	/* <-- KUNCI: Buat semua tombol berbagi lebar rata */
	text-align: center;
	/* Teks di tengah */
	padding: 10px 5px;
	/* Sesuaikan padding */
	font-size: 0.9em;
	/* Sesuaikan font */
	/* Hapus margin spesifik (diatur 'gap') */
	margin-top: 15px;
	margin-left: 0 !important;
	margin-right: 0 !important;
	/* Pastikan border-radius konsisten */
	border-radius: 5px;
	text-decoration: none;
	/* Hapus underline jika ada link */
	font-weight: 600;
	/* Konsistenkan ketebalan font */
	font-family: 'Oswald', sans-serif;
	/* Konsistenkan font */
	border: none;
	/* Pastikan tidak ada border default */
	cursor: pointer;
	/* Tunjukkan bisa diklik */
	white-space: nowrap;
	/* Cegah teks tombol turun baris */
}

.nav-button {
	background-color: #444;
	/* Warna abu-abu gelap */
	color: white;
	border: none;
	padding: 10px 15px;
	font-size: 0.9em;
	border-radius: 5px;
	cursor: pointer;
	font-weight: 600;
	font-family: 'Oswald', sans-serif;
	/* Sesuaikan jika perlu */
	padding: 16px;
}

.nav-button:hover {
	background-color: #555;
}

/* Tombol Kembali sedikit berbeda */
.navigation-buttons .back-button {
	margin-top: 0;
	/* Hapus margin atas dari aturan sebelumnya */
	flex-grow: 1;
	/* Biarkan tombol kembali mengisi ruang */
	margin-left: 10px;
	margin-right: 10px;
}

/* Sembunyikan tombol jika tidak relevan (akan diatur JS) */
.nav-button.hidden {
	visibility: hidden;
	/* Sembunyikan tapi tetap makan tempat */
}

/* --- SELESAI CSS BARU --- */
/* Gaya Tombol Navigasi (Prev/Next) */
.nav-button {
	background-color: #444;
	color: white;
}

.nav-button:hover {
	background-color: #555;
}

.nav-button.hidden {
	visibility: hidden;
}

/* Gaya Tombol BET NOW */
.nav-button.bet-button {
	background-color: #f0ad4e;
	/* Warna Emas */
	color: #121212;
	/* Teks gelap */
	padding: 16px;
}

.nav-button.bet-button:hover {
	background-color: #e69a2e;
}

/* (BARU) Wadah untuk Tombol Bawah */
.bottom-buttons {
	display: flex;
	/* Susun tombol horizontal */
	justify-content: center;
	/* Tengahkan tombol */
	gap: 15px;
	/* Jarak antar tombol */
	margin-top: 20px;
	/* Jarak dari widget di atasnya */
}

/* (BARU) Gaya Umum Tombol Bawah */
.bottom-buttons .button {
	padding: 12px 25px;
	/* Ukuran tombol */
	border-radius: 8px;
	/* Sudut tombol */
	text-decoration: none;
	font-weight: 700;
	font-family: 'Comfortaa', cursive;
	font-size: 1em;
	/* Ukuran font tombol */
	text-align: center;
	border: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
	display: inline-block;
	min-width: 120px;
	/* Lebar minimal tombol */
}

/* (BARU) Gaya Tombol KEMBALI */
.button-back {
	background-color: #007BFF;
	/* Biru */
	color: rgb(0, 0, 0);

}

.button-back:hover {
	background-color: #0056b3;
}

/* (BARU) Gaya Tombol BET NOW */
.button-bet {
	background-color: #f0ad4e;
	/* Emas */
	color: #121212;
	/* Hitam */
}

.button-bet:hover {
	background-color: #e69a2e;
}