/* Base reset */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 32px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  background: #0b1220; /* deep navy */
  color: #e6ecff;
}

/* Page title */
h1 {
  margin-bottom: 32px;
  font-size: 2.5rem;
  color: #f0f4ff;
}

/* Card container (each record) */
body > div {
  max-width: 600px;
  background: #111a2e;
  border: 1px solid #1e2a4a;
  border-radius: 12px;
  padding: 20px;
  margin: auto;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

form {
  width: 600px;
  display: flex;
  gap: 5px;
  align-items: center;
  color: #cbd6ff;
  background: #111a2e;
  border: 1px solid #1e2a4a;
  border-radius: 12px;
  padding: 20px;
  margin: auto;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);

  #search-icon {
    transform: rotateY(180deg);
    height: 20px;
  }

  input {
    background: transparent;
    flex: 1;
    outline: none;
    border: none;
    color: #cbd6ff;
    font-size: 1.1em;
  }
}

/* Header row: title left, image right */
body > div > .line {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Title */
h2 {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.2;
}

a {
  color: #7aa2ff;
  text-decoration: none;
}

h2 a:hover {
  text-decoration: underline;
  color: #9bb6ff;
}

/* Thumbnail image */
img {
  max-height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #2a3a66;
  background: #0b1220;
}

/* Description text */
p {
  margin: 12px 0 0;
  color: #cbd6ff;
  line-height: 1.5;
  font-size: 0.95rem;
}
