/*------------------ Optimized Reset ---------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section, main {
    display: block;
}

body {
    background: #000; /* Hitam pekat lebih efisien */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; /* Font sistem lebih cepat */
    line-height: 1.6;
}

a {
    color: #000;
    text-decoration: none;
    font-weight: 700;
}

/*----------------- Layout ------------------------*/

.container {
    width: 100%;
    max-width: 800px; /* Gunakan max-width daripada width 50% agar lebih fleksibel */
    margin: auto;
    background: #fff;
}

/* Perbaikan typo 'transfarant' -> 'transparent' */
.floating-top, .floating-bottom {
    background: transparent;
    left: 0;
    height: auto;
    position: fixed;
    text-align: center;
    width: 100%;
    z-index: 1001;
}

.floating-top { top: 0; }
.floating-bottom { bottom: 0; }

.floating-top img, .floating-bottom img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.head {
    width: 100%;
    padding: 20px 0;
    background: #fff;
}

.logo {
    display: block;
    width: 100%;
    height: 180px; /* Ukuran lebih proporsional */
    background: url(../img/live-hk.png) center no-repeat;
    background-size: contain; /* Agar logo tidak terpotong */
    margin: auto;
}

/*----------------- Navigation ------------------------*/

.menu {
    width: 100%;
    padding: 0;
    background: linear-gradient(180deg, #d91300 0%, #a30e00 100%); /* Gradasi lebih tajam */
    text-align: center;
}

.menu a {
    display: inline-block;
    padding: 15px 20px;
    margin: 0;
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    transition: background 0.3s;
}

.menu a:hover {
    background: #ff0000;
}

/*----------------- Content ------------------------*/

.content {
    width: 100%;
    padding: 15px;
    background: #fff;
    color: #333; /* Warna abu gelap lebih nyaman dibaca daripada hitam pekat */
}

.judul {
    margin: 20px 0;
    text-align: center;
}

.judul a, .judul h1 {
    color: #000;
    font-size: 28px; /* Lebih proporsional untuk SEO */
    font-weight: 800;
}

.content p {
    font-size: 16px;
    text-align: justify;
    margin-bottom: 15px;
    width: 100%;
}

/*----------------- Table & Live Draw ------------------------*/

iframe {
    background: #f9f9f9;
    margin-bottom: 20px;
    max-width: 100%;
}

.tanggal {
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 20px;
    padding: 15px 0;
    font-weight: bold;
    background: linear-gradient(to bottom, #f58c02 0%, #e67300 100%);
    border: 1px solid #ddd;
}

/*----------------- Responsive (Mobile) ------------------------*/

@media screen and (max-width: 768px) {
    .container {
        width: 100%;
    }

    .logo {
        height: 120px;
    }

    .menu a {
        display: block; /* Menu tumpuk di mobile agar mudah diklik jari */
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    .judul a, .judul h1 {
        font-size: 22px;
    }

    .content p {
        text-align: left; /* Teks rata kiri lebih mudah dibaca di layar kecil */
        font-size: 15px;
    }
}