:root {
  --ink: #f7f4ee;
  --muted: #9a9a9f;
  --panel: #18181a;
  --panel-light: #202024;
  --line: #303034;
  --cyan: #25f4ee;
  --pink: #fe2c55;
  --yellow: #f3ef71;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px),
    #0c0c0d;
  background-size: 64px 64px;
  font-family: "DM Sans", sans-serif;
}

button, input {
  font: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(130px);
  opacity: .1;
  pointer-events: none;
}

.ambient-one {
  top: -220px;
  left: -120px;
  background: var(--cyan);
}

.ambient-two {
  right: -220px;
  bottom: -150px;
  background: var(--pink);
}

.site-header, footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 0;
}

.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 21px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #e5322d;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}

.status {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.status i, .found-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(37, 244, 238, .7);
}

main {
  width: min(940px, calc(100% - 40px));
  margin: 72px auto 0;
}

.hero {
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 24px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--yellow);
  background: rgba(243, 239, 113, .06);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(48px, 8vw, 86px);
  line-height: .98;
  letter-spacing: -.055em;
}

h1 span {
  color: transparent;
  background: linear-gradient(90deg, var(--cyan), #b6fff8 46%, #ffc2ce 54%, var(--pink));
  background-clip: text;
  -webkit-background-clip: text;
}

.intro {
  max-width: 590px;
  margin: 28px auto 38px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.search-card {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(24, 24, 26, .94);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .34);
  text-align: left;
}

.search-card::before {
  position: absolute;
  top: -1px;
  left: 13%;
  width: 28%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

label {
  display: block;
  margin-bottom: 10px;
  color: #d9d7d2;
  font-size: 13px;
  font-weight: 600;
}

.input-row {
  display: flex;
  gap: 10px;
}

.input-wrap {
  position: relative;
  flex: 1;
}

.input-wrap svg {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 21px;
  color: #6d6d72;
  transform: translateY(-50%);
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

input {
  width: 100%;
  height: 58px;
  padding: 0 18px 0 49px;
  border: 1px solid #39393e;
  outline: 0;
  border-radius: 11px;
  color: var(--ink);
  background: #101011;
  font-size: 17px;
  letter-spacing: .025em;
  transition: border-color .2s, box-shadow .2s;
}

input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(37, 244, 238, .1);
}

input::placeholder {
  color: #59595e;
}

.input-row > button {
  display: flex;
  min-width: 152px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 11px;
  color: #070708;
  background: var(--ink);
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s, background .2s;
}

.input-row > button:hover {
  background: var(--cyan);
  transform: translateY(-1px);
}

.input-row > button:disabled {
  cursor: wait;
  opacity: .65;
  transform: none;
}

.input-row > button svg {
  width: 18px;
}

.form-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 13px;
  color: #6f6f74;
  font-size: 12px;
}

.example {
  padding: 0;
  border: 0;
  color: #a6a6aa;
  background: none;
  cursor: pointer;
}

.example:hover {
  color: var(--cyan);
}

.privacy::before {
  margin-right: 6px;
  content: "•";
  color: var(--cyan);
}

.result-card {
  display: grid;
  max-width: 780px;
  min-height: 330px;
  grid-template-columns: 245px 1fr;
  gap: 0;
  margin: 24px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--panel);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
  text-align: left;
  animation: reveal .4s ease both;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(10px); }
}

.result-media {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  background: #111;
}

.result-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .62));
}

.result-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 50%;
  color: white;
  background: rgba(0, 0, 0, .35);
  backdrop-filter: blur(8px);
  transform: translate(-50%, -50%);
}

.play-icon svg {
  width: 24px;
  fill: currentColor;
  stroke: none;
}

.result-content {
  display: flex;
  flex-direction: column;
  padding: 29px;
}

.result-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.found-badge {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.result-id {
  overflow: hidden;
  color: #6d6d72;
  font-family: monospace;
  font-size: 11px;
  text-overflow: ellipsis;
}

.publish-date {
  display: flex;
  width: fit-content;
  gap: 9px;
  align-items: center;
  margin-top: 18px;
  padding: 8px 10px;
  border: 1px solid rgba(37, 244, 238, .18);
  border-radius: 999px;
  color: #bdbdc2;
  background: rgba(37, 244, 238, .055);
  font-size: 12px;
}

.publish-date span {
  color: #76767c;
}

.publish-date strong {
  color: var(--ink);
  font-weight: 700;
}

.result-content h2 {
  display: -webkit-box;
  margin: 16px 0 20px;
  overflow: hidden;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.creator {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: var(--panel-light);
  text-decoration: none;
}


.creator.disabled {
  cursor: default;
  opacity: .72;
  pointer-events: none;
}

.result-media:has(img:not([src])) {
  background:
    radial-gradient(circle at 35% 35%, rgba(37, 244, 238, .18), transparent 30%),
    radial-gradient(circle at 65% 65%, rgba(254, 44, 85, .18), transparent 30%),
    #111;
}

.result-media img:not([src]) {
  display: none;
}
.creator:hover {
  border-color: #4c4c51;
}

.avatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #080809;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.creator span:nth-child(2) {
  display: grid;
  min-width: 0;
  flex: 1;
}

.creator strong, .creator small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator strong {
  font-size: 14px;
}

.creator small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.creator > svg {
  width: 17px;
  color: #77777c;
}

.actions {
  display: flex;
  gap: 9px;
  margin-top: auto;
  padding-top: 20px;
}

.primary-link, .copy-button {
  display: flex;
  height: 45px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.primary-link {
  flex: 1;
  color: #080809;
  background: var(--ink);
  text-decoration: none;
}

.primary-link:hover {
  background: var(--cyan);
}

.primary-link svg, .copy-button svg {
  width: 17px;
}

.copy-button {
  padding: 0 15px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}

.copy-button:hover {
  border-color: #58585d;
}

.error-message {
  max-width: 780px;
  margin: 16px auto 0;
  padding: 14px 17px;
  border: 1px solid rgba(254, 44, 85, .35);
  border-radius: 11px;
  color: #ff9caf;
  background: rgba(254, 44, 85, .08);
  font-size: 14px;
  text-align: left;
}

.how-it-works {
  max-width: 780px;
  margin: 100px auto 80px;
}

.how-it-works > p {
  margin: 0 0 22px;
  color: #717176;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.how-it-works ol {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
}

.how-it-works li {
  display: grid;
  padding: 0 28px;
  border-left: 1px solid var(--line);
}

.how-it-works li:first-child {
  padding-left: 0;
  border-left: 0;
}

.how-it-works li span {
  margin-bottom: 26px;
  color: var(--pink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.how-it-works li:nth-child(2) span {
  color: var(--yellow);
}

.how-it-works li:nth-child(3) span {
  color: var(--cyan);
}

.how-it-works strong {
  margin-bottom: 8px;
  font-size: 15px;
}

.how-it-works small {
  color: #77777c;
  font-size: 13px;
  line-height: 1.5;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 25px 0 35px;
  border-top: 1px solid #222225;
  color: #5f5f63;
  font-size: 12px;
}

@media (max-width: 680px) {
  main {
    margin-top: 45px;
  }

  .status {
    display: none;
  }

  .input-row {
    display: grid;
  }

  .input-row > button {
    height: 54px;
  }

  .privacy {
    display: none;
  }

  .result-card {
    grid-template-columns: 1fr;
  }

  .result-media {
    height: 260px;
    min-height: 0;
  }

  .result-content {
    min-height: 335px;
    padding: 24px;
  }

  .how-it-works ol {
    gap: 30px;
    grid-template-columns: 1fr;
  }

  .how-it-works li, .how-it-works li:first-child {
    padding: 0 0 0 18px;
    border-left: 1px solid var(--line);
  }

  .how-it-works li span {
    margin-bottom: 8px;
  }

  footer {
    gap: 15px;
    flex-direction: column;
  }
}
