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

:root {
  --bg-primary: #02070d;
  --bg-surface: rgba(10, 20, 35, 0.6);
  --bg-surface-hover: rgba(18, 32, 54, 0.8);
  --border-color: rgba(176, 240, 253, 0.1);
  --border-color-hover: rgba(176, 240, 253, 0.3);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-cyan: #b0f0fd;
  --accent-cyan-rgb: 176, 240, 253;
  --accent-orange: #f96f00;
  --accent-orange-rgb: 249, 111, 0;
  
  --glow-cyan: 0 0 15px rgba(176, 240, 253, 0.35);
  --glow-cyan-strong: 0 0 25px rgba(176, 240, 253, 0.6);
  --glow-orange: 0 0 15px rgba(249, 111, 0, 0.35);
  
  --font-sans: 'Inter', sans-serif;
  --font-title: 'Outfit', sans-serif;
  
  --player-height: 90px;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  padding-bottom: calc(var(--player-height) + 40px); /* Space for player */
}

/* Immersive Fixed Full-Screen Background Banner */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(to bottom, rgba(2, 7, 13, 0.4) 0%, rgba(2, 7, 13, 0.75) 50%, rgba(2, 7, 13, 0.98) 100%),
    url('hero_dj_banner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1; /* Behind all page elements */
  pointer-events: none; /* Let all clicks pass through */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(176, 240, 253, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: all 0.2s ease;
}
a:hover {
  color: #fff;
  text-shadow: var(--glow-cyan);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero Section */
.hero {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 0 60px; /* Symmetrical padding for a clean top logo placement */
}

.hero .artistic-title {
  font-family: var(--font-title);
  font-size: 130px;
  font-weight: 900;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: #030914; /* Solid dark background color inside letters */
  margin: 0;
  line-height: 1;
  position: relative; /* Anchor for pseudo-element */
  display: inline-block;
  
  /* Artistic Embossed bevel combined with neon dual-glow offsets */
  text-shadow: 
    -1px -1px 0px rgba(255, 255, 255, 0.25),           /* White bevel highlight top-left */
    1px 1px 0px rgba(0, 0, 0, 0.9),                   /* Black bevel shadow bottom-right */
    -3px -3px 15px rgba(176, 240, 253, 0.35),         /* Ambient left glow */
    3px 3px 15px rgba(249, 111, 0, 0.35);             /* Ambient right glow */
    
  transition: all 0.3s ease;
  user-select: none;
}

/* Thin Neon Core Wire Line Layer (Running through the center of the dark embossed letters) */
.hero .artistic-title::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: transparent;
  
  /* Razor-thin 0.8px stroke to create a fine, sharp wire outline */
  -webkit-text-stroke: 0.8px var(--accent-cyan);
  
  z-index: 1;
  pointer-events: none;
  letter-spacing: 8px; /* Match parent spacing exactly */
}

@media (max-width: 767px) {
  .hero {
    padding: 60px 0 80px;
  }
  .hero .artistic-title {
    font-size: 72px;
    letter-spacing: 4px;
  }
  .hero .artistic-title::after {
    letter-spacing: 4px;
  }
}

/* Toolbar (Filter & Search) */
.toolbar {
  background: var(--bg-surface);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
  .toolbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn:hover {
  border-color: var(--accent-cyan);
  color: #fff;
}

.filter-btn.active {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: var(--bg-primary);
  font-weight: 600;
  box-shadow: var(--glow-cyan);
}

.search-box {
  position: relative;
  width: 100%;
}

@media (min-width: 768px) {
  .search-box {
    max-width: 320px;
  }
}

.search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  pointer-events: none;
  transition: color 0.3s ease;
}

.search-input {
  width: 100%;
  background: rgba(2, 7, 13, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 16px 10px 42px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(176, 240, 253, 0.15);
}

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

/* Tracks Grid */
.tracks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .tracks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}



/* Card */
.track-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.track-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-orange));
  opacity: 0.15;
  transition: opacity 0.3s ease;
}

.track-card:hover {
  transform: translateY(-4px);
  background: var(--bg-surface-hover);
  border-color: var(--border-color-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(176, 240, 253, 0.05);
}

.track-card:hover::before {
  opacity: 0.8;
}

/* Card Dragging States */
.track-card.dragging {
  opacity: 0.45;
  border: 1px dashed var(--accent-cyan) !important;
  transform: scale(0.98) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5) !important;
  background: rgba(10, 20, 35, 0.4) !important;
  cursor: grabbing !important;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center; /* Center tag and stats badges vertically */
  margin-bottom: 16px;
}

/* Card Playback & Download Stats */
.card-stats {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  align-items: center;
  user-select: none;
}

.card-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.card-stats span i {
  font-size: 9px;
  transition: color 0.2s ease;
}

.track-card:hover .card-stats {
  color: var(--text-secondary);
}

.track-card:hover .card-stats span i {
  color: var(--accent-cyan);
}

.category-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.category-tag.dnb {
  background: rgba(176, 240, 253, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(176, 240, 253, 0.2);
}

.category-tag.house {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.category-tag.breaks {
  background: rgba(249, 111, 0, 0.1);
  color: var(--accent-orange);
  border: 1px solid rgba(249, 111, 0, 0.2);
}

.card-body {
  margin-bottom: 24px;
  flex-grow: 1;
}

.card-title {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
  color: #fff;
  transition: color 0.2s ease;
}

.track-card:hover .card-title {
  color: var(--accent-cyan);
}

.card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 60px;
  margin-bottom: 8px;
}

.card-footer {
  display: flex;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.play-track-btn {
  flex: 3; /* Takes up 75% of remaining space */
}

.download-track-btn {
  flex: 1; /* Takes up 25% of remaining space */
  padding: 10px 0; /* Balanced padding */
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-primary {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  border: none;
}

.btn-primary:hover {
  background: #fff;
  box-shadow: var(--glow-cyan);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-secondary);
}

/* Equalizer Visualizer */
.equalizer-icon {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 16px;
  height: 16px;
}

.equalizer-icon span {
  display: block;
  width: 2px;
  background-color: var(--accent-cyan);
  border-radius: 1px;
  height: 2px;
}

.equalizer-icon.animating span {
  animation: bounce-eq 0.8s ease-in-out infinite alternate;
}

.equalizer-icon.animating span:nth-child(1) { animation-delay: -0.2s; animation-duration: 0.6s; }
.equalizer-icon.animating span:nth-child(2) { animation-delay: 0s; animation-duration: 0.8s; }
.equalizer-icon.animating span:nth-child(3) { animation-delay: -0.4s; animation-duration: 0.5s; }
.equalizer-icon.animating span:nth-child(4) { animation-delay: -0.1s; animation-duration: 0.7s; }

@keyframes bounce-eq {
  0% { height: 3px; }
  100% { height: 14px; }
}

/* Persistent Bottom Audio Player */
.bottom-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--player-height);
  background: rgba(2, 7, 13, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
  z-index: 90;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bottom-player.active {
  transform: translateY(0);
}

.player-container {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

/* Player timeline (Seekbar top of player) */
.player-timeline {
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  height: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.timeline-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
  position: relative;
  transition: height 0.1s ease;
}

.player-timeline:hover .timeline-slider {
  height: 6px;
}

.timeline-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 100%;
}

.timeline-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: var(--glow-cyan-strong);
  cursor: pointer;
  margin-top: -4px;
  opacity: 0;
  transition: opacity 0.1s ease, transform 0.1s ease;
}

.player-timeline:hover .timeline-slider::-webkit-slider-thumb {
  opacity: 1;
  margin-top: -3px;
}

.timeline-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-orange));
  pointer-events: none;
  width: 0%;
}

/* Track info inside player */
.player-track-info {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 30%;
  min-width: 180px;
}

.player-art {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(176, 240, 253, 0.05);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.player-art i {
  color: var(--accent-cyan);
  font-size: 18px;
}

.player-text {
  overflow: hidden;
}

.player-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.player-meta {
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Playback controls */
.player-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 40%;
}

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

.control-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.control-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.control-btn.play-pause {
  background: #fff;
  color: var(--bg-primary);
  font-size: 18px;
  width: 42px;
  height: 42px;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
}

.control-btn.play-pause:hover {
  transform: scale(1.05);
  background: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
}

.player-time {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Extra controls (Volume, speed, close) */
.player-extra {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  width: 30%;
}

.speed-control {
  position: relative;
}

.speed-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.speed-btn:hover {
  border-color: var(--accent-cyan);
  color: #fff;
}

.speed-options {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: #0a1423;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 4px;
  display: none;
  flex-direction: column;
  min-width: 60px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 100;
}

.speed-options.active {
  display: flex;
}

.speed-option {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.speed-option:hover {
  background: rgba(176, 240, 253, 0.1);
  color: var(--accent-cyan);
}

.speed-option.active {
  color: var(--accent-cyan);
  font-weight: 600;
}

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

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

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb:hover {
  box-shadow: var(--glow-cyan);
}

/* Modal dialog for Tracklist */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-tracklist-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-top: 16px;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.card-tracklist {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 12px;
  max-height: 180px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.6;
}

/* Custom mini scrollbar for card tracklists */
.card-tracklist::-webkit-scrollbar {
  width: 4px;
}
.card-tracklist::-webkit-scrollbar-track {
  background: transparent;
}
.card-tracklist::-webkit-scrollbar-thumb {
  background: rgba(176, 240, 253, 0.15);
  border-radius: 2px;
}
.card-tracklist::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}



/* Utility classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Responsive Audio Player for Mobile Viewports */
@media (max-width: 767px) {
  :root {
    --player-height: 80px;
  }
  
  .player-container {
    padding: 0 16px;
    gap: 10px;
  }
  
  .player-track-info {
    width: 45%;
    min-width: 0;
  }
  
  .player-art {
    display: none;
  }
  
  .player-controls {
    width: 45%;
  }
  
  .player-extra {
    width: 10%;
    min-width: auto;
    gap: 4px;
    justify-content: center;
  }
  
  .volume-slider {
    display: none;
  }
  
  .volume-control {
    gap: 0;
  }
  
  .controls-buttons {
    gap: 12px;
  }
  
  .control-btn {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  
  .control-btn.play-pause {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  .player-time {
    font-size: 10px;
  }
}
