:root {
  --bg: #0f1014; --bg2: #15161c; --card: #1a1c23; --line: #2a2d36;
  --txt: #ededef; --sub: #9a9ba3; --red: #e8452c; --gold: #ffd166; --ok: #2eb872; --warn: #e0b300;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--txt); font-family: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; min-height: 100vh; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; border-radius: 10px; padding: 10px 16px; font-size: 14px; font-weight: 700; background: var(--red); color: #fff; font-family: inherit; }
button.ghost { background: transparent; border: 1px solid var(--line); color: var(--txt); }
button.gold { background: var(--gold); color: #1a1a1a; }
button.ok { background: var(--ok); }
button.small { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
button:disabled { opacity: .45; cursor: default; }
input, textarea, select { width: 100%; background: #0b0c10; border: 1px solid var(--line); border-radius: 10px; color: var(--txt); padding: 10px 12px; font-size: 14px; font-family: inherit; }
input[type=checkbox] { width: auto; accent-color: var(--red); }
input[type=file] { padding: 8px; }
textarea { resize: vertical; min-height: 84px; }
label { display: block; font-size: 12px; color: var(--sub); margin: 12px 0 5px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px 80px; }
header.top { position: sticky; top: 0; z-index: 20; background: rgba(15,16,20,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.top .in { max-width: 1120px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 14px; }
.logo { font-weight: 900; font-size: 20px; letter-spacing: -.5px; }
.logo b { color: var(--red); }
.logo small { font-size: 11px; color: var(--sub); font-weight: 400; margin-left: 8px; }
nav.main { display: flex; gap: 4px; margin-left: 8px; }
nav.main a { padding: 7px 11px; border-radius: 8px; font-size: 13.5px; color: var(--sub); }
nav.main a.on, nav.main a:hover { color: var(--txt); background: var(--card); }
.spacer { flex: 1; }
.who { font-size: 12px; color: var(--sub); display: flex; align-items: center; gap: 8px; }
.who img { width: 26px; height: 26px; border-radius: 50%; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.muted { color: var(--sub); font-size: 12.5px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; white-space: nowrap; vertical-align: middle; }
.badge.free { background: rgba(46,184,114,.15); color: var(--ok); }
.badge.paid { background: rgba(255,209,102,.15); color: var(--gold); }
.badge.rate { background: rgba(255,255,255,.08); color: var(--txt); }
.badge.ai { background: rgba(232,69,44,.15); color: var(--red); }
.badge.pending { background: rgba(224,179,0,.15); color: var(--warn); }
.badge.approved { background: rgba(46,184,114,.15); color: var(--ok); }
.badge.rejected { background: rgba(232,69,44,.15); color: var(--red); }
.badge.draft, .badge.uploading { background: rgba(255,255,255,.08); color: var(--sub); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; }
.tcard { display: block; }
.tcard .poster { aspect-ratio: 2/3; border-radius: 12px; background: linear-gradient(160deg, #22242c, #15161c); overflow: hidden; border: 1px solid var(--line); position: relative; }
.tcard .poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tcard .poster .rt { position: absolute; top: 8px; left: 8px; }
.tcard .poster .ph { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 12px; font-weight: 800; font-size: 15px; color: #6b6e78; line-height: 1.25; }
.tcard .name { font-weight: 700; font-size: 14px; margin-top: 8px; line-height: 1.3; }
.tcard .meta { font-size: 11.5px; color: var(--sub); margin-top: 2px; }
.hero { display: grid; grid-template-columns: 220px 1fr; gap: 24px; margin-top: 24px; }
.hero .poster { aspect-ratio: 2/3; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.hero .poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
h1.title { font-size: 26px; letter-spacing: -.5px; line-height: 1.25; margin: 4px 0 8px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 12px; }
.synopsis { color: #cfd0d5; font-size: 14.5px; max-width: 70ch; white-space: pre-wrap; }
.eplist { margin-top: 24px; display: grid; gap: 8px; }
.ep { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.ep:hover { background: #20222b; }
.ep .no { width: 44px; font-weight: 900; color: var(--gold); font-size: 15px; }
.ep .nm { flex: 1; font-size: 14px; }
.ep .dur { color: var(--sub); font-size: 12px; }
.player-wrap { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 24px; margin-top: 20px; align-items: start; }
.stage { background: #000; border-radius: 16px; overflow: hidden; aspect-ratio: 9/16; height: min(82vh, 711px); position: relative; border: 1px solid var(--line); margin: 0 auto; max-width: 100%; }
.stage video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.stage .lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; background: rgba(10,10,12,.86); }
.stage .lock h3 { font-size: 18px; }
.rail { display: flex; gap: 8px; margin-top: 10px; }
.rail button { flex: 1; }
.note { background: var(--bg2); border-left: 3px solid var(--gold); padding: 10px 14px; border-radius: 0 10px 10px 0; font-size: 13px; color: #cfd0d5; }
.center { max-width: 420px; margin: 12vh auto; text-align: center; }
.center h2 { font-size: 22px; margin-bottom: 8px; }
.gbtn { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #1f1f1f; border-radius: 10px; padding: 10px 16px; font-weight: 700; }
#toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: #23252e; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13px; opacity: 0; transition: .25s; pointer-events: none; z-index: 99; border: 1px solid var(--line); }
#toast.on { opacity: 1; }
footer.site { margin-top: 60px; border-top: 1px solid var(--line); padding: 24px 0; color: var(--sub); font-size: 12px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.section-title { font-size: 17px; font-weight: 800; margin: 28px 0 12px; display: flex; align-items: center; gap: 10px; }
.section-title small { color: var(--sub); font-weight: 400; font-size: 12px; }
.cta { background: linear-gradient(135deg, #2a1a18, #1a1c23); border: 1px solid #3a2a28; }
.row { display: flex; gap: 12px; } .row > * { flex: 1; }
.progress { height: 8px; background: #0b0c10; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.progress i { display: block; height: 100%; background: var(--gold); width: 0; transition: width .2s; }
table.list { width: 100%; border-collapse: collapse; font-size: 13px; }
table.list th { text-align: left; color: var(--sub); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--line); font-size: 12px; }
table.list td { padding: 10px 8px; border-bottom: 1px solid #22242c; vertical-align: middle; }
@media (max-width: 760px) {
  .hero { grid-template-columns: 120px 1fr; gap: 14px; }
  h1.title { font-size: 20px; }
  .player-wrap { grid-template-columns: 1fr; }
  .stage { height: auto; width: 100%; max-height: 80vh; }
  nav.main a { padding: 6px 8px; font-size: 12.5px; }
  .logo small { display: none; }
  .row { flex-direction: column; }
}
