:root { --paper: #f8f6f1; --ink: #30362f; --soft: #6b7068; --sky: #4f6f86; --line: #e4e0d6; --serif: "Noto Serif KR", Georgia, serif; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
main { max-width: 1100px; margin: 0 auto; padding: 32px 20px 60px; }
h1 { font: 600 30px/1.3 var(--serif); margin: 8px 0 4px; }
.sub { color: var(--soft); margin: 0 0 28px; }
.films { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.film { all: unset; cursor: pointer; display: block; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 6px 18px rgba(0,0,0,.05); transition: transform .15s; }
.film:hover, .film:focus-visible { transform: translateY(-2px); outline: 2px solid var(--sky); outline-offset: 2px; }
.film .poster { position: relative; aspect-ratio: 16/9; background: #d9d6cd center/cover no-repeat; }
.film .poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.film .play { position: absolute; inset: 0; display: grid; place-items: center; }
.film .play span { width: 64px; height: 64px; border-radius: 50%; background: rgba(0,0,0,.45); display: grid; place-items: center; }
.film .play span::before { content: ""; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 5px; }
.film .meta { padding: 14px 16px 16px; }
.film b { font: 600 19px/1.35 var(--serif); display: block; }
.film small { color: var(--soft); }
.empty { color: var(--soft); padding: 40px 0; }
.player { position: fixed; inset: 0; background: #000; display: flex; flex-direction: column; z-index: 10; }
.player[hidden] { display: none; }
.player video { flex: 1; width: 100%; min-height: 0; background: #000; }
.player header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; color: #eee; }
.player header b { font: 600 17px var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player button, .btn { font: inherit; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 10px; padding: 9px 16px; cursor: pointer; }
.player button { background: #222; color: #fff; border-color: #444; }
.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card { max-width: 380px; margin: 12vh auto 0; background: #fff; border-radius: 16px; padding: 30px 26px; box-shadow: 0 6px 24px rgba(0,0,0,.07); }
.card h1 { font-size: 26px; }
.card input { width: 100%; font-size: 26px; letter-spacing: .3em; text-align: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; margin: 14px 0; }
.card .btn { width: 100%; background: var(--ink); color: #fff; border-color: var(--ink); padding: 12px; font-size: 17px; }
.msg { color: #a3402a; min-height: 1.5em; margin: 10px 0 0; }
