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

html, body {
  width: 100%;
  min-height: 100vh;
  background: #0a1420;
  color: #fdf3dd;
  font-family: Georgia, 'Times New Roman', serif;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

#app-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 24px 120px 24px;
}

.listen-header {
  text-align: center;
  margin-bottom: 40px;
}

.listen-header h1 {
  color: #f5e9d0;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-indent: 0.35em;
  font-size: clamp(26px, 6vw, 54px);
  text-shadow: 0 0 40px rgba(255, 200, 130, 0.55);
  animation: breathe 7s ease-in-out infinite;
}

.listen-header .subtitle {
  color: rgba(230, 220, 200, 0.65);
  font-style: italic;
  margin-top: 14px;
  font-size: clamp(13px, 2.6vw, 18px);
  letter-spacing: 0.12em;
}

@keyframes breathe {
  0%, 100% { opacity: 0.82; }
  50% { opacity: 1; }
}

#error-state {
  text-align: center;
  color: rgba(250, 238, 214, 0.6);
  font-style: italic;
  letter-spacing: 0.1em;
  margin-top: 60px;
}

/* Player Container (Sticky bottom) */
#player-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 20, 32, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 225, 175, 0.15);
  padding: 20px 24px calc(20px + env(safe-area-inset-bottom));
  z-index: 100;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5);
}

.now-playing-info {
  text-align: center;
  margin-bottom: 16px;
}

.now-playing-info h2 {
  font-size: 18px;
  font-weight: normal;
  letter-spacing: 0.1em;
  color: #ffe9c4;
  margin-bottom: 6px;
}

.now-playing-info p {
  font-size: 14px;
  font-style: italic;
  color: rgba(230, 220, 200, 0.65);
  letter-spacing: 0.05em;
}

.progress-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.progress-container span {
  font-family: monospace;
  font-size: 12px;
  color: rgba(230, 220, 200, 0.6);
  min-width: 40px;
  flex-shrink: 0;
}

.progress-bar-wrapper {
  position: relative;
  flex: 1 1 0%;
  min-width: 0;
  height: 44px; /* Accessible tap target */
  display: flex;
  align-items: center;
  cursor: pointer;
}

.progress-bar-wrapper::before {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  background: rgba(255, 225, 175, 0.2);
  border-radius: 2px;
}

.progress-bar {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  background: #ffe9c4;
  width: 0%;
  border-radius: 2px;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(255, 200, 120, 0.4);
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.player-controls button {
  background: transparent;
  border: none;
  color: #ffe9c4;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  transition: opacity 0.3s;
}

.player-controls button:hover {
  opacity: 0.8;
}

.player-controls button:active {
  transform: scale(0.95);
}

#btn-play-pause {
  color: #ffe9c4;
}

/* Track Lists */
.series-section {
  margin-bottom: 48px;
}

.series-title {
  font-size: 20px;
  font-weight: normal;
  letter-spacing: 0.15em;
  color: #ffe9c4;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 225, 175, 0.15);
  padding-bottom: 12px;
  text-shadow: 0 0 20px rgba(255, 190, 110, 0.25);
}

.track-list {
  list-style: none;
}

.track-item {
  padding: 16px 0;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 225, 175, 0.05);
  transition: background 0.3s;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.track-item:hover {
  background: rgba(255, 225, 175, 0.03);
}

.track-item.playing .track-title {
  color: #ffe9c4;
  text-shadow: 0 0 10px rgba(255, 200, 120, 0.3);
}

.track-title {
  font-size: clamp(15px, 3vw, 18px);
  letter-spacing: 0.08em;
  color: #fdf3dd;
  margin-bottom: 6px;
  transition: color 0.3s;
}

.track-desc {
  font-size: clamp(13px, 2.6vw, 15px);
  font-style: italic;
  color: rgba(230, 220, 200, 0.5);
  letter-spacing: 0.05em;
}
