body {
  background: #000;
  color: #fff;
  font-family: sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  user-select: none; /* Prevent text selection */
}
.player-container {
  text-align: center;
  max-width: 400px;
  padding: 20px;
}
.cover {
  width: 300px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
  pointer-events: none; /* Prevent image dragging */
}
input[type="email"] {
  padding: 12px;
  border: none;
  border-radius: 4px;
  margin-bottom: 10px;
  width: 100%;
  box-sizing: border-box;
  font-size: 16px;
}
button {
  padding: 12px 24px;
  background-color: #fff;
  color: #000;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: transform 0.2s, background-color 0.2s;
}
button:hover {
  transform: translateY(-2px);
  background-color: #f0f0f0;
}
button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Custom Player Styles */
#customPlayer {
  margin-top: 20px;
  width: 100%;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 8px;
}

.control-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: none;
}

.progress-container {
  flex-grow: 1;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

#progress {
  height: 100%;
  background: #1DB954;
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

.time-display {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  margin-top: 5px;
  gap: 5px;
}

#shareSection {
  margin-top: 30px;
  padding: 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}
#shareSection h2 {
  margin: 0 0 10px 0;
  font-size: 24px;
}
#shareSection p {
  margin: 0 0 20px 0;
  opacity: 0.8;
}
.share-button {
  background-color: #1DB954;
  color: white;
}
.share-button:hover {
  background-color: #1ed760;
}

/* Message Overlay */
.message-overlay {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  z-index: 1000;
  animation: slideDown 0.3s ease-out;
}

.message-overlay.success {
  background-color: #1DB954;
  color: white;
}

.message-overlay.error {
  background-color: #ff4444;
  color: white;
}

@keyframes slideDown {
  from {
    transform: translate(-50%, -100%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}
