/**
 * Mozart Work Detail — giao diện trang chi tiết bản nhạc.
 * Mọi màu sắc nằm trong biến ở :root, đổi một chỗ là đổi toàn trang.
 */

.mzw-work {
	--mzw-ink: #2a1f16;
	--mzw-ink-soft: #6b5b4a;
	--mzw-paper: #fdfaf4;
	--mzw-paper-2: #f7f1e6;
	--mzw-wine: #8a1b2e;
	--mzw-wine-dark: #6e1524;
	--mzw-gold: #e0c48c;
	--mzw-gold-soft: #f3e6cc;
	--mzw-line: #e8ddc9;
	--mzw-radius: 12px;
	--mzw-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;

	color: var(--mzw-ink);
	font-family: var(--mzw-serif);
	line-height: 1.6;
}

.mzw-main {
	background: #fbf8f2;
	padding: 32px 0 64px;
}

.mzw-container {
	max-width: 940px;
	margin: 0 auto;
	padding: 0 20px;
}

.mzw-work *,
.mzw-work *::before,
.mzw-work *::after {
	box-sizing: border-box;
}

.mzw-work img {
	max-width: 100%;
	height: auto;
}

/* ---------- Breadcrumb ---------- */

.mzw-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	margin: 0 0 26px;
	padding: 0;
	list-style: none;
	font-size: 15px;
}

.mzw-crumbs li {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 0;
}

.mzw-crumbs a {
	color: var(--mzw-ink-soft);
	text-decoration: none;
}

.mzw-crumbs a:hover {
	color: var(--mzw-wine);
	text-decoration: underline;
}

.mzw-crumbs [aria-current="page"] {
	color: var(--mzw-wine);
}

.mzw-crumbs__sep {
	display: inline-flex;
	color: #bfae95;
}

.mzw-crumbs__sep .mzw-i {
	width: 14px;
	height: 14px;
}

/* ---------- Hero ---------- */

.mzw-hero {
	display: flex;
	gap: 30px;
	align-items: flex-start;
	margin-bottom: 34px;
}

.mzw-hero__cover {
	flex: 0 0 200px;
	width: 200px;
	border-radius: var(--mzw-radius);
	overflow: hidden;
	box-shadow: 0 6px 22px rgba(70, 45, 20, 0.16);
}

.mzw-hero__img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.mzw-hero__body {
	flex: 1 1 auto;
	min-width: 0;
}

.mzw-title {
	margin: 0 0 16px;
	font-family: var(--mzw-serif);
	font-size: clamp(30px, 4.2vw, 44px);
	line-height: 1.15;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--mzw-ink);
}

.mzw-subtitle {
	margin: -8px 0 16px;
	color: var(--mzw-ink-soft);
	font-size: 19px;
	line-height: 1.35;
}

.mzw-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
	color: var(--mzw-ink-soft);
	font-size: 16px;
}

.mzw-meta li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0 18px;
	border-left: 1px solid var(--mzw-line);
}

.mzw-meta li:first-child {
	padding-left: 0;
	border-left: 0;
}

.mzw-meta .mzw-i {
	color: #8d7a62;
}

/* ---------- Nút ---------- */

.mzw-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
}

.mzw-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 26px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: var(--mzw-serif);
	font-size: 17px;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.mzw-btn:focus-visible,
.mzw-iconbtn:focus-visible,
.mzw-playbtn:focus-visible,
.mzw-chip:focus-visible {
	outline: 2px solid var(--mzw-wine);
	outline-offset: 2px;
}

.mzw-btn--play {
	background: var(--mzw-wine);
	color: #fff;
	box-shadow: 0 3px 10px rgba(138, 27, 46, 0.28);
}

.mzw-btn--play:hover {
	background: var(--mzw-wine-dark);
	color: #fff;
	transform: translateY(-1px);
}

.mzw-btn--sheet {
	background: var(--mzw-gold-soft);
	border-color: var(--mzw-gold);
	color: #7a5a24;
}

.mzw-btn--sheet:hover {
	background: #ecdcbc;
	color: #6a4d1c;
}

.mzw-iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 999px;
	color: #8d7a62;
	cursor: pointer;
	transition: background-color 0.16s ease, color 0.16s ease;
}

.mzw-iconbtn .mzw-i {
	width: 22px;
	height: 22px;
}

.mzw-iconbtn:hover {
	background: var(--mzw-paper-2);
	color: var(--mzw-wine);
}

.mzw-fav[aria-pressed="true"] {
	color: var(--mzw-wine);
}

.mzw-fav[aria-pressed="true"] .mzw-i {
	fill: var(--mzw-wine);
}

.mzw-actions__sep {
	width: 1px;
	height: 26px;
	background: var(--mzw-line);
}

/* ---------- Tiêu đề khối ---------- */

.mzw-section {
	margin-bottom: 38px;
}

.mzw-h2 {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 0 0 16px;
	font-family: var(--mzw-serif);
	font-size: 25px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--mzw-ink);
}

.mzw-h2 > span {
	flex: 0 0 auto;
}

.mzw-h2::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: var(--mzw-line);
}

.mzw-h2--inline {
	margin: 0;
}

.mzw-h2--inline::after {
	display: none;
}

/* ---------- Nội dung chữ ---------- */

.mzw-prose {
	font-size: 18px;
	line-height: 1.75;
	color: #3a2c1f;
}

.mzw-prose p {
	margin: 0 0 14px;
}

.mzw-prose p:last-child {
	margin-bottom: 0;
}

.mzw-prose a {
	color: var(--mzw-wine);
}

/* ---------- Danh sách track ---------- */

.mzw-tracks {
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid var(--mzw-line);
	border-radius: var(--mzw-radius);
	overflow: hidden;
	background: var(--mzw-paper);
}

.mzw-track {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 10px 16px;
	border-bottom: 1px solid var(--mzw-line);
	transition: background-color 0.15s ease;
}

.mzw-track:last-child {
	border-bottom: 0;
}

.mzw-track:hover,
.mzw-track.is-playing {
	background: var(--mzw-paper-2);
}

.mzw-track__num {
	flex: 0 0 24px;
	color: #a3917a;
	font-size: 16px;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.mzw-track__title {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 18px;
	overflow-wrap: break-word;
}

.mzw-track.is-playing .mzw-track__title {
	color: var(--mzw-wine);
}

.mzw-track__time {
	flex: 0 0 auto;
	min-width: 46px;
	color: var(--mzw-ink-soft);
	font-size: 16px;
	font-variant-numeric: tabular-nums;
	text-align: right;
	white-space: nowrap;
}

.mzw-track__play-cell {
	flex: 0 0 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.mzw-track__sheet-cell {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	min-width: 148px;
}

/* Cả danh sách không có thời lượng / không có link sheet thì bỏ hẳn cột. */

.mzw-tracks--no-time .mzw-track__time,
.mzw-tracks--no-sheet .mzw-track__sheet-cell {
	display: none;
}

.mzw-playbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--mzw-wine);
	color: #fff;
	cursor: pointer;
	transition: background-color 0.16s ease, transform 0.16s ease;
}

.mzw-playbtn:hover {
	background: var(--mzw-wine-dark);
	transform: scale(1.06);
}

.mzw-playbtn .mzw-i,
.mzw-btn .mzw-i {
	display: block;
	flex: 0 0 auto;
}

.mzw-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border: 1px solid var(--mzw-line);
	border-radius: 999px;
	background: #fff;
	color: #6b4f24;
	font-size: 15px;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.16s ease, border-color 0.16s ease;
}

.mzw-chip:hover {
	background: var(--mzw-gold-soft);
	border-color: var(--mzw-gold);
	color: #6b4f24;
}

.mzw-chip--sheet {
	background: var(--mzw-gold-soft);
	border-color: var(--mzw-gold);
}

.mzw-chip--sheet:hover {
	background: #ecdcbc;
}

.mzw-chip .mzw-i {
	width: 16px;
	height: 16px;
}

.mzw-chip--primary {
	background: var(--mzw-wine);
	border-color: var(--mzw-wine);
	color: #fff;
}

.mzw-chip--primary:hover {
	background: var(--mzw-wine-dark);
	border-color: var(--mzw-wine-dark);
	color: #fff;
}

.mzw-note {
	margin: 12px 2px 0;
	color: #8b7962;
	font-size: 14px;
	line-height: 1.5;
}

/* ---------- Related ---------- */

.mzw-related {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
}

.mzw-related__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* ---------- Trình phát ---------- */

.mzw-player {
	position: fixed;
	left: 50%;
	bottom: 18px;
	transform: translateX(-50%);
	z-index: 99999;
	width: min(560px, calc(100vw - 24px));
	background: var(--mzw-paper, #fdfaf4);
	border: 1px solid #e8ddc9;
	border-radius: 14px;
	box-shadow: 0 16px 44px rgba(60, 40, 20, 0.26);
	font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	color: #2a1f16;
	animation: mzw-rise 0.22s ease-out;
}

.mzw-player[hidden] {
	display: none;
}

@keyframes mzw-rise {
	from {
		opacity: 0;
		transform: translate(-50%, 14px);
	}

	to {
		opacity: 1;
		transform: translate(-50%, 0);
	}
}

.mzw-player__inner {
	position: relative;
	padding: 10px;
}

/* Nút đóng nổi ở góc, không chiếm một hàng riêng phía trên khung nhúng. */

.mzw-player__close {
	position: absolute;
	top: -12px;
	right: -12px;
	z-index: 2;
	width: 32px;
	height: 32px;
	background: #fdfaf4;
	border: 1px solid #e8ddc9;
	border-radius: 999px;
	color: #6b5b4a;
	cursor: pointer;
	box-shadow: 0 3px 10px rgba(60, 40, 20, 0.2);
}

.mzw-player__close:hover {
	background: #f0e8d8;
	color: #8a1b2e;
}

.mzw-player__close .mzw-i {
	width: 17px;
	height: 17px;
}

/*
 * Tên bài: khung Spotify đã có sẵn nên chỉ để cho trình đọc màn hình. Với file
 * nhạc tự host thì thanh audio không hiển thị gì, lúc đó mới cho tên bài hiện.
 */

.mzw-player__now {
	margin: 0 0 8px;
	padding: 0 4px;
	font-size: 15px;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mzw-player__now:empty,
.mzw-player:not([data-mode="audio"]) .mzw-player__now {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.mzw-player__embed iframe {
	display: block;
	width: 100%;
	border: 0;
	border-radius: 10px;
}

.mzw-player__audio {
	width: 100%;
}

.mzw-player__audio[hidden] {
	display: none;
}

/* Câu nhắc về giới hạn 30 giây của Spotify: chỉ dành cho trình đọc màn hình. */

.mzw-player__hint {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ---------- Đang nạp trang mới (nhạc vẫn chạy) ---------- */

html.mzw-navigating {
	cursor: progress;
}

html.mzw-navigating::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	z-index: 100000;
	background: linear-gradient(90deg, #8a1b2e, #e0c48c, #8a1b2e);
	background-size: 200% 100%;
	animation: mzw-bar 1s linear infinite;
}

@keyframes mzw-bar {
	from {
		background-position: 100% 0;
	}

	to {
		background-position: -100% 0;
	}
}

/* ============================================================
   LƯỚI DANH SÁCH BẢN NHẠC
   ============================================================ */

.mzw-archive {
	margin-bottom: 40px;
}

.mzw-archive__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 24px;
	margin-bottom: 22px;
}

.mzw-archive__title {
	margin: 0 0 6px;
	font-family: var(--mzw-serif);
	font-size: clamp(26px, 3.4vw, 36px);
	font-weight: 600;
	line-height: 1.15;
}

.mzw-archive__desc {
	margin: 0;
	color: var(--mzw-ink-soft);
	font-size: 16px;
}

.mzw-archive__count {
	margin: 0 0 0 auto;
	color: var(--mzw-ink-soft);
	font-size: 15px;
	white-space: nowrap;
}

/* ---------- Đầu trang danh mục ---------- */

.mzw-termhead {
	margin-bottom: 30px;
}

.mzw-termhead__media {
	margin-bottom: 20px;
	border-radius: var(--mzw-radius);
	overflow: hidden;
	box-shadow: 0 8px 26px rgba(70, 45, 20, 0.14);
}

.mzw-termhead__img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 320px;
	object-fit: cover;
}

.mzw-termhead__title {
	margin: 0 0 12px;
	font-family: var(--mzw-serif);
	font-size: clamp(30px, 4.2vw, 44px);
	font-weight: 600;
	line-height: 1.15;
	color: var(--mzw-ink);
}

.mzw-termhead__intro {
	max-width: 760px;
}

/* ---------- Bộ lọc ---------- */

.mzw-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 26px;
}

.mzw-filter {
	display: inline-flex;
	margin: 0;
}

.mzw-filter--sort {
	margin-left: auto;
}

.mzw-filters select {
	appearance: none;
	-webkit-appearance: none;
	min-width: 170px;
	margin: 0;
	padding: 11px 38px 11px 16px;
	background-color: #fff;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%238d7a62' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	border: 1px solid var(--mzw-line);
	border-radius: 8px;
	color: var(--mzw-ink);
	font-family: var(--mzw-serif);
	font-size: 15px;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(70, 45, 20, 0.05);
}

.mzw-filters select:hover {
	border-color: var(--mzw-gold);
}

.mzw-filters select:focus-visible {
	outline: 2px solid var(--mzw-wine);
	outline-offset: 2px;
}

/* ---------- Lưới ---------- */

.mzw-grid {
	display: grid;
	grid-template-columns: repeat(var(--mzw-cols, 4), minmax(0, 1fr));
	gap: 22px;
}

.mzw-card {
	display: flex;
	flex-direction: column;
	background: var(--mzw-paper);
	border: 1px solid var(--mzw-line);
	border-radius: var(--mzw-radius);
	overflow: hidden;
	transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.mzw-card[hidden] {
	display: none;
}

.mzw-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 26px rgba(70, 45, 20, 0.13);
}

.mzw-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	background: var(--mzw-paper-2);
	overflow: hidden;
}

.mzw-card__link {
	display: block;
	width: 100%;
	height: 100%;
}

.mzw-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mzw-card__img--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #c4b096;
}

.mzw-card__img--empty .mzw-i {
	width: 34px;
	height: 34px;
}

.mzw-card__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	padding: 0;
	background: rgba(255, 255, 255, 0.9);
	border: 0;
	border-radius: 999px;
	color: var(--mzw-wine);
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(30, 20, 10, 0.28);
	transition: background-color 0.16s ease, transform 0.16s ease;
}

.mzw-card__play:hover {
	background: #fff;
	transform: translate(-50%, -50%) scale(1.08);
}

.mzw-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 14px 16px;
}

.mzw-card__title {
	margin: 0 0 2px;
	font-family: var(--mzw-serif);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.25;
}

.mzw-card__title a {
	color: var(--mzw-ink);
	text-decoration: none;
}

.mzw-card__title a:hover {
	color: var(--mzw-wine);
}

.mzw-card__sub {
	margin: 0 0 2px;
	color: var(--mzw-ink-soft);
	font-size: 15px;
	line-height: 1.35;
}

.mzw-card__cat {
	margin: 0 0 12px;
	color: #8b7962;
	font-size: 14px;
}

.mzw-card__foot {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid var(--mzw-line);
}

.mzw-card__meta {
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--mzw-ink-soft);
	font-size: 14px;
}

.mzw-card__meta li {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 4px;
}

.mzw-card__meta li:last-child {
	margin-bottom: 0;
}

.mzw-card__meta .mzw-i {
	width: 15px;
	height: 15px;
	color: #a3917a;
}

.mzw-card__sheet {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	background: var(--mzw-gold-soft);
	border: 1px solid var(--mzw-gold);
	border-radius: 8px;
	color: #7a5a24;
	text-decoration: none;
	transition: background-color 0.16s ease;
}

.mzw-card__sheet:hover {
	background: #ecdcbc;
	color: #6a4d1c;
}

.mzw-grid__empty {
	margin: 24px 0 0;
	padding: 26px;
	background: var(--mzw-paper-2);
	border-radius: var(--mzw-radius);
	color: var(--mzw-ink-soft);
	text-align: center;
}

.mzw-grid__empty[hidden] {
	display: none;
}

.mzw-empty {
	padding: 24px;
	background: #f7f1e6;
	border-radius: 12px;
	color: #6b5b4a;
	text-align: center;
}

@media (max-width: 1024px) {
	.mzw-grid {
		grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	}
}

@media (max-width: 600px) {
	.mzw-grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 14px;
	}

	.mzw-filter {
		flex: 1 1 46%;
	}

	.mzw-filter--sort {
		flex: 1 1 100%;
		margin-left: 0;
	}

	.mzw-filters select {
		width: 100%;
		min-width: 0;
	}

	.mzw-card__title {
		font-size: 17px;
	}
}

/* ============================================================
   BẢNG TRA CỨU TRACK
   ============================================================ */

.mzw-tracks-archive {
	margin-bottom: 40px;
}

/*
 * Bảng mười một cột không vừa khung nội dung mặc định của theme. Khối này kéo
 * nó rộng ra giữa màn hình, nhưng luôn chừa 16px mỗi bên so với viewport —
 * dùng 100vw trần sẽ sinh thanh cuộn ngang trên máy có scrollbar chiếm chỗ.
 */

.mzw-tracks-archive--full {
	width: min( calc( 100vw - 32px ), var( --mzw-tw, 1600px ) );
	margin-left: 50%;
	transform: translateX(-50%);
}

.mzw-filter--search {
	flex: 1 1 240px;
}

.mzw-filters input[type="search"] {
	width: 100%;
	margin: 0;
	padding: 11px 16px;
	background: #fff;
	border: 1px solid var(--mzw-line);
	border-radius: 8px;
	color: var(--mzw-ink);
	font-family: var(--mzw-serif);
	font-size: 15px;
	line-height: 1.2;
}

.mzw-filters input[type="search"]:focus-visible {
	outline: 2px solid var(--mzw-wine);
	outline-offset: 2px;
}

/* ---------- Thanh điều khiển ---------- */

.mzw-tbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 20px;
	margin-bottom: 12px;
	font-size: 15px;
	color: var(--mzw-ink-soft);
}

.mzw-tbar--bottom {
	margin: 14px 0 0;
}

.mzw-tbar__range {
	margin: 0;
	white-space: nowrap;
}

.mzw-tbar__show {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.mzw-tbar__size,
.mzw-pager__btn {
	appearance: none;
	margin: 0;
	padding: 5px 12px;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 999px;
	color: var(--mzw-ink-soft);
	font-family: var(--mzw-serif);
	font-size: 15px;
	line-height: 1.3;
	cursor: pointer;
}

.mzw-tbar__size:hover,
.mzw-pager__btn:hover:not(:disabled) {
	background: var(--mzw-paper-2);
	color: var(--mzw-wine);
}

.mzw-tbar__size.is-active,
.mzw-pager__btn.is-active {
	background: var(--mzw-wine);
	border-color: var(--mzw-wine);
	color: #fff;
}

.mzw-pager__btn:disabled {
	opacity: 0.45;
	cursor: default;
}

.mzw-tbar__pager {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	margin-left: auto;
}

.mzw-pager__gap {
	padding: 0 2px;
	color: #a3917a;
}

/* ---------- Bảng ---------- */

.mzw-table-scroll {
	overflow-x: auto;
	border: 1px solid var(--mzw-line);
	border-radius: var(--mzw-radius);
	background: var(--mzw-paper);
	box-shadow: 0 2px 10px rgba(70, 45, 20, 0.06);
}

.mzw-table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: 16px;
}

.mzw-table thead th {
	padding: 16px 14px;
	background: var(--mzw-paper-2);
	border-bottom: 2px solid var(--mzw-line);
	color: var(--mzw-ink);
	font-family: var(--mzw-serif);
	font-size: 16px;
	font-weight: 600;
	text-align: left;
	white-space: nowrap;
	vertical-align: middle;
}

.mzw-table thead th:hover {
	color: var(--mzw-wine);
}

.mzw-th--sortable button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.mzw-th__arrow::after {
	content: "↕";
	color: #bfae95;
	font-size: 13px;
}

.mzw-th--sortable.is-sorted .mzw-th__arrow::after {
	content: "↑";
	color: var(--mzw-wine);
}

.mzw-th--sortable.is-sorted.is-desc .mzw-th__arrow::after {
	content: "↓";
}

.mzw-table tbody tr {
	border-bottom: 1px solid var(--mzw-line);
}

.mzw-table tbody tr:last-child {
	border-bottom: 0;
}

.mzw-table tbody tr:hover {
	background: #fffdf8;
}

.mzw-table td {
	padding: 12px 14px;
	vertical-align: middle;
}

.mzw-trow[hidden] {
	display: none;
}

.mzw-trow__title strong {
	display: block;
	font-weight: 600;
	line-height: 1.35;
}

.mzw-trow__len {
	display: block;
	color: var(--mzw-ink-soft);
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}

.mzw-trow__play,
.mzw-trow__sheet {
	width: 1%;
	white-space: nowrap;
}

.mzw-trow__work a {
	color: var(--mzw-wine);
	text-decoration: none;
}

.mzw-trow__work a:hover {
	text-decoration: underline;
}

.mzw-trow__composer {
	color: var(--mzw-ink-soft);
	white-space: nowrap;
}

.mzw-trow__dash {
	color: #c4b096;
}

/* ---------- Cột danh mục Köchel ---------- */

.mzw-trow__kv {
	color: var(--mzw-wine);
	white-space: nowrap;
}

.mzw-trow__k span,
.mzw-trow__date span,
.mzw-trow__genre span {
	display: block;
	line-height: 1.35;
	white-space: nowrap;
}

.mzw-trow__k,
.mzw-trow__age,
.mzw-trow__form,
.mzw-trow__loc {
	color: var(--mzw-ink-soft);
	font-size: 15px;
}

.mzw-trow__key {
	color: var(--mzw-wine);
	white-space: nowrap;
}

.mzw-trow__loc {
	white-space: nowrap;
}

@media (max-width: 900px) {
	.mzw-table {
		font-size: 15px;
	}

	.mzw-table td,
	.mzw-table thead th {
		padding: 10px;
	}

	.mzw-tbar__pager {
		margin-left: 0;
	}
}

/* ---------- Chống theme ghi đè ----------
 *
 * Gần như theme nào cũng có bộ style riêng cho button và cho link trong nội
 * dung: padding lớn, min-height, viết hoa, bo góc. Những thứ đó thắng CSS của
 * plugin vì đứng sau trong thứ tự nạp, và biến nút play tròn thành hình bầu
 * dục cao lệch hẳn khỏi hàng. Khối này ghim lại đúng những thuộc tính quyết
 * định hình dáng — chỉ chừng đó, không hơn.
 */

.mzw-work button.mzw-playbtn,
.mzw-work button.mzw-iconbtn,
.mzw-player button.mzw-iconbtn,
.mzw-work .mzw-btn,
.mzw-work .mzw-chip {
	box-sizing: border-box !important;
	/*
	 * margin: 0 là dòng quan trọng nhất ở đây. Flatsome (và nhiều theme khác)
	 * gắn margin-bottom cho mọi <button> để nút rời nhau khi xếp dọc. Trong một
	 * hàng căn giữa theo chiều dọc, cái margin dưới đó đẩy nút trồi lên so với
	 * các thẻ <a> bên cạnh — đúng độ lệch đã thấy giữa nút play và nút Sheet
	 * Music (ô chứa nút cao 54.62px thay vì 36px).
	 */
	margin: 0 !important;
	min-width: 0 !important;
	min-height: 0 !important;
	max-width: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	border-radius: 999px !important;
	text-decoration: none !important;
	vertical-align: middle !important;
}

.mzw-work button.mzw-playbtn {
	flex: 0 0 auto !important;
	width: 36px !important;
	height: 36px !important;
	max-height: 36px !important;
	padding: 0 !important;
	line-height: 0 !important;
	border: 0 !important;
	background: var(--mzw-wine) !important;
	color: #fff !important;
	box-shadow: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.mzw-work button.mzw-iconbtn,
.mzw-player button.mzw-iconbtn {
	width: 42px !important;
	height: 42px !important;
	padding: 0 !important;
	line-height: 1 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.mzw-player button.mzw-player__close {
	width: 32px !important;
	height: 32px !important;
}

.mzw-work .mzw-chip {
	padding: 8px 16px !important;
	line-height: 1.1 !important;
	height: auto !important;
}

.mzw-work .mzw-actions {
	display: flex !important;
	align-items: center !important;
	flex-wrap: wrap !important;
	gap: 14px !important;
}

.mzw-work .mzw-actions__sep {
	margin: 0 !important;
}

/* “Play All” là <button> nên cũng dính margin-bottom của theme, còn “Sheet
 * Music” là <a> thì không — đó là chỗ hai nút lệch nhau. Ghim cả hai về cùng
 * một khuôn. */

.mzw-work .mzw-btn,
.mzw-work button.mzw-btn,
.mzw-work a.mzw-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 10px !important;
	padding: 13px 26px !important;
	line-height: 1 !important;
	height: auto !important;
}

.mzw-work .mzw-btn--play {
	background: var(--mzw-wine) !important;
	border: 1px solid var(--mzw-wine) !important;
	color: #fff !important;
}

.mzw-work .mzw-btn--sheet,
.mzw-work .mzw-chip--sheet {
	background: var(--mzw-gold-soft) !important;
	border: 1px solid var(--mzw-gold) !important;
	color: #7a5a24 !important;
}

.mzw-work .mzw-chip--primary {
	background: var(--mzw-wine) !important;
	border: 1px solid var(--mzw-wine) !important;
	color: #fff !important;
}

/* Ô chứa nút có bề rộng cố định, để nút play của mọi hàng thẳng một cột. */

.mzw-work .mzw-track {
	display: flex !important;
	align-items: center !important;
	min-height: 58px;
}

.mzw-work .mzw-track__play-cell {
	flex: 0 0 40px !important;
	width: 40px !important;
	min-width: 40px !important;
	max-width: 40px !important;
	height: 36px !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.mzw-work .mzw-track__sheet-cell {
	display: flex !important;
	align-items: center !important;
	justify-content: flex-end !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Nút trên thẻ ở lưới danh sách. */

.mzw-work .mzw-card__play {
	margin: 0 !important;
	padding: 0 !important;
	min-height: 0 !important;
	line-height: 0 !important;
	border: 0 !important;
	border-radius: 999px !important;
	width: 52px !important;
	height: 52px !important;
	box-shadow: 0 4px 14px rgba(30, 20, 10, 0.28) !important;
}

.mzw-work .mzw-card__sheet {
	margin: 0 !important;
	padding: 0 !important;
	min-height: 0 !important;
	width: 38px !important;
	height: 38px !important;
	border-radius: 8px !important;
}

.mzw-work .mzw-filters select {
	margin: 0 !important;
	height: auto !important;
}

.mzw-work .mzw-card__meta,
.mzw-work .mzw-card__meta li {
	list-style: none !important;
	margin-left: 0 !important;
	padding-left: 0 !important;
}

.mzw-work .mzw-card__img {
	border-radius: 0 !important;
	margin: 0 !important;
}

/* Danh sách track không được nhận bullet hay thụt lề của theme. */

.mzw-work .mzw-tracks,
.mzw-work .mzw-meta,
.mzw-work .mzw-crumbs ol {
	list-style: none !important;
	margin-left: 0 !important;
	padding-left: 0 !important;
}

.mzw-work .mzw-track,
.mzw-work .mzw-meta li,
.mzw-work .mzw-crumbs li {
	list-style: none !important;
}

.mzw-work .mzw-track::marker,
.mzw-work .mzw-meta li::marker {
	content: none !important;
}

/* SVG trong nút không được kế thừa line-height của theme. */

.mzw-work .mzw-i,
.mzw-player .mzw-i {
	display: block;
	flex: 0 0 auto;
	vertical-align: middle;
}

/* ---------- Bảng tra cứu: bản gọn ----------
 *
 * Mười hai cột thì mọi pixel đều đáng kể. Khối này đứng sau phần chống theme
 * nên ghi đè được cả những kích thước đã ghim ở trên — chỉ trong phạm vi bảng.
 */

.mzw-table {
	font-size: 14px;
}

.mzw-table thead th {
	padding: 12px 14px;
	font-size: 13.5px;
}

.mzw-table td {
	padding: 11px 14px;
}

/* Hai mép bảng cần thở, nhất là khi bảng đã kéo rộng ra giữa màn hình. */

.mzw-table thead th:first-child,
.mzw-table tbody td:first-child {
	padding-left: 24px;
}

.mzw-table thead th:last-child,
.mzw-table tbody td:last-child {
	padding-right: 24px;
}

/* Vạch kẻ xen kẽ: hàng dài mười một cột mà không có nó thì mắt lạc dòng. */

.mzw-table tbody tr:nth-child(even) {
	background: rgba(247, 241, 230, 0.45);
}

.mzw-table tbody tr:hover {
	background: var(--mzw-gold-soft);
}

/* Phân bổ bề ngang: hai cột chữ dài ăn phần dư, các cột còn lại co theo nội
 * dung. Không đặt thì chỗ thừa dồn hết vào một cột và bảng trông rỗng ruột. */

.mzw-trow__title,
.mzw-th--title {
	width: 26%;
}

.mzw-trow__work,
.mzw-th--work {
	width: 20%;
}

/* Hai nút đứng liền nhau ngay sau tên track: cần hẹp và không dính vào nhau. */

.mzw-trow__play,
.mzw-trow__sheet,
.mzw-th--play,
.mzw-th--sheet {
	width: 1%;
	white-space: nowrap;
	text-align: center;
}

.mzw-trow__play {
	padding-right: 4px !important;
}

.mzw-trow__sheet {
	padding-left: 4px !important;
}

.mzw-trow__title strong {
	font-size: 14.5px;
}

.mzw-trow__len {
	font-size: 12px;
}

.mzw-trow__k,
.mzw-trow__age,
.mzw-trow__form,
.mzw-trow__loc,
.mzw-trow__composer {
	font-size: 13px;
}

.mzw-trow__k span,
.mzw-trow__date span,
.mzw-trow__genre span {
	line-height: 1.3;
}

.mzw-work .mzw-table .mzw-playbtn {
	width: 28px !important;
	height: 28px !important;
}

.mzw-work .mzw-table .mzw-playbtn .mzw-i {
	width: 12px;
	height: 12px;
}

.mzw-work .mzw-table .mzw-chip {
	padding: 5px 10px !important;
	font-size: 12.5px;
	gap: 6px;
}

.mzw-work .mzw-table .mzw-chip .mzw-i {
	width: 13px;
	height: 13px;
}

.mzw-tbar {
	font-size: 14px;
	margin-bottom: 12px;
	padding: 0 4px;
}

.mzw-tbar--bottom {
	margin: 16px 0 0;
}

.mzw-tracks-archive .mzw-filters {
	margin-bottom: 20px;
}

.mzw-tbar__size,
.mzw-pager__btn {
	padding: 4px 10px;
	font-size: 14px;
}

/* Tên track dẫn tới trang tác phẩm chứa nó. */

.mzw-trow__name {
	display: block;
	color: var(--mzw-wine);
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}

a.mzw-trow__name:hover {
	text-decoration: underline;
}

/* Hai bản gộp dành riêng cho màn hình hẹp — desktop không hiện. */

.mzw-trow__k-sm,
.mzw-trow__date-sm {
	display: none;
}

/* Chật chỗ thì nút sheet rút về đúng biểu tượng — tên vẫn còn cho trình đọc
 * màn hình và trong tooltip. */

@media (max-width: 1400px) {
	.mzw-work .mzw-table .mzw-chip--sheet span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.mzw-work .mzw-table .mzw-chip--sheet {
		padding: 6px 8px !important;
	}
}

/* ---------- Bảng trên điện thoại ----------
 *
 * Mười một cột không có cửa nào vừa màn hình hẹp. Giữ lại đúng bốn thứ cần để
 * tra cứu và nghe — KV, hai nút, tên track — rồi nhét K1/K6 xuống dưới KV và
 * năm xuống dưới tên. Nhờ vậy bảng hết phải cuộn ngang.
 */

@media (max-width: 782px) {
	.mzw-tracks-archive--full {
		width: auto;
		margin-left: 0;
		transform: none;
	}

	.mzw-table thead th.mzw-th--k,
	.mzw-table thead th.mzw-th--work,
	.mzw-table thead th.mzw-th--date,
	.mzw-table thead th.mzw-th--key,
	.mzw-table thead th.mzw-th--genre,
	.mzw-table thead th.mzw-th--loc,
	.mzw-table thead th.mzw-th--composer,
	.mzw-table tbody td.mzw-trow__k,
	.mzw-table tbody td.mzw-trow__work,
	.mzw-table tbody td.mzw-trow__date,
	.mzw-table tbody td.mzw-trow__key,
	.mzw-table tbody td.mzw-trow__genre,
	.mzw-table tbody td.mzw-trow__loc,
	.mzw-table tbody td.mzw-trow__composer {
		display: none;
	}

	.mzw-trow__k-sm,
	.mzw-trow__date-sm {
		display: block;
		margin-top: 2px;
		color: var(--mzw-ink-soft);
		font-size: 12.5px;
		line-height: 1.3;
	}

	.mzw-trow__len {
		display: none; /* Thời lượng nhường chỗ cho năm sáng tác. */
	}

	.mzw-table thead th,
	.mzw-table td {
		padding: 12px 8px;
		vertical-align: middle;
	}

	.mzw-table thead th:first-child,
	.mzw-table tbody td:first-child {
		padding-left: 14px;
	}

	.mzw-table thead th:last-child,
	.mzw-table tbody td:last-child {
		padding-right: 14px;
	}

	.mzw-trow__kv {
		width: 1%;
		white-space: nowrap;
	}

	.mzw-trow__kv strong {
		font-size: 15px;
	}

	.mzw-trow__title {
		width: auto;
	}

	.mzw-trow__name {
		font-size: 15px;
	}

	/* Hai nút thu nhỏ, xếp cạnh nhau ngay sau KV. */

	.mzw-trow__play,
	.mzw-trow__sheet {
		width: 1%;
		white-space: nowrap;
		text-align: center;
	}

	.mzw-trow__play {
		padding-right: 3px !important;
	}

	.mzw-trow__sheet {
		padding-left: 3px !important;
	}

	.mzw-work .mzw-table .mzw-playbtn {
		width: 30px !important;
		height: 30px !important;
	}

	.mzw-work .mzw-table .mzw-chip--sheet {
		width: 30px;
		height: 30px;
		padding: 0 !important;
		border-radius: 999px !important;
		justify-content: center;
	}

	.mzw-work .mzw-table .mzw-chip--sheet .mzw-i {
		width: 15px;
		height: 15px;
	}

	.mzw-table-scroll {
		overflow-x: visible;
	}
}

/* ---------- Mobile ---------- */

@media (max-width: 782px) {
	.mzw-hero {
		flex-direction: column;
		gap: 20px;
	}

	.mzw-hero__cover {
		flex-basis: auto;
		width: 150px;
	}

	.mzw-meta li {
		padding: 0 12px;
	}

	.mzw-track {
		flex-wrap: wrap;
		gap: 8px 12px;
		padding: 12px 14px;
	}

	.mzw-track__num {
		flex: 0 0 18px;
		align-self: flex-start;
		padding-top: 4px;
		text-align: left;
	}

	.mzw-track__title {
		flex: 1 1 60%;
		font-size: 17px;
	}

	.mzw-track__time {
		min-width: 0;
		font-size: 15px;
	}

	.mzw-track__sheet-cell {
		flex: 1 1 100%;
		justify-content: flex-start;
		min-width: 0;
		padding-left: 30px;
	}

	.mzw-player {
		left: 8px;
		right: 8px;
		bottom: 8px;
		width: auto;
		transform: none;
	}

	@keyframes mzw-rise {
		from {
			opacity: 0;
			transform: translateY(14px);
		}

		to {
			opacity: 1;
			transform: translateY(0);
		}
	}
}

@media (prefers-reduced-motion: reduce) {
	.mzw-work *,
	.mzw-player {
		transition: none !important;
		animation: none !important;
	}
}
