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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #0f172a;
  min-height: 100vh;
  color: #f8fafc;
  position: relative;
}

/* Background Overlay */
.bg-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(15, 23, 42, 0.5) 0%,
    rgba(15, 23, 42, 0.9) 50%,
    #0f172a 100%
  );
  z-index: 0;
}

.bg-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top center, rgba(147, 51, 234, 0.15) 0%, transparent 60%);
}

.container {
  max-width: 896px;
  margin: 0 auto;
  padding: 48px 16px 128px;
  position: relative;
  z-index: 10;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 48px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(147, 51, 234, 0.1);
  border: 1px solid rgba(147, 51, 234, 0.2);
  border-radius: 9999px;
  color: #c4b5fd;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #a855f7;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: white;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .header h1 {
    font-size: 3rem;
  }
}

.gradient-text {
  background: linear-gradient(to right, #c084fc, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1.125rem;
  color: #9ca3af;
  max-width: 512px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Input Section */
.input-section {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 8px 12px;
  margin-bottom: 48px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 768px) {
  .input-wrapper {
    flex-direction: row;
  }
}

.input-group {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 20px;
  color: #9ca3af;
  pointer-events: none;
}

.input-group input {
  width: 100%;
  background: rgba(15, 23, 42, 0.5);
  color: white;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 16px 16px 16px 44px;
  font-size: 1rem;
  transition: all 0.2s;
}

.input-group input::placeholder {
  color: #6b7280;
}

.input-group input:focus {
  outline: none;
  border-color: rgba(147, 51, 234, 0.5);
  background: rgba(15, 23, 42, 0.8);
}

.convert-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(to right, #9333ea, #ec4899);
  color: white;
  font-weight: 700;
  padding: 16px 32px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 10px 15px -3px rgba(147, 51, 234, 0.2);
  white-space: nowrap;
}

.convert-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(100%);
  transition: transform 0.3s;
}

.convert-btn:hover::before {
  transform: translateY(0);
}

.convert-btn:hover {
  background: linear-gradient(to right, #a855f7, #f472b6);
}

.convert-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.convert-btn:disabled::before {
  display: none;
}

.btn-icon {
  width: 20px;
  height: 20px;
  position: relative;
  z-index: 1;
}

.convert-btn span {
  position: relative;
  z-index: 1;
}

/* TTS Provider Options */
.tts-options {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding: 0 4px;
}

.tts-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.tts-option:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(15, 23, 42, 0.7);
}

.tts-option.active {
  border-color: rgba(147, 51, 234, 0.5);
  background: rgba(147, 51, 234, 0.1);
}

.tts-option .option-name {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}

.tts-option.active .option-name {
  color: #c4b5fd;
}

.tts-option .option-desc {
  font-size: 11px;
  color: #6b7280;
}

.tts-option.active .option-desc {
  color: #9ca3af;
}

.input-hint {
  margin-top: 12px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6b7280;
}

.hint-dot {
  width: 6px;
  height: 6px;
  background: rgba(34, 197, 94, 0.5);
  border-radius: 50%;
}

/* Status Section */
.status-section {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.status-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.status-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #a855f7;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.status-info {
  flex: 1;
}

.status-text {
  font-weight: 600;
  color: white;
}

.status-eta {
  font-size: 14px;
  color: #9ca3af;
  margin-top: 4px;
}

.progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(to right, #9333ea, #ec4899);
  width: 0%;
  transition: width 0.3s ease;
}

/* Error Section */
.error-section {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.error-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.error-icon {
  width: 24px;
  height: 24px;
  color: #f87171;
  flex-shrink: 0;
}

.error-text {
  flex: 1;
  color: #fca5a5;
  font-weight: 500;
}

.retry-btn {
  padding: 8px 16px;
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.retry-btn:hover {
  background: rgba(239, 68, 68, 0.3);
}

/* Podcast Section */
.podcast-section {
  margin-bottom: 24px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.section-icon {
  width: 20px;
  height: 20px;
  color: #c084fc;
}

.section-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.podcast-count {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
  font-size: 12px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #9ca3af;
}

.podcast-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.empty-hint {
  text-align: center;
  padding: 80px 0;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.empty-hint p {
  color: #6b7280;
}

/* Podcast Item Card */
.podcast-item {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s;
}

.podcast-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.podcast-item.playing {
  background: rgba(147, 51, 234, 0.1);
  border-color: rgba(147, 51, 234, 0.3);
  box-shadow: 0 10px 15px -3px rgba(147, 51, 234, 0.1);
}

.podcast-content {
  display: flex;
  gap: 16px;
}

.podcast-play-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: all 0.3s;
}

.podcast-play-btn:hover {
  background: #9333ea;
  transform: scale(1.05);
}

.podcast-item.playing .podcast-play-btn {
  background: #a855f7;
  box-shadow: 0 10px 15px -3px rgba(168, 85, 247, 0.4);
  transform: scale(1.05);
}

.podcast-play-btn svg {
  width: 20px;
  height: 20px;
}

.podcast-info {
  flex: 1;
  min-width: 0;
}

.podcast-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  line-height: 1.4;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.podcast-item:hover .podcast-title {
  color: #e9d5ff;
}

.podcast-item.playing .podcast-title {
  color: #d8b4fe;
}

.podcast-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #9ca3af;
  margin-bottom: 8px;
}

.podcast-source {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #c084fc;
}

.podcast-source svg {
  width: 12px;
  height: 12px;
}

.meta-dot {
  width: 4px;
  height: 4px;
  background: #4b5563;
  border-radius: 50%;
}

.podcast-preview {
  font-size: 14px;
  color: #9ca3af;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.podcast-actions {
  display: none;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .podcast-actions {
    display: flex;
  }
}

.podcast-actions button {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: white;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.podcast-actions button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #d8b4fe;
}

.podcast-actions .delete-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

/* Mobile Actions */
.podcast-mobile-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

@media (min-width: 640px) {
  .podcast-mobile-actions {
    display: none;
  }
}

.podcast-mobile-actions button {
  flex: 1;
  padding: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.podcast-mobile-actions .delete-btn {
  background: rgba(255, 255, 255, 0.05);
  color: #f87171;
}

/* Player Section */
.player-section {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -10px 40px -15px rgba(0, 0, 0, 0.5);
}

/* Progress Bar at top of player */
.player-progress-wrapper {
  position: relative;
  height: 12px;
  margin-top: -6px;
  cursor: pointer;
}

.player-progress-wrapper:hover .player-progress::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
}

.player-progress {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

.player-progress::-webkit-slider-runnable-track {
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  transition: height 0.2s;
}

.player-progress-wrapper:hover .player-progress::-webkit-slider-runnable-track {
  height: 4px;
}

.player-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 0;
  height: 0;
  background: white;
  border-radius: 50%;
  margin-top: -5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s;
}

.player-progress::-moz-range-track {
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.player-progress::-moz-range-thumb {
  width: 0;
  height: 0;
  background: white;
  border: none;
  border-radius: 50%;
}

.player-content {
  max-width: 896px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px 16px;
  position: relative;
}

@media (min-width: 640px) {
  .player-content {
    padding: 12px 24px 16px;
  }
}

/* Player Info */
.player-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  max-width: 320px;
}

@media (min-width: 768px) {
  .player-info {
    max-width: 280px;
  }
}

.player-visualizer {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: linear-gradient(to bottom right, #9333ea, #2563eb);
  border-radius: 8px;
  flex-shrink: 0;
}

.player-visualizer .bar {
  width: 2px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 1px;
  height: 12px;
}

.player-visualizer .bar2 {
  height: 20px;
  background: rgba(255, 255, 255, 0.8);
}

.player-visualizer .bar3 {
  height: 16px;
}

.player-visualizer.playing .bar {
  animation: music-bar 0.5s ease-in-out infinite;
}

.player-visualizer.playing .bar2 {
  animation-duration: 0.7s;
}

.player-visualizer.playing .bar3 {
  animation-duration: 0.6s;
}

@keyframes music-bar {
  0%, 100% { height: 20%; }
  50% { height: 80%; }
}

.player-text {
  min-width: 0;
  overflow: hidden;
}

.player-text h4 {
  font-size: 14px;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-text p {
  font-size: 12px;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Player Center Controls */
.player-controls {
  display: none;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .player-controls {
    display: flex;
  }
}

.player-controls .skip-btn {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-controls .skip-btn:hover {
  color: white;
}

.player-controls .skip-btn svg {
  width: 20px;
  height: 20px;
}

.play-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: none;
  border-radius: 50%;
  color: #0f172a;
  cursor: pointer;
  transition: transform 0.2s;
}

.play-btn:hover {
  transform: scale(1.05);
}

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

.play-btn svg {
  width: 20px;
  height: 20px;
}

.play-icon {
  margin-left: 2px;
}

.pause-icon {
  display: none;
}

.playing .play-icon {
  display: none;
}

.playing .pause-icon {
  display: block;
}

/* Player Right Actions */
.player-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (min-width: 640px) {
  .player-actions {
    gap: 16px;
  }
}

.speed-select {
  display: none;
  padding: 4px 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

@media (min-width: 640px) {
  .speed-select {
    display: block;
  }
}

.speed-select:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.speed-select option {
  background: #1e293b;
  color: white;
}

.download-btn {
  background: none;
  border: none;
  padding: 8px;
  color: #9ca3af;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s;
}

.download-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.download-btn svg {
  width: 20px;
  height: 20px;
}

/* Mobile Play Button in actions */
.mobile-play-btn {
  display: flex;
}

@media (min-width: 768px) {
  .mobile-play-btn {
    display: none;
  }
}

/* Loading spinner for convert button */
.btn-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Detail Drawer Overlay */
.detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 60;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.detail-overlay.visible {
  opacity: 1;
}

/* Detail Drawer */
.detail-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 70;
  background: #0f172a;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  max-height: 90vh;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.detail-drawer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top center, rgba(147, 51, 234, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.detail-drawer.visible {
  transform: translateY(0);
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  position: relative;
  z-index: 1;
}

.detail-close-btn,
.detail-share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.detail-close-btn:hover,
.detail-share-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.detail-close-btn svg,
.detail-share-btn svg {
  width: 20px;
  height: 20px;
}

.detail-content {
  padding: 0 24px 32px;
  overflow-y: auto;
  flex: 1;
  position: relative;
  z-index: 1;
}

.detail-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  line-height: 1.4;
  margin-bottom: 8px;
}

.detail-account {
  font-size: 1rem;
  color: #c4b5fd;
  font-weight: 500;
  margin-bottom: 16px;
}

.detail-description-wrapper {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  max-height: 200px;
  overflow-y: auto;
  position: relative;
}

.detail-description {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(196, 181, 253, 0.9);
  white-space: pre-wrap;
}

.detail-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.detail-source-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #9ca3af;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.detail-source-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.detail-source-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.detail-source-btn svg {
  width: 16px;
  height: 16px;
}

.detail-speed-wrapper {
  position: relative;
}

.detail-speed-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #9ca3af;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.detail-speed-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.detail-speed-btn svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

.detail-speed-menu {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 8px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 6px;
  min-width: 80px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.detail-speed-menu button {
  display: block;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #9ca3af;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.detail-speed-menu button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.detail-speed-menu button.active {
  background: #9333ea;
  color: white;
}

.detail-time-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
  color: #9ca3af;
  margin-bottom: 8px;
  padding: 0 4px;
}

.detail-progress-wrapper {
  margin-bottom: 32px;
}

.detail-progress {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  cursor: pointer;
}

.detail-progress::-webkit-slider-runnable-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.detail-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  margin-top: -5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.detail-progress::-moz-range-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.detail-progress::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

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

.detail-skip-btn {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.detail-skip-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

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

.detail-skip-btn svg {
  width: 32px;
  height: 32px;
}

.detail-skip-btn .skip-label {
  position: absolute;
  font-size: 10px;
  font-weight: 700;
  color: inherit;
}

.detail-play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  background: white;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.detail-play-btn:hover {
  transform: scale(1.05);
}

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

.detail-play-btn svg {
  width: 28px;
  height: 28px;
}

.detail-play-btn .play-icon {
  margin-left: 4px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.toast.visible {
  opacity: 1;
}

/* Player section clickable area */
.player-info {
  cursor: pointer;
}

/* Utility classes */
.hidden {
  display: none !important;
}

/* Selection styling */
::selection {
  background: rgba(147, 51, 234, 0.3);
  color: #e9d5ff;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ==================== User Section ==================== */
.user-section {
  margin-bottom: 24px;
}

.user-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 14px;
}

.user-icon {
  font-size: 18px;
}

.user-text {
  color: #94a3b8;
}

.user-tier {
  padding: 2px 8px;
  background: rgba(147, 51, 234, 0.2);
  border-radius: 4px;
  color: #c4b5fd;
  font-size: 12px;
  font-weight: 500;
}

.user-quota {
  margin-left: auto;
  color: #94a3b8;
  font-size: 13px;
}

.login-btn,
.register-btn,
.logout-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.login-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
}

.login-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.register-btn {
  background: linear-gradient(135deg, #9333ea 0%, #db2777 100%);
  border: none;
  color: white;
}

.register-btn:hover {
  opacity: 0.9;
}

.logout-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f87171;
}

.guest-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 14px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 8px;
  color: #fcd34d;
  font-size: 13px;
}

.guest-warning svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.guest-warning a {
  color: #f472b6;
  text-decoration: underline;
}

/* ==================== Auth Modal ==================== */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.auth-modal {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.auth-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 8px;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.auth-close-btn svg {
  width: 18px;
  height: 18px;
}

.auth-modal h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-align: center;
  margin-bottom: 24px;
}

.auth-field {
  margin-bottom: 16px;
}

.auth-field label {
  display: block;
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 6px;
}

.auth-field input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: white;
  font-size: 15px;
  transition: border-color 0.2s;
}

.auth-field input:focus {
  outline: none;
  border-color: #9333ea;
}

.auth-field input::placeholder {
  color: #64748b;
}

.auth-error {
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  color: #fca5a5;
  font-size: 13px;
  margin-bottom: 16px;
}

.auth-submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #9333ea 0%, #db2777 100%);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.auth-submit-btn:hover {
  opacity: 0.9;
}

.auth-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-switch {
  text-align: center;
  margin-top: 20px;
  color: #94a3b8;
  font-size: 14px;
}

.auth-switch a {
  color: #c4b5fd;
  text-decoration: none;
  font-weight: 500;
}

.auth-switch a:hover {
  text-decoration: underline;
}
