* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; background: #FFFFFF; color: var(--ink); font-family: 'Noto Sans KR', system-ui, sans-serif; line-height: 1.6; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
header.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); }
header.top .bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0 28px; min-height: 64px; }
.logo { flex: none; font-family: var(--wm); font-weight: var(--wm-weight); font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; color: var(--accent); text-decoration: none; }
.menu-nav { flex: 1; min-width: 0; }
.cat { position: relative; display: inline-block; }
.cat summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 20px 0 18px; font-size: 15px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; }
.cat summary::-webkit-details-marker { display: none; }
.cat summary::after { content: ""; width: 7px; height: 7px; margin-top: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.cat summary:hover, .cat[open] summary { color: var(--ink); }
.cat[open] summary { border-bottom-color: var(--accent); }
.catlist { position: absolute; top: 100%; left: 0; z-index: 20; min-width: 240px; margin: 0; padding: 8px; list-style: none; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); }
.catlist a { display: flex; justify-content: space-between; gap: 16px; padding: 9px 12px; border-radius: 8px; font-size: 15px; text-decoration: none; color: var(--muted); }
.catlist a:hover { background: var(--paper); color: var(--ink); }
.catlist a[aria-current] { color: var(--accent); font-weight: 700; }
.catlist span { font-size: 13px; color: #8A877F; font-weight: 400; }
.catlist li.all { border-bottom: 1px solid var(--line); margin-bottom: 4px; padding-bottom: 4px; }
.search { flex: none; width: 40px; height: 40px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.search:hover { background: var(--paper); }
@media (max-width: 760px) {
  header.top .bar { gap: 0 12px; }
  .logo { font-size: 22px; }
  .cat { position: static; }
  .cat summary { padding: 20px 0 18px; }
  .catlist { left: 16px; right: 16px; min-width: 0; }
}
.ph { aspect-ratio: 16 / 10; border-radius: 12px; background: #EFEDE8; display: flex; align-items: center; justify-content: center; color: #6B6B6B; font-size: 14px; overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13px; color: #5C5C5C; }
.badge { padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--paper); color: var(--muted); border: 1px solid var(--line); }
.badge.rec { background: var(--bg); color: var(--fg); border-color: var(--bg); }
footer { background: var(--paper); border-top: 1px solid var(--line); }
footer .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: flex-start; font-size: 14px; color: #5C5C5C; }
footer b { color: var(--accent); font-size: 16px; }
footer p { margin: 4px 0 0; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }

table, .key, .tool, .tc, .vis { font-variant-numeric: tabular-nums; }
.ph.sq { aspect-ratio: 1 / 1; }
.ph.tall { aspect-ratio: 4 / 5; }
.ph.poster { aspect-ratio: 3 / 4; }
.tc { aspect-ratio: 16 / 10; border-radius: 10px; background: var(--bg); color: var(--fg); padding: 16px 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; overflow: hidden; }
.tc b { font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; }
.tc span { font-size: 13px; opacity: 0.85; }
.tc.big { border-radius: 16px; padding: 24px 28px; }
.tc.big b { font-size: clamp(30px, 4vw, 44px); }
.tc.big span { font-size: 15px; }
.key { margin: 0; font-size: 13px; font-weight: 500; color: var(--accent); }
.tool h2 { color: var(--accent); }
.tool .trows { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.tool .trows li { padding: 7px 0; border-top: 1px solid var(--line); }
.tool .trows li:first-child { border-top: 0; }
.tool .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tool .chips a { padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; text-decoration: none; }
.tool .chips a:hover { border-color: var(--accent); color: var(--accent); }
.tool .tnote { margin: 10px 0 0; font-size: 12px; color: #5C5C5C; line-height: 1.5; }
.tool .tgo { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--accent); text-decoration: none; }
.box.tool { background: var(--tint); border-color: transparent; }
