:root {
  --bg: #ffffff;
  --surface: #f1efec;
  --surface-strong: #e7e3dc;
  --text: #1e1e1e;
  --muted: #a8a08d;
  --link: #676256;
  --accent: #a19984;
  --accent-soft: #dad5c8;
  --divider: #edeae4;
  --danger: #bd554f;
  --success: #738b68;
  --shadow: 0 22px 70px rgba(69, 64, 52, .12);
  --sidebar: 224px;
  --player: 76px;
  --radius: 18px;
  --control: 46px;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: "HarmonyOS Sans", "PingFang SC", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select { font: inherit; }
button { color: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.is-hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.eyebrow {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* 登录 */
.login-view {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 72px 24px 36px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.68), rgba(241,239,236,.88)),
    var(--surface);
}
.login-home {
  position: absolute;
  top: 24px;
  left: clamp(20px, 4vw, 56px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--link);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.login-orb { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.login-orb-a { width: 380px; height: 380px; top: -120px; right: -80px; background: rgba(161,153,132,.13); }
.login-orb-b { width: 300px; height: 300px; left: -120px; bottom: -120px; background: rgba(218,213,200,.44); }
.login-card {
  position: relative;
  z-index: 1;
  width: min(100%, 450px);
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 30px;
  background: rgba(255,255,255,.89);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 42px; }
.login-brand img { width: 46px; height: 46px; border-radius: 13px; box-shadow: 0 7px 18px rgba(70,65,52,.14); }
.login-brand div { display: flex; flex-direction: column; gap: 1px; }
.login-brand strong { font-size: 17px; }
.login-brand span { color: var(--muted); font-size: 12px; }
.login-copy h1 { margin: 0 0 12px; font-size: clamp(29px, 6vw, 38px); line-height: 1.14; letter-spacing: -.035em; }
.login-copy > p:last-child { margin: 0 0 30px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.field-label { display: block; margin: 17px 2px 8px; color: var(--link); font-size: 13px; font-weight: 650; }
.field {
  width: 100%;
  height: var(--control);
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 13px;
  outline: none;
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.field:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(161,153,132,.13); }
.field::placeholder { color: #b8b1a0; }
.code-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.button {
  min-height: var(--control);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: transform .15s, opacity .15s, background .15s;
}
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:active:not(:disabled) { transform: translateY(0); }
.button:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(161,153,132,.2); }
.button:disabled { cursor: not-allowed; opacity: .48; }
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover:not(:disabled) { background: var(--link); }
.button-soft { background: var(--surface); color: var(--link); white-space: nowrap; }
.button-line { border: 1px solid var(--divider); background: #fff; color: var(--link); }
.button-danger { background: rgba(189,85,79,.1); color: var(--danger); }
.button-small { min-height: 34px; padding: 0 13px; border-radius: 999px; font-size: 12px; }
.login-submit { width: 100%; margin-top: 4px; }
.form-error { min-height: 20px; margin: 9px 2px 4px; color: var(--danger); font-size: 13px; }
.login-note { margin: 20px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.login-note a { color: var(--link); }

/* 应用框架 */
.app-shell { min-height: 100vh; background: #fbfaf8; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  padding: 24px 16px 18px;
  border-right: 1px solid var(--divider);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(18px);
}
.sidebar-brand { display: flex; align-items: center; gap: 11px; margin: 0 8px 38px; text-decoration: none; }
.sidebar-brand img { width: 38px; height: 38px; border-radius: 11px; }
.sidebar-brand > span { display: flex; flex-direction: column; gap: 1px; }
.sidebar-brand strong { font-size: 15px; }
.sidebar-brand small { color: var(--muted); font-size: 11px; }
.main-nav { display: flex; flex-direction: column; gap: 5px; }
.nav-item {
  position: relative;
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
}
.nav-item:hover { color: var(--text); background: rgba(241,239,236,.65); }
.nav-item.is-active { color: var(--text); background: var(--surface); }
.nav-item.is-active::before { content: ""; position: absolute; left: 0; width: 3px; height: 20px; border-radius: 4px; background: var(--accent); }
.nav-icon, [data-icon] { display: inline-flex; align-items: center; justify-content: center; }
[data-icon] svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notice-dot { width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 3px #fff; }
.sidebar-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--divider); }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.sidebar-user > div:last-child { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 2px; }
.sidebar-user strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user span { color: var(--muted); font-size: 11px; }

.avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #c9b79a, #8d846f);
  color: white;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
.avatar-small { width: 36px; height: 36px; font-size: 13px; }
.avatar-large { width: 72px; height: 72px; font-size: 25px; }
.workspace { min-height: 100vh; margin-left: var(--sidebar); padding-bottom: 24px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(24px, 4vw, 54px);
  border-bottom: 1px solid rgba(237,234,228,.75);
  background: rgba(251,250,248,.9);
  backdrop-filter: blur(18px);
}
.topbar h1 { margin: 0; font-size: clamp(24px, 3vw, 30px); line-height: 1.1; letter-spacing: -.025em; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-button, .top-profile, .player-icon {
  border: 0;
  background: transparent;
  cursor: pointer;
}
.icon-button { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--link); }
.icon-button:hover { background: var(--surface); }
.top-profile { padding: 0; margin-left: 3px; border-radius: 50%; }
.content { width: min(100%, 1180px); margin: 0 auto; padding: 34px clamp(24px, 4vw, 54px) 120px; outline: none; }

/* 页面组件 */
.page-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-intro h2 { margin: 0 0 6px; font-size: 23px; letter-spacing: -.02em; }
.page-intro p { max-width: 640px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar .field { width: auto; min-width: 240px; }
.search-field { position: relative; width: min(100%, 320px); }
.search-field [data-icon] { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-field .field { width: 100%; padding-left: 44px; }
.count-text { color: var(--muted); font-size: 13px; }
.section-title { margin: 28px 0 12px; font-size: 14px; font-weight: 750; }
.panel { border: 1px solid var(--divider); border-radius: var(--radius); background: #fff; box-shadow: 0 10px 34px rgba(76,70,56,.035); }
.panel + .panel { margin-top: 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--divider); }
.panel-head h3 { margin: 0; font-size: 16px; }
.panel-body { padding: 16px 20px; }
.list { overflow: hidden; }
.list-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 66px;
  padding: 10px 12px;
  border-radius: 13px;
  transition: background .15s;
}
.list-row:hover { background: var(--surface); }
.list-row.is-playing { background: rgba(161,153,132,.11); }
.list-row.is-playing .row-title { color: var(--accent); }
.row-click { cursor: pointer; }
.row-main { min-width: 0; flex: 1; }
.row-title { display: block; overflow: hidden; font-size: 15px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.row-sub { display: block; overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.row-trailing { display: flex; align-items: center; gap: 8px; flex: none; }
.duration { min-width: 45px; color: var(--muted); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.cover {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: rgba(255,255,255,.95);
  background: linear-gradient(145deg, #ccb99a, #968d79);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.24);
}
.cover::after { content: "♪"; font-family: Georgia, serif; font-size: 20px; font-weight: 700; }
.cover-small { width: 46px; height: 46px; border-radius: 10px; }
.cover-medium { width: 50px; height: 50px; border-radius: 11px; }
.cover-large { width: 210px; height: 210px; border-radius: 25px; }
.cover-large::after { font-size: 62px; }
.round-cover { border-radius: 50%; }
.round-cover::after { content: "●"; font-size: 14px; }
.square-button {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: var(--surface);
  color: var(--link);
  cursor: pointer;
}
.square-button:hover { background: var(--surface-strong); }
.square-button svg { width: 17px; height: 17px; }
.empty-state { min-height: 350px; display: grid; place-items: center; text-align: center; }
.empty-state-inner { max-width: 330px; }
.empty-icon { width: 66px; height: 66px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 22px; background: var(--surface); color: var(--accent); }
.empty-icon svg { width: 30px; height: 30px; }
.empty-state h3 { margin: 0 0 8px; font-size: 19px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.empty-state .button { margin-top: 20px; }
.skeleton { position: relative; overflow: hidden; border-radius: 10px; background: var(--surface); }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); animation: shimmer 1.2s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }
.loading-list { display: grid; gap: 14px; }
.loading-row { height: 65px; }

.playlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 16px; }
.playlist-card { position: relative; min-width: 0; padding: 16px; border: 1px solid var(--divider); border-radius: 18px; background: #fff; transition: transform .18s, box-shadow .18s; }
.playlist-card:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(71,66,54,.08); }
.playlist-card-cover { width: 100%; aspect-ratio: 1.45; display: grid; place-items: center; margin-bottom: 13px; border-radius: 14px; color: white; }
.playlist-card-cover::after { font-size: 35px; }
.playlist-card h3 { overflow: hidden; margin: 0 0 5px; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.playlist-card p { overflow: hidden; margin: 0; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.playlist-card-actions { display: flex; align-items: center; gap: 7px; margin-top: 14px; }
.playlist-card-actions .button:first-child { flex: 1; }
.detail-head { display: flex; align-items: flex-start; gap: 24px; margin-bottom: 28px; }
.detail-cover { width: 150px; height: 150px; border-radius: 22px; }
.detail-cover::after { font-size: 46px; }
.detail-copy { min-width: 0; flex: 1; padding-top: 8px; }
.detail-copy .back { margin-bottom: 14px; }
.detail-copy h2 { margin: 0 0 8px; font-size: 28px; letter-spacing: -.03em; }
.detail-copy p { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.6; }

.drop-zone { margin: 14px 0; padding: 22px; border: 1.5px dashed var(--accent-soft); border-radius: 16px; background: var(--surface); color: var(--muted); text-align: center; transition: .16s; }
.drop-zone.is-over { border-color: var(--accent); background: rgba(218,213,200,.45); color: var(--link); }
.drop-zone strong { display: block; margin-bottom: 4px; color: var(--link); font-size: 14px; }
.upload-list { display: grid; gap: 10px; margin-top: 14px; }
.upload-row { padding: 12px; border-radius: 13px; background: var(--surface); }
.upload-row-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 12px; }
.upload-row-head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-row-head span { flex: none; color: var(--muted); }
.progress-track { height: 5px; overflow: hidden; border-radius: 99px; background: #fff; }
.progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width .18s; }

.friend-search { display: grid; grid-template-columns: minmax(0, 340px) auto; gap: 10px; margin-bottom: 22px; }
.friend-search .field { min-width: 0; }
@media (min-width: 681px) {
  .friend-search { grid-template-columns: minmax(0, 340px) 88px; align-items: center; }
  .friend-search .button { min-height: 38px; height: 38px; padding: 0 12px; font-size: 13px; }
  .friend-search .button [data-icon] { display: none; }
}
.notification-row { align-items: flex-start; padding-block: 13px; }
.notification-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: none; border-radius: 50%; background: var(--accent); color: #fff; }
.notification-icon svg { width: 19px; height: 19px; }
.notification-row.is-expired { opacity: .52; }
.notification-row .row-title { white-space: normal; }
.notification-row .row-sub { white-space: normal; }
.tag { display: inline-flex; align-items: center; min-height: 25px; padding: 0 9px; border-radius: 999px; background: var(--surface); color: var(--link); font-size: 11px; font-weight: 650; }
.tag-accent { background: rgba(161,153,132,.15); color: var(--accent); }

.profile-card { display: flex; align-items: center; gap: 18px; padding: 24px; border: 1px solid var(--divider); border-radius: 22px; background: #fff; }
.profile-card-copy { min-width: 0; flex: 1; }
.profile-card h2 { margin: 0 0 7px; font-size: 23px; }
.profile-card p { margin: 0; color: var(--muted); font-size: 13px; }
.settings-list { margin-top: 18px; padding: 6px 18px; border: 1px solid var(--divider); border-radius: 18px; background: #fff; }
.settings-row { width: 100%; min-height: 58px; display: flex; align-items: center; gap: 13px; padding: 0; border: 0; border-bottom: 1px solid var(--divider); background: transparent; cursor: pointer; text-align: left; }
.settings-row:last-child { border-bottom: 0; }
.settings-row:hover .settings-title { color: var(--accent); }
.settings-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--surface); color: var(--link); }
.settings-icon svg { width: 17px; height: 17px; }
.settings-copy { min-width: 0; flex: 1; }
.settings-title { display: block; font-size: 14px; font-weight: 650; }
.settings-detail { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.settings-chevron { color: var(--muted); }
.danger-zone { display: grid; gap: 10px; margin-top: 18px; }
.danger-zone .button { width: 100%; background: #fff; border: 1px solid var(--divider); color: var(--danger); }

.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0 20px; }
.stat-card { padding: 18px; border-radius: 16px; background: var(--surface); }
.stat-card strong { display: block; margin-bottom: 4px; font-size: 25px; }
.stat-card span { color: var(--muted); font-size: 12px; }
.bar-chart { height: 116px; display: flex; align-items: flex-end; gap: 4px; padding: 10px 0 22px; border-bottom: 1px solid var(--divider); }
.bar-item { position: relative; flex: 1; min-width: 3px; height: 4%; border-radius: 4px 4px 0 0; background: var(--accent); }
.bar-item span { position: absolute; top: calc(100% + 5px); left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 8px; }
.time-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }

/* 播放器 */
.mini-player {
  position: fixed;
  z-index: 40;
  right: 18px;
  bottom: 18px;
  left: calc(var(--sidebar) + 18px);
  min-height: var(--player);
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 10px 14px;
  border: 1px solid rgba(237,234,228,.92);
  border-radius: 19px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 17px 45px rgba(65,59,48,.14);
  backdrop-filter: blur(20px);
}
.mini-track { min-width: 0; display: flex; align-items: center; gap: 11px; padding: 0; border: 0; background: transparent; cursor: pointer; text-align: left; }
.mini-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mini-copy strong, .mini-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-copy strong { font-size: 14px; }
.mini-copy small { color: var(--muted); font-size: 11px; }
.mini-controls { display: flex; align-items: center; gap: 3px; }
.player-icon { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--text); }
.player-icon:hover { background: var(--surface); }
.player-play { width: 44px; height: 44px; background: var(--accent); color: #fff; }
.player-play:hover { background: var(--link); }
.mini-progress { position: absolute; right: 18px; bottom: 0; left: 18px; height: 2px; overflow: hidden; border-radius: 2px; background: var(--divider); }
.mini-progress i { display: block; width: 0; height: 100%; background: var(--accent); }
#audio { display: none; }

.full-player-card { width: min(100%, 510px) !important; padding: 24px 30px 30px !important; }
.full-player-head { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; margin-bottom: 26px; }
.full-player-head strong { text-align: center; font-size: 14px; }
.full-player-body { display: flex; flex-direction: column; align-items: center; }
.full-player-title { width: 100%; margin: 24px 0 3px; overflow: hidden; font-size: 22px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.full-player-artist { margin: 0; color: var(--muted); font-size: 13px; }
.seek-wrap { width: 100%; margin-top: 25px; }
.seek-range { width: 100%; accent-color: var(--accent); cursor: pointer; }
.seek-times { display: flex; justify-content: space-between; margin-top: 4px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.buffer-status { min-height: 18px; margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.full-controls { display: flex; align-items: center; justify-content: center; gap: 30px; margin-top: 22px; }
.full-controls .player-icon { width: 48px; height: 48px; }
.full-controls .player-play { width: 68px; height: 68px; }
.full-controls .player-play svg { width: 29px; height: 29px; }
.loop-button { margin-top: 20px; min-height: 36px; padding: 0 15px; border: 0; border-radius: 999px; background: var(--surface); color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 650; }
.loop-button.is-on { background: rgba(161,153,132,.15); color: var(--accent); }

/* 弹窗 */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 22px; background: rgba(32,30,27,.35); backdrop-filter: blur(6px); animation: fadeIn .16s ease-out; }
.modal-card { width: min(100%, 470px); max-height: min(84vh, 720px); overflow: auto; padding: 24px; border-radius: 23px; background: #fff; box-shadow: var(--shadow); animation: riseIn .2s ease-out; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.modal-head h2 { margin: 0; font-size: 20px; }
.modal-head p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.modal-close { width: 34px; height: 34px; display: grid; place-items: center; flex: none; border: 0; border-radius: 50%; background: var(--surface); cursor: pointer; }
.modal-close svg { width: 16px; height: 16px; }
.modal-actions { display: flex; gap: 10px; margin-top: 22px; }
.modal-actions .button { flex: 1; }
.choice-list { display: grid; gap: 6px; }
.choice-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px; border: 0; border-radius: 13px; background: transparent; cursor: pointer; text-align: left; }
.choice-row:hover { background: var(--surface); }
.choice-row input { width: 18px; height: 18px; margin-left: auto; accent-color: var(--accent); }
.choice-row .row-main { pointer-events: none; }
.confirm-copy { color: var(--link); font-size: 14px; line-height: 1.7; }
.toast-host { position: fixed; z-index: 200; bottom: 30px; left: 50%; display: grid; gap: 8px; transform: translateX(-50%); pointer-events: none; }
.toast { min-width: 150px; max-width: min(86vw, 450px); padding: 10px 17px; border-radius: 999px; background: rgba(30,30,30,.88); color: #fff; font-size: 13px; text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,.18); animation: toastIn .18s ease-out; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }
.mobile-nav { display: none; }

@media (max-width: 900px) {
  :root { --sidebar: 76px; }
  .sidebar { width: var(--sidebar); align-items: center; padding-inline: 10px; }
  .sidebar-brand { margin-inline: 0; }
  .sidebar-brand img { width: 40px; height: 40px; }
  .sidebar-brand > span, .nav-item > span:last-of-type, .sidebar-foot { display: none; }
  .main-nav { width: 100%; }
  .nav-item { justify-content: center; padding: 0; }
  .notice-dot { position: absolute; top: 11px; right: 12px; }
  .mini-player { left: calc(var(--sidebar) + 14px); }
}

@media (max-width: 680px) {
  :root { --mobile-nav: 68px; }
  .sidebar { display: none; }
  .workspace { margin-left: 0; padding-bottom: var(--mobile-nav); }
  .topbar { min-height: 76px; padding: 15px 18px; }
  .topbar h1 { font-size: 24px; }
  .topbar-actions #globalSearchBtn, .topbar-actions #topProfileBtn { display: none; }
  .content { padding: 24px 16px 190px; }
  .mobile-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 45;
    height: calc(var(--mobile-nav) + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 7px 5px env(safe-area-inset-bottom);
    border-top: 1px solid var(--divider);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(18px);
  }
  .mobile-nav button { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
  .mobile-nav button.is-active { color: var(--accent); }
  .mobile-nav small { font-size: 10px; }
  .mobile-notice-dot { position: absolute; top: 4px; right: calc(50% - 16px); box-shadow: 0 0 0 2px #fff; }
  .mini-player { right: 10px; bottom: calc(var(--mobile-nav) + env(safe-area-inset-bottom) + 8px); left: 10px; min-height: 64px; grid-template-columns: minmax(0, 1fr) auto; gap: 4px; padding: 8px 9px; border-radius: 16px; }
  .mini-player .cover { width: 42px; height: 42px; }
  .mini-copy small { max-width: 130px; }
  #miniShare, #miniPrev { display: none; }
  .player-icon { width: 36px; height: 36px; }
  .player-play { width: 40px; height: 40px; }
  .page-intro { flex-direction: column; }
  .page-intro .actions { width: 100%; }
  .page-intro .actions .button { flex: 1; }
  .playlist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .playlist-card { padding: 11px; }
  .detail-head { gap: 15px; }
  .detail-cover { width: 92px; height: 92px; border-radius: 17px; }
  .detail-cover::after { font-size: 28px; }
  .detail-copy { padding-top: 0; }
  .detail-copy h2 { font-size: 22px; }
  .row-trailing .duration { display: none; }
  .friend-search { grid-template-columns: 1fr auto; }
  .profile-card { align-items: flex-start; padding: 18px; }
  .stat-grid { gap: 7px; }
  .stat-card { padding: 13px 10px; }
  .stat-card strong { font-size: 21px; }
  .modal-backdrop { align-items: end; padding: 0; }
  .modal-card { width: 100%; max-height: 88vh; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; }
  .full-player-card { max-height: 96vh; border-radius: 28px 28px 0 0; }
  .cover-large { width: min(62vw, 250px); height: min(62vw, 250px); }
  .toast-host { bottom: calc(var(--mobile-nav) + env(safe-area-inset-bottom) + 84px); }
}

@media (max-width: 420px) {
  .playlist-grid { grid-template-columns: 1fr 1fr; }
  .playlist-card-actions { gap: 5px; }
  .playlist-card-actions .button { min-height: 32px; padding: 0 9px; }
  .code-row { grid-template-columns: 1fr 112px; }
  .code-row .button { padding: 0 10px; }
  .list-row { padding-inline: 7px; }
  .list-row .cover { width: 43px; height: 43px; }
  .row-trailing { gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
