:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #161b19;
  --muted: #626b66;
  --accent: #1b594a;
  --accent-dark: #144437;
  --wash: #edf5f0;
  --border: #e4e9e6;
  --radius: 26px;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; min-height: 100svh; display: flex; flex-direction: column; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
a { color: inherit; text-decoration: none; }
svg { display: block; width: 20px; height: 20px; }
:focus-visible { outline: 3px solid #519d84; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-header { display: flex; justify-content: center; padding: 28px 16px 0; }
.capsule {
  display: flex; align-items: center; gap: 9px; min-height: 57px; padding: 6px;
  border: 1px solid var(--border); border-radius: 999px; background: #fffffff5;
  box-shadow: 0 3px 6px #172e2210, 0 12px 32px -18px #172e2233;
}
.brand { font-size: .88rem; font-weight: 770; }
.nav-divider { width: 1px; height: 19px; background: var(--border); }
.brand, .nav-current, .nav-download { border: 0; border-radius: 999px; min-height: 43px; padding-inline: 17px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.nav-current, .nav-download { font-size: .81rem; font-weight: 700; }
.nav-current { background: var(--wash); color: var(--accent-dark); }
.nav-download { color: var(--ink); background: transparent; }
.nav-download svg { width: 17px; height: 17px; }
.nav-download:hover { background: #f4f6f5; }

.watch { width: min(100% - 48px, 904px); margin: 0 auto; }
.intro { text-align: center; padding-block: clamp(58px, 9vh, 105px) clamp(28px, 4vw, 42px); }
h1, h2, p { margin: 0; }
.intro h1 { font-size: clamp(2rem, 5vw, 3.85rem); font-weight: 760; line-height: 1.14; letter-spacing: -.075em; text-wrap: balance; }
.intro em { font-style: normal; color: var(--accent); }
.intro p { padding-top: 16px; color: var(--muted); line-height: 1.55; font-size: clamp(.87rem, 2vw, 1.06rem); letter-spacing: -.025em; }
.player {
  aspect-ratio: 16 / 9; position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius);
  background: #101b17; color: #fff; box-shadow: 0 22px 55px -32px #0c312871, 0 3px 8px #182e2719;
}
.empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; background: radial-gradient(ellipse at 50% 44%, #243b32, #131f1a 70%); }
.empty::before { content: ""; position: absolute; width: min(46%, 390px); aspect-ratio: 1; border: 1px solid #bdf3d813; border-radius: 50%; box-shadow: 0 0 0 38px #bdf3d808, 0 0 0 78px #bdf3d806; pointer-events: none; }
.empty-copy { position: relative; display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; }
.film-mark { display: grid; place-items: center; width: clamp(42px, 8vw, 66px); aspect-ratio: 1; background: #d4f5e51a; border: 1px solid #e7f6ee28; color: #d8eee3; border-radius: 50%; margin-bottom: 8px; }
.film-mark svg { height: clamp(22px, 4vw, 30px); width: clamp(22px, 4vw, 30px); }
.empty-copy strong { font-size: clamp(.98rem, 2.5vw, 1.27rem); font-weight: 650; letter-spacing: -.035em; }
.empty-copy > span:not(.film-mark) { color: #bdd1c7; font-size: clamp(.72rem, 2vw, .87rem); }
.empty-copy button { color: white; border: 1px solid #ffffff50; border-radius: 999px; padding: 8px 15px; background: transparent; }
.screen, video, .gesture { position: absolute; inset: 0; width: 100%; height: 100%; }
video { object-fit: contain; background: #0a0c0b; }
.gesture { touch-action: manipulation; user-select: none; -webkit-touch-callout: none; cursor: pointer; }
.big-play {
  position: absolute; width: clamp(54px, 9vw, 79px); aspect-ratio: 1; top: 50%; left: 50%; translate: -50% -50%;
  background: #fff; color: #153c30; display: grid; place-items: center; border: none; border-radius: 50%;
  box-shadow: 0 7px 30px #0006; transition: scale .2s ease;
}
.big-play:hover { scale: 1.07; }
.big-play svg { width: 39%; height: 39%; }
.cue { position: absolute; inset: 12px auto auto 50%; translate: -50% 0; border-radius: 999px; background: #101715d9; padding: 8px 15px; pointer-events: none; font-weight: 700; font-size: .85rem; }
.controls { position: absolute; inset: auto 0 0; padding: 12px clamp(10px, 2.4vw, 22px) 8px; background: linear-gradient(transparent, #000c); }
.seek-label, .seek-label input { display: block; width: 100%; }
.seek-label input { height: 18px; margin: 0; accent-color: #bef4db; cursor: pointer; }
.control-bar { display: flex; align-items: center; gap: 3px; }
.control-icon, .circle { background: transparent; border: 0; border-radius: 50%; color: inherit; width: 44px; height: 44px; display: grid; place-items: center; flex: none; }
.control-icon:hover { background: #ffffff25; }
.control-space { flex: 1; }
.timestamp { font-size: .77rem; padding-inline: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.player:fullscreen, .player.expanded { width: 100%; height: 100%; border-radius: 0; background: black; }
.player.expanded { position: fixed; inset: 0; z-index: 5; }
body.player-expanded { overflow: hidden; }
.player-status { color: var(--muted); margin-top: 16px; font-size: .8rem; line-height: 1.5; }
.site-footer { width: min(100% - 48px, 904px); margin: auto auto 0; padding-block: 38px 23px; display: flex; justify-content: space-between; color: var(--muted); font-size: .76rem; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

.dialog { width: min(100% - 32px, 416px); border: 1px solid var(--border); border-radius: 24px; padding: 28px; color: var(--ink); box-shadow: 0 24px 60px #102b2240; }
.dialog::backdrop { background: #0d221b70; backdrop-filter: blur(5px); }
.dialog-mark { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px; border-radius: 50%; color: white; background: var(--accent); }
.dialog h2 { font-size: 1.5rem; letter-spacing: -.055em; margin-bottom: 18px; }
.dialog label { display: block; margin-bottom: 8px; font-weight: 650; overflow-wrap: anywhere; }
.close { position: absolute; inset: 14px 14px auto auto; color: var(--muted); }
.close:hover { background: var(--wash); }
input:not([type=range],[type=checkbox],[type=file]) { width: 100%; border: 1px solid #d8e0dc; border-radius: 12px; padding: 12px 13px; color: var(--ink); background: white; }
.primary, .secondary { min-height: 44px; padding: 10px 17px; border: 1px solid transparent; border-radius: 999px; font-weight: 700; }
.primary { background: var(--accent); color: #fff; }
.primary:hover { background: var(--accent-dark); }
.secondary { background: white; color: var(--ink); border-color: var(--border); }
.secondary:hover { background: #f5f8f6; }
.dialog .primary { width: 100%; margin-top: 14px; }
.form-status { font-size: .86rem; color: #904137; line-height: 1.55; margin-block: 8px 0; overflow-wrap: anywhere; }
.form-status[data-ok] { color: var(--accent-dark); }

@media (max-width: 610px) {
  :root { --radius: 18px; }
  .watch, .site-footer { width: calc(100% - 32px); }
  .site-header { padding-top: 20px; }
  .intro { padding-block: 55px 29px; }
  .intro p { padding-top: 11px; }
  .site-footer { padding-top: 35px; }
  .controls { padding-top: 5px; padding-bottom: 2px; }
}
@media (max-width: 340px) { .brand, .nav-current, .nav-download { padding-inline: 10px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
