/* Southern Vibes - Ethereal Liquid-Glass Soundwave Design System */

:root {
  --bg-primary: #070510;
  --bg-surface: rgba(18, 14, 34, 0.75);
  --bg-card: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  --bg-card-hover: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
  
  --accent-purple: #a855f7;
  --accent-pink: #ec4899;
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-teal: #14b8a6;
  --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #a855f7 50%, #ec4899 100%);
  
  --text-main: #f8fafc;
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --border-glass: rgba(255, 255, 255, 0.12);
  --border-hover: rgba(168, 85, 247, 0.4);
  
  --player-height: 95px;
  --sidebar-width: 250px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(59, 130, 246, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(168, 85, 247, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 50% 40%, rgba(236, 72, 153, 0.1) 0%, transparent 60%);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(7, 5, 16, 0.5);
}
::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.6);
}

/* Main App Layout */
#app-root {
  display: flex;
  height: calc(100vh - var(--player-height));
  width: 100vw;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: rgba(11, 8, 22, 0.85);
  backdrop-filter: blur(25px);
  border-right: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  padding: 28px 18px;
  gap: 28px;
  z-index: 20;
  position: relative;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 6px;
}
.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}
.brand-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

/* Ambient Sidebar Wave Graphic */
.nav-group::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 50px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0 C150,90 350,-40 500,40 C650,120 900,10 1200,60 L1200,120 L0,120 Z' fill='none' stroke='url(%23g)' stroke-width='2' opacity='0.3'/%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0%25' y1='0%25' x2='100%25' y2='0%25'%3E%3Cstop offset='0%25' stop-color='%233b82f6'/%3E%3Cstop offset='100%25' stop-color='%23a855f7'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E") no-repeat center;
  background-size: cover;
  pointer-events: none;
  opacity: 0.5;
}

.nav-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  font-weight: 700;
  padding: 0 12px 6px 12px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

/* Active Nav Item with Constellation Glow */
.nav-item.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(168, 85, 247, 0.15) 100%);
  color: #ffffff;
  border: 1px solid rgba(59, 130, 246, 0.4);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25);
}
.nav-item.active::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, rgba(168, 85, 247, 0.2) 40%, transparent 70%);
  pointer-events: none;
}

.nav-icon {
  font-size: 18px;
}

/* User Card in Sidebar */
.user-widget {
  margin-top: auto;
  padding: 12px 14px;
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.user-widget:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-purple);
  transform: translateY(-2px);
}
.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  position: relative;
  overflow: hidden;
}
.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.user-info {
  flex: 1;
  overflow: hidden;
}
.user-name {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-role {
  font-size: 11px;
  color: var(--accent-purple);
  text-transform: capitalize;
  font-weight: 600;
}

/* Main Content Area */
.main-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  position: relative;
  padding-bottom: 40px;
}

/* Ethereal Top Search & Nav Bar */
.top-bar {
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  background: rgba(7, 5, 16, 0.88);
  backdrop-filter: blur(20px);
  z-index: 10;
  border-bottom: 1px solid var(--border-glass);
}

.search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 0 14px;
  width: 320px;
  height: 38px;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.search-box .svg-icon {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  display: block;
}
.search-box::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 60'%3E%3Cpath d='M0,30 Q150,5 300,30 T600,30' fill='none' stroke='url(%23sg)' stroke-width='1.5' opacity='0.4'/%3E%3Cdefs%3E%3ClinearGradient id='sg' x1='0%25' y1='0%25' x2='100%25' y2='0%25'%3E%3Cstop offset='0%25' stop-color='%2306b6d4'/%3E%3Cstop offset='100%25' stop-color='%23a855f7'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E") no-repeat center;
  background-size: cover;
  pointer-events: none;
  opacity: 0.2;
}
.search-box:focus-within {
  border-color: var(--accent-blue);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.3);
  background: rgba(255, 255, 255, 0.07);
}
.search-input {
  background: none;
  border: none;
  color: white;
  outline: none;
  width: 100%;
  font-size: 13px;
}
.search-input::placeholder {
  color: var(--text-dim);
}

/* Glass Pill Buttons */
.auth-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn {
  height: 38px;
  padding: 0 16px;
  border-radius: 19px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
  line-height: 1;
}
.btn .svg-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  flex-shrink: 0;
  display: block;
}
.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(168, 85, 247, 0.5);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-blue);
}
.btn-curator-halo {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(168, 85, 247, 0.15) 100%);
  border: 1px solid rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.3);
  color: #ffffff;
}
.btn-curator-halo:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.5);
}
.btn-danger {
  background: rgba(220, 38, 38, 0.18);
  color: #f87171;
  border: 1px solid rgba(220, 38, 38, 0.35);
}
.btn-danger:hover {
  background: rgba(220, 38, 38, 0.3);
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.3);
}

/* Page Containers */
.content-padding {
  padding: 36px 40px;
}

/* Ethereal Hero Banner */
.hero-banner {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(168, 85, 247, 0.15) 50%, rgba(236, 72, 153, 0.1) 100%);
  border: 1px solid var(--border-glass);
  border-radius: 28px;
  padding: 44px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M0,0 Q300,100 600,20 T1200,60 L1200,120 L0,120 Z' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='2'/%3E%3C/svg%3E") no-repeat center;
  background-size: cover;
  pointer-events: none;
}
.hero-title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.15;
  text-transform: uppercase;
}
.hero-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 580px;
  line-height: 1.6;
  margin-bottom: 26px;
}

/* Curator Review Dashboard Specific Styling */
.curator-header-title {
  font-size: 32px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.curator-header-subtitle {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 32px;
}

/* Liquid Glass Curator Review Card */
.curator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
}
.curator-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(168, 85, 247, 0.2);
}
.curator-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 45%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 120'%3E%3Cpath d='M0,60 C120,10 240,110 360,40 C420,10 480,80 500,60' fill='none' stroke='url(%23cw)' stroke-width='2.5' opacity='0.45'/%3E%3Cdefs%3E%3ClinearGradient id='cw' x1='0%25' y1='0%25' x2='100%25' y2='0%25'%3E%3Cstop offset='0%25' stop-color='%233b82f6'/%3E%3Cstop offset='50%25' stop-color='%23a855f7'/%3E%3Cstop offset='100%25' stop-color='%2306b6d4'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E") no-repeat left center;
  background-size: cover;
  pointer-events: none;
}

.curator-cover-wrapper {
  width: 110px;
  height: 110px;
  min-width: 110px;
  min-height: 110px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  z-index: 2;
}
.curator-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.curator-cover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.curator-cover-wrapper:hover .curator-cover-overlay {
  opacity: 1;
}
.play-btn-circle-sm {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.6);
}

.curator-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  z-index: 2;
}

.curator-details-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.curator-detail-pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  white-space: nowrap;
}

.curator-feedback-box {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 10px 14px;
  border-radius: 12px;
  margin-top: 6px;
  font-size: 12px;
  color: #f87171;
  line-height: 1.4;
}

.curator-track-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}
.curator-track-meta {
  font-size: 13px;
  color: var(--text-muted);
}
.curator-genre-tag {
  color: var(--accent-purple);
  font-weight: 700;
}
.curator-quote {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 4px;
  font-style: italic;
}

.curator-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2;
}
.btn-preview {
  background: rgba(37, 99, 235, 0.25);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
  padding: 10px 24px;
  border-radius: 20px;
}
.btn-preview:hover {
  background: rgba(37, 99, 235, 0.4);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}
.btn-approve {
  background: rgba(20, 184, 166, 0.25);
  color: #2dd4bf;
  border: 1px solid rgba(20, 184, 166, 0.45);
  padding: 10px 24px;
  border-radius: 20px;
}
.btn-approve:hover {
  background: rgba(20, 184, 166, 0.45);
  box-shadow: 0 0 20px rgba(20, 184, 166, 0.5);
}
.btn-reject {
  background: rgba(220, 38, 38, 0.25);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 10px 24px;
  border-radius: 20px;
}
.btn-reject:hover {
  background: rgba(220, 38, 38, 0.4);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

/* Track Grid Cards */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.section-title {
  font-size: 24px;
  font-weight: 700;
}

.track-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.track-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 18px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease, box-shadow 0.3s ease, background 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  contain: layout style;
}
.track-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-8px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(168, 85, 247, 0.25);
}

.track-cover-wrapper {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  position: relative;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.track-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.track-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.track-card:hover .track-play-overlay {
  opacity: 1;
}
.play-btn-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  box-shadow: 0 6px 22px rgba(168, 85, 247, 0.5);
  transform: scale(0.85);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.track-card:hover .play-btn-circle {
  transform: scale(1);
}

.track-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.track-title {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-artist {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(168, 85, 247, 0.15);
  color: var(--accent-purple);
  width: fit-content;
}

.track-genre-chip {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(7, 5, 16, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-main);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 9px;
  border-radius: 12px;
  pointer-events: none;
  max-width: 80%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.track-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 10px;
  width: 100%;
  box-sizing: border-box;
}

.track-actions-right {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  box-sizing: border-box;
}

.btn-pill-add {
  height: 30px;
  padding: 0 12px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid var(--border-glass);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
}
.btn-pill-add:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--accent-blue);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

.btn-icon-danger {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 0;
  box-sizing: border-box;
}
.btn-icon-danger:hover {
  background: rgba(220, 38, 38, 0.35);
  border-color: #f87171;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

/* Status Badges */
.badge-pending {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.badge-approved {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-rejected {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Ethereal Persistent Player Bar */
.player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--player-height);
  background: rgba(11, 8, 22, 0.95);
  backdrop-filter: blur(30px);
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 100;
}

.player-left {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 25%;
}
.player-cover {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
.player-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}
.player-song-title {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-song-artist {
  font-size: 13px;
  color: var(--text-muted);
}

.player-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 42%;
  position: relative;
}
.player-controls {
  display: flex;
  align-items: center;
  gap: 22px;
}
.control-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.control-btn:hover {
  color: var(--text-main);
  transform: scale(1.15);
}
.control-btn-play {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.6);
  position: relative;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.control-btn-play .svg-icon {
  width: 22px;
  height: 22px;
  display: block;
}
.control-btn-play .play-icon-svg {
  transform: translateX(1.5px);
}
.control-btn-play:hover {
  transform: scale(1.08);
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.85);
}

.progress-container {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  position: relative;
}
.progress-container::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 45px;
  right: 45px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 40' preserveAspectRatio='none'%3E%3Cpath d='M0,20 C100,5 200,35 300,20 C400,5 500,35 600,20' fill='none' stroke='url(%23pg)' stroke-width='2.5' opacity='0.85'/%3E%3Cdefs%3E%3ClinearGradient id='pg' x1='0%25' y1='0%25' x2='100%25' y2='0%25'%3E%3Cstop offset='0%25' stop-color='%233b82f6'/%3E%3Cstop offset='50%25' stop-color='%2306b6d4'/%3E%3Cstop offset='100%25' stop-color='%23a855f7'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E") no-repeat center center;
  background-size: 100% 20px;
  pointer-events: none;
  transform-origin: 50% 50%;
  animation: none;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.player-bar.playing .progress-container::before {
  animation: wave-internal-ripple 2.2s ease-in-out infinite alternate;
  opacity: 0.95;
}

@keyframes wave-internal-ripple {
  0% {
    transform: scaleY(0.4);
  }
  50% {
    transform: scaleY(1.45);
  }
  100% {
    transform: scaleY(0.65);
  }
}

.player-bar.playing .control-btn-play {
  animation: orb-breathe 2s ease-in-out infinite alternate;
}

@keyframes orb-breathe {
  0% {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6), 0 0 40px rgba(59, 130, 246, 0.3);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 0 35px rgba(168, 85, 247, 0.9), 0 0 60px rgba(6, 182, 212, 0.6);
    transform: scale(1.06);
  }
}
.time-stamp {
  font-size: 11px;
  color: var(--text-dim);
  width: 38px;
  text-align: center;
}
.progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent-gradient);
  width: 0%;
  border-radius: 10px;
  transition: width 0.1s linear;
}

.player-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: 32%;
}
#visualizer-canvas {
  width: 100px;
  height: 40px;
  border-radius: 8px;
}

/* Queue Drawer */
.queue-toggle-btn.active {
  color: white !important;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink)) !important;
  border-color: transparent !important;
}
.queue-drawer {
  position: fixed;
  bottom: var(--player-height);
  left: 0;
  right: 0;
  height: 0;
  max-height: 380px;
  background: rgba(11, 8, 22, 0.97);
  backdrop-filter: blur(30px);
  border-top: 1px solid var(--border-glass);
  z-index: 99;
  overflow: hidden;
  transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.queue-drawer.open {
  height: 380px;
}
.queue-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  border-bottom: 1px solid var(--border-glass);
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 10px;
}
.queue-drawer-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.queue-track-count {
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 20px;
}
.queue-sort-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.queue-sort-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.queue-sort-btn:hover {
  background: rgba(168, 85, 247, 0.15);
  color: var(--text-primary);
  border-color: var(--accent-purple);
}
.queue-sort-btn.active {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  color: white;
  border-color: transparent;
}
.queue-track-list {
  overflow-y: auto;
  flex: 1;
  padding: 8px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(168,85,247,0.3) transparent;
}
.queue-track-list::-webkit-scrollbar { width: 4px; }
.queue-track-list::-webkit-scrollbar-thumb { background: rgba(168,85,247,0.3); border-radius: 4px; }
.queue-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 28px;
  cursor: pointer;
  transition: background 0.15s;
  border-left: 3px solid transparent;
}
.queue-item:hover {
  background: rgba(255, 255, 255, 0.04);
}
.queue-item.now-playing {
  background: rgba(168, 85, 247, 0.08);
  border-left-color: var(--accent-purple);
}
.queue-item-index {
  font-size: 12px;
  color: var(--text-muted);
  width: 22px;
  text-align: right;
  flex-shrink: 0;
}
.queue-item.now-playing .queue-item-index {
  color: var(--accent-purple);
}
.queue-item-cover {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255,255,255,0.05);
  flex-shrink: 0;
}
.queue-item-info {
  flex: 1;
  min-width: 0;
}
.queue-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.queue-item.now-playing .queue-item-title {
  color: var(--accent-purple);
}
.queue-item-artist {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.queue-item-duration {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.queue-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  opacity: 0;
  transition: all 0.15s;
  font-size: 14px;
  flex-shrink: 0;
}
.queue-item:hover .queue-item-remove {
  opacity: 1;
}
.queue-item-remove:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}
.queue-now-playing-icon {
  display: none;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.queue-item.now-playing .queue-now-playing-icon {
  display: block;
}
.queue-empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  font-size: 14px;
}

/* Modals & Forms */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 3, 12, 0.85);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 20px 14px;
  overflow-y: auto;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-card {
  background: #120e24;
  border: 1px solid var(--border-glass);
  border-radius: 28px;
  width: 100%;
  max-width: 500px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 34px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(168, 85, 247, 0.25);
  transform: translateY(20px);
  transition: transform 0.25s ease, max-width 0.25s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 85, 247, 0.3) transparent;
}
.modal-card::-webkit-scrollbar {
  width: 6px;
}
.modal-card::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.3);
  border-radius: 6px;
}
.modal-card.modal-card-lg {
  max-width: 820px;
}
.modal-overlay.active .modal-card {
  transform: translateY(0);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.modal-title {
  font-size: 24px;
  font-weight: 700;
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 26px;
  cursor: pointer;
}

.upload-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 6px;
}
.upload-form-col {
  display: flex;
  flex-direction: column;
}
@media (max-width: 768px) {
  .upload-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.form-input, .form-textarea, .form-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 11px 16px;
  color: white;
  font-size: 14px;
  outline: none;
  transition: all 0.25s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.form-select option {
  background-color: #120e24;
  color: #ffffff;
  padding: 12px;
}
.form-select option:checked {
  background-color: #3b82f6;
  color: #ffffff;
}

.legal-box {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 16px;
  padding: 18px;
  font-size: 13px;
  line-height: 1.6;
  color: #e9d5ff;
  margin-bottom: 20px;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text-main);
}

/* Drag & Drop Upload Zone */
.drag-drop-zone {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(168, 85, 247, 0.04) 100%);
  border: 2px dashed rgba(168, 85, 247, 0.4);
  border-radius: 18px;
  padding: 14px 16px;
  text-align: center;
  margin-bottom: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}
.drag-drop-zone.drag-over {
  background: rgba(168, 85, 247, 0.18);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.4);
  transform: scale(1.02);
}
.drop-icon {
  font-size: 32px;
  margin-bottom: 6px;
}
.drop-title {
  font-size: 15px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}
.drop-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}
.drop-status-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.drop-pill {
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 12px;
  white-space: nowrap;
  line-height: 1.3;
}
.pill-audio {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}
.pill-image {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
}

/* Ethereal Toast Notifications */
#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  min-width: 300px;
  max-width: 420px;
  background: rgba(18, 14, 36, 0.94);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(168, 85, 247, 0.2);
  animation: toast-slide-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transition: all 0.3s ease;
}
.toast.toast-hiding {
  animation: toast-slide-out 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.toast-success {
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.25);
}
.toast-error {
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.25);
}
.toast-info {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.25);
}
.toast-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.toast-content {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: white;
  line-height: 1.4;
}
.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.toast-close:hover {
  color: white;
}

@keyframes toast-slide-in {
  from {
    transform: translateX(100%) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}
@keyframes toast-slide-out {
  from {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
  to {
    transform: translateX(120%) scale(0.9);
    opacity: 0;
  }
}

/* Upload Progress Bar */
.upload-progress-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.upload-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
}
.upload-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.upload-progress-bar {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 4px;
  transition: width 0.15s ease-out;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.6);
}
.upload-progress-details {
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
}

/* Studio Extended Track Cards */
.studio-tracks-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
}

.studio-track-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 22px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
}
.studio-track-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(168, 85, 247, 0.2);
}

.studio-cover-wrapper {
  width: 120px;
  height: 120px;
  min-width: 120px;
  min-height: 120px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}
.studio-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.studio-cover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.studio-cover-wrapper:hover .studio-cover-overlay {
  opacity: 1;
}

.studio-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.studio-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.studio-track-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.studio-artist-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.studio-details-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.studio-detail-pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  white-space: nowrap;
}

.studio-track-desc {
  font-size: 13px;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 2px;
}

.studio-feedback-box {
  padding: 10px 14px;
  border-radius: 12px;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.4;
}
.studio-feedback-box.box-rejected {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}
.studio-feedback-box.box-pending {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}
.studio-feedback-box.box-approved {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
}

.studio-card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  align-self: center;
  min-width: 140px;
}

/* Artist Profile Showcase Page */
.artist-profile-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}
.artist-profile-link:hover {
  color: var(--accent-purple);
  text-decoration: underline;
}

.artist-hero-banner {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(59, 130, 246, 0.08) 50%, rgba(18, 14, 36, 0.8) 100%);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 30px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
}
.artist-hero-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

.artist-profile-header-content {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.artist-avatar-large {
  width: 100px;
  height: 100px;
  min-width: 100px;
  min-height: 100px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--accent-purple);
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.5);
  flex-shrink: 0;
}
.artist-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.artist-avatar-letter {
  font-size: 42px;
  font-weight: 800;
  color: white;
}

.artist-bio-details {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.artist-badge-chip {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
}

.artist-profile-title {
  font-size: 28px;
  font-weight: 800;
  color: white;
  margin: 2px 0 0 0;
}

.artist-profile-username {
  font-size: 13px;
  color: var(--accent-cyan);
  font-weight: 600;
}

.artist-profile-bio {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.5;
  margin-top: 4px;
  font-style: italic;
}

.artist-meta-pills {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.artist-pill {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
}

/* Music Video Player Modal */
.video-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 20, 0.88);
  backdrop-filter: blur(24px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.video-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-content {
  width: 100%;
  max-width: 900px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(168, 85, 247, 0.25);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.video-modal-backdrop.active .video-modal-content {
  transform: scale(1);
}

.video-modal-header {
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.video-container-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: black;
}
.video-player-element {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  outline: none;
}

/* Player Scrubber Thumb ("Finder Circle") & Speed Controls */
.progress-bar {
  position: relative;
  overflow: visible !important;
}

.progress-fill {
  position: relative;
  overflow: visible !important;
}

.progress-thumb {
  position: absolute;
  right: -7px;
  top: 50%;
  transform: translateY(-50%) scale(0.85);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.9), 0 2px 6px rgba(0, 0, 0, 0.5);
  opacity: 0.9;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s ease, opacity 0.15s ease;
  cursor: grab;
  z-index: 10;
}

.progress-bar:hover .progress-thumb, .progress-thumb.dragging {
  transform: translateY(-50%) scale(1.3);
  opacity: 1;
  box-shadow: 0 0 16px rgba(168, 85, 247, 1), 0 0 8px rgba(6, 182, 212, 0.8);
}
.progress-thumb:active {
  cursor: grabbing;
}

.speed-pill-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.speed-pill-btn:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.5);
  color: #c084fc;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

/* Floating Seek Tooltip */
.seek-tooltip {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) scale(0.85);
  background: rgba(18, 14, 36, 0.95);
  color: #67e8f9;
  border: 1px solid var(--accent-purple);
  box-shadow: 0 4px 18px rgba(168, 85, 247, 0.6), 0 0 10px rgba(0, 0, 0, 0.8);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.15s ease;
  backdrop-filter: blur(12px);
  z-index: 100;
}

.progress-bar:hover .seek-tooltip,
.progress-thumb.dragging .seek-tooltip {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* LAN Auto-Switching Network Badge */
.network-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
}
.network-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}
.network-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: 0 0 6px rgba(148, 163, 184, 0.6);
  transition: all 0.25s ease;
}
.network-badge.badge-lan {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}
.network-badge.badge-lan .network-dot {
  background: #10b981;
  box-shadow: 0 0 12px #10b981;
}
.network-badge.badge-remote {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.4);
  color: #c084fc;
}
.network-badge.badge-remote .network-dot {
  background: #a855f7;
  box-shadow: 0 0 12px #a855f7;
}

/* Version History Changelog Styles */
.changelog-timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 6px;
}

.changelog-version-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 18px 20px;
  position: relative;
  transition: all 0.2s ease;
}

.changelog-version-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(168, 85, 247, 0.4);
}

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

.changelog-badge {
  background: var(--accent-gradient);
  color: white;
  font-weight: 800;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

.changelog-date {
  font-size: 12px;
  color: var(--text-dim);
}

.changelog-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.changelog-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.changelog-list li {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}

.changelog-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--accent-pink);
  font-weight: bold;
}

/* Reveal Password Toggle Button */
.password-field-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-field-wrapper .form-input {
  padding-right: 48px;
  width: 100%;
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease;
  user-select: none;
}

.password-toggle-btn:hover {
  color: var(--accent-purple);
  transform: scale(1.1);
}

/* Admin Password Reset Panel */
.admin-panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  overflow: visible;
}
.admin-panel-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-glass);
}
.admin-panel-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.admin-panel-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.admin-panel-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.admin-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.admin-autocomplete-wrapper {
  position: relative;
}
.admin-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14px;
  padding: 12px 16px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.admin-input:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(168,85,247,0.15);
}
.admin-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(18, 12, 36, 0.98);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  z-index: 200;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
}
.admin-suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.admin-suggestion-item:last-child { border-bottom: none; }
.admin-suggestion-item:hover { background: rgba(168,85,247,0.1); }
.admin-suggestion-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  flex-shrink: 0;
}
.admin-suggestion-meta {
  font-size: 12px;
  color: var(--text-muted);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-suggestion-role {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.admin-suggestion-empty {
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
.admin-selected-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.admin-selected-badge {
  background: rgba(168,85,247,0.12);
  border: 1px solid rgba(168,85,247,0.3);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--accent-purple);
  font-weight: 600;
  flex: 1;
}
.admin-clear-btn {
  background: none;
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  white-space: nowrap;
}
.admin-clear-btn:hover {
  border-color: #ef4444;
  color: #ef4444;
}
.admin-result-success {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #4ade80;
  font-weight: 600;
}
.admin-result-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #f87171;
  font-weight: 600;
}

/* Tablet & iPad Responsive Adaptation */
@media (max-width: 960px) {
  :root {
    --sidebar-width: 72px;
  }
  .sidebar {
    padding: 18px 8px;
    align-items: center;
    gap: 16px;
  }
  .brand-title, .nav-label, .nav-item span:not(.nav-icon), .user-info {
    display: none;
  }
  .brand-header {
    padding-left: 0;
    justify-content: center;
  }
  .nav-item {
    justify-content: center;
    padding: 12px;
    min-height: 44px;
    min-width: 44px;
  }
  .user-widget {
    padding: 8px;
    justify-content: center;
  }
  .top-bar {
    padding: 0 16px;
  }
  .search-box {
    width: 200px;
  }
  .track-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
  }
  .hero-banner {
    padding: 24px 20px;
  }
  .hero-title {
    font-size: 28px;
  }
  .player-bar {
    padding: 0 16px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .player-left {
    min-width: 140px;
    max-width: 180px;
  }
  #visualizer-canvas {
    display: none;
  }
}

/* Mobile Screens (< 640px) */
@media (max-width: 640px) {
  :root {
    --sidebar-width: 60px;
    --player-height: 80px;
  }
  .top-bar {
    padding: 0 10px;
    gap: 8px;
  }
  .search-box {
    width: 140px;
    font-size: 13px;
    padding: 0 10px;
  }
  .search-box input {
    font-size: 13px;
  }
  .network-badge {
    padding: 4px 8px;
    font-size: 11px;
  }
  .track-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }
  .player-left {
    min-width: 110px;
    max-width: 140px;
  }
  .player-song-title {
    font-size: 12px;
  }
  .player-song-artist {
    font-size: 11px;
  }
  .player-right {
    gap: 6px;
  }
  #player-speed-btn {
    display: none;
  }
  .modal-card {
    padding: 20px 16px;
    width: 95vw;
  }
}

/* Smooth Touch & Accessibility Defaults */
* {
  -webkit-tap-highlight-color: transparent;
}

html, body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.player-bar {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

