* { box-sizing: border-box; }
:root {
  --bg1: #f6f7fb;
  --bg2: #eef2f8;
  --glass: rgba(255,255,255,.58);
  --border: rgba(255,255,255,.7);
  --text: #1f2430;
  --muted: #6c7485;
  --accent: #e65b5b;
}
body.bg-cream {
  margin: 0;
  font-family: "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.95), transparent 35%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(72, 84, 110, .12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px; position: sticky; top: 0; z-index: 10; margin: 12px; border-radius: 20px;
}
.brand { font-weight: 800; font-size: 20px; letter-spacing: .5px; }
.auth-btn {
  display: inline-block; background: rgba(255,255,255,.8); color: #151923;
  padding: 9px 16px; border-radius: 999px; font-weight: 700; margin-left: 8px;
}
.layout { display: flex; gap: 18px; padding: 0 12px 24px; }
.sidebar {
  width: 260px; padding: 18px; border-radius: 24px; height: fit-content; position: sticky; top: 84px;
}
.block-title { color: var(--accent); margin: 0 0 12px; font-size: 16px; }
.date-list a {
  display: block; padding: 12px 14px; border-radius: 14px; margin-bottom: 10px;
  background: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.6);
}
.date-list a:hover { transform: translateY(-1px); }
.content { flex: 1; padding: 10px 4px; }
.hero, .card, .audio-card, .player-wrap, .admin-menu { border-radius: 24px; }
.hero { padding: 20px 24px; margin-bottom: 16px; }
.audio-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px;
}
.audio-card { overflow: hidden; display: block; }
.audio-cover { aspect-ratio: 1/1; overflow: hidden; }
.audio-cover img, .cover, .cover-preview {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.audio-meta { padding: 14px; display: grid; gap: 6px; }
.audio-meta span, .player-subtitle, .notice { color: var(--muted); }
.card, .audio-card, .form-box, .player-wrap, .admin-menu { padding: 18px; }
.player-wrap {
  width: min(520px, calc(100% - 24px)); margin: 18px auto 30px; text-align: center;
}
.player-topline { display:flex; justify-content:space-between; align-items:center; margin-bottom: 12px; }
.wave { height: 38px; width: 38%; border-radius: 999px; background:
  linear-gradient(90deg, rgba(230,91,91,.85), rgba(255,255,255,.8), rgba(80,120,255,.5));
  filter: blur(10px); opacity: .7; }
.cover { aspect-ratio: 1/1; border-radius: 28px; object-fit: cover; border: 10px solid rgba(255,255,255,.75); }
.player-title { font-size: clamp(28px, 4vw, 40px); font-weight: 900; margin: 18px 0 6px; line-height: 1.12; }
.player-author { color: var(--accent); font-size: 18px; margin: 6px 0 14px; font-weight: 700; }
.progress-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.range-wrap { flex: 1; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.controls { margin-top: 20px; display:flex; justify-content:center; align-items:center; gap: 18px; }
.control-btn {
  border: none; cursor: pointer; border-radius: 999px; font-weight: 800;
  background: rgba(255,255,255,.7); color: #1c2230; box-shadow: 0 8px 20px rgba(31,36,48,.08);
}
.main-play { width: 76px; height: 76px; font-size: 26px; background: #fff; }
.icon-btn { width: 62px; height: 62px; }
.form-box { width: min(520px, calc(100% - 24px)); margin: 24px auto; border-radius: 24px; }
input, select {
  width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.9);
  background: rgba(255,255,255,.75); color: var(--text); margin-bottom: 12px; outline: none;
}
button { border: none; padding: 11px 16px; border-radius: 14px; cursor: pointer; font-weight: 800; }
.btn-primary { background: linear-gradient(135deg, #ea6868, #ff9b9b); color: #fff; }
.table { width: 100%; border-collapse: collapse; overflow: hidden; }
.table th, .table td { border-bottom: 1px solid rgba(31,36,48,.08); padding: 12px 10px; text-align: left; }
.notice { padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.7); margin-bottom: 12px; }
.notice.ok { color: #246b34; }
.admin-layout { display: flex; gap: 18px; padding: 0 12px 24px; }
.admin-menu { width: 230px; height: fit-content; position: sticky; top: 84px; display: grid; gap: 10px; }
.menu-item { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.42); }
.menu-item.active { background: rgba(230,91,91,.12); color: var(--accent); font-weight: 800; }
.stats-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 14px; margin-bottom: 16px; }
.stats-grid p { font-size: 30px; font-weight: 900; margin: 10px 0 0; }
.search-row { display:flex; gap:10px; align-items:center; margin-bottom:12px; }
.search-row input { margin-bottom: 0; }
.upload-preview-block { margin-bottom: 12px; }
.preview-row { margin-top: 10px; display: flex; align-items: center; gap: 14px; }
.cover-preview { width: 110px; height: 110px; border-radius: 16px; border: 1px solid rgba(31,36,48,.08); background: rgba(255,255,255,.6); }
.preview-tip { color: var(--muted); font-size: 14px; }
.bulk-bar { display:flex; gap:10px; align-items:center; margin-bottom: 12px; flex-wrap: wrap; }
.pager { display:flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.page-btn {
  display:inline-flex; align-items:center; justify-content:center; min-width: 44px; padding: 10px 14px;
  border-radius: 999px; background: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.85);
}
.page-btn.active { background: linear-gradient(135deg, #ea6868, #ff9b9b); color: #fff; }
.page-btn.disabled { opacity: .35; pointer-events: none; }
.profile-wrap { width: min(920px, calc(100% - 24px)); margin: 18px auto 30px; padding: 18px; border-radius: 24px; }
.profile-head { display:flex; gap: 16px; align-items:center; margin-bottom: 18px; }
.avatar {
  width: 68px; height: 68px; border-radius: 50%; display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, #ea6868, #ffb1b1); color: #fff; font-size: 28px; font-weight: 900;
}
.modal {
  position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 999;
  padding: 16px;
}
.modal.show { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(18, 21, 30, .38); backdrop-filter: blur(4px); }
.modal-card {
  position: relative; z-index: 1; width: min(460px, 100%); padding: 22px; border-radius: 24px;
}
.modal-close {
  position: absolute; right: 14px; top: 10px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.7); font-size: 24px; line-height: 1; padding: 0;
}
@keyframes wavePulse {
  0%, 100% { transform: scaleY(.55); opacity: .45; }
  50% { transform: scaleY(1); opacity: 1; }
}
.wave-anim {
  display:flex; gap: 5px; align-items:flex-end; justify-content:center; height: 64px;
}
.wave-bar {
  width: 7px; height: 100%; border-radius: 999px; background: linear-gradient(180deg, rgba(230,91,91,.95), rgba(255,255,255,.9));
  animation: wavePulse 1s ease-in-out infinite;
  transform-origin: bottom;
}
.wave-bar:nth-child(2n) { animation-delay: .15s; }
.wave-bar:nth-child(3n) { animation-delay: .3s; }
.wave-bar:nth-child(4n) { animation-delay: .45s; }
.wave-bar:nth-child(5n) { animation-delay: .6s; }
@media (max-width: 900px) {
  .layout, .admin-layout { flex-direction: column; }
  .sidebar, .admin-menu { width: 100%; position: static; }
  .topbar { margin: 8px; }
}
@media (max-width: 560px) {
  .player-wrap { width: calc(100% - 16px); }
  .main-play { width: 68px; height: 68px; }
  .icon-btn { width: 56px; height: 56px; }
}
