* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Times, Helvetica, sans-serif;
  background: #f5f7fb;
  color: #1f2937;
}

.app {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 20px;
}

h1 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.subtitle {
  margin: 0 0 24px;
  color: #4b5563;
}

.search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.search-bar input {
  flex: 1;
  padding: 14px 16px;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  outline: none;
}

.search-bar input:focus {
  border-color: #111827;
}

.search-bar button {
  padding: 14px 18px;
  font-size: 1rem;
  border: none;
  border-radius: 12px;
  background: #111827;
  color: white;
  cursor: pointer;
}

.search-bar button:hover {
  opacity: 0.92;
}

.status {
  min-height: 24px;
  margin-bottom: 16px;
  color: #374151;
}

.result.hidden {
  display: none;
}

.image-card {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.image-card img {
  display: block;
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
  background: #e5e7eb;
}

.image-meta {
  padding: 16px 18px 20px;
}

.image-description {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 600;
}

.image-credit {
  margin: 0;
  color: #4b5563;
  line-height: 1.5;
}

.image-credit a {
  color: #111827;
  text-decoration: none;
}

.image-credit a:hover {
  text-decoration: underline;
}