@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;700&display=swap");

:root {
  --color-black: #05070a;
  --color-bg: #0d1117;
  --color-surface: #131821;
  --color-surface-2: #101722;
  --color-border: #293241;
  --color-lang-border: #273244;
  --color-text: #f5f7fa;
  --color-text-soft: #d5dae2;
  --color-muted: #929caa;
  --color-muted-2: #626c7a;
  --color-muted-3: #606a78;
  --color-accent: #2f7cff;
  --color-ink: #131821;
  --color-cream: #f5f7fa;
  --color-copy: #8b95a1;
  --container: 1232px;
  --nav-height: 80px;
  --radius: 20px;
  --radius-sm: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Pretendard", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p, h1, h2, h3 { margin: 0; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
.page main { flex: 1; }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

/* ========== NAVBAR ========== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--color-black);
}
.navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}
.navbar__logo {
  flex-shrink: 0;
}
.navbar__logo img {
  height: 40px;
  width: auto;
}
.navbar__panel {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-left: auto;
}
.navbar__menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 40px;
}
.nav-link {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text);
  opacity: 0.85;
}
.nav-link:hover,
.nav-link.is-active {
  opacity: 1;
  color: #fff;
}
.navbar__actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 40px;
}
.btn-ticket {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.btn-ticket:hover { filter: brightness(1.08); }

.lang { position: relative; }
.lang__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--color-lang-border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
}
.lang__title {
  display: none;
}
.lang__caret {
  color: var(--color-accent);
  font-size: 18px;
  line-height: 1;
}
.lang__menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  width: 146px;
  background: var(--color-black);
  border: 1px solid var(--color-accent);
  border-radius: 8px;
  overflow: hidden;
  z-index: 120;
}
.lang.is-open .lang__menu { display: block; }
.lang__option {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 100%;
  height: 36px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}
.lang__option span:first-child {
  text-align: center;
}
.lang__option span:last-child {
  text-align: left;
}
.lang__option:hover,
.lang__option.is-active {
  color: var(--color-accent);
}

.navbar__toggle {
  display: none;
  position: relative;
  z-index: 130;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.navbar__toggle-bar {
  width: 20px;
  height: 2px;
  background: var(--color-text);
}

.navbar__backdrop {
  display: none;
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  cursor: pointer;
  position: fixed;
  top: var(--nav-height);
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(5, 7, 10, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99;
  pointer-events: none;
}

/* ========== FOOTER ========== */
.footer {
  position: relative;
  background: var(--color-black);
  border-top: 1px solid rgba(41, 50, 65, 0.4);
  min-height: 160px;
  overflow: hidden;
}
.footer__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  pointer-events: none;
}
.footer__inner {
  position: relative;
  z-index: 1;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px 0;
}
.footer__logo {
  display: inline-block;
  margin-bottom: 16px;
}
.footer__logo img {
  height: 32px;
  width: auto;
}
.footer__copy {
  font-size: 12px;
  color: var(--color-copy);
}
.footer__links {
  display: flex;
  gap: 32px;
  font-family: "Pretendard", sans-serif;
  font-size: 14px;
  color: var(--color-text);
}

.back-to-top {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 90;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top img {
  width: 48px;
  height: 48px;
}

/* ========== SHARED ========== */
.section { padding: 48px 0; }
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}
.section-head .section-title { margin-bottom: 0; }
.section-title {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.28;
  margin-bottom: 32px;
}
.section-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 8px;
  background: var(--color-accent);
}
.section-title--ko {
  font-family: "Pretendard", sans-serif;
}
.divider {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
  height: 1px;
  background: rgba(41, 50, 65, 0.8);
}

.page-banner { padding: 40px 0 0; }
.page-banner__frame {
  width: 100%;
  height: 180px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
}
.page-banner__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.year-tabs {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0 24px;
}
.year-tabs__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.04em;
}
.year-tab {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-muted);
}
.year-tab.is-active { color: var(--color-text); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 238px;
  min-height: 58px;
  padding: 0 36px;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: var(--color-cream);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
}
.btn-primary:hover { filter: brightness(1.08); }

.btn-ghost,
.btn-list {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  border: 1px solid rgba(245, 247, 250, 0.25);
  border-radius: var(--radius-sm);
  font-family: "Pretendard", sans-serif;
  font-size: 14px;
  font-weight: 500;
}
.btn-ghost:hover,
.btn-list:hover { border-color: var(--color-accent); color: var(--color-accent); }

.placeholder {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--color-muted);
  text-align: center;
}
.placeholder--video {
  aspect-ratio: 16 / 9;
  background: var(--color-black);
  color: var(--color-border);
  border-radius: 0;
}
.placeholder--poster {
  aspect-ratio: 3 / 4;
  border-radius: 0;
}
.placeholder--card {
  aspect-ratio: 16 / 9;
  border-radius: 0;
  color: var(--color-muted-3);
}
.placeholder--square {
  aspect-ratio: 1;
  border-radius: 0;
}

.board {
  background: var(--color-cream);
  border: 1px solid rgba(41, 50, 65, 0.3);
  color: var(--color-ink);
}
.board__head,
.board__row {
  display: grid;
  grid-template-columns: 1fr 236px;
  gap: 0;
  align-items: center;
  padding: 21px 40px;
}
.board__head {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-accent);
  background: rgba(213, 218, 226, 0.35);
}
.board__row {
  border-bottom: 1px solid rgba(19, 24, 33, 0.06);
  transition: background 0.15s ease;
}
.board__row:hover { background: rgba(47, 124, 255, 0.04); }
.board__row:last-child { border-bottom: 0; }
.board__date {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: var(--color-muted-2);
}
.board__title {
  font-family: "Pretendard", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--color-ink);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
}
.pagination a,
.pagination span {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2f7cff;
  border-radius: 10px;
  background: transparent;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.21;
  letter-spacing: 0;
  color: #fff;
}
.pagination__arrow {
  font-size: 22px;
  line-height: 1.21;
}
.pagination__arrow svg {
  display: block;
  width: 9px;
  height: 16px;
}
.pagination a:hover {
  background: rgba(47, 124, 255, 0.18);
}

.article-panel {
  background: var(--color-cream);
  border: 1px solid rgba(41, 50, 65, 0.3);
  border-radius: 0;
  padding: 40px 56px;
  color: var(--color-ink);
}
.legal-panel {
  background: var(--color-cream);
  border: 1px solid rgba(41, 50, 65, 0.3);
  border-radius: 0;
  padding: 40px 56px;
  color: var(--color-ink);
}
.article-panel__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(19, 24, 33, 0.08);
}
.article-panel__title {
  font-family: "Pretendard", sans-serif;
  font-size: 22px;
  font-weight: 600;
}
.article-panel__date {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-muted-2);
  flex-shrink: 0;
}
.article-panel__body {
  font-family: "Pretendard", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--color-ink);
  line-height: 2;
  white-space: pre-line;
}
.article-panel__image {
  margin: 24px 0;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #e8ecf1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--color-muted);
}
.article-panel__credit {
  font-size: 14px;
  color: var(--color-muted-2);
  margin-bottom: 24px;
}

.legal-panel__title {
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}
.legal-panel__body {
  font-family: "Pretendard", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  white-space: pre-line;
  color: var(--color-ink);
}

@media (max-width: 1024px) {
  body.nav-open {
    overflow: hidden;
  }
  body.nav-open .navbar__backdrop {
    display: block;
    pointer-events: auto;
  }
  .navbar__inner {
    position: relative;
    gap: 16px;
  }
  .navbar__toggle {
    display: inline-flex;
  }
  .navbar .lang {
    margin-left: auto;
    z-index: 130;
  }
  .navbar__panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px 24px 24px;
    background: var(--color-black);
    border-bottom: 1px solid var(--color-border);
    z-index: 110;
  }
  .navbar.is-open .navbar__panel {
    display: flex;
    z-index: 120;
  }
  .navbar.is-open .navbar__menu,
  .navbar.is-open .navbar__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    width: 100%;
  }
  .navbar.is-open .navbar__actions {
    gap: 12px;
    padding-top: 8px;
  }
  .navbar.is-open .nav-link {
    padding: 12px 0;
    font-size: 16px;
  }
  .navbar.is-open .btn-ticket {
    width: 100%;
  }
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .board__head,
  .board__row {
    grid-template-columns: 1fr 110px;
    padding: 16px 18px;
  }
  .article-panel,
  .legal-panel { padding: 28px 20px; }
  .page-banner__frame { height: 120px; }
  .back-to-top { right: 16px; bottom: 16px; }
}
