:root {
  --orange: #d13504;
  --orange-light: #ff5a1f;
  --orange-bright: #ff7a1a;
  --black: #050505;
  --black-soft: #111111;
  --white: #ffffff;
  --muted: #c7b7ad;
  --border: rgba(209, 53, 4, 0.32);
  --shadow: rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--white);
  background:
    radial-gradient(circle at top left, rgba(209, 53, 4, 0.38), transparent 34%),
    radial-gradient(circle at bottom right, rgba(209, 53, 4, 0.25), transparent 40%),
    linear-gradient(135deg, #050505 0%, #0b0503 42%, #d13504 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.28;
}

.shell {
  width: min(920px, calc(100% - 32px));
  min-height: calc(100vh - 120px);
  margin: 0 auto;
  padding-top: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero {
  width: 100%;
  padding: 46px 26px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(5, 5, 5, 0.90), rgba(17, 17, 17, 0.72)),
    linear-gradient(135deg, rgba(209, 53, 4, 0.18), transparent);
  box-shadow: 0 28px 90px var(--shadow);
  backdrop-filter: blur(14px);
  text-align: center;
  position: relative;
  z-index: 2;
}

.brand {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
}

.brand a {
  display: inline-block;
  color: var(--orange);
  text-decoration: none;
  font-size: clamp(64px, 15vw, 150px);
  font-weight: 950;
  letter-spacing: -0.08em;
  line-height: 0.9;
  text-transform: uppercase;
  background: none;
  text-shadow: none;
}

.brand a:hover {
  color: var(--orange-light);
  opacity: 0.9;
}

.subtitle {
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: clamp(15px, 3.5vw, 20px);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.search {
  width: min(720px, 100%);
  margin: 0 auto;
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(209, 53, 4, 0.38);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.42);
  position: relative;
  z-index: 3;
}

.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  border-radius: 14px;
  padding: 16px 16px;
  font-size: 16px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.search input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.search input:focus {
  box-shadow: 0 0 0 2px rgba(255, 122, 26, 0.35);
}

.search button {
  border: 0;
  border-radius: 14px;
  padding: 0 22px;
  cursor: pointer;
  color: #160500;
  background: linear-gradient(135deg, var(--orange-bright), var(--orange));
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 32px rgba(209, 53, 4, 0.35);
}

.search button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.status {
  width: 100%;
  margin: 20px auto 0;
  color: var(--white);
  text-align: center;
  font-size: 14px;
  position: relative;
  z-index: 2;
}

.status strong {
  color: var(--white);
}

.results {
  width: 100%;
  margin: 22px auto 60px;
  display: grid;
  gap: 14px;
  position: relative;
  z-index: 2;
}

.card {
  border: 1px solid rgba(209, 53, 4, 0.28);
  border-radius: 20px;
  padding: 18px;
  background: rgba(5, 5, 5, 0.78);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.card.exact {
  border-color: rgba(255, 122, 26, 0.72);
  box-shadow: 0 0 0 1px rgba(255, 122, 26, 0.26), 0 18px 50px rgba(0, 0, 0, 0.35);
}

.topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.term {
  color: var(--white);
  font-size: 34px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.reading {
  color: var(--orange-light);
  margin-top: 4px;
  font-size: 16px;
  font-weight: 650;
}

.badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.badge {
  font-size: 12px;
  border: 1px solid rgba(209, 53, 4, 0.32);
  color: #ffd6c2;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(209, 53, 4, 0.12);
}

.badge.exact-badge {
  background: rgba(255, 122, 26, 0.18);
  color: #ffffff;
  border-color: rgba(255, 122, 26, 0.50);
}

.defs {
  margin: 14px 0 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.defs li {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 12px;
  border-radius: 14px;
  color: #f1f1f1;
  line-height: 1.55;
  white-space: pre-wrap;
}

.meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.small-btn {
  border: 1px solid rgba(209, 53, 4, 0.34);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--white);
  background: rgba(209, 53, 4, 0.18);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.empty,
.loading {
  border: 1px dashed rgba(209, 53, 4, 0.38);
  border-radius: 18px;
  padding: 24px;
  color: var(--white);
  background: rgba(5, 5, 5, 0.48);
}

.footer {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 36px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.footer span {
  display: inline-block;
  color: var(--white);
  font-size: clamp(20px, 4.7vw, 40px);
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-transform: uppercase;
  background: none;
}

a {
  color: var(--orange-light);
}

[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 24px, 920px);
    padding-top: 38px;
    min-height: calc(100vh - 110px);
  }

  .hero {
    padding: 38px 18px;
    border-radius: 24px;
  }

  .brand a {
    font-size: clamp(72px, 20vw, 128px);
  }

  .search {
    flex-direction: column;
  }

  .search button {
    height: 52px;
  }

  .topline {
    display: block;
  }

  .badges {
    justify-content: flex-start;
    margin-top: 10px;
  }

  .term {
    font-size: 30px;
  }

  .footer {
    width: min(100% - 24px, 920px);
  }
  .meta {
  display: none !important;
  }
}
