:root {
  --background-color: #1c1c1e;
  --player-background: rgba(44, 44, 46, 0.8);
  --text-color: #ffffff;
  --text-secondary: #b3b3b3;
  --accent-color: #fc3c44;
}

body {
  overflow: hidden;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--background-color);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 100vh;
  gap: 10px;
}

#credit {
  color: white;
}

#background-blur {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(2px);
  opacity: 0.5;
  z-index: -1;
}

#drop-area {
  border: 2px dashed #fff;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

#drop-area.dragover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #b36d5c;
}

#drag-drop-text {
  font-size: 1.2rem;
  margin: 0;
}

#file-input {
  display: none;
}

.album-art img {
  width: 100%;
  max-width: 400px;
  border-radius: 15px;
}

.music-player {
  max-width: 400px;
  width: 90%;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.player-controls {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.audio-info h1 {
  font-size: 1.5rem;
  margin: 0;
  color: #fff;
}

.audio-info p {
  font-size: 1rem;
  margin: 5px 0;
  color: #ddd;
}

.progress-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  flex-wrap: wrap;
}

.progress-bar label {
  font-size: 1rem;
  color: #fff;
  flex-basis: 100%;
  text-align: center;
  margin-bottom: 5px;
}

.progress-bar input[type="range"] {
  width: 80%;
  height: 5px;
  background: #444;
  border-radius: 2.5px;
  outline: none;
  overflow: hidden;
  cursor: pointer;
}

.progress-bar span {
  font-size: 0.9rem;
  color: #ddd;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.controls button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.controls img {
  width: 30px;
  height: 30px;
}

/* Media Queries */

/* Extra Small Devices */
@media (max-width: 320px) {
  .progress-bar input[type="range"] {
    width: 60%;
  }

  body {
    padding: 0 5px;
  }

  .album-art img {
    max-width: 180px;
  }

  .music-player {
    max-width: 200px;
  }

  .audio-info h1 {
    font-size: 0.9rem;
  }

  .audio-info p {
    font-size: 0.75rem;
  }

  .controls img {
    width: 18px;
    height: 18px;
  }
}

/* Small Devices */
@media (min-width: 321px) and (max-width: 480px) {
  .progress-bar input[type="range"] {
    width: 65%;
  }

  .player-controls {
    gap: 10px;
  }

  .album-art img {
    max-width: 220px;
  }

  .music-player {
    max-width: 220px;
  }

  .audio-info h1 {
    font-size: 1rem;
  }

  .audio-info p {
    font-size: 0.8rem;
  }
}

/* Medium Devices */
@media (min-width: 481px) and (max-width: 767px) {
  .progress-bar input[type="range"] {
    width: 70%;
  }

  .player-controls {
    gap: 10px;
  }

  .album-art img {
    max-width: 250px;
  }

  .music-player {
    max-width: 250px;
  }

  .audio-info h1 {
    font-size: 1.1rem;
  }

  .audio-info p {
    font-size: 0.9rem;
  }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 1023px) {
  .album-art img {
    max-width: 350px;
  }

  .music-player {
    max-width: 350px;
  }

  .audio-info h1 {
    font-size: 1.3rem;
  }

  .audio-info p {
    font-size: 0.95rem;
  }
}

/* Laptops */
@media (min-width: 1024px) and (max-width: 1279px) {
  .album-art img {
    max-width: 400px;
  }

  .music-player {
    max-width: 400px;
  }
}

/* Desktops */
@media (min-width: 1280px) {
  .progress-bar input[type="range"] {
    width: 70%;
  }

  .player-controls {
    gap: 10px;
  }

  .album-art img {
    max-width: 300px;
  }

  .music-player {
    max-width: 300px;
  }
}

/* Large Desktops */
@media (min-width: 1440px) {
  .album-art img {
    max-width: 300px;
  }
}

/* Extra Large Desktops */
@media (min-width: 1920px) {
  .album-art img {
    max-width: 350px;
  }
}

/* HDTV */
@media (min-width: 1280px) and (min-height: 720px) {
  body {
    font-size: 1.2rem;
  }
}

/* 4K Ultra HD */
@media (min-width: 3840px) and (min-height: 2160px) {
  body {
    font-size: 1.5rem;
  }

  .album-art img {
    max-width: 1000px;
  }

  .music-player {
    max-width: 700px;
  }
}
