/**
 * BeatStream Premium Design System & Stylesheet
 * Fully client-side custom CSS with glass surfaces, variable themes, and fluid layouts.
 */

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

/* --- DESIGN SYSTEM TOKENS (THEMES) --- */

:root {
  /* Default Theme: Graphite & Neon (from Mockup) */
  --bg-gradient: linear-gradient(135deg, #121216 0%, #1a1a22 100%);
  --surface-color: rgba(28, 28, 38, 0.6);
  --surface-border: rgba(255, 255, 255, 0.08);
  --accent-color: #00f2fe; /* Electric Cyan */
  --accent-secondary: #d946ef; /* Neon Violet */
  --accent-glow: rgba(0, 242, 254, 0.45);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --card-hover-bg: rgba(255, 255, 255, 0.08);
  --player-bar-bg: rgba(18, 18, 26, 0.9);
  --sidebar-bg: rgba(12, 12, 18, 0.7);
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-speed: 0.3s;
}

body.theme-midnight-blue {
  /* Matches default root */
}

body.theme-aurora-purple {
  --bg-gradient: linear-gradient(135deg, #0e051a 0%, #1c0c2b 100%);
  --surface-color: rgba(28, 16, 48, 0.55);
  --surface-border: rgba(255, 255, 255, 0.08);
  --accent-color: #a18cd1;
  --accent-secondary: #fbc2eb;
  --accent-glow: rgba(161, 140, 209, 0.4);
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --card-hover-bg: rgba(255, 255, 255, 0.08);
  --player-bar-bg: rgba(14, 8, 24, 0.85);
  --sidebar-bg: rgba(8, 4, 16, 0.6);
}

body.theme-deep-graphite {
  /* Spotify Theme */
  --bg-gradient: linear-gradient(135deg, #121212 0%, #1e1e1e 100%);
  --surface-color: rgba(24, 24, 24, 0.6);
  --surface-border: rgba(255, 255, 255, 0.08);
  --accent-color: #1db954; /* Spotify Green */
  --accent-secondary: #1ed760;
  --accent-glow: rgba(29, 185, 84, 0.4);
  --text-main: #ffffff;
  --text-muted: #b3b3b3;
  --card-hover-bg: rgba(255, 255, 255, 0.1);
  --player-bar-bg: rgba(18, 18, 18, 0.9);
  --sidebar-bg: rgba(0, 0, 0, 0.7);
}

body.theme-neon-violet {
  --bg-gradient: linear-gradient(135deg, #150020 0%, #300040 100%);
  --surface-color: rgba(48, 0, 70, 0.45);
  --surface-border: rgba(255, 255, 255, 0.09);
  --accent-color: #d946ef;
  --accent-secondary: #f97316;
  --accent-glow: rgba(217, 70, 239, 0.45);
  --text-main: #fae8ff;
  --text-muted: #d8b4fe;
  --card-hover-bg: rgba(255, 255, 255, 0.09);
  --player-bar-bg: rgba(20, 0, 30, 0.88);
  --sidebar-bg: rgba(12, 0, 20, 0.65);
}

body.theme-warm-ivory {
  /* Apple Music Light Theme */
  --bg-gradient: linear-gradient(135deg, #f5f5f7 0%, #e8e8ed 100%);
  --surface-color: rgba(255, 255, 255, 0.75);
  --surface-border: rgba(0, 0, 0, 0.07);
  --accent-color: #ff2d55; /* Apple Music Red */
  --accent-secondary: #8e8e93;
  --accent-glow: rgba(255, 45, 85, 0.35);
  --text-main: #1c1c1e;
  --text-muted: #68686e;
  --card-hover-bg: rgba(0, 0, 0, 0.03);
  --player-bar-bg: rgba(255, 255, 255, 0.88);
  --sidebar-bg: rgba(242, 242, 247, 0.65);
}

/* --- RESET & LAYOUT --- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg-gradient);
  color: var(--text-main);
  font-family: var(--font-body);
  height: 100vh;
  overflow: hidden;
  transition: background var(--transition-speed) ease;
}

.font-gilroy-bold {
  font-family: var(--font-title);
  font-weight: 700;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* --- APP CONTAINERS --- */

#beatstream-app {
  display: flex;
  height: 100vh;
  flex-direction: column;
}

.app-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Sidebar navigation */
.sidebar {
  width: 250px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--surface-border);
  padding: 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(15px);
  z-index: 10;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2.5rem;
}

.logo-section img {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.logo-text {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.sidebar-nav-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 600;
}

.sidebar-nav-list {
  list-style: none;
  margin-bottom: 2rem;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: all 0.2s ease;
  margin-bottom: 4px;
}

.sidebar-nav-item:hover {
  background: var(--card-hover-bg);
  color: var(--text-main);
}

.sidebar-nav-item.active {
  background: var(--accent-color);
  color: #000;
  font-weight: 600;
  box-shadow: 0 0 15px var(--accent-glow);
}

/* Main Display Area */
.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
}

.tab-pane {
  animation: fadeIn 0.4s ease;
}

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

/* --- GLASS SURFACES --- */

.glass-card {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.15);
}

/* --- HOME VIEW CARDS --- */

.quick-pick-item {
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 8px;
}

.quick-pick-item:hover {
  background: var(--card-hover-bg) !important;
}

.quick-cover-img, .quick-cover-gradient {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.quick-cover-gradient {
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.album-card-cover-container {
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1/1;
  background: rgba(0,0,0,0.2);
}

.album-card-img, .album-card-gradient {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed);
}

.album-card-gradient {
  display: block;
}

.album-card:hover .album-card-img,
.album-card:hover .album-card-gradient {
  transform: scale(1.05);
}

.album-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 0.2s;
}

.album-card-cover-container:hover .album-card-overlay {
  opacity: 1;
}

.artist-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-color));
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  font-size: 2.2rem;
  transition: transform 0.3s ease;
}

.artist-circle-card:hover .artist-avatar {
  transform: scale(1.06) rotate(5deg);
}

/* --- SONGS VIEW TABLE --- */

.custom-table {
  color: var(--text-main);
  border-collapse: separate;
  border-spacing: 0 8px;
  margin-top: 1.5rem;
}

.custom-table th {
  border-bottom: none;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  padding: 10px 15px;
}

.custom-table tr {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
}

.custom-table td {
  padding: 12px 15px;
  border: none;
  vertical-align: middle;
  background: var(--surface-color);
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
}

.custom-table td:first-child {
  border-left: 1px solid var(--surface-border);
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.custom-table td:last-child {
  border-right: 1px solid var(--surface-border);
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.custom-table tr:hover td {
  background: var(--card-hover-bg);
}

.playing-row td {
  border-color: var(--accent-color) !important;
  color: var(--accent-color) !important;
}

.playing-row .text-white, .playing-row .text-white-50 {
  color: var(--accent-color) !important;
}

.song-table-cover {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.song-table-cover img, .table-cover-gradient {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hover-link:hover {
  text-decoration: underline !important;
  color: var(--accent-color) !important;
}

.width-row-num {
  width: 40px;
}

/* --- PLAYLIST CARDS --- */

.playlist-cover-gradient {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  transition: transform 0.25s;
}

.playlist-card:hover .playlist-cover-gradient {
  transform: scale(1.04);
}

.playlist-cover-letters {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 2.5rem;
  color: #fff;
  text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* --- PERSISTENT PLAYER BOTTOM BAR --- */

.player-bar {
  background: var(--player-bar-bg);
  border-top: 1px solid var(--surface-border);
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(30px);
  z-index: 100;
  position: relative;
}

.player-track-info {
  width: 30%;
  display: flex;
  align-items: center;
}

.player-album-art {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0,0,0,0.3);
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.player-album-art img, .player-cover-gradient {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.1s ease-out; /* For beat reaction scaler */
}

.player-favorite-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  transition: transform 0.2s, color 0.2s;
}

.player-favorite-btn:hover {
  transform: scale(1.2);
  color: #ef4444;
}

.player-favorite-btn.active {
  color: #ef4444;
}

.player-playback-controls {
  width: 40%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

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

.player-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}

.player-btn:hover {
  color: var(--text-main);
  transform: scale(1.1);
}

.player-btn.active {
  color: var(--accent-color);
  text-shadow: 0 0 8px var(--accent-glow);
}

.play-btn-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--accent-glow);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
}

.play-btn-circle:hover {
  transform: scale(1.08);
  box-shadow: 0 0 25px var(--accent-color);
}

.player-timeline {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
}

.timeline-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  width: 35px;
  text-align: center;
}

/* Custom Progress & Volume Range Sliders */
.slider-input {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
  transition: height 0.15s;
}

.slider-input:hover {
  height: 6px;
}

.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-main);
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0,0,0,0.5);
  transition: transform 0.1s;
}

.slider-input:hover::-webkit-slider-thumb {
  background: var(--accent-color);
  transform: scale(1.2);
}

.player-sound-controls {
  width: 30%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
}

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

/* --- IMMERSIVE VIEWS: FULLSCREEN LYRICS & QUEUE --- */

#pane-lyrics-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: calc(100vh - 86px); /* Player bar height offset */
  background: var(--bg-gradient);
  z-index: 95;
  display: flex;
  flex-direction: column;
  padding: 40px;
  overflow: hidden;
  backdrop-filter: blur(25px);
}

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

.lyrics-container-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 100px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Hide default scroll */
}
.lyrics-container-scroll::-webkit-scrollbar {
  display: none;
}

.lyric-line {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 2.2rem;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 25px;
  text-align: center;
  cursor: pointer;
  transition: all 0.35s ease;
  user-select: none;
  max-width: 80%;
}

.lyric-line:hover {
  color: rgba(255, 255, 255, 0.6);
  transform: scale(1.02);
}

.lyric-line.active {
  color: var(--text-main);
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
  transform: scale(1.06);
}

.lyric-line.passed {
  color: rgba(255, 255, 255, 0.15);
}

/* Karaoke Word Highlighting Styles */
.lyric-word {
  display: inline-block;
  background-image: linear-gradient(to right, var(--accent-color) 0%, var(--accent-color) 100%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: rgba(255, 255, 255, 0.2); /* Fallback */
  transition: background-size 0.05s linear;
}

.lyric-line.active .lyric-word {
  /* Inherit linear gradients when active line */
  color: rgba(255, 255, 255, 0.3);
}

.lyric-word.sung {
  background-size: 100% 100% !important;
}

.lyrics-empty {
  font-size: 1.5rem;
  color: var(--text-muted);
}

/* Queue Drawer */
.queue-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  height: calc(100vh - 86px);
  background: var(--player-bar-bg);
  border-left: 1px solid var(--surface-border);
  box-shadow: -8px 0 30px rgba(0,0,0,0.5);
  backdrop-filter: blur(25px);
  z-index: 90;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.queue-drawer.open {
  right: 0;
}

.queue-header {
  padding: 20px;
  border-bottom: 1px solid var(--surface-border);
}

.queue-list-container {
  flex: 1;
  overflow-y: auto;
}

.queue-item {
  border-bottom: 1px solid rgba(255,255,255,0.02);
  cursor: pointer;
  transition: background 0.2s;
}

.queue-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.queue-item.active {
  border-left: 4px solid var(--accent-color);
  background: rgba(255, 255, 255, 0.03);
}

.queue-item.active .text-white {
  color: var(--accent-color) !important;
}

.x-small {
  font-size: 0.75rem;
}

/* --- VISUALIZER PANE --- */

.visualizer-canvas-container {
  width: 100%;
  height: 400px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  border: 1px solid var(--surface-border);
  overflow: hidden;
  position: relative;
}

.visualizer-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.15;
  pointer-events: none;
  transition: opacity 0.1s ease-out;
}

/* --- SETTINGS Equalizer CONTROLS --- */

.eq-container {
  display: flex;
  justify-content: space-around;
  padding: 20px;
  background: var(--surface-color);
  border-radius: 12px;
  border: 1px solid var(--surface-border);
}

.eq-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  height: 250px;
}

.eq-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 4px;
  height: 160px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  writing-mode: bt-lr; /* IE */
  -webkit-appearance: slider-vertical; /* Webkit */
}

.eq-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-main);
  cursor: pointer;
  box-shadow: 0 0 8px var(--accent-glow);
}

.eq-slider:hover::-webkit-slider-thumb {
  background: var(--accent-color);
}

.theme-selector {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.theme-btn {
  border: 1px solid var(--surface-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.theme-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-color);
}

.theme-btn.active {
  background: var(--accent-color);
  color: #000;
  border-color: var(--accent-color);
  font-weight: 600;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* --- DRAG & DROP OVERLAY --- */

.drag-upload-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 4px dashed var(--accent-color);
  backdrop-filter: blur(10px);
}

.drag-upload-content {
  text-align: center;
  color: var(--text-main);
}

.drag-upload-icon {
  font-size: 5rem;
  color: var(--accent-color);
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px var(--accent-glow));
  animation: pulse 1.5s infinite;
}

@keywords pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* --- BANNER LAYOUTS (PLAYLIST / ARTIST / ALBUM) --- */

.detail-banner {
  padding: 3rem 2rem;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.03), transparent);
  border-radius: 12px;
  border: 1px solid var(--surface-border);
  margin-bottom: 2rem;
}

.detail-cover-box {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.detail-cover-text {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 4rem;
  color: #fff;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* --- DISCOVER PAGE & YOUTUBE STYLING --- */

.active-album-card {
  border: 1px solid var(--accent-color) !important;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
  transform: scale(1.02);
}

.discover-album-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(217, 70, 239, 0.15);
}

.favorite-star-btn {
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  transition: color 0.2s, transform 0.2s;
}

.favorite-star-btn:hover {
  transform: scale(1.2);
  color: var(--accent-color) !important;
}

.favorite-star-btn.active {
  color: var(--accent-color) !important;
}

.yt-search-card {
  transition: transform 0.2s, background-color 0.2s;
}

.yt-search-card:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  transform: translateX(4px);
}

.user-profile-section {
  border-bottom: 1px solid var(--surface-border);
  padding-bottom: 1.25rem;
}

.sidebar-nav-item-playlist:hover {
  color: var(--accent-color) !important;
}

/* --- RESPONSIVENESS MEDIA BREAKPOINTS --- */

@media (max-width: 1200px) {
  .player-track-info {
    width: 25%;
  }
  .player-playback-controls {
    width: 50%;
  }
  .player-sound-controls {
    width: 25%;
  }
}

@media (max-width: 992px) {
  .sidebar {
    width: 80px;
    padding: 1.5rem 0.5rem;
    align-items: center;
  }
  .logo-text, .sidebar-nav-title, .sidebar-nav-item span {
    display: none; /* Hide labels on tablet */
  }
  .logo-section {
    justify-content: center;
    margin-bottom: 2rem;
  }
  .sidebar-nav-item {
    justify-content: center;
    padding: 12px;
    border-radius: 50%;
  }
  .player-bar {
    padding: 15px;
  }
  .timeline-time {
    display: none; /* Hide timeline numbers on small screens */
  }
}

@media (max-width: 768px) {
  .app-body {
    flex-direction: column-reverse; /* Navigation moves to bottom */
  }
  .sidebar {
    width: 100%;
    height: 60px;
    border-right: none;
    border-top: 1px solid var(--surface-border);
    flex-direction: row;
    justify-content: space-around;
    padding: 0 10px;
    align-items: center;
  }
  .logo-section {
    display: none;
  }
  .sidebar-nav-list {
    display: flex;
    flex-direction: row;
    margin-bottom: 0;
    width: 100%;
    justify-content: space-around;
  }
  .sidebar-nav-item {
    margin-bottom: 0;
  }
  .main-content {
    padding: 1.5rem;
  }
  .player-sound-controls {
    display: none; /* Hide volume controls on mobile */
  }
  .player-track-info {
    width: 45%;
  }
  .player-playback-controls {
    width: 55%;
  }
  .lyric-line {
    font-size: 1.5rem;
  }
  .detail-banner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .detail-cover-box {
    margin: 0 auto;
  }
  .custom-table th:nth-child(3),
  .custom-table td:nth-child(3) {
    display: none; /* Hide Album column on mobile */
  }
}

@media (max-width: 425px) {
  .player-album-art {
    width: 40px;
    height: 40px;
  }
  .player-buttons {
    gap: 10px;
  }
  .play-btn-circle {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
  .custom-table th:nth-child(4),
  .custom-table td:nth-child(4) {
    display: none; /* Hide Duration on small phones */
  }
}

@media (max-width: 375px) {
  .player-track-info {
    width: 40%;
  }
  .player-playback-controls {
    width: 60%;
  }
}

@media (max-width: 320px) {
  .player-bar {
    flex-direction: column;
    height: auto;
    gap: 10px;
  }
  .player-track-info, .player-playback-controls {
    width: 100%;
    justify-content: center;
  }
}
