/* ==========================================================================
   AURA HI-FI MUSIC PLAYER - Modern Audio Engine Stylesheet
   ========================================================================== */

:root {
  --bg-color: #080b11;
  --card-bg: rgba(15, 23, 42, 0.75);
  --card-border: rgba(255, 255, 255, 0.1);
  --card-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.8), 0 0 50px rgba(0, 242, 254, 0.1);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-primary: #00f2fe;
  --accent-secondary: #4facfe;
  --accent-pink: #ec4899;
  --accent-purple: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  
  --dynamic-glow-1: #00f2fe;
  --dynamic-glow-2: #8b5cf6;
  --dynamic-glow-3: #ec4899;
  
  --control-hover: rgba(255, 255, 255, 0.12);
  --progress-bg: rgba(255, 255, 255, 0.1);
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 1rem;
  overflow-x: hidden;
  position: relative;
}

/* Dynamic Ambient Glow Backdrop */
.ambient-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  animation: floatAmbient 20s ease-in-out infinite alternate;
}

.glow-primary {
  width: 500px;
  height: 500px;
  background: var(--dynamic-glow-1);
  top: -10%;
  left: 10%;
}

.glow-secondary {
  width: 450px;
  height: 450px;
  background: var(--dynamic-glow-2);
  bottom: -10%;
  right: 15%;
  animation-duration: 25s;
  animation-delay: -6s;
}

.glow-accent {
  width: 350px;
  height: 350px;
  background: var(--dynamic-glow-3);
  top: 40%;
  right: 40%;
  animation-duration: 18s;
  animation-delay: -12s;
}

@keyframes floatAmbient {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 30px) scale(1.15); }
  100% { transform: translate(-40px, 60px) scale(0.9); }
}

/* App Main Container */
.player-app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Header */
.player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.4rem;
  background: var(--card-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  box-shadow: var(--card-shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-gradient);
  color: #080b11;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.4);
}

.spin-disc {
  animation: spinVinyl 6s linear infinite;
}

.brand-info h1 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-info .badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  background: var(--accent-primary);
  color: #000;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.brand-info p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.header-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.header-btn.active {
  background: rgba(0, 242, 254, 0.18);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Dropdown Menu (Sleep Timer) */
.dropdown-wrapper {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--card-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 0.5rem;
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 150px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  z-index: 100;
  animation: fadeInDown 0.2s ease forwards;
}

.dropdown-menu.show {
  display: flex;
}

.dropdown-opt {
  padding: 0.55rem 0.85rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}

.dropdown-opt:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dropdown-opt.active {
  background: rgba(0, 242, 254, 0.2);
  color: var(--accent-primary);
}

/* Player Grid Layout */
.player-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
  transition: all 0.3s ease;
}

.player-layout.sidebar-closed {
  grid-template-columns: 1fr;
}

.player-layout.sidebar-closed .playlist-sidebar {
  display: none;
}

/* Main Stage Card */
.player-stage {
  background: var(--card-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--card-border);
  border-radius: 26px;
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* View Switcher Tabs */
.stage-view-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--card-border);
  padding: 0.3rem;
  border-radius: 14px;
  gap: 0.3rem;
}

.view-tab {
  flex: 1;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
}

.view-tab:hover {
  color: var(--text-primary);
}

.view-tab.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-primary);
  border: 1px solid var(--card-border);
}

/* Media Display Container */
.media-container {
  position: relative;
  min-height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 1. Cover Art View & Spinning Vinyl */
.cover-view {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: center;
}
.cover-view.active {
  display: flex;
}

.album-art-wrapper {
  position: relative;
  width: 230px;
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Vinyl Disc */
.vinyl-record {
  position: absolute;
  width: 215px;
  height: 215px;
  border-radius: 50%;
  background: radial-gradient(circle, #222 15%, #050505 16%, #181818 40%, #080808 60%, #1a1a1a 80%, #000000 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), inset 0 0 15px rgba(255, 255, 255, 0.1);
  right: -20px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease, right 0.4s ease;
}

.player-app.is-playing .vinyl-record {
  right: -55px;
  animation: spinVinyl 10s linear infinite;
}

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

.vinyl-center {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: url('https://images.unsplash.com/photo-1614613535308-eb5fbd3d2c17?w=300') center/cover;
  border: 3px solid #111;
  box-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.album-art {
  position: relative;
  z-index: 2;
  width: 210px;
  height: 210px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 242, 254, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.3s ease;
}

.album-art:hover {
  transform: scale(1.03);
}

.album-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.art-overlay {
  position: absolute;
  bottom: 0.65rem;
  left: 0.65rem;
}

.genre-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--accent-primary);
}

/* 2. Visualizer Canvas View */
.visualizer-view {
  display: none;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.visualizer-view.active {
  display: flex;
}

#visualizerCanvas {
  width: 100%;
  height: 220px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--card-border);
}

.viz-info {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: 'Fira Code', monospace;
}

/* 3. Lyrics View */
.lyrics-view {
  display: none;
  width: 100%;
  height: 240px;
}
.lyrics-view.active {
  display: flex;
}

.lyrics-container {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  scrollbar-width: thin;
}

.lyric-line {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.3s ease;
  cursor: pointer;
}
.lyric-line:hover {
  color: var(--text-secondary);
}
.lyric-line.active {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-primary);
  text-shadow: 0 0 15px rgba(0, 242, 254, 0.6);
  transform: scale(1.05);
}

.lyrics-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  gap: 0.4rem;
}
.lyrics-empty i {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

/* Mini Visualizer Bar */
.mini-visualizer-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 18px;
}

.wave-bar {
  width: 4px;
  height: 4px;
  border-radius: 4px;
  background: var(--accent-primary);
  opacity: 0.4;
  transition: height 0.15s ease, opacity 0.15s ease;
}

.player-app.is-playing .wave-bar {
  opacity: 0.9;
  animation: pulseBar 1.2s ease-in-out infinite alternate;
}

.wave-bar:nth-child(2) { animation-delay: 0.15s; }
.wave-bar:nth-child(3) { animation-delay: 0.3s; }
.wave-bar:nth-child(4) { animation-delay: 0.45s; }
.wave-bar:nth-child(5) { animation-delay: 0.6s; }
.wave-bar:nth-child(6) { animation-delay: 0.25s; }
.wave-bar:nth-child(7) { animation-delay: 0.5s; }
.wave-bar:nth-child(8) { animation-delay: 0.35s; }
.wave-bar:nth-child(9) { animation-delay: 0.1s; }
.wave-bar:nth-child(10) { animation-delay: 0.4s; }
.wave-bar:nth-child(11) { animation-delay: 0.2s; }
.wave-bar:nth-child(12) { animation-delay: 0.55s; }

@keyframes pulseBar {
  0% { height: 4px; }
  100% { height: 18px; background: var(--accent-pink); }
}

/* Track Header (Title & Artist) */
.track-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.track-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow: hidden;
}

.track-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.like-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.like-btn:hover {
  background: rgba(236, 72, 153, 0.15);
  color: var(--accent-pink);
  border-color: var(--accent-pink);
  transform: scale(1.1);
}

.like-btn.liked {
  background: rgba(236, 72, 153, 0.2);
  color: var(--accent-pink);
  border-color: var(--accent-pink);
}
.like-btn.liked i::before {
  content: "\f004";
  font-weight: 900;
}

/* Progress Scrubber */
.progress-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.progress-bar-container {
  position: relative;
  height: 20px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: var(--progress-bg);
  border-radius: 6px;
  position: relative;
  overflow: visible;
  transition: height 0.15s ease;
}

.progress-bar-container:hover .progress-bar-bg {
  height: 8px;
}

.progress-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
}

.progress-handle {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  transform: translate(-50%, -50%) scale(0);
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.8);
  transition: transform 0.15s ease;
}

.progress-bar-container:hover .progress-handle {
  transform: translate(-50%, -50%) scale(1);
}

.progress-tooltip {
  position: absolute;
  bottom: 22px;
  left: 0;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid var(--card-border);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Fira Code', monospace;
  font-size: 0.72rem;
  color: var(--accent-primary);
  display: none;
  pointer-events: none;
}

.time-row {
  display: flex;
  justify-content: space-between;
  font-family: 'Fira Code', monospace;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* Playback Controls Row */
.controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
}

.control-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

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

.sub-btn {
  font-size: 1.05rem;
  color: var(--text-muted);
}
.sub-btn:hover {
  color: var(--text-secondary);
}
.sub-btn.active {
  color: var(--accent-primary);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
}

.seek-label {
  position: absolute;
  font-size: 0.58rem;
  font-family: 'Fira Code', monospace;
  font-weight: 700;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.play-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #080b11;
  font-size: 1.35rem;
  box-shadow: 0 8px 25px rgba(0, 242, 254, 0.45);
}

.play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(0, 242, 254, 0.65);
  color: #000000;
}

/* Bottom Controls (Volume & Speed) */
.bottom-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid var(--card-border);
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 170px;
}

.vol-icon-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  cursor: pointer;
}
.vol-icon-btn:hover {
  color: var(--accent-primary);
}

.volume-slider-wrapper {
  position: relative;
  width: 100%;
  height: 5px;
  background: var(--progress-bg);
  border-radius: 5px;
  display: flex;
  align-items: center;
}

#volumeSlider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 100%;
  background: transparent;
  outline: none;
  position: absolute;
  z-index: 2;
  cursor: pointer;
}

#volumeSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 6px rgba(0,0,0,0.5);
  cursor: pointer;
}

.volume-slider-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 80%;
  background: var(--accent-primary);
  border-radius: 5px;
  pointer-events: none;
}

.speed-btn {
  padding: 0.35rem 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: 'Fira Code', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.speed-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent-primary);
}

/* Playlist Sidebar */
.playlist-sidebar {
  background: var(--card-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--card-border);
  border-radius: 26px;
  padding: 1.4rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 600px;
}

.playlist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.playlist-title-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.playlist-title-group h3 {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.track-count-badge {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-family: 'Fira Code', monospace;
}

.close-sidebar-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

/* Playlist Search */
.playlist-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 0.55rem 0.85rem;
  gap: 0.65rem;
}

.playlist-search-box i {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.playlist-search-box input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  width: 100%;
}

.clear-search-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

/* Genre Filter Pills */
.genre-filter-row {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}
.genre-filter-row::-webkit-scrollbar { display: none; }

.genre-pill {
  padding: 0.35rem 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

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

.genre-pill.active {
  background: rgba(0, 242, 254, 0.2);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Track List Items */
.track-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  padding-right: 0.25rem;
  scrollbar-width: thin;
}

.track-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.track-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--card-border);
  transform: translateX(3px);
}

.track-item.active {
  background: rgba(0, 242, 254, 0.12);
  border-color: rgba(0, 242, 254, 0.35);
}

.track-item-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.track-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-playing-indicator {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 0.9rem;
}

.track-item.active .track-playing-indicator {
  display: flex;
}

.track-item-details {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  overflow: hidden;
}

.item-title {
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
}
.track-item.active .item-title {
  color: var(--accent-primary);
}

.item-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.track-item-duration {
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Footer */
.app-footer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-secondary);
  padding: 0.5rem;
}

/* Modals */
.modal-dialog {
  border: none;
  background: transparent;
  padding: 1rem;
  max-width: 520px;
  width: 90%;
  margin: auto;
}

.modal-dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.modal-content {
  background: var(--card-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 1.5rem;
  color: var(--text-primary);
  box-shadow: var(--card-shadow);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--card-border);
}

.modal-header h2 {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.close-modal-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}
.close-modal-btn:hover {
  color: var(--text-primary);
}

.shortcut-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.shortcut-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

kbd {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 2px 6px;
  font-family: 'Fira Code', monospace;
  font-size: 0.78rem;
  color: var(--accent-primary);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(15, 23, 42, 0.95);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  z-index: 1000;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Media Queries */
@media (max-width: 860px) {
  .player-layout {
    grid-template-columns: 1fr;
  }

  .close-sidebar-btn {
    display: block;
  }

  .shortcut-grid {
    grid-template-columns: 1fr;
  }
}
