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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f5f7fa;
  color: #333;
  min-height: 100vh;
  padding: 16px;
}

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

h1 {
  font-size: 1.4rem;
  color: #2c3e50;
  margin-bottom: 4px;
  text-align: center;
}

.subtitle {
  text-align: center;
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

h2 {
  font-size: 1rem;
  color: #444;
  margin-bottom: 14px;
  border-left: 3px solid #4a90d9;
  padding-left: 8px;
}

.form-group {
  margin-bottom: 12px;
  flex: 1;
}

.form-row {
  display: flex;
  gap: 12px;
}

label {
  display: block;
  font-size: 0.82rem;
  color: #666;
  margin-bottom: 4px;
  font-weight: 500;
}

input[type="text"],
input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  background: #fafafa;
  transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="number"]:focus {
  outline: none;
  border-color: #4a90d9;
  background: #fff;
}

.btn-check {
  width: 100%;
  padding: 14px;
  background: #4a90d9;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.2s;
}

.btn-check:hover {
  background: #357abd;
}

/* Result Section */
.result-section {
  margin-bottom: 16px;
}

.result-card {
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.result-card.recommend {
  background: #e8f5e9;
  border: 2px solid #4caf50;
}

.result-card.skip {
  background: #fce4ec;
  border: 2px solid #e91e63;
}

.result-verdict {
  font-size: 1.3rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 12px;
}

.result-card.recommend .result-verdict {
  color: #2e7d32;
}

.result-card.skip .result-verdict {
  color: #c62828;
}

.result-details {
  background: rgba(255,255,255,0.6);
  border-radius: 8px;
  padding: 12px;
}

.result-details table {
  width: 100%;
  border-collapse: collapse;
}

.result-details td {
  padding: 5px 4px;
  font-size: 0.9rem;
  color: #444;
}

.result-details td:first-child {
  color: #666;
  width: 60%;
}

.result-details td:last-child {
  font-weight: bold;
  text-align: right;
  color: #222;
}

.result-actions {
  margin-top: 12px;
  text-align: center;
}

.btn-save {
  padding: 10px 24px;
  background: #fff;
  border: 2px solid #4a90d9;
  color: #4a90d9;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-save:hover {
  background: #4a90d9;
  color: #fff;
}

/* Saved List */
.saved-list {
  min-height: 40px;
}

.empty-msg {
  color: #aaa;
  font-size: 0.9rem;
  text-align: center;
  padding: 10px 0;
}

.saved-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.saved-item.recommend {
  background: #e8f5e9;
  border-left: 4px solid #4caf50;
}

.saved-item.skip {
  background: #fce4ec;
  border-left: 4px solid #e91e63;
}

.saved-item-name {
  font-weight: bold;
  color: #333;
}

.saved-item-verdict {
  font-size: 0.8rem;
  font-weight: bold;
}

.saved-item.recommend .saved-item-verdict {
  color: #2e7d32;
}

.saved-item.skip .saved-item-verdict {
  color: #c62828;
}

.saved-item-meta {
  font-size: 0.78rem;
  color: #777;
  margin-top: 2px;
}

.saved-item-info {
  flex: 1;
}

.btn-delete {
  background: none;
  border: none;
  color: #bbb;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s;
}

.btn-delete:hover {
  color: #e74c3c;
}

.btn-clear {
  width: 100%;
  padding: 10px;
  background: #fff;
  border: 1px solid #ddd;
  color: #999;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.2s;
}

.btn-clear:hover {
  border-color: #e74c3c;
  color: #e74c3c;
}

.hidden {
  display: none;
}

@media (max-width: 480px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  h1 {
    font-size: 1.2rem;
  }

  .result-verdict {
    font-size: 1.1rem;
  }
}
