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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  min-height: 100vh;
  color: #ffffff;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

header h1 {
  font-size: 2.5rem;
  color: #1db954;
  margin-bottom: 10px;
}

.subtitle {
  color: #b3b3b3;
  font-size: 1.1rem;
}

/* Navigation */
.nav-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.nav-links a {
  color: #b3b3b3;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s;
}

.nav-links a:hover {
  color: #1db954;
  background: rgba(29, 185, 84, 0.1);
}

.nav-links a.active {
  color: #1db954;
  background: rgba(29, 185, 84, 0.2);
}

/* Form Styles */
form {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #e0e0e0;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 1rem;
  transition: border-color 0.3s, background 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1db954;
  background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.field-hint {
  margin-top: 8px;
  color: #888;
  font-size: 0.85rem;
}

button[type="submit"] {
  width: 100%;
  padding: 16px;
  background: #1db954;
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

button[type="submit"]:hover {
  background: #1ed760;
  transform: translateY(-2px);
}

button[type="submit"]:disabled {
  background: #535353;
  cursor: not-allowed;
  transform: none;
}

/* Progress Section */
.progress-section {
  margin-top: 30px;
  text-align: center;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 15px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1db954, #1ed760);
  width: 0%;
  transition: width 0.5s ease;
  border-radius: 4px;
}

.progress-text {
  color: #b3b3b3;
  margin-bottom: 5px;
}

.progress-percent {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1db954;
}

/* Error Message */
.error-message {
  margin-top: 20px;
  padding: 20px;
  background: rgba(255, 82, 82, 0.1);
  border: 1px solid #ff5252;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.error-icon {
  width: 40px;
  height: 40px;
  background: #ff5252;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.error-message p {
  color: #ff8a80;
}

/* Results Section */
.results-section {
  margin-top: 30px;
}

.results-section h2 {
  color: #1db954;
  margin-bottom: 20px;
  text-align: center;
}

.result-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-item {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.result-item h3 {
  color: #b3b3b3;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.result-item p {
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1.6;
}

.result-item.highlight {
  background: rgba(29, 185, 84, 0.1);
  margin: 0 -25px -25px;
  padding: 25px;
  border-radius: 0 0 12px 12px;
  border-top: 1px solid rgba(29, 185, 84, 0.3);
}

.result-item.highlight h3 {
  color: #1db954;
}

.secondary-btn {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  background: transparent;
  color: #1db954;
  border: 2px solid #1db954;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.secondary-btn:hover {
  background: #1db954;
  color: #000;
}

/* History Section */
.history-section {
  margin-top: 50px;
}

.history-section h2 {
  color: #ffffff;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.history-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}

.history-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(29, 185, 84, 0.5);
}

.history-item h4 {
  color: #ffffff;
  margin-bottom: 5px;
}

.history-item .podcast-name {
  color: #1db954;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.history-item .date {
  color: #666;
  font-size: 0.85rem;
}

.loading-text {
  color: #666;
  text-align: center;
  padding: 20px;
}

.empty-state {
  color: #666;
  text-align: center;
  padding: 30px;
}

/* Language Toggle */
.language-toggle {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.lang-btn {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #b3b3b3;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.lang-btn.active {
  background: rgba(29, 185, 84, 0.2);
  border-color: #1db954;
  color: #1db954;
}

/* Footer */
footer {
  margin-top: 50px;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    padding: 20px 15px;
  }

  header h1 {
    font-size: 2rem;
  }

  form {
    padding: 20px;
  }
}
