/*
Theme Name: Soicau247VIP
Theme URI: https://soicau247vip.me/
Author: Soicau247vip
Author URI: https://soicau247vip.me/
Description: Giao diện xổ số / soi cầu 247 / dự đoán XSMB - XSMN - XSMT chuẩn SEO, khổ 1 cột 700px như điện thoại trên mọi thiết bị. Xây dựa trên theme taigame247, dùng cùng plugin KQXS + KQXS Stats Extension và Yoast SEO. Toàn bộ URL kết thúc bằng .html (trang, chuyên mục, thẻ).
Version: 1.2.1
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: soicau247vip
Tags: custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, blog, news
*/

/* ==========================================================================
   Biến & nền tảng
   ========================================================================== */
:root {
	--sx-red: #c8001e;
	--sx-red-d: #9a0017;
	--sx-red-dd: #6f000f;
	--sx-gold: #f5b301;
	--sx-gold-l: #ffe27a;
	--sx-ink: #1d2330;
	--sx-muted: #6b7280;
	--sx-bg: #f3f4f7;
	--sx-line: #e5e7eb;
	--sx-blue: #1a56a0;
	--sx-radius: 8px;
	--sx-col: 700px; /* khổ cột nội dung: giống điện thoại, cố định trên cả máy tính */
	--sx-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
}

html { scroll-behavior: smooth; background: #d3d7de; }

body.sx-body {
	margin: 0 auto;
	max-width: var(--sx-col);
	min-height: 100vh;
	background: var(--sx-bg);
	box-shadow: 0 0 0 1px rgba(16, 24, 40, .08), 0 0 30px rgba(16, 24, 40, .18);
	color: var(--sx-ink);
	font: 18px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	-webkit-text-size-adjust: 100%;
	overflow-wrap: break-word;
}

.sx-body img { max-width: 100%; height: auto; }
.sx-body *, .sx-body *::before, .sx-body *::after { box-sizing: border-box; }

.sx-wrap { max-width: none; margin: 0 auto; padding: 0 12px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.sx-skip {
	position: absolute; left: -9999px; top: 0; background: #fff; color: var(--sx-red); padding: 8px 14px; z-index: 1000;
}
.sx-skip:focus { left: 8px; top: 8px; }

.sx-muted { color: var(--sx-muted); }
.sx-small { font-size: 14px; }

/* ==========================================================================
   Header
   ========================================================================== */
.sx-topbar { background: #1b1f27; color: #cbd2dd; font-size: 14px; }
.sx-topbar__in { display: flex; gap: 4px 14px; align-items: center; justify-content: space-between; min-height: 32px; flex-wrap: wrap; }
.sx-topbar__links { display: none; }
.sx-topbar a { color: #e5e9f0; text-decoration: none; margin-left: 12px; }
.sx-topbar a:hover { color: var(--sx-gold-l); }
.sx-topbar__live { color: var(--sx-gold-l); }
.sx-topbar__live.is-live { color: #7dffa0; font-weight: 700; }
.sx-topbar__live.is-live::before {
	content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%;
	background: #35e06b; animation: sx-pulse 1.2s infinite;
}
@keyframes sx-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.sx-brandbar {
	background:
		radial-gradient(circle at 12% 120%, rgba(255, 226, 122, .25) 0, transparent 38%),
		radial-gradient(circle at 92% -30%, rgba(255, 255, 255, .16) 0, transparent 40%),
		linear-gradient(180deg, #d4001f, #a80019);
	color: #fff;
	border-bottom: 3px solid var(--sx-gold);
}
.sx-brandbar__in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
.sx-logo { display: flex; flex: 1; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-width: 0; }
.sx-logo:hover { color: #fff; }
.sx-logo__mark { flex: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
.sx-logo .custom-logo { max-height: 46px; width: auto; }
.sx-logo__name { display: block; font-weight: 800; font-size: 22px; letter-spacing: .3px; line-height: 1.1; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.sx-logo__tag { display: block; font-size: 13.5px; opacity: .92; }

.sx-search { order: 3; flex-basis: 100%; margin-left: 0; display: flex; width: 100%; max-width: none; background: #fff; border-radius: 999px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.sx-search input[type="search"] { flex: 1; min-width: 0; border: 0; padding: 10px 16px; font-size: 16px; background: transparent; color: var(--sx-ink); outline: none; }
.sx-search button { border: 0; background: var(--sx-gold); color: #3a2a00; padding: 0 14px; cursor: pointer; display: grid; place-items: center; }
.sx-search button:hover { background: var(--sx-gold-l); }

.sx-burger { display: block; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .5); background: transparent; border-radius: 8px; cursor: pointer; padding: 10px 9px; flex: none; }
.sx-burger span { display: block; height: 2px; background: #fff; margin: 4px 0; border-radius: 2px; }

/* Menu chính: thu gọn sau nút ☰ ở mọi khổ màn hình */
.sx-nav { display: none; background: #1f242e; }
.sx-nav.is-open { display: block; }
.sx-menu, .sx-menu ul { list-style: none; margin: 0; padding: 0; }
.sx-menu { display: block; }
.sx-menu > li { position: relative; border-top: 1px solid #2f3643; }
.sx-menu > li > a { display: block; padding: 13px 16px; padding-right: 56px; color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; }
.sx-menu > li.current-menu-item > a, .sx-menu > li.current-menu-ancestor > a { background: var(--sx-red-d); }
.sx-menu .sub-menu { display: none; background: #2a303b; padding: 0; }
.sx-menu li.is-open > .sub-menu { display: block; }
.sx-menu .sub-menu a { display: block; color: #e5e9f0; padding: 11px 24px; border-top: 1px solid #343b49; font-size: 16px; text-decoration: none; }
.sx-menu .sub-menu a:hover { background: #343b49; color: var(--sx-gold-l); }
.sx-submenu-toggle { display: block; position: absolute; right: 0; top: 0; width: 52px; height: 48px; background: transparent; border: 0; border-left: 1px solid #2f3643; cursor: pointer; }
.sx-submenu-toggle::before { content: ""; position: absolute; left: 20px; top: 17px; width: 9px; height: 9px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); transition: transform .15s; }
.sx-menu li.is-open > .sx-submenu-toggle::before { transform: rotate(-135deg); top: 21px; }

/* Thanh menu nhanh (luôn hiện, giống cauvip247) */
.sx-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; background: #fff; padding: 8px; border-bottom: 1px solid var(--sx-line); }
.sx-quick a { display: block; padding: 8px 4px; border-radius: 4px; background: var(--sx-red); color: #fff; font-size: 16px; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none; }
.sx-quick a:hover, .sx-quick a.is-current { background: var(--sx-red-dd); color: var(--sx-gold-l); }

/* Thanh thứ XSMB */
.sx-daybar { background: #fff; border-bottom: 1px solid var(--sx-line); }
.sx-daybar__in { display: flex; gap: 6px; align-items: center; overflow-x: auto; padding-top: 6px; padding-bottom: 6px; scrollbar-width: none; }
.sx-daybar__in::-webkit-scrollbar { display: none; }
.sx-daybar__lbl { font-size: 14px; color: var(--sx-muted); white-space: nowrap; margin-right: 4px; }
.sx-daybar__day { padding: 5px 14px; border-radius: 999px; background: #f1f3f6; color: #2a3140; font-size: 15px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.sx-daybar__day:hover { background: #ffe9ec; color: var(--sx-red); }
.sx-daybar__day.is-today, .sx-daybar__day.is-current { background: var(--sx-red); color: #fff; }

/* ==========================================================================
   Khung 1 cột 700px (khớp markup của KQXS Stats Extension)
   Thứ tự: nội dung chính -> thống kê/dự đoán -> xổ số theo miền/tỉnh
   ========================================================================== */
.sx-main { display: block; outline: 0; }
.page-wrap { max-width: none; margin: 0; padding: 10px; }
.main-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
.main-col { min-width: 0; order: 1; }
.side-right { min-width: 0; order: 2; }
.side-left { min-width: 0; order: 3; }

/* ==========================================================================
   Hộp sidebar / thẻ
   ========================================================================== */
.sx-box, .sx-card {
	background: #fff; border: 1px solid var(--sx-line); border-radius: var(--sx-radius);
	margin: 0 0 12px; overflow: hidden; box-shadow: var(--sx-shadow);
}
.sx-card { margin-bottom: 14px; }
.sx-box__title {
	display: block; padding: 8px 12px; background: linear-gradient(180deg, #fff, #f6f7f9);
	border-bottom: 2px solid var(--sx-red); font-weight: 700; font-size: 15px; color: var(--sx-red-d);
	text-transform: uppercase; letter-spacing: .35px;
}
details.sx-details > summary { cursor: pointer; list-style: none; position: relative; }
details.sx-details > summary::-webkit-details-marker { display: none; }
details.sx-details > summary::after { content: "+"; position: absolute; right: 14px; top: 6px; font-size: 22px; line-height: 1; }
details.sx-details[open] > summary::after { content: "–"; }

.sx-list { list-style: none; margin: 0; padding: 4px 0; }
.sx-list li { margin: 0; }
.sx-list a { display: block; padding: 8px 12px; color: var(--sx-ink); text-decoration: none; border-bottom: 1px dashed #edf0f3; font-size: 16.5px; }
.sx-list li:last-child a { border-bottom: 0; }
.sx-list a:hover { background: #fff4f5; color: var(--sx-red); }
.sx-list a.is-current { background: #fff0f2; color: var(--sx-red); font-weight: 700; }
.sx-list--cols { columns: 2; column-gap: 0; }
.sx-list--cols li { break-inside: avoid; }
.sx-list--cols a { font-size: 16px; padding: 7px 10px; }
.sx-list__lbl { display: inline-block; min-width: 128px; padding: 7px 0 7px 12px; font-size: 16px; }
.sx-list > li > .sx-list__lbl + .sx-pill { margin-left: 2px; }
.sx-list--posts li { padding: 7px 12px; border-bottom: 1px dashed #edf0f3; line-height: 1.45; }
.sx-list--posts li:last-child { border-bottom: 0; }
.sx-list--posts a { display: inline; padding: 0; border: 0; white-space: normal; }
.sx-list--posts a:hover { background: transparent; }
.sx-card > .sx-list--posts { padding: 2px 0; }
.sx-card > .sx-list--posts li { padding-left: 14px; padding-right: 14px; }

.sx-pill { display: inline-block; padding: 3px 10px; margin: 2px; border-radius: 4px; background: #f1f3f6; color: #2a3140; font-size: 14.5px; font-weight: 700; text-decoration: none; border: 0; }
.sx-pill:hover, .sx-pill.is-current { background: var(--sx-red); color: #fff; }
.sx-list .sx-pill { display: inline-block; padding: 3px 10px; border-bottom: 0; }
.sx-pillrows { padding: 2px 0; }
.sx-pillrow .sx-pill { padding: 3px 9px; margin: 2px; }
.sx-pillrow { padding: 5px 8px; border-bottom: 1px dashed #edf0f3; }
.sx-pillrow:last-child { border-bottom: 0; }
.sx-pillrow__lbl { display: block; font-size: 13px; font-weight: 800; color: var(--sx-muted); letter-spacing: .3px; margin-left: 2px; }

.sx-sogrid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; padding: 10px; }
.sx-so { display: block; text-align: center; padding: 6px 0; font-size: 15px; font-weight: 700; border-radius: 3px; background: #f1f3f6; color: #2a3140; text-decoration: none; }
.sx-so:hover, .sx-so.is-current { background: var(--sx-red); color: #fff; }

.sx-card__head { background: linear-gradient(90deg, var(--sx-red), var(--sx-red-d)); color: #fff; padding: 10px 14px; }
.sx-card__title { margin: 0; font-size: 18px; font-weight: 700; color: #fff; line-height: 1.35; }
.sx-card__body { padding: 10px 14px; }
.sx-card .sx-list { padding: 4px 0; }
.sx-card > .sx-list a { padding-left: 14px; padding-right: 14px; }

/* ==========================================================================
   Nội dung
   ========================================================================== */
.sx-h1 { margin: 0 0 10px; font-size: 24px; line-height: 1.3; font-weight: 800; color: var(--sx-red-d); }
.sx-h2 { margin: 18px 0 10px; font-size: 21px; line-height: 1.35; font-weight: 800; color: var(--sx-red-d); border-left: 4px solid var(--sx-gold); padding-left: 10px; }
.sx-lead { margin: 0 0 12px; color: #2f3747; font-size: 17.5px; }

.sx-bc ol { list-style: none; display: flex; flex-wrap: wrap; margin: 0 0 10px; padding: 0; font-size: 15px; color: var(--sx-muted); }
.sx-bc li + li::before { content: "›"; margin: 0 7px; color: #b4bac5; }
.sx-bc a { color: var(--sx-blue); text-decoration: none; }
.sx-bc a:hover { text-decoration: underline; }

.sx-notice { display: flex; gap: 8px; align-items: center; background: #fff8e1; border: 1px solid #ffe082; border-radius: var(--sx-radius); padding: 8px 10px; margin: 0 0 12px; font-size: 15.5px; color: #6b4e00; }
.sx-notice__lbl { flex: none; background: var(--sx-gold); color: #3a2a00; font-weight: 800; font-size: 12.5px; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; }
.sx-notice__txt { min-width: 0; }

.sx-notice-admin { background: #fff3cd; border: 1px solid #ffe69c; color: #664d03; padding: 10px 14px; border-radius: var(--sx-radius); margin: 0 0 14px; font-size: 14px; }

.sx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.sx-chip { display: inline-block; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid #f0c9cf; color: var(--sx-red-d); font-size: 16px; font-weight: 700; text-decoration: none; box-shadow: var(--sx-shadow); }
.sx-chip:hover { background: var(--sx-red); color: #fff; border-color: var(--sx-red); }

.sx-article { margin: 0 0 14px; }
.sx-content {
	background: #fff; border: 1px solid var(--sx-line); border-radius: var(--sx-radius);
	padding: 14px 14px; margin: 0 0 14px; box-shadow: var(--sx-shadow); font-size: 17.5px; overflow-wrap: anywhere;
}
.sx-content > p, .sx-content > ul, .sx-content > ol { margin: 0 0 12px; }
.sx-content > h2 { margin: 22px 0 8px; font-size: 22px; line-height: 1.35; color: var(--sx-red-d); border-left: 4px solid var(--sx-gold); padding-left: 10px; }
.sx-content > h3 { margin: 16px 0 6px; font-size: 19px; line-height: 1.4; color: #2a3140; }
.sx-content > ul, .sx-content > ol { padding-left: 22px; }
.sx-content > ul li, .sx-content > ol li { margin: 0 0 4px; }
.sx-content > p a, .sx-content > ul a, .sx-content > ol a, .sx-content > table a, .sx-seo a, .sx-archive-intro a { color: var(--sx-blue); text-decoration: underline; text-underline-offset: 2px; }
.sx-content > p a:hover, .sx-content > ul a:hover, .sx-content > ol a:hover, .sx-seo a:hover { color: var(--sx-red); }
.sx-content img { border-radius: 6px; }
.sx-content > p:first-child { font-size: 18px; }
.sx-seo { font-size: 17px; }
.sx-archive-intro { padding-bottom: 8px; }

.sx-table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 0 0 12px; }
.sx-table th, .sx-table td { border: 1px solid var(--sx-line); padding: 7px 10px; text-align: left; vertical-align: top; }
.sx-table thead th { background: #f6f7f9; color: var(--sx-red-d); }
.sx-table tbody th { background: #fafbfc; white-space: nowrap; }
.sx-table tbody tr:hover td, .sx-table tbody tr:hover th { background: #fffaf0; }
.sx-table tr.is-today th, .sx-table tr.is-today td { background: #fff1c9; }
.sx-scroll { overflow-x: auto; }
.sx-table--lich td a { color: var(--sx-blue); text-decoration: none; white-space: nowrap; }
.sx-table--lich td a:hover { text-decoration: underline; color: var(--sx-red); }

.sx-related { background: #fff; border: 1px solid var(--sx-line); border-radius: var(--sx-radius); padding: 10px 14px; margin: 0 0 14px; box-shadow: var(--sx-shadow); }
.sx-related__title { font-weight: 800; color: var(--sx-red-d); margin-bottom: 6px; font-size: 17px; }
.sx-related ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 14px; }
.sx-related a { display: block; padding: 5px 0; color: var(--sx-blue); text-decoration: none; border-bottom: 1px dashed #edf0f3; font-size: 16.5px; }
.sx-related a:hover { color: var(--sx-red); }

.sx-inline-pred { background: #fffbea; border: 1px solid #f3e1a0; border-radius: var(--sx-radius); padding: 10px 14px; margin: 12px 0; }
.sx-inline-pred__title { font-weight: 800; color: var(--sx-red-d); font-size: 16.5px; margin-bottom: 4px; }
.sx-inline-pred__links { margin: 0 0 8px; font-size: 16px; }
.sx-inline-pred a { color: var(--sx-blue); text-decoration: none; }
.sx-inline-pred a:hover { text-decoration: underline; }
.sx-inline-pred ul { margin: 0; padding-left: 18px; font-size: 16px; }

.sx-home-results { margin: 0 0 14px; }
.sx-home-soicau { margin: 0 0 14px; }

/* Bài viết */
.sx-postlist { display: grid; gap: 12px; margin-bottom: 14px; }
.sx-post { display: flex; gap: 14px; padding: 12px; margin: 0; }
.sx-post__thumb { flex: none; width: 150px; }
.sx-post__thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; display: block; }
.sx-post__body { min-width: 0; }
.sx-post__title { margin: 0 0 4px; font-size: 18.5px; line-height: 1.4; }
.sx-post__title a { color: var(--sx-ink); text-decoration: none; }
.sx-post__title a:hover { color: var(--sx-red); }
.sx-post__meta { margin: 0 0 6px; font-size: 14px; color: var(--sx-muted); }
.sx-post__meta a { color: var(--sx-blue); text-decoration: none; }
.sx-post__excerpt { margin: 0; color: #3a4252; font-size: 16px; }
.sx-single__thumb { margin: 0 0 12px; }
.sx-tags { font-size: 15px; color: var(--sx-muted); margin: 0 0 14px; }
.sx-pagelinks { margin: 0 0 12px; }

.sx-pagination { margin: 0 0 16px; }
.sx-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.sx-pagination .page-numbers { padding: 6px 12px; border: 1px solid var(--sx-line); border-radius: 6px; background: #fff; color: var(--sx-ink); text-decoration: none; font-weight: 600; }
.sx-pagination a.page-numbers:hover { border-color: var(--sx-red); color: var(--sx-red); }
.sx-pagination .page-numbers.current { background: var(--sx-red); border-color: var(--sx-red); color: #fff; }

.sx-comments__list { margin: 0 0 14px; padding-left: 20px; }
.sx-comments input[type="text"], .sx-comments input[type="email"], .sx-comments textarea { width: 100%; padding: 8px 10px; border: 1px solid #cfd5de; border-radius: 6px; font: inherit; }
.sx-comments .submit { background: var(--sx-red); color: #fff; border: 0; border-radius: 6px; padding: 9px 18px; font-weight: 700; cursor: pointer; }

/* ==========================================================================
   Footer
   ========================================================================== */
.sx-footer { background: linear-gradient(180deg, #1b1f27, #12151b); color: #b7c0cd; margin-top: 24px; padding: 24px 0 16px; font-size: 16px; border-top: 3px solid var(--sx-red); }
.sx-footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.sx-footer__about { grid-column: 1 / -1; }
.sx-footer__title { color: #fff; font-weight: 800; margin-bottom: 8px; font-size: 15.5px; text-transform: uppercase; letter-spacing: .3px; }
.sx-footer ul { list-style: none; margin: 0; padding: 0; }
.sx-footer li { margin: 0 0 7px; }
.sx-footer a { color: #d6dde8; text-decoration: none; }
.sx-footer a:hover { color: var(--sx-gold-l); text-decoration: underline; }
.sx-footer p { margin: 0 0 8px; }
.sx-footer__time strong { color: var(--sx-gold-l); }
.sx-footer__partners { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid #2a303b; }
.sx-footer__menu ul { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; }
.sx-footer__note { margin: 18px 0 6px; padding-top: 14px; border-top: 1px solid #2a303b; font-size: 14.5px; color: #98a3b3; }
.sx-footer__copy { font-size: 14px; color: #7f8a9b; }

.sx-totop { position: fixed; right: max(14px, calc((100vw - var(--sx-col)) / 2 + 14px)); bottom: 16px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--sx-red); color: #fff; text-decoration: none; font-size: 20px; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); z-index: 90; }
.sx-totop[hidden] { display: none; }

/* ==========================================================================
   Điện thoại nhỏ (màn hình hẹp hơn khung 700px)
   ========================================================================== */
@media (max-width: 560px) {
	body.sx-body { font-size: 17px; }
	.sx-h1 { font-size: 22px; }
	.sx-logo__name { font-size: 19px; }
	.sx-logo__tag { display: none; }
	.sx-topbar__live { display: none; }
	.sx-topbar__in { justify-content: flex-start; }
	.sx-post { flex-direction: column; }
	.sx-post__thumb { width: 100%; }
	.sx-content { padding: 12px; font-size: 17px; }
	.sx-footer__cols { grid-template-columns: 1fr; }
	.sx-sogrid { gap: 3px; padding: 8px; }
	.sx-so { font-size: 13px; padding: 5px 0; }
	.sx-quick a { font-size: 14.5px; padding: 8px 2px; }
}

/* ==========================================================================
   Khối bài viết theo chuyên mục (trang chủ) + đám mây từ khóa
   ========================================================================== */
.sx-catblock { margin: 0 0 14px; }
.sx-catblock .sx-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sx-catblock__more { flex: none; color: var(--sx-gold-l); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.sx-catblock__more:hover { color: #fff; text-decoration: underline; }
.sx-catblock .sx-list--posts li { padding: 9px 14px; }
.sx-catblock .sx-list--posts a { font-weight: 600; }
.sx-cloud { background: #fff; border: 1px solid var(--sx-line); border-radius: var(--sx-radius); padding: 10px 12px; margin: 0 0 14px; box-shadow: var(--sx-shadow); font-size: 16px; line-height: 1.9; }
.sx-cloud__title { font-weight: 800; color: var(--sx-red-d); margin: 0 0 4px; font-size: 17px; }
.sx-cloud a { display: inline-block; margin: 2px 4px 2px 0; padding: 1px 10px; border: 1px solid #f0c9cf; border-radius: 999px; background: #fff7f8; color: var(--sx-red-d); text-decoration: none; font-size: 15px; line-height: 1.7; }
.sx-cloud a:hover { background: var(--sx-red); border-color: var(--sx-red); color: #fff; }

/* ==========================================================================
   Ép các khối của plugin/extension về khổ 1 cột (chúng tự đổi bố cục theo
   độ rộng cửa sổ, trong khi theme cố định khung 700px trên mọi thiết bị)
   ========================================================================== */
.wrap, .lk-wrap, .hdr-inner, .dbar-inner { max-width: none; }
.mgrid, .lk-content-with-sidebar { grid-template-columns: minmax(0, 1fr) !important; }
.mn-drop { min-width: 0 !important; }
.sx-main table { max-width: 100%; }

/* ==========================================================================
   Đầu ra của plugin KQXS + KQXS Stats Extension (bảng kết quả, thống kê,
   lô gan, bạch thủ…): GIỮ NGUYÊN kiểu gốc của plugin. Theme chỉ cho chúng
   nằm vừa khung 700px, không đổi font, cỡ chữ, màu, khoảng cách.
   Giá trị dưới đây lấy đúng từ `body` trong kqxs-frontend.css của extension.
   ========================================================================== */
.sx-plugin {
	font: 14px/1.5 'Segoe UI', Arial, sans-serif;
	color: #222;
	text-align: left;
	letter-spacing: normal;
	overflow-wrap: normal;
	word-break: normal;
	hyphens: manual;
	margin: 0 0 14px;
}
.sx-plugin a { color: inherit; text-decoration: none; }
.sx-plugin .sx-plugin { margin: 0; }
/* Trong khung nội dung (có padding) cho khối plugin tràn hết bề rộng 700px như bản gốc */
.sx-content > .sx-plugin { margin-left: -14px; margin-right: -14px; }
.sx-content > .sx-plugin:first-child { margin-top: -14px; }
.sx-content > .sx-plugin:last-child { margin-bottom: -14px; }
@media (max-width: 560px) {
	.sx-content > .sx-plugin { margin-left: -12px; margin-right: -12px; }
	.sx-content > .sx-plugin:first-child { margin-top: -12px; }
	.sx-content > .sx-plugin:last-child { margin-bottom: -12px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.sx-topbar__live.is-live::before { animation: none; }
}
