* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  max-width: 720px;
  margin: 0 auto;
  padding: 20px;
  background: #1a1a1e;
  color: #e4e4e7;
  min-height: 100vh;
}
h1 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.meta {
  font-size: 0.85rem;
  color: #71717a;
  margin-bottom: 20px;
}
.search-wrap {
  position: sticky;
  top: 0;
  background: #1a1a1e;
  padding-bottom: 12px;
  z-index: 1;
}
.search-wrap input {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  border: 1px solid #3f3f46;
  border-radius: 8px;
  background: #27272a;
  color: #e4e4e7;
  outline: none;
}
.search-wrap input::placeholder { color: #71717a; }
.search-wrap input:focus { border-color: #6366f1; }
.search-wrap form {
  display: flex;
  gap: 8px;
}
.search-wrap form input {
  flex: 1;
}
.search-btn {
  padding: 12px 20px;
  background: #6366f1;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}
.search-btn:hover { background: #4f46e5; }
.result-count {
  font-size: 0.9rem;
  color: #71717a;
  margin: 10px 0;
}
.card-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.card-list .card {
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
  background: #27272a;
  border: 1px solid #3f3f46;
}
.card-list .card a {
  display: block;
  padding: 16px 18px;
  color: #e4e4e7;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.45;
  transition: background 0.15s, border-color 0.15s;
}
.card-list .card a:hover {
  background: #2f2f33;
  border-color: #52525b;
}
.card-list .card .title {
  margin: 0;
  font-weight: 600;
}
.loading, .error, .empty {
  padding: 24px;
  text-align: center;
  color: #71717a;
}
.error { color: #f87171; }
.load-end {
  text-align: center;
  padding: 20px;
  color: #71717a;
  font-size: 0.9rem;
}
.sentinel {
  height: 50px;
  opacity: 0;
  pointer-events: none;
}
.disclaimer {
  margin: 30px 0;
  padding: 20px;
  background: #1f1f23;
  border: 1px solid #3f3f46;
  border-radius: 8px;
}
.disclaimer h3 {
  font-size: 1rem;
  color: #fbbf24;
  margin-bottom: 12px;
}
.disclaimer p {
  font-size: 0.85rem;
  color: #a1a1aa;
  line-height: 1.6;
  margin-bottom: 8px;
}
.disclaimer p:last-child { margin-bottom: 0; }
.site-footer {
  text-align: center;
  padding: 20px;
  color: #52525b;
  font-size: 0.8rem;
}
.site-footer p { margin: 4px 0; }
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal-box {
  width: 100%;
  max-width: 600px;
  background: #27272a;
  border: 1px solid #3f3f46;
  border-radius: 12px;
  padding: 24px;
  max-height: 90vh;
  overflow: auto;
}
.modal-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #f87171;
}
.modal-risk {
  font-size: 0.95rem;
  color: #a1a1aa;
  line-height: 1.5;
  margin-bottom: 16px;
}
.modal-ad {
  margin-bottom: 16px;
  border-radius: 8px;
  overflow: hidden;
  background: #1f1f23;
}
.modal-ad a { display: block; line-height: 0; }
.modal-ad img {
  width: 100%;
  height: auto;
  vertical-align: top;
}
.modal-article-title {
  font-size: 1.2rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: 8px;
  user-select: text;
  word-break: break-all;
  line-height: 1.4;
  width: 100%;
  display: block;
}
.modal-article-title-row {
  position: relative;
  margin-bottom: 12px;
  width: 100%;
  min-height: 50px;
}
.modal-article-title {
  width: 100%;
  font-size: 1.6rem;
  color: #fff;
  font-weight: 600;
  user-select: text;
  word-break: break-all;
  line-height: 1.4;
}
.modal-copy-btn {
  position: absolute;
  top: -14px;
  right: 0;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 3px;
  border: 1px solid #52525b;
  background: #27272a;
  color: #a1a1aa;
  cursor: pointer;
}
.modal-copy-btn:hover { background: #3f3f46; color: #e4e4e7; }
.modal-copy-btn {
  flex-shrink: 0;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #52525b;
  background: #27272a;
  color: #e4e4e7;
  cursor: pointer;
}
.modal-copy-btn:hover { background: #3f3f46; }
.modal-link-wrap {
  font-size: 0.85rem;
  color: #a1a1aa;
  margin-bottom: 16px;
}
.modal-link-wrap a { color: #6366f1; word-break: break-all; }
.modal-link-wrap a:hover { text-decoration: underline; }
.modal-search-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.modal-search-btn {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #3f3f46;
  background: #1f1f23;
  color: #e4e4e7;
  font-size: 0.8rem;
  cursor: pointer;
}
.modal-search-btn:hover { background: #3f3f46; }
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.modal-bottom-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.modal-bottom-btn {
  display: inline-block;
  padding: 8px 16px;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
  text-align: center;
}
.modal-bottom-btn:hover { opacity: 0.85; }
.modal-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
}
.modal-btn-cancel { background: #3f3f46; color: #e4e4e7; }
.modal-btn-cancel:hover { background: #52525b; }
.modal-btn-go { background: #6366f1; color: #fff; }
.modal-btn-go:hover { background: #4f46e5; }