:root {
  --primary: #7055f6;
  --primary-soft: #f2efff;
  --ink: #171b24;
  --muted: #8c94a3;
  --line: #edf0f4;
  --surface: #fff;
  --page: #fafbfc;
  --success: #238458;
  --danger: #c34747;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font: 15px/1.55 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif; }
button,input,textarea { font: inherit; }
button { cursor: pointer; }
.shell { display: flex; min-height: 100vh; max-width: 1180px; margin: auto; background: var(--surface); }
.tabs { width: 210px; flex-shrink: 0; padding: 34px 22px; border-right: 1px solid var(--line); background: #fff; }
.logo { font-size: 21px; font-weight: 700; margin: 0 12px 45px; }
.tab { display: flex; align-items: center; gap: 14px; width: 100%; border: 0; border-radius: 14px; color: var(--muted); background: transparent; padding: 13px 14px; margin-bottom: 9px; }
.tab.active { color: var(--primary); font-weight: 600; background: var(--primary-soft); }
.tab-icon { width: 23px; height: 23px; object-fit: contain; }
.page { flex: 1; padding: 38px 52px 70px; max-width: 820px; }
.header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.header > div:first-child { display: flex; align-items: center; gap: 12px; }
h1 { font-size: 30px; margin: 0; }
h2 { margin: 0; }
.back { height: 40px; width: 40px; border: 0; background: #f3f5f7; border-radius: 12px; font-size: 31px; line-height: 32px; color: var(--ink); }
.tools { display: flex; gap: 10px; }
.tools button { width: 44px; height: 44px; border: 0; border-radius: 13px; background: #fff; color: var(--ink); font-size: 24px; }
.tools button:hover { background: #f5f6f9; }
.login { max-width: 410px; border: 1px solid var(--line); border-radius: 24px; padding: 38px; margin-top: 82px; }
.login h2 { font-size: 24px; margin-bottom: 8px; }
.login p { margin: 0 0 29px; color: var(--muted); }
input,textarea { display: block; width: 100%; padding: 0 16px; border-radius: 13px; border: 1px solid #e1e5eb; margin: 12px 0; outline: none; background: #fff; }
input { height: 52px; }
textarea { min-height: 96px; padding-top: 13px; }
input:focus,textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(112,85,246,.11); }
.test-tip { color: var(--primary); background: var(--primary-soft); font-size: 13px; border-radius: 10px; padding: 10px 13px; margin: 18px 0; }
.primary,.secondary,.pill { border: 0; border-radius: 27px; height: 52px; padding: 0 28px; }
.primary { color: #fff; background: linear-gradient(105deg,#7055f6,#8a66f4); box-shadow: 0 10px 22px rgba(112,85,246,.22); }
.secondary { color: var(--primary); background: var(--primary-soft); height: 44px; padding: 0 20px; }
.login .primary,.modal-card .primary { width: 100%; }
.error { min-height: 22px; margin-top: 14px; color: var(--danger); }
.hidden { display: none !important; }
.filter { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; gap: 12px; }
.pill { height: 46px; background: #f3f5f7; color: #555e6b; padding: 0 17px; }
.compact { height: 48px; }
.playlists { display: grid; gap: 14px; }
.playlist { display: flex; align-items: center; min-height: 90px; border-radius: 16px; padding: 7px 8px; cursor: pointer; transition: background .15s; }
.playlist:hover { background: #faf9ff; }
.cover { width: 76px; height: 76px; flex-shrink: 0; border-radius: 13px; margin-right: 19px; background: linear-gradient(135deg,#244f59,#c5d9d5 62%,#e6b99d); }
.playlist:nth-child(3n+2) .cover { background: linear-gradient(135deg,#7d7180,#d9b28f,#445866); }
.cover.folder { background: #f0ebff; position: relative; }
.cover.folder::after { content: "▣"; color: var(--primary); font-size: 31px; position: absolute; inset: 18px 0 0; text-align: center; }
.copy { flex: 1; min-width: 0; }
.name { font-size: 16px; font-weight: 600; margin-bottom: 5px; }
.meta { color: var(--muted); font-size: 13px; }
.more { border: 0; background: transparent; font-size: 21px; color: #657080; padding: 14px; }
.empty { text-align: center; color: var(--muted); padding: 90px 0; }
.empty strong { color: var(--ink); font-size: 18px; }
.empty p { margin-top: 8px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 25px; }
.detail-header { display: flex; align-items: center; gap: 20px; margin-bottom: 27px; }
.detail-cover { width: 94px; height: 94px; border-radius: 17px; flex-shrink: 0; background: linear-gradient(135deg,#244f59,#c5d9d5,#e6b99d); }
.detail-copy { flex: 1; }
.detail-copy h2 { font-size: 24px; margin-bottom: 8px; }
.share-actions { display: grid; gap: 9px; flex-shrink: 0; }
.section-label { font-size: 19px; font-weight: 600; }
.tracks { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.track { display: flex; align-items: center; gap: 15px; min-height: 65px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.track:last-child { border: 0; }
.sequence { width: 25px; color: var(--muted); }
.track-copy { flex: 1; }
.track-copy small { display: block; color: var(--muted); }
.play { color: var(--primary); border: 0; background: var(--primary-soft); border-radius: 20px; height: 37px; padding: 0 15px; }
.status { background: var(--primary-soft); color: var(--primary); padding: 14px 18px; border-radius: 13px; margin-bottom: 18px; }
.subtabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.subtab { border: 0; color: var(--muted); background: transparent; padding: 12px 18px; margin-bottom: -1px; border-bottom: 2px solid transparent; }
.subtab.active { color: var(--primary); font-weight: 600; border-color: var(--primary); }
.search-row { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.search-row input { margin: 0; }
.section-title { font-size: 19px; margin: 32px 0 17px; }
.section-title.first { margin-top: 0; }
.list-card { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 17px; padding: 17px; margin-bottom: 12px; }
.avatar { width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0; background: var(--primary-soft); }
.grow { flex: 1; min-width: 0; }
.grow small { display: block; margin-top: 5px; color: var(--muted); }
.avatar.small { width: 48px; height: 48px; }
.small-cover { width: 50px; height: 50px; margin: 0; }
.muted { color: var(--muted); }
.actions { display: flex; gap: 8px; }
.actions .secondary,.actions .primary { height: 38px; padding: 0 15px; box-shadow: none; font-size: 13px; }
.notice-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; background: var(--primary); }
.badge { padding: 6px 11px; border-radius: 18px; color: var(--success); background: #e9f7ef; font-size: 13px; }
.danger { height: 40px; padding: 0 16px; border: 0; border-radius: 21px; color: var(--danger); background: #fff1f1; }
.compact-empty { padding: 42px 0; }
.profile-card { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; }
.profile-card .avatar { width: 68px; height: 68px; }
.profile-card h2 { margin-bottom: 7px; font-size: 23px; }
.logout-action { display: block; margin: 42px auto 0; }
.modal { position: fixed; z-index: 10; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(20,24,32,.32); }
.modal-card { width: min(430px,100%); background: #fff; border-radius: 24px; padding: 28px; box-shadow: 0 20px 70px rgba(24,26,37,.18); }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-head h2 { font-size: 22px; }
.close { width: 36px; height: 36px; border: 0; border-radius: 50%; color: var(--muted); background: #f3f5f7; font-size: 23px; }
.modal-card label { display: block; color: var(--muted); margin-bottom: 19px; }
fieldset { margin: 0 0 8px; padding: 0; border: 0; }
legend { color: var(--muted); margin-bottom: 11px; }
.level-option { display: flex !important; gap: 12px; border: 1px solid var(--line); border-radius: 15px; padding: 14px; margin: 10px 0 !important; color: var(--ink) !important; }
.level-option input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--primary); }
.level-option span { display: block; }
.level-option strong { display: block; font-size: 15px; }
.level-option small { display: block; margin-top: 3px; color: var(--muted); }
.modal-tip { margin: 0 0 18px; color: var(--muted); }
.share-options { max-height: 260px; overflow: auto; margin-bottom: 14px; }
.friend-option { display: flex !important; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 9px 0 !important; color: var(--ink) !important; }
.friend-option input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
.friend-option span { font-weight: 600; }
.friend-option small { display: block; font-weight: 400; color: var(--muted); }
.toast { position: fixed; z-index: 20; bottom: 34px; left: 50%; transform: translateX(-50%); padding: 12px 22px; border-radius: 25px; background: #171b24; color: #fff; }
.player-bar { position: fixed; z-index: 9; bottom: 0; left: 0; right: 0; height: 68px; display: flex; align-items: center; padding: 0 24px; background: #fff; border-top: 1px solid var(--line); gap: 16px; }
.player-progress { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--line); cursor: pointer; }
.player-progress-bar { height: 100%; width: 0; background: var(--primary); border-radius: 0 2px 2px 0; transition: width .1s linear; }
.player-info { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; cursor: pointer; }
.player-cover { width: 44px; height: 44px; border-radius: 8px; flex-shrink: 0; background: var(--primary-soft); }
.player-meta { min-width: 0; }
.player-title { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-artist { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-playlist-name { font-size: 11px; color: var(--primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.player-time { font-size: 12px; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.player-controls { display: flex; align-items: center; gap: 4px; }
.player-btn { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font-size: 18px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.player-btn:hover { background: #f3f5f7; }
.player-play { width: 44px; height: 44px; background: var(--primary); color: #fff; font-size: 20px; }
.player-play:hover { background: #5f45dd !important; }
.player-queue { position: fixed; z-index: 8; bottom: 68px; left: 0; right: 0; max-height: 260px; overflow-y: auto; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(0,0,0,.08); }
.play-all-row { padding: 12px 18px 4px; }
.play-all-link { color: var(--primary); text-decoration: none; font-size: 14px; font-weight: 600; }
.play-all-link:hover { text-decoration: underline; }
.player-queue .track { cursor: pointer; padding: 8px 24px; }
.player-queue .track.active { background: var(--primary-soft); }
.player-queue .track.active .sequence { color: var(--primary); font-weight: 600; }
@media (max-width: 720px) {
  .shell { display: block; padding-bottom: 74px; }
  .shell.has-player { padding-bottom: calc(68px + 74px); }
  .tabs { position: fixed; z-index: 10; bottom: 0; width: 100%; height: 70px; display: flex; justify-content: space-around; padding: 7px 10px; border-top: 1px solid var(--line); border-right: 0; }
  .logo { display: none; }
  .tab { display: flex; flex-direction: column; gap: 3px; align-items: center; padding: 5px 12px; margin: 0; font-size: 12px; background: transparent !important; }
  .tab-icon { height: 24px; width: 24px; }
  .page { padding: 27px 22px; }
  .login { margin-top: 38px; padding: 27px 22px; }
  .detail-header { flex-wrap: wrap; }
  .share-actions { width: 100%; grid-template-columns: 1fr 1fr; margin-top: 8px; }
  .share-actions .secondary { padding: 0 10px; }
  .player-bar { bottom: 70px; padding: 0 12px; gap: 8px; }
  .player-cover { width: 38px; height: 38px; }
  .player-title { font-size: 13px; }
  .player-artist { font-size: 11px; }
  .player-playlist-name { font-size: 10px; }
  .player-time { font-size: 11px; }
  .player-btn { width: 32px; height: 32px; font-size: 16px; }
  .player-play { width: 40px; height: 40px; font-size: 18px; }
  .player-queue { bottom: calc(68px + 70px); }
  .player-queue .track { padding: 8px 12px; }
}
