@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');


body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

.container {
  width: 90%;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.background-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
  padding-top: 125px;
  pointer-events: none;
  opacity: 0.2;
  filter: sepia(40%);
}

.background-layer img {
  width: 90%;
  max-width: 960px;
  height: auto;
  border-radius: 10px;
}

html, body {
  position: relative;
  min-height: 100%;
}

header {
  background-color: #e0e0e0;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9em;
  color: #222;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

header h1 {
  margin: 0;
  font-size: 2.5em;
  color: #222;
}

h1, h2, h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: #1c3a5f;
}

.player {
  text-align: center;
  max-width: 100%;
  margin: 30px 0;
}

.player audio,
.player iframe {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 5px;
  background: #fff;
}

.player {
  background-color: #fff;
  left: 50%;
  transform: translateX(-50%);
  width: 430px;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 3;
}

.container {
  width: 90%;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
  background: none; 
}

#current-track,
#played-tracks {
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.05);
  margin: 40px auto;
  max-width: 720px;
  backdrop-filter: blur(2px);
}

#current-track h2,
#played-tracks h2 {
  font-size: 2em;
  color: #1c3a5f;
  text-align: left;
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid #3c79c0;
  font-weight: 600;
}

#current-track.loading {
  color: #888;
  font-style: italic;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

#current-track {
  font-size: 1.4em;
  text-align: center;
  font-weight: bold;
  color: #121b50;
}

#current-track:hover {
  background-color: #f0f8ff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.current-highlight {
  animation: pulse-fade 1s ease;
}

@keyframes pulse-fade {
  0% { background-color: #e0f7fa; }
  100% { background-color: transparent; }
}


.track-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  margin-bottom: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  backdrop-filter: blur(2px);
}

.track-item:hover {
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
  background-color: rgba(240, 248, 255, 0.6);
}

.track-item img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
  background-color: #fff;
  padding: 2px;
}

.track-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.track-meta .title {
  font-weight: 700;
  color: #21374c;
  font-size: 1.05em;
}

.track-meta .artist {
  font-weight: 400;
  color: #4a4a4a;
  font-size: 0.95em;
}

.track-meta small {
  color: #7a8490;
  font-size: 0.8em;
  margin-top: 4px;
}


footer {
  background-color: #e0e0e0;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9em;
  margin-top: 40px;
  color: #555;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}


@media (max-width: 600px) {
  .container {
    width: 95%;
    padding: 15px;
  }

  .background-layer {
    display: none;
  }
  
  header h1 {
    font-size: 2em;
  }
  
  .player audio,
  .player iframe {
    max-width: 100%;
    width: 100%;
  }
  
  #current-track,
  #played-tracks {
    padding: 20px;
  }

  .track-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .track-meta {
    min-height: 60px;
    overflow-wrap: break-word;
  }

  .track-item img {
    margin-bottom: 10px;
  }

  .track-meta .title {
    font-size: 1em;
  }

  .track-meta .artist {
    font-size: 0.9em;
  }

  footer {
    font-size: 0.8em;
    padding: 15px 0;
  }
}


