/* Container Utama Widget */
.bola-widget {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin: 20px 0;
    max-width: 100%;
    overflow: hidden;
}

/* Header Tab (Tombol Hasil & Jadwal) */
.tab-header {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f7f7f7;
}

.tab-button {
    flex-grow: 1;
    padding: 10px 15px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    transition: color 0.3s, border-bottom 0.3s;
    text-align: center;
}

.tab-button.active {
    color: #278d2b; /* Warna hijau Bola.net */
    border-bottom: 2px solid #278d2b;
    background-color: #fff;
}

/* Konten Tab & Scroll (MENGAKTIFKAN SLIDER) */
.tab-content {
    padding: 15px 10px;
    display: none;
    
    /* 1. Mengaktifkan Scroll Horizontal */
    overflow-x: auto !important; 
    
    /* 2. Memastikan elemen anak tetap satu baris */
    white-space: nowrap !important; 
    
    /* 3. Pengalaman scroll yang lebih halus di mobile */
    -webkit-overflow-scrolling: touch; 
    
    /* 4. Menyembunyikan scrollbar (opsional untuk tampilan bersih) */
    scrollbar-width: none; 
}
/* Menyembunyikan scrollbar di Chrome/Safari */
.tab-content::-webkit-scrollbar {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Grup Pertandingan (Wadah Flexbox untuk kartu) */
.fixture-group-carousel {
    display: flex;
    gap: 10px; /* Jarak antar kartu */
    padding-bottom: 5px; 
}

/* Kartu Pertandingan Individual */
.fixture-card {
    /* PENTING: Mencegah kartu menyusut (agar scroll aktif) */
    flex-shrink: 0 !important; 
    
    display: inline-block;
    vertical-align: top;
    width: 200px; 
    min-width: 180px; 
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.fixture-card .card-header {
    background-color: #f0f0f0;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #555;
    display: flex;
    justify-content: space-between;
}

.fixture-card .card-body {
    padding: 10px;
}

.fixture-card .team-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 13px;
}

.fixture-card .team-name {
    flex-grow: 1;
    text-align: left;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fixture-card .team-logo {
    width: 20px;
    height: 20px;
    margin: 0 5px;
}

.fixture-card .score-value {
    font-weight: bold;
    color: #333;
}

.fixture-card .card-footer {
    background-color: #e8e8e8;
    color: #555;
    font-size: 11px;
    text-align: center;
    padding: 5px;
    font-weight: 600;
    border-top: 1px solid #ddd;
}

/* Footer Link "Lihat Selengkapnya" */
.widget-footer {
    padding: 0 15px 15px;
    text-align: right;
    font-size: 14px;
}
.widget-footer a {
    color: #278d2b;
    text-decoration: none;
    font-weight: 600;
}

/* Styling untuk Link (Anchor) di Widget */
.fixture-link {
    text-decoration: none; 
    color: inherit; 
    
    display: block; 
    flex-shrink: 0 !important; 
    width: 200px; 
    min-width: 180px; 
    
    transition: transform 0.2s, box-shadow 0.2s;
}

.fixture-link:hover .fixture-card {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    cursor: pointer;
}

/* ... (SEMUA CSS WIDGET LAINNYA DI ATAS INI) ... */


/* CSS DASAR UNTUK HALAMAN STATISTIK (TAMBAHKAN DI BAGIAN BAWAH) */
.fixture-stats-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.stats-title { text-align: center; color: #333; margin-bottom: 5px; }
.stats-info { text-align: center; color: #666; font-size: 14px; border-bottom: 1px solid #eee; padding-bottom: 15px; }

/* Header Skor */
.stats-score-header { display: flex; justify-content: space-between; align-items: center; margin: 20px 0; padding: 10px; background-color: #f7f7f7; border-radius: 4px; }
.team-box { display: flex; align-items: center; flex: 1; font-size: 1.2em; font-weight: bold; }
.team-box.home { justify-content: flex-start; }
.team-box.away { justify-content: flex-end; text-align: right; }
.team-logo-stat { width: 40px; height: 40px; margin: 0 10px; }
.score-box { display: flex; align-items: center; font-size: 2em; font-weight: 700; color: #278d2b; }

/* Tabel Statistik */
.stats-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.stats-table tr { border-bottom: 1px solid #f0f0f0; }
.stats-table td { padding: 8px 10px; text-align: center; }
.stat-type { font-weight: 600; width: 40%; text-align: center; }
.stat-value { width: 30%; font-weight: bold; }
.stat-value.home { color: #3498db; } 
.stat-value.away { color: #e74c3c; } 

/* Progress Bar (Visualisasi) */
.progress-bar-container { display: flex; width: 100%; height: 8px; background-color: #eee; border-radius: 4px; overflow: hidden; }
.progress-bar { height: 100%; }
.progress-bar.home { background-color: #3498db; }
.progress-bar.away { background-color: #e74c3c; }
.stat-bar-row td { padding-top: 0 !important; }
