:root {
  --bg: linear-gradient(135deg, #0f1724, #1e293b);
  --card: linear-gradient(145deg, #0b1220, #1a2537);
  --accent: #7c3aed;
  --accent-hover: #8b5cf6;
  --muted: #9aa4b2;
  --text: #ffffff;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  --border-radius: 12px;
}

body {
  margin: 0;
  background: var(--bg);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  overflow-x: hidden;
}
/* Floating watermark text */
.floating-text {
  position: absolute;
  top: 50%;
  left: -200px; /* start off-screen */
  font-size: 32px;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.08); /* very subtle */
  pointer-events: none; /* let clicks go through */
  white-space: nowrap;
  user-select: none;
  animation: floatText 20s linear infinite;
  z-index: 1; /* make sure it’s above background but below UI elements */
}

@keyframes floatText {
  0% {
    transform: translateX(0) translateY(-50%);
  }
  100% {
    transform: translateX(120vw) translateY(-50%);
  }
}

.wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  background: var(--bg);
}

.player {
  width: 900px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  background: var(--card);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.player:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.art {
  height: 200px;
  background: linear-gradient(45deg, #152233, #1e293b);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.art::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(124, 58, 237, 0.1), rgba(139, 92, 246, 0.1));
  border-radius: var(--border-radius);
}

.title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.artist {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.controls {
  margin-top: 20px;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.btn {
  background: linear-gradient(145deg, #1a2537, #24324a);
  border: none;
  color: var(--text);
  padding: 12px 16px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
  background: linear-gradient(145deg, #24324a, #2d3748);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.big {
  padding: 16px 20px;
  font-size: 20px;
  background: linear-gradient(145deg, var(--accent), var(--accent-hover));
}

.big:hover {
  background: linear-gradient(145deg, var(--accent-hover), #9d4edd);
}

.progress {
  height: 10px;
  background: linear-gradient(90deg, #233044, #2d3748);
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
  position: relative;
  overflow: hidden;
}

.bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: 5px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--accent);
}

.progress-wrap {
  margin-top: 20px;
}

.time-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.right {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 20px;
}

.section-title {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 600;
}

.playlist {
  max-height: 350px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) #1a2537;
}

.playlist::-webkit-scrollbar {
  width: 8px;
}

.playlist::-webkit-scrollbar-track {
  background: #1a2537;
  border-radius: 4px;
}

.playlist::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.track {
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 8px;
  background: linear-gradient(145deg, #111a28, #1a2537);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.track:hover {
  background: linear-gradient(145deg, #1a2537, #24324a);
  transform: translateX(5px);
}

.track.active {
  background: linear-gradient(145deg, #19263a, #24324a);
  border-left: 4px solid var(--accent);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.3);
}

.autoplay {
  font-size: 14px;
  margin-top: 15px;
  display: block;
  color: var(--muted);
}

.controls-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: linear-gradient(90deg, #233044, #2d3748);
  border-radius: 5px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent);
}

input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent);
  border: none;
}

@media (max-width: 768px) {
  .player {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 15px;
  }
  .right {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 0;
    padding-top: 20px;
  }
}
