*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0b1020;
  color: #f7fafc;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem;
}

.page-header {
  background: radial-gradient(circle at top left, #2b6cb0, #171923);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-header h1 {
  margin: 0;
  font-size: 1.9rem;
}

.subtitle {
  margin: 0.3rem 0 0;
  color: #a0aec0;
  font-size: 0.95rem;
}

.controls {
  margin: 1.5rem 0 1rem;
}

.date-form {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.date-form label {
  font-weight: 500;
}

.date-form select {
  min-width: 220px;
  padding: 0.35rem 0.6rem;
  border-radius: 0.375rem;
  border: 1px solid #4a5568;
  background: #1a202c;
  color: #edf2f7;
}

.date-form button {
  padding: 0.35rem 0.9rem;
  border-radius: 0.375rem;
  border: none;
  background: #2b6cb0;
  color: #f7fafc;
  cursor: pointer;
}

.date-form button:hover {
  background: #2c5282;
}

.empty-state {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 0.5rem;
  background: rgba(45, 55, 72, 0.7);
  border: 1px dashed #4a5568;
}

.layout-main {
  display: block;
}

.photos-panel {
  padding: 1.25rem;
  border-radius: 0.75rem;
  background: linear-gradient(145deg, #111827, #171923);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

.weather-panel {
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  background: linear-gradient(145deg, #111827, #171923);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

.photos-panel h2,
.weather-panel h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.timestamp {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: #a0aec0;
}

.photo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.nav-buttons {
  display: inline-flex;
  gap: 0.5rem;
}

.nav-buttons button {
  padding: 0.35rem 0.65rem;
  border-radius: 0.375rem;
  border: 1px solid #4a5568;
  background: #1a202c;
  color: #e2e8f0;
  cursor: pointer;
  font-size: 0.85rem;
}

.nav-buttons button:hover:enabled {
  background: #2d3748;
}

.nav-buttons button:disabled {
  opacity: 0.5;
  cursor: default;
}

.photo-main figure,
.photo-secondary figure {
  margin: 0;
}

.photo-main img,
.photo-secondary img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 0.5rem;
  background: #000;
}

.photo-main figcaption,
.photo-secondary figcaption {
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: #a0aec0;
}

.layout-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}

@media (max-width: 900px) {
  .layout-bottom {
    grid-template-columns: minmax(0, 1fr);
  }
}

.weather-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.weather-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(75, 85, 99, 0.6);
  font-size: 0.92rem;
}

.weather-list li:last-child {
  border-bottom: none;
}

.label {
  color: #a0aec0;
}

.value {
  font-weight: 500;
  color: #e2e8f0;
}

.weather-meta {
  font-size: 0.8rem;
  color: #a0aec0;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 0.9em;
}

