/* ==========================================================================
   AMAZON MUSIC DESIGN SYSTEM - MKMUSIC WEB PLAYER
   ========================================================================== */

:root {
  --bg-dark-base: #080b11;
  --bg-dark-surface: #0e1420;
  --bg-dark-card: #141c2c;
  --bg-dark-hover: #1c273d;
  --bg-sidebar: #0a0e17;
  
  --accent-cyan: #00d8d6;
  --accent-cyan-hover: #12eff0;
  --accent-blue: #00a8e1;
  --accent-purple: #7d5fff;
  --accent-fire: #ff4757;
  
  --text-primary: #ffffff;
  --text-secondary: #9ba4b8;
  --text-muted: #5e687e;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-cyan-glow: rgba(0, 216, 214, 0.35);
  
  --sidebar-width: 240px;
  --player-bar-height: 90px;
  --top-bar-height: 72px;
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  --shadow-cyan-glow: 0 0 20px rgba(0, 216, 214, 0.35);
}

/* Base Reset & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-dark-base);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 14px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* App Container Layout */
.app-container {
  display: flex;
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 15% 0%, #111e33 0%, #080b11 70%);
}

/* ==========================================================================
   LEFT SIDEBAR (AMAZON MUSIC STYLE)
   ========================================================================== */
.sidebar {
  width: var(--sidebar-width);
  height: calc(100vh - var(--player-bar-height));
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  z-index: 100;
  flex-shrink: 0;
  user-select: none;
}

.sidebar-header {
  height: var(--top-bar-height);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0, 216, 214, 0.4);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  line-height: 1;
}

.logo-badge {
  font-size: 9px;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 1.5px;
  margin-top: 2px;
}

.mobile-close-btn {
  display: none;
  font-size: 20px;
  color: var(--text-secondary);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}

.nav-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1.2px;
  padding: 0 12px 8px 12px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-link i {
  font-size: 16px;
  width: 20px;
  text-align: center;
  transition: color 0.2s;
}

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

.nav-link.active {
  color: var(--text-primary);
  background: linear-gradient(90deg, rgba(0, 216, 214, 0.15) 0%, rgba(0, 216, 214, 0.02) 100%);
  border-left: 3px solid var(--accent-cyan);
  font-weight: 600;
}

.nav-link.active i {
  color: var(--accent-cyan);
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-subtle);
}

.btn-sidebar-upload {
  width: 100%;
  padding: 11px 16px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(0, 216, 214, 0.1), rgba(0, 168, 225, 0.1));
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-size: 13px;
  font-weight: 600;
  gap: 10px;
  transition: all 0.25s ease;
}

.btn-sidebar-upload:hover {
  background: var(--accent-cyan);
  color: #000;
  box-shadow: var(--shadow-cyan-glow);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 95;
}

/* ==========================================================================
   MAIN CONTENT AREA & TOP BAR
   ========================================================================== */
.main-content {
  flex: 1;
  height: calc(100vh - var(--player-bar-height));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Top Navigation Bar */
.top-bar {
  height: var(--top-bar-height);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 11, 17, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 50;
  gap: 20px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  max-width: 540px;
}

.menu-toggle-btn {
  display: none;
  font-size: 20px;
  color: var(--text-primary);
}

/* Search Box (Amazon Music Style) */
.search-container {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 15px;
  pointer-events: none;
}

.search-container input {
  width: 100%;
  height: 42px;
  padding: 0 42px 0 44px;
  border-radius: var(--radius-full);
  background-color: var(--bg-dark-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: all 0.25s ease;
}

.search-container input:focus {
  background-color: var(--bg-dark-hover);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 216, 214, 0.15);
}

.search-clear-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}

.search-clear-btn:hover {
  color: var(--text-primary);
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background-color: var(--bg-dark-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-height: 380px;
  overflow-y: auto;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  z-index: 200;
  display: none;
}

.search-item {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background 0.2s;
}

.search-item:hover {
  background-color: var(--bg-dark-hover);
}

.search-item img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.search-item-info {
  flex: 1;
}

.search-item-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.search-item-info p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.search-item-type {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-dark-card);
  color: var(--accent-cyan);
  border: 1px solid var(--border-cyan-glow);
}

/* Top Bar Right */
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.genre-quick-chips {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chip-btn {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.chip-btn:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.12);
}

.chip-btn.active {
  background-color: var(--accent-cyan);
  color: #000;
  font-weight: 700;
  box-shadow: var(--shadow-cyan-glow);
}

.btn-google {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  gap: 10px;
  transition: all 0.2s ease;
}

.btn-google i {
  color: #ea4335;
}

.btn-google:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.user-info-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-dark-card);
  padding: 4px 12px 4px 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.btn-logout {
  color: var(--text-muted);
  font-size: 14px;
  padding: 4px;
  margin-left: 4px;
  transition: color 0.2s;
}

.btn-logout:hover {
  color: var(--accent-fire);
}

/* Content Scroll Container */
.content-scroll {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 40px;
  scroll-behavior: smooth;
}

.content-scroll::-webkit-scrollbar {
  width: 8px;
}
.content-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.content-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}
.content-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   AMAZON HERO BANNER
   ========================================================================== */
.hero-banner {
  position: relative;
  margin: 24px 32px 32px 32px;
  padding: 56px 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #0b2545 0%, #134074 50%, #001021 100%);
  border: 1px solid rgba(0, 216, 214, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hero-backdrop {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(circle at 80% 20%, rgba(0, 216, 214, 0.25) 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(125, 95, 255, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--accent-cyan);
  background: rgba(0, 216, 214, 0.12);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  border: 1px solid var(--border-cyan-glow);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-hero-play {
  padding: 13px 32px;
  border-radius: var(--radius-full);
  background-color: var(--accent-cyan);
  color: #000;
  font-size: 15px;
  font-weight: 700;
  gap: 10px;
  box-shadow: var(--shadow-cyan-glow);
  transition: all 0.25s ease;
}

.btn-hero-play:hover {
  background-color: var(--accent-cyan-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(0, 216, 214, 0.6);
}

.btn-hero-explore {
  padding: 13px 28px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  font-size: 14.5px;
  font-weight: 600;
  gap: 10px;
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.btn-hero-explore:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* ==========================================================================
   CONTENT SECTIONS & CARDS
   ========================================================================== */
.content-section {
  padding: 0 32px;
  margin-bottom: 36px;
}

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

.section-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-fire {
  color: var(--accent-fire);
}

.icon-cyan {
  color: var(--accent-cyan);
}

.section-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
}

.see-all-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.see-all-link:hover {
  color: var(--accent-cyan);
}

/* Categories Rail */
.categories-rail {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.category-card {
  height: 90px;
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.category-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.category-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  z-index: 2;
}

.category-icon {
  font-size: 32px;
  color: rgba(255, 255, 255, 0.3);
  position: absolute;
  right: 12px;
  bottom: -4px;
  transform: rotate(-12deg);
  transition: transform 0.3s;
}

.category-card:hover .category-icon {
  transform: rotate(0deg) scale(1.2);
  color: rgba(255, 255, 255, 0.5);
}

/* Dynamic Gradient themes for genres */
.cat-pop { background: linear-gradient(135deg, #ff007f, #7928ca); }
.cat-rock { background: linear-gradient(135deg, #f5576c, #f093fb); }
.cat-sertanejo { background: linear-gradient(135deg, #f09819, #edde5d); }
.cat-electronic { background: linear-gradient(135deg, #00c6ff, #0072ff); }
.cat-lofi { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.cat-funk { background: linear-gradient(135deg, #fa709a, #fee140); }
.cat-default { background: linear-gradient(135deg, #654ea3, #eaafc8); }

/* Music Grid (Amazon Card Layout) */
.music-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.music-card {
  background-color: var(--bg-dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.music-card:hover {
  background-color: var(--bg-dark-hover);
  border-color: var(--border-cyan-glow);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), var(--shadow-cyan-glow);
}

.card-cover-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.music-card:hover .card-cover {
  transform: scale(1.06);
}

.play-overlay-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  color: #000;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  transition: all 0.25s ease;
  box-shadow: 0 6px 16px rgba(0, 216, 214, 0.5);
}

.play-overlay-btn i {
  margin-left: 3px;
}

.music-card:hover .play-overlay-btn {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.play-overlay-btn:hover {
  background-color: var(--accent-cyan-hover);
  transform: scale(1.1) !important;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.card-artist {
  font-size: 12.5px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.card-genre-tag {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  text-transform: uppercase;
}

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

/* ==========================================================================
   PERSISTENT BOTTOM PLAYER BAR (AMAZON MUSIC PLAYER)
   ========================================================================== */
.player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--player-bar-height);
  background: rgba(10, 14, 22, 0.94);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  z-index: 1000;
  display: flex;
  align-items: center;
  user-select: none;
}

.player-bar-container {
  width: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Left: Track Info */
.player-track-info {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 280px;
  flex-shrink: 0;
}

.track-cover {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.2s;
}

.track-cover:hover {
  transform: scale(1.05);
}

.track-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.track-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.track-like-btn {
  color: var(--text-muted);
  font-size: 16px;
  padding: 8px;
  transition: all 0.2s;
}

.track-like-btn:hover {
  color: var(--accent-fire);
}

.track-like-btn.liked {
  color: var(--accent-fire);
}

/* Center: Player Controls & Seekbar */
.player-center-controls {
  flex: 1;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.control-buttons {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ctrl-btn-sub {
  color: var(--text-secondary);
  font-size: 16px;
  padding: 6px;
  transition: color 0.2s;
}

.ctrl-btn-sub:hover {
  color: var(--text-primary);
}

.ctrl-btn-sub.active {
  color: var(--accent-cyan);
}

.ctrl-btn-play {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  color: #000;
  font-size: 17px;
  box-shadow: var(--shadow-cyan-glow);
  transition: all 0.2s ease;
}

.ctrl-btn-play i {
  margin-left: 2px;
}

.ctrl-btn-play:hover {
  background-color: var(--accent-cyan-hover);
  transform: scale(1.08);
}

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

.time-stamp {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  min-width: 36px;
  text-align: center;
}

.progress-bar-wrapper {
  flex: 1;
  padding: 6px 0;
  cursor: pointer;
}

.progress-bar-bg {
  height: 4px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  position: relative;
  overflow: visible;
  transition: height 0.2s;
}

.progress-bar-wrapper:hover .progress-bar-bg {
  height: 6px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
  border-radius: 2px;
  position: relative;
}

.progress-handle {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 0 10px var(--accent-cyan);
  transition: transform 0.2s ease;
}

.progress-bar-wrapper:hover .progress-handle {
  transform: translateY(-50%) scale(1);
}

/* Right: Utilities & Volume */
.player-right-utilities {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 240px;
  justify-content: flex-end;
}

.util-btn {
  color: var(--text-secondary);
  font-size: 15px;
  padding: 6px;
  transition: color 0.2s;
}

.util-btn:hover {
  color: var(--text-primary);
}

.volume-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-slider-wrapper {
  width: 90px;
  display: flex;
  align-items: center;
}

.volume-slider-wrapper input[type=range] {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.volume-slider-wrapper input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  cursor: pointer;
}

/* ==========================================================================
   FULL SCREEN PLAYER OVERLAY
   ========================================================================== */
.full-player-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #091322 0%, #05070c 100%);
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.full-player-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(0, 216, 214, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.full-player-header {
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.modal-close-btn {
  font-size: 22px;
  color: var(--text-secondary);
  padding: 8px;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-header-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent-cyan);
}

.full-player-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  padding: 0 48px;
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.full-artwork-container {
  width: 380px;
  max-width: 40vw;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 216, 214, 0.2);
  overflow: hidden;
}

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

.full-info-container {
  flex: 1;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.full-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.full-artist {
  font-size: 18px;
  color: var(--accent-cyan);
  font-weight: 500;
}

.full-progress-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.full-time-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.full-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.large-play {
  width: 64px !important;
  height: 64px !important;
  font-size: 24px !important;
}

/* ==========================================================================
   APP FOOTER
   ========================================================================== */
.app-footer {
  margin-top: 40px;
  padding: 32px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.font-cyan {
  color: var(--accent-cyan);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (ALL SCREENS / TV / MOBILE)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-banner {
    padding: 40px 32px;
    margin: 16px 20px 24px 20px;
  }
  .hero-title {
    font-size: 30px;
  }
  .genre-quick-chips {
    display: none;
  }
  .full-player-body {
    flex-direction: column;
    gap: 32px;
  }
  .full-artwork-container {
    width: 260px;
  }
}

@media (max-width: 768px) {
  :root {
    --sidebar-width: 280px;
    --player-bar-height: 80px;
  }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100vh;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .sidebar.mobile-open + .sidebar-overlay {
    display: block;
  }

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

  .menu-toggle-btn {
    display: block;
  }

  .top-bar {
    padding: 0 16px;
  }

  .content-section {
    padding: 0 16px;
  }

  .hero-banner {
    margin: 16px;
    padding: 32px 20px;
  }

  .hero-title {
    font-size: 24px;
  }

  .music-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }

  .player-track-info {
    width: auto;
    flex: 1;
  }

  .player-right-utilities {
    display: none;
  }

  .progress-container {
    display: none;
  }
}
