/* ============================================
   私人电台 - 样式表
   暗色主题 · 紫粉渐变 · 黑胶唱片 · 玻璃拟态
   ============================================ */

/* ===== CSS 变量 ===== */
:root {
  --bg-deep: #0a0a1a;
  --bg-base: #12122a;
  --bg-card: rgba(255, 255, 255, 0.06);
  --bg-card-hover: rgba(255, 255, 255, 0.12);
  --accent: #6c5ce7;
  --accent-light: #a29bfe;
  --accent-pink: #fd79a8;
  --accent-gradient: linear-gradient(135deg, #6c5ce7, #fd79a8);
  --text-primary: #ffffff;
  --text-secondary: #a0a0c0;
  --text-muted: #5a5a7a;
  --lyric-active: #ffffff;
  --lyric-near: rgba(255, 255, 255, 0.5);
  --lyric-far: rgba(255, 255, 255, 0.2);
  --danger: #e74c3c;
  --success: #2ecc71;
  --radius: 16px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ===== 重置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
}

body {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.hidden { display: none !important; }

/* ===== 启动遮罩 ===== */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-deep);
  transition: opacity 0.5s ease;
}
.splash.fade-out {
  opacity: 0;
  pointer-events: none;
}
.splash-icon {
  font-size: 64px;
  animation: bounce 1.5s ease-in-out infinite;
}
.splash-text {
  margin-top: 16px;
  font-size: 22px;
  font-weight: 600;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.splash-spinner {
  margin-top: 24px;
  width: 32px;
  height: 32px;
  border: 3px solid rgba(108, 92, 231, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== 页面通用 ===== */
.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 创建电台页面 ===== */
#create-page {
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.create-container {
  text-align: center;
  max-width: 360px;
  width: 100%;
}
.create-icon {
  font-size: 72px;
  margin-bottom: 24px;
}
.create-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
}
.create-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
}
.create-input {
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 17px;
  margin-bottom: 16px;
  outline: none;
  transition: border-color 0.2s;
}
.create-input:focus {
  border-color: var(--accent);
}
.create-input::placeholder {
  color: var(--text-muted);
}
.create-hint {
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
}
.create-hint code {
  background: var(--bg-card);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
}

/* ===== 按钮 ===== */
.btn-primary {
  width: 100%;
  padding: 16px;
  background: var(--accent-gradient);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.2s;
}
.btn-primary:active {
  transform: scale(0.97);
  opacity: 0.85;
}
.btn-primary span {
  margin-right: 6px;
}
.btn-small {
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
}
.btn-copy {
  padding: 10px 18px;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* ===== 顶部导航 ===== */
.header {
  display: flex;
  align-items: center;
  padding: calc(var(--safe-top) + 12px) 16px 12px;
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 10;
}
.header-left, .header-right {
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-center {
  flex: 1;
  text-align: center;
}
.header-icon {
  font-size: 22px;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  transition: background 0.2s;
}
.header-icon:active {
  background: var(--bg-card-hover);
}
.station-name {
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.station-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ===== 播放器主体 ===== */
.player-main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 20px calc(var(--safe-bottom) + 100px);
  -webkit-overflow-scrolling: touch;
  background: radial-gradient(ellipse at top, rgba(108, 92, 231, 0.12), transparent 60%),
              radial-gradient(ellipse at bottom, rgba(253, 121, 168, 0.08), transparent 60%);
}

/* ===== 黑胶唱片 ===== */
.vinyl-wrapper {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 16px auto 24px;
}
.vinyl {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at center,
      #1a1a2e 0px, #1a1a2e 1px,
      #12122a 2px, #12122a 4px),
    radial-gradient(circle at 30% 30%, #2a2a4e, #0a0a1a);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 0 2px rgba(255, 255, 255, 0.05),
    inset 0 0 20px rgba(0, 0, 0, 0.5);
  position: relative;
  transition: transform 0.3s ease;
  animation: vinyl-spin 20s linear infinite;
  animation-play-state: paused;
}
.vinyl.playing {
  animation-play-state: running;
}
@keyframes vinyl-spin {
  to { transform: rotate(360deg); }
}
.vinyl-grooves {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.02),
    inset 0 0 0 8px rgba(0, 0, 0, 0.2),
    inset 0 0 0 9px rgba(255, 255, 255, 0.02),
    inset 0 0 0 16px rgba(0, 0, 0, 0.15),
    inset 0 0 0 17px rgba(255, 255, 255, 0.02);
}
.vinyl-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.vinyl-label::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-deep);
}
.vinyl-label-text {
  font-size: 28px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}
.vinyl-tonearm {
  position: absolute;
  top: -10px;
  right: -15px;
  width: 80px;
  height: 80px;
  pointer-events: none;
  transform-origin: top right;
  transform: rotate(-30deg);
  transition: transform 0.5s ease;
}
.vinyl-tonearm::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a0a0c0, #606080);
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
.vinyl-tonearm::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 3px;
  height: 65px;
  background: linear-gradient(to bottom, #a0a0c0, #404060);
  border-radius: 2px;
  transform-origin: top;
  transform: rotate(40deg);
}
.vinyl-wrapper.playing .vinyl-tonearm {
  transform: rotate(-15deg);
}

/* ===== 歌曲信息 ===== */
.song-info {
  text-align: center;
  margin-bottom: 24px;
}
.song-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.song-artist {
  font-size: 15px;
  color: var(--text-secondary);
}

/* ===== 进度条 ===== */
.progress-section {
  margin-bottom: 24px;
}
.progress-bar {
  position: relative;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  cursor: pointer;
  margin: 0 4px;
}
.progress-loaded {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  width: 0%;
}
.progress-played {
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s linear;
}
.progress-thumb {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  transform: translate(-50%, -50%);
  left: 0%;
  transition: left 0.1s linear, transform 0.15s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  opacity: 0;
}
.progress-bar:active .progress-thumb {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.3);
}
.progress-time {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

/* ===== 控制按钮 ===== */
.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 32px;
}
.ctrl-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s, transform 0.1s;
}
.ctrl-btn:active {
  transform: scale(0.88);
}
.ctrl-btn:hover {
  color: var(--text-primary);
}
.ctrl-btn.active {
  color: var(--accent-light);
}
.ctrl-play {
  width: 64px;
  height: 64px;
  background: var(--accent-gradient);
  color: white !important;
  box-shadow: 0 8px 24px rgba(108, 92, 231, 0.4);
}
.ctrl-play:active {
  transform: scale(0.92);
}

/* ===== 歌词区域 ===== */
.lyrics-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lyrics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.lyrics-title {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
}
.lyrics-edit-btn {
  background: none;
  border: none;
  color: var(--accent-light);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
}
.lyrics-container {
  max-height: 280px;
  overflow-y: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 20px 8px;
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}
.lyrics-container::-webkit-scrollbar {
  display: none;
}
.lyric-line {
  text-align: center;
  font-size: 16px;
  line-height: 2.2;
  color: var(--lyric-far);
  transition: color 0.3s ease, transform 0.3s ease, font-size 0.3s ease;
  padding: 2px 0;
}
.lyric-line.near {
  color: var(--lyric-near);
}
.lyric-line.active {
  color: var(--lyric-active);
  font-size: 18px;
  font-weight: 600;
  transform: scale(1.02);
}
.lyric-line.empty {
  min-height: 1.6em;
}
.lyrics-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  padding: 40px 0;
}

/* ===== 上传浮动按钮 ===== */
.upload-fab {
  position: fixed;
  bottom: calc(var(--safe-bottom) + 24px);
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-gradient);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(108, 92, 231, 0.4);
  z-index: 50;
  transition: transform 0.2s;
}
.upload-fab:active {
  transform: scale(0.9);
}

/* ===== 侧面板（播放列表） ===== */
.side-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 82%;
  max-width: 360px;
  height: 100%;
  background: var(--bg-base);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
}
.side-panel.show {
  transform: translateX(0);
}
.side-panel.hidden {
  display: flex;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--safe-top) + 16px) 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.panel-header h3 {
  font-size: 18px;
  font-weight: 700;
}
.panel-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
}
.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  -webkit-overflow-scrolling: touch;
}
.playlist-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.playlist-item:active {
  background: var(--bg-card);
}
.playlist-item.playing {
  background: rgba(108, 92, 231, 0.1);
}
.playlist-item-num {
  width: 28px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.playlist-item.playing .playlist-item-num {
  color: var(--accent-light);
}
.playlist-item-info {
  flex: 1;
  min-width: 0;
}
.playlist-item-title {
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.playlist-item.playing .playlist-item-title {
  color: var(--accent-light);
}
.playlist-item-artist {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.playlist-item-duration {
  font-size: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.playlist-item-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.playlist-item-move {
  width: 32px;
  height: 32px;
  background: rgba(108, 92, 231, 0.15);
  border: 1px solid rgba(108, 92, 231, 0.3);
  color: var(--accent-light);
  font-size: 16px;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.1s;
  line-height: 1;
}
.playlist-item-move:active {
  background: rgba(108, 92, 231, 0.35);
  transform: scale(0.9);
}
.playlist-item-move.disabled {
  opacity: 0.2;
  cursor: default;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}
.playlist-item-delete {
  width: 32px;
  height: 32px;
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.35);
  color: #ff6b5a;
  font-size: 16px;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.1s;
  line-height: 1;
  flex-shrink: 0;
}
.playlist-item-delete:active {
  background: rgba(231, 76, 60, 0.4);
  transform: scale(0.9);
}
.playlist-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 60px 20px;
  font-size: 15px;
}

/* ===== 遮罩层 ===== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 150;
  opacity: 0;
  transition: opacity 0.3s;
}
.overlay.show {
  opacity: 1;
}
.overlay.hidden {
  display: block;
}

/* ===== 弹窗 ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s;
}
.modal-overlay.show {
  opacity: 1;
}
.modal-content {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  background: var(--bg-base);
  border-radius: 24px 24px 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  padding-bottom: var(--safe-bottom);
}
.modal-content.show {
  transform: translateY(0);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
}
.modal-body {
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ===== 上传区域 ===== */
.upload-zone {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.upload-zone:active,
.upload-zone.dragover {
  border-color: var(--accent);
  background: rgba(108, 92, 231, 0.08);
}
.upload-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.upload-zone p {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.upload-hint {
  font-size: 13px !important;
  color: var(--text-secondary) !important;
}
.upload-list {
  margin-top: 16px;
}
.upload-item {
  display: flex;
  align-items: center;
  padding: 12px;
  background: var(--bg-card);
  border-radius: 12px;
  margin-bottom: 8px;
  gap: 12px;
}
.upload-item-icon {
  font-size: 24px;
}
.upload-item-info {
  flex: 1;
  min-width: 0;
}
.upload-item-name {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upload-item-status {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.upload-item-status.success { color: var(--success); }
.upload-item-status.error { color: var(--danger); }
.upload-progress {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}
.upload-progress-bar {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 2px;
  transition: width 0.2s;
}

/* ===== 歌词编辑 ===== */
.lyrics-edit-info {
  margin-bottom: 16px;
}
.edit-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 15px;
  margin-bottom: 8px;
  outline: none;
}
.edit-input:focus {
  border-color: var(--accent);
}
.edit-input::placeholder {
  color: var(--text-muted);
}
.lyrics-format-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.format-tab {
  flex: 1;
  padding: 8px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.format-tab.active {
  background: rgba(108, 92, 231, 0.15);
  border-color: var(--accent);
  color: var(--accent-light);
}
.lyrics-textarea {
  width: 100%;
  min-height: 220px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: 'SF Mono', 'Menlo', monospace;
  line-height: 1.8;
  resize: vertical;
  outline: none;
  margin-bottom: 12px;
}
.lyrics-textarea:focus {
  border-color: var(--accent);
}
.lyrics-timestamp-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: var(--bg-card);
  border-radius: 10px;
}
.toolbar-hint {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ===== 分享弹窗 ===== */
.share-desc {
  font-size: 15px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.5;
}
.share-link-box {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.share-link-box input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
}
.share-qr {
  text-align: center;
  margin-top: 20px;
}
.share-qr img,
.share-qr canvas {
  border-radius: 12px;
  background: white;
  padding: 8px;
}

/* ===== Toast 通知 ===== */
.toast {
  position: fixed;
  bottom: calc(var(--safe-bottom) + 100px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(20, 20, 43, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: white;
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 15px;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.error {
  background: rgba(231, 76, 60, 0.95);
}
.toast.success {
  background: rgba(46, 204, 113, 0.95);
}

/* ===== 滚动条隐藏 ===== */
.player-main::-webkit-scrollbar,
.panel-body::-webkit-scrollbar,
.modal-body::-webkit-scrollbar {
  display: none;
}

/* ===== 大屏适配 ===== */
@media (min-width: 600px) {
  .vinyl-wrapper {
    width: 280px;
    height: 280px;
  }
  .player-main {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }
}
