:root {
  --bg-color: #221f1f;
  --text-color: #fff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
}

.player-container {
  width: 100%;
  max-width: 1200px;
  height: 100%;
  min-height: 0;
  background: linear-gradient(180deg, #333, #1a1a1a);
  border-radius: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  box-shadow: none;
}

.visualizer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  padding: 0 10px;
  opacity: 0.38;
  z-index: 1;
}

.bar {
  flex: 1;
  background: linear-gradient(180deg, rgba(255, 214, 10, 0.95), rgba(80, 255, 120, 0.9));
  height: 10%;
  transition: height 0.2s ease;
}

@keyframes bounce {
  0%, 100% { height: 10%; }
  50% { height: 70%; }
}

.player-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 10px 18px;
  gap: 14px;
}

.album-art-container {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid #fff;
  overflow: hidden;
  flex-shrink: 0;
}

.album-art-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rotating {
  animation: rotateArt 20s linear infinite;
}

@keyframes rotateArt {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.info-container {
  color: white;
  min-width: 220px;
  max-width: 360px;
  overflow: hidden;
}

.status-badge {
  font-size: 11px;
  margin-bottom: 4px;
}

.dot {
  height: 8px;
  width: 8px;
  background-color: #ff2b2b;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}

.scrolling-text {
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
}

.scrolling-text span {
  display: inline-block;
  padding-left: 100%;
  animation: scroll 15s linear infinite;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}

@keyframes scroll {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-100%, 0); }
}

.controls-main {
  flex-grow: 1;
  display: flex;
  justify-content: center;
}

.play-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  font-size: 18px;
  transition: 0.3s;
}

.play-btn:hover { background: rgba(255, 255, 255, 0.4); }

.right-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-buttons {
  display: flex;
  gap: 8px;
}

.app-buttons a {
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 20px;
  font-size: 12px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.25);
}

.volume-container {
  display: flex;
  align-items: center;
  color: white;
  gap: 8px;
}

#volumeSlider {
  width: 80px;
  accent-color: #fff;
  cursor: pointer;
}

@media (max-width: 820px) {
  .player-content {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 14px 12px;
    gap: 10px;
  }

  .player-container {
    min-height: 148px;
  }

  .album-art-container {
    width: 52px;
    height: 52px;
    border-width: 1px;
  }

  .info-container {
    min-width: 0;
    max-width: none;
    flex: 1 1 auto;
  }

  .status-badge {
    font-size: 10px;
  }

  .scrolling-text span {
    font-size: 0.9rem;
  }

  .controls-main {
    width: auto;
    flex: 0 0 auto;
  }

  .play-btn {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .right-controls {
    gap: 6px;
  }

  .app-buttons {
    flex-direction: column;
    gap: 4px;
  }

  .app-buttons a {
    font-size: 10px;
    padding: 5px 7px;
    border-radius: 10px;
    white-space: nowrap;
  }

  .volume-container {
    gap: 4px;
    font-size: 11px;
  }

  #volumeSlider {
    width: 56px;
  }

  .controls-main {
    order: 0;
    width: auto;
    flex: 0 0 auto;
  }

  .play-btn {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }

  .right-controls {
    flex: 0 0 auto;
    gap: 6px;
  }

  .app-buttons {
    flex-direction: column;
    gap: 4px;
  }

  .app-buttons a {
    font-size: 9px;
    padding: 4px 6px;
    border-radius: 10px;
    white-space: nowrap;
  }

  .volume-container {
    gap: 4px;
    font-size: 11px;
  }

  #volumeSlider {
    width: 42px;
  }
}
