*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --bg: #f7f3ee;
  --panel: #ffffff;
  --ink: #1d1b1a;
  --muted: #6e665f;
  --accent: #ff7a00;
  --accent-deep: #e25c00;
  --outline: #1d1b1a;
  --shadow: 0 24px 60px rgba(29, 27, 26, 0.18);
}

body {
  margin: 0;
  font-family: "Noto Sans SC", "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 10% 20%, #fff6e9 0%, var(--bg) 48%, #f3efe9 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.scene {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.orbit {
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px dashed rgba(29, 27, 26, 0.2);
  border-radius: 50%;
  top: -120px;
  right: -80px;
  animation: spin 18s linear infinite;
}

.orbit-two {
  width: 320px;
  height: 320px;
  top: 60%;
  left: -120px;
  animation-duration: 24s;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.hero {
  margin-bottom: 32px;
}

.eyebrow {
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: var(--muted);
}

h1 {
  font-size: clamp(32px, 5vw, 54px);
  margin: 0 0 12px;
  line-height: 1.05;
}

.sub {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.panel {
  background: var(--panel);
  border: 2px solid var(--outline);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}

.dropzone {
  position: relative;
  border: 2px dashed rgba(29, 27, 26, 0.35);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
  background: #fff9f0;
}

.dropzone.drag {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.drop-content {
  display: grid;
  gap: 8px;
}

.icon {
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
}

.title {
  margin: 0;
  font-size: 18px;
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

button {
  border: 2px solid var(--outline);
  border-radius: 999px;
  padding: 10px 24px;
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent-deep);
  box-shadow: 0 10px 30px rgba(255, 122, 0, 0.25);
}

.ghost {
  background: transparent;
}

button:not(:disabled):hover {
  transform: translateY(-1px);
}

.status {
  margin-top: 16px;
  color: var(--muted);
  min-height: 24px;
}

.results {
  border: 2px solid var(--outline);
  border-radius: 22px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.9);
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

h2 {
  margin: 0;
  font-size: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: #fff;
  font-size: 14px;
}

.list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 12px;
}

.item {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(29, 27, 26, 0.2);
  border-radius: 14px;
  background: #fff;
}

.item a {
  color: var(--ink);
  text-decoration: none;
  word-break: break-all;
}

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

.meta {
  color: var(--muted);
  font-size: 13px;
}

.item-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mini {
  padding: 6px 14px;
  font-size: 14px;
  border-radius: 12px;
}

.danger {
  background: #fff3ee;
  border-color: #e05a3b;
  color: #a63b24;
}

.foot {
  text-align: center;
  padding: 12px 24px 32px;
  color: var(--muted);
  font-size: 13px;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 700px) {
  .wrap {
    padding-top: 40px;
  }

  .panel,
  .results {
    padding: 18px;
  }

  .actions {
    flex-direction: column;
  }
}
