body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  margin: 0;
  background: #f7f7f8;
  color: #222;
}

.wrapper {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}

h1 {
  font-size: 19px;
}

.disclaimer {
  background: #fff8e6;
  border: 1px solid #f0d78c;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 12px;
  color: #6b5400;
}

form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

input[type="url"],
input[type="text"],
textarea {
  padding: 10px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  width: 100%;
}

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

button {
  padding: 10px 16px;
  font-size: 14px;
  align-self: flex-start;
}

#status-message {
  color: #555;
  font-size: 13px;
}

.hidden {
  display: none;
}

#result {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
}

.video-info h2 {
  font-size: 15px;
  margin-bottom: 4px;
}

.video-info p {
  font-size: 12px;
  color: #666;
  margin-top: 0;
}

.score-block {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 16px 0;
}

.score-number {
  font-size: 32px;
  font-weight: bold;
  color: #2d6cdf;
}

#result-criteria {
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.6;
}

.history-link {
  margin-top: 12px;
  font-size: 13px;
}

.history-link a {
  color: #2d6cdf;
}

/* 履歴ページ */

.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.tag-filter label {
  background: #eee;
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}

.tag-filter input[type="checkbox"] {
  margin-right: 4px;
}

.history-item {
  background: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 10px;
}

.history-item .history-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.history-item h3 {
  font-size: 14px;
  margin: 0;
}

.history-item .history-score {
  font-weight: bold;
  color: #2d6cdf;
  white-space: nowrap;
}

.history-item .history-date {
  font-size: 11px;
  color: #999;
}

.history-item .history-tags {
  margin-top: 6px;
}

.tag-badge {
  display: inline-block;
  background: #eef3fc;
  color: #2d6cdf;
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 11px;
  margin-right: 4px;
}

.tag-badge.auto-credible {
  background: #e8f7ec;
  color: #1a7f3c;
}

.history-item details {
  margin-top: 8px;
  font-size: 13px;
}

.history-item summary {
  cursor: pointer;
  color: #555;
  font-size: 12px;
}

#summarize-result {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
}
