:root {
  --bg: #07111f;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-solid: #111827;
  --panel-soft: rgba(30, 41, 59, 0.72);
  --border: rgba(148, 163, 184, 0.22);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #34d399;
  --warning: #facc15;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif !important;
  background:
    radial-gradient(circle at 18% 12%, rgba(56, 189, 248, 0.2), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(52, 211, 153, 0.16), transparent 28%),
    linear-gradient(145deg, #07111f 0%, #111827 52%, #0f172a 100%);
  color: var(--text);
}

.page-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0;
}

.hero-panel,
.results-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel {
  min-height: 280px;
  padding: clamp(24px, 5vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.intro {
  max-width: 62ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.search-panel {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.42);
}

.search-panel i {
  color: var(--accent);
}

.search-panel input[type="search"] {
  height: 56px;
  margin: 0;
  border: 0;
  color: var(--text);
  font: inherit;
  font-weight: 700;
}

.search-panel input[type="search"]::placeholder {
  color: var(--muted);
}

.search-panel input[type="search"]:focus {
  border: 0 !important;
  box-shadow: none !important;
}

.results-panel {
  margin-top: 24px;
  padding: 16px 10px 0;
}

#container {
  margin-bottom: 0;
}

#container .col {
  margin-bottom: 16px;
}

#container .col .card {
  min-height: 520px !important;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.92);
  color: var(--text);
  box-shadow: none;
}

.card .card-image {
  background: var(--panel-soft);
}

.card-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.card > .card-content {
  min-height: 172px;
  flex: 1;
  color: var(--text);
}

.card .card-title,
.card .card-content .card-title,
.card-reveal .card-title {
  color: var(--text) !important;
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 800;
}

.card-content .material-icons.amber-text {
  color: var(--warning) !important;
}

.btn-floating.halfway-fab {
  top: 25px;
  background: var(--accent) !important;
  box-shadow: 0 14px 30px rgba(56, 189, 248, 0.24);
}

.card-reveal {
  background: var(--panel-solid) !important;
  color: var(--muted) !important;
  text-align: left;
  line-height: 1.65;
}

.card > .card-reveal > .card-title {
  margin-bottom: 32px;
  width: calc(100% - 65px);
}

.card > .card-reveal > .card-title > a {
  margin-top: -3px;
}

.card-reveal b {
  color: var(--text);
}

hr {
  height: 1px;
  border: none;
  background: var(--border);
}

ul > li img,
.card-reveal > ul > li img {
  width: 100%;
  border-radius: 8px;
}

.card-reveal > ul {
  margin: 16px 0;
}

.card-reveal > ul > li {
  padding-bottom: 20px !important;
}

.card-reveal > ul > li > span {
  color: var(--muted);
  font-size: 0.78rem;
}

.card .card-action {
  min-height: 58px;
  border-top: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.2);
}

.card .card-action a {
  color: var(--accent-2) !important;
  font-weight: 800;
}

.customChip {
  height: 24px;
  line-height: 24px;
  margin-bottom: 0;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.18) !important;
  color: var(--text) !important;
  font-weight: 800;
}

#ajaxLoading {
  width: min(320px, 80%);
  margin: 140px auto;
  background: rgba(148, 163, 184, 0.22);
}

#ajaxLoading .indeterminate {
  background: var(--accent);
}

@media all and (max-width: 900px) {
  .hero-panel {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media all and (max-width: 600px) {
  .page-shell {
    width: min(100% - 20px, 1280px);
    padding: 20px 0;
  }

  .hero-panel {
    padding: 22px;
  }

  .results-panel {
    padding: 10px 4px 0;
  }

  .card-image img {
    height: 220px;
  }
}
