* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans Lao", Arial, sans-serif;
    background: #f4f1ec;
    color: #282323;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

.top-header {
    width: 100%;
    background: #fffdf9;
    border-top: 5px solid #8e1e28;
}

.top-header-inner {
    width: calc(100% - 40px);
    max-width: 1320px;
    min-height: 100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-mark {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #9c2832;
    border-radius: 50%;
    background: #961f2a;
    color: #ffffff;
    font-family: Georgia, serif;
    font-size: 28px;
    font-weight: 700;
}

.brand-name strong {
    display: block;
    color: #7d1d26;
    font-size: 23px;
    font-weight: 800;
}

.brand-name span {
    display: block;
    margin-top: 2px;
    color: #a28b72;
    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2.5px;
}

.draw-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8e9e9;
}

.status-icon span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #a0222d;
    box-shadow: 0 0 0 5px rgba(160, 34, 45, 0.12);
}

.draw-status small {
    display: block;
    color: #9a8e82;
    font-size: 10px;
}

.draw-status strong {
    display: block;
    margin-top: 2px;
    color: #7f2028;
    font-size: 14px;
}

.main-menu {
    width: 100%;
    background: #241c1c;
}

.menu-inner {
    width: calc(100% - 40px);
    max-width: 1320px;
    min-height: 55px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.menu-inner a {
    position: relative;
    min-height: 55px;
    padding: 0 27px;
    display: flex;
    align-items: center;
    color: #d9d0c8;
    text-decoration: none;
    font-size: 13px;
    transition: 0.2s;
}

.menu-inner a::after {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: 0;
    height: 3px;
    background: #b02b36;
    transition: 0.2s;
}

.menu-inner a:hover,
.menu-inner a.active {
    color: #ffffff;
}

.menu-inner a:hover::after,
.menu-inner a.active::after {
    left: 25px;
    right: 25px;
}

.intro {
    position: relative;
    overflow: hidden;
    background: #8f2029;
}

.intro::after {
    content: "";
    position: absolute;
    width: 550px;
    height: 550px;
    top: -320px;
    right: -80px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.intro-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.07;
    background-image:
        linear-gradient(45deg, #ffffff 1px, transparent 1px),
        linear-gradient(-45deg, #ffffff 1px, transparent 1px);
    background-size: 35px 35px;
}

.intro-inner {
    position: relative;
    z-index: 2;
    width: calc(100% - 40px);
    max-width: 1320px;
    min-height: 320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.intro-tag {
    display: inline-block;
    margin-bottom: 10px;
    color: #e4c7a5;
    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 4px;
}

.intro-left h1 {
    margin: 0;
    color: #ffffff;
    font-size: 47px;
    line-height: 1.25;
    font-weight: 800;
}

.intro-left h1 strong {
    color: #e8c89e;
}

.intro-left > p {
    max-width: 470px;
    margin: 10px 0 22px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    line-height: 1.8;
}

.intro-time {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.08);
}

.pulse {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #f0d4ae;
    box-shadow: 0 0 0 5px rgba(240, 212, 174, 0.12);
}

.intro-time small {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-family: Arial, sans-serif;
    font-size: 7px;
    letter-spacing: 1px;
}

.intro-time strong {
    display: block;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 18px;
}

.time-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 11px;
}

.intro-right {
    padding-right: 70px;
}

.decorative-ring {
    width: 205px;
    height: 205px;
    padding: 13px;
    border: 1px solid rgba(240, 211, 173, 0.4);
    border-radius: 50%;
}

.decorative-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.decorative-inner > span {
    color: #e8c89e;
    font-family: Georgia, serif;
    font-size: 45px;
    line-height: 1;
}

.decorative-inner strong {
    margin-top: 5px;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 20px;
}

.decorative-inner small {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.45);
    font-family: Arial, sans-serif;
    font-size: 7px;
    letter-spacing: 2px;
}

.page-wrapper {
    width: calc(100% - 30px);
    max-width: 1320px;
    margin: 0 auto;
    padding: 35px 0 60px;
}

.result-panel {
    overflow: hidden;
    border: 1px solid #ddd5cc;
    background: #fffdf9;
    box-shadow: 0 10px 30px rgba(65, 43, 39, 0.06);
}

.result-panel-header {
    min-height: 85px;
    padding: 18px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e4ddd5;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 13px;
}

.panel-number {
    color: #a32a34;
    font-family: Georgia, serif;
    font-size: 25px;
    font-weight: 700;
}

.panel-title small,
.history-heading small {
    display: block;
    color: #a3917f;
    font-family: Arial, sans-serif;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 2px;
}

.panel-title h2,
.history-heading h2 {
    margin: 2px 0 0;
    color: #332727;
    font-size: 18px;
}

.date-pill {
    padding: 8px 14px;
    border: 1px solid #e1d9d0;
    background: #f9f5ef;
    color: #86786c;
    font-size: 11px;
}

.main-prize-section {
    min-height: 270px;
    display: grid;
    grid-template-columns: 1fr 1.25fr;
}

.main-prize-info {
    padding: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #f8f2eb;
    border-right: 1px solid #dfd7ce;
}

.main-prize-small {
    color: #9d2630;
    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 3px;
}

.main-prize-info h3 {
    margin: 7px 0;
    color: #342727;
    font-size: 25px;
}

.main-prize-info p {
    margin: 0;
    color: #96887b;
    font-size: 12px;
}

.main-prize-number {
    padding: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.main-prize-number > div {
    min-width: 370px;
    min-height: 125px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #9d2933;
    background: #ffffff;
    color: #342626;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 72px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 10px;
    box-shadow:
        8px 8px 0 #f1e6dc,
        9px 9px 0 #cdbbad;
}

.main-prize-number > span {
    margin-top: 20px;
    color: #a39180;
    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 3px;
}

.prize-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid #ded6cd;
}

.prize-strip-item {
    min-height: 120px;
    padding: 18px;
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 12px;
    border-right: 1px solid #ded6cd;
    background: #fffdf9;
}

.prize-strip-item:last-child {
    border-right: 0;
}

.strip-index {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cdbdb0;
    border-radius: 50%;
    color: #9c2832;
    font-family: Georgia, serif;
    font-size: 12px;
}

.strip-label small {
    display: block;
    color: #ae9e91;
    font-family: Arial, sans-serif;
    font-size: 6px;
    letter-spacing: 1px;
}

.strip-label span {
    display: block;
    margin-top: 3px;
    color: #695c53;
    font-size: 11px;
}

.prize-strip-item > strong {
    color: #3b2c2c;
    font-family: Georgia, serif;
    font-size: 25px;
}

.main-content-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 25px;
    align-items: start;
}

.history-panel {
    overflow: hidden;
    border: 1px solid #ddd6ce;
    background: #fffdf9;
    box-shadow: 0 7px 25px rgba(62, 45, 40, 0.05);
}

.history-title {
    min-height: 85px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid #e2dbd3;
}

.history-heading {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 13px;
}

.history-line {
    width: 100%;
    height: 1px;
    background: #e2dad2;
}

.history-labels {
    min-width: 700px;
    display: grid;
    grid-template-columns: 1.25fr repeat(5, 1fr);
    background: #322828;
}

.history-labels div {
    padding: 13px 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    color: #eee4db;
    text-align: center;
    font-size: 10px;
    font-weight: 600;
}

.history-labels div:last-child {
    border-right: 0;
}

#history-container {
    width: 100%;
    overflow-x: auto;
}

#history-list {
    min-width: 700px;
}

.history-row {
    display: grid;
    grid-template-columns: 1.25fr repeat(5, 1fr);
    border-bottom: 1px solid #e3dcd4;
    background: #fffdf9;
    transition: 0.2s;
}

.history-row:last-child {
    border-bottom: 0;
}

.history-row:hover {
    background: #fbf5ef;
}

.history-cell {
    min-height: 65px;
    padding: 10px 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #e3dcd4;
    color: #62554d;
    font-family: Arial, "Noto Sans Lao", sans-serif;
    font-size: 13px;
}

.history-cell:last-child {
    border-right: 0;
}

.history-cell.prize {
    color: #7e222a;
    font-family: Georgia, Arial, serif;
    font-size: 16px;
    font-weight: 700;
}

.history-empty {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9c8d80;
    font-size: 12px;
}

.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.schedule-card {
    padding: 28px 22px;
    background: #302626;
    color: #ffffff;
}

.schedule-label {
    color: #caa881;
    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 2px;
}

.schedule-card h3 {
    margin: 8px 0 0;
    color: #ffffff;
    font-size: 17px;
}

.schedule-time {
    margin: 18px 0;
    color: #e0b88d;
    font-family: Georgia, serif;
    font-size: 46px;
    line-height: 1;
}

.schedule-card p {
    margin: 0;
    color: #a99e97;
    font-size: 10px;
    line-height: 1.8;
}

.schedule-bottom {
    margin-top: 20px;
    padding-top: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    color: #d2c1b2;
    font-family: Arial, sans-serif;
    font-size: 8px;
    letter-spacing: 1px;
}

.schedule-bottom span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #b72d38;
}

.sidebar-news {
    padding: 18px;
    border: 1px solid #ddd6ce;
    background: #fffdf9;
}

.sidebar-heading {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-heading > span {
    width: 4px;
    height: 22px;
    background: #a02832;
}

.sidebar-heading h2 {
    margin: 0;
    color: #3b2d2d;
    font-size: 15px;
}

.mini-news {
    padding: 0 0 15px;
    margin-bottom: 15px;
    display: grid;
    grid-template-columns: 85px 1fr;
    gap: 11px;
    border-bottom: 1px solid #e3dcd4;
}

.mini-news:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}

.mini-image img {
    width: 85px;
    height: 70px;
    display: block;
    object-fit: cover;
}

.mini-news small {
    color: #a02731;
    font-family: Arial, sans-serif;
    font-size: 7px;
    font-weight: 700;
}

.mini-news h3 {
    margin: 4px 0 0;
    color: #514542;
    font-size: 10px;
    line-height: 1.6;
}

.feature-news {
    margin-top: 28px;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    border: 1px solid #ddd5cd;
    background: #fffdf9;
}

.feature-news-image {
    position: relative;
}

.feature-news-image img {
    width: 100%;
    height: 330px;
    display: block;
    object-fit: cover;
}

.feature-news-image span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 6px 11px;
    background: #94232d;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 8px;
    letter-spacing: 1px;
}

.feature-news-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-news-content small {
    color: #a12630;
    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 2px;
}

.feature-news-content h2 {
    margin: 9px 0;
    color: #372b2b;
    font-size: 23px;
    line-height: 1.6;
}

.feature-news-content p {
    margin: 0;
    color: #95877b;
    font-size: 11px;
    line-height: 1.9;
}

.site-footer {
    width: 100%;
    background: #241c1c;
}

.footer-inner {
    width: calc(100% - 40px);
    max-width: 1320px;
    min-height: 125px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.footer-v {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #a9343d;
    border-radius: 50%;
    color: #d5b28b;
    font-family: Georgia, serif;
    font-size: 20px;
}

.footer-brand strong {
    display: block;
    color: #ffffff;
    font-size: 14px;
}

.footer-brand span {
    display: block;
    color: #9b8b80;
    font-family: Arial, sans-serif;
    font-size: 7px;
    letter-spacing: 2px;
}

.footer-inner p {
    color: #82756d;
    font-family: Arial, sans-serif;
    font-size: 9px;
}

@media (max-width: 1000px) {
    .main-content-grid {
        grid-template-columns: 1fr;
    }

    .right-sidebar {
        display: grid;
        grid-template-columns: 280px 1fr;
    }

    .main-prize-section {
        grid-template-columns: 1fr 1.4fr;
    }

    .prize-strip {
        grid-template-columns: 1fr 1fr;
    }

    .prize-strip-item:nth-child(2) {
        border-right: 0;
    }

    .prize-strip-item:nth-child(1),
    .prize-strip-item:nth-child(2) {
        border-bottom: 1px solid #ded6cd;
    }
}

@media (max-width: 700px) {
    .top-header-inner {
        width: calc(100% - 24px);
        min-height: 82px;
    }

    .brand-mark {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }

    .brand-name strong {
        font-size: 18px;
    }

    .brand-name span,
    .draw-status {
        display: none;
    }

    .main-menu {
        overflow-x: auto;
    }

    .menu-inner {
        width: max-content;
        min-width: 100%;
    }

    .menu-inner a {
        flex-shrink: 0;
        padding: 0 18px;
    }

    .intro-inner {
        width: calc(100% - 30px);
        min-height: 250px;
    }

    .intro-left h1 {
        font-size: 33px;
    }

    .intro-right {
        display: none;
    }

    .page-wrapper {
        width: calc(100% - 20px);
        padding-top: 20px;
    }

    .result-panel-header {
        display: block;
        text-align: center;
    }

    .panel-title {
        justify-content: center;
    }

    .date-pill {
        display: inline-block;
        margin-top: 10px;
    }

    .main-prize-section {
        display: block;
    }

    .main-prize-info {
        padding: 25px 20px;
        border-right: 0;
        border-bottom: 1px solid #dfd7ce;
        text-align: center;
    }

    .main-prize-number {
        padding: 30px 15px;
    }

    .main-prize-number > div {
        min-width: 0;
        width: 290px;
        max-width: 100%;
        min-height: 100px;
        font-size: 54px;
        letter-spacing: 6px;
    }

    .prize-strip {
        grid-template-columns: 1fr 1fr;
    }

    .prize-strip-item {
        min-height: 105px;
        padding: 12px;
        grid-template-columns: 34px 1fr;
    }

    .prize-strip-item > strong {
        grid-column: 1 / -1;
        text-align: center;
        font-size: 23px;
    }

    .strip-index {
        width: 32px;
        height: 32px;
    }

    .history-panel {
        overflow: hidden;
    }

    .history-title {
        padding: 15px;
    }

    .right-sidebar {
        display: block;
    }

    .sidebar-news {
        margin-top: 20px;
    }

    .feature-news {
        grid-template-columns: 1fr;
    }

    .feature-news-image img {
        height: 230px;
    }

    .feature-news-content {
        padding: 25px 20px;
    }

    .footer-inner {
        min-height: 105px;
        display: block;
        padding: 25px 0;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-inner p {
        margin-top: 15px;
    }
}

@media (max-width: 430px) {
    .intro-left h1 {
        font-size: 29px;
    }

    .main-prize-number > div {
        width: 255px;
        min-height: 88px;
        font-size: 46px;
        letter-spacing: 4px;
    }

    .prize-strip {
        grid-template-columns: 1fr;
    }

    .prize-strip-item,
    .prize-strip-item:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid #ded6cd;
    }

    .prize-strip-item:last-child {
        border-bottom: 0;
    }
}