/* 
   ================================================================
   DESIGN SYSTEM FOR MY FAVORITE MUSIC (MFM)
   Aesthetic: Premium Glassmorphism & Auroramorphic Glow
   ================================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-sans: 'Outfit', sans-serif;
  --bg-dark: #080711;
  --panel-glass: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-muted: rgba(255, 255, 255, 0.35);
  
  /* Accent Colors */
  --accent-cyan: #00F0FF;
  --accent-pink: #FF007F;
  --accent-green: #00FF87;
  --accent-purple: #7000FF;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-sans);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
}

/* ================================================================
   AURORAMORPHIC BACKGROUND (Moving colorful blobs)
   ================================================================ */
.aurora-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #0d0a21 0%, var(--bg-dark) 100%);
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.28;
  mix-blend-mode: screen;
  pointer-events: none;
}

.blob-1 {
  width: 50vw;
  height: 50vw;
  background: var(--accent-purple);
  top: -10vw;
  left: -10vw;
  animation: aurora-move-1 25s infinite alternate ease-in-out;
}

.blob-2 {
  width: 45vw;
  height: 45vw;
  background: var(--accent-cyan);
  bottom: -5vw;
  right: -5vw;
  animation: aurora-move-2 20s infinite alternate ease-in-out;
}

.blob-3 {
  width: 35vw;
  height: 35vw;
  background: var(--accent-pink);
  top: 30%;
  right: 20%;
  animation: aurora-move-3 30s infinite alternate ease-in-out;
}

@keyframes aurora-move-1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(10%, 15%) scale(1.1); }
  100% { transform: translate(-5%, 5%) scale(0.9); }
}

@keyframes aurora-move-2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-15%, -10%) scale(0.95); }
  100% { transform: translate(5%, -5%) scale(1.05); }
}

@keyframes aurora-move-3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8%, -15%) scale(1.15); }
  100% { transform: translate(-10%, 10%) scale(0.9); }
}

/* ================================================================
   GLASSMORPHISM UTILITIES
   ================================================================ */
.glass-panel {
  background: var(--panel-glass);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-4px);
}

/* Glow Shadow effects */
.glow-cyan:hover { box-shadow: 0 8px 30px rgba(0, 240, 255, 0.2); }
.glow-pink:hover { box-shadow: 0 8px 30px rgba(255, 0, 127, 0.2); }
.glow-green:hover { box-shadow: 0 8px 30px rgba(0, 255, 135, 0.2); }
.glow-purple:hover { box-shadow: 0 8px 30px rgba(112, 0, 255, 0.2); }

/* ================================================================
   GLOSSY SHINE EFFECT
   ================================================================ */
.glossy-shine {
  position: relative;
  overflow: hidden;
}

.glossy-shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: 0.75s;
}

.glossy-shine:hover::after {
  left: 125%;
}

/* ================================================================
   SIDEBAR NAVIGATION
   ================================================================ */
.sidebar {
  width: 280px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border-glass);
  background: rgba(8, 7, 17, 0.4);
  backdrop-filter: blur(20px);
  z-index: 10;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(to right, #ffffff, #88889f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: 1px solid transparent;
}

.nav-item:hover, .nav-item.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
  border-left: 3px solid var(--accent-cyan);
}

.nav-item i, .nav-item svg {
  width: 20px;
  height: 20px;
}

/* Badge CNTT ĐH Vinh */
.sidebar-badge {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.badge-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-cyan);
  font-weight: 700;
}

.badge-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  font-weight: 500;
}

/* ================================================================
   MAIN CONTENT AREA
   ================================================================ */
.main-content {
  margin-left: 280px;
  width: calc(100% - 280px);
  padding: 40px 50px 140px 50px; /* Thừa khoảng trống ở dưới cho persistent player */
  min-height: 100vh;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 35px;
  gap: 20px;
}

.search-bar {
  position: relative;
  width: 380px;
}

.search-bar input {
  width: 100%;
  padding: 14px 20px 14px 50px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  transition: var(--transition-smooth);
}

.search-bar input:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.search-bar svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
  transition: var(--transition-smooth);
}

.search-bar input:focus + svg {
  color: var(--accent-cyan);
}

.admin-login-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.admin-login-btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border-color: var(--accent-pink);
  box-shadow: 0 4px 15px rgba(255, 0, 127, 0.15);
  transform: translateY(-2px);
}

/* ================================================================
   HERO / BANNER SECTION
   ================================================================ */
.hero-banner {
  height: 220px;
  background: linear-gradient(135deg, rgba(112, 0, 255, 0.2) 0%, rgba(255, 0, 127, 0.15) 100%);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-banner::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: var(--accent-pink);
  border-radius: 50%;
  filter: blur(80px);
  top: -40px;
  right: -20px;
  opacity: 0.4;
}

.hero-subtitle {
  color: var(--accent-cyan);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.hero-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  background: linear-gradient(to right, #fff, #b9b9cc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 550px;
}

/* ================================================================
   FILTER & GENRE SELECTOR
   ================================================================ */
.filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

.genre-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 5px;
}

/* Hide scrollbar for genre tabs */
.genre-tabs::-webkit-scrollbar {
  display: none;
}
.genre-tabs {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.genre-tab {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 30px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.genre-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.genre-tab.active {
  color: var(--bg-dark);
  background: #ffffff;
  border-color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.sort-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Custom Select Dropdown */
.custom-select-wrapper {
  position: relative;
  width: 170px;
  user-select: none;
}

.custom-select-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.custom-select-trigger:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.custom-select-wrapper.open .custom-select-trigger {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.select-chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.custom-select-wrapper.open .select-chevron {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

.custom-options-container {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(10, 15, 30, 0.95);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.custom-select-wrapper.open .custom-options-container {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-option {
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  border-left: 3px solid transparent;
}

.custom-option:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-cyan);
  padding-left: 19px;
}

.custom-option.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-cyan);
  border-left-color: var(--accent-cyan);
}

/* ================================================================
   SONGS GRID
   ================================================================ */
.songs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.song-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.song-thumbnail-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.song-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.song-card:hover .song-thumbnail {
  transform: scale(1.08);
}

.card-play-btn {
  position: absolute;
  right: 15px;
  bottom: 15px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  border: none;
  z-index: 2;
}

.card-play-btn svg {
  fill: currentColor;
  width: 20px;
  height: 20px;
}

.song-thumbnail-wrapper:hover .card-play-btn {
  opacity: 1;
  transform: translateY(0);
}

.card-play-btn:hover {
  background: var(--accent-cyan);
  color: var(--bg-dark);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.song-card-emoji {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 14px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.song-card-favorite-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 0, 127, 0.2);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  z-index: 2;
  border: 1px solid rgba(255, 0, 127, 0.4);
  display: flex;
  align-items: center;
  gap: 4px;
}

.song-info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.song-title-artist {
  flex-grow: 1;
  min-width: 0; /* Cho phép cắt chữ */
}

.song-card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ffffff;
}

.song-card-artist {
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.song-tag-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
}

.song-tag-badge:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--accent-cyan);
  border-color: rgba(0, 240, 255, 0.35);
  transform: translateY(-1px);
}

.song-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
}

.song-genre-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.song-plays {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.song-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.action-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.action-btn.download-btn:hover {
  color: var(--accent-green);
  box-shadow: 0 0 10px rgba(0, 255, 135, 0.15);
}

.action-btn svg {
  width: 18px;
  height: 18px;
}

/* ================================================================
   PERSISTENT BOTTOM PREMIUM PLAYER
   ================================================================ */
.player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: rgba(8, 7, 17, 0.65);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-top: 1px solid var(--border-glass);
  padding: 15px 40px;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  z-index: 100;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

/* Player Track Info */
.player-track-info {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.player-cover-wrapper {
  position: relative;
  width: 65px;
  height: 65px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.player-cover-wrapper.playing {
  animation: cover-glow-pulse 3s infinite alternate ease-in-out;
}

.player-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-metadata {
  min-width: 0;
}

.player-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-artist {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Player Controls Center */
.player-controls-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.player-buttons {
  display: flex;
  align-items: center;
  gap: 22px;
}

.player-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 8px;
}

.player-btn:hover {
  color: #ffffff;
  transform: scale(1.08);
}

.player-btn.active {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}

.player-btn svg {
  width: 18px;
  height: 18px;
}

.player-btn.btn-play-pause {
  background: #ffffff;
  color: var(--bg-dark);
  width: 44px;
  height: 44px;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.player-btn.btn-play-pause:hover {
  background: var(--accent-cyan);
  color: var(--bg-dark);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.45);
}

.player-btn.btn-play-pause svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Seeker Bar Progress */
.player-seeker-container {
  width: 100%;
  max-width: 600px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-time {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  width: 40px;
}

.player-time.time-current {
  text-align: right;
}

.seeker-bar-wrapper {
  flex-grow: 1;
  height: 14px;
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.seeker-input {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.seeker-input::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  cursor: pointer;
}

.seeker-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 12px;
  width: 12px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  margin-top: -4px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  transition: transform 0.1s;
}

.seeker-input:hover::-webkit-slider-thumb {
  transform: scale(1.3);
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

/* Player Actions Right */
.player-actions-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

/* Canvas Spectrum Visualizer */
.visualizer-container {
  width: 120px;
  height: 35px;
  position: relative;
  display: flex;
  align-items: center;
}

#visualizer-canvas {
  width: 100%;
  height: 100%;
  border-radius: 6px;
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 120px;
}

.volume-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.volume-btn:hover {
  color: #ffffff;
}

.volume-btn svg {
  width: 18px;
  height: 18px;
}

.volume-input {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
}

.volume-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 10px;
  width: 10px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
}

.volume-input:hover::-webkit-slider-thumb {
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

/* ================================================================
   ANIMATIONS & KEYFRAMES
   ================================================================ */
@keyframes cover-glow-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(var(--active-glow-rgb, 0, 240, 255), 0.3);
  }
  100% {
    transform: scale(1.04);
    box-shadow: 0 8px 30px rgba(var(--active-glow-rgb, 0, 240, 255), 0.6);
  }
}

/* ================================================================
   NO SONGS FOUND PLACEHOLDER
   ================================================================ */
.no-songs {
  grid-column: 1 / -1;
  padding: 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.no-songs-icon {
  font-size: 48px;
  opacity: 0.5;
}

.no-songs-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.no-songs-desc {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 350px;
}

/* ================================================================
   RESPONSIVE DESIGN
   ================================================================ */
@media (max-width: 1024px) {
  .sidebar {
    width: 80px;
    padding: 30px 10px;
    align-items: center;
  }
  
  .logo-text, .nav-item span, .sidebar-badge {
    display: none;
  }
  
  .logo-container {
    margin-bottom: 30px;
  }
  
  .nav-item {
    padding: 14px;
    justify-content: center;
  }
  
  .main-content {
    margin-left: 80px;
    width: calc(100% - 80px);
    padding: 30px;
  }
  
  .player-bar {
    grid-template-columns: 1.5fr 2fr 1fr;
    padding: 15px 20px;
  }
}

@media (max-width: 768px) {
  body {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    height: 60px;
    position: fixed;
    bottom: 100px; /* Nằm trên Player Bar */
    top: auto;
    left: 0;
    flex-direction: row;
    padding: 0 20px;
    border-right: none;
    border-top: 1px solid var(--border-glass);
    background: rgba(8, 7, 17, 0.9);
    z-index: 99;
  }
  
  .logo-container {
    display: none;
  }
  
  .nav-menu {
    flex-direction: row;
    width: 100%;
    justify-content: space-around;
    height: 100%;
    align-items: center;
    gap: 0;
  }
  
  .nav-item {
    border-left: none !important;
    border-bottom: 2px solid transparent;
    padding: 10px;
  }
  
  .nav-item.active {
    border-bottom-color: var(--accent-cyan);
    background: none;
  }
  
  .main-content {
    margin-left: 0;
    width: 100%;
    padding: 20px 20px 180px 20px; /* Thêm khoảng cách ở dưới cho cả 2 thanh bar */
  }
  
  header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-bar {
    width: 100%;
  }
  
  .admin-login-btn {
    justify-content: center;
  }
  
  .player-bar {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
    padding: 15px;
    gap: 15px;
    bottom: 0;
  }
  
  .player-track-info {
    justify-content: center;
  }
  
  .player-actions-right {
    display: none; /* Ẩn bớt visualizer & volume trên điện thoại cho gọn */
  }
  
  .player-controls-center {
    width: 100%;
  }
  
  .player-seeker-container {
    max-width: 100%;
  }

  /* Bố cục danh sách bài hát nằm ngang trên Mobile */
  .songs-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .song-card {
    flex-direction: row;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
  }
  
  .song-thumbnail-wrapper {
    width: 70px;
    height: 70px;
    margin-bottom: 0;
    margin-right: 15px;
    flex-shrink: 0;
  }
  
  .card-play-btn {
    display: none !important; /* Không hiển thị nút play hover trên mobile */
  }
  
  .song-info-row {
    display: block;
    flex-grow: 1;
    min-width: 0;
    margin-right: 15px;
    overflow: hidden;
  }

  .song-title-artist {
    display: block;
    width: 100%;
    overflow: hidden;
  }
  
  .song-card-title {
    font-size: 15px;
    width: 100%;
    display: block;
  }
  
  .song-card-artist {
    font-size: 12px;
    width: 100%;
    display: block;
  }
  
  .song-card-tags {
    margin-top: 4px;
  }
  
  .song-tag-badge {
    font-size: 10px;
    padding: 2px 6px;
  }
  
  .song-meta-row {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
  }
  
  .song-genre-tag {
    display: none !important;
  }
  
  .song-plays {
    font-size: 11px;
  }
  
  .song-card-emoji {
    top: 4px;
    left: 4px;
    font-size: 10px;
    padding: 2px 4px;
  }
  
  .song-card-favorite-badge {
    top: 4px;
    right: 4px;
    padding: 4px;
  }
  
  .song-card-favorite-badge span {
    display: none; /* Ẩn chữ "Yêu thích" trên mobile chỉ để lại icon tim */
  }
}
