:root {
  --paper: #f7f4ed;
  --paper-2: #fffdf8;
  --ink: #23211d;
  --muted: #777064;
  --line: #ded8cc;
  --accent: #5a4632;
  --accent-2: #9f8061;
  --shadow: 0 18px 50px rgba(50, 42, 32, .10);
  --radius: 22px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Pretendard, "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.site-header { height: 76px; display: flex; align-items: center; border-bottom: 1px solid rgba(90,70,50,.12); position: sticky; top: 0; background: rgba(247,244,237,.92); backdrop-filter: blur(14px); z-index: 30; }
.site-header .brand { width: min(1120px, calc(100% - 32px)); margin: auto; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: white; font-family: Georgia, serif; font-size: 21px; }
.brand b { display: block; letter-spacing: -.03em; }
.brand small { display: block; color: var(--muted); margin-top: 2px; }
.hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 42px; padding-block: 56px 38px; align-items: center; }
.hero-copy h1 { margin: 10px 0 12px; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(34px, 5vw, 62px); line-height: 1.05; letter-spacing: -.045em; }
.eyebrow { margin: 0; font-size: 13px; letter-spacing: .12em; font-weight: 800; color: var(--accent-2); text-transform: uppercase; }
.meta { color: var(--muted); margin: 5px 0; line-height: 1.6; }
.primary-button, .secondary-button { border: 0; border-radius: 999px; padding: 13px 19px; font-weight: 800; }
.primary-button { background: var(--accent); color: white; margin-top: 22px; }
.secondary-button { background: #eee8dd; color: var(--ink); }
.hero-poster { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 30px; background: #ded7cb center / cover no-repeat; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.hero-poster::after { content: "▶"; position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%); width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.88); color: var(--accent); box-shadow: 0 10px 35px rgba(0,0,0,.18); }
.library { padding-block: 38px 80px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.section-head h2 { margin: 6px 0 0; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.04em; }
.search-wrap input { width: min(320px, 65vw); border: 1px solid var(--line); background: var(--paper-2); border-radius: 999px; padding: 12px 16px; outline: none; }
.search-wrap input:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(159,128,97,.12); }
.filters { display: flex; gap: 8px; margin: 18px 0 24px; }
.filter { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 9px 15px; color: var(--muted); font-weight: 700; }
.filter.active { background: var(--ink); border-color: var(--ink); color: white; }
.status { color: var(--muted); padding: 26px 0; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 20px; }
.card { min-width: 0; }
.poster-button { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: 18px; overflow: hidden; background: #ded7cb; position: relative; box-shadow: 0 8px 20px rgba(54,45,35,.07); }
.poster-button img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.poster-button:hover img { transform: scale(1.02); }
.poster-button::after { content: "▶"; position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--accent); font-size: 13px; }
.card-body { padding: 12px 4px 0; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 8px; background: #ece4d8; color: var(--accent); font-size: 11px; font-weight: 800; margin-bottom: 7px; }
.card h3 { margin: 0; font-size: 17px; line-height: 1.38; letter-spacing: -.025em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { font-size: 13px; }
.card-actions { display: flex; gap: 6px; margin-top: 9px; }
.link-button { border: 0; background: transparent; color: var(--accent-2); font-size: 12px; font-weight: 800; padding: 0; }
.site-footer { border-top: 1px solid var(--line); padding-block: 24px 40px; color: var(--muted); display: flex; justify-content: space-between; gap: 18px; font-size: 13px; }
.player-dialog { width: min(920px, calc(100% - 24px)); border: 0; padding: 0; border-radius: 24px; background: var(--paper-2); box-shadow: 0 30px 90px rgba(0,0,0,.28); overflow: hidden; }
.player-dialog::backdrop { background: rgba(20,18,15,.72); backdrop-filter: blur(4px); }
.dialog-bar { padding: 18px 18px 14px 22px; display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.dialog-bar h3 { margin: 0; font-size: 20px; }
.icon-button { border: 0; width: 40px; height: 40px; border-radius: 50%; background: #eee9df; }
.video-stage { background: #000; }
.video-stage video { width: 100%; max-height: 72vh; display: block; background: #000; }
.dialog-actions { padding: 14px 18px 18px; display: flex; justify-content: flex-end; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 42px 20px; color: var(--muted); text-align: center; grid-column: 1 / -1; }
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; padding-top: 34px; gap: 24px; }
  .hero-poster { order: -1; border-radius: 22px; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head { align-items: stretch; flex-direction: column; }
  .search-wrap input { width: 100%; }
}
@media (max-width: 520px) {
  .shell, .site-header .brand { width: min(100% - 22px, 1120px); }
  .site-header { height: 66px; }
  .hero { padding-top: 22px; }
  .hero-copy h1 { font-size: 38px; }
  .video-grid { grid-template-columns: 1fr; gap: 24px; }
  .poster-button { border-radius: 16px; }
  .site-footer { flex-direction: column; }
  .dialog-bar h3 { font-size: 17px; }
}
