/*
Theme Name: Chạm Cảm Xúc
Theme URI: https://chamcamxuc.bsupport.vn/
Description: Website dự án Nghiên cứu Khoa học Hành vi – THPT Trần Đại Nghĩa. Màu theo cảm xúc từng trang, gallery, nhạc YouTube, bình chọn cảm xúc + biểu đồ, mã QR. Mọi chữ, ảnh, màu, font sửa trong Giao diện > Tùy biến > Chạm Cảm Xúc.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: chamcamxuc
*/
/* Giao diện chung.
 * Mỗi trang đặt <body data-mood="..."> để đổi tông màu theo cảm xúc:
 * sang (an tâm, khởi đầu) · am (kỷ niệm ấm áp) · diu (thư thái) · nang (lan toả) · ket-noi (kết nối).
 */
:root {
	--ink: #1f2a33;
	--muted: #5b6873;
	--line: #e3e8ec;
	--paper: #ffffff;
	--f-body: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
	--f-soft: "Lora", Georgia, serif;
	--radius: 22px;
	--shadow: 0 14px 36px rgba(31, 42, 51, .08);
	--wrap: 1120px;
	color-scheme: light;
}
/* Tông từng trang: accent (nút, điểm nhấn), deep (chữ nhấn), tint (nền trang), soft (nền nhãn). */
body[data-mood="sang"]    { --accent: #5b8db8; --deep: #2f5f86; --tint: #f3f8fc; --soft: #e2eef8; }
body[data-mood="am"]      { --accent: #c08a5b; --deep: #8a5a32; --tint: #fbf7f2; --soft: #f4e8db; }
body[data-mood="diu"]     { --accent: #8579b8; --deep: #564a8c; --tint: #f6f4fb; --soft: #e9e5f5; }
body[data-mood="nang"]    { --accent: #c99a3c; --deep: #7f5f17; --tint: #fcf9f0; --soft: #f6ecd3; }
body[data-mood="ket-noi"] { --accent: #4f9a89; --deep: #2c6b5d; --tint: #f2f9f7; --soft: #dcefea; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
body { margin: 0; background: var(--tint); color: var(--ink); font: 400 16px/1.7 var(--f-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--deep); }
h1, h2, h3 { line-height: 1.22; letter-spacing: -.015em; text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header + menu ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.top__in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand__mark { width: 40px; height: 40px; border-radius: 13px; background: var(--accent); display: grid; place-items: center; transition: background .3s; }
.brand__mark svg { width: 22px; height: 22px; }
.brand b { display: block; font-size: 17px; line-height: 1.15; }
.brand small { display: block; font-size: 11.5px; color: var(--muted); }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav a { position: relative; padding: 8px 13px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; transition: color .2s, background .2s; }
.nav a:hover { color: var(--ink); background: var(--soft); }
.nav a[aria-current="page"], .nav .current-menu-item > a { color: var(--deep); background: var(--soft); font-weight: 600; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; place-items: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); position: relative; transition: transform .25s, background .25s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
	.menu-btn { display: grid; }
	.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 4px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(31, 42, 51, .1);
		padding: 10px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
	.menu-open .nav { display: block; }
	.nav__list { flex-direction: column; gap: 4px; }
	.nav a { display: block; }
	.nav a { padding: 13px 16px; border-radius: 14px; font-size: 16px; }
}

/* ---------- Khối chung ---------- */
.page-head { padding-block: 64px 36px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--soft); color: var(--deep); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.page-head h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; margin: 18px auto 14px; max-width: 20ch; }
.page-head h1 em { font-style: normal; color: var(--deep); }
.lead { font-size: 17.5px; color: var(--muted); max-width: 62ch; margin: 0 auto; }
.section { padding-block: 0 72px; }
.panel { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 40px); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 0; font: 600 15px var(--f-body); text-decoration: none; cursor: pointer; transition: transform .15s, background .2s, box-shadow .2s; }
.btn--main { background: var(--deep); color: #fff; box-shadow: 0 8px 18px rgba(31, 42, 51, .14); }
.btn--main:hover { transform: translateY(-2px); }
.btn--line { background: var(--paper); color: var(--deep); box-shadow: inset 0 0 0 1.5px var(--soft); }
.btn--line:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.demo-note { margin-top: 18px; font-size: 13px; color: var(--muted); text-align: center; }
.demo-note b { color: var(--deep); }

/* ---------- Trang chủ ---------- */
.hero { padding-block: 56px 72px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); font-weight: 800; margin: 18px 0 16px; }
.hero h1 em { font-style: normal; color: var(--deep); }
.hero__sub { font-size: 18px; color: var(--muted); max-width: 40ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.breath { position: relative; aspect-ratio: 1; max-width: 420px; width: 100%; margin: 0 auto; display: grid; place-items: center; }
.breath__ring { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--soft) 55%, color-mix(in srgb, var(--accent) 35%, var(--soft))); box-shadow: 0 30px 60px color-mix(in srgb, var(--accent) 25%, transparent); animation: breathe 8s ease-in-out infinite; }
.breath__halo { position: absolute; inset: 4%; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, transparent); animation: spin 60s linear infinite; }
.breath__text { position: relative; text-align: center; font-family: var(--f-soft); font-style: italic; font-size: clamp(20px, 2.6vw, 26px); color: var(--deep); min-height: 1.6em; }
.breath__hint { display: block; font: 500 12.5px var(--f-body); color: var(--muted); font-style: normal; margin-top: 4px; letter-spacing: .04em; }
.bubble { position: absolute; font-style: normal; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--paper); box-shadow: var(--shadow); font-size: 26px; animation: float 6s ease-in-out infinite; }
.bubble:nth-of-type(1) { top: 4%; left: 12%; }
.bubble:nth-of-type(2) { top: 16%; right: 2%; animation-delay: -2s; }
.bubble:nth-of-type(3) { bottom: 10%; left: 0; animation-delay: -4s; }
.bubble:nth-of-type(4) { bottom: 2%; right: 16%; animation-delay: -1s; }
@keyframes breathe { 0%, 100% { transform: scale(.78); } 50% { transform: scale(1); } }
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes float { 50% { transform: translateY(-10px); } }

.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.intro h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; margin-bottom: 14px; }
.intro p { color: var(--muted); font-size: 17px; max-width: 54ch; }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pillars li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px 18px; border-radius: 18px; background: var(--tint); }
.pillars .ico { width: 52px; height: 52px; border-radius: 15px; background: var(--paper); display: grid; place-items: center; color: var(--deep); }
.pillars .ico svg { width: 26px; height: 26px; }
.pillars b { display: block; font-size: 16px; }
.pillars span { font-size: 14px; color: var(--muted); }

.spaces-head { text-align: center; margin-bottom: 28px; }
.spaces-head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.spaces-head p { color: var(--muted); margin-top: 8px; }
.spaces { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 18px; }
.space { --c: #5b8db8; --s: #e2eef8; display: flex; flex-direction: column; gap: 10px; padding: 24px 22px; border-radius: var(--radius); background: var(--paper); color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s; box-shadow: var(--shadow), inset 0 4px 0 var(--c); }
.space:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(31, 42, 51, .12), inset 0 4px 0 var(--c); }
.space__ico { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--s); color: var(--c); display: grid; place-items: center; }
.space__ico svg { width: 24px; height: 24px; }
.space b { font-size: 17px; }
.space > span:not(.space__ico) { color: var(--muted); font-size: 14.5px; flex: 1; }
.space i { font-style: normal; font-weight: 600; font-size: 14px; color: var(--c); }
.space--am { --c: #a8743f; --s: #f4e8db; }
.space--diu { --c: #6f62a8; --s: #e9e5f5; }
.space--nang { --c: #a57a1f; --s: #f6ecd3; }
.space--ket-noi { --c: #3d8a79; --s: #dcefea; }

.quote-band { padding-block: 72px; background: linear-gradient(135deg, var(--soft), #fff 70%); text-align: center; }
.quote-band blockquote { margin: 0 auto; max-width: 30ch; font: italic 500 clamp(24px, 3.4vw, 36px)/1.45 var(--f-soft); color: var(--deep); }
.quote-band blockquote::before { content: "“"; display: block; font-size: 1.9em; line-height: .6; color: var(--accent); opacity: .5; }
.quote-band cite { display: block; margin-top: 16px; font: 500 14px var(--f-body); font-style: normal; color: var(--muted); }

/* ---------- Trải nghiệm: gallery ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 26px; }
.chip { border: 0; padding: 9px 18px; border-radius: 999px; background: var(--paper); color: var(--muted); font: 500 14.5px var(--f-body); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); transition: all .2s; }
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--deep); color: #fff; box-shadow: none; }
.chip small { opacity: .7; margin-left: 4px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.shot { margin: 0; border-radius: 18px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow); }
.shot button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.shot img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.shot button:hover img { transform: scale(1.04); }
.shot button::after { content: var(--wm, ""); position: absolute; right: 10px; bottom: 8px; font-size: 11px; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .45); opacity: .85; }
.shot figcaption { padding: 12px 16px 14px; font-size: 14.5px; }
.shot figcaption small { display: block; color: var(--deep); font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.privacy { display: flex; gap: 12px; align-items: flex-start; max-width: 720px; margin: 32px auto 0; padding: 16px 20px; border-radius: 16px; background: var(--soft); font-size: 14px; color: var(--muted); }
.privacy svg { flex: none; width: 20px; height: 20px; color: var(--deep); margin-top: 2px; }

.lb { position: fixed; inset: 0; z-index: 50; background: rgba(18, 22, 26, .92); display: grid; grid-template-rows: minmax(0, 1fr) auto; padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px)); }
.lb img { max-width: 100%; max-height: 100%; margin: auto; object-fit: contain; border-radius: 10px; align-self: center; user-select: none; }
.lb__cap { color: #fff; text-align: center; font-size: 15px; padding-top: 12px; }
.lb__cap small { opacity: .6; margin-left: 8px; }
.lb__btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 26px; cursor: pointer; display: grid; place-items: center; }
.lb__btn:hover { background: rgba(255, 255, 255, .26); }
.lb__close { top: max(16px, env(safe-area-inset-top, 0px)); right: 16px; }
.lb__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Âm nhạc ---------- */
body[data-mood="diu"] { background: linear-gradient(180deg, var(--tint), color-mix(in srgb, var(--soft) 55%, var(--tint)) 60%, var(--soft)); }
.music { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px; align-items: start; }
.letter { position: relative; padding: 34px 30px 30px; border-radius: var(--radius); background: #fffdf8; box-shadow: var(--shadow); transform: rotate(-1deg); }
.letter::before { content: ""; position: absolute; top: -12px; left: 50%; width: 90px; height: 26px; transform: translateX(-50%) rotate(2deg); background: color-mix(in srgb, var(--accent) 30%, #fff); opacity: .8; border-radius: 3px; }
.letter p { font: italic 500 19px/1.75 var(--f-soft); color: color-mix(in srgb, var(--deep) 45%, var(--ink)); }
.letter footer { margin-top: 18px; font-size: 14px; color: var(--muted); text-align: right; }
.player { border-radius: var(--radius); overflow: hidden; background: color-mix(in srgb, var(--deep) 50%, #14121c); box-shadow: 0 24px 50px color-mix(in srgb, var(--deep) 25%, transparent); }
.player__frame { position: relative; aspect-ratio: 16 / 9; max-width: 100%; }
.player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; color: #e6e1f5; font-size: 14px; }
.player__bar .eq { display: flex; gap: 3px; align-items: end; height: 16px; }
.player__bar .eq i { width: 3px; height: 40%; border-radius: 2px; background: #b9aee6; animation: eq 1.1s ease-in-out infinite alternate; }
.player__bar .eq i:nth-child(2) { animation-delay: -.4s; } .player__bar .eq i:nth-child(3) { animation-delay: -.8s; } .player__bar .eq i:nth-child(4) { animation-delay: -.2s; }
@keyframes eq { to { height: 100%; } }
.player__bar a { white-space: nowrap; margin-left: auto; color: #cfc6f2; font-size: 13px; }
.tips { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tips li { padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .7); font-size: 14px; color: var(--muted); }
.tips b { display: block; color: var(--deep); font-size: 15px; margin-bottom: 2px; }

/* ---------- Bình chọn ---------- */
.vote-box { max-width: 860px; margin: 0 auto; text-align: center; }
.vote-box h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 700; }
.vote-box > p { color: var(--muted); margin-top: 6px; font-size: 14.5px; }
.moods { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.mood { display: grid; justify-items: center; gap: 8px; padding: 20px 8px 16px; border-radius: 20px; border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; font: 500 14px/1.35 var(--f-body); color: var(--ink); transition: transform .18s, border-color .18s, background .18s; }
.mood i { font-style: normal; font-size: 44px; line-height: 1; transition: transform .25s; }
.mood:hover:not(:disabled) { transform: translateY(-4px); border-color: var(--accent); }
.mood:hover:not(:disabled) i { transform: scale(1.12); }
.mood[aria-pressed="true"] { border-color: var(--deep); background: var(--soft); }
.mood:disabled { cursor: default; }
.mood__short { display: none; }
.moods.is-done .mood:not([aria-pressed="true"]) { opacity: .45; }
.vote-msg { margin: 22px auto 0; max-width: 560px; padding: 18px 22px; border-radius: 18px; background: var(--soft); text-align: left; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; animation: pop .35s ease; }
.vote-msg i { font-style: normal; font-size: 30px; line-height: 1.1; }
.vote-msg b { display: block; color: var(--deep); }
.vote-msg p { font-size: 15px; color: var(--ink); margin-top: 2px; }
.vote-msg a { display: inline-block; margin-top: 8px; font-weight: 600; font-size: 14.5px; }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }
.vote-msg.is-error { background: #fbeaea; }
.vote-msg.is-error b { color: #9b2c2c; }

.stats-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin: 56px 0 18px; }
.stats-head h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; }
.stats-head p { color: var(--muted); font-size: 14px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--deep); font-size: 12px; font-weight: 600; vertical-align: middle; margin-left: 6px; }
.range { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.range button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font: 500 13.5px var(--f-body); color: var(--muted); cursor: pointer; }
.range button[aria-pressed="true"] { background: var(--deep); color: #fff; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.tile { padding: 20px 22px; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
.tile span { display: block; font-size: 13px; color: var(--muted); }
.tile b { display: block; font-size: 32px; font-weight: 800; line-height: 1.2; margin-top: 4px; font-variant-numeric: tabular-nums; }
.tile small { font-size: 13px; color: var(--muted); }
.charts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.chart h3 { font-size: 16px; font-weight: 700; }
.chart > p { font-size: 13px; color: var(--muted); margin: 2px 0 16px; }
.dist { display: grid; gap: 10px; }
.dist__row { display: grid; grid-template-columns: 9.5em minmax(0, 1fr) 5.6em; gap: 12px; align-items: center; font-size: 14px; position: relative; }
.dist__row > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dist__track { height: 14px; display: flex; }
.dist__bar { height: 100%; min-width: 2px; border-radius: 0 4px 4px 0; background: var(--accent); transition: width .6s ease; }
.dist__row:hover .dist__bar { background: var(--deep); }
.dist__row > span:last-child { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.dist__row > span:last-child b { color: var(--ink); font-weight: 600; }
.trend { position: relative; }
.trend svg { width: 100%; height: auto; display: block; overflow: visible; }
.trend .grid line { stroke: var(--line); stroke-width: 1; }
.trend .axis text { fill: var(--muted); font-size: 11px; font-family: var(--f-body); }
.trend .axis .emo { font-size: 15px; }
.trend .line { fill: none; stroke: var(--deep); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.trend .area { fill: var(--soft); opacity: .7; }
.trend .dot { fill: var(--deep); stroke: var(--paper); stroke-width: 2; }
.trend .hit { fill: transparent; cursor: pointer; }
.trend .cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.tip { position: absolute; pointer-events: none; z-index: 5; padding: 8px 12px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 13px; line-height: 1.45; white-space: nowrap; transform: translate(-50%, calc(-100% - 12px)); box-shadow: 0 8px 18px rgba(0, 0, 0, .18); }
.tip b { font-weight: 600; }
.table-toggle { margin-top: 14px; font-size: 13.5px; }
.table-toggle summary { cursor: pointer; color: var(--deep); font-weight: 600; }
.table-toggle table { width: 100%; border-collapse: collapse; margin-top: 10px; font-variant-numeric: tabular-nums; }
.table-toggle th, .table-toggle td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: right; }
.table-toggle th:first-child, .table-toggle td:first-child { text-align: left; }
.disclaimer { display: flex; gap: 12px; margin-top: 18px; padding: 14px 18px; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; color: var(--muted); }
.disclaimer svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--deep); }

/* ---------- Mã QR ---------- */
.qr-wrap { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 48px; align-items: center; max-width: 900px; margin: 0 auto; }
.qr-card { padding: 26px; border-radius: 28px; background: var(--paper); box-shadow: 0 24px 50px rgba(44, 107, 93, .16); text-align: center; }
.qr-card__code { width: 260px; height: 260px; max-width: 100%; margin: 0 auto; }
.qr-card__code img, .qr-card__code canvas { width: 100% !important; height: auto !important; }
.qr-card b { display: block; margin-top: 14px; font-size: 15px; color: var(--deep); }
.qr-card small { color: var(--muted); font-size: 13px; }
.qr-side h2 { font-size: 22px; font-weight: 700; margin-bottom: 18px; }
.steps { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: center; font-size: 15.5px; }
.steps li::before { content: counter(s); width: 36px; height: 36px; border-radius: 50%; background: var(--soft); color: var(--deep); font-weight: 700; display: grid; place-items: center; }
.qr-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.copy-ok { display: block; margin-top: 10px; font-size: 13.5px; color: var(--deep); min-height: 1.4em; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--paper); padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); }
.foot__in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; }
.foot p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.foot p b { color: var(--ink); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.hero__grid, .intro, .music, .charts { grid-template-columns: minmax(0, 1fr); }
	.hero { padding-block: 36px 56px; text-align: center; }
	.hero__sub { margin: 0 auto; }
	.hero__cta { justify-content: center; }
	.breath { max-width: 320px; order: -1; }
	.spaces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.qr-wrap { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 32px; }
	.letter { transform: none; }
}
@media (max-width: 640px) {
	.page-head { padding-block: 40px 26px; }
	.spaces, .tips { grid-template-columns: minmax(0, 1fr); }
	.moods { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
	.mood { padding: 12px 2px 10px; border-radius: 14px; font-size: 12px; gap: 6px; }
	.mood i { font-size: 30px; }
	.mood__long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.mood__short { display: block; }
	.tile b { font-size: 26px; }
	.tile #t-top { font-size: 20px; }
	.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tiles .tile:first-child { grid-column: 1 / -1; }
	.dist__row { grid-template-columns: 7.6em minmax(0, 1fr) 5em; gap: 8px; font-size: 13px; }
	.foot__in { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; }
	.lb__prev, .lb__next { top: auto; bottom: max(64px, calc(env(safe-area-inset-bottom, 0px) + 56px)); transform: none; }
}

/* ---------- Tùy biến: ảnh nền banner, logo, ảnh thay thế ---------- */
.has-bg { position: relative; background: linear-gradient(color-mix(in srgb, var(--tint) 70%, transparent), color-mix(in srgb, var(--tint) 86%, transparent)), var(--bg) center / cover no-repeat; }
.page-head.has-bg { padding-block: 88px 64px; margin-bottom: 40px; }
.quote-band.has-bg { background: linear-gradient(color-mix(in srgb, var(--soft) 72%, transparent), color-mix(in srgb, #fff 78%, transparent)), var(--bg) center / cover no-repeat; }
.hero--none .hero__grid { grid-template-columns: minmax(0, 1fr); text-align: center; }
.hero--none .hero__sub { margin-inline: auto; }
.hero--none .hero__cta { justify-content: center; }
.hero__img img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3.4; object-fit: cover; }
.intro h2 { margin-top: 14px; }
.intro__img { width: 100%; height: auto; border-radius: calc(var(--radius) - 4px); aspect-ratio: 4 / 3; object-fit: cover; }
.brand--logo .custom-logo-link { display: block; }
.brand--logo img { max-height: 48px; width: auto; }
.foot .brand--logo img { max-height: 40px; }
.music--solo { grid-template-columns: minmax(0, 1fr); max-width: 860px; margin-inline: auto; }

/* ---------- Nội dung soạn trong trình sửa trang ---------- */
.entry { font-size: 16.5px; }
.entry--top { margin-bottom: 32px; }
.entry > * + * { margin-top: 1em; }
.entry h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; margin-top: 1.4em; }
.entry h3 { font-size: 19px; font-weight: 700; margin-top: 1.2em; }
.entry img { height: auto; border-radius: 14px; }
.entry blockquote { margin-inline: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); font: italic 500 18px/1.6 var(--f-soft); color: var(--deep); }
.entry .wp-block-button__link { background: var(--deep); color: #fff; border-radius: 999px; }
.entry iframe { max-width: 100%; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.post-card { display: grid; gap: 8px; text-decoration: none; color: var(--ink); padding: 0 0 18px; overflow: hidden; }
.post-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card b, .post-card span { padding-inline: 18px; }
.post-card span { font-size: 13px; color: var(--muted); }
.nav-links { display: flex; gap: 6px; justify-content: center; margin-top: 28px; }
.nav-links .page-numbers { padding: 6px 12px; border-radius: 999px; background: var(--paper); text-decoration: none; }
.nav-links .current { background: var(--deep); color: #fff; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 900px) {
	.hero__img { order: -1; max-width: 420px; margin-inline: auto; }
}

/* ---------- Trang bảo trì / sắp ra mắt (parts/soon.php) ---------- */
body.soon { min-height: 100vh; min-height: 100dvh; display: flex; background: radial-gradient(circle at 12% 18%, var(--soft), transparent 42%), radial-gradient(circle at 88% 85%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 46%), var(--tint); }
.soon__in { flex: 1; display: flex; flex-direction: column; gap: 24px; width: 100%; padding-block: max(24px, env(safe-area-inset-top, 0px)) 24px; }
.soon .brand--logo img { max-height: 56px; width: auto; }
.soon__grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.soon h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; margin: 18px 0 16px; }
.soon h1 em { display: block; font-style: normal; color: var(--deep); }
.soon__lead { font-size: 18px; color: var(--muted); max-width: 44ch; }
.soon__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blink 1.6s ease-in-out infinite; }
.soon__note { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; padding: 14px 20px; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); font-family: var(--f-soft); font-style: italic; color: var(--deep); text-align: left; }
.soon__note svg { width: 26px; height: 26px; flex: none; color: var(--accent); }
.soon__img img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 1; object-fit: cover; }
.soon__foot { text-align: center; font-size: 13px; color: var(--muted); }
@keyframes blink { 50% { opacity: .25; } }
@media (max-width: 900px) {
	.soon .brand { justify-content: center; }
	.soon__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; text-align: center; }
	.soon__lead { margin-inline: auto; }
	.soon .breath, .soon__img { order: -1; max-width: 280px; margin-inline: auto; }
}
