/* Professional Lottery Design (Matching Template) */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f5f5f5;
    color: #333;
    margin: 0;
    padding: 0;
}

.block {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.block-main-heading {
    background: #b71c1c;
    color: #fff;
    padding: 10px 15px;
}

.block-main-heading h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.block-main-heading a {
    color: #fff;
    text-decoration: none;
}

.list-link {
    background: #f9f9f9;
    padding: 8px 15px;
    border-bottom: 1px solid #eee;
}

.class-title-list-link {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

.class-title-list-link a {
    color: #b71c1c;
    text-decoration: none;
}

.u-line:hover {
    text-decoration: underline;
}

.block-main-content {
    padding: 15px;
}

/* Table styles */
.table {
    width: 100%;
    margin-bottom: 0;
    background-color: transparent;
    border-collapse: collapse;
    table-layout: fixed;
    /* Keep columns aligned */
}

.table-bordered {
    border: 1px solid #ddd;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #e0e0e0;
    padding: 6px 8px;
    /* Reduced vertical padding */
    vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #fafafa;
}

.label-cell {
    background: #f9f9f9;
    font-weight: 700;
    color: #b71c1c;
    width: 60px;
    text-align: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    border-right: 1px solid #eee;
}

/* Prizes Typography - Compacted */
.special-prize-lg {
    font-size: 1.7rem;
    font-weight: 800;
    color: #d32f2f;
    display: block;
    line-height: 1.2;
    letter-spacing: 2px;
}

.number-black-bold {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
    display: inline-block;
    padding: 3px 0;
}

.special-prize-sm {
    font-size: 1.1rem;
    font-weight: 700;
    color: #d32f2f;
    padding: 3px 0;
}

.madb {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.special-code {
    background: #fff9c4;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid #fdd835;
    color: #333;
}

/* Loto Section */
.loto-section {
    background: #fff;
    padding: 10px;
    border-top: 1px solid #eee;
}

.loto-title {
    display: block;
    font-weight: 700;
    margin-bottom: 12px;
    color: #b71c1c;
    border-left: 4px solid #b71c1c;
    padding-left: 10px;
    font-size: 1rem;
}

.loto-nums {
    letter-spacing: 0.5px;
    color: #333;
    font-size: 1.05rem;
}

/* Helper Grid Classes - Precise Alignment */
.col-xs-6 {
    width: 50%;
    display: inline-block;
}

.col-xs-4 {
    width: 33.333333%;
    display: inline-block;
}

.col-xs-3 {
    width: 25%;
    display: inline-block;
}

.prizes-cell {
    text-align: center;
    padding: 0 !important;
    vertical-align: middle;
}

.lw-prizes-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 5px;
    min-height: 42px;
}

.lw-prizes-wrap>span,
.lw-prizes-wrap>div.lw-ball-spinning {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 5px;
    margin: 0;
    border: none !important;
    background: transparent !important;
    width: auto !important;
    /* Override col-xs classes */
    min-width: fit-content;
}

.prizes-cell>span:nth-child(even) {
    background: transparent !important;
}

/* Links and footer stuff */
.link-statistic {
    padding: 15px;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    background: #fafafa;
}

.link-statistic ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.link-statistic li {
    margin-bottom: 6px;
    color: #666;
}

.link-statistic a {
    color: #1976d2;
    text-decoration: none;
}

.link-statistic a:hover {
    text-decoration: underline;
}

/* Skeleton & Tabs Styling */
.live-widget .lw-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    padding: 0 10px;
    align-items: center;
    flex-wrap: wrap;
}

.live-widget .lw-tab-btn {
    border: 1px solid #ddd !important;
    padding: 0 15px !important;
    height: 34px !important;
    min-width: 100px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    background: #fff !important;
    color: #555 !important;
    transition: all 0.2s !important;
    line-height: normal !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.live-widget .lw-tab-btn.active {
    background: #b71c1c !important;
    color: #fff !important;
    border-color: #b71c1c !important;
}

.live-widget .lw-date-input {
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    padding: 0 10px !important;
    height: 34px !important;
    width: 150px !important;
    font-size: 14px !important;
    outline: none !important;
    background: #fff !important;
    color: #333 !important;
    font-family: inherit !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.lw-skeleton-line {
    height: 15px;
    width: 60%;
    margin: 5px auto;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@media (max-width: 768px) {
    .special-prize-lg {
        font-size: 1.8rem;
    }

    .number-black-bold {
        font-size: 1.2rem;
    }

    .label-cell {
        width: 60px;
        font-size: 0.8rem;
    }

    .col-xs-6,
    .col-xs-4,
    .col-xs-3 {
        width: 100%;
        display: block;
    }

    .lw-tabs {
        flex-wrap: wrap;
    }
}


/* Live Indicators */
.lw-live-dot {
    height: 8px;
    width: 8px;
    background-color: #f44336;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    animation: pulse 1s infinite;
}

.lw-live-tag {
    font-size: 0.7rem;
    padding: 2px 6px;
    vertical-align: middle;
    margin-left: 10px;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    70% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

/* Spinning Balls for Waiting Prizes */
.lw-ball-spinning {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #b71c1c;
    border-radius: 50%;
    display: inline-block;
    animation: ball-spin 1s linear infinite;
    margin: 5px;
    vertical-align: middle;
}

.lw-ball-loading {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top: 2px solid #666;
    border-radius: 50%;
    display: inline-block;
    animation: ball-spin 1.5s linear infinite;
}

@keyframes ball-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.lw-new-num {
    color: #e91e63;
    text-shadow: 0 0 5px rgba(233, 30, 99, 0.3);
}

.lw-loto-item {
    font-weight: 600;
    color: #333;
}

/* Countdown Styles */
.lw-countdown {
    background: #fffef2;
    padding: 12px 15px;
    border: 1px solid #ffe082;
    border-radius: 6px;
    margin: 10px 0;
    font-size: 0.9rem;
    color: #5d4037;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.lw-countdown i {
    font-size: 1.1rem;
    color: #ffa000;
    animation: pulse 2s infinite;
}

.lw-countdown .lw-time {
    font-family: 'Monaco', 'Consolas', monospace;
    font-weight: 800;
    color: #d32f2f;
    font-size: 1rem;
    background: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #ffd54f;
    min-width: 85px;
    text-align: center;
    display: inline-block;
}