/* ==========================================================
   1. PENGATURAN FONT UTAMA (OSWALD)
   ========================================================== */
@font-face {
    font-family: "Oswald";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/oswald/v40/TK3_WkUHHAIjg75cFRf3bXL8LICs1_FvsUZiZQ.woff2) format("woff2");
}

html {
    font-family: "Oswald", sans-serif;
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==========================================================
   2. KELAS WARNA LATAR BELAKANG PASARAN (LIVE DRAW)
   ========================================================== */
.hongkong { background-color: #9C1512; }
.sydney { background-color: #d35400; }
.singapore { background-color: #2980b9; }

/* ==========================================================
   3. KONTAINER UTAMA TABEL LIVE DRAW (HK, SGP, SDY)
   ========================================================== */
.entry-ld-container {
    width: 100%;
    text-align: center;
    margin: auto;
    border: 8px solid #EBEBEB;
    border-radius: .25rem;
    margin-bottom: 20px;
}

.entry-ld-container .entry-ld-table {
    width: 100%;
    border-collapse: collapse;
    margin: auto;
    border-spacing: 0;
}

.entry-ld-container .entry-ld-table thead {
    border: 1px solid #EBEBEB;
}

.entry-ld-container .entry-ld-table .entry-ld-image {
    width: 100%;
    padding-top: 5px;
}

.entry-ld-container .entry-ld-table .entry-ld-image img {
    width: 65px;
    vertical-align: bottom;
}

.entry-ld-container .entry-ld-table .entry-ld-title {
    font-weight: bold;
    color: #FFFFFF;
    vertical-align: top;
    letter-spacing: 1px;
}

.entry-ld-container .entry-ld-table .entry-ld-subtitle {
    font-weight: bold;
    color: #FFFFFF;
    letter-spacing: 1px;
    text-align: center;
    height: 40px;
    font-size: 18px;
    border: 1px solid #EBEBEB;
}

.pt-10 { padding-top: 10px; }
.pb-10 { padding-bottom: 10px; }
.fz-20 { font-size: 20px; }
.fz-16 { font-size: 16px; }
.fz-15 { font-size: 15px; }
.fz-26 { font-size: 26px; }

.entry-ld-container .entry-ld-table .entry-ld-brand {
    width: 100%;
    background-color: #EBEBEB;
    border: 1px solid #EBEBEB;
    padding: 0;
}

.entry-ld-container .entry-ld-table .entry-ld-brand img {
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

.entry-ld-container .entry-ld-table .entry-ld-body {
    background-color: #141414;
}

.entry-ld-container .entry-ld-table .entry-ld-body a {
    text-decoration: none;
    color: #FFFFFF;
}

.entry-ld-container .entry-ld-table td {
    width: 15%;
    border: 1px solid #EBEBEB;
    text-align: center;
    font-size: 22px;
    color: #FFFFFF;
    letter-spacing: 1px;
    height: 50px;
}

.entry-ld-container .entry-ld-table .entry-ld-body tr:nth-child(1) {
    height: 65px;
}


/* ==========================================================
   4. STYLING KONTEN DATA PASARAN LENGKAP (HK, SDY, SGP)
   ========================================================== */
.Global-Container {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 10px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.Text-Head2 {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

/* Kontainer Flexbox untuk Menjajarkan Tabel Hari (Senin - Minggu) */
.container-data2021 {
    display: flex;
    flex-wrap: nowrap; /* Mencegah turun ke bawah di HP */
    overflow-x: auto;  /* Bisa digeser horizontal jika layar sangat kecil */
    justify-content: flex-start;
    gap: 3px;
    width: 100%;
}

.container-data2021 .Tahunan-Tab {
    flex: 0 0 auto;
    width: 135px; /* Lebar tetap seperti versi PC versi kecil */
    border-collapse: collapse;
    background-color: #fdfdfd;
    border: 1px solid #e0e0e0;
    margin-bottom: 10px;
}

/* --- ATURAN WARNA HEADER BERDASARKAN PASARAN --- */
/* Default / HK = Merah */
.container-data2021 .Tahunan-Tab th,
.data-hk .container-data2021 .Tahunan-Tab th {
    background-color: #9C1512 !important;
    border-color: #9C1512 !important;
}

/* SDY = Orange */
.data-sdy .container-data2021 .Tahunan-Tab th {
    background-color: #d35400 !important;
    border-color: #d35400 !important;
}

/* SGP = Biru */
.data-sgp .container-data2021 .Tahunan-Tab th {
    background-color: #2980b9 !important;
    border-color: #2980b9 !important;
}

.container-data2021 .Tahunan-Tab th {
    color: #ffffff;
    padding: 6px 2px;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
}

/* Baris Angka Data */
.container-data2021 .Tahunan-Tab td {
    padding: 4px 2px;
    text-align: center;
    font-size: 12px;
    color: #333333;
    border: 1px solid #e0e0e0;
    font-family: monospace;
    height: auto;
}

.container-data2021 .Tahunan-Tab tr:nth-child(even) td {
    background-color: #f9f9f9;
}

.container-data2021 .Tahunan-Tab tr:hover td {
    background-color: #f1f1f1;
}


/* ==========================================================
   5. MEDIA QUERY RESPONSIF MOBILE (TAMPILAN KECIL SEPERTI PC)
   ========================================================== */
@media screen and (max-width: 960px) {
    .entry-ld-container {
        border: 3px solid #EBEBEB;
    }
    .entry-ld-container .entry-ld-table .entry-ld-image img {
        width: 45px;
    }
    .fz-20 { font-size: 18px; }
    .fz-16 { font-size: 15px; }
    .fz-15 { font-size: 14px; }
    .entry-ld-container .entry-ld-table td {
        font-size: 20px;
        height: 45px;
    }
}

/* Mengunci ukuran tabel di HP agar tetap kecil berjejer kesamping (bisa di-scroll halus) */
@media screen and (max-width: 768px) {
    .Global-Container {
        padding: 5px;
    }
    .container-data2021 {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 3px;
        padding-bottom: 5px;
    }
    .container-data2021 .Tahunan-Tab {
        flex: 0 0 auto;
        width: 68px; /* Ukuran kotak kecil rapi seperti versi PC */
    }
    .container-data2021 .Tahunan-Tab th {
        font-size: 10px;
        padding: 4px 1px;
    }
    .container-data2021 .Tahunan-Tab td {
        font-size: 10px;
        padding: 3px 1px;
    }
    .Text-Head2 {
        font-size: 16px;
    }
}