/* =========================================================
   Music Audit — 前端样式
   ========================================================= */

/* ---------- 容器 ---------- */
.ma-wrap,
.ma-my-music,
.ma-my-favorites,
.ma-detail,
.ma-public,
.ma-account-wrap,
.ma-profile-wrap,
.ma-radio-wrap,
.ma-pr-wrap {
	max-width: 860px;
	margin: 2rem auto;
	font-size: 15px;
	line-height: 1.85;
	color: #2c2c2c;
}

/* =========================================================
   表单
   ========================================================= */
.ma-form {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	padding: 30px 28px 24px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .05);
}
.ma-form h3 { margin: 0 0 6px; font-size: 20px; line-height: 1.5; }
.ma-form-desc { color: #8a8a8a; margin: 0 0 24px; font-size: 13px; }

.ma-row { margin-bottom: 18px; }
.ma-row-3 { display: flex; gap: 14px; flex-wrap: wrap; }
.ma-row-3 > div { flex: 1 1 180px; }

.ma-label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.ma-req { color: #e2493f; font-style: normal; }

.ma-input,
.ma-textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 14px;
	background: #fafafa;
	transition: border-color .2s, background .2s, box-shadow .2s;
}
.ma-input:focus,
.ma-textarea:focus {
	outline: none;
	border-color: #7aa7ff;
	background: #fff;
	box-shadow: 0 0 0 3px rgba( 122, 167, 255, .18 );
}
.ma-textarea { resize: vertical; line-height: 1.7; }
.ma-tip { margin: 6px 0 0; font-size: 12px; color: #9a9a9a; }

/* 投稿类型 */
.ma-type-row {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	background: #f7f9fc;
	border: 1px solid #eef1f6;
	border-radius: 10px;
	padding: 12px 16px;
}
.ma-type-row .ma-label { margin: 0; }
.ma-radio {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	font-size: 14px;
}
.ma-radio input { accent-color: #5b8def; }

/* 歌曲组 */
.ma-song-group {
	position: relative;
	border: 1px solid #eef1f6;
	border-radius: 12px;
	padding: 20px 20px 6px;
	margin-bottom: 18px;
	background: #fdfdff;
}
.ma-song-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: -4px 0 14px;
}
.ma-song-num { font-weight: 700; color: #5b8def; font-size: 14px; }
.ma-remove-song {
	background: none;
	border: none;
	color: #b32d2e;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
}
.ma-remove-song:hover { color: #e2493f; }

/* 拖拽区 */
.ma-dropzone {
	position: relative;
	border: 2px dashed #d8dfec;
	border-radius: 10px;
	background: #fafbff;
	padding: 22px 16px;
	text-align: center;
	cursor: pointer;
	transition: border-color .2s, background .2s;
}
.ma-dropzone:hover,
.ma-dropzone.ma-dragover { border-color: #7aa7ff; background: #f0f5ff; }
.ma-dropzone.ma-has-file { border-color: #9ed3ac; background: #f3fbf5; }
.ma-dropzone.ma-error { border-color: #ffb3b3; background: #fff5f5; }
.ma-dropzone.ma-error .ma-dropzone-text { color: #c93a3a; }

.ma-dropzone input[type=file] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
	pointer-events: none;
}
.ma-dropzone-hint { pointer-events: none; }
.ma-dropzone-icon { display: block; font-size: 26px; margin-bottom: 6px; }
.ma-dropzone-text { display: block; color: #4b5468; font-weight: 600; font-size: 14px; }
.ma-dropzone-sub  { display: block; color: #9aa2b5; font-size: 12px; margin-top: 4px; }

/* 图片预览 */
.ma-dropzone-preview { margin-top: 12px; text-align: center; }
.ma-dropzone-preview.is-image img {
	max-width: 140px;
	max-height: 140px;
	border-radius: 8px;
	box-shadow: 0 4px 14px rgba( 60, 90, 180, .15 );
	display: inline-block;
}
.ma-dropzone-preview.is-file .ma-preview-icon {
	display: inline-block;
	font-size: 40px;
	line-height: 1;
	padding: 8px;
}

/* 提交按钮 */
.ma-row-submit { margin-top: 26px; padding-top: 20px; border-top: 1px solid #f0f0f0; }
.ma-add-row { margin-top: -6px; }

.ma-btn {
	display: inline-block;
	border: none;
	border-radius: 999px;
	padding: 12px 40px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: transform .15s, box-shadow .15s, background .2s;
}
.ma-btn-primary {
	background: linear-gradient( 135deg, #5b8def, #7a5bef );
	color: #fff;
	box-shadow: 0 6px 18px rgba( 91, 141, 239, .32 );
}
.ma-btn-primary:hover { transform: translateY( -1px ); box-shadow: 0 9px 22px rgba( 91, 141, 239, .42 ); }
.ma-btn-ghost {
	background: #eef3ff;
	color: #4b6cd8;
	border: 1px dashed #b9caff;
	padding: 10px 24px;
	font-size: 14px;
}
.ma-btn-ghost:hover { background: #e3ecff; }

.ma-btn-danger {
	display: inline-block;
	border: 0;
	border-radius: 999px;
	padding: 12px 40px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	background: linear-gradient( 135deg, #e2493f, #c93a3a );
	color: #fff;
	box-shadow: 0 6px 18px rgba( 226, 73, 63, .35 );
	transition: transform .15s, box-shadow .15s;
	font-family: inherit;
}
.ma-btn-danger:hover { transform: translateY( -1px ); box-shadow: 0 9px 22px rgba( 226, 73, 63, .45 ); color: #fff; }

/* =========================================================
   提示盒
   ========================================================= */
.ma-box {
	border-radius: 12px;
	padding: 20px 22px;
	margin-bottom: 22px;
	font-size: 14px;
	line-height: 1.9;
}
.ma-box-inline { margin: 0 0 22px; }
.ma-box-success {
	background: linear-gradient( 160deg, #f2f8ff, #f6f2ff );
	border: 1px solid #dfe8ff;
	color: #34406b;
	text-align: center;
	padding: 32px 26px;
}
.ma-box-error { background: #fff4f4; border: 1px solid #ffd9d9; color: #b32d2e; }
.ma-box-warn  { background: #fffaf0; border: 1px solid #ffe6b8; color: #8a6100; }
.ma-box-info  { background: #f5f8ff; border: 1px solid #dfe8ff; color: #3a4a72; }

/* 成功卡片 */
.ma-success-card {
	max-width: 520px;
	margin: 40px auto;
	padding: 44px 32px 36px;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 12px 40px rgba( 60, 90, 180, .1 );
	text-align: center;
	position: relative;
	overflow: hidden;
}
.ma-success-card::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 4px;
	background: linear-gradient( 90deg, #6366f1, #8b5cf6, #a78bfa );
}
.ma-success-icon {
	width: 64px; height: 64px;
	margin: 0 auto 22px;
	border-radius: 50%;
	background: linear-gradient( 135deg, #6366f1, #8b5cf6 );
	color: #fff;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 8px 24px rgba( 99, 102, 241, .35 );
	animation: ma-success-pop .45s cubic-bezier( .2, .9, .3, 1.3 );
}
.ma-success-icon svg {
	width: 30px; height: 30px;
	stroke-dasharray: 30;
	stroke-dashoffset: 30;
	animation: ma-success-check .55s .25s ease-out forwards;
}
@keyframes ma-success-pop {
	0%   { transform: scale( .3 ); opacity: 0; }
	60%  { transform: scale( 1.1 ); opacity: 1; }
	100% { transform: scale( 1 ); }
}
@keyframes ma-success-check { to { stroke-dashoffset: 0; } }
.ma-success-title { margin: 0 0 16px; font-size: 22px; font-weight: 700; color: #24304a; }
.ma-success-text { margin: 0 0 10px; font-size: 14px; line-height: 1.9; color: #4b5468; }
.ma-success-text em { font-style: normal; font-weight: 600; color: #6366f1; }
.ma-success-text-sub { font-size: 13px; color: #98a2b8; margin-bottom: 24px; }
.ma-success-hint {
	display: inline-block;
	padding: 6px 18px;
	font-size: 12px;
	color: #7a6bbd;
	background: #f6f2ff;
	border-radius: 999px;
}

/* =========================================================
   表格
   ========================================================= */
.ma-section-title {
	font-size: 19px;
	margin: 0 0 18px;
	padding-left: 12px;
	border-left: 4px solid #5b8def;
	line-height: 1.4;
	display: flex;
	align-items: center;
	gap: 10px;
}
.ma-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 18px rgba( 0, 0, 0, .05 );
	font-size: 14px;
}
.ma-table thead th {
	background: #f7f9fc;
	text-align: left;
	font-weight: 600;
	color: #5a6272;
	padding: 13px 14px;
	border-bottom: 1px solid #eef1f6;
	white-space: nowrap;
}
.ma-table tbody td {
	padding: 13px 14px;
	border-bottom: 1px solid #f4f6fa;
	vertical-align: middle;
}
.ma-table tbody tr:last-child td { border-bottom: none; }
.ma-table tbody tr:hover { background: #fafbff; }
.ma-col-title { font-weight: 600; color: #24304a; }
.ma-col-action { text-align: right; white-space: nowrap; }
.ma-link { color: #5b8def; text-decoration: none; font-weight: 600; margin-right: 8px; }
.ma-link:hover { text-decoration: underline; }

/* 表格内操作按钮 */
.ma-inline-form { display: inline-block; margin: 0 2px; }
.ma-op {
	border: 1px solid #e0e5ef;
	background: #fff;
	border-radius: 6px;
	padding: 3px 10px;
	font-size: 12px;
	cursor: pointer;
	color: #5a6272;
	transition: all .15s;
	text-decoration: none;
	display: inline-block;
}
.ma-op:hover { background: #f5f7fb; }
.ma-op-edit   { color: #3558b8; border-color: #dbe6ff; }
.ma-op-edit:hover { background: #eef3ff; }
.ma-op-hide   { color: #8a6100; border-color: #ffe0a3; }
.ma-op-hide:hover { background: #fff8e8; }
.ma-op-unhide { color: #1a9c56; border-color: #b9e6cb; }
.ma-op-unhide:hover { background: #f1fbf5; }
.ma-op-delete { color: #c93a3a; border-color: #ffd1d1; }
.ma-op-delete:hover { background: #fff4f4; }
.ma-op-unfav  { color: #8a6100; border-color: #ffe0a3; }
.ma-op-unfav:hover { background: #fff8e8; }

/* 分页 */
.ma-pagination { margin-top: 22px; text-align: center; }
.ma-pagination .page-numbers {
	display: inline-block;
	min-width: 34px;
	padding: 5px 8px;
	margin: 0 3px;
	border-radius: 8px;
	border: 1px solid #e4e8f0;
	color: #5a6272;
	text-decoration: none;
}
.ma-pagination .page-numbers.current { background: #5b8def; border-color: #5b8def; color: #fff; }
.ma-page-hint { font-size: 13px; color: #9aa2b5; font-weight: 500; margin-left: 6px; }

/* 公开表格 */
.ma-public-table .ma-col-title a { color: #24304a; font-weight: 600; text-decoration: none; }
.ma-public-table .ma-col-title a:hover { color: #5b8def; text-decoration: underline; }
.ma-public-table .ma-col-comments { text-align: right; white-space: nowrap; width: 70px; }
.ma-public-table .ma-col-comments a { color: #5b8def; text-decoration: none; font-weight: 600; }

/* =========================================================
   状态徽章
   ========================================================= */
.ma-badge {
	display: inline-block;
	margin-left: 8px;
	padding: 1px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 20px;
	vertical-align: middle;
}
.ma-badge-pass    { background: #e7f8ee; color: #1a9c56; }
.ma-badge-pending { background: #fff5e0; color: #b8801a; }
.ma-badge-reject  { background: #ffeaea; color: #c93a3a; }
.ma-badge-hidden  { background: #eef0f5; color: #6b7284; }
.ma-badge-draft   { background: #f0f0f3; color: #7a7a85; }
.ma-badge-overlay {
	position: absolute !important;
	top: 8px !important;
	left: 8px !important;
	margin: 0 !important;
	background: rgba( 255, 255, 255, .92 ) !important;
	backdrop-filter: blur( 4px );
	-webkit-backdrop-filter: blur( 4px );
}

/* =========================================================
   详情页
   ========================================================= */
.ma-back {
	display: inline-block;
	margin-bottom: 18px;
	color: #7a8296;
	text-decoration: none;
	font-size: 14px;
}
.ma-back:hover { color: #5b8def; }

.ma-detail-head { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 26px; flex-wrap: wrap; }
.ma-detail-cover { flex: 0 0 200px; position: relative; }
.ma-detail-cover img {
	width: 200px; height: 200px;
	object-fit: cover;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba( 0, 0, 0, .1 );
	display: block;
	cursor: zoom-in;
	transition: transform .2s;
}
.ma-detail-cover img:hover { transform: scale( 1.02 ); }
.ma-cover-hint { display: block; text-align: center; font-size: 12px; color: #9aa2b5; margin-top: 6px; }

.ma-detail-meta { flex: 1 1 260px; }
.ma-detail-meta h2 { margin: 0 0 14px; font-size: 22px; line-height: 1.5; }

.ma-meta-list { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.ma-meta-list li { margin-bottom: 6px; color: #2c2c2c; }
.ma-meta-list li span { display: inline-block; min-width: 56px; color: #98a0b0; margin-right: 8px; }
.ma-meta-author { color: #6366f1; text-decoration: none; font-weight: 600; }
.ma-meta-author:hover { color: #4f52e0; text-decoration: underline; }

.ma-detail-actions,
.ma-detail-actions-row {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin: 0 0 22px;
}
.ma-detail-actions-row .ma-listen-btn { margin: 0; }

.ma-detail-section { margin-bottom: 26px; }
.ma-detail-section h3 {
	font-size: 16px;
	margin: 0 0 12px;
	padding-left: 10px;
	border-left: 3px solid #5b8def;
	line-height: 1.4;
}

.ma-lyrics {
	white-space: pre-wrap;
	background: #fafbfd;
	border: 1px solid #eef1f6;
	border-radius: 10px;
	padding: 18px 20px;
	line-height: 2;
	color: #40485c;
	font-family: inherit;
}
.ma-desc { margin: 0; color: #5a6272; white-space: pre-wrap; }

.ma-related { list-style: none; margin: 0; padding: 0; }
.ma-related li { margin-bottom: 8px; }
.ma-related a { color: #5b8def; text-decoration: none; font-size: 14px; }
.ma-related a:hover { text-decoration: underline; }

/* 「听」按钮 */
.ma-listen-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 22px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient( 135deg, #6366f1, #8b5cf6 );
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba( 99, 102, 241, .3 );
	transition: transform .15s, box-shadow .15s;
	margin: 0;
	font-family: inherit;
	text-decoration: none;
}
.ma-listen-btn:hover { transform: translateY( -1px ); box-shadow: 0 9px 22px rgba( 99, 102, 241, .42 ); }
.ma-listen-btn svg { display: block; }

/* 点赞 / 收藏 */
.ma-reactions { display: inline-flex; align-items: center; gap: 8px; }
.ma-react-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	background: #fff;
	border: 1px solid #e0e5ef;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	color: #5a6272;
	cursor: pointer;
	transition: all .18s ease;
	font-family: inherit;
}
.ma-react-btn:hover:not( :disabled ) { background: #f5f7fc; border-color: #c8d2e6; color: #3558b8; }
.ma-react-btn svg { display: block; }
.ma-react-icon { display: inline-flex; align-items: center; color: currentColor; }
.ma-react-like.is-on { background: linear-gradient( 135deg, #fff1f1, #fff5f5 ); border-color: #ffc7c7; color: #e2493f; }
.ma-react-fav.is-on  { background: linear-gradient( 135deg, #fffaf0, #fff5e0 ); border-color: #ffe0a3; color: #d99a00; }
.ma-react-count { font-variant-numeric: tabular-nums; min-width: 12px; text-align: center; }
.ma-react-label { font-size: 13px; }

/* 举报 */
.ma-report-wrap { display: inline-block; }
.ma-report-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	background: #fff;
	border: 1px solid #e0e5ef;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	color: #8a93a8;
	cursor: pointer;
	transition: all .18s ease;
	font-family: inherit;
}
.ma-report-btn:hover:not( :disabled ) { background: #fff4f4; border-color: #ffd1d1; color: #c93a3a; }

/* 管理员操作条 */
.ma-admin-bar {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	padding: 10px 14px;
	margin-bottom: 18px;
	background: #fff9e6;
	border: 1px solid #ffe6b8;
	border-radius: 10px;
	font-size: 13px;
}
.ma-admin-bar-label { font-weight: 600; color: #8a6100; }

/* =========================================================
   公开页头部：标题 + 搜索框
   ========================================================= */
.ma-public-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin: 0 0 22px;
}
.ma-public-head .ma-section-title { margin: 0; flex: 0 0 auto; }

.ma-search-form { flex: 1 1 320px; max-width: 520px; margin-left: auto; }
.ma-search-box {
	position: relative;
	display: flex;
	align-items: center;
	background: #fff;
	border: 1px solid #e2e7f0;
	border-radius: 999px;
	padding: 5px 5px 5px 44px;
	box-shadow: 0 1px 3px rgba( 60, 90, 180, .06 );
	transition: border-color .2s, box-shadow .2s, background .2s;
	min-height: 48px;
	box-sizing: border-box;
}
.ma-search-box:hover { border-color: #c8d2e6; }
.ma-search-box:focus-within {
	border-color: #8b9dff;
	box-shadow: 0 0 0 4px rgba( 139, 157, 255, .16 );
}
.ma-search-icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY( -50% );
	color: #98a2b8;
	pointer-events: none;
}
.ma-search-box input[type=search],
.ma-search-box input[type=text] {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	border: 0;
	outline: 0;
	background: transparent;
	box-shadow: none;
	padding: 10px 8px;
	margin: 0;
	font-size: 14px;
	color: #24304a;
	font-family: inherit;
	-webkit-appearance: none;
}
.ma-search-box input[type=search]::placeholder { color: #a8b0c2; }
.ma-search-box input[type=search]::-webkit-search-cancel-button { display: none; }

.ma-search-clear {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	margin: 0 4px 0 0;
	color: #a8b0c2;
	text-decoration: none;
	font-size: 18px;
	line-height: 1;
	border-radius: 50%;
}
.ma-search-clear:hover { color: #c93a3a; background: #ffeaea; }

.ma-search-submit {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient( 135deg, #6366f1, #8b5cf6 );
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 0 24px;
	height: 38px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	box-shadow: 0 4px 12px rgba( 99, 102, 241, .28 );
	min-width: 64px;
}
.ma-search-submit:hover { transform: translateY( -1px ); box-shadow: 0 7px 18px rgba( 99, 102, 241, .4 ); }

.ma-search-summary { margin: -10px 0 18px; font-size: 14px; color: #7a8496; }
.ma-search-summary strong { color: #6366f1; font-weight: 700; }

/* =========================================================
   卡片网格
   ========================================================= */
.ma-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 200px, 1fr ) );
	gap: 20px;
}
.ma-card {
	display: block;
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 4px 18px rgba( 0, 0, 0, .06 );
	transition: transform .2s, box-shadow .2s;
	position: relative;
}
.ma-card:hover { transform: translateY( -3px ); box-shadow: 0 10px 26px rgba( 91, 141, 239, .18 ); }
.ma-card.is-locked { cursor: default; opacity: .85; }
.ma-card.is-locked:hover { transform: none; box-shadow: 0 4px 18px rgba( 0, 0, 0, .06 ); }
.ma-card-cover {
	aspect-ratio: 1 / 1;
	background: linear-gradient( 135deg, #eef3ff, #f6f2ff );
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	position: relative;
}
.ma-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.ma-card-cover-placeholder { font-size: 48px; color: #b9c8f2; line-height: 1; }
.ma-card-body { padding: 14px 16px 18px; }
.ma-card-body h4 { margin: 0 0 6px; font-size: 15px; line-height: 1.5; color: #24304a; }
.ma-card-meta { margin: 0; font-size: 13px; color: #7a8496; line-height: 1.7; }

/* 个人主页网格 */
.ma-profile-grid {
	display: grid !important;
	grid-template-columns: repeat( auto-fill, minmax( 180px, 1fr ) ) !important;
	gap: 18px !important;
	margin-top: 6px;
}
.ma-profile-grid .ma-card { display: block !important; border: 1px solid #eef1f6 !important; }
.ma-profile-grid .ma-card-body { padding: 12px 14px 14px; }
.ma-profile-grid .ma-card-body h4 {
	margin: 0 0 6px;
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ma-profile-grid .ma-card-meta { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* =========================================================
   我的收藏：分区
   ========================================================= */
.ma-fav-section { margin-bottom: 28px; }
.ma-fav-section-head {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 700;
	color: #24304a;
	margin: 0 0 14px;
	padding-left: 12px;
	border-left: 4px solid #6366f1;
	line-height: 1.4;
}
.ma-fav-section-head.is-radio { border-left-color: #8b5cf6; }
.ma-fav-section-head .ma-fav-count { font-size: 13px; font-weight: 500; color: #8a93a8; }

/* =========================================================
   我的主页
   ========================================================= */
.ma-profile-wrap {
	max-width: 900px;
	margin: 30px auto;
}

.ma-profile-cover {
	position: relative;
	height: 200px;
	border-radius: 18px 18px 0 0;
	background: linear-gradient( 135deg, #a78bfa, #6366f1, #8b5cf6 );
	background-size: cover;
	background-position: center;
	overflow: hidden;
}
.ma-profile-cover-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient( 180deg, rgba( 0, 0, 0, 0 ) 50%, rgba( 0, 0, 0, .25 ) 100% );
}

.ma-profile-card {
	position: relative;
	background: #fff;
	border-radius: 0 0 18px 18px;
	padding: 24px 32px 26px;
	margin-bottom: 28px;
	box-shadow: 0 8px 32px rgba( 60, 90, 180, .08 );
}
.ma-profile-head { display: flex; gap: 22px; align-items: flex-start; }

.ma-profile-avatar { flex: 0 0 auto; margin-top: -68px; }
.ma-profile-avatar img {
	width: 104px; height: 104px;
	border-radius: 50%;
	border: 4px solid #fff;
	box-shadow: 0 6px 20px rgba( 60, 90, 180, .18 );
	object-fit: cover;
	display: block;
	background: linear-gradient( 135deg, #eef1f6, #d8dfec );
}
.ma-profile-main { flex: 1 1 auto; min-width: 0; padding-top: 6px; }

.ma-profile-name-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}
.ma-profile-nickname {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	color: #24304a;
	line-height: 1.4;
	display: flex;
	align-items: center;
	gap: 10px;
}
.ma-profile-self-badge {
	display: inline-block;
	padding: 2px 10px;
	background: #eef3ff;
	color: #6366f1;
	font-size: 12px;
	font-weight: 600;
	border-radius: 999px;
}

.ma-profile-edit-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 18px;
	background: linear-gradient( 135deg, #6366f1, #8b5cf6 );
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	border-radius: 999px;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba( 99, 102, 241, .32 );
}
.ma-profile-edit-btn:hover { transform: translateY( -1px ); box-shadow: 0 7px 18px rgba( 99, 102, 241, .42 ); color: #fff; }

.ma-profile-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: #7a8496; margin-bottom: 14px; }
.ma-profile-meta-item { display: inline-flex; align-items: center; gap: 5px; }
.ma-profile-meta-item svg { color: #a8b0c2; flex: 0 0 auto; }

.ma-profile-bio {
	margin: 0 0 12px;
	padding: 12px 16px;
	background: #fafbfd;
	border-left: 3px solid #6366f1;
	border-radius: 6px;
	color: #4b5468;
	font-size: 14px;
	line-height: 1.8;
}

.ma-profile-works {
	background: #fff;
	border-radius: 18px;
	padding: 26px 30px 30px;
	box-shadow: 0 8px 32px rgba( 60, 90, 180, .08 );
}
.ma-profile-works .ma-section-title { margin: 0 0 20px; }
.ma-profile-works-count { font-size: 13px; color: #8a93a8; font-weight: 500; }

/* =========================================================
   我的主页：编辑模式
   ========================================================= */
.ma-profile-edit-wrap { max-width: 640px; margin: 30px auto; }
.ma-profile-edit-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.ma-profile-edit-head h2 { margin: 0; font-size: 22px; color: #24304a; }
.ma-profile-form {
	background: #fff;
	border-radius: 18px;
	padding: 32px 30px 28px;
	box-shadow: 0 8px 32px rgba( 60, 90, 180, .08 );
}
.ma-form-row { margin-bottom: 24px; }
.ma-form-label { display: block; font-weight: 600; font-size: 14px; color: #24304a; margin-bottom: 10px; }
.ma-form-tip { margin: 8px 0 0; font-size: 12px; color: #9aa2b5; line-height: 1.6; }
.ma-form-submit-row {
	display: flex;
	gap: 12px;
	padding-top: 22px;
	border-top: 1px solid #eef1f6;
	margin-top: 30px;
}

.ma-profile-avatar-edit { position: relative; display: inline-block; }
.ma-profile-avatar-edit img {
	width: 100px; height: 100px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid #fff;
	box-shadow: 0 4px 16px rgba( 60, 90, 180, .15 );
	display: block;
	background: #f5f7fc;
}
.ma-profile-avatar-change {
	position: absolute;
	bottom: 0;
	right: -4px;
	padding: 4px 12px;
	background: #6366f1;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	border-radius: 999px;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba( 99, 102, 241, .35 );
}
.ma-profile-avatar-change input { display: none; }

.ma-profile-cover-edit {
	position: relative;
	height: 160px;
	border-radius: 12px;
	background: linear-gradient( 135deg, #a78bfa, #6366f1, #8b5cf6 );
	background-size: cover;
	background-position: center;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba( 60, 90, 180, .12 );
}
.ma-profile-cover-change {
	position: absolute;
	right: 12px;
	bottom: 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	background: rgba( 0, 0, 0, .55 );
	color: #fff;
	font-size: 13px;
	border-radius: 999px;
	cursor: pointer;
	backdrop-filter: blur( 6px );
	-webkit-backdrop-filter: blur( 6px );
}
.ma-profile-cover-change:hover { background: rgba( 0, 0, 0, .75 ); }
.ma-profile-cover-change input { display: none; }

.ma-radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
.ma-radio-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 20px;
	background: #fafbfd;
	border: 1px solid #e8ecf5;
	border-radius: 999px;
	cursor: pointer;
	font-size: 14px;
	color: #4b5468;
	transition: all .18s ease;
}
.ma-radio-item input { margin: 0; accent-color: #6366f1; }
.ma-radio-item:has( input:checked ) {
	background: linear-gradient( 135deg, #eef3ff, #f5f0ff );
	border-color: #8b9dff;
	color: #3558b8;
	font-weight: 600;
}

/* =========================================================
   账号设置
   ========================================================= */
.ma-account-wrap { max-width: 720px; margin: 30px auto; }
.ma-account-head { margin-bottom: 24px; }
.ma-account-head h2 { margin: 0 0 4px; font-size: 24px; color: #24304a; }
.ma-account-sub { margin: 0; color: #8a93a8; font-size: 14px; }

.ma-account-card {
	background: #fff;
	border-radius: 16px;
	padding: 26px 30px;
	margin-bottom: 22px;
	box-shadow: 0 6px 24px rgba( 60, 90, 180, .07 );
}
.ma-account-card-title {
	margin: 0 0 18px;
	font-size: 17px;
	font-weight: 700;
	color: #24304a;
	padding-left: 12px;
	border-left: 4px solid #6366f1;
	line-height: 1.4;
}
.ma-account-info { display: flex; flex-direction: column; gap: 4px; }
.ma-account-info-row {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid #f2f4f8;
	font-size: 14px;
}
.ma-account-info-row:last-child { border-bottom: none; }
.ma-account-info-label { color: #8a93a8; }
.ma-account-info-value { color: #24304a; font-weight: 500; }

.ma-account-row { margin-bottom: 18px; }
.ma-account-label { display: block; font-size: 14px; font-weight: 600; color: #24304a; margin-bottom: 8px; }
.ma-account-tip { margin: 8px 0 0; font-size: 12px; color: #9aa2b5; line-height: 1.6; }
.ma-account-actions {
	display: flex;
	gap: 12px;
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid #f0f3f8;
}
.ma-account-actions .ma-btn { padding: 10px 28px; font-size: 14px; }

.ma-pwd-strength { margin-top: 10px; }
.ma-pwd-bar { height: 4px; background: #eef1f6; border-radius: 999px; overflow: hidden; margin-bottom: 6px; }
.ma-pwd-bar-fill { display: block; height: 100%; width: 0; background: #e2493f; border-radius: 999px; transition: width .25s, background .25s; }
.ma-pwd-strength.is-weak .ma-pwd-bar-fill   { width: 33%; background: #e2493f; }
.ma-pwd-strength.is-mid .ma-pwd-bar-fill    { width: 66%; background: #e0a63a; }
.ma-pwd-strength.is-strong .ma-pwd-bar-fill { width: 100%; background: #1a9c56; }
.ma-pwd-hint { font-size: 12px; color: #9aa2b5; }

.ma-account-note { padding: 16px 18px; border-radius: 10px; font-size: 14px; line-height: 1.75; margin-bottom: 18px; }
.ma-account-note-info { background: #f5f8ff; border-left: 4px solid #6366f1; color: #3a4a72; }
.ma-account-note-danger { background: #fff5f5; border-left: 4px solid #e2493f; color: #a52323; }
.ma-account-note-danger strong { display: block; font-size: 15px; margin-bottom: 6px; color: #c93a3a; }
.ma-account-danger { border: 1px solid #ffd1d1; background: #fffafa; }
.ma-account-danger .ma-account-card-title { border-left-color: #e2493f; color: #a52323; }

/* =========================================================
   灯箱
   ========================================================= */
.ma-lightbox {
	position: fixed;
	inset: 0;
	background: rgba( 10, 12, 20, .86 );
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 30px;
	cursor: zoom-out;
}
.ma-lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 20px 60px rgba( 0, 0, 0, .5 ); cursor: default; }
.ma-lightbox-close {
	position: absolute;
	top: 16px;
	right: 24px;
	color: #fff;
	font-size: 36px;
	line-height: 1;
	cursor: pointer;
	opacity: .85;
}
.ma-lightbox-close:hover { opacity: 1; }

/* =========================================================
   后台状态胶囊
   ========================================================= */
.ma-status-pill {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 20px;
	white-space: nowrap;
}
.ma-status-pill-publish     { background: #e7f8ee; color: #1a9c56; }
.ma-status-pill-pending     { background: #fff5e0; color: #b8801a; }
.ma-status-pill-ma_rejected { background: #ffeaea; color: #c93a3a; }
.ma-status-pill-ma_hidden   { background: #eef0f5; color: #6b7284; }
.ma-status-pill-draft       { background: #f0f0f3; color: #7a7a85; }

/* =========================================================
   全站顶部悬浮通知条
   ========================================================= */
.ma-global-notice {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 999999;
	display: flex;
	flex-direction: column;
	box-shadow: 0 6px 20px rgba( 0, 0, 0, .14 );
	font-size: 14px;
	line-height: 1.7;
	animation: ma-notice-slide-down .3s ease-out;
}
@keyframes ma-notice-slide-down {
	from { transform: translateY( -100% ); opacity: 0; }
	to   { transform: translateY( 0 ); opacity: 1; }
}
body.admin-bar .ma-global-notice { top: 32px; }
@media screen and ( max-width: 782px ) { body.admin-bar .ma-global-notice { top: 46px; } }

.ma-global-notice-item { display: flex; align-items: center; gap: 10px; padding: 10px 20px; color: #2c2c2c; }
.ma-global-notice-icon { flex: 0 0 auto; font-size: 20px; line-height: 1; }
.ma-global-notice-text { flex: 1 1 auto; word-break: break-word; }
.ma-global-notice-reason { display: inline-block; margin-top: 2px; color: #8a2f2f; opacity: .9; }
.ma-global-notice-close { flex: 0 0 auto; color: inherit; text-decoration: none; font-size: 22px; line-height: 1; padding: 0 6px; opacity: .55; }
.ma-global-notice-close:hover { opacity: 1; }
.ma-global-notice-dismiss-all {
	position: absolute;
	right: 16px;
	bottom: 6px;
	font-size: 12px;
	color: inherit;
	opacity: .7;
	text-decoration: underline;
	background: transparent;
	padding: 2px 6px;
}
.ma-global-notice-approved { background: linear-gradient( 90deg, #e7f8ee, #f2fbf6 ); border-bottom: 1px solid #b9e6cb; color: #146b3a; }
.ma-global-notice-rejected { background: linear-gradient( 90deg, #ffecec, #fff3f3 ); border-bottom: 1px solid #ffc7c7; color: #a52323; }
.ma-global-notice-hidden   { background: linear-gradient( 90deg, #eef0f5, #f5f6fa ); border-bottom: 1px solid #d0d5e0; color: #4b5468; }
.ma-global-notice-unhidden { background: linear-gradient( 90deg, #eaf3ff, #f4f9ff ); border-bottom: 1px solid #c7ddff; color: #2c4d8a; }

/* =========================================================
   播放列表拖拽
   ========================================================= */
.ma-sp-list-items li[ draggable="true" ] { cursor: grab; }
.ma-sp-list-items li[ draggable="true" ]:active { cursor: grabbing; }
.ma-sp-list-items li.ma-dragging { opacity: .35; background: #eef2ff !important; }
.ma-sp-list-items li.ma-drag-over { box-shadow: inset 0 3px 0 #6366f1; }

/* =========================================================
   响应式
   ========================================================= */
@media ( max-width: 900px ) {
	.ma-my-favorites { padding-left: 16px !important; padding-right: 16px !important; }
}
@media ( max-width: 640px ) {
	.ma-form { padding: 22px 18px; }

	.ma-table thead { display: none; }
	.ma-table,
	.ma-table tbody,
	.ma-table tr,
	.ma-table td { display: block; width: 100%; }
	.ma-table tr { padding: 12px 14px; border-bottom: 1px solid #f0f3f8; }
	.ma-table td { border: none; padding: 3px 0; }
	.ma-table td:not( .ma-col-title )::before {
		content: attr( data-label );
		display: inline-block;
		min-width: 56px;
		color: #98a0b0;
		font-size: 13px;
	}
	.ma-col-action { text-align: left; }

	.ma-detail-cover { flex: 0 0 130px; }
	.ma-detail-cover img { width: 130px; height: 130px; }

	.ma-grid { grid-template-columns: repeat( auto-fill, minmax( 150px, 1fr ) ); }
	.ma-profile-grid { grid-template-columns: repeat( auto-fill, minmax( 140px, 1fr ) ) !important; gap: 12px !important; }

	.ma-profile-cover { height: 150px; }
	.ma-profile-card { padding: 20px 20px 26px; }
	.ma-profile-avatar { margin-top: -52px; }
	.ma-profile-avatar img { width: 84px; height: 84px; }
	.ma-profile-nickname { font-size: 19px; }
	.ma-profile-works { padding: 20px 16px; }
	.ma-profile-edit-wrap { margin: 16px 12px; }
	.ma-profile-form { padding: 22px 18px; }

	.ma-account-wrap { margin: 16px 12px; }
	.ma-account-card { padding: 20px 18px; }
	.ma-account-info-row { flex-direction: column; gap: 4px; }

	.ma-public-head { flex-direction: column; align-items: stretch; }
	.ma-search-form { max-width: none; margin-left: 0; }
}


/* 播放列表拖拽手柄 */
.ma-sp-drag-handle {
	flex: 0 0 auto;
	color: #c8cfdd;
	cursor: grab;
	padding: 2px 0;
	user-select: none;
	line-height: 1;
}
.ma-sp-drag-handle:hover { color: #8a93a8; }
.ma-sp-drag-handle:active { cursor: grabbing; }
.ma-sp-drag-handle svg { display: block; width: 14px; height: 14px; }

/* 拖拽中的项 */
.ma-sp-list-items li.ma-dragging { opacity: .35; background: #eef2ff !important; }
.ma-sp-list-items li.ma-drag-over { box-shadow: inset 0 3px 0 #6366f1; }

/* 支持拖拽的项 */
.ma-sp-list-items li[draggable="true"] {
	/* 让整行显示拖拽光标，但抓取区域仅手柄 */
	cursor: pointer;
}



/* 编辑页上传即时预览的过渡效果 */
.ma-profile-cover-edit {
	transition: background-image .25s ease;
}
.ma-profile-avatar-edit img {
	transition: transform .2s ease, opacity .2s ease;
}
.ma-profile-avatar-edit img.is-preview {
	outline: 3px solid #6366f1;
	outline-offset: 2px;
}
.ma-file-picked {
	display: inline;
}



.ma-detail-cover img,
.ma-card-cover img,
.ma-profile-avatar img,
.ma-lightbox img {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	user-select: none;
}




.ma-sp-cover img {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	user-select: none;
	pointer-events: none;
}