:root {
  color-scheme: dark;
  --bg: #11100f;
  --panel: #181715;
  --panel-raised: #201f1c;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f4f0e7;
  --muted: #9d988e;
  --accent: #e8ff65;
  --accent-deep: #c8df42;
  --danger: #ff8f86;
  --sidebar: 258px;
  --player: 92px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% -10%, rgba(232, 255, 101, 0.1), transparent 34rem),
    var(--bg);
  color: var(--text);
}

button, select, input { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.hidden { display: none !important; }

.noise {
  position: fixed;
  inset: 0;
  opacity: 0.045;
  pointer-events: none;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 24px;
  background:
    radial-gradient(circle at 12% 15%, rgba(232, 255, 101, 0.1), transparent 25rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.018), transparent 48%);
}

.login-card {
  width: min(100%, 980px);
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  overflow: hidden;
  text-align: left;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(24, 23, 21, 0.94);
  box-shadow: 0 42px 110px rgba(0, 0, 0, 0.42);
}

.login-card h1, .hero h1 {
  margin: 8px 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.login-card h1 { max-width: 520px; font-size: clamp(2.55rem, 4.5vw, 4.4rem); line-height: 0.98; }
.login-copy { max-width: 440px; margin: 0 0 28px; color: var(--muted); line-height: 1.75; }
.login-intro { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 58px; background: linear-gradient(145deg, rgba(232, 255, 101, 0.055), rgba(255, 255, 255, 0.015)); }
.login-intro::after { content: ""; position: absolute; right: -1px; top: 10%; bottom: 10%; width: 1px; background: linear-gradient(transparent, var(--line), transparent); }
.login-intro .brand-mark { margin: 0 0 34px; }
.login-intro.centered { text-align: center; }
.login-intro.centered .brand-mark { margin: 0 auto 30px; }
.login-intro.centered h1 { margin-left: auto; margin-right: auto; }
.login-intro.centered .login-copy { margin-left: auto; margin-right: auto; }
.verse-title {
  width: fit-content;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: justify;
  text-align-last: justify;
  line-height: 1.18 !important;
  letter-spacing: 0 !important;
}
.login-action { align-self: center; width: 100%; padding: 52px 48px; }
.login-action h2 { margin: 3px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 500; }
.login-action > p:not(.action-kicker) { margin: 0 0 28px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.login-action .action-note { margin: 0 0 26px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.login-action > .primary-button { width: 100%; display: flex; justify-content: space-between; margin-top: 12px; }
.action-kicker { margin: 0; color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; }
.field-label { display: block; margin: 0 0 8px; color: var(--muted); font-size: 12px; }
.login-input { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: #12110f; color: var(--text); resize: vertical; }
.access-card .login-input { margin-bottom: 14px; }
.cookie-login { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); text-align: left; }
.cookie-login summary { cursor: pointer; color: var(--text); font-size: 12px; text-align: center; }
.cookie-login p { font-size: 12px; line-height: 1.6; }
.cookie-login code { color: var(--accent); }
.cookie-callout { padding: 10px 12px; border: 1px solid rgba(232, 255, 101, 0.2); border-radius: 10px; background: rgba(232, 255, 101, 0.05); }
.cookie-callout strong { color: var(--text); }
.cookie-steps { margin: 12px 0; padding-left: 20px; font-size: 12px; line-height: 1.7; }
.cookie-steps li + li { margin-top: 5px; }
kbd { padding: 1px 5px; border: 1px solid var(--line); border-radius: 4px; background: #11100f; color: var(--text); font: inherit; }
.secondary-button { width: 100%; margin-top: 8px; padding: 11px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-raised); color: var(--text); cursor: pointer; }
.secondary-button:hover { border-color: rgba(232, 255, 101, 0.45); }
.fine-print { color: #6f6a62; font-size: 10px; line-height: 1.6; margin: 20px 0 0; text-align: center; }
.netease-card { min-height: 620px; }
.netease-action { max-height: min(760px, calc(100vh - 80px)); overflow: auto; }

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.brand-mark.large { width: 54px; height: 54px; margin: 0 auto 26px; }
.brand-mark::before, .brand-mark::after, .brand-mark span {
  content: "";
  display: block;
  width: 3px;
  border-radius: 2px;
  background: #171812;
}
.brand-mark::before { height: 11px; transform: translateX(-7px); }
.brand-mark span { height: 21px; position: absolute; }
.brand-mark::after { height: 15px; transform: translateX(7px); position: absolute; }

.eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.primary-button {
  border: 0;
  border-radius: 999px;
  padding: 13px 24px;
  background: var(--accent);
  color: #171812;
  font-weight: 750;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}
.primary-button:hover { transform: translateY(-2px); background: #f0ff98; }

.qr-panel { margin-top: 28px; }
.qr-frame {
  position: relative;
  width: 200px;
  height: 200px;
  padding: 10px;
  margin: 0 auto;
  border-radius: 18px;
  background: white;
}
.qr-frame img { width: 100%; height: 100%; display: block; }
.qr-panel p { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.qr-expired { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 18px; background: rgba(17, 16, 15, 0.88); color: white; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 5;
  width: var(--sidebar);
  padding: 30px 20px calc(var(--player) + 22px);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: rgba(17, 16, 15, 0.92);
  backdrop-filter: blur(20px);
}
.brand { display: flex; align-items: center; gap: 11px; margin: 0 7px 36px; color: var(--text); text-decoration: none; font-weight: 750; }
.nav-list { display: grid; gap: 5px; }
.nav-item {
  width: 100%;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 13px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.nav-item:hover, .nav-item.active { color: var(--text); background: rgba(255, 255, 255, 0.065); }
.nav-item.active { box-shadow: inset 2px 0 var(--accent); }
.nav-item.active span { color: var(--accent); }
.sidebar-spacer { flex: 1; min-height: 40px; }
.sidebar-label { margin: 0 0 10px; color: #706c64; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.sidebar-settings { margin-top: 18px; }
.profile { margin-bottom: 16px; }
.profile-status { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; }
.status-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status-dot::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1px solid transparent; }
.profile-status.online { color: #9fd9ae; border-color: rgba(87, 217, 122, 0.3); }
.profile-status.online .status-dot { background: #57d97a; box-shadow: 0 0 0 3px rgba(87, 217, 122, 0.12); }
.profile-status.online .status-dot::after { border-color: rgba(87, 217, 122, 0.4); animation: status-pulse 2.2s ease-out infinite; }
.profile-status.offline { color: var(--danger); border-color: rgba(255, 143, 134, 0.35); }
.profile-status.offline .status-dot { background: var(--danger); box-shadow: 0 0 0 3px rgba(255, 143, 134, 0.12); }
@keyframes status-pulse {
  0% { transform: scale(0.7); opacity: 0.9; }
  70%, 100% { transform: scale(1.9); opacity: 0; }
}
.settings-group { display: grid; gap: 2px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.022); }
.settings-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}
.settings-item svg { width: 16px; height: 16px; flex: 0 0 auto; color: #777269; }
.settings-item:hover { color: var(--text); background: rgba(255, 255, 255, 0.055); }
.settings-item:hover svg { color: var(--accent); }
.settings-item.settings-danger:hover { color: var(--danger); background: rgba(255, 143, 134, 0.07); }
.settings-item.settings-danger:hover svg { color: var(--danger); }
.settings-hint { margin-left: auto; color: #6f6a62; font-size: 11px; }

.content { margin-left: var(--sidebar); padding: 40px 4vw calc(var(--player) + 52px); }
.hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; max-width: 1220px; margin: 0 auto 30px; padding: 42px 44px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(120deg, rgba(232, 255, 101, 0.055), rgba(255, 255, 255, 0.016) 58%); }
.hero::after { content: ""; position: absolute; width: 300px; height: 300px; right: -110px; top: -170px; border-radius: 50%; border: 1px solid rgba(232, 255, 101, 0.14); box-shadow: 0 0 0 34px rgba(232, 255, 101, 0.018), 0 0 0 68px rgba(232, 255, 101, 0.012); pointer-events: none; }
.hero-main { position: relative; z-index: 1; min-width: 0; }
.hero h1 { font-size: clamp(2.45rem, 4.8vw, 4.65rem); line-height: 0.96; }
.hero .eyebrow { font-size: 13px; letter-spacing: 0.05em; margin-bottom: 16px; }
.hero .eyebrow::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: 2px; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 26px; }
.hero-stat { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(17, 16, 15, 0.55); color: var(--text); font-size: 12.5px; font-weight: 650; }
.hero-stat b { color: var(--accent); font-weight: 750; }
.hero-stat.hidden { display: none; }
.hero-note { color: var(--muted); font-size: 12px; margin-left: 6px; }
.hero-actions { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.refresh-button, .toolbar-button { border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; background: rgba(255, 255, 255, 0.035); color: var(--muted); cursor: pointer; font-size: 12px; }
.refresh-button:hover, .toolbar-button:hover { border-color: rgba(232, 255, 101, 0.4); color: var(--text); }
.refresh-button span { margin-right: 4px; color: var(--accent); }
.toolbar-button { display: none; }
.round-play {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #161712;
  cursor: pointer;
  font-size: 21px;
  box-shadow: 0 16px 40px rgba(232, 255, 101, 0.12);
}
.round-play:hover { transform: scale(1.04); }
.song-list { max-width: 1220px; margin: 0 auto; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: rgba(255, 255, 255, 0.014); box-shadow: 0 22px 60px rgba(0, 0, 0, 0.12); }
.song-row {
  position: relative;
  display: grid;
  grid-template-columns: 44px 54px minmax(180px, 1.5fr) minmax(120px, 1fr) 64px 104px;
  gap: 16px;
  align-items: center;
  min-height: 74px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  transition: background 160ms ease;
}
.song-row:hover, .song-row.playing { background: rgba(255, 255, 255, 0.035); }
.song-row.playing::before { content: ""; position: absolute; left: 0; width: 2px; height: 36px; border-radius: 2px; background: var(--accent); }
.row-play { border: 0; background: transparent; color: #777269; cursor: pointer; font-size: 13px; }
.song-row:hover .row-play, .song-row.playing .row-play { color: var(--accent); }
.song-cover { width: 48px; height: 48px; border-radius: 7px; object-fit: cover; background: var(--panel-raised); }
.song-title, .song-album { min-width: 0; }
.song-title strong, .song-title span, .song-album { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song-title strong { display: block; font-size: 14px; font-weight: 650; }
.song-title span, .song-album { color: var(--muted); font-size: 12px; }
.local-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border: 1px solid rgba(232, 255, 101, 0.4);
  border-radius: 999px;
  color: var(--accent-deep);
  background: rgba(232, 255, 101, 0.07);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: 1px;
}
.local-badge.owned { border-color: rgba(232, 255, 101, 0.85); color: var(--accent); }
.duration { color: #716d65; font-variant-numeric: tabular-nums; font-size: 12px; }
.row-keep { border: 0; background: transparent; color: #7d786f; font-size: 23px; cursor: pointer; }
.row-keep:hover, .row-keep.kept { color: var(--accent); }
.row-owned {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #7d786f;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}
.row-owned svg { width: 15px; height: 15px; }
.row-owned:hover { color: var(--accent); background: rgba(232, 255, 101, 0.08); }
.row-owned.owned { color: #171812; background: var(--accent); }
.row-owned.owned:hover { color: #171812; background: var(--accent-deep); }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.source-trigger { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; color: #7d786f; cursor: pointer; }
.source-trigger svg { width: 15px; height: 15px; }
.source-trigger:hover { color: var(--accent); background: rgba(232, 255, 101, 0.08); }
.empty-state { max-width: 500px; margin: 80px auto; text-align: center; color: var(--muted); }

.source-dialog {
  width: min(520px, calc(100vw - 32px));
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #1d1c19;
  color: var(--text);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}
.source-dialog::backdrop { background: rgba(0, 0, 0, 0.68); backdrop-filter: blur(5px); }
.source-dialog h2 { margin: 6px 36px 4px 0; font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 500; letter-spacing: -0.03em; }
.source-query { margin: 0 0 24px; color: var(--muted); font-size: 13px; }
.dialog-close { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.06); color: var(--muted); cursor: pointer; font-size: 20px; }
.dialog-close:hover { color: var(--text); }
.copy-query { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 14px; }
.copy-query input { min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #12110f; color: var(--muted); }
.copy-query .secondary-button { width: auto; margin: 0; padding: 8px 14px; }
.source-buttons { display: grid; gap: 9px; max-height: 46vh; overflow-y: auto; padding-right: 4px; }
.source-button { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel-raised); color: var(--text); text-align: left; }
.source-button:hover { border-color: rgba(232, 255, 101, 0.3); }
.source-button > span:first-child { min-width: 0; display: grid; gap: 4px; flex: 1; }
.source-button strong { font-size: 13px; }
.source-button small { overflow: hidden; color: #716d65; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.source-button.match { border-color: rgba(232, 255, 101, 0.35); }
.source-button.match small, .source-button.candidate small { color: var(--accent-deep); }
.source-button.searching small::before { content: "• "; color: var(--accent); }
.source-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; max-width: 46%; }
.source-direct { padding: 7px 11px; border: 0; border-radius: 999px; background: var(--accent); color: #171812; font-size: 11px; font-weight: 750; cursor: pointer; white-space: nowrap; }
.source-direct:hover { background: #f0ff98; }
.source-site { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; white-space: nowrap; }
.source-site:hover { border-color: rgba(232, 255, 101, 0.4); color: var(--text); }
.open-all { width: 100%; margin-top: 12px; }
.dialog-note { margin: 16px 0 0; color: #777269; font-size: 11px; line-height: 1.6; }
.password-form { display: grid; gap: 8px; margin-top: 22px; }
.password-form label { margin-top: 4px; color: var(--muted); font-size: 12px; }
.password-form .primary-button { margin-top: 12px; }
.ban-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 16px 0 12px; }
.ban-form input { min-width: 0; }
.ban-form .secondary-button { width: auto; margin: 0; padding: 10px 16px; white-space: nowrap; }
.lockout-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; max-height: 38vh; overflow-y: auto; }
.lockout-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-raised); }
.lockout-list li > span { min-width: 0; display: grid; gap: 3px; }
.lockout-list code { color: var(--text); font-size: 12.5px; }
.lockout-list small { color: #716d65; font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lockout-empty { justify-content: center !important; color: #6f6a62; font-size: 12px; border-style: dashed !important; }
.unban-button { padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: 11.5px; }
.unban-button:hover { border-color: rgba(232, 255, 101, 0.5); color: var(--accent); }

.player {
  position: fixed;
  z-index: 10;
  inset: auto 0 0 0;
  height: var(--player);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(320px, 1.4fr) minmax(180px, 1fr);
  gap: 28px;
  align-items: center;
  padding: 12px 28px;
  border-top: 1px solid var(--line);
  background: rgba(24, 23, 21, 0.94);
  backdrop-filter: blur(24px);
  box-shadow: 0 -12px 35px rgba(0, 0, 0, 0.22);
}
.now-playing { display: flex; align-items: center; gap: 12px; min-width: 0; }
.now-playing img { width: 58px; height: 58px; border-radius: 8px; object-fit: cover; background: var(--panel-raised); }
.now-playing div { min-width: 0; }
.now-playing strong, .now-playing span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.now-playing strong { font-size: 13px; }
.now-playing span { color: var(--muted); font-size: 11px; margin-top: 5px; }
.transport { display: grid; gap: 7px; }
.transport-buttons { display: flex; justify-content: center; align-items: center; gap: 20px; }
.transport button, .player-actions button { border: 0; background: transparent; cursor: pointer; }
.transport button { color: var(--muted); font-size: 25px; }
.transport button:hover { color: var(--text); }
.transport .play-toggle { width: 34px; height: 34px; display: grid; place-items: center; padding-left: 3px; border-radius: 50%; background: var(--text); color: var(--bg); font-size: 12px; }
.timeline { display: grid; grid-template-columns: 36px 1fr 36px; gap: 8px; align-items: center; color: #777269; font-size: 10px; font-variant-numeric: tabular-nums; }
input[type="range"] { height: 24px; margin-block: -10px; accent-color: var(--accent); cursor: pointer; }
.player-actions { display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.keep-current { font-size: 25px; color: var(--muted); }
.keep-current.kept { color: var(--accent); }
.player-actions input { width: min(110px, 40%); }

.toast {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 112px;
  max-width: min(440px, calc(100vw - 32px));
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #282621;
  color: var(--text);
  font-size: 13px;
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
  transition: 180ms ease;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.toast.error { color: #ffd0cb; border-color: rgba(255, 143, 134, 0.35); }

@media (max-width: 900px) {
  :root { --sidebar: 0px; --player: 150px; }
  .sidebar { position: static; width: auto; height: 68px; padding: 12px 18px; flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { margin: 0 auto 0 0; }
  .sidebar-spacer, .sidebar-settings { display: none; }
  .nav-list { display: flex; gap: 4px; }
  .nav-item { width: auto; min-height: 44px; padding: 9px 12px; font-size: 13px; }
  .content { margin-left: 0; padding: 52px 18px calc(var(--player) + 42px); }
  .hero { margin-bottom: 30px; align-items: center; flex-wrap: wrap; }
  .hero h1 { font-size: clamp(2.5rem, 10vw, 4.2rem); }
  .toolbar-button { display: inline-block; }
  .song-row { grid-template-columns: 32px 50px minmax(120px, 1fr) 104px; gap: 10px; }
  .song-album, .duration { display: none; }
  .player { height: var(--player); grid-template-columns: 1fr auto; grid-template-rows: 58px 56px; gap: 6px 16px; padding: 10px 16px; }
  .transport { grid-column: 1 / -1; grid-row: 2; }
  .player-actions input { display: none; }
  .login-view { align-items: start; padding: 22px 16px; }
  .login-card { width: min(100%, 580px); min-height: 0; grid-template-columns: 1fr; padding: 0; }
  .login-intro { padding: 36px 32px 30px; }
  .login-intro::after { left: 8%; right: 8%; top: auto; bottom: 0; width: auto; height: 1px; }
  .login-intro .brand-mark { margin-bottom: 22px; }
  .login-intro h1 { font-size: clamp(2.35rem, 9vw, 3.5rem); }
  .login-copy { margin-bottom: 18px; }
  .login-action { padding: 34px 32px 38px; }
  .netease-action { max-height: none; overflow: visible; }
}

@media (max-width: 520px) {
  .sidebar .brand { display: none; }
  .sidebar { justify-content: center; }
  .hero-note, .round-play { display: none; }
  .content { padding: 28px 12px calc(var(--player) + env(safe-area-inset-bottom, 0px) + 32px); }
  .hero { display: block; margin-bottom: 18px; padding: 24px 20px; border-radius: 18px; }
  .hero h1 { font-size: clamp(2.1rem, 10vw, 2.8rem); line-height: 1.02; }
  .hero-actions { margin-top: 24px; }
  .hero-meta { margin-top: 20px; }
  .refresh-button, .toolbar-button { min-height: 44px; padding: 9px 13px; font-size: 13px; }
  .song-list { border-radius: 14px; }
  .song-row { grid-template-columns: 40px 44px minmax(0, 1fr) auto; min-height: 76px; padding: 8px 6px; gap: 7px; }
  .row-play, .row-keep, .row-owned, .source-trigger { min-width: 40px; min-height: 40px; }
  .song-title strong { font-size: 14px; }
  .song-title span { font-size: 12px; }
  .row-actions { gap: 0; }
  .song-cover { width: 44px; height: 44px; }
  .source-dialog { max-height: calc(100dvh - 24px); padding: 26px 18px; overflow-y: auto; }
  .source-dialog h2 { font-size: 24px; }
  .dialog-close { width: 44px; height: 44px; top: 10px; right: 10px; }
  .source-buttons { max-height: none; overflow: visible; }
  .source-button { display: grid; gap: 10px; }
  .source-actions { width: 100%; max-width: none; justify-content: flex-start; }
  .source-direct, .source-site { display: inline-flex; min-height: 40px; align-items: center; padding: 9px 13px; font-size: 12px; }
  .copy-query .secondary-button, .open-all { min-height: 44px; }
  .ban-form { grid-template-columns: 1fr; }
  .ban-form .secondary-button { width: 100%; min-height: 44px; }
  .player { height: calc(var(--player) + env(safe-area-inset-bottom, 0px)); padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  .transport button, .player-actions button { min-width: 44px; min-height: 44px; }
  .timeline input[type="range"] { min-height: 40px; margin-block: -18px; }
  .toast { bottom: calc(var(--player) + env(safe-area-inset-bottom, 0px) + 14px); font-size: 12px; text-align: center; }
  .login-view { padding: 10px; }
  .login-card { border-radius: 22px; }
  .login-intro { padding: 28px 22px 24px; }
  .login-action { padding: 28px 22px 32px; }
  .login-action h2 { font-size: 24px; }
}

@media (max-width: 360px) {
  .sidebar { padding-inline: 8px; }
  .nav-item { padding-inline: 9px; font-size: 12px; }
  .hero h1 { font-size: 1.9rem; }
  .song-cover { display: none; }
  .song-row { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .hero-stat { font-size: 11.5px; }
}

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