/* ==========================================================================
   TruyenQQ — app.css
   Nguồn thiết kế: Figma "Trqq" (biến màu TruyenQQ · Dark/Light, kiểu chữ Lora + Be Vietnam Pro).
   Thứ tự: 1 Tokens · 2 Font · 3 Base · 4 Layout · 5 Components · 6 Pages · 7 Utilities
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
	color-scheme: dark;
	--bg: #0e0d0b;
	--surface: #15130f;
	--elevated: #1e1b16;
	--border: #2a261f;
	--border-strong: #4a4337;
	--text: #eee7d8;
	--text-2: #c4bbaa;
	--muted: #968d7e;
	--accent: #c6a36b;
	--accent-hover: #d4b47c;
	--accent-press: #a88a55;
	--accent-soft: #231e16;
	--on-accent: #15120d;
	--gold: #d4b47c;
	--success: #9db592;
	--danger: #d9776a;
	--info: #8fa3c6;
	--scrim: rgba(5, 4, 3, .66);
	--shadow-sm: 0 6px 16px rgba(0, 0, 0, .35);
	--shadow: 0 14px 30px rgba(0, 0, 0, .45);
	--shadow-lg: 0 30px 70px rgba(0, 0, 0, .6);

	--r-sm: 6px;
	--r-md: 8px;
	--r-lg: 10px;
	--r-xl: 14px;
	--r-pill: 999px;

	--font-display: "Lora", Georgia, "Times New Roman", serif;
	--font-ui: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--container: 1200px;
	--gutter: 24px;
	--header-h: 76px;
	--tabbar-h: 72px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}
:root[data-theme="light"] {
	color-scheme: light;
	--bg: #f7f3ec;
	--surface: #ffffff;
	--elevated: #f0eae0;
	--border: #e4dccf;
	--border-strong: #cfc4b2;
	--text: #1c1a16;
	--text-2: #463f35;
	--muted: #776e61;
	--accent: #9c7b45;
	--accent-hover: #8a6c3b;
	--accent-press: #7a5f33;
	--accent-soft: #f2e8d6;
	--on-accent: #ffffff;
	--gold: #a88232;
	--success: #4e7d4a;
	--scrim: rgba(28, 26, 22, .45);
	--shadow-sm: 0 6px 16px rgba(64, 51, 31, .08);
	--shadow: 0 14px 30px rgba(64, 51, 31, .12);
	--shadow-lg: 0 30px 70px rgba(64, 51, 31, .18);
}
@media (max-width: 1023px) { :root { --gutter: 32px; --header-h: 68px; } }
@media (max-width: 767px)  { :root { --gutter: 16px; --header-h: 60px; } }

/* ---------- 2. Font: @font-face nằm ở assets/fonts/fonts.css (tải trước app.css) ---------- */

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0; min-height: 100vh;
	background: var(--bg); color: var(--text);
	font: 400 16px/1.625 var(--font-ui);
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 2px; border-radius: var(--r-sm); }
::selection { background: var(--accent); color: var(--on-accent); }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; color: var(--text); letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.screen-reader-text, .tq-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tq-skip:focus { position: fixed !important; top: 8px; left: 8px; z-index: 100; padding: 10px 16px; background: var(--accent); color: var(--on-accent); border-radius: var(--r-md); clip: auto; width: auto; height: auto; }

/* Typography scale */
.tq-display { font: 600 56px/64px var(--font-display); letter-spacing: -.01em; }
.tq-h1 { font: 600 40px/48px var(--font-display); letter-spacing: -.005em; }
.tq-h2 { font: 600 28px/36px var(--font-display); }
.tq-h3 { font: 600 19px/27px var(--font-display); }
.tq-body { font: 400 16px/26px var(--font-ui); color: var(--text-2); }
.tq-small { font: 400 14px/22px var(--font-ui); color: var(--text-2); }
.tq-caption { font: 400 12px/17px var(--font-ui); letter-spacing: .01em; color: var(--muted); }
.tq-overline { font: 500 11px/16px var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.tq-label { font: 500 14px/20px var(--font-ui); }
.tq-italic { font-style: italic; }
.tq-accent { color: var(--accent); }
.tq-muted { color: var(--muted); }
.tq-success { color: var(--success); }
.tq-truncate { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 767px) {
	.tq-display { font-size: 40px; line-height: 44px; }
	.tq-h1 { font-size: 32px; line-height: 38px; }
	.tq-h2 { font-size: 24px; line-height: 30px; }
}

/* ---------- 4. Layout ---------- */
.tq-container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.tq-main { padding-bottom: 96px; }
.tq-section { margin-top: 56px; }
.tq-section--tight { margin-top: 32px; }
.tq-columns { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.tq-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.tq-grid { display: grid; gap: 36px 24px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tq-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tq-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.tq-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tq-columns--narrow { grid-template-columns: minmax(0, 1fr) 300px; }
.tq-stack--sm { gap: 10px; }
.tq-sticky { position: sticky; top: calc(var(--header-h) + 16px); }
.tq-more { margin-top: 24px; text-align: center; }
/* Chỉ lưới 6 cột mặc định giảm còn 4; các biến thể --2/--3/--4 giữ số cột riêng. */
@media (max-width: 1199px) { .tq-grid:not(.tq-grid--2):not(.tq-grid--3):not(.tq-grid--4) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1023px) {
	.tq-columns, .tq-columns--narrow, .tq-columns.tq-columns--list, .tq-columns.tq-columns--contact { grid-template-columns: minmax(0, 1fr); }
	.tq-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tq-sticky { position: static; }
	.tq-grid--2 { gap: 14px 16px; }
}
@media (max-width: 767px) {
	.tq-main { padding-bottom: calc(var(--tabbar-h) + 40px); }
	.tq-section { margin-top: 36px; }
	.tq-grid, .tq-grid:not(.tq-grid--2):not(.tq-grid--3):not(.tq-grid--4), .tq-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
	.tq-grid--2 { grid-template-columns: 1fr; }
	.tq-grid--3 { grid-template-columns: 1fr; }
}
.tq-scroller { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.tq-scroller::-webkit-scrollbar { display: none; }
.tq-scroller > * { scroll-snap-align: start; flex: 0 0 auto; }

/* ---------- 5. Components ---------- */

/* Icons */
.tq-icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tq-icon--sm { width: 14px; height: 14px; }
.tq-icon--lg { width: 22px; height: 22px; }
.tq-icon--fill { fill: currentColor; }

/* Buttons */
.tq-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 46px; padding: 0 26px; border-radius: var(--r-md); border: 1px solid transparent;
	font: 600 12px/16px var(--font-ui); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
	transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.tq-btn--primary { background: var(--accent); color: var(--on-accent); }
.tq-btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); box-shadow: var(--shadow-sm); }
.tq-btn--primary:active { background: var(--accent-press); }
.tq-btn--secondary { border-color: var(--border-strong); color: var(--text); }
.tq-btn--secondary:hover { border-color: var(--accent); color: var(--accent); }
.tq-btn--ghost { padding: 0; min-height: 0; color: var(--text-2); }
.tq-btn--block { width: 100%; white-space: normal; text-align: center; }
.tq-btn--sm { min-height: 38px; padding: 0 16px; }
.tq-btn[disabled], .tq-btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.tq-btn.is-loading { pointer-events: none; }
.tq-btn.is-loading .tq-icon { animation: tq-spin 1s linear infinite; }
@keyframes tq-spin { to { transform: rotate(360deg); } }
.tq-icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-md); color: var(--text-2); position: relative; transition: background-color .2s, color .2s; }
.tq-icon-btn:hover { background: var(--elevated); color: var(--text); }
.tq-icon-btn--outline { border: 1px solid var(--border-strong); width: 46px; height: 46px; }
.tq-badge-dot { position: absolute; top: 4px; right: 2px; min-width: 16px; height: 16px; padding: 0 5px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font: 600 10px/16px var(--font-ui); text-align: center; }

.tq-follow { display: contents; }
.tq-follow__short { display: none; }
.tq-btn.is-on { border-color: var(--accent); color: var(--accent); }

/* Links */
.tq-link { display: inline-flex; align-items: center; gap: 4px; font: 500 11px/16px var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--text-2); }
.tq-link:hover { color: var(--accent); }
.tq-link--accent { color: var(--accent); }

/* Chips */
.tq-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.tq-chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.tq-chip {
	display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
	border: 1px solid var(--border-strong); border-radius: var(--r-sm);
	font: 500 11px/1 var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--text-2); white-space: nowrap;
	transition: border-color .2s, color .2s, background-color .2s;
}
.tq-chip:hover { border-color: var(--accent); color: var(--accent); }
.tq-chip.is-active, .tq-chip[aria-current], .tq-chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

/* Status pill / badge */
.tq-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 4px; background: var(--accent); color: var(--on-accent); font: 600 10px/1 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; }
.tq-status { font: 500 11px/16px var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--success); }

/* Section header */
.tq-section-head { display: flex; align-items: center; gap: 24px; margin-bottom: 24px; }
.tq-section-head__title { font: 600 28px/36px var(--font-display); }
.tq-section-head::after { content: ""; order: 1; flex: 1; height: 1px; background: var(--border-strong); }
.tq-section-head__link { order: 2; }
.tq-section-head__link { white-space: nowrap; }
@media (max-width: 767px) { .tq-section-head { gap: 14px; margin-bottom: 16px; justify-content: space-between; } .tq-section-head::after { display: none; } .tq-section-head__title { font-size: 22px; line-height: 28px; } }

/* Box (sidebar panel) */
.tq-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 20px; }
.tq-box__title { font: 600 19px/27px var(--font-display); margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tq-box--accent { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface)); }

/* Cover */
.tq-cover { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--elevated); aspect-ratio: 5 / 7; box-shadow: var(--shadow); }
.tq-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.tq-cover--sm { border-radius: var(--r-sm); box-shadow: none; }
.tq-cover--framed { padding: 12px; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); border-radius: var(--r-xl); background: color-mix(in srgb, var(--bg) 35%, transparent); backdrop-filter: blur(20px); aspect-ratio: auto; overflow: visible; }
.tq-cover--framed img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); aspect-ratio: 5 / 7; object-fit: cover; }

/* Story card */
.tq-card { position: relative; display: grid; gap: 12px; align-content: start; }
.tq-card__cover::after { content: ""; position: absolute; inset: auto 0 0; height: 36%; background: linear-gradient(to bottom, transparent, rgba(8, 7, 5, .9)); pointer-events: none; }
.tq-card__badge { position: absolute; top: 10px; left: 10px; z-index: 1; }
.tq-card__chapter { position: absolute; left: 10px; bottom: 10px; z-index: 1; font: 500 11px/16px var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: #eee7d8; }
.tq-card__title { font: 500 14px/20px var(--font-ui); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tq-card__title a::before { content: ""; position: absolute; inset: 0; z-index: 2; }
.tq-card__meta { font: 400 12px/17px var(--font-ui); letter-spacing: .01em; color: var(--muted); }
.tq-card:hover .tq-cover img { transform: scale(1.04); }
.tq-card:hover .tq-card__title { color: var(--accent); }

/* Update item (truyện mới cập nhật) */
.tq-update { position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: start; gap: 14px; min-height: 140px; padding: 12px; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); transition: border-color .2s; }
.tq-update:hover { border-color: var(--border-strong); }
.tq-update .tq-cover { width: 84px; height: 118px; aspect-ratio: auto; border-radius: var(--r-md); box-shadow: 0 8px 18px rgba(0, 0, 0, .35); }
.tq-update__body { display: grid; align-content: start; gap: 4px; min-width: 0; }
.tq-update__title { display: block; font: 700 16px/21px var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tq-update__meta { font: 400 12px/17px var(--font-ui); color: var(--muted); }
.tq-update__chapters { display: grid; gap: 6px; padding-top: 4px; }
.tq-update__chapter { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 400 14px/22px var(--font-ui); color: var(--text-2); }
.tq-update__chapter:first-child { color: var(--text); }
.tq-update__chapter time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.tq-update__chapter:hover { color: var(--accent); }

/* Rank item */
.tq-rank { display: grid; grid-template-columns: 40px 52px minmax(0, 1fr); align-items: center; gap: 14px; min-height: 80px; }
.tq-rank__no { font: italic 600 29px/32px var(--font-display); color: var(--accent); }
.tq-rank:nth-child(n+4) .tq-rank__no { color: var(--muted); }
.tq-rank .tq-cover { width: 52px; height: 70px; aspect-ratio: auto; border-radius: var(--r-sm); box-shadow: none; }
.tq-rank__title { font: 500 14px/20px var(--font-ui); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tq-rank__meta { font: 400 12px/17px var(--font-ui); color: var(--muted); margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.tq-rank-list { display: grid; gap: 6px; }
.tq-box__more { display: inline-flex; margin-top: 8px; }
.tq-box__link { display: none; align-items: center; gap: 4px; white-space: nowrap; }

/* Chapter row */
.tq-chapters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.tq-chapters li:first-child .tq-chapter:not(.is-current) { background: var(--accent-soft); }
.tq-chapter { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: var(--r-md); background: var(--surface); font: 500 14px/20px var(--font-ui); transition: background-color .2s, color .2s; }
.tq-chapter:hover { background: var(--elevated); color: var(--accent); }
.tq-chapter__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tq-chapter__meta { display: flex; align-items: center; gap: 6px; font: 400 12px/17px var(--font-ui); color: var(--muted); }
.tq-chapter.is-current { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent); }
.tq-chapter.is-read { color: var(--muted); }
@media (max-width: 767px) { .tq-chapters { grid-template-columns: minmax(0, 1fr); } }

/* Breadcrumb */
.tq-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 400 13px/20px var(--font-ui); color: var(--muted); }
.tq-breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.tq-breadcrumb li + li::before { content: ""; width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .7; }
.tq-breadcrumb [aria-current] { color: var(--text-2); }
.tq-breadcrumb a { display: inline-flex; align-items: center; gap: 8px; }

/* Pagination */
.tq-pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tq-pagination a, .tq-pagination span { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); font: 500 14px/1 var(--font-ui); color: var(--text-2); }
.tq-pagination a:hover { border-color: var(--accent); color: var(--accent); }
.tq-pagination .current { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tq-pagination .dots { border: 0; background: none; }

/* Tabs & segmented control */
.tq-tabs { display: flex; gap: 32px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tq-tabs a, .tq-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 16px 0 14px; border-bottom: 2px solid transparent; font: 500 11px/16px var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.tq-tabs .is-active, .tq-tabs [aria-selected="true"], .tq-tabs [aria-current] { color: var(--text); border-color: var(--accent); }
.tq-count { padding: 2px 7px; border-radius: var(--r-sm); background: var(--elevated); font: 400 12px/1.4 var(--font-ui); letter-spacing: 0; text-transform: none; color: var(--text-2); }
.tq-segment { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.tq-segment a, .tq-segment button { padding: 8px 16px; border-radius: var(--r-sm); font: 500 11px/16px var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--text-2); }
.tq-segment .is-active, .tq-segment [aria-pressed="true"], .tq-segment [aria-current] { background: var(--accent); color: var(--on-accent); }

/* Forms */
.tq-field { display: grid; gap: 8px; }
.tq-field__label { font: 500 14px/20px var(--font-ui); color: var(--text-2); }
.tq-input, .tq-select, .tq-textarea {
	width: 100%; min-height: 46px; padding: 12px 14px; border-radius: var(--r-md);
	border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: 400 16px/22px var(--font-ui);
	transition: border-color .2s, box-shadow .2s;
}
.tq-input::placeholder, .tq-textarea::placeholder { color: var(--muted); }
.tq-input:focus, .tq-select:focus, .tq-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.tq-field.is-error .tq-input { border-color: var(--danger); }
.tq-field__hint { font: 400 12px/17px var(--font-ui); color: var(--muted); }
.tq-field.is-error .tq-field__hint { color: var(--danger); }
.tq-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.tq-search { display: flex; align-items: center; gap: 10px; min-width: 0; height: 40px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: var(--r-md); background: transparent; color: var(--muted); }
.tq-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; color: var(--text); font: 400 14px/1 var(--font-ui); }
.tq-search input::placeholder { color: var(--muted); }
.tq-search kbd { padding: 2px 6px; border: 1px solid var(--border-strong); border-radius: 4px; font: 400 12px/1 var(--font-ui); }
.tq-search--lg { height: 60px; padding: 0 8px 0 20px; border-color: color-mix(in srgb, var(--accent) 60%, transparent); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow); }
.tq-search--lg input { font-size: 17px; }
.tq-toggle { position: relative; width: 40px; height: 22px; border-radius: 11px; background: var(--elevated); transition: background-color .2s; flex: none; }
.tq-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .2s var(--ease), background-color .2s; }
.tq-toggle[aria-checked="true"] { background: var(--accent); }
.tq-toggle[aria-checked="true"]::after { transform: translateX(18px); background: var(--on-accent); }

/* Search suggestions */
.tq-header__search { position: relative; }
.tq-suggest { position: absolute; z-index: 65; top: calc(100% + 8px); left: 0; right: 0; min-width: 320px; padding: 8px; border: 1px solid var(--border-strong); border-radius: var(--r-xl); background: var(--elevated); box-shadow: var(--shadow-lg); }
.tq-suggest--inline { position: static; min-width: 0; margin-top: 12px; box-shadow: none; }
.tq-suggest a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--r-md); font: 500 14px/20px var(--font-ui); color: var(--text); }
.tq-suggest a:hover { background: var(--surface); }
.tq-suggest img { width: 36px; aspect-ratio: 5 / 7; object-fit: cover; border-radius: var(--r-sm); }
.tq-suggest .tq-suggest__all { justify-content: center; margin-top: 4px; border-top: 1px solid var(--border); border-radius: 0; color: var(--accent); }
.tq-suggest__none { padding: 12px; font-size: 14px; color: var(--muted); }

/* Listing: filter card, results, genre sidebar, search header */
.tq-columns--list { grid-template-columns: minmax(0, 1fr) 328px; margin-top: 8px; }
.tq-columns--list .tq-grid--4 { gap: 36px 40px; }
.tq-filter { display: grid; gap: 18px; margin-bottom: 24px; }
.tq-filter .tq-box__title { margin-bottom: 0; }
.tq-filter__fields { display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr)) auto; gap: 14px; align-items: end; }
.tq-filter__fields .tq-input, .tq-filter__fields .tq-select { background: var(--bg); font-size: 14px; }
.tq-filter__quick { align-items: center; }
.tq-filter__quick .tq-overline, .tq-active-filters .tq-overline { margin-right: 4px; }
.tq-filter__more > summary { list-style: none; width: max-content; cursor: pointer; }
.tq-filter__more > summary::-webkit-details-marker { display: none; }
.tq-filter__genres { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; border: 0; }
.tq-filter__genres legend { margin-bottom: 10px; }
.tq-genre-pick { cursor: pointer; user-select: none; }
.tq-genre-pick input { position: absolute; opacity: 0; pointer-events: none; }
.tq-genre-pick[data-state="include"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.tq-genre-pick[data-state="include"]::before { content: "+"; }
.tq-genre-pick[data-state="exclude"] { border-color: var(--danger); color: var(--danger); text-decoration: line-through; }
.tq-results-head { margin-bottom: 20px; }
.tq-genre-side li a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font: 500 14px/20px var(--font-ui); }
.tq-genre-side li:last-child a { border-bottom: 0; }
.tq-genre-side small { font: 400 12px/17px var(--font-ui); color: var(--muted); }
.tq-genre-side [aria-current] { color: var(--accent); }
.tq-search-title em { font-style: italic; color: var(--accent); }
.tq-search--page { margin-top: 20px; height: 56px; }
.tq-search--page .tq-btn { min-height: 40px; }
.tq-active-filters { align-items: center; margin-top: 18px; }
.tq-search-tabs { margin-top: 28px; }
.tq-search-tabs > span { display: inline-flex; align-items: center; gap: 8px; padding: 16px 0 14px; border-bottom: 2px solid var(--accent); font: 500 11px/16px var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--text); }
.tq-result.is-top { border-color: color-mix(in srgb, var(--accent) 70%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, var(--surface)), var(--surface)); }
@media (max-width: 1023px) { .tq-filter__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .tq-filter__fields { grid-template-columns: 1fr; } .tq-filter { padding: 16px; } .tq-search--page { height: 52px; } }
/* Listing mobile (Figma 40:2184 / 40:2346 / sheet 59:7301) */
.tq-filterbar, .tq-filterbar__chips, .tq-next-page, .tq-search__clear { display: none; }
.tq-chip--pick { position: relative; cursor: pointer; }
.tq-chip--pick input { position: absolute; opacity: 0; pointer-events: none; }
.tq-chip--pick:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.tq-chip--pick:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 2px; }
.tq-filter-sheet { display: grid; gap: 18px; }
.tq-filter-sheet .tq-dialog__head { margin-bottom: 0; }
.tq-filter-sheet__group { margin: 0; padding: 0; border: 0; display: grid; gap: 12px; }
.tq-filter-sheet__group .tq-chips { gap: 8px; }
.tq-filter-sheet__actions { display: grid; grid-template-columns: 1fr 1.7fr; gap: 10px; margin-top: 6px; }
@media (max-width: 767px) {
	.tq-columns--list { margin-top: 0; }
	.tq-columns--list .tq-filter, .tq-columns--list .tq-pagination, .tq-list-genres, .tq-list-trend, .tq-list-tips { display: none; }
	.tq-filterbar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
	.tq-filterbar .tq-btn { min-height: 46px; justify-content: center; }
	.tq-filterbar__sort { cursor: default; }
	.tq-filterbar__chips { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin: 0 calc(var(--gutter) * -1) 18px; padding-inline: var(--gutter); scrollbar-width: none; }
	.tq-filterbar__chips::-webkit-scrollbar { display: none; }
	.tq-results-head { display: none; }
	.tq-next-page { display: block; margin-top: 24px; }
	.tq-search-head .tq-container { display: flex; flex-direction: column; }
	.tq-search-head .tq-breadcrumb, .tq-search-head .tq-active-filters, .tq-search--page .tq-btn { display: none; }
	.tq-search--page { order: -1; margin: 0 0 18px; height: 48px; padding: 0 4px 0 14px; border-radius: var(--r-md); box-shadow: none; border-color: var(--border-strong); background: var(--surface); }
	.tq-search--page input { font-size: 15px; }
	.tq-search__clear { display: inline-grid; width: 40px; height: 40px; }
	.tq-search-title { font-size: 28px; line-height: 34px; }
	.tq-search-tabs { margin-top: 16px; }
	.tq-result { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 12px; }
	.tq-result .tq-cover { width: 56px; }
	.tq-result__title { font-size: 17px; line-height: 23px; }
	.tq-result__meta { gap: 8px; margin-top: 4px; }
	.tq-result__actions { margin-top: 6px; }
	.tq-result__actions .tq-btn--primary { min-height: 0; padding: 0; background: none; color: var(--accent); font: 500 11px/16px var(--font-ui); letter-spacing: .2em; }
	.tq-result__actions .tq-btn--primary:hover { box-shadow: none; color: var(--accent-hover); }
}

/* Rating stars */
.tq-stars { display: inline-flex; gap: 2px; color: var(--gold); }
.tq-stars .tq-icon { width: 16px; height: 16px; }
.tq-stars .is-off { color: var(--border-strong); }
.tq-star.is-on { fill: currentColor; }
.tq-star.is-half { fill: currentColor; fill-opacity: .45; }
.tq-stars--sm .tq-icon { width: 13px; height: 13px; }
/* Rating line under the alternative titles (Figma 9:458) */
.tq-story-hero__rating { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font: 400 14px/22px var(--font-ui); color: var(--muted); }
.tq-story-hero__rating a { display: inline-flex; align-items: center; gap: 12px; color: inherit; }
.tq-story-hero__rating .tq-stars .tq-icon { width: 18px; height: 18px; }
.tq-story-hero__rating b { font: 600 19px/27px var(--font-display); color: var(--text); }
.tq-story-hero__rating a:hover b { color: var(--accent); }
.tq-link-btn { color: var(--accent); font: 500 14px/22px var(--font-ui); text-decoration: underline; text-underline-offset: 3px; }
.tq-link-btn:hover { color: var(--accent-hover); }
/* "Đánh giá độc giả" box (Figma 23:883) */
.tq-rating-box { display: grid; gap: 14px; scroll-margin-top: calc(var(--header-h) + 70px); }
.tq-rating-box .tq-box__title { margin-bottom: 0; }
.tq-rating-box .tq-bars span { font: 400 12px/17px var(--font-ui); color: var(--muted); }
.tq-rating-box__mine { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tq-rating-box .tq-note { margin: 0; }
/* Rating dialog (Figma 58:5565) */
.tq-rate .tq-dialog__head .tq-small { margin-top: 4px; color: var(--text-2); }
.tq-rate__pick { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 18px; margin-bottom: 18px; }
.tq-rate__pick img { width: 64px; height: 90px; object-fit: cover; border-radius: var(--r-sm); }
.tq-rate__stars { display: flex; gap: 4px; margin: 0; padding: 0; border: 0; }
.tq-rate__stars label { position: relative; display: grid; place-items: center; width: 38px; height: 38px; cursor: pointer; color: var(--border-strong); }
.tq-rate__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tq-rate__stars .tq-icon { width: 32px; height: 32px; stroke-width: 1.6; transition: transform .15s var(--ease), color .15s; }
.tq-rate__stars label.is-on { color: var(--gold); }
.tq-rate__stars label.is-on .tq-icon { fill: currentColor; }
.tq-rate__stars label:hover .tq-icon { transform: scale(1.12); }
.tq-rate__stars label:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent); border-radius: var(--r-sm); }
.tq-rate__label { margin-top: 4px; font: 600 19px/27px var(--font-display); color: var(--accent); }
.tq-rate .tq-textarea { min-height: 110px; }
.tq-rate .tq-btn--primary[disabled] { opacity: .45; }

/* Empty state */
.tq-empty { display: grid; justify-items: center; gap: 14px; padding: 48px 32px 44px; border: 1px dashed var(--border-strong); border-radius: var(--r-xl); background: var(--surface); text-align: center; }
.tq-empty__icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); }
.tq-empty__icon .tq-icon { width: 30px; height: 30px; }
.tq-empty p { max-width: 460px; color: var(--text-2); font-size: 14px; line-height: 22px; }

/* Skeleton */
.tq-skeleton { border-radius: var(--r-md); background: linear-gradient(90deg, var(--elevated) 0%, var(--border) 50%, var(--elevated) 100%); background-size: 200% 100%; animation: tq-shimmer 1.4s linear infinite; }
@keyframes tq-shimmer { to { background-position: -200% 0; } }

/* Toast */
.tq-toasts { position: fixed; z-index: 90; right: 24px; bottom: 24px; display: grid; gap: 10px; width: min(360px, calc(100vw - 32px)); }
.tq-toast { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--tone, var(--accent)) 50%, transparent); border-radius: var(--r-lg); background: var(--elevated); box-shadow: var(--shadow); animation: tq-rise .25s var(--ease); }
.tq-toast--success { --tone: var(--success); } .tq-toast--error { --tone: var(--danger); } .tq-toast--info { --tone: var(--info); }
@keyframes tq-rise { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 767px) { .tq-toasts { right: 16px; bottom: calc(var(--tabbar-h) + 16px); } }

/* Overlays: scrim, dialog, drawer, sheet */
.tq-scrim { position: fixed; inset: 0; z-index: 70; background: var(--scrim); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s; }
.tq-scrim.is-open { opacity: 1; }
.tq-dialog { position: fixed; z-index: 80; inset: 50% auto auto 50%; width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; transform: translate(-50%, -50%); padding: 28px; border: 1px solid var(--border-strong); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-lg); }
.tq-dialog[hidden], .tq-drawer[hidden], .tq-sheet[hidden], .tq-scrim[hidden] { display: none; }
.tq-dialog__head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.tq-dialog__title { flex: 1; font: 600 26px/32px var(--font-display); }
.tq-dialog__actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 22px; }
.tq-drawer { position: fixed; z-index: 80; top: 0; bottom: 0; width: min(420px, 88vw); overflow: auto; padding: 24px; background: var(--surface); border-left: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); right: 0; animation: tq-slide-in .25s var(--ease); }
.tq-drawer--left { right: auto; left: 0; border-left: 0; border-right: 1px solid var(--border-strong); animation-name: tq-slide-in-left; }
@keyframes tq-slide-in { from { transform: translateX(24px); opacity: 0; } }
@keyframes tq-slide-in-left { from { transform: translateX(-24px); opacity: 0; } }
.tq-sheet-title { font: 600 26px/32px var(--font-display); }
@media (max-width: 767px) {
	.tq-dialog, .tq-sheet { inset: auto 0 0 0; transform: none; width: 100%; max-height: 86vh; border-radius: 20px 20px 0 0; padding: 10px 18px calc(30px + env(safe-area-inset-bottom)); animation: tq-sheet-up .25s var(--ease); }
	.tq-dialog::before, .tq-sheet::before { content: ""; display: block; width: 40px; height: 4px; margin: 0 auto 16px; border-radius: 2px; background: var(--border-strong); }
	@keyframes tq-sheet-up { from { transform: translateY(24px); opacity: 0; } }
}
body.tq-lock { overflow: hidden; }

/* ---------- Header ---------- */
.tq-header { position: sticky; top: 0; z-index: 60; height: var(--header-h); background: color-mix(in srgb, var(--bg) 94%, transparent); border-bottom: 1px solid var(--border); backdrop-filter: blur(18px); }
.tq-header__inner { display: flex; align-items: center; gap: 28px; height: 100%; }
.tq-logo { display: inline-flex; align-items: baseline; font: 600 26px/1 var(--font-display); letter-spacing: -.01em; color: var(--text); }
.tq-logo span { font-style: italic; color: var(--accent); }
.tq-logo:hover { color: var(--text); }
.tq-nav { flex: 1; min-width: 0; }
.tq-header__search { flex: none; }
.tq-nav ul { display: flex; gap: 26px; }
.tq-nav a { font: 500 11px/16px var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; }
.tq-nav a:hover, .tq-nav .is-current a, .tq-nav [aria-current] { color: var(--accent); }
.tq-header__search { width: 232px; }
.tq-header__actions { display: flex; align-items: center; gap: 8px; }
.tq-user { display: inline-flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border: 1px solid var(--border-strong); border-radius: var(--r-pill); font: 500 14px/20px var(--font-ui); }
.tq-user img { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--accent); object-fit: cover; }
.tq-usermenu { position: relative; }
.tq-usermenu > summary { list-style: none; cursor: pointer; }
.tq-usermenu > summary::-webkit-details-marker { display: none; }
.tq-user span { max-width: 72px; }
.tq-user-menu { position: absolute; z-index: 70; right: 0; top: calc(100% + 8px); width: 280px; padding: 10px; border: 1px solid var(--border-strong); border-radius: var(--r-xl); background: var(--elevated); box-shadow: var(--shadow-lg); }
.tq-user-menu__head { display: flex; align-items: center; gap: 12px; padding: 8px 10px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--border); }
.tq-user-menu__head img { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--accent); }
.tq-user-menu__head span { display: grid; }
.tq-user-menu__head b { font: 600 19px/24px var(--font-display); }
.tq-user-menu__head small { font: 400 12px/17px var(--font-ui); }
.tq-user-menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: var(--r-md); font: 500 14px/20px var(--font-ui); color: var(--text-2); text-align: left; }
.tq-user-menu button:hover { background: var(--surface); color: var(--text); }
.tq-user-menu .tq-count { margin-left: auto; }
.tq-user-menu a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r-md); font: 500 14px/20px var(--font-ui); color: var(--text-2); }
.tq-user-menu a:hover { background: var(--surface); color: var(--text); }
.tq-count.is-hot { background: var(--accent); color: var(--on-accent); }
.tq-header__login { min-height: 40px; padding: 0 18px; border-color: var(--accent); color: var(--accent); }
.tq-header__menu-btn { display: none; }
.tq-header__search-btn { display: none; }
@media (max-width: 1199px) { .tq-header__search-btn { display: inline-grid; } }
/* Header fit: never let the menu run into the search box / account chip.
   Desktop spacing is tightened so all 5 items fit (also when signed in); if the bar is still too
   narrow, the menu drops its least important items: Hoàn thành, then Trang chủ (the logo links home),
   then Mới cập nhật (thresholds = measured item widths + gaps). */
@media (min-width: 1200px) { .tq-header__inner { gap: 24px; } .tq-nav ul { gap: 22px; } .tq-header__search { width: 216px; } }
@media (max-width: 1199px) { .tq-user { padding-right: 10px; } .tq-user > span { display: none; } }
.tq-nav { container-type: inline-size; }
@container (max-width: 527px) { .tq-nav li:nth-child(5) { display: none; } }
@container (max-width: 410px) { .tq-nav li:nth-child(1) { display: none; } }
@container (max-width: 294px) { .tq-nav li:nth-child(4) { display: none; } }
.tq-menu__label { margin: 24px 0 12px; }
/* Drawers start below the WordPress admin bar (editors/admins only). */
body.admin-bar .tq-drawer { top: 32px; }
@media (max-width: 782px) { body.admin-bar .tq-drawer { top: 46px; } }
/* Mobile drawer: account card + theme switch row (Figma 59:6649) */
.tq-menu-user { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--elevated); color: var(--text); }
.tq-menu-user:hover { border-color: var(--border-strong); color: var(--text); }
.tq-menu-user img, .tq-menu-user__icon { flex: none; width: 44px; height: 44px; border-radius: 50%; }
.tq-menu-user img { border: 1px solid var(--accent); object-fit: cover; }
.tq-menu-user__icon { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.tq-menu-user > span:not(.tq-menu-user__icon) { flex: 1; display: grid; min-width: 0; }
.tq-menu-user b { font: 500 15px/22px var(--font-ui); }
.tq-menu-user small { font: 400 12px/17px var(--font-ui); color: var(--accent); }
.tq-menu-user > .tq-icon { color: var(--muted); }
.tq-menu__theme { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 20px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--elevated); font: 500 14px/20px var(--font-ui); color: var(--text-2); text-align: left; }
.tq-menu__theme span { flex: 1; }
.tq-menu__theme[aria-checked="true"] .tq-toggle { background: var(--accent); }
.tq-menu__theme[aria-checked="true"] .tq-toggle::after { transform: translateX(18px); background: var(--on-accent); }
.tq-drawer > .tq-row { margin-bottom: 20px; }
body.is-reader .tq-header, body.is-reader .tq-tabbar { display: none; }
body.is-reader .tq-main { padding-bottom: 120px; }
@media (max-width: 1199px) { .tq-header__search { display: none; } }
@media (max-width: 767px) {
	.tq-header__inner { gap: 4px; }
	.tq-logo { font-size: 26px; }
	.tq-nav, .tq-header__login, .tq-header__theme, .tq-header__bell, .tq-usermenu { display: none; }
	.tq-header__actions { margin-left: auto; gap: 0; }
	.tq-header__menu-btn { display: inline-grid; order: 9; }
	.tq-header__inner { padding-right: 4px; }
	.tq-icon-btn { width: 44px; height: 44px; }
}

/* Logo image (Cài đặt giao diện → Chung) */
.tq-logo img { display: block; max-width: 220px; object-fit: contain; }

/* Announcement bar (Cài đặt giao diện → Đầu & chân trang) */
.tq-notice-bar { background: var(--accent); color: var(--on-accent); font: 500 13px/20px var(--font-ui); }
.tq-notice-bar--info { background: #2c3a52; color: #eef2fa; }
.tq-notice-bar--warn { background: #8a4b16; color: #fff7ec; }
.tq-notice-bar .tq-container { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.tq-notice-bar p { flex: 1; min-width: 0; padding: 8px 0; text-align: center; }
.tq-notice-bar a, .tq-notice-bar a:hover { display: inline-flex; align-items: center; gap: 4px; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.tq-notice-bar__x { display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-sm); color: inherit; opacity: .8; }
.tq-notice-bar__x:hover { opacity: 1; background: rgba(0, 0, 0, .12); }

/* Mobile drawer menu */
.tq-menu { display: grid; gap: 4px; }
.tq-menu a { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r-md); font: 500 14px/20px var(--font-ui); color: var(--text-2); }
.tq-menu a[aria-current] { background: var(--accent-soft); color: var(--text); }
.tq-menu a[aria-current] .tq-icon { color: var(--accent); }

/* Tab bar (mobile) */
.tq-tabbar { display: none; }
@media (max-width: 767px) {
	.tq-tabbar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); padding: 8px 8px calc(14px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 97%, transparent); border-top: 1px solid var(--border); backdrop-filter: blur(18px); }
	.tq-tabbar a { display: grid; justify-items: center; gap: 4px; padding: 4px 0; font: 400 12px/17px var(--font-ui); color: var(--muted); }
	.tq-tabbar a .tq-icon { width: 22px; height: 22px; }
	.tq-tabbar [aria-current] { color: var(--accent); }
}

/* ---------- Footer ---------- */
.tq-footer { border-top: 1px solid var(--border); padding: 56px 0 32px; background: var(--bg); }
.tq-footer__grid { display: grid; grid-template-columns: 340px repeat(3, max-content); column-gap: 80px; }
.tq-footer__about p { margin-top: 14px; font-size: 14px; line-height: 22px; color: var(--muted); }
.tq-footer h2 { font: 500 14px/20px var(--font-ui); margin-bottom: 12px; }
.tq-footer li { font-size: 14px; line-height: 22px; }
.tq-footer li + li { margin-top: 12px; }
.tq-footer li a { font-size: 14px; line-height: 22px; color: var(--muted); }
.tq-footer li a:hover { color: var(--accent); }
.tq-footer__copy { margin-top: 40px; font: 400 12px/17px var(--font-ui); letter-spacing: .01em; color: var(--muted); }
.tq-footer__compact { display: none; }
.tq-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tq-footer .tq-social li + li { margin-top: 0; }
.tq-social a { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--border-strong); border-radius: 50%; color: var(--text-2); transition: color .2s, border-color .2s; }
.tq-social a:hover { border-color: var(--accent); color: var(--accent); }
.tq-social .tq-icon { width: 17px; height: 17px; stroke: none; fill: currentColor; }
/* Footer/Mobile (Figma 38:2055) — tablet + mobile */
@media (max-width: 1199px) {
	.tq-footer { padding: 36px 0 28px; }
	.tq-footer__grid { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
	.tq-footer__about p { margin-top: 22px; max-width: 358px; }
	.tq-footer__wide, .tq-footer__col { display: none; }
	.tq-footer__compact { display: flex; gap: 40px; }
	.tq-footer__compact h2 { margin-bottom: 10px; }
	.tq-footer__compact li + li { margin-top: 10px; }
	.tq-footer__copy { margin-top: 22px; }
}

/* ---------- 6. Pages ---------- */

/* Page header (thể loại, tìm kiếm, BXH, cập nhật…) */
.tq-page-head { padding: 28px 0 32px; }
.tq-page-head--band { background: linear-gradient(to bottom, color-mix(in srgb, var(--tint, var(--accent-soft)) 100%, transparent), var(--bg)); padding-bottom: 48px; }
.tq-page-head__row { display: flex; align-items: center; gap: 48px; margin-top: 22px; }
.tq-page-head__text { flex: 1; min-width: 0; display: grid; gap: 12px; }
.tq-page-head__title { font: 600 48px/56px var(--font-display); }
.tq-page-head__desc { max-width: 640px; color: var(--text-2); }
.tq-page-head--center { text-align: center; }
.tq-page-head--center .tq-page-head__text { justify-items: center; }
@media (max-width: 767px) { .tq-page-head { padding: 18px 0 20px; } .tq-page-head__title { font-size: 34px; line-height: 40px; } .tq-page-head__row { margin-top: 14px; flex-direction: column; align-items: stretch; gap: 18px; } .tq-page-head__row > .tq-segment { display: flex; } .tq-page-head__row > .tq-segment a { flex: 1; text-align: center; padding-inline: 6px; } }

/* Cover fan (đầu trang thể loại / bộ sưu tập) */
.tq-fan { position: relative; width: 420px; height: 220px; flex: none; }
.tq-fan img { position: absolute; width: 140px; aspect-ratio: 5 / 7; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.tq-fan img:nth-child(1) { left: 20px; top: 30px; transform: rotate(-10deg); }
.tq-fan img:nth-child(2) { left: 250px; top: 24px; transform: rotate(10deg); }
.tq-fan img:nth-child(3) { left: 135px; top: 0; z-index: 1; }
@media (max-width: 1023px) { .tq-fan { display: none; } }

/* Home: intro + hero (Figma 6:52, 18:848) */
.tq-intro { padding-block: 48px 8px; }
.tq-intro p { color: var(--text-2); margin-top: 6px; }
.tq-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--bg); }
.tq-hero__slide { position: relative; padding: 56px 0 64px; }
.tq-hero__slide.is-active { animation: tq-fade .45s var(--ease); }
@keyframes tq-fade { from { opacity: 0; } }
.tq-hero__backdrop { position: absolute; z-index: -2; left: -100px; top: -100px; width: calc(100% + 200px); height: calc(100% + 200px); background: center / cover no-repeat; opacity: .32; filter: blur(45px); }
.tq-hero__slide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 0%, transparent) 60%, var(--bg) 100%), linear-gradient(90deg, color-mix(in srgb, var(--bg) 96%, transparent) 0%, color-mix(in srgb, var(--bg) 75%, transparent) 55%, color-mix(in srgb, var(--bg) 45%, transparent) 100%); }
:root[data-theme="light"] .tq-hero__slide::before { background: linear-gradient(180deg, transparent 60%, var(--bg) 100%), linear-gradient(90deg, color-mix(in srgb, var(--bg) 97%, transparent) 0%, color-mix(in srgb, var(--bg) 82%, transparent) 55%, color-mix(in srgb, var(--bg) 50%, transparent) 100%); }
.tq-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 480px; gap: 56px; align-items: center; }
.tq-hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; min-width: 0; }
.tq-hero__title { font: 600 56px/64px var(--font-display); letter-spacing: -.01em; }
.tq-hero__title a:hover { color: inherit; }
.tq-hero__quote { max-width: 620px; font: italic 500 21px/28px var(--font-display); color: var(--text-2); }
.tq-hero__rule { width: 64px; height: 1px; background: var(--accent); }
.tq-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; color: var(--text-2); }
.tq-hero__meta > * + *::before { content: ""; display: inline-block; width: 1px; height: 14px; margin-right: 20px; vertical-align: -3px; background: var(--border-strong); }
.tq-hero__desc { max-width: 560px; color: var(--text-2); }
.tq-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 8px; }
.tq-hero__progress { display: flex; align-items: center; gap: 12px; padding-top: 8px; font: 600 19px/27px var(--font-display); color: var(--muted); }
.tq-hero__progress > b:first-of-type { font-style: italic; color: var(--accent); }
.tq-hero__dots { display: flex; width: 160px; }
.tq-hero__dots button { position: relative; flex: 1; height: 24px; cursor: pointer; }
.tq-hero__dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--border-strong); transition: background-color .2s, height .2s, top .2s; }
.tq-hero__dots button:hover::before { background: var(--muted); }
.tq-hero__dots button[aria-current]::before { top: 10px; height: 4px; border-radius: 2px; background: var(--accent); }
.tq-hero__arrow { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--border-strong); border-radius: 50%; color: var(--text-2); transition: border-color .2s, color .2s, background-color .2s; }
.tq-hero__arrow:hover { border-color: var(--accent); color: var(--accent); }
.tq-hero[data-hero] { touch-action: pan-y; }
.tq-hero.is-dragging { cursor: grabbing; user-select: none; }
.tq-hero.is-dragging .tq-hero__grid { transition: none; }
.tq-hero__grid { transition: transform .25s var(--ease), opacity .25s var(--ease); }
.tq-hero__picks { display: grid; gap: 14px; width: 100%; padding-top: 28px; }
.tq-hero__picks-head { display: flex; align-items: center; gap: 16px; }
.tq-hero__picks-head::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.tq-hero__picks ul { display: flex; gap: 28px; }
.tq-hero__pick { display: flex; align-items: center; gap: 12px; text-align: left; color: var(--text); }
.tq-hero__pick img { width: 44px; height: 60px; object-fit: cover; border-radius: var(--r-sm); }
.tq-hero__pick > span { display: grid; gap: 2px; }
.tq-hero__pick b { font: italic 600 18px/28px var(--font-display); color: var(--accent); }
.tq-hero__pick span span { font: 500 14px/20px var(--font-ui); max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tq-hero__pick small { font: 400 12px/17px var(--font-ui); letter-spacing: .01em; color: var(--muted); }
.tq-hero__pick:hover span span { color: var(--accent); }
.tq-hero__stack { position: relative; width: 480px; height: 540px; }
.tq-hero__stack > img { position: absolute; width: 270px; height: 360px; object-fit: cover; border-radius: var(--r-xl); box-shadow: 0 20px 40px rgba(0, 0, 0, .55); }
.tq-hero__stack > img:nth-child(1) { left: 37px; top: 127px; transform: rotate(-9deg); opacity: .55; }
.tq-hero__stack > img:nth-child(2) { left: 194px; top: 137px; transform: rotate(8deg); opacity: .6; }
.tq-hero__frame { position: absolute; z-index: 1; left: 60px; top: 22px; width: 360px; height: 476px; padding: 11px; border: 1px solid var(--accent); border-radius: var(--r-xl); background: var(--bg); backdrop-filter: blur(10px); }
.tq-hero__frame img { width: 336px; height: 452px; object-fit: cover; border-radius: var(--r-lg); box-shadow: 0 28px 56px rgba(0, 0, 0, .6); }
.tq-hero__seal { position: absolute; z-index: 2; left: 384px; top: 0; display: grid; place-content: center; justify-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 24px rgba(0, 0, 0, .5); }
.tq-hero__seal b { font: 600 26px/29px var(--font-display); }
.tq-hero__seal span { font: 500 11px/16px var(--font-ui); letter-spacing: .2em; text-transform: uppercase; }
.tq-hero__note { position: absolute; z-index: 2; left: 0; top: 430px; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--r-lg); background: var(--elevated); backdrop-filter: blur(8px); box-shadow: 0 12px 28px rgba(0, 0, 0, .45); }
.tq-hero__note i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--success); }
.tq-hero__note b { display: block; font: 500 14px/20px var(--font-ui); color: var(--text); }
.tq-hero__note small { display: block; font: 400 12px/17px var(--font-ui); color: var(--muted); }
@media (max-width: 1199px) {
	.tq-hero__grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
	.tq-hero__stack { width: 300px; height: auto; }
	.tq-hero__stack > img, .tq-hero__note, .tq-hero__seal { display: none; }
	.tq-hero__frame { position: static; display: block; width: 100%; height: auto; }
	.tq-hero__frame img { width: 100%; height: auto; aspect-ratio: 336 / 452; }
	.tq-hero__title { font-size: 44px; line-height: 50px; }
}
@media (max-width: 767px) {
	/* Home mobile (Figma 12:732): compact featured card, hot list before latest, 3 latest + more, scrolling shelves */
	.tq-intro { padding-block: 28px 0; }
	.tq-intro .tq-h1 { font-size: 28px; line-height: 36px; }
	.tq-intro p { font-size: 14px; line-height: 22px; margin-top: 4px; }
	.tq-hero { margin-top: 16px; background: none; }
	.tq-hero__slide { padding: 0; }
	.tq-hero__slide::before, .tq-hero__backdrop, .tq-hero__quote, .tq-hero__rule, .tq-hero__desc, .tq-hero__picks, .tq-hero__actions .tq-follow, .tq-hero__stack > img, .tq-hero__seal, .tq-hero__note { display: none; }
	.tq-hero__grid { grid-template-columns: 116px minmax(0, 1fr); gap: 14px; align-items: start; width: calc(100% - 32px); padding: 14px; border: 1px solid var(--accent); border-radius: var(--r-xl); background: var(--surface); }
	.tq-hero__stack { order: -1; width: 116px; }
	.tq-hero__frame { position: static; display: block; width: 116px; height: 162px; padding: 0; border: 0; background: none; backdrop-filter: none; }
	.tq-hero__frame img { width: 116px; height: 162px; border-radius: var(--r-lg); box-shadow: none; }
	.tq-hero__text { gap: 8px; }
	.tq-hero__title { font-size: 19px; line-height: 27px; letter-spacing: 0; }
	.tq-hero__meta { gap: 0; font: 400 12px/17px var(--font-ui); letter-spacing: .01em; text-transform: none; color: var(--muted); }
	.tq-hero__meta > * + *::before { content: "·"; display: inline; width: auto; height: auto; margin: 0 5px; background: none; vertical-align: baseline; }
	.tq-hero__actions { padding-top: 4px; }
	.tq-hero__progress { padding-top: 6px; gap: 8px; }
	.tq-hero__progress > b { display: none; }
	.tq-hero__arrow { width: 30px; height: 30px; }
	.tq-hero__dots { width: 96px; }
	.tq-hero__actions .tq-btn { min-height: 46px; padding: 0 28px; }
	.tq-section { margin-top: 28px; }
	.tq-more-genres { display: none; }
	.tq-tiles { margin-bottom: 10px; }
	.tq-home-genres { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); gap: 8px; }
	.tq-home-genres::-webkit-scrollbar { display: none; }
	.tq-home-latest { gap: 28px; }
	.tq-home-latest > aside { display: contents; }
	.tq-home-latest > aside > * { order: 1; }
	.tq-home-latest > aside > .tq-home-hot { order: -1; padding: 0; border: 0; background: none; }
	.tq-home-hot .tq-box__title { justify-content: flex-start; gap: 24px; font: 600 28px/36px var(--font-display); margin-bottom: 8px; }
	.tq-home-hot .tq-box__title::after { content: ""; order: 1; flex: 1; height: 1px; background: var(--border-strong); }
	.tq-home-hot .tq-box__link { display: inline-flex; order: 2; }
	.tq-home-latest > aside > :not(.tq-home-hot), .tq-home-explore > .tq-section-head, .tq-ranking-band { display: none; }
	.tq-home-hot .tq-rank:nth-child(n+4), .tq-home-hot .tq-box__more { display: none; }
	.tq-home-latest__main .tq-grid--2 { gap: 12px; }
	.tq-home-latest__main .tq-grid--2 > :nth-child(n+4), .tq-home-latest__main .tq-pagination { display: none; }
	.tq-home-latest__more { display: block; margin-top: 12px; }
	.tq-home-latest__main .tq-section-head { margin-bottom: 12px; }
	main > .tq-section > .tq-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
	main > .tq-section > .tq-grid::-webkit-scrollbar { display: none; }
	main > .tq-section > .tq-grid > .tq-card { flex: 0 0 180px; scroll-snap-align: start; }
	main > .tq-section > .tq-section-head { margin-bottom: 12px; }
	.tq-home-cols, .tq-home-genre { display: none; }
}
.tq-home-latest--full { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1200px) { .tq-home-latest--full .tq-grid--2 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1199px) { .tq-hero__status { display: none; } }

/* Genre tiles */
.tq-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 19px; }
.tq-tile { position: relative; display: block; height: 132px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-xl); background: linear-gradient(135deg, var(--tint, var(--elevated)), var(--surface)); }
.tq-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 90%, transparent) 25%, transparent 75%); }
.tq-tile img { position: absolute; width: 56px; aspect-ratio: 5 / 7; object-fit: cover; border-radius: var(--r-sm); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease); }
.tq-tile img:nth-of-type(1) { left: 62%; top: 14px; transform: rotate(10deg); }
.tq-tile img:nth-of-type(2) { left: calc(62% + 18px); top: 24px; transform: rotate(2deg); }
.tq-tile img:nth-of-type(3) { left: calc(62% + 36px); top: 34px; transform: rotate(-6deg); }
.tq-tile:hover img { transform: translateY(-4px) rotate(0); }
.tq-tile__name { position: absolute; z-index: 1; left: 18px; bottom: 31px; font: 700 21px/25px var(--font-display); color: var(--text); }
.tq-tile__count { position: absolute; z-index: 1; left: 18px; bottom: 11px; font: 400 12px/17px var(--font-ui); color: var(--muted); }
@media (max-width: 1199px) { .tq-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } .tq-tile { height: 112px; } }
@media (max-width: 767px) { .tq-tiles { display: flex; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); gap: 10px; } .tq-tile { flex: 0 0 150px; height: 96px; border-radius: var(--r-lg); } .tq-tile__name { left: 14px; font-size: 19px; bottom: 13px; } .tq-tile__count, .tq-tile img:nth-of-type(3) { display: none; } .tq-tile img { width: 48px; } .tq-tile img:nth-of-type(1) { left: auto; right: 10px; top: 4px; } .tq-tile img:nth-of-type(2) { left: auto; right: -2px; top: 20px; } }

.tq-more-genres { margin: 20px 0 12px; color: var(--text-2); }

/* Mini list (truyện hoàn thành) */
.tq-mini-list { display: grid; gap: 14px; }
.tq-mini { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 12px; }
.tq-mini .tq-cover { width: 40px; }
.tq-mini b { display: block; font: 500 14px/20px var(--font-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tq-mini small { display: inline-flex; align-items: center; gap: 4px; font: 400 12px/17px var(--font-ui); }

/* Weekly ranking band */
.tq-ranking-band { margin-top: 0; padding: 64px 0; background: linear-gradient(to bottom, var(--bg), var(--surface) 50%, var(--bg)); }
:root[data-theme="light"] .tq-ranking-band { background: linear-gradient(to bottom, var(--bg), var(--elevated) 50%, var(--bg)); }
.tq-ranking-band .tq-section-head { margin-bottom: 28px; }
.tq-podium { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; counter-reset: rank; }
.tq-podium li { position: relative; padding-left: 74px; counter-increment: rank; gap: 4px; }
.tq-podium li::before { content: counter(rank); position: absolute; left: 4px; top: 40px; font: italic 600 163px/183px var(--font-display); color: var(--muted); opacity: .55; pointer-events: none; }
.tq-podium li:nth-child(-n+3)::before { color: var(--accent); opacity: .9; }
.tq-podium .tq-card__title { margin-top: 14px; }
.tq-podium li:first-child .tq-cover { box-shadow: 0 0 0 2px var(--accent), 0 18px 36px rgba(0, 0, 0, .6); }
.tq-podium .tq-cover { position: relative; z-index: 1; width: 150px; height: 212px; aspect-ratio: auto; box-shadow: 0 18px 36px rgba(0, 0, 0, .6); }
.tq-podium li:first-child::before { left: 4px; }
.tq-podium li::before { left: -6px; }
.tq-podium h3 { margin-top: 10px; font: 500 14px/20px var(--font-ui); }
.tq-podium p { font: 400 12px/17px var(--font-ui); color: var(--muted); }
.tq-podium .tq-up { margin-top: 3px; color: var(--gold); }
@media (max-width: 1023px) { .tq-podium { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } .tq-podium li:nth-child(5) { display: none; } .tq-podium li { padding-left: 52px; } .tq-podium li::before { font-size: 140px; line-height: 140px; } }
@media (max-width: 767px) { .tq-ranking-band { padding: 36px 0; } .tq-podium { display: flex; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); } .tq-podium li { flex: 0 0 170px; } .tq-podium li:nth-child(5) { display: block; } }

/* SEO intro + FAQ */
.tq-about { display: grid; grid-template-columns: 520px minmax(0, 1fr); gap: 48px; padding: 41px; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); }
.tq-about__text { display: grid; gap: 14px; color: var(--text-2); }
.tq-faq { display: grid; gap: 10px; }
.tq-faq details { border-radius: var(--r-md); background: var(--bg); padding: 16px 18px; }
.tq-faq details[open] { background: var(--elevated); border-radius: var(--r-xl); }
.tq-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; font: 500 14px/20px var(--font-ui); }
.tq-faq summary::-webkit-details-marker { display: none; }
.tq-faq summary::after { content: "+"; font: 400 20px/1 var(--font-ui); color: var(--muted); }
.tq-faq details[open] summary::after { content: "−"; color: var(--accent); }
.tq-faq details p { margin-top: 8px; font-size: 14px; line-height: 22px; color: var(--text-2); }
@media (max-width: 1023px) { .tq-about { grid-template-columns: 1fr; padding: 28px; } }
@media (max-width: 767px) { .tq-about { padding: 20px; gap: 24px; } }
.tq-about .tq-h2 { font-size: 28px; line-height: 36px; }

/* Home tablet (Figma 63:8364, 768): hero gọn, 6 thể loại 3×2, 6 truyện mới 2 cột, BXH 4, đề cử 4, giới thiệu ngắn */
@media (min-width: 768px) and (max-width: 1199px) {
	.tq-intro { padding-block: 32px 0; }
	.tq-intro p { margin-top: 4px; }
	.tq-hero__slide { padding: 36px 0 40px; }
	.tq-hero__slide::before { background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 95%, transparent), color-mix(in srgb, var(--bg) 50%, transparent)); }
	:root[data-theme="light"] .tq-hero__slide::before { background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 95%, transparent), color-mix(in srgb, var(--bg) 50%, transparent)); }
	.tq-hero__backdrop { opacity: .3; filter: blur(35px); }
	.tq-hero__grid { grid-template-columns: minmax(0, 1fr) 252px; gap: 32px; }
	.tq-hero__text { gap: 14px; }
	.tq-hero__title { font-size: 38px; line-height: 43px; }
	.tq-hero__quote, .tq-hero__rule, .tq-hero__picks, .tq-hero__week { display: none; }
	.tq-hero__progress { padding-top: 2px; }
	.tq-hero__progress > b { display: none; }
	.tq-hero__dots { width: 120px; }
	.tq-hero__meta { gap: 0; }
	.tq-hero__meta > * + *::before { content: "·"; display: inline; width: auto; height: auto; margin: 0 9px; background: none; vertical-align: baseline; }
	.tq-hero__desc { font-size: 14px; line-height: 22px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.tq-hero__actions { gap: 10px; padding-top: 4px; }
	.tq-hero__actions .tq-btn { padding: 0 28px; }
	.tq-hero__actions .tq-follow__full { display: none; }
	.tq-hero__actions .tq-follow__short { display: inline; }
	.tq-hero__actions .tq-follow .tq-icon { display: none; }
	.tq-hero__stack { width: 252px; }
	.tq-hero__frame { padding: 10px; }
	.tq-hero__frame img { aspect-ratio: 230 / 306; box-shadow: 0 20px 40px rgba(0, 0, 0, .6); }
	.tq-home-explore { margin-top: 40px; }
	.tq-more-genres, .tq-home-genres { display: none; }
	.tq-home-latest { margin-top: 48px; }
	.tq-home-latest > aside, .tq-home-latest__main .tq-pagination { display: none; }
	.tq-home-latest__main .tq-grid--2 { gap: 14px 16px; }
	.tq-home-latest__main .tq-grid--2 > :nth-child(n+7) { display: none; }
	.tq-ranking-band { padding: 48px 0 0; background: none; }
	:root[data-theme="light"] .tq-ranking-band { background: none; }
	.tq-ranking-band .tq-section-head { margin-bottom: 16px; }
	.tq-podium, .tq-home-rec .tq-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
	.tq-podium li:nth-child(5), .tq-home-rec .tq-grid > :nth-child(n+5) { display: none; }
	.tq-podium li, .tq-podium li:first-child { padding-left: 52px; }
	.tq-podium li::before, .tq-podium li:first-child::before { left: -4px; top: 40px; font-size: 120px; line-height: 134px; }
	.tq-podium .tq-cover { width: 112px; height: 158px; box-shadow: 0 14px 28px rgba(0, 0, 0, .6); }
	.tq-podium li:first-child .tq-cover { box-shadow: 0 0 0 2px var(--accent), 0 14px 28px rgba(0, 0, 0, .6); }
	.tq-podium h3.tq-card__title { margin-top: 0; display: block; white-space: nowrap; text-overflow: ellipsis; }
	.tq-podium p:not(.tq-up) { display: none; }
	.tq-podium .tq-up { margin-top: 0; }
	.tq-podium li { gap: 12px; }
	.tq-home-rec { margin-top: 48px; }
	.tq-home-cols, .tq-home-genre { display: none; }
	.tq-home-about { margin-top: 48px; }
	.tq-about { grid-template-columns: minmax(0, 1fr); padding: 28px; }
	.tq-about__text { gap: 12px; }
	.tq-home-about .tq-faq, .tq-about__more { display: none; }
}
@media (min-width: 768px) and (max-width: 1199px) {
	.tq-nav ul { gap: 20px; }
	.tq-nav li { display: list-item; }
	.tq-nav li:first-child, .tq-nav li:nth-child(n+5) { display: none; }
	.tq-header__theme { display: none; }
}

/* Story detail */
.tq-story-hero { position: relative; isolation: isolate; overflow: hidden; padding: 24px 0 48px; }
.tq-story-hero__backdrop { position: absolute; inset: -100px; z-index: -2; background: center / cover no-repeat; opacity: .3; filter: blur(90px); }
.tq-story-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 55%, transparent), color-mix(in srgb, var(--bg) 85%, transparent)), linear-gradient(to bottom, transparent 50%, var(--bg)); }
.tq-story-hero__grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 40px; margin-top: 28px; }
.tq-story-hero__info { display: grid; gap: 16px; align-content: start; padding-top: 8px; }
.tq-story-hero__info .tq-facts { margin-top: 12px; }
.tq-story-hero__title { font: 600 56px/64px var(--font-display); }
.tq-story-hero__alt { color: var(--text-2); }
.tq-story-hero__rating { display: flex; align-items: center; gap: 12px; }
.tq-story-hero__rating b { font: 600 19px/1 var(--font-display); }
.tq-facts { display: flex; flex-wrap: wrap; gap: 12px; }
.tq-fact { display: grid; gap: 2px; min-width: 90px; padding: 12px 17px; border: 1px solid var(--border); border-radius: var(--r-md); background: color-mix(in srgb, var(--surface) 80%, transparent); }
.tq-fact dt { font: 400 12px/17px var(--font-ui); color: var(--muted); }
.tq-fact dd { margin: 0; font: 500 14px/20px var(--font-ui); }
.tq-story-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
/* Figma 9:411 details */
.tq-story-hero .tq-breadcrumb { font-size: 14px; line-height: 22px; }
.tq-story-hero .tq-breadcrumb .tq-icon { width: 14px; height: 14px; }
.tq-story-hero .tq-cover--framed img { border-radius: var(--r-xl); box-shadow: 0 16px 32px rgba(0, 0, 0, .45); }
.tq-story-hero .tq-fact { background: var(--surface); padding: 12px 16px; }
.tq-story-hero__actions .tq-btn--plain { min-height: 46px; padding: 0 16px; background: none; border-color: var(--border); }
.tq-story-hero__actions .tq-icon-btn--outline { width: 46px; height: 46px; border-color: var(--border); }
.tq-story-tabs .tq-tabs { gap: 36px; }
.tq-story-tabs .tq-tabs a { padding: 18px 0 16px; }
#chuong .tq-chapter { padding: 14px 16px; }
.tq-story-tabs { position: sticky; top: var(--header-h); z-index: 20; background: var(--bg); }
.tq-synopsis { padding: 20px 24px; border-radius: var(--r-xl); background: var(--surface); color: var(--text-2); }
.tq-synopsis__body { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.tq-synopsis.is-open .tq-synopsis__body { display: block; }
.tq-synopsis__body p + p { margin-top: 12px; }
.tq-synopsis__toggle { margin-top: 12px; color: var(--accent); font: 500 14px/20px var(--font-ui); display: inline-flex; align-items: center; gap: 4px; }
.tq-chapter-tools { display: flex; gap: 12px; margin-bottom: 16px; }
.tq-chapter-tools .tq-search { flex: 1; height: 44px; background: var(--surface); border-color: var(--border); }
.tq-btn--plain { min-height: 42px; padding: 0 14px; gap: 8px; border-color: var(--border); background: var(--surface); font: 500 14px/20px var(--font-ui); letter-spacing: 0; text-transform: none; color: var(--text-2); }
.tq-stack--lg { gap: 40px; }
.tq-story-body { margin-top: 32px; }
.tq-continue__bar { margin: 12px 0 14px; }
.tq-rating-box__score { display: flex; align-items: center; gap: 18px; }
.tq-rating-box__score > b { min-width: 72px; font: 600 55px/62px var(--font-display); letter-spacing: -.01em; color: var(--accent); }
.tq-bars { flex: 1; display: grid; gap: 6px; }
.tq-bars div { display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 8px; font: 400 12px/1 var(--font-ui); color: var(--muted); }
.tq-bars i { height: 4px; border-radius: 2px; background: var(--elevated); overflow: hidden; }
.tq-bars i::before { content: ""; display: block; height: 100%; width: var(--w, 0%); background: var(--accent); }
.tq-progress { height: 6px; border-radius: 3px; background: var(--elevated); overflow: hidden; }
.tq-progress i { display: block; height: 100%; width: var(--w, 0%); background: var(--accent); }
.tq-sticky-cta { display: none; }
/* Story tablet (Figma 64:8526) + mobile (39:2031): hero gọn, nút "Chương N", theo dõi chỉ icon */
@media (max-width: 1199px) {
	.tq-story-hero .tq-breadcrumb { gap: 6px; font-size: 12px; line-height: 17px; }
	.tq-story-hero .tq-breadcrumb li { gap: 6px; }
	.tq-story-hero__info { gap: 12px; padding-top: 0; min-width: 0; }
	.tq-story-hero__info .tq-facts { margin-top: 0; gap: 8px; }
	.tq-story-hero__alt { font-size: 14px; line-height: 22px; }
	.tq-fact { min-width: 0; padding: 10px 12px; background: var(--surface); }
	.tq-fact dd { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.tq-story-hero .tq-chips { gap: 8px; }
	.tq-story-hero__actions { gap: 10px; padding-top: 0; }
	.tq-story-hero__actions .tq-btn--plain { width: 46px; min-height: 46px; padding: 0; gap: 0; font-size: 0; border-color: var(--border-strong); background: none; color: var(--text); }
	.tq-story-hero__actions .tq-btn--plain .tq-icon { width: 18px; height: 18px; }
	.tq-story-body { margin-top: 28px; }
	.tq-story-body > .tq-stack--lg { gap: 36px; }
	.tq-synopsis { padding: 0; border-radius: 0; background: none; }
	.tq-synopsis__body { -webkit-line-clamp: 3; }
	.tq-story-body > aside { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 36px; }
}
@media (min-width: 768px) and (max-width: 1199px) {
	.tq-story-hero { padding: 20px 0 36px; }
	.tq-story-hero::before { background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 55%, transparent), var(--bg)); }
	:root[data-theme="light"] .tq-story-hero::before { background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 55%, transparent), var(--bg)); }
	.tq-story-hero__backdrop { opacity: .3; filter: blur(35px); }
	.tq-story-hero__grid { grid-template-columns: 218px minmax(0, 1fr); gap: 28px; margin-top: 18px; }
	.tq-story-hero__grid .tq-cover--framed { padding: 8px; align-self: start; }
	.tq-story-hero__grid .tq-cover--framed img { width: 200px; height: 280px; aspect-ratio: auto; }
	.tq-story-hero__title { font-size: 41px; line-height: 50px; letter-spacing: -.01em; }
	.tq-story-hero .tq-facts { flex-wrap: nowrap; }
	.tq-story-hero .tq-fact { width: auto; min-width: 0; flex: 1 1 auto; padding: 10px 12px; }
		.tq-fact--5, .tq-fact--6 { display: none; } /* Figma 64:8526 shows 4 facts on tablet */
	.tq-story-hero__actions { flex-wrap: nowrap; }
	.tq-story-hero__actions [data-share] { display: none; }
}
@media (max-width: 767px) {
	.tq-story-hero { padding: 16px 0 28px; }
	.tq-story-hero::before { background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 40%, transparent), var(--bg) 60%); }
	:root[data-theme="light"] .tq-story-hero::before { background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 40%, transparent), var(--bg) 60%); }
	.tq-story-hero__backdrop { opacity: .35; filter: blur(30px); }
	.tq-story-hero__grid { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 14px; margin-top: 14px; }
	.tq-story-hero__grid .tq-cover--framed { width: auto; padding: 8px; }
	.tq-story-hero__grid .tq-cover--framed img { width: 168px; height: 236px; aspect-ratio: auto; }
	.tq-story-hero__info { justify-items: center; gap: 14px; width: 100%; }
	.tq-story-hero__title { font-size: 34px; line-height: 39px; letter-spacing: -.01em; }
	.tq-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; text-align: left; }
	.tq-story-hero .tq-chips { flex-wrap: nowrap; overflow-x: auto; width: calc(100% + 32px); margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; justify-content: safe center; }
	.tq-story-hero .tq-chips::-webkit-scrollbar { display: none; }
	.tq-story-hero__actions { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px 8px; }
	.tq-story-hero__actions .tq-btn--primary { grid-column: 1 / -1; }
	.tq-story-hero__actions .tq-btn--secondary { min-width: 0; padding-inline: 12px; }
	.tq-story-hero__actions .tq-btn--plain { padding: 0; }
	.tq-story-tabs .tq-tabs { gap: 24px; }
	.tq-chapters-more { width: 100%; }
					.tq-similar { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
	.tq-similar::-webkit-scrollbar { display: none; }
	.tq-similar > .tq-card { flex: 0 0 150px; scroll-snap-align: start; }
	.tq-story-body > aside { grid-template-columns: minmax(0, 1fr); }
	.tq-sticky-cta { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 97%, transparent); border-top: 1px solid var(--border); backdrop-filter: blur(18px); }
	.tq-sticky-cta > div { flex: 1; min-width: 0; }
	body.has-sticky-cta .tq-tabbar { display: none; }
}

/* Reader — Figma 95:8710 (desktop) / 97:8769 (mobile) */
.tq-reader-bar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 16px; padding: 12px 24px; background: color-mix(in srgb, var(--surface) 95%, transparent); border-bottom: 1px solid var(--border); backdrop-filter: blur(18px); transition: transform .25s var(--ease); }
.tq-reader-bar.is-hidden { transform: translateY(-100%); }
.tq-reader-bar .tq-logo { font-size: 26px; flex: none; }
.tq-reader-bar__sep { flex: none; width: 1px; height: 28px; background: var(--border); }
.tq-reader-bar__title { flex: 1; min-width: 0; display: grid; gap: 2px; }
.tq-reader-bar__title a { font: 400 12px/16px var(--font-ui); color: var(--muted); }
.tq-reader-bar__title a:hover { color: var(--accent); }
.tq-reader-bar__title span { font: 500 14px/20px var(--font-ui); color: var(--text); }
.tq-reader-bar__tools { display: flex; align-items: center; gap: 4px; }
.tq-reader-nav { display: flex; align-items: center; gap: 6px; }
.tq-icon-btn--soft { background: var(--elevated); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.tq-icon-btn--accent { background: var(--accent); color: var(--on-accent); }
.tq-icon-btn--accent:hover { background: var(--accent-hover); color: var(--on-accent); }
.tq-icon-btn.is-disabled { opacity: .35; pointer-events: none; }
.tq-chapter-select { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 14px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--elevated); font: 500 14px/1 var(--font-ui); color: var(--text); transition: border-color .2s; }
.tq-chapter-select:hover { border-color: var(--border-strong); }
.tq-chapter-select .tq-icon { color: var(--muted); }
.tq-chapter-select__total { font-weight: 400; color: var(--muted); }
.tq-reader-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.tq-reader-progress span { display: block; width: 0; height: 100%; background: var(--accent); border-radius: 0 2px 2px 0; }

.tq-reader-head { max-width: 848px; margin: 0 auto; padding: 56px var(--gutter) 24px; display: grid; justify-items: center; gap: 14px; text-align: center; }
.tq-reader-head__eyebrow { font: 600 12px/16px var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.tq-reader-head h1 { font: 600 40px/52px var(--font-display); text-wrap: balance; }
.tq-reader-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font: 400 13px/18px var(--font-ui); color: var(--text-2); }
.tq-reader-meta li { display: inline-flex; align-items: center; gap: 6px; }
.tq-reader-meta .tq-icon { width: 14px; height: 14px; color: var(--muted); }
.tq-reader-meta__group, .tq-reader-meta__group .tq-icon { color: var(--accent); font-weight: 500; }
.tq-reader-controls { width: 100%; margin-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); }
.tq-reader-controls__group { display: flex; align-items: center; gap: 10px; padding-left: 8px; font: 400 12px/16px var(--font-ui); color: var(--muted); }
.tq-seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg); }
.tq-seg button { padding: 6px 14px; border: 1px solid transparent; border-radius: 7px; font: 500 13px/18px var(--font-ui); color: var(--muted); transition: color .2s, background-color .2s; }
.tq-seg button:hover { color: var(--text); }
.tq-seg button[aria-pressed="true"] { background: var(--elevated); border-color: var(--border-strong); color: var(--accent); font-weight: 600; }
.tq-reader-controls__report { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--r-md); font: 500 13px/18px var(--font-ui); color: var(--text-2); }
.tq-reader-controls__report .tq-icon { color: var(--muted); }
.tq-reader-controls__report:hover { background: var(--elevated); color: var(--text); }
.tq-reader-keys { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; font: 400 12px/16px var(--font-ui); color: var(--muted); }
.tq-reader-keys kbd { padding: 1px 6px 2px; border: 1px solid var(--border-strong); border-radius: 4px; background: var(--elevated); font: 500 11px/16px var(--font-ui); color: var(--text-2); }
.tq-reader-keys i { margin: 0 4px; font-style: normal; color: var(--border-strong); }

.tq-reader-pages { max-width: min(var(--reader-w, 800px), 100%); margin: 0 auto; border-radius: 4px; overflow: hidden; }
.tq-reader-pages img { width: 100%; margin: 0 auto; background: var(--surface); }
.tq-reader-pages.has-gap img + img { margin-top: 12px; }

.tq-reader-end { max-width: 848px; margin: 0 auto; padding: 48px var(--gutter) 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; } /* minmax: the related-stories scroller must not widen the column */
.tq-reader-done { display: grid; justify-items: center; gap: 10px; text-align: center; }
.tq-reader-done__check { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--accent); border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.tq-reader-done h2 { font: 600 26px/34px var(--font-display); }
.tq-reader-done__progress { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; font: 400 13px/18px var(--font-ui); color: var(--muted); }
.tq-reader-done__progress b { font-weight: 500; color: var(--text-2); }
.tq-meter { display: block; width: 240px; height: 6px; border-radius: var(--r-pill); background: var(--elevated); overflow: hidden; }
.tq-meter i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.tq-reader-end__nav { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 12px; }
.tq-chapter-btn { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 20px; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); color: var(--text); transition: border-color .2s, transform .2s, box-shadow .2s; }
.tq-chapter-btn:hover { border-color: var(--border-strong); color: var(--text); }
.tq-chapter-btn > .tq-icon { flex: none; color: var(--muted); }
.tq-chapter-btn > span:first-child, .tq-chapter-btn > .tq-icon + span { flex: 1; min-width: 0; }
.tq-chapter-btn small { display: block; font: 400 12px/17px var(--font-ui); color: var(--muted); }
.tq-chapter-btn b { display: block; font: 600 18px/26px var(--font-display); }
.tq-chapter-btn.is-disabled { opacity: .45; pointer-events: none; }
.tq-chapter-btn--next { padding: 20px 20px 20px 24px; border: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 92%, #fff), color-mix(in srgb, var(--accent) 82%, #000)); color: var(--on-accent); box-shadow: 0 10px 30px -6px color-mix(in srgb, var(--accent) 40%, transparent); }
.tq-chapter-btn--next:hover { color: var(--on-accent); transform: translateY(-1px); box-shadow: 0 14px 34px -6px color-mix(in srgb, var(--accent) 50%, transparent); }
.tq-chapter-btn--next small { font: 600 11px/16px var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--on-accent); opacity: .8; }
.tq-chapter-btn--next b { font-size: 22px; line-height: 30px; color: var(--on-accent); }
.tq-chapter-btn__arrow { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .28); }
.tq-chapter-btn--latest { border-style: dashed; }
.tq-chapter-btn--latest > .tq-icon { color: var(--accent); }
.tq-reader-end__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tq-reader-end__actions > .tq-btn, .tq-reader-end__actions .tq-follow > .tq-btn { flex: 1 1 180px; gap: 8px; font: 500 14px/1 var(--font-ui); letter-spacing: 0; text-transform: none; }
.tq-reader-end__actions .tq-btn .tq-icon { color: var(--muted); }
.tq-reader-end__actions .tq-btn.is-on .tq-icon { color: var(--accent); }
.tq-reader-credit { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--accent-soft); }
.tq-reader-credit__avatar { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border-strong); border-radius: 50%; background: var(--surface); font: 600 15px/1 var(--font-display); color: var(--accent); }
.tq-reader-credit b { display: block; font: 600 15px/22px var(--font-ui); }
.tq-reader-credit small { display: block; font: 400 13px/18px var(--font-ui); color: var(--muted); }
.tq-reader-related { padding-top: 24px; }
.tq-reader-about { display: grid; gap: 8px; padding: 18px 22px; border-radius: var(--r-xl); }
.tq-reader-about a { color: var(--accent); }

/* Floating dock: all sizes (replaces the old right-hand tool rail) */
.tq-reader-dock { position: fixed; z-index: 60; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 6px; border: 1px solid var(--border-strong); border-radius: var(--r-pill); background: color-mix(in srgb, var(--elevated) 94%, transparent); backdrop-filter: blur(16px); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); transition: transform .25s var(--ease), opacity .25s; }
.tq-reader-dock.is-hidden { transform: translate(-50%, 140%); opacity: 0; pointer-events: none; }
.tq-reader-dock .tq-icon-btn { border-radius: 50%; }
span.tq-reader-dock__extra { display: contents; }
.tq-reader-dock__sep { flex: none; width: 1px; height: 22px; margin: 0 2px; background: var(--border); }
.tq-reader-dock__chapter { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; height: 40px; padding: 0 14px; border-radius: var(--r-pill); font: 500 14px/1 var(--font-ui); color: var(--text); transition: background-color .2s; }
.tq-reader-dock__chapter:hover { background: var(--surface); }
.tq-reader-dock__chapter .tq-icon { flex: none; color: var(--muted); }
.tq-reader-dock__next { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px 0 16px; border-radius: var(--r-pill); background: var(--accent); font: 600 13px/1 var(--font-ui); color: var(--on-accent); white-space: nowrap; transition: background-color .2s; }
.tq-reader-dock__next:hover { background: var(--accent-hover); color: var(--on-accent); }
.tq-reader-dock__next.is-disabled { opacity: .4; }

/* Tablet */
@media (max-width: 1023px) {
	.tq-reader-bar { padding: 12px var(--gutter); }
	.tq-reader-bar .tq-logo, .tq-reader-bar__sep--logo, .tq-reader-keys { display: none; }
	.tq-reader-head { padding-top: 40px; }
	.tq-reader-head h1 { font-size: 32px; line-height: 42px; }
	.tq-reader-pages { max-width: min(var(--reader-w, 800px), calc(100% - 64px)); }
}
/* Mobile */
@media (max-width: 767px) {
	.tq-reader-bar { padding: 10px 12px; gap: 10px; }
	.tq-reader-nav, .tq-reader-bar__sep, .tq-reader-bar__tools [data-open], .tq-reader-bar__tools [data-fullscreen] { display: none; }
	.tq-reader-bar__title a { font-size: 11px; line-height: 15px; }
	.tq-reader-bar__title span { font-size: 13px; line-height: 18px; }
	.tq-reader-head { padding: 32px 16px 20px; gap: 10px; }
	.tq-reader-head__eyebrow { font-size: 11px; }
	.tq-reader-head h1 { font-size: 26px; line-height: 34px; }
	.tq-reader-meta { gap: 6px 14px; font-size: 12px; }
	.tq-reader-controls { margin-top: 4px; padding: 0; border: 0; background: none; gap: 8px; }
	.tq-reader-controls__group { flex: 1; padding: 0; }
	.tq-reader-controls__group > span, .tq-reader-controls__group--tone { display: none; }
	.tq-reader-controls .tq-seg { flex: 1; }
	.tq-seg button { flex: 1; padding: 7px 8px; }
	.tq-reader-controls__report { width: 38px; height: 38px; justify-content: center; padding: 0; border: 1px solid var(--border); background: var(--elevated); }
	.tq-reader-controls__report span { display: none; }
	.tq-reader-pages { max-width: 100%; border-radius: 0; }
	.tq-reader-end { padding: 28px 16px 0; gap: 16px; }
	.tq-reader-done__check { width: 40px; height: 40px; }
	.tq-reader-done h2 { font-size: 20px; line-height: 28px; }
	.tq-reader-done__progress > span:first-child { display: none; }
	.tq-meter { width: 160px; }
	.tq-reader-end__nav { display: flex; flex-direction: column-reverse; }
	.tq-chapter-btn { padding: 12px 16px; }
	.tq-chapter-btn b { font-size: 16px; line-height: 24px; }
	.tq-chapter-btn--next { padding: 16px 14px 16px 18px; }
	.tq-chapter-btn--next b { font-size: 18px; line-height: 26px; }
	.tq-chapter-btn__arrow { width: 38px; height: 38px; }
	.tq-reader-end__actions { gap: 10px; }
	.tq-reader-end__actions > .tq-btn, .tq-reader-end__actions .tq-follow > .tq-btn { flex-basis: 140px; padding: 0 12px; }
	.tq-reader-credit { padding: 12px 14px; gap: 12px; }
	.tq-reader-credit__avatar { width: 38px; height: 38px; }
	.tq-reader-related { padding-top: 16px; }
	.tq-reader-dock { left: 16px; right: 16px; transform: none; bottom: calc(16px + env(safe-area-inset-bottom)); }
	.tq-reader-dock.is-hidden { transform: translateY(140%); }
	.tq-reader-dock__chapter { flex: 1; padding: 0 10px; }
	.tq-reader-dock .tq-reader-dock__sep, .tq-reader-dock .tq-reader-dock__extra { display: none; }
	.tq-reader-dock .tq-only-mobile { display: inline; }
}
/* Reader settings (Figma 56:4796 desktop drawer / 59:7090 mobile sheet) */
.tq-rs { display: flex; flex-direction: column; gap: 22px; width: min(420px, 100vw); padding: 28px; background: var(--surface); border-left: 1px solid var(--border-strong); box-shadow: 0 0 60px rgba(0, 0, 0, .6); }
.tq-rs__head { display: flex; align-items: center; gap: 10px; }
.tq-rs__head > .tq-icon { width: 18px; height: 18px; }
.tq-rs__title { flex: 1; font: 600 24px/33px var(--font-display); }
.tq-rs__head .tq-icon-btn { width: 32px; height: 32px; margin-right: -6px; }
.tq-rs > .tq-overline, .tq-rs__desk > .tq-overline { margin-bottom: -8px; }
.tq-rs__desk { display: contents; }
.tq-rs__tones { display: flex; gap: 10px; }
.tq-rs__tone { flex: 1; display: grid; justify-items: center; gap: 8px; padding: 14px 0 12px; border: 1px solid var(--border-strong); border-radius: var(--r-lg); font: 400 12px/17px var(--font-ui); letter-spacing: .01em; }
.tq-rs__tone b { font: 600 28px/36px var(--font-display); }
.tq-rs__tone--dark { background: #0e0d0b; color: #eee7d8; }
.tq-rs__tone--sepia { background: #f1e7d0; color: #4a3b28; }
.tq-rs__tone--light { background: #faf8f4; color: #1c1a16; }
.tq-rs__tone[aria-pressed="true"] { border: 2px solid var(--accent); padding: 13px 0 11px; }
.tq-rs__modes { display: grid; gap: 8px; }
.tq-rs__mode { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg); text-align: left; color: var(--text); }
.tq-rs__mode > span { flex: 1; display: grid; min-width: 0; }
.tq-rs__mode b { font: 500 14px/20px var(--font-ui); }
.tq-rs__mode small { font: 400 12px/17px var(--font-ui); letter-spacing: .01em; color: var(--muted); }
.tq-rs__check { visibility: hidden; color: var(--accent); }
.tq-rs__mode[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.tq-rs__mode[aria-pressed="true"] .tq-rs__check { visibility: visible; }
.tq-rs__width { display: flex; align-items: center; gap: 12px; }
.tq-rs__width input { flex: 1; min-width: 0; height: 18px; margin: 0; appearance: none; background: transparent; cursor: pointer; --fill: 33%; }
.tq-rs__width input::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent) var(--fill), var(--elevated) var(--fill)); }
.tq-rs__width input::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent) var(--fill), var(--elevated) var(--fill)); }
.tq-rs__width input::-webkit-slider-thumb { appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: var(--accent); border: 0; }
.tq-rs__width input::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 0; }
.tq-rs__width output { font: 500 14px/20px var(--font-ui); color: var(--accent); min-width: 56px; text-align: right; }
.tq-rs__toggles { display: grid; gap: 22px; }
.tq-rs__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; font: 400 14px/22px var(--font-ui); color: var(--text-2); }
.tq-rs__keys { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.tq-rs__keys li { display: inline-flex; align-items: center; gap: 8px; font: 400 12px/17px var(--font-ui); color: var(--muted); }
.tq-rs__keys kbd { padding: 3px 8px; border: 1px solid var(--border-strong); border-radius: 4px; background: var(--bg); font: 400 12px/17px var(--font-ui); color: var(--text); }
@media (max-width: 767px) {
	.tq-rs { inset: auto 0 0 0; top: auto; width: 100%; max-height: 86vh; gap: 16px; padding: 10px 18px calc(28px + env(safe-area-inset-bottom)); border-left: 0; border-top: 1px solid var(--border-strong); border-radius: 20px 20px 0 0; animation: tq-sheet-up .25s var(--ease); }
	.tq-rs::before { content: ""; display: block; width: 40px; height: 4px; margin: 0 auto 4px; border-radius: 2px; background: var(--border-strong); }
	.tq-rs__desk { display: none; }
	.tq-rs__modes { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg); }
	.tq-rs__mode { flex: 1; justify-content: center; gap: 8px; padding: 10px; border: 0; border-radius: var(--r-sm); background: none; }
	.tq-rs__mode > span { flex: none; }
	.tq-rs__mode small, .tq-rs__check, .tq-rs__mode--double { display: none; }
	.tq-rs__mode[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
	.tq-rs__toggles { gap: 16px; }
	.tq-rs__row.tq-only-mobile { display: flex; }
}
@keyframes tq-sheet-up { from { transform: translateY(24px); opacity: 0; } }
/* Paged reading (từng trang / hai trang) */
.tq-pager { display: none; }
.tq-reader.is-paged .tq-pager { display: flex; justify-content: center; align-items: center; gap: 16px; max-width: 800px; margin: 16px auto 0; padding: 0 var(--gutter); }
.tq-pager .tq-btn { font: 500 13px/1 var(--font-ui); letter-spacing: 0; text-transform: none; }
.tq-pager [data-page-count] { white-space: nowrap; }
@media (max-width: 767px) { .tq-reader.is-paged .tq-pager { gap: 10px; } .tq-pager .tq-btn { flex: 1; padding: 0 12px; } }
.tq-reader-pages.is-paged { cursor: pointer; user-select: none; }
.tq-reader-pages.is-paged { display: flex; justify-content: center; align-items: flex-start; border-radius: 0; }
.tq-reader-pages.is-paged img { height: calc(100vh - 160px); width: auto; max-width: 100%; margin: 0; object-fit: contain; }
.tq-reader-pages.is-double { max-width: min(calc(var(--reader-w, 800px) * 2), 100%); }
.tq-reader-pages.is-double img { max-width: 50%; }
@media (max-width: 767px) { .tq-reader-pages.is-paged img { height: auto; width: 100%; max-height: calc(100vh - 120px); } }
/* Icon-only follow button (reader bar + tool rail) */
.tq-icon-btn--text { display: inline-flex; align-items: center; justify-content: center; font-size: 0; gap: 0; }
.tq-icon-btn--text .tq-icon { width: 18px; height: 18px; }
.tq-icon-btn--text.is-on { color: var(--accent); }
.tq-reader-theme--sepia { color-scheme: light; --bg: #f1e7d0; --surface: #f7efdd; --elevated: #eadcc0; --text: #3e3122; --text-2: #4a3b28; --muted: #7a6a52; --border: #e0d3b8; --border-strong: #cbb995; --accent: #8a6a3a; --accent-hover: #7a5d31; --accent-soft: #e8d8b6; --on-accent: #fffaf0; --scrim: rgba(62, 49, 34, .35); }

/* Ranking page podium (top 3) */
.tq-top3 { display: flex; justify-content: center; align-items: flex-end; gap: 28px; }
.tq-top3__item { position: relative; display: grid; justify-items: center; gap: 14px; width: 300px; padding: 22px 22px 24px; border: 1px solid var(--border-strong); border-radius: var(--r-xl); background: linear-gradient(to bottom, var(--elevated), var(--surface)); text-align: center; box-shadow: var(--shadow); }
.tq-top3__item--1 { width: 340px; padding-top: 28px; border-color: color-mix(in srgb, var(--accent) 70%, transparent); background: linear-gradient(to bottom, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface)); box-shadow: var(--shadow-lg); }
.tq-top3__item .tq-cover { width: 170px; }
.tq-top3__rank { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.tq-top3__item--1 .tq-top3__rank { color: var(--accent); }
.tq-rank-filter { justify-content: center; margin-top: 10px; }
.tq-page-head--center > .tq-container > .tq-page-head__text { margin-top: 22px; }
.tq-box__actions { margin-top: 14px; flex-wrap: wrap; }
.tq-update-group + .tq-update-group { margin-top: 8px; }
.tq-update-group:first-child .tq-group-head { margin-top: 0; }
.tq-top3__item--1 .tq-cover { width: 210px; }
.tq-top3__num { position: absolute; left: 18px; top: 36px; font: italic 600 120px/120px var(--font-display); color: var(--accent); opacity: .16; }
.tq-top3__item--1 .tq-top3__num { opacity: .22; }
.tq-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; }
.tq-table th { padding: 18px 22px 14px; text-align: left; font: 500 11px/16px var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.tq-table td:last-child { white-space: nowrap; }
.tq-table td { padding: 12px 22px; border-top: 1px solid var(--border); font: 400 14px/20px var(--font-ui); color: var(--text-2); vertical-align: middle; }
.tq-table tr:nth-child(even) td { background: color-mix(in srgb, var(--elevated) 35%, transparent); }
.tq-table__no { font: italic 600 26px/1 var(--font-display); color: var(--muted); width: 64px; }
.tq-table__story { display: flex; align-items: center; gap: 14px; color: var(--text); font-weight: 500; }
.tq-table__story img { width: 36px; aspect-ratio: 5 / 7; object-fit: cover; border-radius: var(--r-sm); }
@media (max-width: 767px) {
	.tq-top3 { gap: 10px; }
	.tq-top3__item { width: auto; flex: 1; padding: 12px 8px; gap: 8px; }
	.tq-top3__item .tq-cover { width: 84px; }
	.tq-top3__item--1 .tq-cover { width: 98px; }
	.tq-top3__num { display: none; }
	.tq-top3__item h2 { font-size: 12px; line-height: 16px; }
	.tq-table thead, .tq-table__hide-sm { display: none; }
	.tq-table td { padding: 10px 14px; }
}

/* Search result row */
.tq-result { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px; padding: 16px 20px 16px 16px; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); }
.tq-result__title { font: 600 19px/26px var(--font-display); }
.tq-result__title mark { background: none; color: var(--accent); font-style: italic; }
.tq-result__meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 8px; }
.tq-result__desc { margin-top: 8px; font-size: 14px; line-height: 22px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tq-result__actions { display: flex; gap: 10px; margin-top: 12px; }
@media (max-width: 767px) { .tq-result { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 12px; } .tq-result__title { font-size: 20px; line-height: 24px; } .tq-result__desc, .tq-result__actions .tq-btn--secondary { display: none; } }

/* Mobile: BXH (Figma 40:2483), Mới cập nhật (41:2420), Bộ sưu tập (41:2606), Tin tức (42:2822) */
@media (max-width: 767px) {
	.tq-rank-aside, .tq-updates > aside, .tq-updates .tq-pagination, main .tq-collection-lead { display: none; }
	main .tq-collection-lead + .tq-grid { margin-top: 0; }
	.tq-table { border: 0; background: none; border-collapse: separate; border-spacing: 0 8px; margin-top: -8px; }
	.tq-table td { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
	.tq-table tr:nth-child(even) td { background: var(--surface); }
	.tq-table td:first-child { border-left: 1px solid var(--border); border-radius: var(--r-lg) 0 0 var(--r-lg); width: 52px; padding-right: 4px; }
	.tq-table td:nth-child(2) { border-right: 1px solid var(--border); border-radius: 0 var(--r-lg) var(--r-lg) 0; }
	.tq-table__no { font-size: 22px; }
	.tq-news-grid .tq-news { grid-template-columns: 112px minmax(0, 1fr); align-items: start; gap: 14px; }
	.tq-news-grid .tq-news__media { aspect-ratio: 4 / 3; border-radius: var(--r-md); }
	.tq-news-grid .tq-news__title { font-size: 16px; line-height: 22px; }
	.tq-news-grid .tq-news__excerpt { display: none; }
	.tq-news-grid .tq-news__body { gap: 4px; }
	.tq-news-grid { gap: 16px; }
	main .tq-columns > .tq-stack:has(.tq-numbered) { display: none; }
}

/* Release schedule (Mới cập nhật) */
.tq-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.tq-days span { display: grid; justify-items: center; gap: 2px; padding: 8px 0; border-radius: var(--r-md); background: var(--elevated); font: 500 11px/16px var(--font-ui); letter-spacing: .1em; color: var(--muted); }
.tq-days b { font: 500 14px/20px var(--font-ui); color: var(--text); letter-spacing: 0; }
.tq-days .is-today { background: var(--accent); color: var(--on-accent); }
.tq-days .is-today b { color: var(--on-accent); }
.tq-group-head { display: flex; align-items: center; gap: 12px; margin: 28px 0 14px; }
.tq-group-head::after { content: ""; flex: 1; order: 1; height: 1px; background: var(--border-strong); }
.tq-group-head .tq-overline { order: 2; }

/* 404 */
.tq-404 { position: relative; overflow: hidden; display: grid; place-items: center; min-height: 620px; text-align: center; }
.tq-404__floats img { position: absolute; width: 130px; aspect-ratio: 5 / 7; object-fit: cover; border-radius: var(--r-lg); opacity: .22; }
.tq-404::after { content: ""; position: absolute; inset: 0; background: radial-gradient(closest-side, color-mix(in srgb, var(--bg) 96%, transparent), color-mix(in srgb, var(--bg) 25%, transparent)); }
.tq-404__body { position: relative; z-index: 1; display: grid; justify-items: center; gap: 18px; padding: 0 16px; width: 100%; max-width: 680px; }
.tq-404__body .tq-search { width: min(420px, 100%); }
.tq-404__body .tq-row { flex-wrap: wrap; justify-content: center; }
.tq-404__body .tq-muted { max-width: 480px; }
.tq-404__code { font: italic 600 200px/190px var(--font-display); color: var(--accent); }
@media (max-width: 767px) { .tq-404 { min-height: 520px; } .tq-404__code { font-size: 140px; line-height: 130px; } }

/* Story detail: extras */
.tq-chapters-head { margin-bottom: 14px; }
.tq-chapters-more { margin-top: 16px; }
.tq-info-list { display: grid; gap: 12px; margin: 0; }
.tq-info-list div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; font-size: 14px; line-height: 20px; }
.tq-info-list dt { color: var(--muted); }
.tq-info-list dd { margin: 0; color: var(--text); }
#gioi-thieu > h2 { margin-bottom: 14px; }

/* Reader: extras */
.tq-icon-btn.is-disabled { opacity: .35; pointer-events: none; }
.tq-chapters--single { grid-template-columns: minmax(0, 1fr); margin-top: 14px; }
.tq-drawer__search { height: 44px; background: var(--bg); }
.tq-settings .tq-segment { display: flex; width: 100%; }
.tq-settings .tq-segment button { flex: 1; }

/* Genre directory */
.tq-letters { display: flex; flex-wrap: wrap; gap: 6px; margin: 36px 0 8px; }
.tq-letters .tq-chip { min-width: 36px; justify-content: center; letter-spacing: 0; }
.tq-genre-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tq-genre-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); font: 500 14px/20px var(--font-ui); transition: border-color .2s, color .2s; }
.tq-genre-list a:hover { border-color: var(--accent); }
@media (max-width: 1023px) { .tq-genre-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .tq-genre-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* News */
.tq-news-title { margin: 22px 0 18px; }
.tq-news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.tq-news-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tq-news { position: relative; display: grid; align-content: start; gap: 16px; }
.tq-news--lead { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; gap: 40px; padding: 18px 40px 18px 18px; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); }
.tq-news__media { overflow: hidden; border-radius: var(--r-lg); background: var(--elevated); aspect-ratio: 16 / 9; }
.tq-news--lead .tq-news__media { aspect-ratio: 2 / 1; }
.tq-news__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.tq-news:hover .tq-news__media img { transform: scale(1.03); }
.tq-news__body { display: grid; gap: 8px; }
.tq-news__title { font: 600 19px/27px var(--font-display); }
.tq-news--lead .tq-news__title { font-size: 30px; line-height: 38px; }
.tq-news__title a::before { content: ""; position: absolute; inset: 0; }
.tq-news__excerpt { font-size: 14px; line-height: 22px; color: var(--muted); }
.tq-news--lead .tq-news__excerpt { font-size: 16px; line-height: 26px; color: var(--text-2); }
.tq-news__body .tq-small { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.tq-numbered { display: grid; gap: 14px; counter-reset: n; }
.tq-numbered li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; font: 500 14px/20px var(--font-ui); }
.tq-numbered span { font: italic 600 16px/20px var(--font-display); color: var(--accent); }
@media (max-width: 1023px) { .tq-news-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .tq-news-grid, .tq-news-grid--3, .tq-news--lead { grid-template-columns: 1fr; gap: 20px; } .tq-news--lead { padding: 14px; } .tq-news--lead .tq-news__title { font-size: 24px; line-height: 30px; } }

/* Collections */
.tq-collection { position: relative; overflow: hidden; min-height: 236px; padding: 29px 27px; border: 1px solid var(--border); border-radius: var(--r-xl); background: linear-gradient(140.67deg, var(--surface) 7%, var(--tint, var(--elevated)) 79%); transition: border-color .2s; }
:root[data-theme="light"] .tq-collection { background: linear-gradient(140.67deg, var(--surface) 7%, var(--elevated) 79%); }
.tq-collection:hover { border-color: var(--border-strong); }
.tq-collection__text { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; width: 190px; }
.tq-collection__title { font: 600 22px/26px var(--font-display); }
.tq-collection__title a::before { content: ""; position: absolute; inset: -29px -27px; z-index: 3; }
.tq-collection__text .tq-caption { margin-bottom: 4px; }
.tq-collection__more { color: var(--text); }
.tq-collection__fan img { position: absolute; width: 96px; height: 136px; object-fit: cover; border-radius: var(--r-lg); box-shadow: 0 14px 28px rgba(0, 0, 0, .55); transition: transform .4s var(--ease); }
.tq-collection__fan img:nth-child(1) { right: 32px; top: 52px; transform: rotate(-10deg); }
.tq-collection__fan img:nth-child(2) { right: 15px; top: 47px; transform: rotate(-2deg); }
.tq-collection__fan img:nth-child(3) { right: 85px; top: 51px; transform: rotate(8deg); }
.tq-collection:hover .tq-collection__fan img:nth-child(3) { transform: rotate(8deg) translateY(-4px); }
@media (max-width: 767px) { .tq-collection { min-height: 200px; padding: 22px 20px; } }

.tq-collection-lead { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 460px; align-items: center; gap: 40px; min-height: 320px; padding: 40px; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); border-radius: var(--r-xl); background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface) 60%); }
.tq-collection-lead__text { display: grid; gap: 14px; justify-items: start; color: var(--text-2); }
.tq-collection-lead__title { font: 600 40px/48px var(--font-display); max-width: 440px; }
.tq-collection-lead__title a::before { content: ""; position: absolute; inset: 0; z-index: 2; }
.tq-collection-lead__fan { position: relative; height: 230px; }
.tq-collection-lead__fan img { position: absolute; top: 20px; width: 132px; height: 184px; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.tq-collection-lead__fan img:nth-child(1) { left: 0; transform: rotate(-12deg); }
.tq-collection-lead__fan img:nth-child(2) { left: 80px; top: 6px; transform: rotate(-6deg); }
.tq-collection-lead__fan img:nth-child(3) { left: 160px; top: 0; z-index: 1; }
.tq-collection-lead__fan img:nth-child(4) { left: 240px; top: 6px; transform: rotate(6deg); }
.tq-collection-lead__fan img:nth-child(5) { left: 320px; top: 20px; transform: rotate(12deg); }
.tq-pick { position: relative; display: grid; grid-template-columns: 56px 64px minmax(0, 1fr); align-items: center; gap: 18px; padding: 18px 22px; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); }
.tq-pick:hover { border-color: var(--border-strong); }
.tq-pick__no { font: italic 600 40px/1 var(--font-display); color: var(--accent); }
.tq-pick__title { font: 600 19px/27px var(--font-display); margin-bottom: 4px; }
.tq-pick__title a::before { content: ""; position: absolute; inset: 0; }
.tq-pick .tq-small { margin-top: 6px; color: var(--text-2); }
@media (max-width: 1023px) { .tq-collection-lead { grid-template-columns: 1fr; } .tq-collection-lead__fan { display: none; } }
@media (max-width: 767px) { .tq-collection-lead { padding: 24px; min-height: 0; } .tq-collection-lead__title { font-size: 30px; line-height: 36px; } .tq-pick { grid-template-columns: 36px 56px minmax(0, 1fr); gap: 12px; padding: 14px; } .tq-pick__no { font-size: 28px; } }

/* Article & prose */
.tq-article__head { display: grid; gap: 14px; max-width: 820px; padding: 28px 0 32px; }
.tq-article__head .tq-breadcrumb { margin-bottom: 8px; }
.tq-article__dek { font: italic 500 21px/31px var(--font-display); color: var(--text-2); }
.tq-article__byline { margin-top: 6px; }
.tq-article__byline img { width: 32px; height: 32px; border-radius: 50%; }
.tq-article__byline > p > span { display: grid; }
.tq-article__cover { margin: 0 0 40px; overflow: hidden; border-radius: var(--r-xl); }
.tq-article__cover img { width: 100%; max-height: 520px; object-fit: cover; }
.tq-article__body { display: grid; grid-template-columns: 260px minmax(0, 720px); gap: 56px; align-items: start; }
.tq-article__side { position: sticky; top: calc(var(--header-h) + 16px); }
.tq-article__side .tq-box__title { font: 500 11px/16px var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.tq-article__tags { align-items: center; margin-top: 32px; }
@media (max-width: 1023px) { .tq-article__body { grid-template-columns: minmax(0, 1fr); gap: 24px; } .tq-article__side { position: static; } }
.tq-prose { color: var(--text-2); font-size: 17px; line-height: 30px; }
.tq-prose.tq-box { padding: 32px 36px; }
.tq-prose > * + * { margin-top: 18px; }
.tq-prose h2 { font-size: 28px; line-height: 36px; margin-top: 40px; }
.tq-prose h3 { font-size: 21px; line-height: 29px; margin-top: 30px; }
.tq-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.tq-prose ul, .tq-prose ol { padding-left: 22px; list-style: revert; }
.tq-prose li + li { margin-top: 6px; }
.tq-prose blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--accent); font: italic 500 20px/30px var(--font-display); color: var(--text); }
.tq-prose img { border-radius: var(--r-lg); }
.tq-prose--intro { max-width: 760px; margin-bottom: 28px; }
.tq-toc ol { display: grid; gap: 8px; }
.tq-toc a { font-size: 14px; line-height: 20px; color: var(--text-2); }
.tq-toc a:hover { color: var(--accent); }
.tq-toc__l3 { padding-left: 14px; }
@media (max-width: 767px) { .tq-prose.tq-box { padding: 20px 18px; } .tq-prose { font-size: 16px; line-height: 28px; } }

/* Contact & help */
.tq-faq-search { width: min(560px, 100%); margin-top: 8px; }
.tq-topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tq-topic { display: grid; gap: 6px; align-content: start; padding: 22px; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); transition: border-color .2s; }
.tq-topic:hover { border-color: var(--accent); color: inherit; }
.tq-topic b { font: 600 19px/27px var(--font-display); margin-top: 8px; }
.tq-topic .tq-overline { margin-top: 8px; }
.tq-topic__icon { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent); margin-bottom: 12px; }
.tq-faq > h3 { margin-bottom: 2px; }
.tq-columns--contact { grid-template-columns: minmax(0, 1fr) 380px; }
.tq-contact-form { display: grid; gap: 18px; padding: 28px; }
.tq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tq-note { padding: 12px 16px; border-radius: var(--r-md); border: 1px solid; font-size: 14px; }
.tq-note--success { border-color: color-mix(in srgb, var(--success) 60%, transparent); color: var(--success); }
.tq-note--error { border-color: color-mix(in srgb, var(--danger) 60%, transparent); color: var(--danger); }
.tq-way { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; }
.tq-way .tq-topic__icon { margin: 0; }
.tq-way .tq-overline { margin-top: 6px; }
.tq-info-tabs { margin: 22px 0 18px; }
@media (max-width: 1023px) { .tq-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tq-columns--contact { grid-template-columns: 1fr; } }
@media (max-width: 767px) { .tq-topics { gap: 12px; } .tq-topic { padding: 16px; } .tq-contact-form { padding: 18px; } }
.tq-about--single { grid-template-columns: 1fr; }

/* Auth (Figma 32:1737): cover wall + quote | form */
body.is-auth .tq-main { padding: 0; }
.tq-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.tq-auth__art { position: relative; overflow: hidden; background: var(--bg); }
.tq-auth__wall { position: absolute; inset: -120px -80px; display: grid; grid-template-columns: repeat(4, 150px); gap: 18px; justify-content: center; align-content: center; transform: rotate(-12deg); opacity: .55; }
.tq-auth__wall img { width: 150px; height: 210px; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.tq-auth__wall img:nth-child(4n+2), .tq-auth__wall img:nth-child(4n+4) { transform: translateY(60px); }
.tq-auth__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 20%, transparent) 30%, var(--bg)), linear-gradient(180deg, color-mix(in srgb, var(--bg) 35%, transparent), transparent 30%, transparent 55%, var(--bg)); }
.tq-auth__logo { position: absolute; z-index: 1; left: 56px; top: 48px; font-size: 26px; }
.tq-auth__quote { position: absolute; z-index: 1; left: 56px; right: 56px; bottom: 96px; display: grid; gap: 14px; }
.tq-auth__quote p:first-child { max-width: 500px; font: italic 500 32px/42px var(--font-display); color: var(--text); }
.tq-auth__main { display: grid; place-items: center; padding: 48px 24px; }
.tq-auth__logo-sm { display: none; }
.tq-auth__box { width: min(420px, 100%); display: grid; gap: 16px; }
.tq-auth__title { font: 600 40px/48px var(--font-display); }
.tq-auth__lead { color: var(--text-2); font-size: 15px; line-height: 24px; margin-bottom: 8px; }
.tq-auth__social { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tq-auth__social b { font-weight: 700; }
.tq-auth__or { display: flex; align-items: center; gap: 14px; }
.tq-auth__or::before, .tq-auth__or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.tq-auth__form { display: grid; gap: 18px; }
.tq-auth__row { font-size: 14px; }
.tq-auth__foot { text-align: center; font-size: 14px; color: var(--muted); margin-top: 4px; }
.tq-input-icon { position: relative; display: block; }
.tq-input-icon > .tq-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.tq-input-icon .tq-input { padding-left: 40px; }
.tq-reveal { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-sm); color: var(--muted); }
.tq-reveal:hover, .tq-reveal[aria-pressed="true"] { color: var(--accent); }
.tq-check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.tq-check input { width: 16px; height: 16px; accent-color: var(--accent); }
@media (max-width: 1023px) { .tq-auth { grid-template-columns: 1fr; } .tq-auth__art { display: none; } .tq-auth__logo-sm { display: inline-flex; margin-bottom: 28px; } .tq-auth__main { align-content: start; padding-top: 40px; } }
@media (max-width: 767px) { .tq-auth__title { font-size: 32px; line-height: 38px; } .tq-auth__social { grid-template-columns: 1fr; } }
/* Auth mobile (Figma 44:2886): dải ảnh bìa phía trên, logo đè lên ảnh, form canh trái */
@media (max-width: 767px) {
	.tq-auth__art { display: block; height: 150px; }
	.tq-auth__wall { inset: -60px -40px; grid-template-columns: repeat(5, 110px); gap: 12px; }
	.tq-auth__wall img { width: 110px; height: 154px; }
	.tq-auth__art::after { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 30%, transparent), var(--bg)); }
	.tq-auth__logo { left: 16px; top: 16px; }
	.tq-auth__quote, .tq-auth__logo-sm { display: none; }
	.tq-auth__main { place-items: start stretch; padding: 4px 16px 40px; }
	.tq-auth__box { width: 100%; }
}
/* Help / contact / 404 mobile (Figma 45:3064, 45:3212, 45:3330) */
@media (max-width: 767px) {
	.tq-page-head--center { text-align: left; }
	.tq-page-head--center .tq-page-head__text { justify-items: start; }
	.tq-page-head--center .tq-breadcrumb { display: none; }
	.tq-page-head--center > .tq-container > .tq-page-head__text { margin-top: 4px; }
	.tq-topics { grid-template-columns: 1fr 1fr; gap: 10px; }
	.tq-topic { gap: 2px; padding: 14px; }
	.tq-topic .tq-small { display: none; }
	.tq-topic .tq-overline { margin-top: 2px; letter-spacing: .1em; }
	.tq-topic__icon { margin-bottom: 8px; }
	.tq-columns--contact > ul { order: -1; }
	.tq-columns--contact > ul > li:nth-child(n+3):not(.tq-prose) { display: none; }
	.tq-contact-form { padding: 0; border: 0; background: none; }
	.tq-contact-form .tq-h2 { font-size: 22px; line-height: 28px; }
	.tq-404__body > form { display: none; }
	.tq-404__body .tq-row .tq-btn:first-child { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
}

/* Account (Figma 33:1749) */
.tq-account { padding-top: 28px; }
.tq-profile { position: relative; overflow: hidden; display: flex; align-items: center; gap: 28px; min-height: 220px; padding: 32px 36px; border: 1px solid var(--border); border-radius: var(--r-xl); background: linear-gradient(120deg, var(--surface), color-mix(in srgb, var(--accent) 8%, var(--surface))); }
.tq-profile__avatar img { width: 120px; height: 120px; border-radius: 50%; padding: 4px; border: 1px solid var(--accent); object-fit: cover; }
.tq-avatar-field { display: flex; align-items: center; gap: 18px; }
.tq-avatar-field__preview img { display: block; width: 80px; height: 80px; border-radius: 50%; padding: 3px; border: 1px solid var(--accent); object-fit: cover; }
.tq-avatar-field__body { display: grid; gap: 8px; min-width: 0; }
.tq-avatar-field__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.tq-avatar-field__actions .tq-btn { gap: 8px; cursor: pointer; font: 500 13px/1 var(--font-ui); letter-spacing: 0; text-transform: none; }
.tq-avatar-field__actions .tq-btn:focus-within { outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 2px; }
.tq-profile__info { position: relative; z-index: 1; display: grid; gap: 10px; }
.tq-profile__name { font: 600 40px/48px var(--font-display); }
.tq-profile__stats { display: flex; gap: 40px; margin: 4px 0 0; }
.tq-profile__stats dd { margin: 0; font: 600 21px/27px var(--font-display); }
.tq-profile__stats dt { font: 500 11px/16px var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.tq-profile__fan { position: absolute; right: 24px; top: 20px; display: flex; opacity: .85; }
.tq-profile__fan img { width: 104px; height: 146px; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.tq-profile__fan img + img { margin-left: -38px; }
.tq-profile__fan img:nth-child(odd) { transform: rotate(-6deg); }
.tq-profile__fan img:nth-child(even) { transform: rotate(5deg) translateY(8px); }
.tq-profile__edit { position: absolute; z-index: 2; right: 14px; bottom: 14px; background: var(--bg); border-color: var(--border-strong); color: var(--text); }
.tq-account__grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 24px; }
.tq-account__grid.has-aside { grid-template-columns: 220px minmax(0, 1fr) 300px; }
.tq-account__nav { display: grid; gap: 2px; padding: 10px; }
.tq-account__nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-md); font: 500 14px/20px var(--font-ui); color: var(--text-2); }
.tq-account__nav a:hover { color: var(--text); background: var(--elevated); }
.tq-account__nav [aria-current] { background: var(--elevated); color: var(--text); }
.tq-account__nav [aria-current] .tq-icon { color: var(--accent); }
.tq-account__nav .tq-count { margin-left: auto; }
.tq-account__main { display: grid; gap: 20px; align-content: start; min-width: 0; }
.tq-account__head { margin-bottom: 4px; flex-wrap: wrap; gap: 14px; }
.tq-shelf { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tq-shelf__item { position: relative; display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 14px; padding: 12px; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); }
.tq-shelf__item .tq-cover { width: 50px; height: 70px; aspect-ratio: auto; }
.tq-shelf__title { font: 500 14px/20px var(--font-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tq-shelf__item .tq-progress { height: 3px; margin: 8px 0; }
.tq-shelf__foot { gap: 10px; }
.tq-shelf__new { display: inline-flex; align-items: center; gap: 6px; color: var(--success); }
.tq-shelf__new::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.tq-history { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 14px; }
.tq-history .tq-cover { width: 44px; height: 62px; aspect-ratio: auto; }
.tq-history.is-new { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.tq-badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tq-badge { display: grid; gap: 6px; align-content: start; opacity: .7; }
.tq-badge.is-owned { opacity: 1; border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.tq-badge b { font: 600 17px/24px var(--font-display); }
.tq-badge .tq-progress { height: 4px; margin-top: 6px; }
.tq-account__form { display: grid; gap: 18px; padding: 24px; }
.tq-statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.tq-statgrid div { padding: 12px; border-radius: var(--r-md); background: var(--elevated); }
.tq-statgrid dd { margin: 0; font: 600 19px/26px var(--font-display); }
.tq-statgrid dt { font: 400 12px/17px var(--font-ui); color: var(--muted); }
.tq-statgrid .is-accent dd { color: var(--accent); }
.tq-medal-row { gap: 10px; margin-bottom: 10px; }
.tq-medal { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--elevated); color: var(--muted); }
.tq-medal.is-owned { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.tq-account__quote { margin: 0; font: italic 500 19px/27px var(--font-display); color: var(--text); }
@media (max-width: 1199px) { .tq-account__grid.has-aside { grid-template-columns: 200px minmax(0, 1fr); } .tq-account__grid.has-aside > aside { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); } .tq-profile__fan { display: none; } }
@media (max-width: 767px) {
	.tq-account { padding-top: 16px; }
	.tq-profile { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px; min-height: 0; }
	.tq-profile__avatar img { width: 72px; height: 72px; }
	.tq-profile__name { font-size: 28px; line-height: 34px; }
	.tq-profile__stats { gap: 20px; }
	.tq-profile__edit { position: static; }
	.tq-account__grid, .tq-account__grid.has-aside { grid-template-columns: minmax(0, 1fr); }
	.tq-account__grid.has-aside > aside { grid-template-columns: 1fr; }
	.tq-account__nav { display: flex; overflow-x: auto; scrollbar-width: none; padding: 6px; }
	.tq-account__nav a { flex: none; }
	.tq-badges { grid-template-columns: 1fr 1fr; }
	.tq-history { grid-template-columns: 44px minmax(0, 1fr); }
	.tq-history > .tq-btn { grid-column: 2; justify-self: start; }
}

/* ---------- 7. Utilities ---------- */
.tq-row { display: flex; align-items: center; gap: 12px; }
.tq-row--between { justify-content: space-between; }
.tq-hide-mobile { }
.tq-only-mobile { display: none; }
.tq-narrow { display: none; }
@media (max-width: 1199px) { .tq-wide { display: none; } .tq-narrow { display: inline; } }
@media (max-width: 767px) { .tq-hide-mobile { display: none !important; } .tq-only-mobile { display: initial; } p.tq-only-mobile { display: block; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
