:root {
  --ink: #111;
  --muted: #666;
  --line: #e6e6e6;
  --section: #f6f6f7;
  --radius: 12px;
  --pad: 14px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Segoe UI", Arial, sans-serif;
}

.list-wrap {
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.5;

  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 56px;
}

.list-wrap header {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 8px 0 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.list-wrap header h2 {
  font-size: 20px;
  margin: 0;
  letter-spacing: .02em;
}

.list-wrap header .note {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

/* Section */
.list-wrap .section {
  margin-top: 22px;
}

.list-wrap .section-title {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--section);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-weight: 700;
  margin: 0 0 12px;
}

.list-wrap .section-title small {
  font-weight: 600;
  color: var(--muted);
}

/* Desktop table (>= 900px) */
.list-wrap .table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.list-wrap .list-wrap .table thead th {
  text-align: left;
  font-size: 12px;
  color: var(--muted);
  padding: 12px 12px;
  background: var(--section);
  border-bottom: 1px solid var(--line);
  vertical-align: bottom;
  white-space: nowrap;
}

.list-wrap .table tbody td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 14px;
}

.list-wrap .table tbody tr:last-child td {
  border-bottom: 0;
}

.list-wrap .col-no {
  width: 56px;
}

.list-wrap .col-date {
  width: 88px;
  font-family: var(--mono);
}

.list-wrap .col-size {
  width: 170px;
  font-family: var(--mono);
}

.list-wrap .col-mat {
  width: 280px;
}

.list-wrap .ja {
  display: block;
}

.list-wrap .en {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

/* Mobile cards (< 900px) */
.list-wrap .cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.list-wrap .card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--pad);
  background: #fff;
}

.list-wrap .card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.list-wrap .badge {
  min-width: 40px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  padding: 0 10px;
  background: #fff;
  white-space: nowrap;
}

.list-wrap .meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.list-wrap .kv {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.list-wrap .k {
  font-size: 11px;
  color: var(--muted);
}

.list-wrap .v {
  font-size: 13px;
  word-break: break-word;
}

/* Responsive switching */
@media (max-width: 899px) {
  .list-wrap .table {
    display: none;
  }
}

@media (min-width: 900px) {
  .list-wrap .cards {
    display: none;
  }
}

/* Optional: nice spacing for long JP/EN */
.list-wrap .title .ja,
.list-wrap .artist .ja {
  font-weight: 700;
}

.list-wrap .title .en,
.list-wrap .artist .en {
  font-weight: 500;
}

/* Optional: anchor jump */
.list-wrap nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 0;
}

.list-wrap nav a {
  font-size: 12px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  background: #fff;
  padding: 6px 10px;
  border-radius: 999px;
}

.list-wrap nav a:hover {
  background: var(--section);
}

/* Print */
@media print {

  .list-wrap header,
  .list-wrap nav {
    display: none;
  }

  .list-wrap {
    max-width: none;
    padding: 0;
  }

  .list-wrap .cards {
    display: none !important;
  }

  .list-wrap .table {
    display: table !important;
  }

  .list-wrap .section-title {
    break-inside: avoid;
  }

  .list-wrap .table {
    break-inside: avoid;
  }
}