:root {
  --brand: #3A3C84;
  --brand-light: #5b5ec4;
  --accent: #2E74B5;
  --bg: #12141c;
  --panel: #1a1d29;
  --panel-2: #212536;
  --line: #2e3346;
  --text: #e8eaf2;
  --muted: #8f96ad;
  --new: #f0a83c;
  --fail: #d46a6a;
  --radius: 10px;
}

* { box-sizing: border-box; }

/* hidden 속성이 항상 이기게 한다.
   .gate/.lightbox 처럼 display를 지정한 클래스가 붙으면 브라우저 기본
   [hidden]{display:none} 을 눌러버려, 숨겼는데도 오버레이가 화면을 덮는다. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { font-weight: 800; margin: 0; letter-spacing: -0.02em; }
.muted { color: var(--muted); font-size: 13px; }

/* ---------------------------------------------------------------- 게이트 */
.gate {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  background: radial-gradient(ellipse at top, #1c2038, var(--bg));
  padding: 20px;
}
.gate-box {
  width: min(360px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 26px;
  text-align: center;
}
.gate-box h1 { font-size: 20px; margin-bottom: 6px; }
.gate-box p { color: var(--muted); font-size: 13px; margin: 0 0 22px; }
.gate-box input {
  width: 100%; padding: 12px 14px; font-size: 16px;
  background: var(--panel-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; text-align: center; letter-spacing: 4px;
}
.gate-box button {
  width: 100%; margin-top: 12px; padding: 12px;
  background: var(--brand); color: #fff;
  border: 0; border-radius: 8px;
  font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.gate-box button:hover { background: var(--brand-light); }
.gate-error { display: block; min-height: 20px; margin-top: 10px; color: var(--fail); font-size: 13px; }

/* ---------------------------------------------------------------- 헤더 */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: var(--brand);
  border-bottom: 1px solid #2b2d63;
}
.topbar-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-main h1 { font-size: 17px; color: #fff; white-space: nowrap; }
.topbar-main h1 em {
  font-style: normal; color: #ff5d5d; font-weight: 800; letter-spacing: 0.04em;
}
.live-dot {
  flex: none; width: 9px; height: 9px; border-radius: 50%;
  background: #ff5d5d; box-shadow: 0 0 0 0 rgba(255,93,93,.5);
  animation: livepulse 1.6s ease-out infinite;
}
@keyframes livepulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,93,93,.55); }
  100% { box-shadow: 0 0 0 9px rgba(255,93,93,0); }
}
.topbar-side { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar-sub {
  color: #dfe2ff; font-size: 13px; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.topbar .muted { color: #c3c6e8; }

.mode-badge {
  flex: none;
  padding: 4px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  background: rgba(255,255,255,.16); color: #fff;
}
.mode-badge.active { background: var(--new); color: #2a1c00; }

.btn-ghost {
  padding: 6px 13px;
  background: rgba(255,255,255,.12); color: #fff;
  border: 1px solid rgba(255,255,255,.2); border-radius: 7px;
  font-family: inherit; font-size: 13px; cursor: pointer;
}
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-ghost[disabled] { opacity: .5; cursor: progress; }

/* ---------------------------------------------------------------- 요약바 */
.summary {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  padding: 11px 20px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.summary .label { color: var(--muted); }
.summary .item { white-space: nowrap; }
.summary .item b { font-weight: 600; }
.summary .item.fresh b { color: var(--new); }

/* ---------------------------------------------------------------- 본문 */
main { padding: 20px; max-width: 1600px; margin: 0 auto; }

/* ---------------------------------------------------------------- 태풍 탭 */
.storm-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.storm-tabs button {
  padding: 9px 18px;
  background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.storm-tabs button.on { background: var(--brand); border-color: var(--brand-light); color: #fff; }
.storm-tabs button:hover:not(.on) { border-color: var(--accent); }

/* ---------------------------------------------------------------- 태풍 정보 패널 */
.storm-info {
  margin-bottom: 22px; padding: 18px 18px 14px;
  background: linear-gradient(160deg, #1e2240, var(--panel));
  border: 1px solid #34386b; border-radius: var(--radius);
}
.info-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; margin-bottom: 14px; }
.info-head h3 { font-size: 20px; }
.info-head .cat {
  padding: 3px 10px; border-radius: 6px;
  background: var(--new); color: #2a1c00; font-size: 12px; font-weight: 700;
}
/* 대표 수치는 항상 6칸이다 (app.js infoPanelHTML 참조).
   넓으면 6열 한 줄, 좁아지면 3×2 로 떨어진다 — 어중간하게 5+1 로 갈라지지 않는다. */
.info-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
@media (max-width: 1180px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px)  { .info-grid { grid-template-columns: repeat(2, 1fr); } }
/* 값이 없는 칸도 자리는 지킨다 */
.info-item.none .val { color: var(--muted); font-weight: 400; }
.info-item {
  padding: 10px 12px;
  background: rgba(0,0,0,.22); border: 1px solid var(--line); border-radius: 8px;
}
.info-item .lbl { display: block; color: var(--muted); font-size: 12px; }
.info-item .val { display: block; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.info-item .val small { font-size: 12px; font-weight: 400; color: var(--muted); }
.info-item .sub { display: block; color: var(--accent); font-size: 12px; font-weight: 600; }

.trend { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.trend .lbl { color: var(--muted); font-size: 12.5px; }
.spark { width: 220px; height: 44px; }
.spark path { fill: none; stroke: var(--new); stroke-width: 2; }
.spark-range { color: var(--muted); font-size: 12.5px; }

/* 역대 태풍 순위 */
.ranking { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); }
.ranking h4 { font-size: 14px; margin-bottom: 9px; }
.ranking .metric { color: var(--muted); font-size: 12px; font-weight: 400; margin-left: 6px; }
.ranking ol { list-style: none; margin: 0; padding: 0; }
.ranking li {
  display: flex; align-items: baseline; gap: 10px;
  padding: 6px 10px; border-radius: 6px; font-size: 13.5px;
}
.ranking li.current {
  background: rgba(240,168,60,.14);
  border: 1px solid rgba(240,168,60,.5);
  margin: 3px 0;
}
.ranking .rank { flex: none; width: 20px; color: var(--muted); font-weight: 600; text-align: right; }
.ranking li.current .rank { color: var(--new); }
.ranking .nm { min-width: 0; }
.ranking .yr { color: var(--muted); font-size: 12px; }
.ranking .now-tag {
  padding: 1px 7px; border-radius: 5px;
  background: var(--new); color: #2a1c00; font-size: 11px; font-weight: 700;
}
.ranking .hpa {
  margin-left: auto; flex: none; width: 128px; text-align: right;
  font-weight: 600; font-variant-numeric: tabular-nums;
}
.ranking .hpa-sub { display: block; color: var(--new); font-size: 10.5px; font-weight: 500; }
.ranking .korea {
  flex: none; width: 110px; text-align: right;
  color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12.5px;
}
.rank-cols {
  display: flex; align-items: baseline; gap: 10px;
  padding: 0 10px 4px; font-size: 11px; color: var(--muted);
}
.rank-cols span:first-child { width: 20px; flex: none; }
.rank-cols span:nth-child(2) { flex: 1; }
.rank-cols .hpa { width: 128px; flex: none; text-align: right; font-weight: 400; margin-left: auto; }
.rank-cols .korea { width: 110px; flex: none; text-align: right; }

/* ---------------------------------------------------------------- 기관 해설문 */
.discussions { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.discussions > h4 { margin: 0 0 12px; font-size: 14px; font-weight: 700; }
.discussions > h4 .metric { margin-left: 8px; color: var(--muted); font-size: 11.5px; font-weight: 400; }

.disc {
  margin-bottom: 10px; padding: 0 14px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px;
}
.disc > summary {
  padding: 11px 0; cursor: pointer; font-size: 13.5px; list-style: none;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
}
.disc > summary::before { content: "▸ "; color: var(--accent); }
.disc[open] > summary::before { content: "▾ "; }
.disc > summary b { color: var(--accent); }
.disc-issued { margin-left: auto; color: var(--muted); font-size: 11.5px; }

.disc-sec { padding: 2px 0 10px; }
.disc-label {
  display: inline-block; margin-bottom: 5px; padding: 2px 8px; border-radius: 4px;
  background: rgba(46,116,181,.18); color: #8bc0ef; font-size: 11.5px; font-weight: 600;
}
.disc-sec p {
  margin: 0; color: var(--text); font-size: 12.5px; line-height: 1.65;
  white-space: pre-wrap; word-break: break-word;
}
/* 한국어 자동 요약 — 원문 대체가 아니라 읽기 보조임을 눈에 띄게 표시 */
.disc-summary {
  margin: 4px 0 12px; padding: 11px 13px;
  background: rgba(46,116,181,.08);
  border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0;
}
.disc-summary p {
  margin: 6px 0 0; color: var(--text); font-size: 13px; line-height: 1.75;
  white-space: pre-wrap;
}
.disc-label.warnlbl { background: rgba(240,168,60,.18); color: var(--new); }
.disc-caution { display: block; margin-top: 8px; color: var(--muted); font-size: 11.5px; }

.news-list { margin: 4px 0 0; padding: 0 0 0 2px; list-style: none; }
.news-list li {
  display: flex; gap: 10px; align-items: baseline;
  padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px;
}
.news-list li:last-child { border-bottom: 0; }
.news-list a { color: var(--text); text-decoration: none; flex: 1; line-height: 1.5; }
.news-list a:hover { color: var(--accent); text-decoration: underline; }
.news-when { flex: none; color: var(--muted); font-size: 11.5px; }

.disc-next { margin: 8px 0 0; color: var(--new); font-size: 12.5px; }
.disc-note { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.disc-origin { margin: 8px 0 12px; font-size: 12px; }
.disc-origin a { color: var(--accent); text-decoration: none; }
.chg-table.kma-report th { color: var(--text); font-weight: 600; }

.glossary { margin-top: 6px; }
.glossary > summary { cursor: pointer; color: var(--muted); font-size: 12px; list-style: none; }
.glossary > summary::before { content: "▸ "; color: var(--accent); }
.glossary[open] > summary::before { content: "▾ "; }
.glossary ul { margin: 8px 0 0; padding-left: 18px; }
.glossary li { color: var(--muted); font-size: 12px; line-height: 1.7; }
.glossary li b { color: var(--text); font-weight: 600; }

/* 사용자가 직접 접어둔 태풍 안내 — 되돌릴 방법을 같은 줄에 둔다 */
.hidden-note {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  margin-bottom: 14px; padding: 11px 14px;
  background: rgba(240,168,60,.10);
  border: 1px solid rgba(240,168,60,.45); border-radius: 8px;
  font-size: 13px;
}
.hidden-note b { color: var(--new); }
.other-storm .why {
  padding: 2px 7px; border-radius: 4px;
  background: rgba(240,168,60,.16); color: var(--new);
  font-size: 11px; font-weight: 600;
}

/* ---------------------------------------------------------------- 추적 토글 */
.watch { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.watch i { color: var(--muted); font-size: 11px; font-style: normal; margin-right: 2px; }
.watch-btn {
  padding: 3px 9px; border-radius: 5px; cursor: pointer;
  background: transparent; color: var(--muted);
  border: 1px solid var(--line); font-family: inherit; font-size: 11.5px;
}
.watch-btn:hover { color: var(--text); border-color: var(--accent); }
.watch-btn.on { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.watch-btn[disabled] { opacity: .5; cursor: progress; }

/* ---------------------------------------------------------------- 예보 변화 */
.changes { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.changes > h4 {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 0 0 12px; font-size: 14px; font-weight: 700;
}
.consensus {
  padding: 3px 9px; border-radius: 5px;
  background: rgba(240,168,60,.16); color: var(--new);
  border: 1px solid rgba(240,168,60,.4);
  font-size: 12px; font-weight: 600;
}
.chg-agency {
  margin-bottom: 12px; padding: 12px 14px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px;
}
.chg-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.chg-head > b { font-size: 13.5px; color: var(--accent); }
.chg-trend { color: var(--muted); font-size: 12.5px; }
.chg-trend b.down { color: #6fc47f; }
.chg-trend b.up { color: var(--fail); }

.chg-summary { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 9px; }
.chg-item { font-size: 13px; }
.chg-item i { display: block; color: var(--muted); font-size: 11px; font-style: normal; }
.chg-item small { color: var(--muted); }

.delta { font-weight: 700; font-variant-numeric: tabular-nums; }
/* 증감 색은 숫자 부호가 아니라 **뜻**을 따른다 (sign() 의 pol 참조).
   warn = 세지거나 가까워지는 쪽 / ease = 약해지거나 멀어지는 쪽 / flat = 중립.
   변화의 방향을 읽기 쉽게 한 것이지 위험도 판정이 아니다. */
.delta.warn { color: var(--new); }     /* 세짐·접근 */
.delta.ease { color: #6fc47f; }        /* 약해짐·멀어짐 */
.delta.flat { color: var(--muted); }

.chg-detail { margin-top: 10px; }
.chg-detail > summary {
  cursor: pointer; color: var(--muted); font-size: 12px; list-style: none;
}
.chg-detail > summary::before { content: "▸ "; color: var(--accent); }
.chg-detail[open] > summary::before { content: "▾ "; }
.chg-table-wrap { overflow-x: auto; margin-top: 10px; }
.chg-table { width: 100%; border-collapse: collapse; font-size: 12.5px; white-space: nowrap; }
.chg-table th, .chg-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.chg-table th { color: var(--muted); font-weight: 500; font-size: 11.5px; }
.chg-table th.num, .chg-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.chg-table td small { color: var(--muted); font-size: 10.5px; margin-left: 1px; }
.chg-table td .lead { color: var(--muted); font-size: 10.5px; margin-left: 6px; }
.chg-table td.pos { color: var(--muted); font-size: 11.5px; }
.chg-table tbody tr:first-child { background: rgba(46,116,181,.08); }
.chg-table tbody tr:last-child td { border-bottom: 0; }

.chg-issued { margin: 9px 0 0; color: var(--muted); font-size: 11.5px; }
.chg-wait { margin: 8px 0 0; color: var(--muted); font-size: 12.5px; }
.chg-note { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.rank-note { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

section { margin-bottom: 34px; }
.sec-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px;
  padding-bottom: 9px; margin-bottom: 16px;
  border-bottom: 2px solid var(--line);
}
.sec-head h2 { font-size: 18px; }
.sec-head .tag {
  padding: 2px 8px; border-radius: 5px;
  background: rgba(46,116,181,.2); color: #8bc0ef;
  font-size: 12px; font-weight: 500;
}

/* 예보 이미지는 한 줄에 4장, 모바일은 2×2. 작게 보이므로 클릭하면 확대된다 */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 1240px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px)  { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.card-head {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 12px 14px 10px;
}
.card-head .titles { min-width: 0; flex: 1; }
.card-head .agency { font-size: 12px; color: var(--accent); font-weight: 600; }
.card-head .name { font-size: 15px; font-weight: 600; }
.badge-new {
  flex: none; padding: 2px 7px; border-radius: 5px;
  background: var(--new); color: #2a1c00;
  font-size: 11px; font-weight: 700;
}

.card-img {
  display: block; width: 100%; background: #0c0e14;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  cursor: zoom-in;
}
.card-img img { display: block; width: 100%; height: auto; }
.card-empty {
  padding: 40px 14px; text-align: center; color: var(--muted); font-size: 13px;
  border-top: 1px solid var(--line);
}

.card-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  padding: 10px 14px; font-size: 12px;
}
.card-foot .when { color: var(--text); font-weight: 500; }
.card-foot .note { color: var(--muted); flex-basis: 100%; }
.card-foot a { color: var(--accent); text-decoration: none; margin-left: auto; }
.card-foot a:hover { text-decoration: underline; }
.card-foot .fail { color: var(--fail); }

/* ---------------------------------------------------------------- 임베드·링크 */
/* ---------------------------------------------------------------- 상단 바로가기 */
.quick {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 11px 20px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}
.quick-btn {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 6px 13px;
  background: var(--panel); color: var(--text);
  border: 1px solid var(--accent); border-radius: 7px;
  font-size: 13px; font-weight: 500; text-decoration: none;
}
.quick-btn span { color: var(--muted); font-size: 11.5px; font-weight: 300; }
.quick-btn:hover { background: var(--accent); color: #fff; }
.quick-btn:hover span { color: #dbeaf8; }

/* ---------------------------------------------------------------- 임베드 */
.embed {
  margin-bottom: 16px;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--panel);
}
.embed-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  padding: 11px 14px; font-size: 14px;
}
.embed-head .agency { color: var(--accent); font-size: 12px; font-weight: 600; }
.embed-head a { margin-left: auto; color: var(--accent); font-size: 12.5px; text-decoration: none; }
.embed-head a:hover { text-decoration: underline; }
.embed iframe { display: block; width: 100%; height: 480px; border: 0; border-top: 1px solid var(--line); }
.embed-note { padding: 9px 14px; color: var(--muted); font-size: 12.5px; }

/* 대표 이미지 (기상청 진로예측도) — Windy 다음에 크게 */
.embed.feature .card-img {
  display: block; background: #0c0e14; cursor: zoom-in;
  border-top: 1px solid var(--line);
}
.embed.feature .card-img img {
  display: block; width: 100%; max-height: 620px; object-fit: contain; margin: 0 auto;
}
.embed.feature .feat-when { color: var(--text); font-size: 12px; }

/* 상대가 삽입을 차단한 화면 — iframe 대신 크게 눌러 여는 패널 */
a.embed.blocked { display: block; text-decoration: none; color: inherit; }
a.embed.blocked:hover { border-color: var(--accent); }
.blocked-body {
  padding: 26px 16px 24px; text-align: center;
  border-top: 1px solid var(--line);
  background: repeating-linear-gradient(45deg, #191c28, #191c28 12px, #1c2030 12px, #1c2030 24px);
}
.blocked-body strong { display: block; font-size: 16px; color: var(--accent); }
.blocked-body span { display: block; margin-top: 5px; color: var(--text); font-size: 13px; }
.blocked-body em { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; font-style: normal; }

/* 태풍별 묶음 (섹션 안의 소제목) */
.storm-block { margin-bottom: 22px; }
.storm-block h3 {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px;
  margin-bottom: 11px; font-size: 15px; font-weight: 700;
}
.storm-link {
  padding: 3px 9px; border-radius: 5px;
  background: rgba(46,116,181,.16); color: #8bc0ef;
  border: 1px solid rgba(46,116,181,.45);
  font-size: 12px; font-weight: 500; text-decoration: none;
}
.storm-link:hover { background: var(--accent); color: #fff; }

.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.link-card {
  display: block; padding: 14px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: inherit;
}
.link-card:hover { border-color: var(--accent); }
.link-card .name { font-weight: 600; font-size: 14px; color: var(--accent); }
.link-card .cp { color: var(--muted); font-size: 12.5px; margin-top: 3px; }

/* ---------------------------------------------------------------- 기타 태풍 */
.others {
  margin: 24px 0 34px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.others > summary {
  padding: 13px 16px;
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
  list-style: none;
}
.others > summary::before { content: "▸ "; color: var(--accent); }
.others[open] > summary::before { content: "▾ "; }
.others > summary:hover { color: var(--text); }
.other-storm { padding: 0 16px 4px; border-top: 1px solid var(--line); }
.other-storm h4 {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px;
  margin: 0; padding: 12px 0 10px; font-size: 14px; font-weight: 600;
}
.other-storm .dist { color: var(--muted); font-weight: 300; font-size: 13px; }
.others .warn {
  margin: 0; padding: 10px 16px 14px;
  color: var(--new); font-size: 12.5px; line-height: 1.55;
}

.empty-state {
  padding: 44px 20px; text-align: center;
  background: var(--panel); border: 1px dashed var(--line); border-radius: var(--radius);
}
.empty-state strong { display: block; font-size: 16px; margin-bottom: 6px; }
.empty-state span { color: var(--muted); font-size: 13.5px; }

.foot {
  padding: 22px 20px 40px; max-width: 1600px; margin: 0 auto;
  border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted);
}
.foot p { margin: 0 0 4px; }

/* ---------------------------------------------------------------- 라이트박스 */
.lightbox {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 24px;
  background: rgba(6,7,11,.94);
}
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; }
.lightbox-cap { color: var(--muted); font-size: 13px; text-align: center; }
.lightbox-close {
  position: absolute; top: 14px; right: 18px;
  width: 40px; height: 40px; line-height: 1;
  background: rgba(255,255,255,.1); color: #fff;
  border: 1px solid var(--line); border-radius: 8px;
  font-size: 26px; cursor: pointer;
}

@media (max-width: 640px) {
  main { padding: 12px; }
  .topbar { padding: 12px 14px; }
  .summary, .quick { padding: 10px 12px; }
  /* 요청대로 모바일에서도 2×2 유지 — 작아진 만큼 탭하면 확대해서 본다 */
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-head { padding: 9px 10px 7px; }
  .card-head .name { font-size: 13px; }
  .card-head .agency { font-size: 11px; }
  .card-foot { padding: 8px 10px; font-size: 11px; }
  .card-foot .note { display: none; }
  .embed iframe { height: 380px; }
  .links { grid-template-columns: 1fr; }
}

/* ------------------------------------------------- 태풍 예보 전후 비교 섹션
   알고 싶은 것은 두 가지 — 강도가 어떻게 조정됐나, 진로가 어느 쪽으로 틀었나.
   나침반은 '방향' 표시용이며 지도가 아니다(진로선을 그리지 않는다). */
.cmp-consensus {
  margin: 0 0 12px; padding: 8px 13px; border-radius: var(--radius);
  font-size: 13.5px; font-weight: 600;
}
.cmp-consensus.agreed { background: rgba(46,116,181,.18); color: #9ac4ea; }
.cmp-consensus.split  { background: rgba(240,168,60,.14); color: var(--new); }

.cmp-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  /* 이 섹션은 영상으로 캡처된다 — 폭 대비 납작하지 않게 16:9 를 지킨다.
     내용이 짧으면 카드가 늘어나 비율을 채우고(바닥도 나란해짐),
     내용이 더 길면 비율보다 자라는 것을 막지 않는다 (모바일 1열 등). */
  aspect-ratio: 16 / 9;
}
.cmp-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px 16px;
}
.cmp-card > header {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  padding-bottom: 9px; border-bottom: 1px solid var(--line);
}
.cmp-card > header > b { font-size: 14px; color: var(--accent); }
.cmp-when { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.cmp-card h5 {
  margin: 13px 0 8px; font-size: 11.5px; font-weight: 600;
  color: var(--muted); letter-spacing: .06em;
}

/* ① 진로 — 나침반 + 판독값 */
.cmp-track { display: flex; align-items: center; gap: 14px; }
.cmp-track.empty {
  display: block; color: var(--muted); font-size: 12.5px; padding: 10px 0;
}
.dial { width: 108px; height: 108px; flex: none; }
.dial-ring { fill: rgba(255,255,255,.02); stroke: var(--line); stroke-width: 1.4; }
.dial-cross { stroke: var(--line); stroke-width: 1; }
.dial-tick { fill: var(--muted); font-size: 10px; text-anchor: middle; }
.dial-prev { stroke: #5b6178; stroke-width: 2.6; stroke-linecap: round; }
.dial-prev-tip { fill: #5b6178; }
.dial-curr { stroke: var(--new); stroke-width: 3.4; stroke-linecap: round; }
.dial-curr-tip { fill: var(--new); }

.cmp-track-read { min-width: 0; }
.cmp-now { display: flex; align-items: baseline; gap: 7px; }
.cmp-now b { font-size: 22px; font-weight: 800; }
.cmp-now span { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cmp-was { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.cmp-turn {
  display: inline-block; margin-top: 7px; padding: 2px 9px;
  border-radius: 999px; font-size: 12.5px; font-weight: 700;
}
.cmp-turn.flat { background: rgba(143,150,173,.16); color: var(--muted); }
/* 시계·반시계 자체는 위험도와 무관하다(태풍 위치에 따라 뜻이 달라짐) → 중립색 */
.cmp-turn.cw, .cmp-turn.ccw { background: rgba(46,116,181,.18); color: #9ac4ea; }
.cmp-span { font-size: 11.5px; color: var(--muted); margin-top: 5px; }

/* ② 강도 — 직전 → 현재 → 증감 */
.cmp-int { width: 100%; border-collapse: collapse; font-size: 13px; }
.cmp-int th {
  text-align: left; font-weight: 400; color: var(--muted);
  padding: 5px 0; white-space: nowrap;
}
.cmp-int thead th {
  text-align: right; font-size: 11px; padding-bottom: 3px;
  border-bottom: 1px solid var(--line);
}
.cmp-int thead th:first-child { text-align: left; }
/* 값이 없는 기관도 줄을 지우지 않는다 — 기관끼리 같은 높이에서 비교되게 */
.cmp-int tr.na td { color: var(--muted); font-weight: 400; }
.cmp-int td { padding: 5px 0; text-align: right; font-variant-numeric: tabular-nums; }
.cmp-int td.was { color: var(--muted); font-size: 12px; }
.cmp-int td.now { font-weight: 700; padding-left: 10px; }
.cmp-int td.d { padding-left: 10px; width: 72px; }
.cmp-none { color: var(--muted); font-size: 12.5px; margin: 4px 0 0; }

/* 구간별 방위각 */
.cmp-wins {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line);
}
.cmp-win { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); }
.cmp-win i { display: block; font-style: normal; font-size: 10.5px; }
.cmp-win b { color: var(--text); font-weight: 700; }

@media (max-width: 560px) {
  .cmp-grid { grid-template-columns: 1fr; }
  .dial { width: 92px; height: 92px; }
  .cmp-now b { font-size: 19px; }
}

/* 날짜별 부산 거리 예보 변화 — 같은 날짜끼리 비교했음을 눈으로 보이게 한다 */
.cmp-dist { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.cmp-dist th {
  text-align: left; font-weight: 400; color: var(--muted);
  padding: 3px 0; white-space: nowrap;
}
.cmp-dist td.d { text-align: right; padding: 3px 10px 3px 0; font-variant-numeric: tabular-nums; }
.cmp-dist td.mv { color: var(--muted); font-size: 11.5px; white-space: nowrap; }

.cmp-legend { margin: 0 0 12px; font-size: 12px; color: var(--muted); }
.cmp-legend .delta { font-weight: 700; }

/* ================================================================= 살아있는 화면
   '지금 돌아가고 있다'가 보이게 하는 효과들. 값 자체는 바꾸지 않는다.
   움직임을 원치 않는 환경에서는 맨 아래에서 전부 끈다. */

/* 블록 등장 — 화면에 들어올 때 떠오르고, 나가면 되돌아가 다시 재생된다.
   ★ 기본 상태를 절대 숨기지 않는다. 예전에 `.rise { opacity:0 }` 로 두고
     `.in` 이 붙어야 보이게 했더니, 관찰자가 발동하지 않는 상황(탭이 뒤에 있거나
     화면이 그려지지 않는 경우)에서 **화면 전체가 백지**가 됐다 (2026-08-03).
     등장 효과는 '있으면 좋은 것'이고, 내용이 보이는 것이 먼저다. */
.rise.in { animation: risein .9s cubic-bezier(.2,.7,.3,1) both; }
@keyframes risein {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* 수치는 세어 올라가는 동안 살짝 빛난다 */
.info-item .val, .cmp-now b, .cmp-int td.now { transition: color .4s ease; }
.storm-info.again .info-item .val { animation: figurein 1.4s ease-out both; }
@keyframes figurein {
  from { opacity: .25; letter-spacing: .04em; }
  to   { opacity: 1; letter-spacing: 0; }
}

/* 증감값 — 화면에 들어올 때 다시 한 번 떠오른다 */
.cmp-card.again .delta, .card.again .delta { animation: deltain 1.1s ease-out both; }
@keyframes deltain {
  0%   { opacity: 0; transform: translateY(-6px); }
  45%  { opacity: 1; transform: none; }
  100% { opacity: 1; transform: none; }
}

/* 진로 화살표 — 현재 발표 쪽만 맥동시킨다(직전은 회색으로 가만히) */
.cmp-card.in .dial-curr, .cmp-card.in .dial-curr-tip {
  animation: arrowbeat 2.6s ease-in-out infinite;
}
@keyframes arrowbeat {
  0%, 100% { opacity: 1; }
  45%      { opacity: .3; }
}
.cmp-card.again .dial-curr-tip { transform-origin: center; }
/* 나침반 = 레이더. 값과 무관한 배경 효과이므로 수치를 건드리지 않는다. */
.dial-ring2 { fill: none; stroke: var(--line); stroke-width: 1; opacity: .6; }
.radar { animation: radarspin 4.5s linear infinite; }
@keyframes radarspin { to { transform: rotate(360deg); } }
.radar-sweep { fill: var(--accent); opacity: .16; }
.radar-edge { stroke: var(--accent); stroke-width: 1.6; opacity: .55; }
/* 동심원이 퍼져 나간다 */
.radar-ping { fill: none; stroke: var(--accent); stroke-width: 1.2; }
.radar-ping.p1 { animation: ping 3.6s ease-out infinite; }
.radar-ping.p2 { animation: ping 3.6s ease-out infinite 1.8s; }
@keyframes ping {
  0%   { r: 6;  opacity: .55; }
  100% { r: 44; opacity: 0; }
}

/* 회전 배지 · 합의 문구 — 천천히 숨쉰다 */
.cmp-turn:not(.flat), .cmp-consensus { animation: breathe 3.4s ease-in-out infinite; }
@keyframes breathe { 0%,100% { opacity: 1; } 50% { opacity: .62; } }

/* NEW 뱃지 — 새로 들어온 것이 눈에 띄게 */
.badge-new { animation: newbeat 1.8s ease-out infinite; }
@keyframes newbeat {
  0%   { box-shadow: 0 0 0 0 rgba(240,168,60,.55); }
  100% { box-shadow: 0 0 0 8px rgba(240,168,60,0); }
}

/* 갱신 요약 바 — 항목마다 작은 점이 순서대로 켜진다 */
.summary .label::before {
  content: ""; display: inline-block; width: 6px; height: 6px;
  margin-right: 7px; border-radius: 50%; background: var(--new);
  animation: livepulse 1.6s ease-out infinite;
}

/* 기압 스파크라인 — 선이 그려지며 나타난다 */
.storm-info.again .spark path {
  stroke-dasharray: 400; stroke-dashoffset: 400;
  animation: draw 2s ease-out forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* 역대 순위 막대 — 왼쪽에서 자라난다 */
.storm-info.again .ranking li { animation: growin 1s ease-out both; }
.storm-info.again .ranking li:nth-child(2) { animation-delay: .06s; }
.storm-info.again .ranking li:nth-child(3) { animation-delay: .12s; }
.storm-info.again .ranking li:nth-child(4) { animation-delay: .18s; }
.storm-info.again .ranking li:nth-child(5) { animation-delay: .24s; }
.storm-info.again .ranking li:nth-child(6) { animation-delay: .30s; }
.storm-info.again .ranking li:nth-child(7) { animation-delay: .36s; }
@keyframes growin {
  from { opacity: 0; transform: translateX(-14px); }
  to   { opacity: 1; transform: none; }
}
/* 현재 태풍 줄은 계속 은은하게 강조 */
.ranking li.current { animation: breathe 3.4s ease-in-out infinite; }

/* 이미지 카드 — 수집이 도는 동안 헤더에 가느다란 진행선 */
.card-head { position: relative; overflow: hidden; }
.card-head::after {
  content: ""; position: absolute; left: -40%; bottom: 0;
  width: 40%; height: 1.5px; background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: sweep 3.2s linear infinite;
}
@keyframes sweep { to { left: 120%; } }

/* 새로고침 버튼 — 눌러야 할 것 같은 미세한 신호 */
.btn-ghost { transition: background .2s ease, border-color .2s ease; }
.btn-ghost:hover { border-color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .rise.in { animation: none; }
  .live-dot, .badge-new, .cmp-turn, .cmp-consensus, .ranking li.current,
  .dial-ring, .card-head::after, .summary .label::before,
  .cmp-card.in .dial-curr, .cmp-card.in .dial-curr-tip,
  .cmp-card.again .delta, .card.again .delta,
  .storm-info.again .info-item .val, .storm-info.again .spark path,
  .storm-info.again .ranking li { animation: none; }
  .storm-info.again .spark path { stroke-dashoffset: 0; }
}

/* ---------------------------------------------- 배경으로만 사는 효과들 (값 불변)
   숫자를 다시 세는 대신 배경이 계속 움직여 '돌아가는 화면'으로 보이게 한다. */

/* 섹션 제목 밑으로 지나가는 빛줄기 */
.sec-head { position: relative; overflow: hidden; }
.sec-head::after {
  content: ""; position: absolute; left: -30%; bottom: 0;
  width: 30%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-light), transparent);
  animation: sweep 5.5s linear infinite;
}

/* 상단 바 — 아주 느린 색 흐름 */
.topbar {
  background-size: 200% 100%;
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { background-position: 100% 0; } }

/* 전후 비교 카드 테두리에 은은한 숨결 */
.cmp-card { position: relative; }
.cmp-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: var(--radius);
  border: 1px solid transparent; pointer-events: none;
  animation: edgeglow 6s ease-in-out infinite;
}
@keyframes edgeglow {
  0%, 100% { border-color: transparent; }
  50%      { border-color: rgba(46,116,181,.35); }
}

/* 기관 라벨 앞 점 — 수집이 살아있다는 표시 */
.cmp-card > header > b::before {
  content: ""; display: inline-block; width: 5px; height: 5px;
  margin-right: 6px; border-radius: 50%; background: var(--accent);
  animation: livepulse 2.4s ease-out infinite;
}

/* 스파크라인 위를 훑는 점 */
.trend { position: relative; overflow: hidden; }
.trend::after {
  content: ""; position: absolute; left: -20%; top: 0;
  width: 20%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(46,116,181,.12), transparent);
  animation: sweep 6.5s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .radar, .radar-ping, .sec-head::after, .topbar, .cmp-card::before,
  .cmp-card > header > b::before, .trend::after { animation: none; }
  .radar-ping { opacity: 0; }
}

/* ============================================================ 영상 캡처 모드
   `?video=1` 로 켠다. 16:9 한 화면에 담기는 비율로 다시 짠다.

   상황판은 오래 들여다보는 화면이라 정보 밀도가 높아야 하고, 영상은 스쳐 가는
   화면이라 크고 성겨야 한다. 두 요구가 반대라서 모드로 나눴다 —
   이 규칙은 감시용 화면에는 전혀 영향을 주지 않는다. (2026-08-05)

   기준: 1920x1080 으로 찍어 1280x720 으로 내보낸다. 휴대폰으로 볼 때
   가장 작은 글자가 화면 높이의 1/40 이하로 내려가지 않게 잡았다. */

/* 1) 폭·여백 — 한 블록이 한 화면에 들어오도록 좁히고 조인다 */
.video main { max-width: 1500px; padding: 14px 26px; }
.video section { margin-bottom: 18px; }
/* 캡처가 블록을 화면 맨 위에 붙일 때 상단 고정 바(sticky topbar) 밑에 깔리지 않게.
   topbar 실측 CSS 높이 67px + 숨 쉴 틈 (2026-08-10 실측). */
.video section, .video .storm-info, .video .cmp-card, .video .cmp-grid,
.video .cmp-track, .video .cmp-dist, .video .info-grid, .video .ranking {
  scroll-margin-top: 84px;
}
.video .sec-head { margin-bottom: 10px; }
.video .sec-head h2 { font-size: 26px; }
.video .storm-info { padding: 16px 20px; }

/* 2) 글자 — 멀리서도 읽히게 키운다 */
.video .topbar-main h1 { font-size: 24px; }
.video .mode-badge { font-size: 15px; }
.video .topbar-sub { font-size: 17px; }
.video .summary { font-size: 16px; padding: 9px 26px; }
.video .info-item .lbl { font-size: 15px; }
.video .info-item .val { font-size: 34px; }
.video .info-item .val small { font-size: 16px; }
.video .info-item .sub { font-size: 14px; }
/* 영상은 16:9 한 화면에 6칸이 3×2 로 딱 들어가야 읽힌다.
   6열 한 줄로 두면 글자가 너무 작아지고, 세로로 길면 프레임을 넘긴다. */
.video .info-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 14px; }
.video .info-item { padding: 14px 16px; }

/* 3) 전후 비교 — 16:9 프레임 기준으로 재단한다 (2026-08-07 실측 재설계).
      세로 배치 카드는 374×1162(비율 1:3.11)라 어떻게 잘라도 16:9 에 안 들어갔다.
      ① 카드를 **가로형**으로 편다: 왼쪽 진로(나침반+방위) / 오른쪽 강도 표.
         한 장이 그대로 16:9 프레임을 채운다.
      ② 날짜별 거리 표·구간별 방위각(.cmp-extra)은 평소 접는다 — 4장 개요가
         높이 868px(1544 폭 기준 16:9) 안에 들어가야 하므로. 그 표가 주인공인
         컷에서만 캡처가 html.dist-open 을 켜서 펼친다.
      ③ auto-fit 금지 — 확대하면 열 수가 멋대로 바뀌어 카드가 반쯤 잘린다. */
.video .cmp-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
.video .cmp-card {
  padding: 14px 22px 18px;
  display: grid;
  grid-template-columns: 37% 1fr;
  gap: 4px 26px;
  align-items: start;
  overflow: hidden;                 /* 표가 넘쳐도 카드 밖으로 삐져나가지 않게 */
}
/* 강도 표가 카드 밖으로 넘치던 원인 — 항목명이 nowrap 이라 표의 최소 폭이
   칸보다 커졌다. 영상 모드에서는 항목명 줄바꿈을 허용해 표를 칸에 맞춘다. */
.video .cmp-int { table-layout: fixed; }
/* 항목명 칸을 넓혀 '중심기압'이 어중간하게 꺾이지 않게 */
.video .cmp-int th { white-space: normal; line-height: 1.25; width: 38%; }
.video .cmp-int td.d { width: 20%; }
.video .cmp-int th, .video .cmp-int td { padding: 4px 0; }
/* 방위 이름(서북서)이 어중간하게 꺾이지 않게 — 다이얼을 조금 줄이고 이름은 한 줄 유지 */
.video .cmp-track { gap: 10px; }
.video .cmp-now { white-space: nowrap; }
.video .cmp-card > header { grid-column: 1 / -1; }
.video .cmp-card .cmp-extra { grid-column: 1 / -1; display: none; }
.video.dist-open .cmp-card .cmp-extra { display: block; }
/* 근접 컷 — 확대하면 CSS 뷰포트가 좁아져 2열 카드가 짜부라진다.
   카드 하나를 크게 잡는 컷에서는 캡처가 html.solo 를 켜 1열로 편다. */
.video.solo .cmp-grid { grid-template-columns: 1fr; }
.video.dist-open .cmp-card { grid-template-columns: 1fr; }
.video.dist-open .cmp-card .cmp-left { display: none; }   /* 거리 컷에선 표만 크게 */
.video .cmp-card > header > b { font-size: 19px; }
.video .cmp-when { font-size: 15px; }
.video .cmp-card h5 { font-size: 14px; margin: 8px 0 4px; }
.video .cmp-now b { font-size: 27px; }
.video .cmp-now span { font-size: 20px; }
.video .cmp-was { font-size: 16px; }
.video .cmp-turn { font-size: 16px; padding: 3px 12px; }
.video .cmp-span { font-size: 14px; }
.video .dial { width: 118px; height: 118px; flex: none; }
.video .cmp-int { font-size: 17px; }
.video .cmp-int thead th { font-size: 14px; }
.video .cmp-dist { font-size: 16px; }
.video .cmp-dist td.mv { font-size: 14px; }
.video .cmp-win { font-size: 15px; }
.video .cmp-win i { font-size: 13px; }
.video .cmp-legend { font-size: 15px; }
.video .cmp-consensus { font-size: 17px; }

/* 4) 역대 순위 — 한 화면에 7줄이 다 들어가야 한다 */
.video .ranking h4 { font-size: 19px; }
.video .ranking li { font-size: 18px; padding: 8px 10px; }
.video .ranking .yr, .video .ranking .korea { font-size: 15px; }
.video .ranking .hpa { font-size: 19px; }

/* 5) 통보문 표 — 영상에서 읽히는 크기로 */
.video .chg-table { font-size: 16px; }
.video .chg-table th { font-size: 14px; }

/* 6) 영상에서 쓸모없는 것은 감춰 화면을 벌지 않는다 */
.video .btn-ghost,
.video .watch,
.video .foot,
.video .chg-note,
.video .rank-note,
.video .hidden-note,
.video .discussion .disclaimer,
.video .glossary { display: none !important; }

/* 7) 이미지 카드가 세로로 길어지면 한 화면을 넘긴다 — 높이를 묶는다 */
.video .card img { max-height: 380px; object-fit: contain; }
.video .embed iframe { height: 560px; }

/* 8) 대비를 조금 올린다 (영상 압축에서 흐린 회색이 뭉개진다) */
.video { --muted: #a6adc4; --line: #39405a; }

/* --------------------------------------------- 영상 모드: 나머지 섹션도 16:9 재단
   원칙 — 섹션 하나가 캡처 프레임(1080 높이) 하나에 들어가거나,
   스크롤 훑기에서 흐름이 끊기지 않는 높이로 묶는다. (2026-08-10) */

/* 이미지 카드 그리드 — 2×2 로 크게. 4열 유지 시 영상에서 이미지가 너무 작다 */
.video .grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px; }
.video .card img { max-height: 430px; width: 100%; object-fit: contain; background: #0d0f16; }
.video .card .agency { font-size: 15px; }
.video .card .name { font-size: 18px; font-weight: 700; }
.video .card-foot { font-size: 14px; }

/* 기상청 진로도(대표 단독 배치) — 한 프레임에 지도가 통째로 들어오게 */
.video .embed.feature img { max-height: 880px; width: 100%; object-fit: contain; }
.video .embed-head b { font-size: 19px; }
.video .embed-head .agency, .video .feat-when { font-size: 15px; }

/* 기관 예보 해설(요약·통보문) — 캡처에서 읽히는 크기 */
.video .discussions > h4 { font-size: 20px; }
.video .discussion .summary-box, .video .discussion p { font-size: 17px; line-height: 1.65; }
.video .discussion summary { font-size: 17px; }

/* 역대 순위 — 7줄 + 현재 태풍이 한 프레임 */
.video .ranking { padding-top: 16px; }
.video .rank-cols { font-size: 14px; }

/* 기타 태풍 접힌 줄 — 캡처 대상이 아니므로 조용히 */
.video .others { font-size: 15px; }

/* 바로가기 링크 — 영상에 담을 내용이 아니다. 프레임만 낭비하므로 숨긴다 */
.video section:has(.links) { display: none; }

/* 태풍 선택 탭 — 어떤 태풍 화면인지 알려주므로 남기되 크게 */
.video .storm-tabs button { font-size: 17px; padding: 9px 18px; }

/* 위성 루프 뱃지 — 이 카드는 정지 사진이 아니라 돌고 있다는 표시 */
.badge-loop {
  flex: none; padding: 3px 9px; border-radius: 999px;
  background: rgba(46,116,181,.22); color: #9ac4ea;
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  animation: breathe 3.4s ease-in-out infinite;
}
.video .badge-loop { font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .badge-loop { animation: none; } }

/* Windy 3분할 — 바람·파도·위성을 가로 한 줄로 */
.embed-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-bottom: 14px;
}
.embed-row .embed { margin: 0; }
.embed-row .embed iframe { height: 430px; }
@media (max-width: 900px) { .embed-row { grid-template-columns: 1fr; } }
.video .embed-row { gap: 14px; }
.video .embed-row .embed iframe { height: 460px; }
