:root {
  color-scheme: dark;
  --bg: #0b0d12;
  --surface: rgba(20, 23, 32, .78);
  --surface-2: rgba(29, 33, 45, .88);
  --line: rgba(255,255,255,.09);
  --text: #f6f7fb;
  --muted: #9ba3b4;
  --accent: #8ea1ff;
  --accent-2: #b28cff;
  --accent-soft: rgba(142,161,255,.11);
  --shadow: 0 18px 60px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, rgba(119,91,255,.16), transparent 30rem),
    radial-gradient(circle at 90% 20%, rgba(77,160,255,.10), transparent 34rem),
    linear-gradient(180deg, #090b10 0%, #0d1017 45%, #0a0c11 100%);
  color: var(--text);
  font-family: "Pretendard Variable", "Pretendard JP", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
button { font: inherit; }
:where(a,button):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.archive-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  min-height: 100vh;
  padding: 38px 0 72px;
}

.archive-back {
  display: inline-flex;
  margin: 8px 0 13px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}
.archive-back:hover { color: var(--text); }

.archive-hero {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(132,111,255,.14), rgba(59,102,176,.06)),
    rgba(16,19,27,.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.archive-hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -110px;
  top: -150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(178,140,255,.30), transparent 68%);
  pointer-events: none;
}
.archive-kicker {
  position: relative;
  z-index: 1;
  color: #aeb6ca;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}
.archive-hero h1 {
  position: relative;
  z-index: 1;
  margin: 13px 0 10px;
  max-width: 900px;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.archive-description {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}
.archive-summary {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.archive-summary span {
  padding: 7px 10px;
  border: 1px solid rgba(142,161,255,.18);
  border-radius: 999px;
  color: #d8dcff;
  background: rgba(142,161,255,.08);
  font-size: 10px;
  font-weight: 850;
}

.archive-nav {
  position: sticky;
  top: 10px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 20px 0 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(11,13,18,.82);
  box-shadow: 0 12px 38px rgba(0,0,0,.18);
  backdrop-filter: blur(18px);
}
.archive-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
  color: #aeb6c7;
  font-size: 10px;
  font-weight: 850;
  text-decoration: none;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.archive-nav a:hover,
.archive-nav a[aria-current="page"] {
  border-color: rgba(142,161,255,.28);
  background: var(--accent-soft);
  color: #fff;
}

.archive-content { padding: 34px 0 70px; }
.archive-section + .archive-section { margin-top: 46px; }
.archive-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 0 2px;
}
.archive-section-head h2 { margin: 0; font-size: 21px; letter-spacing: -.025em; }
.archive-section-head h2 a { color: inherit; text-decoration: none; }
.archive-section-head h2 a:hover { color: #fff; }
.archive-count { color: #7e889b; font-size: 10px; font-weight: 850; }
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.archive-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 14px;
  min-height: 146px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background:
    linear-gradient(145deg, rgba(142,161,255,.045), transparent 55%),
    rgba(17,20,29,.74);
  box-shadow: 0 12px 34px rgba(0,0,0,.14);
  backdrop-filter: blur(10px);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.archive-card:hover { transform: translateY(-2px); border-color: rgba(142,161,255,.24); background: linear-gradient(145deg, rgba(142,161,255,.075), transparent 55%), rgba(20,23,33,.82); }
.archive-poster {
  width: 94px;
  height: 126px;
  border-radius: 11px;
  overflow: hidden;
  background: #151b27;
  border: 1px solid rgba(255,255,255,.07);
}
.archive-poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .22s ease; }
.archive-card:hover .archive-poster img { transform: scale(1.025); }
.archive-poster-fallback { width: 100%; height: 100%; display: grid; place-items: center; color: #4c5669; font-size: 24px; font-weight: 900; }
.archive-card-body { min-width: 0; display: flex; flex-direction: column; padding: 2px 2px 2px 0; }
.archive-card-date { color: #b8c3ff; font-size: 10px; font-weight: 900; }
.archive-card h3 { margin: 7px 0 6px; font-size: 14px; line-height: 1.38; letter-spacing: -.015em; overflow-wrap: anywhere; }
.archive-card-title { text-decoration: none; }
.archive-card-title:hover { color: #fff; }
.archive-alt-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 0;
  color: #7f899b;
  font-size: 9px;
  line-height: 1.5;
}
.archive-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 8px; }
.archive-badge {
  padding: 4px 6px;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  color: #aab2c3;
  font-size: 8px;
  font-weight: 850;
}

.archive-empty { padding: 34px; border: 1px dashed var(--line); border-radius: 17px; background: rgba(255,255,255,.02); color: var(--muted); text-align: center; font-size: 12px; }

@media (max-width: 920px) {
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .archive-shell { width: min(100% - 22px, 680px); padding: 18px 0 52px; }
  .archive-hero { padding: 22px; border-radius: 22px; }
  .archive-hero h1 { font-size: clamp(29px, 10vw, 46px); }
  .archive-description { font-size: 12px; }
  .archive-nav { top: 6px; margin-top: 14px; padding: 8px; border-radius: 16px; gap: 5px; }
  .archive-nav a { min-height: 31px; padding: 0 9px; font-size: 9px; }
  .archive-content { padding-top: 28px; }
  .archive-section + .archive-section { margin-top: 38px; }
  .archive-grid { grid-template-columns: 1fr; }
  .archive-card { grid-template-columns: 82px minmax(0, 1fr); min-height: 128px; border-radius: 15px; }
  .archive-poster { width: 82px; height: 108px; border-radius: 9px; }
  .archive-card h3 { font-size: 13px; }
}


