:root {
  --paper: #f2eee4;
  --paper-deep: #e5dfd2;
  --ink: #151412;
  --muted: #6f6a61;
  --rule: rgba(21, 20, 18, 0.24);
  --signal: #f05223;
  --signal-dark: #c93c15;
  --ready: #147c52;
  --partial: #a35c00;
  --display: "Bodoni 72", "Bodoni MT", Didot, "Nanum Myeongjo", Georgia, serif;
  --body: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --page: min(1560px, calc(100vw - 64px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 7%, rgba(240, 82, 35, 0.07), transparent 24rem),
    linear-gradient(rgba(21, 20, 18, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 100% 5px, auto;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

.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;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.masthead {
  width: var(--page);
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  color: var(--ink);
  font-family: var(--display);
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
  text-decoration: none;
}
.wordmark b { color: var(--signal); font-size: 20px; margin-left: 4px; letter-spacing: -0.03em; }

.masthead-meta {
  display: flex;
  gap: 30px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.17em;
}
.masthead-meta span + span::before { content: "/"; color: var(--signal); margin-right: 30px; }

.hero {
  width: var(--page);
  min-height: 520px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 132px) 0 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-kicker, .eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}
.hero-kicker span { color: var(--signal); margin-left: 8px; }

.hero h1 {
  margin: 24px 0 64px;
  font-family: var(--display);
  font-size: clamp(72px, 11.3vw, 182px);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.76;
}
.hero h1 span { padding-left: 12.5vw; font-style: italic; }

.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding-left: 50%;
}
.hero-foot > p:first-child { margin: 0; max-width: 390px; font-size: 14px; }
.hero-index { margin: 0; display: flex; flex-direction: column; text-align: right; }
.hero-index span { font-size: 9px; font-weight: 700; letter-spacing: 0.2em; }
.hero-index strong { font-family: var(--display); font-size: 28px; font-weight: 400; }

.control-deck {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  min-height: 86px;
  padding: 0 max(32px, calc((100vw - 1560px) / 2));
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  align-items: center;
  gap: 36px;
  background: rgba(242, 238, 228, 0.94);
  border-block: 1px solid var(--ink);
  backdrop-filter: blur(13px);
}

.hall-filter { display: flex; align-items: center; gap: 5px; }
.filter-button {
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}
.filter-button span { margin-left: 5px; font-size: 9px; opacity: 0.65; }
.filter-button:hover { color: var(--signal-dark); }
.filter-button.is-active { color: var(--paper); background: var(--ink); }
.filter-button:focus-visible, .session-action:focus-visible, .search-field:focus-within, .modal-close:focus-visible, .empty-state button:focus-visible, .error-state button:focus-visible { outline: 3px solid rgba(240, 82, 35, 0.35); outline-offset: 3px; }

.search-field {
  width: min(100%, 620px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--ink);
}
.search-field svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.search-field input { width: 100%; padding: 12px 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.search-field input::placeholder { color: var(--muted); opacity: 1; }
.search-field kbd { padding: 1px 6px; border: 1px solid var(--rule); border-radius: 2px; font-family: var(--body); font-size: 9px; }

.status-board { display: flex; align-items: center; gap: 19px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.status-board span { display: inline-flex; align-items: center; gap: 6px; }
.status-board b { font-family: var(--display); font-size: 17px; font-weight: 400; }
.signal { width: 7px; height: 7px; border-radius: 50%; }
.signal-ready { background: var(--ready); }
.signal-partial { background: var(--partial); }
.signal-processing { background: var(--signal); animation: pulse 1.8s ease-in-out infinite; }
.signal-unavailable { background: var(--muted); }
.result-count { padding-left: 19px; border-left: 1px solid var(--rule); }

.full-recordings {
  width: var(--page);
  margin: 86px auto 0;
  border-top: 1px solid var(--ink);
}
.full-recordings-head {
  min-height: 112px;
  padding: 24px 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}
.full-recordings-head p { margin: 0; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 0.12em; }
.full-recordings-head h2 { margin: 3px 0 0; font-family: var(--display); font-size: clamp(34px, 4vw, 58px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.full-recording-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-block: 1px solid var(--ink); }
.full-recording-card {
  position: relative;
  min-height: 250px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(255,255,255,0.18);
}
.full-recording-card + .full-recording-card { border-left: 1px solid var(--ink); }
.full-recording-card::after {
  content: attr(data-index);
  position: absolute;
  right: 18px;
  bottom: -38px;
  z-index: -1;
  color: rgba(21,20,18,0.045);
  font-family: var(--display);
  font-size: 170px;
  line-height: 1;
}
.full-recording-topline { display: flex; justify-content: space-between; gap: 20px; }
.full-recording-kind { color: var(--signal-dark); font-size: 9px; font-weight: 800; letter-spacing: 0.17em; }
.full-recording-card h3 { margin: 25px 0 5px; font-family: var(--display); font-size: clamp(30px, 3vw, 46px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.05; }
.full-recording-time { margin: 0 0 28px; color: var(--muted); font-family: var(--display); font-size: 18px; }
.full-recording-card .session-action { margin-top: auto; }
.full-recording-loading { grid-column: 1 / -1; padding: 55px 20px; color: var(--muted); font-size: 11px; text-align: center; }

.schedule-shell {
  width: var(--page);
  margin: 0 auto;
  padding: 120px 0 150px;
}

.section-heading { display: grid; grid-template-columns: 160px 1fr; margin-bottom: 80px; }
.section-heading p { margin: 9px 0 0; font-size: 9px; font-weight: 800; letter-spacing: 0.16em; }
.section-heading h2 { margin: 0; font-family: var(--display); font-size: clamp(52px, 7vw, 110px); font-weight: 400; letter-spacing: -0.05em; line-height: 0.8; }

.schedule-head, .schedule-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 0;
}
.schedule-head { border-block: 1px solid var(--ink); }
.schedule-head > span { padding: 17px 20px; font-size: 10px; font-weight: 800; letter-spacing: 0.14em; }
.schedule-head > span:first-child { padding-left: 0; }
.schedule-head > span + span { border-left: 1px solid var(--ink); }
.schedule-head b { color: var(--signal); margin-right: 10px; font-weight: 800; }

.schedule-row { position: relative; border-bottom: 1px solid var(--rule); }
.schedule-row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255,255,255,0.25); transform: scaleY(0); transform-origin: top; transition: transform 220ms ease; }
.schedule-row:has(.session-card:hover)::before { transform: scaleY(1); }
.time-cell { padding: 27px 24px 27px 0; }
.time-cell time { display: block; font-family: var(--display); font-size: 28px; line-height: 1; }
.time-cell span { color: var(--muted); font-size: 10px; letter-spacing: 0.08em; }
.hall-cell { min-width: 0; padding: 24px 20px; border-left: 1px solid var(--rule); }
.hall-cell.is-blank::after { content: "—"; color: rgba(21,20,18,0.2); }
.all-halls-note { grid-column: 2 / -1; }

.session-card { height: 100%; display: flex; flex-direction: column; animation: rise-in 450ms both; }
.session-topline { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.hall-label { color: var(--signal-dark); font-size: 9px; font-weight: 800; letter-spacing: 0.17em; }
.session-status { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 0.08em; }
.session-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }
.session-card.is-ready .session-status,
.full-recording-card.is-ready .session-status { color: var(--ready); }
.session-card.is-ready .session-status::before,
.full-recording-card.is-ready .session-status::before { background: var(--ready); }
.session-card.is-partial .session-status,
.full-recording-card.is-partial .session-status { color: var(--partial); }
.session-card.is-partial .session-status::before,
.full-recording-card.is-partial .session-status::before { background: var(--partial); }
.session-card.is-unavailable .session-status,
.full-recording-card.is-unavailable .session-status { color: var(--muted); }
.session-card.is-unavailable .session-status::before,
.full-recording-card.is-unavailable .session-status::before { background: var(--muted); }
.session-title { margin: 0 0 20px; max-width: 710px; font-family: var(--display); font-size: clamp(24px, 2.05vw, 35px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.17; text-wrap: balance; }
.session-hook { display: -webkit-box; max-width: 640px; margin: -8px 0 18px; overflow: hidden; color: var(--signal-dark); font-family: var(--display); font-size: 15px; font-weight: 600; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.speaker-list { margin: auto 0 21px; padding: 0; list-style: none; }
.speaker-list li { margin-top: 5px; color: var(--muted); font-size: 11px; }
.speaker-list strong { color: var(--ink); font-weight: 700; }
.speaker-list .company { color: var(--ink); }
.speaker-list .role::before { content: "·"; margin: 0 5px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 24px; }
.tag-list span { padding: 3px 7px; border: 1px solid var(--rule); border-radius: 999px; color: var(--muted); font-size: 8px; font-weight: 700; }

.session-action {
  width: 100%;
  min-height: 42px;
  padding: 9px 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--ink);
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: left;
}
.session-action:disabled { cursor: not-allowed; color: var(--muted); border-color: var(--rule); }
.is-processing .session-action:disabled .action-icon { animation: rotate 3s linear infinite; }
.session-action:not(:disabled) { cursor: pointer; transition: color 180ms ease, background 180ms ease; }
.session-action:not(:disabled):hover { color: var(--paper); background: var(--ink); }
.action-icon { font-size: 15px; letter-spacing: 0; }

.timeline-note { min-height: 100px; display: flex; align-items: center; gap: 18px; }
.timeline-note::before { content: ""; width: 27px; height: 1px; background: var(--signal); }
.timeline-note .note-type { color: var(--signal-dark); font-size: 9px; font-weight: 800; letter-spacing: 0.16em; }
.timeline-note strong { display: block; margin-top: 3px; font-family: var(--display); font-size: 22px; font-weight: 600; }
.timeline-note small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }

.loading-state, .empty-state, .error-state { padding: 100px 20px; text-align: center; }
.loading-mark { display: block; width: 32px; height: 32px; margin: 0 auto 20px; border: 1px solid var(--rule); border-top-color: var(--signal); border-radius: 50%; animation: rotate 0.9s linear infinite; }
.loading-state p { color: var(--muted); font-size: 12px; }
.empty-state span { font-family: var(--display); font-size: 82px; color: var(--signal); }
.empty-state h3, .error-state h3 { margin: 0 0 8px; font-family: var(--display); font-size: 36px; }
.empty-state p, .error-state > p:not(.eyebrow) { color: var(--muted); font-size: 13px; }
.empty-state button, .error-state button { margin-top: 14px; padding: 10px 16px; border: 1px solid var(--ink); background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; }
.error-state { margin-top: 20px; border: 1px solid var(--signal); }
.error-state .eyebrow { color: var(--signal-dark); }

.site-footer {
  min-height: 310px;
  padding: 58px max(32px, calc((100vw - 1560px) / 2));
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 60px;
  align-items: start;
  color: var(--paper);
  background: var(--ink);
}
.footer-mark { font-family: var(--display); font-size: 56px; letter-spacing: -0.07em; line-height: 1; }
.footer-mark span { color: var(--signal); font-size: 34px; margin-left: 5px; }
.site-footer p { color: rgba(242,238,228,0.65); font-size: 11px; line-height: 1.8; }
.footer-policy { max-width: 530px; }
.site-footer a { color: var(--paper); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-decoration: none; border-bottom: 1px solid rgba(242,238,228,0.5); }
.site-footer a:hover { color: var(--signal); }

.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 28px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 10, 9, 0.82); backdrop-filter: blur(8px); animation: fade-in 180ms both; }
.modal-panel { position: relative; width: min(1120px, 100%); max-height: calc(100vh - 56px); overflow: auto; background: var(--paper); box-shadow: 0 30px 100px rgba(0,0,0,0.45); animation: modal-in 280ms cubic-bezier(.2,.8,.2,1) both; }
.modal-header { padding: 25px 28px 22px; display: flex; justify-content: space-between; gap: 28px; border-bottom: 1px solid var(--ink); }
.modal-header .eyebrow { margin: 0 0 7px; color: var(--signal-dark); }
.modal-header h2 { margin: 0; max-width: 850px; font-family: var(--display); font-size: clamp(24px, 3vw, 42px); line-height: 1.08; }
.modal-hook { max-width: 780px; margin: 15px 0 0; color: var(--signal-dark); font-family: var(--display); font-size: 17px; font-weight: 600; line-height: 1.25; }
.modal-summary { max-width: 820px; margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.modal-topics { margin: 14px 0 0; }
.modal-coverage { margin: 10px 0 0; color: var(--muted); font-size: 10px; }
.modal-close { position: relative; flex: 0 0 42px; height: 42px; border: 1px solid var(--ink); border-radius: 50%; background: transparent; cursor: pointer; }
.modal-close span { position: absolute; top: 20px; left: 11px; width: 19px; height: 1px; background: var(--ink); transform: rotate(45deg); }
.modal-close span:last-child { transform: rotate(-45deg); }
.modal-close:hover { background: var(--signal); }
.video-frame-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #090909; }
.video-frame-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal-footer { padding: 17px 28px 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.modal-footer p { margin: 0; color: var(--muted); font-size: 10px; }
.modal-footer a { flex: none; color: var(--ink); font-size: 10px; font-weight: 800; letter-spacing: 0.07em; text-decoration: none; border-bottom: 1px solid var(--ink); }

@keyframes pulse { 50% { opacity: 0.25; transform: scale(0.72); } }
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(9px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(0.985); } }

@media (max-width: 980px) {
  :root { --page: calc(100vw - 40px); }
  .masthead-meta span:nth-child(2) { display: none; }
  .control-deck { padding: 15px 20px; grid-template-columns: 1fr auto; gap: 12px 18px; }
  .search-field { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .status-board { justify-content: end; }
  .status-board .result-count { display: none; }
  .schedule-head, .schedule-row { grid-template-columns: 105px minmax(0, 1fr) minmax(0, 1fr); }
  .section-heading { grid-template-columns: 105px 1fr; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer > a { grid-column: 2; }
}

@media (max-width: 700px) {
  :root { --page: calc(100vw - 30px); }
  .masthead { min-height: 70px; }
  .masthead-meta { gap: 0; }
  .masthead-meta span:not(:last-child) { display: none; }
  .hero { min-height: 440px; padding-top: 74px; }
  .hero h1 { margin-top: 48px; font-size: clamp(59px, 20vw, 90px); line-height: 0.82; }
  .hero h1 span { padding-left: 0; }
  .hero-foot { padding-left: 0; }
  .hero-index { display: none; }
  .control-deck { position: relative; min-height: 0; padding: 16px 15px; grid-template-columns: 1fr; }
  .hall-filter { justify-content: space-between; }
  .filter-button { flex: 1; }
  .search-field { grid-row: auto; }
  .status-board { justify-content: space-between; }
  .status-board { flex-wrap: wrap; }
  .full-recordings { margin-top: 58px; }
  .full-recordings-head { align-items: start; flex-direction: column; gap: 14px; }
  .full-recording-list { grid-template-columns: 1fr; }
  .full-recording-card { min-height: 225px; padding: 24px 18px; }
  .full-recording-card + .full-recording-card { border-left: 0; border-top: 1px solid var(--ink); }
  .schedule-shell { padding: 80px 0 100px; }
  .section-heading { display: block; margin-bottom: 48px; }
  .section-heading p { margin-bottom: 20px; }
  .schedule-head { display: none; }
  .schedule-row { display: block; padding: 0 0 0 57px; border-bottom: 1px solid var(--ink); }
  .time-cell { position: absolute; top: 0; left: 0; width: 57px; padding: 25px 8px 0 0; }
  .time-cell time { font-size: 19px; }
  .time-cell span { display: none; }
  .hall-cell { padding: 24px 0 28px 17px; border-left: 1px solid var(--rule); }
  .all-halls-note { grid-column: auto; }
  .hall-cell.is-blank { display: none; }
  .hall-cell + .hall-cell:not(.is-blank) { border-top: 1px dashed var(--rule); }
  .schedule-row[data-visible-halls="play"] .hall-cell[data-hall="main"],
  .schedule-row[data-visible-halls="main"] .hall-cell[data-hall="play"] { display: none; }
  .session-title { font-size: 25px; }
  .session-hook { margin-top: -9px; font-size: 13px; }
  .timeline-note { min-height: 80px; }
  .site-footer { min-height: 390px; padding: 45px 20px; display: block; }
  .footer-policy { margin: 40px 0; }
  .modal { padding: 0; }
  .modal-panel { width: 100%; max-height: 100vh; }
  .modal-header { padding: 20px 17px; }
  .modal-hook { font-size: 15px; }
  .modal-summary { font-size: 11px; line-height: 1.55; }
  .modal-footer { padding: 16px 17px 22px; display: block; }
  .modal-footer p { margin-bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
