/* CSS styling cho các bảng thống kê kết quả xổ số động (thay thế ảnh tĩnh) chuẩn pixel-perfect */
.tk-dynamic-box {
    max-width: 440px;
    margin: 14px auto;
    border: 1px solid #d6d6d6;
    border-radius: 2px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    font-family: Arial, Helvetica, sans-serif;
}

.tk-header-orange {
    background: #ff5e00;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    padding: 8px 10px;
    margin: 0;
    line-height: 1.35;
}

.tk-header-orange u {
    text-decoration: underline;
}

.tk-stations-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 6px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.tk-station-btn {
    background: #fff8dc;
    border: 1px solid #000;
    border-radius: 3px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: bold;
    color: #000;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.15s ease;
    outline: none;
    user-select: none;
    line-height: 1.35;
}

.tk-station-btn:hover {
    background: #ffeb99;
    color: #000;
}

.tk-station-btn.active {
    background: #ff5e00;
    border: 1px solid #ff5e00;
    font-weight: bold;
    color: #fff;
}

.tk-section-title {
    background: #ebebeb;
    color: #000;
    font-weight: bold;
    font-size: 14px;
    padding: 7px 10px;
    border-top: 1px solid #d6d6d6;
    border-bottom: 1px solid #d6d6d6;
    margin: 0;
    text-align: left;
}

.tk-section-title::before {
    content: '▶ ';
    color: #ee1c25;
    margin-right: 4px;
    font-size: 12px;
}

.tk-grid-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    text-align: center;
}

.tk-grid-table td {
    width: 20%;
    padding: 7px 2px;
    border: 1px solid #d6d6d6;
    vertical-align: middle;
}

.tk-grid-table tr:last-child td {
    border-bottom: none;
}

.tk-grid-table td:first-child {
    border-left: none;
}

.tk-grid-table td:last-child {
    border-right: none;
}

.tk-num-red {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #ee1c25;
    line-height: 1.2;
}

.tk-sub-text {
    display: block;
    font-size: 12px;
    color: #111;
    margin-top: 2px;
}

/* Bảng thống kê lô gan & giải đặc biệt */
.tk-gan-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.tk-gan-table th {
    background: #fff2be;
    color: #000;
    font-weight: bold;
    font-size: 14px;
    padding: 7px 4px;
    border: 1px solid #d6d6d6;
    text-align: center;
}

.tk-gan-table td {
    padding: 6px 4px;
    border: 1px solid #d6d6d6;
    font-size: 14px;
    color: #111;
    vertical-align: middle;
    text-align: center;
}

.tk-gan-table tr:nth-child(even) {
    background: #fafafa;
}

.tk-gan-table tr:hover {
    background: #fffbe6;
}

.tk-ball-red {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #ee1c25;
    color: #fff !important;
    border-radius: 50%;
    font-weight: bold;
    font-size: 13px;
    text-decoration: none;
    line-height: 1;
    margin: 0 auto;
}

.tk-text-red {
    color: #ee1c25;
    font-weight: bold;
    font-size: 15px;
}

.tk-caption {
    text-align: center;
    font-style: italic;
    font-size: 13px;
    color: #333;
    margin-top: 6px;
    margin-bottom: 14px;
}

/* Header màu vàng kem nhạt cho bảng 10 con lô xuất hiện nhiều nhất */
.tk-header-yellow {
    background: #fde8b1;
    color: #222;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    padding: 8px 10px;
    margin: 0;
    line-height: 1.35;
    border-bottom: 1px solid #e0e0e0;
}

/* Bảng thống kê tần suất GĐB hôm sau (5 cột dạng Số - n lần) */
.tk-freq-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    text-align: center;
}

.tk-freq-table th {
    background: #fff2be;
    color: #000;
    font-weight: bold;
    font-size: 13px;
    padding: 7px 2px;
    border: 1px solid #d6d6d6;
    text-align: center;
    width: 20%;
}

.tk-freq-table td {
    padding: 6px 2px;
    border: 1px solid #d6d6d6;
    font-size: 13px;
    color: #111;
    vertical-align: middle;
    text-align: center;
    white-space: nowrap;
}

.tk-freq-table tr:nth-child(even) {
    background: #fafafa;
}

.tk-freq-table tr:hover {
    background: #fffbe6;
}

/* Bảng thanh progress bar cho 10 con lô xuất hiện nhiều nhất */
.tk-bar-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.tk-bar-table th {
    background: #fff;
    color: #000;
    font-weight: bold;
    font-size: 13px;
    padding: 7px 8px;
    border: 1px solid #e5e5e5;
    text-align: center;
}

.tk-bar-table td {
    padding: 6px 8px;
    border: 1px solid #e5e5e5;
    font-size: 13px;
    color: #222;
    vertical-align: middle;
}

.tk-bar-table tr:hover {
    background: #fafafa;
}

.tk-bar-track {
    width: 100%;
    height: 5px;
    background: #f0f2f5;
    border-radius: 3px;
    overflow: hidden;
    display: block;
}

.tk-bar-fill {
    height: 100%;
    background: #15803d;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Khối xem trực tiếp video / tường thuật cuối bài */
.inner-vid {
    position: relative;
    width: 100%;
    height: 126px;
    border-radius: 6px;
    background: #1e293b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' width='54' height='54'%3E%3Ccircle cx='32' cy='32' r='30' fill='rgba(255,255,255,0.2)' stroke='%23ffffff' stroke-width='2'/%3E%3Cpolygon points='26,20 46,32 26,44' fill='%23ffffff'/%3E%3C/svg%3E") no-repeat center center;
    background-size: 54px 54px;
    margin: 16px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.inner-vid:hover {
    background-color: #0f172a;
    transform: scale(1.005);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
