/* ==================================================
   RESET
================================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: #111111;
    color: #222222;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==================================================
   CONTAINER
================================================== */

.container {
    width: 100%;
    max-width: 1100px;
    margin: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.page-wrapper {
    width: 100%;
    max-width: 1140px;
    min-height: 100vh;
    margin: auto;
    background: #ffffff;
}

/* ==================================================
   TOP BAR
================================================== */

.topbar {
    background: #f5f5f5;
    border-bottom: 1px solid #e5e5e5;
    color: #555555;
    font-size: 12px;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 34px;
}

/* ==================================================
   ANNOUNCEMENT
================================================== */

.announcement {
    background: #a32920;
    color: #ffffff;
    padding: 8px 0;
    font-size: 12px;
}

/* ==================================================
   HEADER
================================================== */

.header {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    color: #222222;
    font-size: 27px;
    font-weight: 900;
    letter-spacing: 1px;
    white-space: nowrap;
}

.logo span {
    color: #b32920;
}

/* ==================================================
   NAVIGATION
================================================== */

.menu {
    display: flex;
    align-items: center;
    gap: 22px;
}

.menu a {
    color: #333333;
    font-size: 13px;
    font-weight: bold;
}

.menu a:hover {
    color: #b32920;
}

/* ==================================================
   MAIN CONTENT
================================================== */

main {
    padding-top: 22px;
    padding-bottom: 30px;
}

.section {
    margin-bottom: 27px;
}

/* ==================================================
   SECTION HEADING
================================================== */

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    border-left: 4px solid #a32920;
    padding: 10px 14px;
    margin-bottom: 12px;
    color: #222222;
    font-size: 15px;
    font-weight: bold;
}

.section-heading small {
    color: #888888;
    font-size: 11px;
    font-weight: normal;
}

/* ==================================================
   LIVE RESULT
================================================== */

.live-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.live-card {
    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 3px;
    padding: 12px;
    text-align: center;
}

.live-name {
    color: #777777;
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 7px;
    text-transform: uppercase;
}

.live-value {
    color: #a32920;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: 4px;
}

/* ==================================================
   INTRODUCTION
================================================== */

.intro {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    padding: 17px;
    border-radius: 3px;
    margin-bottom: 20px;
}

.intro h1 {
    margin: 0 0 10px;
    color: #222222;
    font-size: 23px;
    line-height: 1.4;
}

.intro p {
    margin: 0 0 10px;
    color: #555555;
    font-size: 14px;
}

/* ==================================================
   PAITO RESULT
================================================== */

.paito-panel {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e1e1e1;
    padding: 8px;
    overflow-x: auto;
}

.empty-message {
    padding: 15px;
    color: #777777;
    text-align: center;
}

/* ==================================================
   NEXT LIVE
================================================== */

.next-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.next-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 3px;
    padding: 12px;
}

.next-item span:first-child {
    color: #444444;
}

.next-item span:last-child {
    color: #a32920;
    font-weight: bold;
}

/* ==================================================
   DISCUSSION
================================================== */

.discussion {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.discussion-item {
    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 3px;
    padding: 13px;
}

.discussion-item strong {
    display: block;
    color: #333333;
    margin-bottom: 4px;
}

.discussion-item small {
    color: #888888;
}

/* ==================================================
   LINK GROUP
================================================== */

.link-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.link-group {
    background: #ffffff;
    border: 1px solid #e2e2e2;
    padding: 14px;
    border-radius: 3px;
}

.link-group h3 {
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
    color: #a32920;
}

.link-group a {
    display: block;
    color: #555555;
    padding: 7px 0;
    border-bottom: 1px solid #eeeeee;
    font-size: 13px;
}

.link-group a:last-child {
    border-bottom: none;
}

.link-group a:hover {
    color: #a32920;
}

/* ==================================================
   FOOTER
================================================== */

.footer {
    background: #f5f5f5;
    border-top: 1px solid #e2e2e2;
    padding: 22px 0;
    color: #777777;
    font-size: 12px;
    text-align: center;
}

.footer p {
    margin: 4px 0;
}

/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 700px) {

    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 13px;
        padding-bottom: 13px;
        gap: 10px;
    }

    .menu {
        width: 100%;
        overflow-x: auto;
        gap: 18px;
        padding-bottom: 5px;
    }

    .menu a {
        white-space: nowrap;
    }

    .live-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .next-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .link-columns {
        grid-template-columns: 1fr;
    }

    .discussion {
        grid-template-columns: 1fr;
    }

    .intro h1 {
        font-size: 20px;
    }

    .section-heading {
        font-size: 13px;
    }

}