/* ============================================= */
/* ===== 1. GLOBAL & FONT PROFESIONAL ====== */
/* ============================================= */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f7f6;
    /* Latar belakang abu-abu sangat muda */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    /* Judul lebih tebal */
}

/* Menghilangkan header section lama yang tidak terpakai */
.section-title {
    display: none;
}

/* ============================================= */
/* ===== 2. PERBAIKAN TAB UTAMA & NAVBAR ==== */
/* ============================================= */

/* Navbar sedikit lebih gelap dan modern */
.navbar.bg-dark {
    background-color: #1a1a1a !important;
}

.main-nav-tabs {
    border-bottom: 2px solid #dee2e6;
    /* Garis bawah abu-abu muda */
    margin-bottom: 0;
}

.main-nav-tabs .nav-item {
    margin-bottom: -2px;
}

.main-nav-tabs .nav-link {
    border: 2px solid transparent;
    border-bottom: 2px solid transparent;
    color: #495057;
    font-weight: 600;
    /* Font lebih tebal */
    font-size: 1.1rem;
    padding: 0.75rem 1.25rem;
    transition: all 0.2s ease;
}

.main-nav-tabs .nav-link:hover {
    color: #0d6efd;
    border-bottom-color: #0d6efd;
}

.main-nav-tabs .nav-link.active {
    color: #0d6efd;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
    border-bottom: 2px solid #0d6efd;
    /* Garis bawah biru tebal saat aktif */
}

.main-nav-tabs .nav-link .live-icon {
    /* Animasi pulse HANYA di ikon, bukan seluruh tombol */
    animation: pulse 1.5s infinite;
}

.main-tab-content>.tab-pane {
    padding: 0;
}

/* Judul Liga yang lebih profesional */
.league-block h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #343a40;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 1rem;
}


/* ============================================= */
/* ===== 3. KARTU PERTANDINGAN (BARU) ====== */
/* ============================================= */
.match-card-pro {
    background-color: #ffffff;
    border-radius: 12px;
    /* Sudut lebih bulat */
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    /* Bayangan halus */
    transition: all 0.3s ease;
}

/* Efek hover profesional */
.match-card-pro:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.match-teams .team {
    width: 40%;
    /* Beri lebar agar seimbang */
    text-align: center;
}

.match-teams .team-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #212529;
    margin-top: 0.5rem;
    /* Mencegah nama tim jadi 2 baris */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Skor di tengah, dibuat lebih besar dan tebal */
.match-score {
    width: 20%;
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: #0d6efd;
    /* Skor berwarna biru */
}

/* Tampilan "VS" untuk jadwal */
.match-score.match-scheduled {
    font-size: 1rem;
    font-weight: 600;
    color: #6c757d;
    /* Warna abu-abu */
}

/* === PERBAIKAN LOGO (DIMULAI) === */
/* Logo tim dibuat bulat sempurna */
.team-logo-img,
.team-logo-initial {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    /* Bulat */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    /* TAMBAHAN: Border agar logo putih terlihat */
    border: 1px solid #e9ecef;
}

.team-logo-img {
    object-fit: cover;
    /* PERBAIKAN: dari 'contain' menjadi 'cover' */
    background-color: #f8f9fa;
    /* Latar belakang jika logo transparan */

    /* TAMBAHAN: Style untuk background-image (non-SVG) */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* === PERBAIKAN LOGO (SELESAI) === */

/* ============================================= */
/* ===== 4. BADGE STATUS (BARU) ============ */
/* ============================================= */
.match-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f3f5;
    font-size: 0.8rem;
    color: #6c757d;
}

.status-badge {
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* Badge "LIVE" merah menyala */
.status-badge.status-live {
    background-color: #dc3545;
    color: #fff;
    animation: pulse 1.5s infinite;
    /* Animasi pulse di badge */
}

/* Badge "FULL TIME" abu-abu */
.status-badge.status-finished {
    background-color: #6c757d;
    color: #fff;
}

/* Badge "JadWAL" biru muda */
.status-badge.status-scheduled {
    background-color: #e7f1ff;
    color: #0d6efd;
}

/* Hapus animasi dari ikon di tab */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* ============================================= */
/* ===== 5. TOMBOL BACK TO TOP (BARU) ====== */
/* ============================================= */
#backToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    /* Sembunyi by default */
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    z-index: 1000;
    transition: opacity 0.3s, transform 0.3s;
}

#backToTopBtn.show {
    display: inline-flex;
    opacity: 1;
}

/* ============================================= */
/* ===== 6. RESPONSIVITAS (DIPERBAIKI) ==== */
/* ============================================= */
@media (max-width: 768px) {

    /* Perkecil font tab utama di HP */
    .main-nav-tabs .nav-link {
        font-size: 0.9rem;
        padding: 0.75rem 0.5rem;
    }

    /* Perkecil font tab tanggal di HP */
    .nav-tabs .nav-link {
        font-size: 0.8rem;
        padding: 0.5rem 0.6rem;
    }

    .match-score {
        font-size: 1.5rem;
        /* Perkecil skor di HP */
    }

    .team-logo-img,
    .team-logo-initial {
        width: 35px;
        /* Perkecil logo di HP */
        height: 35px;
    }

    .match-teams .team-name {
        font-size: 0.8rem;
        /* Perkecil nama tim */
    }
}

/* ============================================= */
/* ===== 7. SKELETON LOADER (BARU) ========= */
/* ============================================= */
@keyframes skeleton-pulse {
    0% {
        background-color: #f0f3f5;
    }

    50% {
        background-color: #e9ecef;
    }

    100% {
        background-color: #f0f3f5;
    }
}

.skeleton-loader-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.skeleton-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.skeleton-line {
    height: 20px;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

/* Skeleton untuk LIVE card */
.skeleton-card.skeleton-live .skeleton-line {
    animation: skeleton-pulse 1s ease-in-out infinite;
}

/* ============================================= */
/* ===== 8. STYLE BANNER IKLAN MANUAL (BARU) ==== */
/* ============================================= */

.manual-banner-placeholder {
    width: 100%;
    /* Batasi lebar maks ke ukuran leaderboard standar */
    max-width: 728px;
    margin: 0 auto 1rem auto;
    /* Posisikan di tengah & beri margin bawah */
    background-color: #f8f9fa;
    /* Latar abu-abu sangat muda */
    border: 2px dashed #ced4da;
    /* Border putus-putus */
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.manual-banner-placeholder:hover {
    border-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.banner-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    /* Tinggi standar leaderboard desktop */
    min-height: 90px;
    padding: 0.5rem;
    text-decoration: none;
    color: #495057;
    transition: background-color 0.2s ease;
    text-align: center;
}

.banner-link:hover {
    background-color: #e9ecef;
}

.banner-text-main {
    font-weight: 700;
    font-size: 1.1rem;
    color: #212529;
}

.banner-text-sub {
    font-size: 0.85rem;
    margin-top: 0.25rem;
    color: #6c757d;
}

/* Penyesuaian untuk mobile */
@media (max-width: 576px) {
    .banner-link {
        /* Tinggi standar banner mobile */
        min-height: 50px;
    }

    .banner-text-main {
        font-size: 0.9rem;
    }

    .banner-text-sub {
        font-size: 0.75rem;
        /* Sembunyikan teks ukuran di HP agar tidak terlalu ramai */
        display: none;
    }
}