:root {
  --bg: #070b12;
  --ink: #e7eef6;
  --muted: #9aabbb;
  --line: rgba(215, 230, 242, .18);
  --ember: #e7a15a;
  --ice: #b7d4ea;
  --glass: rgba(8, 12, 18, .62);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "IBM Plex Sans KR", "IBM Plex Sans", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
}
html:lang(ko) body { word-break: keep-all; overflow-wrap: break-word; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
.top {
  position: fixed; z-index: 5; inset: 0 0 auto 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  background: linear-gradient(to bottom, rgba(7,11,18,.72), rgba(7,11,18,0));
}
.brand { display: flex; flex-direction: column; gap: 0; text-decoration: none; }
.brand b { font-family: var(--serif); font-weight: 600; letter-spacing: .18em; font-size: 15px; }
.brand small { color: var(--muted); letter-spacing: .22em; font-size: 10px; text-transform: uppercase; }
.lang { position: relative; }
.lang > button {
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; cursor: pointer;
}
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  margin: 0; padding: 6px; list-style: none;
  background: #101820; border: 1px solid var(--line); border-radius: 12px;
  min-width: 160px; display: none; max-height: 280px; overflow: auto;
}
.lang.open .lang-menu { display: block; }
.lang-menu button { width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.lang-menu button[aria-selected="true"] { color: var(--ember); }

.hero { position: relative; min-height: 100vh; display: grid; align-items: end; overflow: hidden; }
.hero-pic, .hero-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-pic img { transform: scale(1.04); object-position: center 28%; animation: drift 28s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.1) translate3d(-1.2%, -1%, 0); } }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, #070b12 0%, rgba(7,11,18,.55) 28%, rgba(7,11,18,.05) 58%),
    radial-gradient(80% 60% at 50% 40%, transparent, rgba(7,11,18,.45));
}
.hero-copy { position: relative; z-index: 2; padding: 0 7vw 7vh; max-width: 920px; }
.kicker { margin: 0 0 10px; letter-spacing: .28em; text-transform: uppercase; font-size: 12px; color: var(--ember); }
.hero h1 {
  margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(48px, 7vw, 92px);
  line-height: .95; letter-spacing: -0.02em;
}
.hero-copy p.lead { max-width: 46rem; color: #d5e2ee; font-size: 18px; }

.cats {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin: 28px 7vw 0; padding-bottom: 6vh;
}
.cat {
  text-align: left; cursor: pointer;
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(16px); border-radius: 18px; padding: 16px 18px;
  transition: transform .35s ease, border-color .35s ease, background .35s ease;
}
.cat:hover { transform: translateY(-3px); }
.cat[aria-pressed="true"] { border-color: var(--ember); background: rgba(231,161,90,.12); }
.cat strong { display: block; font-family: var(--serif); font-size: 32px; font-weight: 500; }
.cat span { color: var(--muted); font-size: 13px; }

.board { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 28px; padding: 28px 7vw 10px; }
.player {
  position: sticky; top: 84px; align-self: start;
  background: #05080d; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  min-height: 240px;
}
.player .frame { position: relative; aspect-ratio: 16/9; background: #000 center/cover no-repeat; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .meta { padding: 14px 16px 16px; }
.player .meta p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.yt {
  display: block; width: fit-content; margin-top: 12px; text-decoration: none;
  border-bottom: 1px solid var(--ember); color: var(--ember); padding-bottom: 2px;
}
.yt-en { color: var(--muted); border-bottom-color: var(--muted); font-size: .92em; }
.yt-en[hidden] { display: none; }
.dash { padding: 8px 16px 16px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(183,212,234,.05), transparent 42%); }
.dash-kicker { margin: 8px 0 0; letter-spacing: .16em; text-transform: uppercase; font-size: 10px; color: var(--ember); }
.dash-num { margin: 2px 0 0; font-family: var(--serif); font-size: 46px; line-height: .95; font-weight: 500; }
.dash-cap, .dash-src { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.dash-cap--sub { margin-top: 2px; font-size: 11px; opacity: .85; }
.dash-cap--sub[hidden] { display: none; }
.dash-live { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #7bd389; box-shadow: 0 0 0 3px rgba(123,211,137,.18); vertical-align: 1px; }
.dash-src a { color: var(--ice); }
.dash-modes { display: flex; gap: 6px; margin: 10px 0 0; }
.dash-modes button { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 4px 12px; cursor: pointer; font-size: 12px; }
.dash-modes button[aria-pressed="true"] { color: var(--ember); border-color: var(--ember); }
.dash-cv { display: block; width: 100%; height: 240px; max-height: 240px; margin-top: 4px; cursor: grab; touch-action: none; }
.dash-gap { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.dash-gap b { display: block; margin-top: 2px; font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1; color: var(--ember); }
.dash-chips { display: flex; gap: 8px; margin-top: 4px; }
.dash-chips:empty { display: none; }
.dash-chip { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: rgba(255,255,255,.03); text-decoration: none; }
a.dash-chip:hover { border-color: var(--ice); }
.dash-chip b { display: block; font-family: var(--serif); font-size: 22px; line-height: 1; color: var(--ice); }
.dash-chip span { display: block; margin-top: 4px; font-size: 11px; line-height: 1.3; color: var(--muted); }
.cols { display: flex; flex-direction: column; gap: 30px; min-width: 0; }
.feed-sec[hidden] { display: none; }
.col-h { font-family: var(--serif); font-weight: 500; font-size: 36px; margin: 0 0 12px; line-height: 1.1; }
.feed-note { margin: -6px 0 12px; color: var(--muted); font-size: 12px; letter-spacing: .02em; }
.feed-sec--major .col-h { color: var(--ember); }
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
/* 주요 뉴스: 테두리·바탕을 주황으로, 왼쪽 칸은 점수 대신 잘린 인원 */
.feed--major li { border-color: rgba(231,161,90,.42); background: linear-gradient(90deg, rgba(231,161,90,.12), rgba(231,161,90,.03) 60%, transparent); }
.feed--major a.row, .feed--major button.row { grid-template-columns: 92px 1fr; }
.cut { display: grid; place-items: center; align-content: center; gap: 2px; border-radius: 12px; background: rgba(231,161,90,.14); border: 1px solid rgba(231,161,90,.35); color: var(--ember); padding: 6px 4px; }
.cut b { font-family: var(--serif); font-size: 24px; line-height: 1; font-weight: 600; letter-spacing: -.01em; }
.cut small { font-size: 10px; line-height: 1; color: #f1c89a; opacity: .9; }
.badge { display: inline-block; vertical-align: middle; margin-right: 6px; padding: 2px 7px; border-radius: 999px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; background: var(--ember); color: #1a1007; font-weight: 500; }
.feed--major small .when { color: #f1c89a; }
.feed li {
  border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.02);
  animation: rise .5s ease both;
}
.feed a.row, .feed button.row {
  width: 100%; display: grid; grid-template-columns: 72px 1fr; gap: 12px;
  text-align: left; text-decoration: none; background: none; border: 0; padding: 12px; cursor: pointer;
}
.pts {
  display: grid; place-items: center; border-radius: 12px; background: rgba(183,212,234,.08);
  font-family: var(--serif); font-size: 22px; color: var(--ice);
}
.feed h3 { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.35; }
.feed small { color: var(--muted); }
.status { padding: 24px; color: var(--muted); }

.jobs-kit { padding: 8px 7vw 8px; }
.jobs-kit[hidden] { display: none !important; }
.jobs-acc { border-top: 1px solid var(--line); }
.jobs-acc summary {
  cursor: pointer; list-style: none;
  font-family: var(--serif); font-weight: 500; font-size: 42px; line-height: 1.15;
  padding: 32px 0 28px;
}
.jobs-acc summary::-webkit-details-marker { display: none; }
.jobs-acc summary::after { content: ""; float: right; width: 10px; height: 10px; margin-top: 18px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(-45deg); }
.jobs-acc[open] summary::after { transform: rotate(45deg); margin-top: 14px; }
.jobs-lead { margin: 0 0 18px; max-width: 46rem; color: var(--muted); }
.jobs-kicker { margin: 4px 0 12px; font-size: 13px; letter-spacing: .04em; color: var(--ember); }
.jobs-grid + .jobs-kicker { margin-top: 4px; }
.jobs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-bottom: 28px; }
.jobs-grid article { border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 18px; background: rgba(255,255,255,.03); }
.jobs-grid h3 { margin: 0 0 8px; font-size: 18px; font-weight: 500; color: var(--ember); }
.jobs-grid p { margin: 0; color: #c5d3e0; }
.plan { padding: 64px 7vw 24px; }
.plan h2 { font-family: var(--serif); font-weight: 500; font-size: 42px; margin: 0 0 18px; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan article { border-top: 1px solid var(--line); padding-top: 14px; }
.plan h3 { margin: 0 0 8px; font-size: 18px; font-weight: 500; }
.plan p { margin: 0; color: #c5d3e0; }

.seo { margin: 28px 7vw 48px; }
.seo details { border-top: 1px solid var(--line); }
.seo summary { cursor: pointer; padding: 14px 0; }
.ft { display: flex; gap: 16px; flex-wrap: wrap; padding: 18px 7vw 32px; color: var(--muted); font-size: 13px; }
.ft a { color: var(--muted); }

@media (max-width: 720px) {
  body { overflow-x: hidden; }
  .top {
    position: absolute;
    padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
  }
  .brand b { font-size: 13px; letter-spacing: .14em; }
  .brand small { letter-spacing: .12em; }
  .lang > button { min-height: 44px; padding: 8px 14px; }
  .hero { min-height: 0; display: block; }
  .hero-pic, .hero-pic img {
    position: relative; inset: auto; display: block;
    width: 100%; height: auto; object-fit: contain; object-position: center;
    transform: none; animation: none;
  }
  .hero canvas { display: none; }
  .veil { display: none; }
  .hero-copy { padding: 18px 16px 4px; }
  .hero h1 { font-size: 40px; word-break: keep-all; }
  .hero-copy p.lead { font-size: 16px; word-break: keep-all; }
  .cats, .board, .plan-grid, .jobs-grid { grid-template-columns: 1fr; }
  .cats { margin: 14px 16px 0; padding-bottom: 8px; gap: 8px; }
  .cat { min-height: 44px; padding: 14px; }
  .cat strong { font-size: 28px; }
  .player { position: static; }
  .board, .plan, .jobs-kit, .seo, .ft { padding-left: 16px; padding-right: 16px; }
  .plan { padding-top: 36px; }
  .plan h2, .jobs-acc summary { font-size: 32px; }
  .feed a.row, .feed button.row { grid-template-columns: 56px 1fr; min-height: 44px; }
  .feed--major a.row, .feed--major button.row { grid-template-columns: 76px 1fr; }
  .cut b { font-size: 20px; }
  .col-h { font-size: 30px; }
  .cols { gap: 24px; }
  .ft { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-pic img, .feed li, .cat { animation: none; transition: none; }
}
