.kqxs-wrap, .kqxs-wrap * {
	box-sizing: border-box;
}

.kqxs-wrap .kqxs-main p, .kqxs-wrap .kqxs-main h1, .kqxs-wrap .kqxs-main h2, .kqxs-wrap .kqxs-main h3, .kqxs-wrap .kqxs-main h4, .kqxs-wrap .kqxs-main h5, .kqxs-wrap .kqxs-main h6, .kqxs-wrap .kqxs-nav ul, .kqxs-wrap .kqxs-nav li, .kqxs-wrap .kqxs-nav button {
	margin: 0;
	padding: 0;
}

.kqxs-wrap img {
	max-width: 100%;
	height: auto;
	display: block;
}

.kqxs-theme-light {
	--red: #B8001F;
	--red-dk: #740016;
	--red-bg: #FFF1F2;
	--gold: #D7A72F;
	--gold-lt: #FFE08A;
	--gold-dk: #8A5A00;
	--gold-bg: #FFF8E1;
	--orange: #F97316;
	--mb: #1D4ED8;
	--mt: #C2410C;
	--mn: #047857;
	--vl: #6D28D9;
	--bg: #F6F1E7;
	--white: #FFFDF8;
	--border: #E6D8BD;
	--text: #1F1308;
	--muted: #7A6650;
	--sh: 0 14px 34px rgba(92, 38, 0, .10), 0 2px 8px rgba(0, 0, 0, .06);
}

.kqxs-theme-dark {
	--red: #FF4D4F;
	--red-dk: #B91C1C;
	--red-bg: rgba(255, 77, 79, .15);
	--gold: #FACC15;
	--gold-lt: #FDE68A;
	--gold-dk: #D97706;
	--gold-bg: rgba(250, 204, 21, .12);
	--orange: #FB923C;
	--mb: #60A5FA;
	--mt: #FB923C;
	--mn: #34D399;
	--vl: #A78BFA;
	--bg: #0F172A;
	--white: #1E293B;
	--border: #334155;
	--text: #F8FAFC;
	--muted: #94A3B8;
	--sh: 0 12px 30px rgba(0, 0, 0, .35);
}

.kqxs-wrap {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 14px;
	line-height: 1.45;
	color: var(--text);
	background: var(--bg);
	width: 100%;
	max-width: 1040px;
	margin: 0 auto;
	padding: 10px;
}

.kqxs-main {
	min-width: 0;
}

.kqxs-mobile-hero {
	display: none;
}

.kqxs-card {
	background: linear-gradient(180deg, var(--white), var(--bg));
	border: 1px solid var(--border);
	border-radius: 16px;
	box-shadow: var(--sh);
	margin: 0 0 12px;
	overflow: hidden;
}

.kqxs-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.kqxs-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid var(--border);
	border-top-color: var(--red);
	border-radius: 50%;
	flex-shrink: 0;
	animation: kqxs-spin .7s linear infinite;
}

.kqxs-theme-light .kqxs-nav-mb.kqxs-sch-h {
	background: #EEF2FB;
}

.kqxs-theme-light .kqxs-nav-mt.kqxs-sch-h {
	background: #FDF0E4;
}

.kqxs-theme-light .kqxs-nav-mn.kqxs-sch-h {
	background: #EEF8F0;
}

.kqxs-theme-dark .kqxs-sch-h {
	background: var(--bg);
}

.kqxs-card--pad {
	padding: 12px;
}

.kqxs-card--softload {
	min-height: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.kqxs-wrap--sidebar .kqxs-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 260px;
	gap: 16px;
	align-items: start;
}

.kqxs-live-bar, .kqxs-done-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .5px;
	text-transform: uppercase;
}

.kqxs-live-bar {
	background: var(--red);
}

.kqxs-done-bar {
	background: linear-gradient(90deg, var(--mn), var(--gold-dk));
	font-weight: 800;
	letter-spacing: .25px;
}

.kqxs-live-dot, .kqxs-done-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #fff;
	flex-shrink: 0;
}

.kqxs-live-dot {
	animation: kqxs-pulse 1.2s ease-in-out infinite;
}

.kqxs-done-dot {
	box-shadow: 0 0 0 3px rgba(255, 255, 255, .18);
}

.kqxs-live-time {
	margin-left: auto;
	font-size: 12px;
	font-weight: 600;
}

.kqxs-block-head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	background: linear-gradient(90deg, var(--red) 0%, var(--red-dk) 55%, var(--gold-dk) 100%);
	color: #fff;
	flex-wrap: wrap;
}

.kqxs-block-code {
	font-size: 16px;
	font-weight: 900;
	letter-spacing: .5px;
	line-height: 1;
	flex-shrink: 0;
}

.kqxs-block-date {
	font-size: 12px;
	font-weight: 600;
	opacity: .9;
	margin-left: auto;
}

.kqxs-block-head.kqxs-rh {
	flex-wrap: nowrap;
	align-items: center;
}

.kqxs-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.kqxs-table th, .kqxs-table td {
	border: 1px solid var(--border);
	text-align: center;
	vertical-align: middle;
	padding: 0;
}

.kqxs-table th {
	background: var(--bg);
	font-weight: 700;
	font-size: 12px;
	padding: 6px 4px;
	color: var(--muted);
}

.kqxs-table--multi th {
	font-size: 11px;
}

.kqxs-pl {
	width: 85px ;
	min-width: 85px;
	font-size: 12px;
	font-weight: 800;
	color: var(--muted);
	background: var(--bg);
	padding: 6px 4px ;
	white-space: nowrap;
}

.kqxs-nums {
	padding: 0 ;
	display: flex;
}

.kqxs-nums .kqxs-n {
	flex: 1;
	border-right: 1px solid var(--border);
}

.kqxs-nums .kqxs-n:last-child {
	border-right: 0;
}

.kqxs-nc {
	padding: 0 ;
	height: 38px;
}

.kqxs-nc .kqxs-n {
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
}

.kqxs-nc:has(.kqxs-n--db) {
	height: 46px;
}

.kqxs-n {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	letter-spacing: .5px;
	min-height: 38px;
	padding: 4px;
	color: var(--text);
	line-height: 1;
}

.kqxs-n--db {
	font-size: 24px;
	font-weight: 900;
	color: var(--red);
	letter-spacing: 1px;
	min-height: 46px;
}

.kqxs-row--db {
	background: var(--red-bg);
}

.kqxs-pc-3 .kqxs-nc, .kqxs-pc-4 .kqxs-nc {
	height: 34px;
}

.kqxs-pc-3 .kqxs-nc .kqxs-n, .kqxs-pc-3 .kqxs-n, .kqxs-pc-4 .kqxs-nc .kqxs-n, .kqxs-pc-4 .kqxs-n {
	font-size: 14px;
	letter-spacing: .5px;
	padding: 4px;
	min-height: 34px;
}

.kqxs-notice, .kqxs-loading {
	padding: 16px;
	color: var(--muted);
	font-size: 13px;
	text-align: center;
}

.kqxs-nav {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: 16px;
	box-shadow: var(--sh);
	overflow: hidden;
}

.kqxs-nav-brand {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	background: linear-gradient(90deg, var(--red), var(--gold-dk));
	color: #fff;
	font-size: 14px;
	font-weight: 800;
}

.kqxs-nav-mb {
	color: var(--mb);
}

.kqxs-nav-mt {
	color: var(--mt);
}

.kqxs-nav-mn {
	color: var(--mn);
}

.kqxs-nav-vl {
	color: var(--vl);
}

.kqxs-nav-clock {
	margin-left: auto;
	font-size: 11px;
	font-weight: 700;
	background: var(--border);
	padding: 2px 6px;
	border-radius: 99px;
	color: var(--text);
}

.kqxs-nav-list {
	list-style: none;
	margin: 0;
	padding: 8px;
}

.kqxs-nav-link:hover, .kqxs-nav-link.is-active {
	color: var(--red);
	background: var(--red-bg);
}

.kqxs-nav-list--grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	padding: 8px 12px;
}

.kqxs-nav-list--grid li:nth-child(2n) {
	border-right: 0;
}

.kqxs-nav-list--grid li:nth-last-child(-n+2):nth-child(odd) {
	border-bottom: 0;
}

.kqxs-nav-list--grid li:last-child {
	border-bottom: 0;
}

.kqxs-nav-badge--calendar {
	background: #555;
}

.kqxs-nav-hero {
	position: relative;
	padding: 16px 14px;
	background: radial-gradient(circle at 8% 0%, rgba(255, 214, 94, .52), transparent 34%), radial-gradient(circle at 100% 18%, rgba(255, 255, 255, .22), transparent 28%), linear-gradient(140deg, #8b0018 0%, #b8001f 48%, #e96f12 100%);
	color: #fff;
	overflow: hidden;
}

.kqxs-nav-hero:after {
	content: "";
	position: absolute;
	right: -20px;
	top: -20px;
	width: 90px;
	height: 90px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .15);
}

.kqxs-nav-title {
	font-size: 18px;
	font-weight: 950;
	line-height: 1.2;
}

.kqxs-nav-kicker {
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .8px;
	text-transform: uppercase;
	opacity: .88;
}

.kqxs-nav-livechips {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
	margin-top: 12px;
}

.kqxs-nav-chip {
	border: 1px solid rgba(255, 255, 255, .32);
	border-radius: 10px;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	padding: 8px 4px;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.kqxs-nav-chip b {
	display: block;
	font-size: 12px;
	line-height: 1;
	font-weight: 950;
}

.kqxs-nav-chip span {
	display: block;
	margin-top: 2px;
	font-size: 10px;
	font-weight: 800;
	opacity: .92;
	line-height: 1;
}

.kqxs-nav-section {
	border-top: 1px solid var(--border);
	padding: 8px;
}

.kqxs-nav-section-head {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 12px 4px;
	font-size: 10.5px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .7px;
	color: var(--muted);
}

.kqxs-nav-quickgrid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
}

.kqxs-nav-quickgrid .kqxs-nav-link, .kqxs-nav-list--grid .kqxs-nav-link {
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 8px;
	background: var(--white);
	font-size: 10px;
	font-weight: 750;
	color: var(--text);
	min-height: 36px;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(17, 24, 39, .04);
}

.kqxs-nav-quickgrid .kqxs-nav-link:hover, .kqxs-nav-quickgrid .kqxs-nav-link.is-active, .kqxs-nav-list--grid .kqxs-nav-link:hover, .kqxs-nav-list--grid .kqxs-nav-link.is-active {
	color: var(--red);
	background: var(--red-bg);
	border-color: var(--border);
}

.kqxs-n--loading {
	position: relative;
	min-width: 28px;
	color: transparent ;
	opacity: .72;
}

.kqxs-n--loading:before {
	content: "";
	width: 15px;
	height: 15px;
	border-radius: 50%;
	border: 2px solid var(--border);
	border-top-color: var(--red);
	animation: kqxs-spin .72s linear infinite;
	display: inline-block;
}

.kqxs-nav-accordion {
	padding: 0 8px 8px;
}

.kqxs-nav-accordion>summary::-webkit-details-marker {
	display: none;
}

.kqxs-nav-accordion>summary:after {
	content: "+";
	margin-left: auto;
	font-size: 14px;
	font-weight: 900;
	color: var(--muted);
}

.kqxs-nav-accordion[open]>summary:after {
	content: "-";
}

.kqxs-nav-quickgrid .kqxs-nav-link--today {
	grid-column: 1 / -1;
	text-transform: uppercase;
	letter-spacing: .35px;
}

.kqxs-nav-region-link {
	width: calc(100% - 24px);
	margin: 6px 12px 0;
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 8px;
	background: var(--bg);
	font-size: 10px;
	font-weight: 800;
	color: var(--text);
	display: none ;
}

.kqxs-nav-badge--stats {
	background: var(--gold) ;
	color: #fff ;
}

.kqxs-nav-quickgrid,.kqxs-nav-quickgrid--stats {
	grid-template-columns: repeat(2,minmax(0,1fr)) ;
}

.kqxs-nav-link--stats.kqxs-nav-link--full {
	display: flex ;
	width: 100% ;
	min-height: 40px ;
	align-items: center ;
	justify-content: center ;
	border: 1px solid var(--border) ;
	border-radius: 12px ;
	background: var(--white) ;
	font-size: 12px ;
	font-weight: 900 ;
	color: var(--text) ;
}

.kqxs-nav-link--stats.kqxs-nav-link--full:hover,.kqxs-nav-link--stats.kqxs-nav-link--full.is-active {
	background: var(--red-bg) ;
	color: var(--red) ;
}

.kqxs-nav-accordion>summary {
	cursor: pointer;
	list-style: none;
	padding: 10px 12px;
	margin: 0;
	border-radius: 10px;
	display: flex ;
	align-items: center ;
	gap: 8px ;
}

.kqxs-nav-accordion>summary .kqxs-nav-badge {
	min-width: 42px ;
	text-align: center ;
}

.kqxs-nav-accordion .kqxs-nav-list--grid {
	grid-template-columns: repeat(2,minmax(0,1fr)) ;
}

.kqxs-nav-accordion .kqxs-nav-list--grid>li.kqxs-nav-li--full {
	grid-column: 1 / -1 ;
}

.kqxs-nav-accordion .kqxs-nav-list--grid>li.kqxs-nav-li--full .kqxs-nav-link {
	min-height: 38px ;
	font-weight: 850 ;
}

.kqxs-rh-tabs, .kqxs-rf-tabs, .kqxs-wd-region-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.kqxs-rh-tabs {
	margin-left: auto;
}

.kqxs-rf-tabs, .kqxs-wd-region-tabs {
	justify-content: flex-end;
}

.kqxs-rh-tabs input[type=radio], .kqxs-rf-tabs input[type=radio], .kqxs-wd-region-tabs input[type=radio] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.kqxs-rh-tabs label, .kqxs-rf-tabs label, .kqxs-wd-region-tabs label {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
	cursor: pointer;
	transition: all .12s;
	white-space: nowrap;
}

.kqxs-rh-tabs label {
	border: 1.5px solid rgba(255, 255, 255, .4);
	color: rgba(255, 255, 255, .75);
}

.kqxs-rf-tabs label, .kqxs-wd-region-tabs label {
	border: 1.5px solid var(--border);
	color: var(--muted);
	background: var(--white);
}

.kqxs-wd-region-tabs label {
	font-size: 12px;
	font-weight: 700;
}

.kqxs-rh-tabs input[type=radio]:checked+label {
	border-color: #fff;
	background: rgba(255, 255, 255, .22);
	color: #fff;
	font-weight: 700;
}

.kqxs-rf-tabs input[type=radio]:checked+label, .kqxs-wd-region-tabs input[type=radio]:checked+label {
	border-color: var(--red);
	background: var(--red);
	color: #fff;
	font-weight: 700;
}

.kqxs-loto-cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.kqxs-loto-head {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: var(--muted);
	text-align: center;
	padding-bottom: 6px;
	border-bottom: 2px solid var(--border);
	margin-bottom: 6px;
}

.kqxs-loto-grid {
	display: block;
}

.kqxs-loto-row {
	display: grid;
	grid-template-columns: 20px 1fr;
	min-height: 24px;
	align-items: center;
	border-bottom: 1px solid var(--border);
	padding: 2px 0;
}

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

.kqxs-loto-row>b {
	font-size: 12px;
	font-weight: 800;
	color: var(--red);
}

.kqxs-loto-row span, .kqxs-loto-row>span {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .3px;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 6px;
	align-items: center;
}

.kqxs-rf {
	border-top: 1px solid var(--border);
}

.kqxs-rf-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 6px 12px;
	flex-wrap: wrap;
	border-bottom: 1px solid var(--border);
	background: var(--bg);
}

.kqxs-rf-loto {
	padding: 12px;
}

.kqxs-loto-panel {
	display: none;
}

.kqxs-loto-panel.is-active {
	display: block;
}

.kqxs-mode-bar {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.kqxs-mode-bar label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--muted);
	cursor: pointer;
	white-space: nowrap;
}

.kqxs-mode-bar label:has(input:checked) {
	color: var(--red);
	font-weight: 700;
}

.kqxs-mode-bar input[type=radio] {
	accent-color: var(--red);
}

.kqxs-wd-wrap {
	margin-bottom: 12px;
}

.kqxs-wd-label {
	font-size: 15px;
	font-weight: 800;
	color: var(--red);
	margin-bottom: 6px;
}

.kqxs-wd-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: flex-start;
}

.kqxs-wd-tabs>input[type=radio] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.kqxs-wd-tabs>label {
	display: inline-block;
	padding: 6px 12px;
	border: 1.5px solid var(--border);
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: all .12s;
	color: var(--muted);
	background: var(--white);
}

.kqxs-wd-tabs>input[type=radio]:checked+label {
	border-color: var(--red);
	background: var(--red);
	color: #fff;
}

.kqxs-wd-tabs>input[type=radio]:checked+label+.kqxs-wd-panel {
	display: block;
}

.kqxs-history {
	padding: 10px;
}

.kqxs-history-item {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px dashed var(--border);
}

.kqxs-history-item:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.kqxs-hi {
	display: none ;
}

.kqxs-more, .kqxs-more-ajax {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 14px auto 4px;
	padding: 10px 28px;
	border-radius: 30px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: all .15s ease;
}

.kqxs-more {
	border: 2px solid var(--red);
	background: var(--white);
	color: var(--red);
}

.kqxs-more:hover {
	background: var(--red);
	color: #fff;
}

.kqxs-more-ajax {
	border: 0;
	background: linear-gradient(135deg, var(--red), var(--orange));
	color: #fff;
	box-shadow: 0 4px 14px rgba(184, 0, 31, .2);
}

.kqxs-more-ajax:hover {
	opacity: .95;
	box-shadow: 0 6px 20px rgba(184, 0, 31, .3);
}

.kqxs-more-ajax:disabled {
	opacity: .65;
	cursor: wait;
}

.kqxs-vl-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 12px;
	border-bottom: 1px solid var(--border);
	background: var(--bg);
}

.kqxs-vl-tabs>input[type=radio] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.kqxs-vl-tabs>label {
	display: inline-block;
	padding: 6px 12px;
	border: 1.5px solid var(--border);
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	color: var(--muted);
	background: var(--white);
}

.kqxs-vl-panel {
	display: none;
	width: 100%;
	order: 99;
	padding: 12px;
}

.kqxs-vl-tabs>input[type=radio]:checked+label {
	border-color: var(--vl);
	background: var(--vl);
	color: #fff;
	font-weight: 700;
}

.kqxs-vl-tabs>input[type=radio]:checked+label+.kqxs-vl-panel {
	display: block ;
}

.kqxs-vl-item {
	padding: 10px 0;
	border-bottom: 1px solid var(--border);
}

.kqxs-vl-item:last-of-type {
	border-bottom: 0;
}

.kqxs-vl-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	flex-wrap: wrap;
}

.kqxs-vl-game {
	font-size: 14px;
	font-weight: 800;
	color: var(--vl);
}

.kqxs-vl-ky, .kqxs-vl-date {
	font-size: 12px;
	color: var(--muted);
}

.kqxs-vl-date {
	margin-left: auto;
}

.kqxs-balls {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 8px 0;
	justify-content: center;
}

.kqxs-ball {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: linear-gradient(145deg, var(--red), var(--red-dk));
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	box-shadow: 0 2px 5px rgba(184, 0, 31, .3);
}

.kqxs-ball--gold {
	background: linear-gradient(145deg, var(--gold-lt), var(--gold));
	color: #111827;
}

.kqxs-ball--sep {
	background: none;
	box-shadow: none;
	color: var(--muted);
	font-size: 16px;
	font-weight: 700;
	width: 14px;
}

.kqxs-jackpots {
	display: flex;
	align-items: stretch;
	justify-content: center;
	gap: 8px;
	margin: 8px 0;
	flex-wrap: wrap;
}

.kqxs-jackpot {
	flex: 1 1 180px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 12px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--bg);
	font-size: 13px;
	font-weight: 800;
	color: var(--mn);
}

.kqxs-jackpot span {
	color: var(--muted);
	font-weight: 650;
}

.kqxs-vl-table {
	width: 100%;
	margin-top: 8px;
	border-collapse: collapse;
}

.kqxs-vl-table th, .kqxs-vl-table td {
	font-size: 11px;
	padding: 6px;
	border: 1px solid var(--border);
}

.kqxs-vl-table th {
	background: var(--bg);
	color: var(--muted);
	font-weight: 700;
}

.kqxs-vl-table td {
	color: var(--text);
}

.kqxs-mode-bar--row {
	flex-direction: row;
	gap: 12px;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
}

.kqxs-wd-head {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
	padding: 8px 12px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--white);
}

.kqxs-wd-title {
	font-size: 14px;
	font-weight: 800;
	color: var(--red);
}

.kqxs-wd-panel {
	display: none;
	width: 100%;
}

.kqxs-wd-panel.is-active {
	display: block;
}

.kqxs-vl-card .kqxs-block-head {
	background: linear-gradient(90deg, var(--vl), #3B0764 55%, var(--gold-dk) 100%);
}

.kqxs-vl-panel--single {
	display: block;
	padding: 12px;
}

.kqxs-mode-bar label span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	pointer-events: none;
}

.kqxs-rf-tabs label.is-active, .kqxs-rh-tabs label.is-active {
	border-color: var(--red);
	background: var(--red);
	color: #fff;
	font-weight: 700;
}

.kqxs-rf-loto .kqxs-loto-panel {
	display: none;
}

.kqxs-rf-loto .kqxs-loto-panel.is-active {
	display: block;
}

.kqxs-vl-card--home .kqxs-vl-panel {
	display: block ;
	padding: 12px ;
}

.kqxs-vl-card--home .kqxs-vl-item {
	padding: 10px 0 ;
}

.kqxs-panel-zone .kqxs-history {
	padding: 0;
}

.kqxs-sch-header {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	border-bottom: 2px solid var(--border);
}

.kqxs-sch-h {
	padding: 6px 4px;
	text-align: center;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .3px;
	line-height: 1.4;
	border-right: 1px solid var(--border);
}

.kqxs-sch-h:last-child {
	border-right: 0;
}

.kqxs-sch-h b {
	display: block;
	font-size: 12px;
}

.kqxs-sch-row {
	display: grid;
	grid-template-columns: 52px 1fr;
	border-bottom: 1px solid var(--border);
	align-items: start;
	background: var(--white);
}

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

.kqxs-sch-day {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-right: 1px solid var(--border);
	font-size: 11px;
	font-weight: 700;
	color: var(--text);
	text-align: center;
	line-height: 1.3;
	height: 100%;
	padding: 8px 0;
}

.kqxs-sch-day:hover {
	background: var(--red-bg);
	color: var(--red);
}

.kqxs-sch-row--today .kqxs-sch-day {
	color: var(--gold-dk);
	background: var(--gold-bg);
}

.kqxs-sch-provinces {
	padding: 6px;
}

.kqxs-sch-p {
	font-size: 11px;
	line-height: 1.5;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-weight: 600;
}

.kqxs-sch-p.kqxs-nav-mb {
	color: var(--mb);
}

.kqxs-sch-p.kqxs-nav-mt {
	color: var(--mt);
}

.kqxs-sch-p.kqxs-nav-mn {
	color: var(--mn);
}

.kqxs-ft {
	display: block;
	border-top: 1px solid var(--border);
}

.kqxs-ft-tabs {
	display: flex;
	align-items: center;
	gap: 8px;
	justify-content: center;
	flex-wrap: wrap;
	padding: 6px 12px;
	border-bottom: 1px solid var(--border);
	background: var(--bg);
}

.kqxs-ft-tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 12px;
	border: 1.5px solid var(--border);
	border-radius: 20px;
	font-size: 11px;
	font-weight: 800;
	color: var(--muted);
	background: var(--white);
}

.kqxs-ft-tab.is-active {
	border-color: var(--red);
	background: var(--red);
	color: #fff;
}

.kqxs-ft-tabs .kqxs-mode-bar {
	margin-left: auto;
}

.kqxs-ft-loto {
	padding: 12px;
}

.kqxs-sch {
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--border);
}

.kqxs-panel-zone {
	position: relative;
	min-height: 120px;
	transition: opacity .16s ease, filter .16s ease, transform .16s ease;
}

.kqxs-panel-zone.is-loading {
	filter: saturate(.96);
}

.kqxs-panel-zone.is-swapping {
	opacity: .72;
	transform: translateY(2px);
}

.kqxs-panel-overlay {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: rgba(255,255,255,.82);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	color: var(--muted);
	font-size: 13px;
	font-weight: 750;
	pointer-events: none;
}

.kqxs-aside {
	width: 260px;
	position: sticky;
	top: 12px;
}

.kqxs-stats-card--main {
	overflow: hidden;
	background: var(--white);
}

.kqxs-stats-card--main .kqxs-block-head {
	min-height: 38px;
}

.kqxs-stats-body {
	padding: 0;
	background: var(--white);
}

.kqxs-stats-filter {
	display: grid;
	grid-template-columns: minmax(220px,2fr) minmax(160px,1.2fr) minmax(120px,.9fr);
	gap: 8px;
	padding: 10px;
	background: var(--bg);
	border-bottom: 1px solid var(--border);
	align-items: center;
    margin: 0;
}

.kqxs-stats-filter label {
	display: block;
	margin: 0;
	min-width: 0;
}

.kqxs-stats-filter select {
	display: block;
	width: 100%;
	height: 34px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--white);
	color: var(--text);
	font-size: 12px;
	font-weight: 800;
	line-height: 1.1;
	padding: 0 28px 0 10px;
	box-shadow: none;
	outline: 0;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.kqxs-stats-year-select.is-hidden,.kqxs-stats-month-select.is-hidden,.kqxs-stats-limit-select.is-hidden {
	display: none;
}

.kqxs-stats-title-row {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 7px;
	padding: 10px 12px;
	border-bottom: 1px solid var(--border);
	background: var(--white);
}

.kqxs-stats-title {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 15px;
	line-height: 1.28;
	font-weight: 900;
	color: var(--text);
}

.kqxs-stats-tabs {
	align-self: flex-end;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 5px;
	max-width: 100%;
	background: transparent;
    margin: 0;
}

.kqxs-stats-tab {
	height: 28px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--bg);
	color: var(--muted);
	padding: 0 10px;
	font-size: 11px;
	font-weight: 900;
    margin: 0;
	line-height: 1;
	cursor: pointer;
	white-space: nowrap;
}

.kqxs-stats-tab.is-active {
	background: var(--red-bg);
	border-color: var(--red);
	color: var(--red);
}

.kqxs-stats-range-note {
	display: none;
}

.kqxs-stats-excel {
	width: 100%;
	max-width: 100%;
	max-height: 100vh;
	overflow: auto;
	background: var(--white);
	border-top: 1px solid var(--border);
	-webkit-overflow-scrolling: touch;
}

.kqxs-stats-table {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
	background: var(--white);
	font-variant-numeric: tabular-nums;
	color: var(--text);
}

.kqxs-stats-table th,.kqxs-stats-table td {
	border: 1px solid var(--border);
	text-align: center;
	vertical-align: middle;
	padding: 5px 6px;
	height: 32px;
	font-size: 12px;
	line-height: 1.18;
	white-space: nowrap;
}

.kqxs-stats-table th {
	background: var(--bg);
	color: var(--muted);
	font-size: 11px;
	font-weight: 900;
}

.kqxs-stats-table td {
	background: var(--white);
	font-weight: 700;
	color: var(--text);
}

.kqxs-stats-sticky,.kqxs-stats-sticky-col {
	position: sticky;
	left: 0;
	z-index: 3;
	background: var(--bg);
	color: var(--muted);
	font-weight: 900;
}

.kqxs-stats-number-cell {
	font-size: 13px;
	font-weight: 900;
	color: var(--red);
	background: var(--red-bg);
}

.kqxs-stats-total-cell {
	font-size: 13px;
	font-weight: 900;
	color: var(--red);
	background: var(--gold-bg);
}

.kqxs-stats-empty {
	display: inline-block;
	color: var(--muted);
	opacity: .55;
	font-size: 11px;
	font-weight: 800;
}

.kqxs-stats-num {
	display: block;
	min-height: 19px;
	font-size: 13px;
	font-weight: 900;
	letter-spacing: 0;
	color: var(--red);
	padding: 1px 2px;
	line-height: 1.12;
	white-space: nowrap;
}

.kqxs-stats-date,.kqxs-stats-draw-year {
	display: block;
	margin-top: 2px;
	font-size: 9px;
	line-height: 1;
	color: var(--muted);
	opacity: .72;
	font-weight: 800;
	white-space: nowrap;
}

.kqxs-stats-table--year,.kqxs-stats-table--month,.kqxs-stats-table--week,.kqxs-stats-table--province-year {
	table-layout: auto;
	width: max-content;
	min-width: 100%;
}

.kqxs-stats-table--year th,.kqxs-stats-table--year td,.kqxs-stats-table--month th,.kqxs-stats-table--month td,.kqxs-stats-table--week th,.kqxs-stats-table--week td,.kqxs-stats-table--province-year th,.kqxs-stats-table--province-year td {
	min-width: 0;
	width: auto;
	padding: 3px 2px;
	white-space: normal;
}

.kqxs-stats-table--year .kqxs-stats-sticky,.kqxs-stats-table--month .kqxs-stats-sticky,.kqxs-stats-table--week .kqxs-stats-sticky {
	width: 44px;
	min-width: 44px;
	max-width: 44px;
}

.kqxs-stats-table--province-year thead {
	display: none;
}

.kqxs-stats-table--province-year td {
	height: 38px;
}

.kqxs-result-book-excel,.kqxs-stats-excel--draw-count,.kqxs-stats-excel--missing,.kqxs-stats-excel--frequency,.kqxs-stats-excel--head-tail,.kqxs-stats-excel--special-detail,.kqxs-stats-excel--rhythm,.kqxs-stats-excel--falling,.kqxs-stats-excel--pairs {
	overflow: auto;
	max-height: 100vh;
}

.kqxs-result-book-table,.kqxs-stats-table--draw-count,.kqxs-stats-table--missing,.kqxs-stats-table--frequency,.kqxs-stats-table--head-tail,.kqxs-stats-table--special-detail,.kqxs-stats-table--rhythm,.kqxs-stats-table--falling,.kqxs-stats-table--pairs,.kqxs-stats-table--quick {
	width: max-content;
	min-width: 100%;
	table-layout: auto;
}

.kqxs-result-book-table th,.kqxs-result-book-table td,.kqxs-stats-table--draw-count th,.kqxs-stats-table--draw-count td {
	min-width: 46px;
	width: 46px;
	height: 30px;
	padding: 3px 4px;
	font-size: 11px;
	overflow: visible;
}

.kqxs-result-book-table .kqxs-stats-sticky,.kqxs-result-book-table .kqxs-stats-sticky-col,.kqxs-stats-table--draw-count .kqxs-stats-sticky-col {
	min-width: 60px;
	width: 60px;
}

.kqxs-result-book-table th.kqxs-stats-sticky,.kqxs-stats-table--draw-count th.kqxs-stats-sticky-col {
	z-index: 4;
}

.kqxs-stats-table--draw-count td.is-hit {
	font-weight: 900;
	color: var(--red);
	background: var(--gold-bg);
}

.kqxs-stats-draw-date,.kqxs-stats-draw-year,.kqxs-result-book-date,.kqxs-result-book-wday {
	display: block;
	line-height: 1.05;
	white-space: nowrap;
}

.kqxs-stats-draw-year,.kqxs-result-book-wday {
	margin-top: 1px;
	font-size: 9px;
	color: var(--muted);
	opacity: .62;
	font-weight: 800;
}

.kqxs-result-book-stack {
	display: flex;
	flex-direction: column;
	gap: 2px;
	align-items: center;
	justify-content: center;
	min-width: 42px;
}

.kqxs-result-book-num {
	display: block;
	font-size: 12px;
	font-weight: 900;
	color: var(--red);
	line-height: 1.05;
	white-space: nowrap;
}

.kqxs-result-book-prize,.kqxs-result-book-prize-head {
	font-size: 11px;
	color: var(--muted);
	font-weight: 900;
	white-space: nowrap;
}

.kqxs-stats-table--missing th,.kqxs-stats-table--missing td,.kqxs-stats-table--frequency th,.kqxs-stats-table--frequency td,.kqxs-stats-table--head-tail th,.kqxs-stats-table--head-tail td,.kqxs-stats-table--special-detail th,.kqxs-stats-table--special-detail td,.kqxs-stats-table--falling th,.kqxs-stats-table--falling td,.kqxs-stats-table--pairs th,.kqxs-stats-table--pairs td,.kqxs-stats-table--quick th,.kqxs-stats-table--quick td {
	min-width: 82px;
	white-space: nowrap;
}

.kqxs-stats-table--missing .kqxs-stats-sticky-col,.kqxs-stats-table--frequency .kqxs-stats-sticky-col,.kqxs-stats-table--head-tail .kqxs-stats-sticky-col,.kqxs-stats-table--special-detail .kqxs-stats-sticky-col,.kqxs-stats-table--falling .kqxs-stats-sticky-col,.kqxs-stats-table--pairs .kqxs-stats-sticky-col {
	min-width: 68px;
	width: 68px;
}

.kqxs-stats-quick-card {
	padding: 0;
	background: var(--white);
}

.kqxs-stats-quick-card h3 {
	display: none;
}

.kqxs-stats-quick-card .kqxs-stats-excel {
	max-height: none;
}

.kqxs-stats-table--quick th:first-child,.kqxs-stats-table--quick td:first-child {
	min-width: 62px;
	width: 62px;
}

.kqxs-stats-table--rhythm th:nth-child(1),.kqxs-stats-table--rhythm td:nth-child(1) {
	min-width: 58px;
	width: 58px;
}

.kqxs-stats-table--rhythm th:nth-child(2),.kqxs-stats-table--rhythm td:nth-child(2) {
	min-width: 70px;
	width: 70px;
}

.kqxs-stats-table--rhythm th:nth-child(3),.kqxs-stats-table--rhythm td:nth-child(3) {
	min-width: 54px;
	width: 54px;
}

.kqxs-stats-table--rhythm th:nth-child(4),.kqxs-stats-table--rhythm td:nth-child(4) {
	min-width: 360px;
	max-width: 520px;
	white-space: normal;
	text-align: left;
	line-height: 1.35;
	overflow: visible;
}

.kqxs-stats-mode {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	margin: 0;
	padding: 8px 12px;
	border-top: 1px solid var(--border);
	background: var(--bg);
	font-size: 12px;
	font-weight: 800;
	color: var(--muted);
	overflow-x: auto;
}

.kqxs-stats-mode label {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	cursor: pointer;
	white-space: nowrap;
}

.kqxs-stats-placeholder {
	margin: 0;
	padding: 14px;
	border: 0;
	border-top: 1px solid var(--border);
	background: var(--white);
	color: var(--muted);
}

.kqxs-stats-placeholder strong {
	display: block;
	color: var(--text);
	font-size: 14px;
	margin: 0 0 4px;
}

.kqxs-stats-placeholder p {
	margin: 0;
	color: var(--muted);
	font-size: 12px;
}

.kqxs-lv {
	display: inline-block;
	white-space: nowrap;
}

.kqxs-lv sup {
	font-size: 9px;
	color: var(--gold-dk);
	font-weight: 700;
}

.kqxs-today-dot {
	display: inline-block;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--gold);
	margin-top: 2px;
}

@keyframes kqxs-pulse {
	0%, 100% {
		opacity: 1;
	}

	50% {
		opacity: .3;
	}
}

@keyframes kqxs-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.kqxs-panel-zone, .kqxs-nav-link, .kqxs-sch-day, .kqxs-nav-chip {
		transition: none;
	}

	.kqxs-panel-zone.is-swapping {
		transform: none;
	}
}

@media (max-width:768px) {
	.kqxs-wrap {
		padding: 6px;
	}

	.kqxs-wrap--sidebar .kqxs-layout {
		display: block;
	}

	.kqxs-aside {
		width: 100%;
		margin-top: 12px;
		position: static;
	}

	.kqxs-n {
		font-size: 14px;
		min-height: 34px;
	}

	.kqxs-n--db {
		font-size: 19px;
		min-height: 42px;
	}

	.kqxs-aside .kqxs-nav>.kqxs-nav-hero {
		display: none;
	}

	.kqxs-mobile-hero {
		display: block;
		margin-bottom: 12px;
	}

	.kqxs-wd-head, .kqxs-ft {
		align-items: flex-start;
		flex-direction: column;
	}

	.kqxs-wd-region-tabs, .kqxs-ft-tabs {
		justify-content: flex-start;
		width: 100%;
	}

	.kqxs-ft-tabs .kqxs-mode-bar {
		margin-top: 6px;
		margin-left: 0;
	}

	.kqxs-nav-quickgrid, .kqxs-jackpots {
		grid-template-columns: 1fr 1fr;
	}

	.kqxs-jackpots {
		flex-direction: column;
		gap: 6px;
	}

	.kqxs-jackpot {
		flex: auto;
		white-space: normal;
	}

	.kqxs-nums .kqxs-n {
		min-width: 32px;
	}

	.kqxs-ball {
		height: 30px;
		font-size: 12px;
	}

	.kqxs-ft-mode {
		border-left: 0;
		border-top: 1px solid var(--border);
		width: 100%;
		justify-content: center;
		padding: 8px;
	}

	.kqxs-mode-bar {
		flex-direction: row;
		gap: 14px;
	}

	.kqxs-stats-filter {
		grid-template-columns: repeat(3, 1fr);
		gap: 7px;
		padding: 8px;
	}

	.kqxs-stats-filter select {
		height: 32px;
		font-size: 11px;
		padding-left: 8px;
	}

	.kqxs-stats-title {
		font-size: 13px;
	}

	.kqxs-stats-tab {
		height: 26px;
		padding: 0 8px;
		font-size: 10px;
	}

	.kqxs-stats-table th,.kqxs-stats-table td {
		height: 30px;
		padding: 4px 6px;
		font-size: 11px;
	}

	.kqxs-stats-num {
		font-size: 11px;
		min-height: 17px;
	}

	.kqxs-stats-table--year th,.kqxs-stats-table--year td,.kqxs-stats-table--month th,.kqxs-stats-table--month td,.kqxs-stats-table--week th,.kqxs-stats-table--week td {
		font-size: 10px;
	}

	.kqxs-stats-table--rhythm th:nth-child(4),.kqxs-stats-table--rhythm td:nth-child(4) {
		min-width: 320px;
	}

	.kqxs-stats-mode {
		justify-content: flex-start;
		padding: 8px 10px;
	}

	.kqxs-stats-title-row {
		padding: 9px 10px;
	}

	.kqxs-stats-tabs {
		align-self: stretch;
		width: 100%;
		justify-content: flex-start;
		overflow-x: auto;
		flex-wrap: nowrap;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.kqxs-stats-tabs::-webkit-scrollbar {
		display: none;
	}

	.kqxs-stats-table--year .kqxs-stats-sticky,.kqxs-stats-table--month .kqxs-stats-sticky,.kqxs-stats-table--week .kqxs-stats-sticky {
		width: 34px;
		min-width: 34px;
		max-width: 34px;
	}

	.kqxs-result-book-table .kqxs-stats-sticky,.kqxs-result-book-table .kqxs-stats-sticky-col,.kqxs-stats-table--draw-count .kqxs-stats-sticky-col {
		min-width: 54px;
		width: 54px;
	}

	.kqxs-stats-date {
		font-size: 8px;
	}

	.kqxs-stats-table--quick th,.kqxs-stats-table--quick td {
		min-width: 76px;
	}

	.kqxs-stats-table--quick th:first-child,.kqxs-stats-table--quick td:first-child {
		min-width: 56px;
		width: 56px;
	}
	.kqxs-rf-bar {
    justify-content: center;
}
}