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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", sans-serif;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(200, 220, 240, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(195, 218, 238, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 80%, rgba(220, 235, 248, 0.08) 0%, transparent 55%),
    linear-gradient(150deg, #edf1f6 0%, #f1f4f8 50%, #f6f8fa 100%);
  background-attachment: fixed;
  color: #333;
  line-height: 1.6;
  padding: 20px;
  max-width: 960px;
  margin: 0 auto;
}

header {
  margin-bottom: 24px;
}

h1 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

/* Raindrop.io フローティングボタン */

.raindrop-link {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s, transform 0.2s;
  z-index: 1000;
}

.raindrop-link:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
}

.stats {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.filter-btn {
  padding: 4px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.15s, color 0.15s;
}

.filter-btn:hover {
  background: #eee;
}

.filter-btn.active {
  background: #333;
  color: #fff;
  border-color: #333;
}

/* Cards */

.card {
  background: #fff;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 12px;
  border-left: 4px solid #ccc;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.15s;
}

.card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.card.priority-high {
  border-left-color: #e53e3e;
}

.card.priority-medium {
  border-left-color: #d69e2e;
}

.card.priority-low {
  border-left-color: #a0aec0;
  opacity: 0.85;
}

.card.drop-candidate {
  opacity: 0.6;
  border-left-style: dashed;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 6px;
}

.priority-badge {
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: bold;
  color: #fff;
}

.priority-badge.priority-high {
  background: #e53e3e;
}

.priority-badge.priority-medium {
  background: #d69e2e;
}

.priority-badge.priority-low {
  background: #a0aec0;
}

.drop-badge {
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: bold;
  background: #fed7d7;
  color: #c53030;
}

.card-title {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.card-title a {
  color: #1a202c;
  text-decoration: none;
}

.card-title a:hover {
  text-decoration: underline;
}

.summary {
  list-style: disc inside;
  font-size: 0.9rem;
  margin-bottom: 10px;
  padding-left: 4px;
}

.summary li {
  margin-bottom: 3px;
}

.summary code,
.reasons code {
  background: #f1f5f9;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.85em;
  font-family: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
  color: #d6336c;
}

/* Reasons toggle */

.reasons-toggle {
  margin-bottom: 10px;
}

.reasons-toggle summary {
  cursor: pointer;
  font-size: 0.82rem;
  color: #888;
  user-select: none;
}

.reasons-toggle summary:hover {
  color: #555;
}

.reasons {
  font-size: 0.82rem;
  margin-top: 6px;
  padding-left: 12px;
  border-left: 2px solid #e2e8f0;
}

.reason {
  margin-bottom: 3px;
}

.reason-label {
  font-weight: 600;
}

.reason.drop {
  color: #e53e3e;
}

.keywords {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.keyword {
  background: #edf2f7;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.75rem;
  color: #4a5568;
}

.card-footer {
  display: flex;
  gap: 12px;
  font-size: 0.75rem;
  color: #aaa;
}

/* Skipped section */

.skipped-section {
  margin-top: 32px;
}

.skipped-section summary {
  cursor: pointer;
  font-size: 1.1rem;
  color: #888;
  font-weight: 600;
  user-select: none;
}

.skipped-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.85rem;
}

.skipped-item a {
  color: #555;
  text-decoration: none;
}

.skipped-item a:hover {
  text-decoration: underline;
}

.badge {
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.7rem;
}

.badge.video {
  background: #fef3c7;
  color: #92400e;
}

.badge.skip-reason {
  background: #fee2e2;
  color: #991b1b;
}

.empty {
  text-align: center;
  color: #aaa;
  padding: 40px;
}

.filter-empty {
  text-align: center;
  color: #aaa;
  padding: 40px;
  display: none;
}

/* Footer */

footer {
  margin-top: 40px;
  padding: 16px 0;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-size: 0.85rem;
  color: #888;
}

footer a {
  color: #666;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive */

@media (max-width: 600px) {
  body {
    padding: 10px;
    font-size: 15px;
  }

  h1 {
    font-size: 1.3rem;
  }

  .stats {
    gap: 12px;
    font-size: 0.8rem;
  }

  .filters {
    flex-wrap: wrap;
    gap: 6px;
  }

  .filter-btn {
    padding: 6px 14px;
    font-size: 0.9rem;
  }

  .card {
    padding: 14px;
    margin-bottom: 10px;
  }

  .card-header {
    flex-wrap: wrap;
    gap: 6px;
  }

  .card-title {
    font-size: 1rem;
    line-height: 1.5;
  }

  .summary {
    font-size: 0.88rem;
    line-height: 1.7;
    padding-left: 2px;
  }

  .summary li {
    margin-bottom: 6px;
  }

  .keywords {
    gap: 5px;
  }

  .keyword {
    font-size: 0.78rem;
    padding: 3px 8px;
  }

  .reasons-toggle summary {
    font-size: 0.85rem;
    padding: 4px 0;
  }

  .reasons {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  .skipped-item {
    flex-wrap: wrap;
    gap: 4px;
  }

  footer {
    font-size: 0.8rem;
  }
}
