* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: #0c0c0c;
  color: #fff;
  overflow-x: hidden;
}

.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  z-index: -2;
}

.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  z-index: -1;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.navbar {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: bold;
  color: #fff;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.search-container {
  flex: 1;
  max-width: 600px;
  margin: 0 40px;
  position: relative;
}

.search-wrapper {
  display: flex;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 25px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.search-wrapper:focus-within {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ff6b6b;
  box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
}

.search-input {
  flex: 1;
  padding: 12px 20px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  outline: none;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.source-select {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  padding: 12px 15px;
  outline: none;
  cursor: pointer;
}

.source-select option {
  background: #2a2a2a;
  color: #fff;
  padding: 8px;
}

.search-btn {
  background: #ff6b6b;
  border: none;
  color: #fff;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-btn:hover {
  background: #ff5252;
}

.edit-btn {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.edit-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ff6b6b;
}

.edit-btn.active {
  background: rgba(255, 107, 107, 0.3);
  border-color: #ff6b6b;
  color: #ff6b6b;
}

.main-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 30px;
  display: grid;
  grid-template-columns: 600px 450px 350px;
  gap: 25px;
  min-height: calc(100vh - 200px);
  align-items: start;
}

.content-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 25px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 240px);
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

.tab-btn {
  padding: 12px 20px;
  cursor: pointer;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.tab-btn:hover {
  color: #fff;
}

.tab-btn.active {
  color: #ff6b6b;
  border-bottom-color: #ff6b6b;
}

.tab-content {
  display: none;
  flex: 1;
  overflow: auto;
  flex-direction: column;
}

.tab-content.active {
  display: flex;
}

.playlist-input-container {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.playlist-input {
  flex: 1;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

.playlist-input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ff6b6b;
}

.playlist-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.parse-btn {
  padding: 12px 20px;
  background: #ff6b6b;
  border: none;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-size: 14px;
}

.parse-btn:hover {
  background: #ff5252;
}

/* ========================================
   ⭐ 网易歌单示例ID样式
   ======================================== */
.playlist-example {
  margin-bottom: 20px;
  padding: 12px 15px;
  background: rgba(255, 107, 107, 0.1);
  border: 1px dashed rgba(255, 107, 107, 0.3);
  border-radius: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.example-id {
  color: #ff6b6b;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: inline-block;
}

.example-id:hover {
  background: rgba(255, 107, 107, 0.2);
  transform: scale(1.05);
}

.example-id:active {
  transform: scale(0.95);
}

/* ========================================
   ⭐ 点击动画
   ======================================== */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.search-results {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.search-results::-webkit-scrollbar {
  width: 6px;
}

.search-results::-webkit-scrollbar-track {
  background: transparent;
}

.search-results::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.song-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}

.song-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.song-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.song-item:hover::before {
  left: 100%;
}

.song-item.active {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.3), rgba(255, 107, 107, 0.1));
  border: 1px solid rgba(255, 107, 107, 0.5);
}

.song-index {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.song-item.active .song-index {
  background: linear-gradient(135deg, #ff6b6b, #ff5252);
  color: #fff;
}

.song-info {
  flex: 1;
  min-width: 0;
}

.song-name {
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-artist {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-actions {
  display: flex;
  gap: 8px;
  margin-right: 15px;
}

.action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.action-btn:hover {
  background: rgba(255, 107, 107, 0.3);
  color: #ff6b6b;
  transform: scale(1.1);
}

/* ========================================
   ⭐ 添加按钮样式
   ======================================== */
.action-btn.add-btn {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
}

.action-btn.add-btn:hover {
  background: rgba(76, 175, 80, 0.4);
  color: #4caf50;
}

.action-btn.add-btn:active {
  background: rgba(76, 175, 80, 0.6);
  transform: scale(0.9);
}

/* ========================================
   ⭐ 删除按钮样式
   ======================================== */
.action-btn.delete-btn {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
}

.action-btn.delete-btn:hover {
  background: rgba(244, 67, 54, 0.4);
  color: #f44336;
}

.action-btn.delete-btn:active {
  background: rgba(244, 67, 54, 0.6);
  transform: scale(0.9);
}

.player-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 240px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.player-section::-webkit-scrollbar {
  width: 6px;
}

.player-section::-webkit-scrollbar-track {
  background: transparent;
}

.player-section::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.current-song {
  text-align: center;
  margin-bottom: 20px;
}

.current-cover-container {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}

.current-cover {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transition: all 0.5s ease;
  border: 5px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.current-cover.loading {
  filter: blur(5px);
  opacity: 0.5;
}

.current-cover.playing {
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.current-info h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #fff;
}

.current-info p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.player-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.control-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.control-btn.small {
  width: 40px;
  height: 40px;
  font-size: 16px;
}

.play-btn {
  width: 60px;
  height: 60px;
  font-size: 24px;
  background: linear-gradient(135deg, #ff6b6b, #ff5252);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.play-btn:hover {
  background: linear-gradient(135deg, #ff5252, #ff4444);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
}

/* ========================================
   ⭐ 播放模式按钮增强
   ======================================== */
#playModeBtn {
  position: relative;
}

#playModeBtn:hover::after {
  content: attr(title);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 1000;
}

.progress-container {
  margin-bottom: 15px;
}

.progress-bar {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  cursor: pointer;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b6b, #ff8a80);
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s ease;
  position: relative;
}

.time-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.quality-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.quality-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

.quality-select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #fff;
  padding: 6px 10px;
  outline: none;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.3s ease;
}

.quality-select:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ff6b6b;
}

.quality-select option {
  background: #2a2a2a;
  color: #fff;
  padding: 8px;
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.volume-icon {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
}

.volume-slider {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: #ff6b6b;
  border-radius: 50%;
  cursor: pointer;
}

.download-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 15px;
}

.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 13px;
}

.download-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ff6b6b;
  color: #ff6b6b;
  transform: translateY(-2px);
}

.download-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.download-btn i {
  font-size: 14px;
}

.playlist-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 25px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: none;
  flex-direction: column;
  height: calc(100vh - 240px);
}

.playlist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.playlist-actions {
  display: flex;
  gap: 10px;
}

.playlist-btn {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.playlist-btn:hover {
  background: rgba(255, 107, 107, 0.3);
  border-color: #ff6b6b;
}

.playlist-container {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.playlist-save-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(76, 175, 80, 0.2);
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: 20px;
  color: #4caf50;
  font-size: 14px;
  transition: all 0.3s ease;
}

.playlist-save-status i {
  font-size: 16px;
}

.playlist-save-status.saving {
  background: rgba(255, 152, 0, 0.2);
  border-color: rgba(255, 152, 0, 0.3);
  color: #ff9800;
}

.playlist-save-status.saving i {
  animation: spin 1s linear infinite;
}

.playlist-save-status.error {
  background: rgba(244, 67, 54, 0.2);
  border-color: rgba(244, 67, 54, 0.3);
  color: #f44336;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.lyrics-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 25px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: none;
  flex-direction: column;
  height: calc(100vh - 240px);
}

.lyrics-container {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
  padding-right: 10px;
  text-align: center;
}

.lyrics-container::-webkit-scrollbar {
  width: 6px;
}

.lyrics-container::-webkit-scrollbar-track {
  background: transparent;
}

.lyrics-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.lyric-line {
  padding: 8px 0;
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 6px;
  padding-left: 10px;
  padding-right: 10px;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.lyric-line:hover {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
}

.lyric-line.active {
  color: #ff6b6b;
  font-weight: 600;
  font-size: 18px;
  background: rgba(255, 107, 107, 0.1);
  transform: scale(1.05);
}

.loading, .error, .empty-state {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255, 255, 255, 0.7);
}

.loading i, .error i, .empty-state i {
  font-size: 48px;
  margin-bottom: 15px;
  display: block;
}

.loading i {
  animation: spin 1s linear infinite;
  color: #ff6b6b;
}

.notification {
  position: fixed;
  top: 100px;
  right: 30px;
  padding: 15px 20px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  z-index: 1000;
  transform: translateX(400px);
  transition: transform 0.3s ease;
  max-width: 300px;
  font-size: 14px;
  color: white;
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  background: rgba(76, 175, 80, 0.9);
}

.notification.error {
  background: rgba(244, 67, 54, 0.9);
}

.notification.info {
  background: rgba(33, 150, 243, 0.9);
}

.notification.warning {
  background: rgba(255, 152, 0, 0.9);
}

/* ========================================
   ⭐ 移动端编辑模式抽屉样式
   ======================================== */

/* 抽屉遮罩层 */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.drawer-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* 编辑抽屉 */
.mobile-edit-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 75vh;
  max-height: 75vh;
  background: #1a1a1a;
  border-radius: 25px 25px 0 0;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-edit-drawer.open {
  transform: translateY(0);
}

/* 抽屉头部 */
.drawer-header {
  padding: 20px 20px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.drawer-handle {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  cursor: grab;
}

.drawer-handle:active {
  cursor: grabbing;
}

.drawer-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-top: 8px;
  position: relative;
}

.drawer-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.drawer-close:hover {
  background: rgba(255, 107, 107, 0.3);
  color: #ff6b6b;
}

/* 保存状态 */
.save-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
  padding: 4px 8px;
  border-radius: 12px;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.save-status.saving {
  background: rgba(255, 152, 0, 0.2);
  color: #ff9800;
  border-color: rgba(255, 152, 0, 0.3);
}

.save-status.saving i {
  animation: spin 1s linear infinite;
}

.save-status.error {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
  border-color: rgba(244, 67, 54, 0.3);
}

/* 抽屉内容 */
.drawer-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 歌单统计 */
.playlist-stats {
  display: flex;
  justify-content: space-around;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.stat-item i {
  color: #ff6b6b;
  font-size: 16px;
}

.stat-item strong {
  color: #ff6b6b;
}

/* 编辑歌单容器 */
.edit-playlist-container {
  flex: 1;
  overflow-y: auto;
  padding: 10px 15px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.edit-playlist-container::-webkit-scrollbar {
  width: 4px;
}

.edit-playlist-container::-webkit-scrollbar-track {
  background: transparent;
}

.edit-playlist-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

/* 编辑模式下的歌曲项 */
.song-item.edit-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
}

.song-item.edit-item:active {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(0.98);
}

/* 移除抽屉操作按钮区域 */
.drawer-actions {
  display: none;
}

/* ========================================
   ⭐ 响应式设计优化
   ======================================== */

/* 大屏幕 (1600px+) */
@media (min-width: 1600px) {
  .main-container {
    grid-template-columns: 500px 400px 350px;
  }
  
  .lyrics-section {
    display: flex !important;
  }
}

/* 中等屏幕 (1200px - 1600px) */
@media (max-width: 1599px) and (min-width: 1200px) {
  .main-container {
    grid-template-columns: 1fr 400px;
    gap: 20px;
  }
  
  .playlist-section, .lyrics-section {
    display: none !important;
  }
}

/* 平板竖屏 (768px - 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
  .main-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
    padding-bottom: 200px; /* 为底部播放器留空间 */
  }
  
  .nav-container {
    padding: 0 20px;
  }
  
  .search-container {
    margin: 0 20px;
  }
  
  .player-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 180px;
    border-radius: 20px 20px 0 0;
    padding: 15px 20px;
    z-index: 90;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
  }
  
  .current-song {
    display: flex;
    align-items: center;
    text-align: left;
    margin-bottom: 10px;
  }
  
  .current-cover {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    margin-bottom: 0;
  }
  
  .current-info h3 {
    font-size: 16px;
    margin-bottom: 4px;
  }
  
  .current-info p {
    font-size: 13px;
  }
  
  .player-controls {
    margin-bottom: 10px;
  }
  
  .control-btn.small {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  
  .play-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .quality-container,
  .volume-container,
  .download-container {
    display: none;
  }
  
  /* 平板端隐藏桌面编辑区域 */
  .playlist-section {
    display: none !important;
  }
}

/* ========================================
   ⭐ 移动端优化 (< 768px)
   ======================================== */
@media (max-width: 767px) {
  /* 导航栏优化 */
  .navbar {
    padding: 10px 0;
  }
  
  .nav-container {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }
  
  .logo {
    font-size: 20px;
  }
  
  .logo-icon {
    width: 28px;
    height: 28px;
  }
  
  .search-container {
    margin: 0;
    max-width: none;
    width: 100%;
  }
  
  .search-wrapper {
    border-radius: 20px;
  }
  
  .search-input {
    padding: 10px 15px;
    font-size: 14px;
  }
  
  .source-select {
    padding: 10px 12px;
    font-size: 14px;
  }
  
  .search-btn {
    padding: 10px 15px;
  }
  
  .edit-btn {
    padding: 8px 16px;
    font-size: 14px;
    width: 100%;
    justify-content: center;
  }
  
  /* 主容器优化 */
  .main-container {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 15px;
    padding-bottom: 220px; /* 为底部播放器留更多空间 */
  }
  
  .content-section {
    padding: 15px;
    height: auto;
    min-height: 60vh;
    border-radius: 15px;
  }
  
  .section-title {
    font-size: 18px;
    margin-bottom: 15px;
  }
  
  /* 标签页优化 */
  .tabs {
    margin-bottom: 15px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  .tabs::-webkit-scrollbar {
    display: none;
  }
  
  .tab-btn {
    padding: 10px 15px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  
  /* 歌单输入优化 */
  .playlist-input-container {
    flex-direction: column;
    gap: 8px;
  }
  
  .playlist-input {
    padding: 12px 15px;
    font-size: 14px;
  }
  
  .parse-btn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
  }
  
  .playlist-example {
    font-size: 13px;
    padding: 10px;
  }
  
  .example-id {
    font-size: 15px;
    padding: 8px 12px;
    display: block;
    margin: 5px 0;
  }
  
  /* 歌曲列表优化 */
  .song-item {
    padding: 12px 15px;
    margin-bottom: 6px;
    border-radius: 10px;
  }
  
  .song-index {
    width: 36px;
    height: 36px;
    font-size: 13px;
    margin-right: 12px;
  }
  
  .song-name {
    font-size: 15px;
  }
  
  .song-artist {
    font-size: 13px;
  }
  
  .action-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  
  /* ⭐ 底部固定播放器 */
  .player-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    max-height: 200px;
    border-radius: 20px 20px 0 0;
    padding: 15px;
    z-index: 90;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
    overflow: visible;
  }
  
  /* 播放器顶部小横线（可拖动提示） */
  .player-section::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
  }
  
  .current-song {
    display: flex;
    align-items: center;
    text-align: left;
    margin-bottom: 12px;
    padding-top: 8px;
  }
  
  .current-cover-container {
    margin-bottom: 0;
    margin-right: 12px;
  }
  
  .current-cover {
    width: 55px;
    height: 55px;
    border-width: 3px;
  }
  
  .current-info {
    flex: 1;
    min-width: 0;
  }
  
  .current-info h3 {
    font-size: 15px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .current-info p {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .player-controls {
    margin-bottom: 12px;
    gap: 12px;
  }
  
  .control-btn.small {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }
  
  .play-btn {
    width: 52px;
    height: 52px;
    font-size: 22px;
  }
  
  .progress-container {
    margin-bottom: 10px;
  }
  
  .progress-bar {
    height: 4px;
    margin-bottom: 6px;
  }
  
  .time-info {
    font-size: 11px;
  }
  
  /* 隐藏移动端不常用的控件 */
  .quality-container,
  .volume-container,
  .download-container {
    display: none;
  }
  
  /* 移动端隐藏桌面编辑区域 */
  .playlist-section {
    display: none !important;
  }
  
  /* 通知优化 */
  .notification {
    top: auto;
    bottom: 220px;
    right: 15px;
    left: 15px;
    max-width: none;
    font-size: 13px;
    padding: 12px 15px;
  }
  
  /* 空状态优化 */
  .loading, .error, .empty-state {
    padding: 30px 15px;
  }
  
  .loading i, .error i, .empty-state i {
    font-size: 40px;
    margin-bottom: 12px;
  }
  
  /* 歌词面板优化 */
  .lyrics-section {
    display: none !important;
  }
}

/* ========================================
   ⭐ 小屏手机优化 (< 375px)
   ======================================== */
@media (max-width: 374px) {
  .nav-container {
    padding: 0 10px;
  }
  
  .main-container {
    padding: 10px;
    gap: 10px;
    padding-bottom: 220px;
  }
  
  .content-section {
    padding: 12px;
  }
  
  .song-item {
    padding: 10px 12px;
  }
  
  .song-index {
    width: 32px;
    height: 32px;
    font-size: 12px;
    margin-right: 10px;
  }
  
  .song-name {
    font-size: 14px;
  }
  
  .song-artist {
    font-size: 12px;
  }
  
  .current-cover {
    width: 50px;
    height: 50px;
  }
  
  .current-info h3 {
    font-size: 14px;
  }
  
  .current-info p {
    font-size: 11px;
  }
  
  .control-btn.small {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
  
  .play-btn {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  
  .player-controls {
    gap: 10px;
  }
  
  /* 移动端编辑抽屉小屏优化 */
  .mobile-edit-drawer {
    height: 80vh;
  }
  
  .drawer-title {
    font-size: 16px;
  }
  
  .playlist-stats {
    padding: 12px 15px;
  }
  
  .stat-item {
    font-size: 13px;
  }
}

/* ========================================
   ⭐ 横屏模式优化
   ======================================== */
@media (max-width: 767px) and (orientation: landscape) {
  .main-container {
    padding-bottom: 160px;
  }
  
  .player-section {
    max-height: 140px;
    padding: 10px 15px;
  }
  
  .current-cover {
    width: 45px;
    height: 45px;
  }
  
  .current-info h3 {
    font-size: 14px;
  }
  
  .current-info p {
    font-size: 11px;
  }
  
  .player-controls {
    margin-bottom: 8px;
  }
  
  .control-btn.small {
    width: 34px;
    height: 34px;
  }
  
  .play-btn {
    width: 46px;
    height: 46px;
    font-size: 18px;
  }
  
  .progress-bar {
    height: 3px;
  }
  
  .notification {
    bottom: 150px;
  }
  
  /* 横屏编辑抽屉优化 */
  .mobile-edit-drawer {
    height: 85vh;
    max-height: 85vh;
  }
  
  .drawer-header {
    padding: 15px 20px 8px;
  }
  
  .edit-playlist-container {
    padding: 8px 15px;
  }
}

/* ========================================
   ⭐ 触摸优化
   ======================================== */
@media (hover: none) and (pointer: coarse) {
  /* 触摸设备按钮增大 */
  .action-btn,
  .control-btn.small {
    min-width: 40px;
    min-height: 40px;
  }
  
  .tab-btn {
    min-height: 44px;
  }
  
  .song-item {
    min-height: 60px;
  }
  
  /* 移除悬停效果 */
  .song-item:hover {
    background: transparent;
    transform: none;
  }
  
  .song-item:active {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0.98);
  }
  
  .action-btn:hover,
  .control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: none;
  }
  
  .action-btn:active,
  .control-btn:active {
    background: rgba(255, 107, 107, 0.3);
    transform: scale(0.95);
  }
  
  .edit-btn:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  
  .edit-btn:active {
    background: rgba(255, 107, 107, 0.3);
  }
  
  /* 移动端按钮颜色反馈 */
  .action-btn.add-btn:active {
    background: rgba(76, 175, 80, 0.6);
  }
  
  .action-btn.delete-btn:active {
    background: rgba(244, 67, 54, 0.6);
  }
}

/* ========================================
   ⭐ 防止缩放和选择
   ======================================== */
@media (max-width: 767px) {
  * {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
  }
  
  input, textarea, select {
    font-size: 16px !important; /* 防止 iOS 缩放 */
  }
  
  /* 平滑滚动 */
  .search-results,
  .playlist-container,
  .lyrics-container,
  .edit-playlist-container {
    -webkit-overflow-scrolling: touch;
  }
}

/* ========================================
   ⭐ 暗色主题优化
   ======================================== */
@media (prefers-color-scheme: dark) {
  .mobile-edit-drawer {
    background: #1a1a1a;
  }
  
  .drawer-overlay {
    background: rgba(0, 0, 0, 0.8);
  }
}

/* ========================================
   ⭐ 高对比度模式支持
   ======================================== */
@media (prefers-contrast: high) {
  .song-item.active {
    border: 2px solid #ff6b6b;
  }
  
  .action-btn {
    border: 1px solid rgba(255, 255, 255, 0.3);
  }
  
  .mobile-edit-drawer {
    border: 2px solid rgba(255, 255, 255, 0.2);
  }
}

/* ========================================
   ⭐ 减少动画模式支持
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .current-cover.playing {
    animation: none;
  }
  
  .mobile-edit-drawer {
    transition: none;
  }
}
