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

body {
  font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f5f5f5;
  color: #1a1a1a;
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 500px;
  margin: 0 auto;
}

.feedback-card, .summary {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

h1 {
  font-size: 24px;
  text-align: center;
  flex: 1;
}

.view-saved-btn {
  padding: 8px 16px;
  background: #e5e5e5;
  color: #1a1a1a;
  border: 1px solid #d4d4d4;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.view-saved-btn:hover {
  background: #d4d4d4;
}

h2 {
  font-size: 20px;
  margin-bottom: 16px;
  text-align: center;
  color: #16a34a;
}

.section {
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: #666;
}

input[type="text"], textarea {
  width: 100%;
  background: #fafafa;
  border: 1px solid #d4d4d4;
  border-radius: 8px;
  padding: 12px;
  color: #1a1a1a;
  font-size: 14px;
  font-family: inherit;
}

input[type="text"]:focus, textarea:focus {
  outline: none;
  border-color: #999;
}

textarea {
  min-height: 80px;
  resize: vertical;
}

.stars {
  display: flex;
  gap: 4px;
  font-size: 32px;
  cursor: pointer;
}

.stars span {
  color: #e5e5e5;
  transition: color 0.2s;
  user-select: none;
}

.stars span.active {
  color: #fbbf24;
}

.stars span:hover {
  color: #fcd34d;
}

.slider-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

input[type="range"] {
  flex: 1;
  height: 6px;
  background: #e5e5e5;
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: #1a1a1a;
  border-radius: 50%;
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #1a1a1a;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.slider-value {
  min-width: 24px;
  text-align: center;
  font-weight: bold;
}

.recommend-options {
  display: flex;
  gap: 8px;
}

.recommend-btn {
  flex: 1;
  padding: 12px;
  background: #fafafa;
  border: 1px solid #d4d4d4;
  border-radius: 8px;
  color: #1a1a1a;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.recommend-btn:hover {
  background: #e5e5e5;
}

.recommend-btn.active {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.submit-btn, .reset-btn {
  width: 100%;
  padding: 14px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s;
}

.submit-btn:active, .reset-btn:active {
  transform: scale(0.98);
}

.reset-btn {
  background: #e5e5e5;
  color: #1a1a1a;
  margin-top: 16px;
}

#summaryContent {
  background: #fafafa;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.summary-item {
  margin-bottom: 12px;
  font-size: 14px;
}

.summary-item strong {
  color: #666;
  display: block;
  margin-bottom: 4px;
}

.saved-feedbacks {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#feedbackList {
  margin-bottom: 16px;
  max-height: 60vh;
  overflow-y: auto;
}

.saved-item {
  background: #fafafa;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
  border: 1px solid #e5e5e5;
}

.saved-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 6px;
  gap: 12px;
}

.saved-header strong {
  font-size: 16px;
}

.episode-name {
  color: #666;
  font-size: 14px;
  font-weight: normal;
}

.saved-meta {
  font-size: 13px;
  color: #737373;
}

.delete-btn {
  padding: 4px 12px;
  background: transparent;
  color: #f87171;
  border: 1px solid #f87171;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.delete-btn:hover {
  background: #f87171;
  color: #fff;
}

.no-feedback {
  text-align: center;
  color: #999;
  padding: 40px 20px;
}

@media (max-width: 600px) {
  body {
    padding: 12px;
  }

  .feedback-card, .summary, .saved-feedbacks {
    padding: 20px;
  }

  .recommend-options {
    flex-direction: column;
  }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  h1 {
    text-align: center;
  }

  .view-saved-btn {
    width: 100%;
  }
}