:root {
  --bg: #07070d;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f8;
  --text-muted: rgba(244, 244, 248, 0.55);
  --accent: #a78bfa;
  --accent-2: #f472b6;
  --accent-3: #38bdf8;
  --gradient: linear-gradient(135deg, #a78bfa 0%, #f472b6 50%, #38bdf8 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  --font: 'Outfit', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(167, 139, 250, 0.18), transparent 50%),
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(244, 114, 182, 0.14), transparent 45%),
    radial-gradient(ellipse 60% 70% at 50% 90%, rgba(56, 189, 248, 0.12), transparent 50%),
    var(--bg);
  animation: meshShift 18s ease-in-out infinite alternate;
}

@keyframes meshShift {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(25deg); }
}

.bg-grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.app {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  min-height: 100vh;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  border-radius: 14px;
  color: white;
  box-shadow: 0 8px 32px rgba(167, 139, 250, 0.35);
}

.logo-icon svg { width: 24px; height: 24px; }

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-text {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-text:hover {
  color: var(--text);
  border-color: rgba(167, 139, 250, 0.35);
}

.btn-icon {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-icon:hover {
  background: var(--surface-hover);
  border-color: rgba(167, 139, 250, 0.3);
  transform: translateY(-1px);
}

.btn-icon svg { width: 20px; height: 20px; }

.fav-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 600;
  background: var(--gradient);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Search */
.search-section { margin-bottom: 28px; }

.search-form { width: 100%; }

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 6px 20px;
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.search-box:focus-within {
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.12), var(--shadow);
}

.search-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  outline: none;
  min-width: 0;
}

.search-box input::placeholder { color: var(--text-muted); }

.search-btn {
  padding: 12px 28px;
  border: none;
  border-radius: 999px;
  background: var(--gradient);
  color: white;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  white-space: nowrap;
}

.search-btn:hover { transform: scale(1.02); opacity: 0.95; }
.search-btn:active { transform: scale(0.98); }
.search-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.search-hint {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* Grid */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.results-panel { grid-row: span 2; }

@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .results-panel { grid-row: auto; max-height: 50vh; }
}

.panel {
  background: var(--surface);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  overflow: hidden;
}

.panel-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-title-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-count {
  font-weight: 500;
  color: var(--accent);
}

.json-brace {
  color: var(--text-muted);
  font-weight: 500;
}

.btn-json,
.result-json,
.ctrl-json {
  font-family: ui-monospace, 'Consolas', monospace;
}

.btn-json {
  border: 1px solid var(--border);
  background: rgba(167, 139, 250, 0.12);
  color: #c4b5fd;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-json:hover:not(:disabled) {
  background: rgba(167, 139, 250, 0.22);
  border-color: rgba(167, 139, 250, 0.4);
}

.btn-json:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.75rem;
}

.json-drawer {
  width: min(560px, 94vw);
}

.json-drawer-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.4;
}

.json-drawer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.json-viewer {
  flex: 1;
  overflow: auto;
  margin: 0;
  padding: 14px;
  font-family: ui-monospace, 'Consolas', 'Microsoft YaHei', monospace;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #c9d1d9;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  white-space: pre-wrap;
  word-break: break-word;
  scrollbar-width: thin;
}

/* Results */
.results-panel {
  display: flex;
  flex-direction: column;
  min-height: 480px;
  max-height: calc(100vh - 200px);
}

.results-list {
  flex: 1;
  overflow-y: auto;
  margin: -4px;
  padding: 4px;
  max-height: calc(100vh - 280px);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 280px;
  color: var(--text-muted);
  text-align: center;
}

.empty-icon {
  font-size: 3rem;
  opacity: 0.3;
  margin-bottom: 12px;
}

.result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  border: 1px solid transparent;
  margin-bottom: 6px;
}

.result-item:hover {
  background: var(--surface-hover);
  border-color: var(--border);
}

.result-item.active {
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.25);
}

.result-index {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}

.result-item.active .result-index {
  background: var(--gradient);
  color: white;
}

.result-info { flex: 1; min-width: 0; }

.result-title {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-artist-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  min-width: 0;
}

.result-artist {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.result-tag-original {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(167, 139, 250, 0.25);
  color: #c4b5fd;
  border: 1px solid rgba(167, 139, 250, 0.35);
  letter-spacing: 0.04em;
}

.result-item.active .result-tag-original {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.result-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(4px);
  transition: all 0.2s;
}

.result-item:hover .result-actions,
.result-item.active .result-actions {
  opacity: 1;
  transform: translateX(0);
}

.result-play,
.result-dl {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.result-json {
  width: auto;
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  white-space: nowrap;
}

.result-play {
  background: var(--gradient);
  color: white;
}

.result-dl,
.result-json {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border: 1px solid var(--border);
}

.result-dl:hover,
.result-json:hover {
  background: rgba(167, 139, 250, 0.2);
  border-color: rgba(167, 139, 250, 0.35);
}

.result-json {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #c4b5fd;
}

.result-play svg { width: 14px; height: 14px; margin-left: 2px; }
.result-dl svg { width: 16px; height: 16px; }

.ctrl-btn.ctrl-json {
  width: 44px;
  height: 44px;
  padding: 3px 2px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(167, 139, 250, 0.1);
  color: #c4b5fd;
  white-space: normal;
  flex-shrink: 0;
}

.json-btn-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.12;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.json-btn-row {
  display: block;
  white-space: nowrap;
}

.ctrl-btn.ctrl-json:hover:not(:disabled) {
  color: #c4b5fd;
  border-color: rgba(167, 139, 250, 0.4);
  background: rgba(167, 139, 250, 0.15);
  transform: scale(1.05);
}

/* Player */
.player-panel { padding: 28px 24px; }

.now-playing {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
}

.disc-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  margin-bottom: 24px;
}

.disc-glow {
  position: absolute;
  inset: -20px;
  background: var(--gradient);
  border-radius: 50%;
  opacity: 0.25;
  filter: blur(28px);
  transition: opacity 0.4s;
}

.disc-wrap.playing .disc-glow { opacity: 0.45; animation: pulse 2s ease-in-out infinite; }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.05); opacity: 0.55; }
}

.disc {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.08), transparent 40%),
    conic-gradient(from 0deg, #1a1a24, #2d2d3a, #1a1a24, #3d3d4a, #1a1a24);
  box-shadow:
    inset 0 0 40px rgba(0,0,0,0.6),
    0 12px 40px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.disc-wrap.playing .disc {
  animation: spin 8s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.disc::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
}

.disc-label {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  text-align: center;
  box-shadow: inset 0 2px 8px rgba(255,255,255,0.2);
}

.disc-title, .disc-artist {
  font-size: 0.55rem;
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: white;
}

.disc-artist { opacity: 0.85; font-weight: 500; margin-top: 2px; }

.track-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-artist { color: var(--text-muted); font-size: 0.95rem; }
.track-album { color: var(--text-muted); font-size: 0.8rem; margin-top: 4px; opacity: 0.7; }

/* Progress */
.progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.time {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 36px;
}

.time:last-child { text-align: right; }

.progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient);
  border-radius: 3px;
  pointer-events: none;
  transition: width 0.1s linear;
}

.progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.progress-bar:hover .progress-thumb { opacity: 1; }

/* Controls */
.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.ctrl-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: var(--surface-hover);
  color: var(--text);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.ctrl-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.12);
  transform: scale(1.05);
}

.ctrl-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.ctrl-btn svg { width: 22px; height: 22px; }

.ctrl-play {
  width: 64px;
  height: 64px;
  background: var(--gradient);
  box-shadow: 0 8px 32px rgba(167, 139, 250, 0.4);
}

.ctrl-play:hover:not(:disabled) {
  box-shadow: 0 12px 40px rgba(167, 139, 250, 0.5);
  transform: scale(1.06);
}

.ctrl-play svg { width: 28px; height: 28px; }

.ctrl-play .icon-pause { width: 26px; height: 26px; }

.volume-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  color: var(--text-muted);
}

.volume-slider {
  width: 120px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}

/* Lyrics：滚动仅发生在 .lyric-scroll 内，不带动整页 */
.lyric-panel {
  min-height: 200px;
  overflow: hidden;
}

.lyric-scroll {
  position: relative;
  max-height: 220px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  overflow-anchor: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  scrollbar-width: thin;
}

.lyric-hint {
  margin: -4px 0 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.85;
}

.lyric-placeholder {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 40px 16px;
}

.lyric-lines {
  text-align: center;
  line-height: 2.2;
  font-size: 0.95rem;
}

.lyric-line {
  padding: 4px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  transition: all 0.3s;
}

.lyric-line.active {
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  background: rgba(167, 139, 250, 0.15);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  padding: 12px 24px;
  background: rgba(20, 20, 30, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  z-index: 100;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 底部后台缓存条（不遮挡界面） */
.cache-bar[hidden] {
  display: none !important;
}

.cache-bar {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 150;
  width: min(420px, calc(100vw - 32px));
  padding: 12px 16px 10px;
  background: rgba(14, 14, 22, 0.94);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.cache-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.cache-bar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: cachePulse 1.2s ease-in-out infinite;
}

@keyframes cachePulse {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}

.cache-bar-text {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cache-bar-close {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

.cache-bar-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.cache-bar-fill {
  height: 100%;
  width: 30%;
  background: var(--gradient);
  border-radius: 2px;
  animation: cacheIndeterminate 1.5s ease-in-out infinite;
}

@keyframes cacheIndeterminate {
  0% { transform: translateX(-100%); width: 40%; }
  50% { transform: translateX(80%); width: 50%; }
  100% { transform: translateX(200%); width: 40%; }
}

.cache-bar.ready .cache-bar-dot {
  background: #4ade80;
  animation: none;
  opacity: 1;
}

.cache-bar.ready .cache-bar-fill {
  width: 100%;
  animation: none;
  transform: none;
}

/* Drawer */
.overlay[hidden] {
  display: none !important;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 50;
  backdrop-filter: blur(4px);
}

.drawer[hidden] {
  display: none !important;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 92vw);
  height: 100vh;
  background: rgba(14, 14, 22, 0.96);
  backdrop-filter: blur(24px);
  border-left: 1px solid var(--border);
  z-index: 60;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.drawer-header h3 { font-size: 1.1rem; font-weight: 600; }

.btn-close {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--surface-hover);
  color: var(--text);
  border-radius: 10px;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.drawer-settings {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.drawer-settings input {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
}

.fav-list {
  list-style: none;
  flex: 1;
  overflow-y: auto;
}

.fav-list li {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-bottom: 6px;
  font-size: 0.9rem;
  transition: background 0.2s;
  border: 1px solid transparent;
}

.fav-list li:hover {
  background: var(--surface-hover);
  border-color: var(--border);
}

.fav-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 40px 0;
  font-size: 0.9rem;
}

.fav-empty[hidden], .fav-list:has(li) ~ .fav-empty { display: none; }
