@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #0b0b12;
  --panel: rgba(25, 24, 37, .76);
  --panel-border: rgba(255,255,255,.09);
  --text: #f7f6ff;
  --muted: #aaa7ba;
  --purple: #7667ff;
  --purple-2: #a58cff;
  --success: #72e6b1;
  --danger: #ff7c93;
  --shadow: 0 24px 80px rgba(0,0,0,.38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(103,81,255,.14), transparent 32rem),
    radial-gradient(circle at 90% 30%, rgba(180,95,255,.10), transparent 30rem),
    var(--bg);
  font-family: Inter, "Noto Sans SC", system-ui, sans-serif;
  overflow-x: hidden;
}
button, input { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1100px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 50px; position: relative; z-index: 1; }

.orb { position: fixed; border-radius: 50%; filter: blur(80px); pointer-events: none; opacity: .22; }
.orb-a { width: 320px; height: 320px; background: #6a4cff; left: -160px; top: 30%; }
.orb-b { width: 260px; height: 260px; background: #ce5cff; right: -120px; top: 56%; }

.hero { padding: 10px 4px 34px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.brand-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg, var(--purple), #b267ff); box-shadow: 0 8px 24px rgba(118,103,255,.35); }
.badge { float: right; padding: 8px 12px; color: #c8c2ff; border: 1px solid rgba(142,126,255,.28); border-radius: 999px; background: rgba(118,103,255,.08); font-size: 12px; }

.hero-copy { margin-top: 64px; max-width: 760px; }
.eyebrow { margin: 0 0 12px; color: #9890ff; font-size: 12px; letter-spacing: .18em; font-weight: 800; }
h1 { margin: 0; font-size: clamp(48px, 8vw, 90px); line-height: .98; letter-spacing: -.065em; }
h1 span { color: transparent; background: linear-gradient(90deg, #8e7fff, #d59aff); background-clip: text; -webkit-background-clip: text; }
.subtitle { color: var(--muted); font-size: 17px; line-height: 1.8; max-width: 620px; margin: 26px 0 0; }

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 26px;
  padding: 28px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.form label { display: block; font-size: 14px; color: #d8d5e3; margin-bottom: 10px; font-weight: 600; }
.input-wrap { display: flex; align-items: center; gap: 11px; border: 1px solid rgba(255,255,255,.11); background: rgba(7,7,13,.62); border-radius: 15px; padding: 5px 6px 5px 15px; transition: .2s; }
.input-wrap:focus-within { border-color: rgba(131,113,255,.75); box-shadow: 0 0 0 4px rgba(118,103,255,.12); }
.input-wrap svg { width: 21px; fill: none; stroke: #8e899f; stroke-width: 1.8; }
.input-wrap input { min-width: 0; flex: 1; color: white; background: transparent; border: 0; outline: 0; padding: 14px 0; }
.input-wrap input::placeholder { color: #696577; }
.ghost-btn { border: 0; background: rgba(255,255,255,.06); color: #c6c1d2; border-radius: 10px; padding: 10px 14px; }

.primary-btn {
  width: 100%; margin-top: 15px; border: 0; border-radius: 15px; padding: 16px 18px;
  color: white; font-weight: 800; background: linear-gradient(120deg, #6f60fb, #985cff);
  box-shadow: 0 14px 35px rgba(112,78,255,.25); display: flex; justify-content: center; align-items: center; gap: 10px;
  transition: transform .2s, filter .2s;
}
.primary-btn:hover { transform: translateY(-1px); filter: brightness(1.07); }
.primary-btn:disabled { cursor: wait; opacity: .7; transform: none; }
.primary-btn svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2.3; }
.spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.35); border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }
.primary-btn.loading .spinner { display: inline-block; }
.primary-btn.loading svg { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.tips div { color: #918d9e; font-size: 13px; padding: 13px; border-radius: 13px; background: rgba(255,255,255,.025); }
.tips span { display: inline-grid; place-items: center; width: 23px; height: 23px; margin-right: 7px; border-radius: 8px; color: #b6adff; background: rgba(118,103,255,.13); font-weight: 700; }

.status { margin: 18px 0; border-radius: 14px; padding: 14px 17px; font-size: 14px; }
.status.success { color: var(--success); background: rgba(70,216,151,.08); border: 1px solid rgba(70,216,151,.2); }
.status.error { color: #ff9aae; background: rgba(255,80,112,.08); border: 1px solid rgba(255,80,112,.2); }
.hidden { display: none !important; }

.results { margin-top: 46px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
h2 { margin: 0; font-size: 30px; letter-spacing: -.04em; }
.secondary-btn { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: white; border-radius: 12px; padding: 11px 16px; }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.media-card { overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; background: rgba(22,21,31,.8); box-shadow: 0 12px 36px rgba(0,0,0,.18); }
.media-preview { position: relative; aspect-ratio: 1; background: #12111a; overflow: hidden; }
.media-preview img, .media-preview video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.media-card:hover img { transform: scale(1.025); }
.media-type { position: absolute; top: 11px; left: 11px; padding: 6px 9px; border-radius: 999px; background: rgba(10,10,16,.72); backdrop-filter: blur(8px); font-size: 11px; font-weight: 700; }
.media-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; }
.media-name { color: #aaa5b6; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-actions > div { display: flex; gap: 7px; }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; text-decoration: none; color: white; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; background: rgba(255,255,255,.05); }
.icon-btn:hover { background: rgba(118,103,255,.18); border-color: rgba(118,103,255,.35); }

footer { text-align: center; padding: 38px 15px 0; color: #656171; font-size: 12px; line-height: 1.7; }

@media (max-width: 760px) {
  .shell { width: min(100% - 22px, 1100px); padding-top: 18px; }
  .hero-copy { margin-top: 48px; }
  .panel { padding: 18px; border-radius: 20px; }
  .tips { grid-template-columns: 1fr; gap: 7px; }
  .result-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .badge { display: none; }
  .result-grid { grid-template-columns: 1fr; }
  h1 { font-size: 54px; }
}
