/* ==================== Ã¨Â®Â¾Ã¨Â®Â¡Ã¤Â»Â¤Ã§ÂÂ / CSS Variables ==================== */
:root {
  /* Ã¤Â¸Â»Ã¨ÂÂ²Ã¨Â°Â - Ã§Â´Â«Ã¨ÂÂÃ¦Â¸ÂÃ¥ÂÂÃ¤Â¸Â»Ã©Â¢Â */
  --primary: #8b5cf6;
  --primary-light: #a78bfa;
  --primary-dark: #7c3aed;
  --secondary: #06b6d4;
  --accent: #f472b6;

  /* Ã¨ÂÂÃ¦ÂÂ¯Ã¨ÂÂ² */
  --bg-base: #0f0f1a;
  --bg-surface: rgba(255, 255, 255, 0.04);
  --bg-surface-hover: rgba(255, 255, 255, 0.08);
  --bg-elevated: rgba(255, 255, 255, 0.06);
  --bg-overlay: rgba(0, 0, 0, 0.7);

  /* Ã¦ÂÂÃ¥Â­ÂÃ¨ÂÂ² */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0f172a;

  /* Ã¨Â¾Â¹Ã¦Â¡Â */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.15);

  /* Ã©ÂÂ´Ã¥Â½Â± */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.15);
  --shadow-glow-strong: 0 0 40px rgba(139, 92, 246, 0.25);

  /* Ã¥ÂÂÃ¨Â§Â */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Ã©ÂÂ´Ã¨Â·Â */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;

  /* Ã¨Â¿ÂÃ¦Â¸Â¡ */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Ã¥Â­ÂÃ¤Â½Â */
  --font-sans: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace;
}

/* ==================== Ã¥ÂÂ¨Ã¥Â±ÂÃ¦ Â·Ã¥Â¼Â ==================== */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after {
  box-sizing: inherit;
}

/* Ã¥ÂÂ¨Ã¥Â±ÂÃ¦Â»ÂÃ¥ÂÂ¨Ã¦ÂÂ¡Ã§Â¾ÂÃ¥ÂÂ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Ã©ÂÂÃ¤Â¸Â­Ã¦ÂÂÃ¥Â­ÂÃ¦ Â·Ã¥Â¼Â */
::selection {
  background: rgba(139, 92, 246, 0.3);
  color: var(--text-primary);
}

/* ==================== Ã¨ÂÂÃ¦ÂÂ¯Ã¨Â£ÂÃ©Â¥Â° ==================== */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(244, 114, 182, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, 1%) rotate(1deg); }
  66% { transform: translate(-1%, 2%) rotate(-1deg); }
}

/* ==================== Ã¦ÂÂ­Ã¦ÂÂ¾Ã¥ÂÂ¨Ã¤Â¸Â»Ã¥Â¸ÂÃ¥Â±Â ==================== */
.player {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* ==================== Ã¥Â·Â¦Ã¤Â¾Â§Ã¦ÂÂ­Ã¦ÂÂ¾Ã¥ÂÂ¨Ã¥ÂÂºÃ¥ÂÂ ==================== */
.left {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 100%;
  padding: 0 var(--space-lg);
}

/* ==================== Ã©Â»ÂÃ¨ÂÂ¶Ã¥ÂÂ±Ã§ÂÂÃ¥Â°ÂÃ©ÂÂ¢Ã¦ Â·Ã¥Â¼Â ==================== */
.cover-wrapper {
  width: 400px;
  height: 400px;
  position: relative;
  flex: 0 0 auto;
  margin: var(--space-xl) 0;
}

.vinyl-container {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 14px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 
    inset 0 0 20px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition-normal);
}

.cover-wrapper:hover .vinyl-container {
  box-shadow: 
    inset 0 0 20px rgba(0, 0, 0, 0.3),
    0 0 50px rgba(139, 92, 246, 0.15),
    0 20px 40px rgba(0, 0, 0, 0.4);
}

.vinyl {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border-radius: 50%;
  background: #1a1a1a;
  transition: transform var(--transition-normal);
  animation: spin 20s linear infinite;
  animation-play-state: paused;
}

.vinyl.spinning {
  animation-play-state: running;
}

/* Ã©Â»ÂÃ¨ÂÂ¶Ã§ÂºÂ¹Ã§ÂÂ */
.vinyl::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at center,
    #222 0px,
    #1a1a1a 2px,
    #222 4px
  );
  opacity: 0.3;
}

.cover {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  border-radius: 50%;
  object-fit: cover;
  z-index: 2;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.vinyl:hover {
  transform: scale(1.02);
}

/* ==================== Ã¦Â­ÂÃ¦ÂÂ²Ã¤Â¿Â¡Ã¦ÂÂ¯ ==================== */
.info {
  margin-top: var(--space-xl);
  width: 400px;
  text-align: center;
  min-height: 64px;
  max-height: 64px;
  overflow: hidden;
}

.title {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* ==================== Ã¦ÂÂ§Ã¥ÂÂ¶Ã¥ÂÂº ==================== */
.controls {
  margin-top: var(--space-xl);
  width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  flex: 0 0 auto;
}

.time-display {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

/* Ã¨Â¿ÂÃ¥ÂºÂ¦Ã¦ÂÂ¡ */
.progress {
  width: 100%;
  height: 5px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
  position: relative;
}

.progress::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  background-size: var(--progress, 0%) 100%;
  background-repeat: no-repeat;
}

.progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
  margin-top: -5.5px;
  border: 2px solid rgba(255,255,255,0.9);
}

.progress::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
}

/* Firefox */
.progress::-moz-range-track {
  height: 5px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
}
.progress::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.9);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

/* Ã¦ÂÂÃ©ÂÂ®Ã§Â»Â */
.buttons {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  justify-content: center;
}

.buttons button {
  border: none;
  background: var(--bg-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.buttons button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(6,182,212,0.1));
  opacity: 0;
  transition: opacity var(--transition-fast);
  border-radius: inherit;
}

.buttons button:hover::before {
  opacity: 1;
}

.buttons button:hover {
  transform: scale(1.08);
  background: var(--bg-surface-hover);
  box-shadow: var(--shadow-glow);
}

.buttons button:active {
  transform: scale(0.95);
}

.buttons button.small {
  width: 52px;
  height: 52px;
}

.buttons button.main {
  width: 76px;
  height: 76px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.buttons button.main:hover {
  box-shadow: 0 6px 30px rgba(139, 92, 246, 0.5);
  transform: scale(1.1);
}

.buttons button.main::before {
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
}

.buttons button img {
  width: 55%;
  height: 55%;
  object-fit: contain;
  display: block;
  filter: brightness(1.2);
  position: relative;
  z-index: 1;
}

/* ==================== Ã¦ÂÂ­Ã¦ÂÂ¾Ã¥ÂÂÃ¨Â¡Â¨Ã©ÂÂ¢Ã¦ÂÂ¿ ==================== */
.playlist-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1499;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}
.playlist-overlay.show {
  opacity: 1;
  visibility: visible;
}

#playlistPanel {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 100vh;
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(20px);
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  border-right: 1px solid var(--border-subtle);
}
#playlistPanel.show {
  transform: translateX(0);
}

.playlist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  background: transparent;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.playlist-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.playlist-header-actions {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.close-btn {
  width: 36px;
  height: 36px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.close-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--border-medium);
  transform: rotate(90deg);
}

#playlistInner {
  width: calc(100% + 17px);
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--space-md);
  padding-right: 17px;
  box-sizing: border-box;
}

/* Ã¦ÂÂ­Ã¦ÂÂ¾Ã¥ÂÂÃ¨Â¡Â¨Ã©Â¡Â¹ */
.playlist-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.playlist-item {
  display: flex;
  align-items: center;
  padding: var(--space-md);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.playlist-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity var(--transition-fast);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.playlist-item:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-subtle);
  transform: translateX(4px);
}

.playlist-item:hover::before {
  opacity: 0.5;
}

.playlist-item.active {
  background: linear-gradient(90deg, rgba(139,92,246,0.1), transparent);
  border-color: rgba(139, 92, 246, 0.3);
}

.playlist-item.active::before {
  opacity: 1;
}

.playlist-item img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  margin-right: var(--space-md);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.playlist-item-info {
  flex: 1;
  min-width: 0;
}
.playlist-item-info .song-name {
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.playlist-item-info .artist-name {
  font-size: 12px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playlist-item-actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
  align-items: center;
}
.playlist-item-actions button {
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-play-item {
  background: transparent;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-play-item img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(1.2);
}
.btn-play-item:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.6));
}

/* ==================== Ã¥ÂÂ³Ã¤Â¾Â§Ã¦Â­ÂÃ¨Â¯ÂÃ¥ÂÂºÃ¥ÂÂ ==================== */
.right {
  width: 50%;
  padding: var(--space-xl);
  overflow: hidden;
  height: 100%;
  box-sizing: border-box;
}

.lyrics-wrapper {
  cursor: pointer;
  height: 100%;
  overflow-y: auto;
  padding: 120px 0 300px 0;
  scroll-behavior: smooth;
  word-break: break-word;
  white-space: normal;
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 10%,
    rgba(0, 0, 0, 1) 90%,
    rgba(0, 0, 0, 0) 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 10%,
    rgba(0, 0, 0, 1) 90%,
    rgba(0, 0, 0, 0) 100%
  );
}

.lyrics-wrapper::-webkit-scrollbar {
  display: none;
}

.lyrics-block {
  padding: 10px 0;
  transition: all 0.3s ease;
}

.lyrics-block p {
  margin: 0;
  color: var(--text-muted);
  font-size: 38px;
  line-height: 1.4;
  text-align: left;
  font-weight: 400;
}

.lyrics-block.active p {
  color: #fff;
  font-size: 44px;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

/* ==================== Ã¦ÂÂÃ§Â´Â¢Ã¦Â¨Â¡Ã¦ÂÂÃ¦Â¡Â ==================== */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2002;
  opacity: 0;
  transition: opacity var(--transition-normal);
}
.search-modal.show {
  opacity: 1;
}
.search-modal-content {
  width: 90%;
  max-width: 720px;
  max-height: 80vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: all 0.3s ease;
}

.search-modal-content.has-results {
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.search-header {
  padding: var(--space-md) var(--space-lg);
  background: transparent;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.search-modal-content.has-results .search-header {
  border-bottom-color: var(--border-subtle);
}
/* ===== Ã¤Â¸ÂÃ¤Â½ÂÃ¥ÂÂÃ¦ÂÂÃ§Â´Â¢Ã¦ÂÂ¡Ã¥Â®Â¹Ã¥ÂÂ¨ ===== */
.search-bar-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 4px 5px 4px 20px;
  transition: all var(--transition-fast);
  min-width: 0;
  gap: 4px;
}

.search-bar-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

#searchInput {
  flex: 1;
  background: transparent;
  color: var(--text-primary);
  border: none;
  border-radius: 0;
  font-size: 15px;
  height: 38px;
  line-height: 38px;
  box-sizing: border-box;
  transition: none;
  outline: none;
  padding: 0;
  min-width: 0;
}
#searchInput:focus {
  border-color: transparent;
  box-shadow: none;
}
#searchInput::placeholder {
  color: var(--text-muted);
  font-size: 14px;
}

/* Ã¦ÂÂ¡Ã¦ÂÂ°Ã¨Â¾ÂÃ¥ÂÂ¥Ã¦Â¡Â - Ã¦ÂÂ´Ã¥ÂÂÃ¥ÂÂ¨Ã¦ÂÂÃ§Â´Â¢Ã¦ÂÂ¡Ã¥ÂÂ */
#searchLimit {
  width: 38px;
  padding: 0 2px;
  background: transparent;
  color: var(--text-secondary);
  border: none;
  border-left: 1px solid var(--border-subtle);
  font-size: 13px;
  text-align: center;
  height: 24px;
  line-height: 24px;
  outline: none;
  -moz-appearance: textfield;
  transition: color var(--transition-fast);
}
#searchLimit::-webkit-outer-spin-button,
#searchLimit::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#searchLimit:focus {
  color: var(--text-primary);
}

#searchExecuteBtn {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
#searchExecuteBtn:hover {
  transform: scale(1.08);
  box-shadow: 0 2px 12px rgba(139, 92, 246, 0.4);
}
.search-execute-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(1.5);
}

/* Ã¦ÂÂÃ§Â´Â¢Ã§Â»ÂÃ¦ÂÂÃ¥ÂÂºÃ¥ÂÂ - Ã©Â»ÂÃ¨Â®Â¤Ã©ÂÂÃ¨ÂÂÃ¯Â¼ÂÃ¦ÂÂÃ¥ÂÂÃ¥Â®Â¹Ã¦ÂÂ¶Ã¥Â¹Â³Ã¦Â»ÂÃ¥Â±ÂÃ¥Â¼Â */
.search-results {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 var(--space-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.search-results::-webkit-scrollbar {
  display: none;
}
.search-results.show {
  max-height: 60vh;
  opacity: 1;
  overflow-y: auto;
  padding: var(--space-md);
}

.search-loading, .search-empty, .search-error {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 15px;
}

/* ==================== Ã¦ÂÂÃ§Â´Â¢Ã§Â»ÂÃ¦ÂÂÃ¥ÂÂºÃ¥ÂÂ ==================== */
.search-results {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.search-results::-webkit-scrollbar {
  display: none;
}

.search-loading, .search-empty, .search-error {
  text-align: center;
  padding: 50px;
  color: var(--text-muted);
  font-size: 15px;
}

/* Ã¦ÂÂÃ§Â´Â¢Ã§Â»ÂÃ¦ÂÂÃ©Â¡Â¹ */
.search-item {
  display: flex;
  align-items: center;
  padding: 12px var(--space-md);
  margin-bottom: var(--space-sm);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  position: relative;
  gap: var(--space-md);
}
.search-item:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-subtle);
  transform: translateX(4px);
}

/* Ã¦ÂÂÃ§Â´Â¢Ã§Â»ÂÃ¦ÂÂÃ¥Â°ÂÃ©ÂÂ¢Ã¥ÂÂ¾ */
.search-item > img,
.search-item img:first-child {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px;
  min-height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  display: block;
}

/* Ã¦Â­ÂÃ¦ÂÂ²Ã¤Â¿Â¡Ã¦ÂÂ¯ */
.search-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.search-item-info strong,
.search-item-info .song-name {
  display: block;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  font-size: 14px;
}
.search-item-info span,
.search-item-info .artist-name {
  color: var(--text-muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

/* Ã¦ÂÂÃ©ÂÂ®Ã¥ÂÂº */
.search-item-buttons {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
  align-items: center;
}
.search-item-buttons button,
.search-item .btn-play,
.search-item .btn-add {
  padding: 7px 16px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all var(--transition-fast);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Ã¦ÂÂ­Ã¦ÂÂ¾Ã¦ÂÂÃ©ÂÂ® */
.search-item .btn-play {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}
.search-item .btn-play:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* Ã¦Â·Â»Ã¥Â Ã¦ÂÂÃ©ÂÂ® */
.search-item .btn-add {
  background: var(--bg-elevated) !important;
  color: var(--text-secondary) !important;
  border: 1px solid var(--border-subtle) !important;
}
.search-item .btn-add:hover {
  background: var(--bg-surface-hover) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-medium) !important;
}

.search-item-buttons button:disabled,
.search-item .btn-play:disabled,
.search-item .btn-add:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

/* ==================== Ã¨Â¯ÂÃ¨Â®ÂºÃ¥Â¼Â¹Ã§ÂªÂ ==================== */
.comments-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-slow), visibility var(--transition-slow);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
}
.comments-modal.show {
  opacity: 1;
  visibility: visible;
}
.comments-modal-content {
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(20px);
  padding: var(--space-lg);
  width: 80%;
  max-height: 80%;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  position: relative;
  opacity: 0;
  transition: opacity var(--transition-slow);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
}
.comments-modal.show .comments-modal-content {
  opacity: 1;
}
.comments-modal-content::-webkit-scrollbar {
  width: 6px;
}
.comments-modal-content::-webkit-scrollbar-track {
  background: transparent;
}
.comments-modal-content::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: var(--radius-full);
}
.comments-modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--border-strong);
}
#commentsList {
  max-height: auto;
  overflow-y: scroll;
  overflow: hidden;
}
.comment-item {
  display: flex;
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}
.comment-item:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-medium);
}
.comment-item img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: var(--space-md);
  box-shadow: var(--shadow-sm);
}
.comment-item .content {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==================== Ã¥Â¿Â«Ã¦ÂÂ·Ã©ÂÂ®Ã¥Â¸Â®Ã¥ÂÂ©Ã©ÂÂ¢Ã¦ÂÂ¿ ==================== */
.shortcut-help {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2001;
}
.shortcut-help.show {
  display: flex;
}
.help-content {
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(20px);
  color: var(--text-primary);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  max-width: 360px;
  text-align: left;
  animation: fadeIn var(--transition-normal);
  border: 1px solid var(--border-subtle);
}
.help-content h2 {
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.help-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg) 0;
}
.help-content li {
  margin: var(--space-sm) 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.help-content b {
  color: var(--primary-light);
  background: var(--bg-surface);
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  min-width: 80px;
  text-align: center;
  display: inline-block;
}
.help-content button {
  display: block;
  margin: 0 auto;
  padding: 10px 28px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}
.help-content button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* ==================== Ã¦Â¬Â¢Ã¨Â¿ÂÃ¦ÂÂÃ§Â¤Âº ==================== */
.welcome-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.welcome-modal.show {
  display: flex;
}
.welcome-content {
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(20px);
  color: var(--text-primary);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  max-width: 400px;
  text-align: center;
  animation: fadeIn var(--transition-normal);
  border: 1px solid var(--border-subtle);
}
.welcome-content h2 {
  font-size: 1.4rem;
  margin-bottom: var(--space-md);
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.welcome-content p {
  margin: var(--space-sm) 0;
  line-height: 1.6;
  color: var(--text-secondary);
}
.welcome-content .hint b {
  color: var(--primary-light);
  background: var(--bg-surface);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}
.welcome-content button {
  margin-top: var(--space-lg);
  padding: 10px 28px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}
.welcome-content button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* ==================== Ã¥ÂÂ¨Ã§ÂºÂ¿Ã§ÂÂ¶Ã¦ÂÂ ==================== */
.online-status {
  position: fixed;
  right: var(--space-lg);
  bottom: var(--space-lg);
  background: var(--bg-surface);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
  z-index: 9999;
  user-select: none;
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
}
.online-status:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

/* ==================== Ã¥ÂÂ¨Ã§ÂÂ» ==================== */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Ã©Â»ÂÃ¨Â®Â¤Ã¦Â¡ÂÃ©ÂÂ¢Ã§Â«Â¯Ã©ÂÂÃ¨ÂÂ */
#searchInPlaylistBtn {
  display: none !important;
}
#searchExecuteBtn {
  display: flex;
}

/* ==================== Ã¨ÂÂªÃ¥Â®ÂÃ¤Â¹ÂÃ§Â¡Â®Ã¨Â®Â¤Ã¥Â¯Â¹Ã¨Â¯ÂÃ¦Â¡Â ==================== */
.custom-confirm-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  transition: opacity var(--transition-normal);
}
.custom-confirm-modal.show {
  display: flex;
  opacity: 1;
}
.custom-confirm-content {
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  width: 90%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
  border: 1px solid var(--border-subtle);
}
.custom-confirm-modal.show .custom-confirm-content {
  transform: scale(1);
}
.custom-confirm-header h3 {
  margin: 0 0 var(--space-md) 0;
  color: #ef4444;
  font-size: 20px;
  font-weight: 700;
}
.custom-confirm-body {
  margin-bottom: var(--space-xl);
}
.custom-confirm-body p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}
.custom-confirm-footer {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
}
.custom-confirm-footer button {
  padding: 10px 24px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
}
.btn-cancel {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}
.btn-cancel:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--border-medium);
}
.btn-ok {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}
.btn-ok:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* ==================== Ã¨ÂÂªÃ¥Â®ÂÃ¤Â¹ÂÃ¥ÂÂ³Ã©ÂÂ®Ã¨ÂÂÃ¥ÂÂ ==================== */
.context-menu {
  position: absolute;
  background: rgba(15, 15, 26, 0.98);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  min-width: 190px;
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  display: none;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  border: 1px solid var(--border-subtle);
}
.context-menu.show {
  display: block;
  opacity: 1;
  transform: scale(1);
}
.context-menu-item {
  padding: 12px 18px;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: all var(--transition-fast);
  user-select: none;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.context-menu-item:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}
.context-menu-item:active {
  transform: scale(0.98);
}
.context-menu-item.separator {
  border-top: 1px solid var(--border-subtle);
  margin-top: 6px;
  padding-top: 6px;
}

/* Ã©ÂÂÃ¥ÂÂÃ¤Â¸Â­Ã§ÂÂÃ¦Â­ÂÃ¦ÂÂ²Ã©Â«ÂÃ¤ÂºÂ® */
.playlist-item.in-queue {
  border-left: 3px solid var(--primary);
  background: linear-gradient(90deg, rgba(139,92,246,0.08), transparent) !important;
}

/* Ã¦ÂÂÃ§Â´Â¢Ã§Â»ÂÃ¦ÂÂÃ©ÂÂÃ¥ÂÂÃ¦ ÂÃ¨Â¯Â */
.search-item.in-queue::after {
  content: "Ã¢ÂÂ­";
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

/* ==================== Ã¦ÂÂÃ¤Â½ÂÃ©ÂÂÃ§ÂÂ¥ ==================== */
.notification {
  position: fixed;
  top: var(--space-lg);
  right: var(--space-lg);
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  z-index: 4000;
  display: none;
  align-items: center !important;
  justify-content: flex-start;
  gap: 14px;
  transform: translateX(120%);
  transition: transform var(--transition-normal);
  border: 1px solid var(--border-subtle);
  max-width: 340px;
  min-height: 52px;
}
.notification.show {
  display: flex !important;
  transform: translateX(0);
}
.notification-icon {
  flex-shrink: 0 !important;
  width: 22px !important;
  height: 22px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.notification-icon img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}
.notification-text {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0 !important;
  padding: 0 !important;
  flex: 1 1 auto;
  min-width: 0;
}
.notification.success {
  border-left: 3px solid #22c55e;
}
.notification.info {
  border-left: 3px solid var(--secondary);
}
.notification.warning {
  border-left: 3px solid #f59e0b;
}
.notification.error {
  border-left: 3px solid #ef4444;
}


/* ==================== Ã¦Â¦ÂÃ¥ÂÂÃ¤Â¸ÂÃ¦ÂÂÃ¨ÂÂÃ¥ÂÂ ==================== */
.playlist-dropdown {
  position: relative;
}

.playlist-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.playlist-dropdown-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.playlist-dropdown-btn svg {
  transition: transform var(--transition-fast);
}

.playlist-dropdown.show .playlist-dropdown-btn svg {
  transform: rotate(180deg);
}

.playlist-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: rgba(20, 20, 35, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px;
  min-width: 170px;
  box-shadow: var(--shadow-lg);
  z-index: 1600;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px) scale(0.98);
  transition: all var(--transition-fast);
  pointer-events: none;
}

.playlist-dropdown.show .playlist-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.dropdown-item {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-item:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.dropdown-item.active {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.12), transparent);
  color: var(--primary-light);
}

.dropdown-divider {
  margin: 6px 0;
  border-top: 1px solid var(--border-subtle);
}





/* ==================== Ã§Â§Â»Ã¥ÂÂ¨Ã§Â«Â¯Ã©ÂÂÃ©ÂÂ ==================== */
@media (max-width: 768px) {
  /* Ã¥ÂÂºÃ§Â¡ÂÃ¥Â¸ÂÃ¥Â±ÂÃ¨Â°ÂÃ¦ÂÂ´ */
  html, body {
    overflow: auto;
    font-size: 14px;
  }
  .player {
    flex-direction: column;
    height: 100vh;
    position: relative;
  }
  .left {
    width: 100%;
    height: auto;
    padding: 0;
    position: static;
  }
  .right {
    width: 100%;
    height: auto;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  
    .playlist-dropdown-btn {
    padding: 5px 10px;
    font-size: 12px;
  }
  .playlist-dropdown-menu {
    min-width: 150px;
  }
  

  /* Ã©Â¡Â¶Ã©ÂÂ¨Ã¦Â­ÂÃ¦ÂÂ²Ã¤Â¿Â¡Ã¦ÂÂ¯Ã¥ÂÂºÃ¥ÂÂ */
  .info {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 14px 20px;
    width: 100%;
    min-height: auto;
    max-height: none;
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    z-index: 100;
    border-bottom: 1px solid var(--border-subtle);
  }
  .title {
    font-size: 16px;
    -webkit-line-clamp: 1;
    line-height: 1.4;
    text-align: center;
  }

  /* Ã¤Â¸Â­Ã©ÂÂ´Ã¦Â­ÂÃ¨Â¯ÂÃ¥ÂÂºÃ¥ÂÂ */
.lyrics-wrapper {
    width: 100%;
    height: 100%;
    padding: 80px 20px 120px;
    overflow-y: auto;
    scroll-behavior: smooth;
    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      black 15%,
      black 85%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      black 15%,
      black 85%,
      transparent 100%
    );
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }
  .lyrics-block {
    padding: 6px 0;
  }
  .lyrics-block p {
    font-size: 20px;
    line-height: 1.5;
    text-align: center;
    margin: 0;
    transition: all 0.3s ease;
  }
  .lyrics-block.active p {
    font-size: 26px;
    font-weight: 700;
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.12);
  }

  /* Ã¥ÂºÂÃ©ÂÂ¨Ã¦ÂÂ§Ã¥ÂÂ¶Ã¥ÂÂºÃ¥ÂÂ */
  .controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    padding: 14px 20px 24px;
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-subtle);
    z-index: 100;
    gap: 14px;
  }
  .time-display {
    font-size: 12px;
  }
  .progress {
    height: 5px;
  }
  .progress::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
  }
  .buttons {
    gap: 10px;
  }
  .buttons button.small {
    width: 46px;
    height: 46px;
  }
  .buttons button.main {
    width: 66px;
    height: 66px;
  }

  /* Ã¦ÂÂÃ§Â´Â¢Ã¦ÂÂ§Ã¨Â¡ÂÃ¦ÂÂÃ©ÂÂ® */
  #searchExecuteBtn {
    display: flex;
    width: 32px;
    height: 32px;
  }
  .search-execute-btn img {
    width: 16px;
    height: 16px;
  }
  .search-header {
    gap: 8px;
    flex-wrap: wrap;
  }
  .search-bar-wrapper {
    width: 100%;
    flex: none;
  }

  /* Ã¦ÂÂ­Ã¦ÂÂ¾Ã¥ÂÂÃ¨Â¡Â¨Ã¨Â°ÂÃ¦ÂÂ´ */
  #playlistPanel {
    width: 100%;
    height: 100vh;
  }
  .playlist-header {
    padding: 12px 16px;
  }
  .playlist-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
  }
  .search-btn-in-header {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .search-btn-in-header img {
    width: 20px;
    height: 20px;
    filter: brightness(1.2);
  }
  #searchInPlaylistBtn {
    display: flex !important;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 0;
    align-items: center;
    justify-content: center;
  }
  #searchInPlaylistBtn img {
    width: 20px;
    height: 20px;
    filter: brightness(1.2);
  }
  .close-btn {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  #playlistInner {
    width: calc(100% + 17px);
    height: calc(100% - 60px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
    padding-right: 17px;
  }
  .playlist-item {
    padding: 12px;
  }
  .playlist-item img {
    width: 44px;
    height: 44px;
  }
  .playlist-item-info .song-name {
    font-size: 13px;
  }
  .playlist-item-info .artist-name {
    font-size: 11px;
  }
  .playlist-item-actions button {
    width: 28px;
    height: 28px;
    padding: 0;
  }
  .playlist-item-actions button img {
    width: 18px;
    height: 18px;
  }

  /* Ã¦ÂÂÃ§Â´Â¢Ã¦Â¨Â¡Ã¦ÂÂÃ¦Â¡ÂÃ¨Â°ÂÃ¦ÂÂ´ */
  .search-modal-content {
    width: 95%;
    max-height: 85vh;
  }
  .search-header {
    padding: 12px;
    gap: 8px;
  }
  .search-bar-wrapper {
    padding: 3px 4px 3px 16px;
  }
  #searchInput {
    height: 36px;
    line-height: 36px;
    font-size: 16px;
  }
  #searchInput::placeholder {
    font-size: 14px;
  }
  .search-limit {
    height: 42px;
    gap: 4px;
  }
  .search-limit label {
    font-size: 12px;
  }
  #searchLimit {
    width: 50px;
    height: 42px;
    line-height: 42px;
  }
  #closeSearchBtn {
    display: none;
  }

  /* Ã¦ÂÂÃ§Â´Â¢Ã§Â»ÂÃ¦ÂÂÃ§Â§Â»Ã¥ÂÂ¨Ã§Â«Â¯Ã¥Â¾Â®Ã¨Â°Â */
  .search-results {
    padding: 10px;
  }
  .search-item {
    padding: 10px 12px;
    margin-bottom: 8px;
    gap: 12px;
  }
  .search-item > img,
  .search-item img:first-child {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    min-height: 44px;
  }
  .search-item-info strong,
  .search-item-info .song-name {
    font-size: 14px;
  }
  .search-item-info span,
  .search-item-info .artist-name {
    font-size: 12px;
  }
  .search-item-buttons {
    gap: 6px;
  }
  .search-item-buttons button,
  .search-item .btn-play,
  .search-item .btn-add {
    padding: 5px 12px;
    font-size: 11px;
  }

  /* Ã¨Â¯ÂÃ¨Â®ÂºÃ¥Â¼Â¹Ã§ÂªÂÃ¨Â°ÂÃ¦ÂÂ´ */
  .comments-modal-content {
    width: 90%;
    padding: 16px;
    max-height: 70vh;
  }
  .comment-item img {
    width: 36px;
    height: 36px;
  }
  .comment-item .content {
    font-size: 13px;
    line-height: 1.5;
  }

  /* Ã¥ÂÂ¶Ã¤Â»ÂÃ¥ÂÂÃ§Â´ Ã¥Â¤ÂÃ§ÂÂ */
  .cover-wrapper {
    display: none;
  }
  .online-status {
    right: 12px;
    bottom: 12px;
    font-size: 11px;
    padding: 5px 10px;
    z-index: 99;
  }
  .welcome-content,
  .help-content {
    max-width: 85%;
    padding: var(--space-lg);
  }
  .shortcut-help .help-content {
    max-width: 300px;
  }
  .shortcut-help h2 {
    font-size: 1.15rem;
  }
  .shortcut-help li {
    font-size: 0.85rem;
  }
  .notification {
    top: 12px;
    right: 12px;
    left: 12px;
    max-width: none;
    transform: translateY(-120%);
  }
  .notification.show {
    transform: translateY(0);
  }
  .notification-icon {
    width: 20px !important;
    height: 20px !important;
  }


  .custom-confirm-content {
    padding: var(--space-lg);
    border-radius: var(--radius-md);
  }
  .custom-confirm-header h3 {
    font-size: 18px;
  }
  .custom-confirm-body p {
    font-size: 14px;
  }
  .custom-confirm-footer button {
    padding: 9px 20px;
  }


  .context-menu {
    min-width: 160px;
    padding: 6px;
  }
  .context-menu-item {
    padding: 10px 14px;
    font-size: 13px;
  }
}


@media (max-width: 375px) {
  .title {
    font-size: 14px;
  }
  .lyrics-block p {
    font-size: 16px;
    line-height: 1.5;
  }
  .lyrics-block.active p {
    font-size: 18px;
  }
  .buttons button.small {
    width: 42px;
    height: 42px;
  }
  .buttons button.main {
    width: 58px;
    height: 58px;
  }
  .search-btn-in-header,
  .close-btn {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .search-btn-in-header img {
    width: 18px;
    height: 18px;
    filter: brightness(1.2);
  }
  .controls {
    padding: 12px 14px 18px;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .info {
    padding: 10px 20px;
  }
.lyrics-wrapper {
    width: 100%;
    height: 100%;
    padding: 80px 20px 120px;
    overflow-y: auto;
    scroll-behavior: smooth;
    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      black 15%,
      black 85%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      black 15%,
      black 85%,
      transparent 100%
    );
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }
  .lyrics-block p {
    font-size: 17px;
    line-height: 1.5;
  }
  .lyrics-block.active p {
    font-size: 19px;
  }
  .controls {
    padding: 10px 20px 16px;
  }
  .buttons button.small {
    width: 40px;
    height: 40px;
  }
  .buttons button.main {
    width: 56px;
    height: 56px;
  }
}