/* ==========================================================================
   Quay Thu MB v1.1 - main.css (phong cach quaythumb.vn)
   ========================================================================== */

:root {
	--qtmb-red: #d00000;
	--qtmb-red-dark: #b00000;
	--qtmb-red-darker: #8f0000;
	--qtmb-red-light: #fdecea;
	--qtmb-blue-row: #eef4ff;
	--qtmb-yellow: #ffeeba;
	--qtmb-yellow-light: #fff6d6;
	--qtmb-ink: #212529;
	--qtmb-muted: #6b7280;
	--qtmb-line: #dee2e6;
	--qtmb-bg: #ebedf0;
	--qtmb-white: #ffffff;
	--qtmb-radius: 6px;
	--qtmb-shadow: 0 1px 6px rgba(20, 26, 38, .1);
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: "Roboto", "Segoe UI", Arial, sans-serif;
	color: var(--qtmb-ink);
	background: var(--qtmb-bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--qtmb-red); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.3; }

.qtmb-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px;
}

/* Header ------------------------------------------------------------------ */
.qtmb-header { background: var(--qtmb-white); }
.qtmb-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 72px;
	gap: 16px;
}
.qtmb-logo-text { display: inline-flex; }
.qtmb-logo-main {
	font-family: "Roboto Condensed", sans-serif;
	font-weight: 700;
	font-size: 30px;
	color: var(--qtmb-red);
	text-transform: uppercase;
	letter-spacing: .5px;
}
.qtmb-custom-logo-link img { max-height: 56px; width: auto; }
.qtmb-header-clock {
	font-size: 15px;
	color: var(--qtmb-ink);
	white-space: nowrap;
}

/* Nav --------------------------------------------------------------------- */
.qtmb-nav { background: var(--qtmb-red); }
.qtmb-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	position: relative;
}
.qtmb-menu li { position: relative; }
.qtmb-menu a {
	display: block;
	color: #fff;
	padding: 14px 16px;
	font-size: 14.5px;
	font-weight: 700;
	text-transform: uppercase;
	white-space: nowrap;
}
.qtmb-menu a:hover { background: var(--qtmb-red-dark); text-decoration: none; }
.qtmb-menu .menu-item-has-children > a::after {
	content: "▾";
	margin-left: 6px;
	font-size: 11px;
	opacity: .9;
}
.qtmb-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 6px 0;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 250px;
	background: var(--qtmb-white);
	box-shadow: var(--qtmb-shadow);
	border-radius: 0 0 var(--qtmb-radius) var(--qtmb-radius);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: .15s ease;
	z-index: 40;
}
.qtmb-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.qtmb-menu .sub-menu a {
	color: var(--qtmb-ink);
	text-transform: none;
	font-weight: 400;
	padding: 9px 16px;
}
.qtmb-menu .sub-menu a:hover { background: var(--qtmb-red-light); color: var(--qtmb-red-dark); }

.qtmb-menu-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 8px;
}
.qtmb-menu-toggle span {
	width: 26px;
	height: 3px;
	background: var(--qtmb-red);
	border-radius: 2px;
}

/* Layout ------------------------------------------------------------------ */
.qtmb-main { padding: 20px 0 40px; }
.qtmb-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: 20px;
	align-items: start;
}
.qtmb-content { min-width: 0; }

/* Sidebar ----------------------------------------------------------------- */
.qtmb-sidebar { display: flex; flex-direction: column; gap: 20px; }
.qtmb-widget {
	background: var(--qtmb-white);
	border-radius: var(--qtmb-radius);
	box-shadow: var(--qtmb-shadow);
	overflow: hidden;
}
.qtmb-widget-title {
	background: var(--qtmb-red);
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	text-align: center;
	padding: 11px 12px;
	border-radius: var(--qtmb-radius) var(--qtmb-radius) 0 0;
}
.qtmb-widget-list {
	list-style: disc;
	margin: 0;
	padding: 14px 16px 14px 34px;
}
.qtmb-widget-list li { margin: 8px 0; }
.qtmb-widget-list a { color: var(--qtmb-ink); font-size: 15px; }
.qtmb-widget-list a:hover { color: var(--qtmb-red); }
.qtmb-widget-schedule { list-style: none; padding: 10px 16px; }
.qtmb-widget-schedule li {
	display: flex;
	justify-content: space-between;
	padding: 7px 4px;
	border-bottom: 1px dashed var(--qtmb-line);
	font-size: 14.5px;
}
.qtmb-widget-schedule li:last-child { border-bottom: 0; }
.qtmb-widget-schedule li.is-today { background: var(--qtmb-red-light); border-radius: 4px; }
.qtmb-widget-schedule li.is-today strong { color: var(--qtmb-red); }

/* Tool -------------------------------------------------------------------- */
.qtmb-tool {
	background: var(--qtmb-white);
	border-radius: var(--qtmb-radius);
	box-shadow: var(--qtmb-shadow);
	padding: 0 20px 20px;
	margin-bottom: 20px;
}
.qtmb-tool-banner {
	background: var(--qtmb-red);
	color: #fff;
	font-weight: 700;
	font-size: 17px;
	text-transform: uppercase;
	text-align: center;
	padding: 12px 14px;
	margin: 0 -20px 22px;
	border-radius: var(--qtmb-radius) var(--qtmb-radius) 0 0;
}

.qtmb-spin-wrap { text-align: center; margin: 6px 0 20px; }
.qtmb-btn-spin {
	background: var(--qtmb-red);
	color: #fff;
	border: 0;
	border-radius: 4px;
	padding: 13px 30px;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	cursor: pointer;
	letter-spacing: .3px;
	transition: filter .15s ease, transform .05s ease;
}
.qtmb-btn-spin:hover:not(:disabled) { filter: brightness(1.08); }
.qtmb-btn-spin:active { transform: translateY(1px); }
.qtmb-btn-spin:disabled { opacity: .65; cursor: wait; }

/* Day selector ------------------------------------------------------------ */
.qtmb-days {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: 12px;
}
.qtmb-day {
	background: var(--qtmb-white);
	border: 1px solid #c9ced6;
	border-radius: 4px;
	padding: 9px 16px;
	font-size: 14.5px;
	font-weight: 500;
	color: var(--qtmb-ink);
	cursor: pointer;
}
.qtmb-day:hover { border-color: var(--qtmb-red); color: var(--qtmb-red); }
.qtmb-day.is-active { background: var(--qtmb-red); border-color: var(--qtmb-red); color: #fff; font-weight: 700; }

.qtmb-dai-line { text-align: center; font-size: 14.5px; color: var(--qtmb-muted); margin-bottom: 14px; }
.qtmb-dai-line strong { color: var(--qtmb-red); }

/* Board ------------------------------------------------------------------- */
.qtmb-board-wrap { overflow-x: auto; }
.qtmb-board {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid var(--qtmb-line);
	table-layout: fixed;
}
.qtmb-board tr { border-bottom: 1px solid var(--qtmb-line); }
.qtmb-board tr:nth-child(even) { background: var(--qtmb-blue-row); }
.qtmb-board .qtmb-prize-label {
	width: 60px;
	font-weight: 700;
	text-align: center;
	font-size: 15px;
	color: var(--qtmb-ink);
	border-right: 1px solid var(--qtmb-line);
	padding: 10px 4px;
	background: #fafbfc;
}
.qtmb-board tr.qtmb-row-db .qtmb-prize-label { color: var(--qtmb-red); }
.qtmb-board .qtmb-prize-nums { padding: 9px 10px; }
.qtmb-nums-inner {
	display: grid;
	gap: 8px 10px;
	justify-items: center;
	align-items: center;
}
.qtmb-nums-c1 { grid-template-columns: 1fr; }
.qtmb-nums-c2 { grid-template-columns: repeat(2, 1fr); }
.qtmb-nums-c3 { grid-template-columns: repeat(3, 1fr); }
.qtmb-nums-c4 { grid-template-columns: repeat(4, 1fr); }
.qtmb-num {
	font-family: "Roboto Condensed", "Courier New", monospace;
	font-weight: 700;
	font-size: 21px;
	letter-spacing: 1.5px;
	color: var(--qtmb-ink);
	text-align: center;
	min-height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.qtmb-row-db .qtmb-num { font-size: 32px; color: var(--qtmb-red); }
.qtmb-row-g1 .qtmb-num { font-size: 25px; }
.qtmb-num.is-dim { opacity: .25; }
.qtmb-num .qtmb-hl { color: var(--qtmb-red); }
.qtmb-num.is-rolling { color: #9aa1ab; }

/* Spinner cho o chua quay */
.qtmb-spinner {
	width: 20px;
	height: 20px;
	border: 3px solid #d9f2df;
	border-top-color: #28a745;
	border-radius: 50%;
	display: inline-block;
	animation: qtmb-spin 0.8s linear infinite;
}
@keyframes qtmb-spin { to { transform: rotate(360deg); } }

/* Modes bar --------------------------------------------------------------- */
.qtmb-modes-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 26px;
	background: #f1f3f5;
	border: 1px solid var(--qtmb-line);
	border-top: 0;
	padding: 11px 16px;
}
.qtmb-mode-radio {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-weight: 700;
	font-size: 14.5px;
	cursor: pointer;
}
.qtmb-mode-radio input { accent-color: var(--qtmb-red); width: 16px; height: 16px; cursor: pointer; }

/* Pad strip --------------------------------------------------------------- */
.qtmb-pad-strip {
	display: grid;
	grid-template-columns: repeat(10, 1fr);
	border: 1px solid var(--qtmb-line);
	border-top: 0;
}
.qtmb-key {
	background: var(--qtmb-white);
	border: 0;
	border-right: 1px solid var(--qtmb-line);
	padding: 11px 0;
	font-size: 16px;
	font-weight: 700;
	color: var(--qtmb-ink);
	cursor: pointer;
}
.qtmb-key:last-child { border-right: 0; }
.qtmb-key:hover { color: var(--qtmb-red); background: #fff5f5; }
.qtmb-key.is-active { background: var(--qtmb-red); color: #fff; }

/* Loto -------------------------------------------------------------------- */
.qtmb-loto-banner {
	background: var(--qtmb-yellow);
	font-weight: 700;
	font-size: 16px;
	text-align: center;
	padding: 10px;
	border: 1px solid var(--qtmb-line);
	border-top: 0;
	margin-bottom: 16px;
}
.qtmb-loto-table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid var(--qtmb-line);
	font-size: 15px;
}
.qtmb-loto-table th, .qtmb-loto-table td {
	border: 1px solid var(--qtmb-line);
	padding: 8px 10px;
	text-align: center;
	vertical-align: middle;
}
.qtmb-loto-table thead th { background: var(--qtmb-yellow); font-size: 15px; }
.qtmb-loto-table .qtmb-loto-digit {
	width: 60px;
	font-weight: 700;
	background: #fafbfc;
}
.qtmb-loto-table .qtmb-loto-vals {
	font-family: "Roboto Condensed", monospace;
	font-weight: 600;
	letter-spacing: .5px;
	text-align: center;
}
.qtmb-loto-table tr.is-match-dau .qtmb-loto-digit-dau,
.qtmb-loto-table tr.is-match-duoi .qtmb-loto-digit-duoi { background: var(--qtmb-red); color: #fff; }

/* Disclaimer -------------------------------------------------------------- */
.qtmb-disclaimer {
	margin-top: 18px;
	background: var(--qtmb-red-light);
	border: 1px solid #f5c6cb;
	border-radius: 4px;
	color: var(--qtmb-red);
	font-weight: 700;
	text-align: center;
	padding: 13px 16px;
	font-size: 15px;
}

/* Info / content ---------------------------------------------------------- */
.qtmb-info {
	background: var(--qtmb-white);
	border-radius: var(--qtmb-radius);
	box-shadow: var(--qtmb-shadow);
	padding: 22px 24px;
	margin-bottom: 20px;
	font-size: 15.5px;
}
.qtmb-info h2 {
	font-size: 20px;
	color: var(--qtmb-ink);
	margin: 22px 0 10px;
}
.qtmb-info p { margin: 0 0 12px; }
.qtmb-info ul { margin: 0 0 12px; padding-left: 24px; }
.qtmb-info li { margin: 5px 0; }
.qtmb-schedule-list { list-style: none; padding-left: 4px; }
.qtmb-schedule-list li { padding: 3px 0; }

/* Page / post ------------------------------------------------------------- */
.qtmb-page, .qtmb-post {
	background: var(--qtmb-white);
	border-radius: var(--qtmb-radius);
	box-shadow: var(--qtmb-shadow);
	padding: 20px 22px;
	margin-bottom: 20px;
}
.qtmb-page-title, .qtmb-post-title { margin: 0 0 14px; color: var(--qtmb-ink); font-size: 26px; }
.qtmb-page .qtmb-tool { box-shadow: none; border: 1px solid var(--qtmb-line); padding-top: 0; }

/* Footer ------------------------------------------------------------------ */
.qtmb-footer {
	background: #1f242c;
	color: #c7ccd4;
	padding: 26px 0;
	margin-top: 24px;
}
.qtmb-footer-menu {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	justify-content: center;
}
.qtmb-footer-menu a { color: #e5e8ec; font-size: 14px; }
.qtmb-footer-menu .sub-menu { display: none; }
.qtmb-footer-note { font-size: 13px; text-align: center; max-width: 760px; margin: 0 auto 10px; opacity: .8; }
.qtmb-copyright { text-align: center; font-size: 13px; margin: 0; color: #9aa1ab; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 992px) {
	.qtmb-layout { grid-template-columns: 1fr; }
}
@media (max-width: 782px) {
	.qtmb-menu-toggle { display: flex; }
	.qtmb-nav { display: none; }
	.qtmb-nav.is-open { display: block; }
	.qtmb-menu { flex-direction: column; }
	.qtmb-menu a { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.15); }
	.qtmb-menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		background: var(--qtmb-red-dark);
		border-radius: 0;
		padding: 0;
	}
	.qtmb-menu .sub-menu a { color: #fff; padding-left: 32px; }
	.qtmb-menu .sub-menu a:hover { background: rgba(0,0,0,.2); color: #fff; }
	.qtmb-menu .menu-item-has-children > a::after { float: right; }
	.qtmb-header-clock { display: none; }
}
@media (max-width: 640px) {
	.qtmb-num { font-size: 17px; letter-spacing: 1px; }
	.qtmb-row-db .qtmb-num { font-size: 25px; }
	.qtmb-row-g1 .qtmb-num { font-size: 20px; }
	.qtmb-day { padding: 8px 10px; font-size: 13.5px; }
	.qtmb-tool { padding: 0 12px 14px; }
	.qtmb-tool-banner { margin: 0 -12px 16px; }
	.qtmb-loto-table .qtmb-loto-vals { font-size: 13px; letter-spacing: 0; }
}
