:root {
  color-scheme: light;
  --page: #f7f8f6;
  --surface: #ffffff;
  --ink: #142322;
  --muted: #677571;
  --line: #dfe6e2;
  --green: #176c58;
  --green-dark: #115443;
  --green-soft: #e8f4ee;
  --red: #b7463c;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--page); }
body { min-height: 100vh; margin: 0; color: var(--ink); background: var(--page); }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid #88c9ad; outline-offset: 3px; }
[hidden] { display: none !important; }
.page-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-header { width: min(100%, 1032px); margin: 0 auto; padding: 24px 24px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 750; letter-spacing: -.04em; }
.brand-mark { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; gap: 3px; border-radius: 9px; background: var(--green); }
.brand-mark span { width: 4px; height: 10px; border-radius: 3px; background: white; }
.brand-mark span:nth-child(2) { height: 16px; }
.brand-mark span:nth-child(3) { height: 7px; }
.header-label { color: var(--muted); font-size: 12px; font-weight: 650; white-space: nowrap; }
main { width: 100%; flex: 1; }
.eyebrow { margin: 0 0 10px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
h1 { margin: 0; font-size: clamp(27px, 5vw, 38px); line-height: 1.18; letter-spacing: -.065em; }
.login-view { width: min(calc(100% - 40px), 430px); margin: clamp(38px, 10vh, 108px) auto 64px; padding: 38px 34px 34px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.intro-symbol { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 29px; border-radius: 20px; color: var(--green); background: var(--green-soft); }
.intro-symbol svg { width: 35px; height: 35px; }
.intro-copy { margin: 15px 0 31px; color: var(--muted); font-size: 15px; line-height: 1.65; word-break: keep-all; }
.login-form label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 750; }
.login-form input { display: block; width: 100%; height: 50px; padding: 0 15px; border: 1px solid #b9c9c2; border-radius: 11px; background: #fff; color: var(--ink); font-size: 16px; }
.login-form input:focus { border-color: var(--green); }
.form-error { margin: 10px 0 0; color: var(--red); font-size: 13px; line-height: 1.4; }
.primary-button, .secondary-button { min-height: 48px; border-radius: 11px; font-size: 15px; font-weight: 750; }
.primary-button { border: 1px solid var(--green); background: var(--green); color: white; }
.primary-button:hover { background: var(--green-dark); }
.primary-button:disabled { opacity: .6; cursor: wait; }
.login-form .primary-button { width: 100%; margin-top: 17px; }
.secondary-button { border: 1px solid var(--line); background: white; color: var(--ink); }
.secondary-button:hover { border-color: #a4b9ae; }
.watch-view { width: min(calc(100% - 40px), 960px); margin: clamp(30px, 5vh, 64px) auto 60px; }
.watch-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.watch-subtitle { margin: 11px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.live-badge { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 800; white-space: nowrap; }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.live-badge.is-connecting { background: #e9eeed; color: #5c716a; }
.live-badge.is-offline { background: #faecea; color: var(--red); }
.player-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; background: #0e1514; }
.player-frame video { width: 100%; height: 100%; display: block; object-fit: contain; }
.player-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 22px; color: white; text-align: center; background: #101c1bd9; pointer-events: none; }
.player-overlay strong { font-size: 16px; }
.player-overlay span:last-child { color: #cad7d2; font-size: 13px; }
.loading-ring { width: 28px; height: 28px; margin-bottom: 12px; border: 3px solid #ffffff50; border-top-color: white; border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.details { margin-top: 28px; padding: 5px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-row { min-height: 51px; display: flex; justify-content: space-between; align-items: center; gap: 15px; font-size: 14px; }
.detail-row + .detail-row { border-top: 1px solid #edf0ee; }
.detail-row span { color: var(--muted); }
.detail-row strong { font-weight: 700; text-align: right; }
.view-note { margin: 20px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.text-button { min-height: 44px; margin: 15px 0 0; padding: 0; border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.site-footer { width: min(100%, 1032px); margin: 0 auto; padding: 22px 24px 30px; color: #88948f; font-size: 12px; }
@media (max-width: 520px) {
  .site-header { padding: 20px 20px 14px; }
  .login-view { margin-top: 36px; padding: 31px 25px 28px; border-radius: 20px; }
  .watch-view { margin-top: 29px; }
  .watch-heading { align-items: flex-start; margin-bottom: 20px; }
  .watch-heading h1 { font-size: 30px; }
  .watch-subtitle { font-size: 13px; }
  .live-badge { margin-top: 25px; }
  .player-frame { width: calc(100% + 40px); margin-left: -20px; border-radius: 0; }
  .site-footer { padding-left: 20px; }
}
@media (prefers-reduced-motion: reduce) { .loading-ring { animation: none; } }
