* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.player-card {
  background: white;
  border-radius: 30px;
  max-width: 450px;
  width: 100%;
  padding: 30px 25px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.menu-icon {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  z-index: 1001;
  transition: transform 0.3s;
}

.menu-icon:hover {
  transform: scale(1.1);
}

.menu-icon span {
  width: 24px;
  height: 2.5px;
  background: #333;
  margin: 3px 0;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Hamburger animation when active */
.menu-icon.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.menu-icon.active span:nth-child(2) {
  opacity: 0;
}

.menu-icon.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Playlist Panel */
.playlist-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  border-radius: 30px;
}

.playlist-panel.active {
  transform: translateX(0);
}

.playlist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 25px 20px;
  border-bottom: 2px solid #f0f0f0;
}

.playlist-header h2 {
  font-size: 24px;
  color: #1a1a1a;
}

.close-playlist {
  background: none;
  border: none;
  font-size: 36px;
  color: #666;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.close-playlist:hover {
  transform: scale(1.2);
  color: #ff0000;
}

.playlist-items {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}

.playlist-item {
  padding: 15px 25px;
  cursor: pointer;
  transition: background 0.2s;
  border-left: 3px solid transparent;
}

.playlist-item:hover {
  background: #f8f8f8;
}

.playlist-item.active {
  background: #fff0f0;
  border-left-color: #ff0000;
}

.playlist-item-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.playlist-item-artist {
  font-size: 14px;
  color: #666;
}

.vinyl-container {
  width: 75%;
  max-width: 300px;
  margin: 0 auto 50px;
  position: relative;
}

.vinyl-outer {
  width: 100%;
  padding-bottom: 100%;
  background: linear-gradient(135deg, #d0d0d0 0%, #a8a8a8 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.vinyl-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  height: 85%;
  background: radial-gradient(circle at 30% 30%, #3a3a3a 0%, #1a1a1a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
}

.album-art {
  width: 95%;
  height: 95%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

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

.album-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c9ad8f;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  padding: 10px;
}

.track-info {
  text-align: center;
  margin-bottom: 40px;
}

.track-title {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.track-artist {
  font-size: 16px;
  color: #666;
  font-weight: 400;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
}

.control-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.control-btn:hover {
  transform: scale(1.1);
}

.control-btn:active {
  transform: scale(0.95);
}

.prev-btn,
.next-btn {
  width: 40px;
  height: 40px;
}

.prev-btn svg,
.next-btn svg {
  fill: #666;
}

.play-btn {
  width: 70px;
  height: 70px;
  background: #ff0000;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(255, 0, 0, 0.3);
}

.play-btn svg {
  fill: white;
  margin-left: 3px;
}

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

.progress-bar {
  width: 100%;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  margin-bottom: 8px;
  position: relative;
  cursor: pointer;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: #ff0000;
  border-radius: 2px;
  transition: width 0.1s;
}

.time-display {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #999;
  font-weight: 500;
}
