:root {
  color-scheme: light;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  color: #172033;
  background: #f5f7fb;
  --navy: #111935;
  --ink: #172033;
  --muted: #748096;
  --line: #e7ebf2;
  --purple: #6558e8;
  --purple-dark: #5547d9;
  --shadow: 0 18px 55px rgba(24, 33, 55, .10);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #f5f7fb; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.eyebrow { margin: 0 0 16px; color: #a9a9ff; font-size: .75rem; font-weight: 750; letter-spacing: .15em; }
.eyebrow.dark { color: #7567ea; }
.muted { color: var(--muted); }
.brand-mark { display: flex; align-items: flex-end; gap: 5px; width: 42px; height: 36px; margin-bottom: 38px; }
.brand-mark span { display: block; width: 8px; border-radius: 999px; background: linear-gradient(180deg, #79e3ef, #8272ff); transform: rotate(32deg); }
.brand-mark span:nth-child(1) { height: 18px; }
.brand-mark span:nth-child(2) { height: 32px; }
.brand-mark span:nth-child(3) { height: 23px; }
.brand-mark.mini { width: 27px; height: 24px; gap: 3px; margin: 0; }
.brand-mark.mini span { width: 5px; }
.brand-mark.mini span:nth-child(1) { height: 12px; }
.brand-mark.mini span:nth-child(2) { height: 22px; }
.brand-mark.mini span:nth-child(3) { height: 16px; }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(440px, 1.05fr) minmax(480px, .95fr); }
.login-brand { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: clamp(56px, 8vw, 120px); color: white; background: radial-gradient(circle at 30% 30%, #27306a 0, transparent 38%), radial-gradient(circle at 70% 74%, #4d3180 0, transparent 36%), var(--navy); }
.login-brand::before, .login-brand::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.login-brand::before { width: 620px; height: 620px; left: -380px; top: -310px; }
.login-brand::after { width: 420px; height: 420px; right: -210px; bottom: -210px; }
.login-brand h1 { position: relative; z-index: 1; max-width: 660px; margin: 0; font-size: clamp(2.7rem, 4.6vw, 4.8rem); line-height: 1.16; letter-spacing: -.045em; }
.brand-copy { position: relative; z-index: 1; margin: 26px 0 0; color: #bdc4dc; font-size: 1.06rem; }
.sound-orbit { position: absolute; left: 12%; right: 12%; bottom: 8%; height: 92px; display: flex; align-items: center; justify-content: center; gap: 12px; opacity: .4; transform: rotate(-7deg); }
.sound-orbit i { width: 4px; border-radius: 8px; background: linear-gradient(#6fe0ef, #9a75ff); box-shadow: 0 0 24px #6fe0ef; }
.sound-orbit i:nth-child(1), .sound-orbit i:nth-child(7) { height: 18px; }
.sound-orbit i:nth-child(2), .sound-orbit i:nth-child(6) { height: 42px; }
.sound-orbit i:nth-child(3), .sound-orbit i:nth-child(5) { height: 72px; }
.sound-orbit i:nth-child(4) { height: 92px; }
.login-panel { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; padding: 48px; background: radial-gradient(circle at 92% 8%, rgba(99,91,231,.12), transparent 30%), radial-gradient(circle at 8% 92%, rgba(68,194,207,.13), transparent 32%), #f8f9fd; }
.login-panel::before { content: ""; position: absolute; z-index: -2; inset: 0; opacity: .38; background-image: linear-gradient(rgba(88,94,135,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(88,94,135,.07) 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(to bottom, black, transparent 80%); }
.panel-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px); opacity: .72; }
.panel-glow-one { width: 230px; height: 230px; top: -105px; right: -70px; background: radial-gradient(circle at 35% 35%, rgba(122,219,235,.72), rgba(108,91,231,.18) 62%, transparent 70%); }
.panel-glow-two { width: 260px; height: 260px; left: -130px; bottom: -125px; background: radial-gradient(circle at 60% 40%, rgba(142,119,255,.38), rgba(77,201,211,.12) 62%, transparent 70%); }
.login-card { position: relative; width: min(100%, 448px); padding: 42px 42px 30px; border: 1px solid rgba(255,255,255,.92); border-radius: 26px; background: rgba(255,255,255,.88); box-shadow: 0 28px 80px rgba(47,54,99,.15), inset 0 1px 0 #fff; backdrop-filter: blur(24px); }
.login-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(135deg, rgba(121,107,238,.08), transparent 25%, transparent 72%, rgba(74,194,207,.07)); }
.login-card h2 { margin: 0; font-size: 2.15rem; letter-spacing: -.035em; }
.login-card > .muted { margin: 10px 0 34px; }
.mobile-logo { display: none; align-items: center; gap: 10px; margin-bottom: 28px; font-weight: 800; letter-spacing: .12em; }
.mobile-logo b { margin-left: auto; padding: 6px 9px; border: 1px solid #e1ddff; border-radius: 999px; color: #6a5de3; background: #f3f1ff; font-size: .58rem; letter-spacing: .08em; }
.login-title-row { display: flex; align-items: center; gap: 8px; }
.login-title-row .eyebrow { margin-bottom: 16px; }
.login-title-icon { display: grid; place-items: center; width: 22px; height: 22px; margin-top: -16px; border-radius: 7px; color: #fff; background: linear-gradient(135deg,#7668ed,#55c2d1); box-shadow: 0 5px 12px rgba(101,88,232,.22); font-size: .66rem; }
.login-mini-scene { display: none; }
.login-input { position: relative; display: block; }
.login-input > span { position: absolute; z-index: 1; top: 50%; left: 14px; transform: translateY(-50%); color: #7770d7; font-size: 1rem; }
.login-input input { padding-left: 42px; background: rgba(250,251,255,.92); }
.login-input input:hover { border-color: #c9c5e8; }
label { display: grid; gap: 9px; margin-bottom: 20px; color: #344057; font-size: .875rem; font-weight: 650; }
label em { color: #ef596f; font-style: normal; }
input, select, textarea { width: 100%; min-height: 46px; border: 1px solid #dfe4ed; border-radius: 10px; padding: 0 13px; color: var(--ink); background: #fff; outline: none; transition: border .18s, box-shadow .18s; }
textarea { padding-top: 12px; padding-bottom: 12px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { border-color: #786be9; box-shadow: 0 0 0 3px rgba(101,88,232,.13); }
select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, #7b8495 50%), linear-gradient(135deg, #7b8495 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.primary, .secondary { min-height: 44px; border-radius: 10px; border: 0; padding: 0 20px; font-weight: 720; transition: transform .15s, background .15s, box-shadow .15s; }
.primary { color: white; background: linear-gradient(135deg, #7468ed, #5c50df); box-shadow: 0 8px 20px rgba(92,80,223,.23); }
.primary:hover { transform: translateY(-1px); box-shadow: 0 11px 25px rgba(92,80,223,.30); }
.primary:disabled { opacity: .6; cursor: wait; transform: none; }
.secondary { color: #4b5568; background: white; border: 1px solid #dfe4ed; }
.wide { width: 100%; margin-top: 4px; }
.form-error { min-height: 20px; margin: -7px 0 12px; color: #d9425f; font-size: .84rem; }
.security-note { margin: 20px 0 0; text-align: center; color: #939cad; font-size: .78rem; }
.security-note span { color: #6a5de6; }
.login-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #edf0f5; color: #8a94a5; font-size: .7rem; }
.login-meta span { display: inline-flex; align-items: center; gap: 6px; }
.login-meta i { width: 7px; height: 7px; border-radius: 50%; background: #32ba7c; box-shadow: 0 0 0 4px #e5f8ef; }

.admin-shell { min-height: 100vh; padding-bottom: 90px; }
.topbar { height: 68px; border-bottom: 1px solid #e7eaf0; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); }
.topbar-inner { width: min(1180px, calc(100% - 48px)); height: 100%; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.wordmark { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 850; letter-spacing: .12em; }
.wordmark b { margin-left: 6px; padding-left: 16px; border-left: 1px solid #dfe3ec; color: #778195; font-size: .78rem; letter-spacing: 0; font-weight: 550; }
.account { display: flex; align-items: center; gap: 10px; color: #5e687a; font-size: .82rem; }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: linear-gradient(135deg,#7769ed,#44bbcf); font-weight: 750; }
.text-button { border: 0; padding: 6px; color: #8b94a5; background: transparent; font-size: .8rem; }
.text-button:hover { color: #5c50df; }
.content { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 48px 0; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.page-actions { display: flex; align-items: center; gap: 10px; }
.page-heading h1 { margin: 0 0 8px; font-size: 2rem; letter-spacing: -.035em; }
.page-heading p:last-child { margin: 0; font-size: .92rem; }
.plus { font-size: 1.25rem; margin-right: 4px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 30px 0 22px; }
.stats article { display: flex; align-items: center; gap: 16px; min-height: 88px; padding: 18px 22px; border: 1px solid #e8ebf1; border-radius: 14px; background: white; box-shadow: 0 8px 26px rgba(33,42,66,.035); }
.stat-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-size: 1.1rem; font-weight: 800; }
.stat-icon.violet { color: #6458df; background: #eeecff; }
.stat-icon.green { color: #27a36c; background: #e4f7ef; }
.stat-icon.gray { color: #748096; background: #eef1f5; }
.stats strong { display: block; font-size: 1.35rem; }
.stats span:not(.stat-icon) { display: block; margin-top: 2px; color: #8992a3; font-size: .78rem; }
.library-card { border: 1px solid #e6eaf0; border-radius: 16px; overflow: hidden; background: white; box-shadow: 0 9px 32px rgba(25,34,57,.045); }
.toolbar { display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.search-wrap { position: relative; flex: 1; max-width: 380px; }
.search-wrap span { position: absolute; top: 10px; left: 13px; color: #8790a0; font-size: 1.2rem; }
.search-wrap input { min-height: 40px; padding-left: 39px; background: #f8f9fb; }
.filters { display: flex; gap: 10px; }
.filters select { min-height: 40px; width: 144px; font-size: .83rem; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 880px; }
th { padding: 13px 18px; color: #8d96a6; background: #fafbfc; font-size: .72rem; font-weight: 680; text-align: left; letter-spacing: .03em; }
td { padding: 15px 18px; border-top: 1px solid #edf0f4; color: #515b6e; font-size: .82rem; vertical-align: middle; }
.right { text-align: right; }
.track-cell { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.track-cover { position: relative; flex: 0 0 auto; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 11px; color: #fff; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.track-cover img { width: 100%; height: 100%; object-fit: cover; }
.track-cover.missing { border: 1px dashed #cbd2df; color: #8c96a8; background: #f2f4f8; font-size: .65rem; }
.track-cell strong { display: block; max-width: 210px; margin-bottom: 4px; color: #263044; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; }
.track-cell small { color: #9aa2af; }
.category-name { display: block; margin-bottom: 5px; color: #4e586a; font-weight: 650; }
.tag { display: inline-flex; margin: 0 4px 3px 0; padding: 3px 7px; border-radius: 5px; color: #7368c5; background: #f0eeff; font-size: .68rem; }
.status-toggle { display: inline-flex; align-items: center; gap: 7px; border: 0; padding: 5px 8px 5px 5px; border-radius: 8px; background: transparent; color: #778195; font-size: .76rem; }
.status-toggle i { width: 9px; height: 9px; border-radius: 50%; background: #aeb5c1; box-shadow: 0 0 0 4px #f0f2f5; }
.status-toggle.live { color: #258b61; }
.status-toggle.live i { background: #29b979; box-shadow: 0 0 0 4px #e4f7ef; }
.sort-input { width: 66px; min-height: 34px; padding: 0 8px; text-align: center; font-size: .78rem; }
.actions { display: flex; justify-content: flex-end; gap: 3px; }
.action-button { border: 0; border-radius: 7px; padding: 7px 9px; color: #758093; background: transparent; font-size: .76rem; }
.action-button:hover { color: #5d50db; background: #f1efff; }
.action-button.delete:hover { color: #da4962; background: #fff0f2; }
.empty-state { padding: 70px 24px; text-align: center; color: #8d96a5; }
.empty-state div { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; color: #766ae5; background: #f0efff; font-size: 1.4rem; }
.empty-state h3 { margin: 0 0 7px; color: #4b5568; }
.empty-state p { margin: 0; font-size: .86rem; }
.table-footer { display: flex; justify-content: space-between; padding: 14px 20px; border-top: 1px solid var(--line); color: #9aa2af; background: #fbfcfd; font-size: .73rem; }

.player-bar { position: fixed; z-index: 20; left: 50%; bottom: 18px; transform: translateX(-50%); display: grid; grid-template-columns: 46px minmax(130px, 210px) minmax(260px, 480px) 32px; align-items: center; gap: 12px; width: min(820px, calc(100% - 32px)); padding: 10px 13px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; color: white; background: rgba(17,25,53,.96); box-shadow: 0 20px 65px rgba(9,16,40,.33); backdrop-filter: blur(14px); }
.player-art { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 11px; overflow: hidden; color: #8993a5; background: #edf0f5; }
.player-art img { width: 100%; height: 100%; object-fit: cover; }
.player-bar strong, .player-bar span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-bar strong { font-size: .82rem; }
.player-bar span { margin-top: 4px; color: #aeb7cd; font-size: .68rem; }
.player-bar audio { width: 100%; height: 34px; }
.player-bar button { border: 0; color: #c9cede; background: transparent; font-size: 1.25rem; }

dialog { width: min(920px, calc(100% - 32px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 18px; color: var(--ink); background: #fff; box-shadow: 0 30px 90px rgba(13,20,45,.30); }
dialog::backdrop { background: rgba(12,18,37,.56); backdrop-filter: blur(5px); }
dialog form { margin: 0; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px 17px; border-bottom: 1px solid var(--line); }
.modal-header .eyebrow { margin-bottom: 5px; font-size: .65rem; }
.modal-header h2 { margin: 0; font-size: 1.35rem; }
.icon-button { width: 36px; height: 36px; border: 0; border-radius: 9px; color: #778195; background: #f4f6f8; font-size: 1.3rem; }
.modal-body { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 30px; max-height: calc(100vh - 200px); padding: 24px 26px 4px; overflow-y: auto; }
.form-column label { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
fieldset { min-width: 0; margin: 0 0 16px; padding: 0; border: 0; }
legend { margin-bottom: 10px; color: #344057; font-size: .875rem; font-weight: 650; }
legend small { color: #929baa; font-size: .7rem; font-weight: 500; }
.tag-options { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-check { position: relative; display: inline-flex; margin: 0; }
.tag-check input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tag-check span { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid #dfe4ed; border-radius: 8px; color: #707a8d; background: #fff; font-size: .76rem; font-weight: 550; cursor: pointer; }
.tag-check input:checked + span { border-color: #7568e8; color: #5e51d9; background: #f0eeff; }
.file-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 104px; border: 1px dashed #cbd2df; border-radius: 11px; color: #505b6e; background: #fafbfc; cursor: pointer; }
.file-drop:hover { border-color: #7b6ee8; background: #f9f8ff; }
.file-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-drop strong { font-size: .8rem; }
.file-drop small { margin-top: 4px; color: #9aa2af; font-size: .7rem; }
.upload-symbol { display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 7px; border-radius: 8px; color: #685ce0; background: #edeaff; font-size: 1rem; }
.cover-picker { position: relative; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 7px 11px; border: 1px dashed #cbd2df; border-radius: 10px; color: #536075; background: #fafbfc; cursor: pointer; }
.cover-picker:hover { border-color: #776ae8; background: #f8f7ff; }
.cover-picker input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.cover-picker-icon { display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px; color: #685ce0; background: #edeaff; font-size: 1.05rem; }
.cover-picker strong, .cover-picker small { display: block; max-width: 195px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cover-picker strong { color: #536075; font-size: .76rem; }
.cover-picker small { margin-top: 2px; color: #9aa2af; font-size: .62rem; }
label small { color: #99a1af; font-weight: 450; font-size: .68rem; }
.form-row.compact { align-items: start; }
.switch-label { align-content: start; }
.switch-line { display: flex; align-items: center; gap: 10px; min-height: 46px; }
.switch-line input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch { position: relative; width: 42px; height: 24px; border-radius: 20px; background: #cbd1da; transition: background .2s; cursor: pointer; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: white; box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: transform .2s; }
.switch-line input:checked + .switch { background: #6a5de5; }
.switch-line input:checked + .switch::after { transform: translateX(18px); }
#publish-label { color: #7d8798; font-size: .76rem; font-weight: 550; }
.preview-column { padding: 0 5px; }
.preview-column > p { margin: 0 0 10px; color: #8992a3; font-size: .75rem; font-weight: 650; }
.card-preview { position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border: 1px solid #e0e5ed; border-radius: 18px; background: #f1f3f7; box-shadow: 0 18px 35px rgba(51,60,95,.14); }
.card-preview > img { width: 100%; height: 100%; object-fit: cover; }
.preview-placeholder { display: grid; place-items: center; gap: 6px; color: #9aa3b2; }
.preview-placeholder span { display: grid; place-items: center; width: 58px; height: 58px; border: 1px dashed #c4cbd7; border-radius: 16px; background: #fff; font-size: 1.7rem; }
.preview-placeholder small { font-size: .7rem; }
.preview-play { position: absolute; right: 13px; bottom: 13px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #6c61b6; background: rgba(255,255,255,.90); font-size: .7rem; }
.preview-column > strong { display: block; margin-top: 13px; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-column > span { display: block; margin-top: 5px; color: #929baa; font-size: .7rem; }
.modal-error { min-height: 18px; margin: 5px 26px 0; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 26px 20px; border-top: 1px solid var(--line); }
.modal-footer button { min-width: 98px; }
.toast-region { position: fixed; z-index: 100; right: 22px; top: 86px; display: grid; gap: 10px; }
.toast { min-width: 260px; max-width: 360px; padding: 13px 16px; border-radius: 10px; color: #fff; background: #18213a; box-shadow: var(--shadow); font-size: .82rem; animation: toast-in .22s ease-out; }
.toast.error { background: #b93e56; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

.taxonomy-dialog { width: min(780px, calc(100% - 32px)); }
.taxonomy-body { max-height: calc(100vh - 150px); padding: 22px 26px 26px; overflow-y: auto; }
.taxonomy-create { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; padding: 16px; border: 1px solid #e7eaf0; border-radius: 13px; background: #f8f9fc; }
.taxonomy-create label { margin: 0; }
.taxonomy-tip { margin: 14px 2px 18px; color: #8a94a5; font-size: .75rem; }
.taxonomy-list { display: grid; gap: 12px; }
.taxonomy-card { padding: 16px; border: 1px solid #e3e7ef; border-radius: 14px; background: #fff; }
.taxonomy-card-head { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; }
.taxonomy-card-head input { min-height: 40px; font-weight: 680; }
.taxonomy-small-button { min-height: 36px; border: 0; border-radius: 8px; padding: 0 11px; color: #5f54cf; background: #f0eeff; font-size: .74rem; font-weight: 650; }
.taxonomy-small-button:hover { background: #e8e5ff; }
.taxonomy-small-button.danger { color: #ce455d; background: #fff0f2; }
.taxonomy-tags { display: grid; gap: 7px; margin-top: 13px; padding-top: 13px; border-top: 1px solid #edf0f4; }
.taxonomy-tag-row { display: grid; grid-template-columns: 1fr auto auto; gap: 7px; align-items: center; }
.taxonomy-tag-row input { min-height: 36px; font-size: .78rem; }
.taxonomy-add-tag { display: grid; grid-template-columns: 1fr auto; gap: 7px; margin-top: 3px; }
.taxonomy-add-tag input { min-height: 38px; font-size: .78rem; }
.taxonomy-empty { padding: 8px 2px; color: #98a1b0; font-size: .76rem; }
.taxonomy-body > .form-error { margin: 14px 2px 0; }

@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-panel { min-height: 100vh; padding: 30px 22px; background: radial-gradient(circle at 5% 0, rgba(95,85,222,.30), transparent 32%), radial-gradient(circle at 100% 100%, rgba(55,189,202,.25), transparent 34%), linear-gradient(145deg,#111936 0,#1c2550 38%,#eef1ff 38.2%,#f8f9fd 100%); }
  .login-panel::before { opacity: .22; mask-image: none; }
  .login-card { padding: 28px 30px 26px; border-color: rgba(255,255,255,.72); box-shadow: 0 26px 70px rgba(14,21,55,.25); }
  .mobile-logo { display: flex; }
  .login-mini-scene { position: relative; display: flex; align-items: flex-end; min-height: 112px; margin: 0 0 28px; padding: 18px; overflow: hidden; border-radius: 18px; color: white; background: radial-gradient(circle at 18% 28%, rgba(125,224,238,.34), transparent 28%), radial-gradient(circle at 80% 30%, rgba(176,125,255,.32), transparent 30%), linear-gradient(135deg,#1c2858,#4a3a88 65%,#257f94); box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
  .login-mini-scene::after { content: ""; position: absolute; width: 180px; height: 180px; right: -95px; top: -105px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; box-shadow: 0 0 0 24px rgba(255,255,255,.03), 0 0 0 52px rgba(255,255,255,.025); }
  .login-mini-scene > span { position: relative; z-index: 2; color: rgba(255,255,255,.78); font-size: .68rem; letter-spacing: .06em; }
  .mini-moon { position: absolute; z-index: 2; top: 16px; left: 18px; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: rgba(255,255,255,.12); font-size: 1.45rem; }
  .mini-wave { position: absolute; z-index: 1; left: 28%; right: 8%; top: 28px; height: 58px; display: flex; align-items: center; justify-content: center; gap: 6px; opacity: .72; }
  .mini-wave i { width: 3px; border-radius: 4px; background: linear-gradient(#8ce8ef,#d19cff); box-shadow: 0 0 12px rgba(126,226,238,.45); }
  .mini-wave i:nth-child(1), .mini-wave i:nth-child(9) { height: 12px; }
  .mini-wave i:nth-child(2), .mini-wave i:nth-child(8) { height: 26px; }
  .mini-wave i:nth-child(3), .mini-wave i:nth-child(7) { height: 42px; }
  .mini-wave i:nth-child(4), .mini-wave i:nth-child(6) { height: 54px; }
  .mini-wave i:nth-child(5) { height: 36px; }
  .modal-body { grid-template-columns: 1fr; }
  .preview-column { display: grid; grid-template-columns: 130px 1fr; grid-template-rows: auto auto 1fr; column-gap: 16px; align-items: start; }
  .preview-column > p { grid-column: 1 / -1; }
  .card-preview { grid-row: 2 / span 2; }
  .preview-column > strong { margin-top: 12px; }
  .player-bar { grid-template-columns: 42px 1fr 32px; }
  .player-bar audio { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 680px) {
  .topbar-inner, .content { width: min(100% - 28px, 1180px); }
  .wordmark b, #admin-name { display: none; }
  .content { padding-top: 30px; }
  .page-heading { align-items: flex-start; }
  .page-actions { flex-direction: column-reverse; align-items: stretch; }
  .page-actions button { min-height: 40px; padding: 0 12px; font-size: .76rem; }
  .page-heading h1 { font-size: 1.65rem; }
  .page-heading .primary { padding: 0 14px; }
  .stats { grid-template-columns: 1fr; gap: 10px; }
  .stats article { min-height: 68px; padding: 12px 16px; }
  .toolbar { flex-direction: column; }
  .search-wrap { max-width: none; }
  .filters select { width: 50%; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .modal-body { padding: 20px 18px 4px; }
  .modal-header, .modal-footer { padding-left: 18px; padding-right: 18px; }
  .modal-error { margin-left: 18px; margin-right: 18px; }
  .preview-column { display: none; }
  .table-footer span:last-child { display: none; }
  .taxonomy-body { padding: 18px; }
  .taxonomy-create { grid-template-columns: 1fr; }
  .taxonomy-card-head, .taxonomy-tag-row { grid-template-columns: 1fr auto; }
  .taxonomy-card-head .danger, .taxonomy-tag-row .danger { grid-column: 2; }
  .login-card { padding: 24px 22px 22px; border-radius: 22px; }
  .login-card h2 { font-size: 1.85rem; }
  .login-card > .muted { margin-bottom: 25px; }
}

@media (max-width: 420px) {
  .login-panel { padding: 18px 14px; }
  .login-mini-scene { min-height: 96px; margin-bottom: 22px; }
  .mobile-logo { margin-bottom: 20px; }
  .login-meta span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
