/* merry christmas , every one */
* { margin:0; padding:0; box-sizing:border-box; }
:root {
  --font-family-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

html, body {
  height: auto;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;  
}
body {
  margin: 0;
  padding: 2rem;
  min-height: 100vh;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: .7em;
  text-align: center;
  color: #000;
  background: #e4ede6;

  /* gradient */
  background: linear-gradient(360deg,#b1ddfc, #fff, #d5e3f0, #f5f0cb, #d7d2f7, #dfe5f0);
  background-size: 900% 300%;
  animation: shiftGradient 90s ease-in-out infinite, glow 15s ease-in-out infinite;

  /* snow */
  position: relative;
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url('//ll3.sfo3.cdn.digitaloceanspaces.com/snow22.gif');
  background-repeat: repeat;
  filter: brightness(1.77)blur(4px);
  transform: translatez(0);
  -webkit-transform: translateZ(0);
  z-index: 9999;
  
}

.highlight-color {color: #ad1f09;}

@keyframes shiftGradient {
  0%   { background-position: 40% 0%; }
  50%  { background-position: 50% 100%; }
  100% { background-position: 70% 0%; }
}


/* Links */
a { color :#000; text-decoration: none; }

a:hover { text-decoration: underline; }
a:visited {color :#000; text-decoration: none;}

/* Layout */
.christmas-page { flex: 1; display: flex; flex-direction: column; justify-content: center; }

/* Cover image */
.cover img {
  
  max-height: 37vh;
  border-radius: 10px;
}

/* Tracklist text */
.tracklist-text {
  margin: 3rem auto;
  max-width: 600px;
  line-height: 1.9;
  white-space: pre-line;
}

.simple-player {
max-width:444px;
  margin: 3rem auto;
}


#tracklist {
  line-height: 1.7;
  font-size: 0.95em;
}

.track {
  padding: 4px 6px;
  margin: 4px 0;
  background: rgba(255,255,255,0.12);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.track:hover {
  background: rgba(255,255,255,0.3);
  transform: translateX(6px);
}

.track.playing {
  background: rgba(255,255,255,0.4);
  
  transform: translateX(10px);
}

.playing-indicator {
  opacity: 0;
  font-size: .9em;
  margin-left: auto;
}

.track.playing .playing-indicator {
  opacity: 1;
}


.jukebox {
  z-index: 1000;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8.5px;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 0 15px rgba(245, 228, 0);
  pointer-events: none;
}

.jukebox pre {
  width:333px;
  background: rgba(35, 48, 99, 0.4);
  border-radius: 5px;
  backdrop-filter: blur(8px);
  box-shadow: 
    0 8px 32px rgba(0,0,0,0.4),
    inset 0 0 10px rgba(115, 115, 115, 0.1);
}

/* Make the actual audio controls clickable */
.jukebox audio {
  pointer-events: auto;
  width: 250px;
  height: 22px;
  margin: 2px 0;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

/* Optional: style the native controls a tiny bit */
.jukebox audio::-webkit-media-controls-panel {
  background: rgba(31, 36, 56,0.4);
  border-radius: 20px;
  
}

.player-container { 
   display: flex; 
   justify-content: 
   center; gap: 60px; 
   flex-wrap: wrap; 
   margin-top: 40px; }
   
#all-tracks, #queue { 
     list-style: none; 
     padding: 20px; 
     width: 380px; 
     background: rgba(255,255,255,0.12);
     border-radius: 8px;
     }

    .track-item { padding: 12px; margin: 8px 0; cursor: move; }
    .track-item.dragging { opacity: 0.4; }
    .year-header { cursor: pointer; text-align: center; }
    


 .year-section { margin-bottom: 5px; }
    .year-toggle {
      cursor: pointer;
      padding: 5px;
      user-select: none;
      display: block;
      width: 100%;
      box-sizing: border-box;
    }
    
    .year-toggle::before { content: "▼ "; }
    .year-toggle.collapsed::before { content: "▶ "; }
    .year-tracks {
      list-style: none;
      padding: 0 0 0 20px;
      margin: 0;
      max-height: 600px;
      overflow: hidden;
      transition: max-height 0.5s ease, padding 0.5s ease;
    }
    .year-tracks.collapsed {
      max-height: 0;
      padding: 0;
      overflow: hidden;
    }
    .track-item {
       padding: 4px 6px;
  margin: 4px 0;
  background: rgba(255,255,255,0.12);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  gap: 10px;
    }
    .track-item:hover {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(5px);        
  opacity: .8;

  transform: scale(1.13);
  transition: 7s;
}
    .track-item.dragging { opacity: 0.7;
  box-shadow: 0 0 12px rgba(223, 234, 238, 0.6);}
  /* Artist selector - matches year toggles */
.artist-section { 
  display: inline-block; 
  margin: 10px 0; 
  vertical-align: top;
}

.artist-toggle {
  cursor: pointer;
  padding: 8px 16px;
  user-select: none;
  background: rgba(255,255,255,0.12);
  border: 1px dashed #000;
  border-radius: 8px;
  font-family: monospace;
  font-size: 0.9em;
  display: inline-block;
}

.artist-toggle::before { content: "▶ "; }
.artist-toggle:not(.collapsed)::before { content: "▼ "; }

.artist-toggle:hover {
  opacity: 0.7;
  background: rgba(0, 255, 0, 0.1);
}

.artist-list {
  list-style: none;
  padding: 10px;
  margin: 5px 0 0 0;
  max-height: 300px;
  max-width: 150px;
  overflow-y: auto;
  background: rgba(255,255,255,0.15);
  border: 1px dashed #000;
  border-radius: 8px;
  transition: max-height 0.5s ease;
}

.artist-list.collapsed {
  max-height: 0;
  padding: 0;
  overflow: hidden;
}

.artist-list li {
  padding: 6px 10px;
  cursor: pointer;
  border-bottom: 1px dotted #000;
}

.artist-list li:hover {
  background: rgba(0, 255, 0, 0.2);
  border-radius: 4px;
}

.artist-list li:last-child {
  border-bottom: none;
}

/* Selected artist display */
#selected-artist {
  font-weight: bold;
  color: #0f0;
  margin-left: 10px;
}


  /* Queue drop zone highlight */
#queue {
background: rgba(255,255,255,255, .12);
  min-height: 250px;
  padding: 10px;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

#queue.drag-over {
  background: rgba(0, 255, 0, 0.1);
  border-color: #9be400;               
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}
    
 #queue .track-item.now-playing {
  background: rgba(173, 216, 230, 0.3) !important;  /* Light blue overlay */
  border-left: 4px solid #add8e6 !important;
  padding-left: 12px !important;
  box-shadow: inset 0 0 12px rgba(173, 216, 230, 0.4);
  transform: translateX(6px);
  transition: all 0.4s ease;
  font-weight: bold;
  color: #000;
}

/* Optional: subtle pulse/glow */
#queue .track-item.now-playing::before {
  content: "▶ ";
  color: #add8e6;
  font-size: 1.1em;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}
    #play-queue-btn {
        background: rgba(255,255,255,0.32);
        width:25%;
      border: 1px dashed #000;
      padding:5px;
      cursor: pointer; border-radius: 10px;
      font-family: "SFMono-Regular", Consolas, monospace;
      font-size: 0.8em;
    }
    
    #play-queue-btn:hover { opacity: 0.3; 
      transition: opacity 4s, background .5s;
      background: #91b8aa;}
    
    
    #clear-queue {
        background: rgba(255, 255,255,0.12);
      border: 1px dashed #000;
      padding:5px;width:25%;
      cursor: pointer; border-radius: 10px;
       font-family: "SFMono-Regular", Consolas, monospace;
      font-size: 0.8em;
    }
    #clear-queue:hover { opacity: 0.3; 
      transition: opacity 4s, background .8s;
      background: #d681a0;}
    
    #trash-zone {
      
    padding:2em;
      border: 1px dashed #f00;
      border-radius: 5px;
      color: #f00;
      text-align: center;
      font-size: 1em;
      opacity: 0.5;
      transition: opacity 0.3s, background 0.3s;
    }
    #trash-zone.drag-over {
      opacity: 1;
      background: rgba(255,0,0,0.1);
    }

#random-20-btn,
#random-5-btn, #shuffle-queue-btn {
  background: rgba(255,255,255,0.12);
  border: 1px dashed #30479c;
  padding: 5px;
  width: 25%;
  cursor: pointer;
  border-radius: 8px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.8em;
  
}

#random-20-btn:hover,
#random-5-btn:hover, #shuffle-queue-btn:hover {
  opacity: 0.4;
  transition: opacity 0.3s; 
}
#add-5-by-artist,#add-all-by-artist
 {
  background: rgba(255,255,255,0.12);
  border: 1px dashed #30479c;
  padding: 5px;
  width: 15%;
  cursor: pointer;
  border-radius: 8px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.8em;
  
}

#add-5-by-artist:hover,#add-all-by-artist:hover
 {
  opacity: 0.4;
  transition: opacity 0.3s; 
}

