:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --border: #d8dee9;
  --text: #1a202c;
  --muted: #64748b;
  --accent: #2563eb;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #eef2ff 0%, var(--bg) 100%);
  min-height: 100vh;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

header {
  text-align: center;
  margin-bottom: 24px;
}

header h1 {
  margin: 0;
  font-size: clamp(2rem, 2.5vw, 3rem);
  letter-spacing: -0.04em;
}

header p {
  margin: 12px auto 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
}

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

thead th {
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 2;
  border-bottom: 2px solid var(--border);
  padding: 14px 12px;
  text-align: center;
  color: var(--text);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

tbody tr:nth-child(odd) {
  background: #fafbff;
}

tbody tr:hover {
  background: #eef2ff;
}

td {
  padding: 14px 12px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}

.cell-header {
  font-weight: 600;
  color: var(--text);
}

.image-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 88px;
  padding: 8px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid rgba(100, 116, 139, 0.12);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  text-decoration: none;
}

.image-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.18);
}

.image-link img {
  max-width: 160px;
  max-height: 160px;
  object-fit: contain;
  border-radius: 12px;
}

.image-caption {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text);
  text-align: center;
  line-height: 1.3;
}

.meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta strong {
  font-size: 0.95rem;
  color: var(--text);
}

.meta a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.88rem;
}

.meta a:hover {
  text-decoration: underline;
}

.status {
  color: var(--muted);
  font-size: 0.88rem;
}

.error {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

@media (max-width: 720px) {
  .image-link {
    min-height: 72px;
  }

  td,
  thead th {
    padding: 12px 10px;
  }
}
