:root {
  --bg: #f6f7f9; --panel: #ffffff; --text: #16191f; --muted: #5d6470; --line: #e3e6eb; --link: #1565c0;
  --news: #e53935; --economy: #00897b; --tech: #1e88e5; --sports: #43a047; --ent: #8e24aa; --life: #fb8c00;
  --radius: 12px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Sans", "Noto Sans JP", "Noto Sans", sans-serif;
  color-scheme: light dark;
}
:root:lang(ko) { font-family: system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", Roboto, sans-serif; }
:lang(ko) body { word-break: keep-all; overflow-wrap: anywhere; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1115; --panel: #171a21; --text: #e8eaee; --muted: #9aa3b0; --line: #262b35; --link: #64b5f6; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6; -webkit-text-size-adjust: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }

.masthead { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.masthead-row { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { font-weight: 800; font-size: 1.15rem; color: var(--text); letter-spacing: -0.01em; }
.langs { display: flex; gap: 4px; }
.langs a { padding: 4px 10px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.langs a[aria-current] { background: var(--text); color: var(--panel); }

.feed-head h1 { font-size: 1.5rem; margin: 24px 0 2px; line-height: 1.3; }
.tagline { margin: 0 0 16px; color: var(--muted); }

.datebar { display: flex; align-items: center; justify-content: space-between; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 14px; margin-bottom: 12px; }
.datebar .day { font-weight: 700; font-variant-numeric: tabular-nums; }
.datebar .is-off { color: var(--muted); opacity: 0.5; }

.tabs, .chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.tabs a, .chips a { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel);
  color: var(--muted); font-size: 0.88rem; font-weight: 600; }
.tabs a[aria-current], .chips a[aria-current] { background: var(--text); border-color: var(--text); color: var(--panel); }

.slot-title { font-size: 0.95rem; color: var(--muted); margin: 20px 0 8px; font-weight: 700; }
.cards { display: grid; gap: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--muted); }
.card-title { font-size: 1.08rem; margin: 6px 0 4px; line-height: 1.4; }
.card-title a { color: var(--text); }
.card-summary { margin: 0; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 6px; color: #fff; font-weight: 700; font-size: 0.75rem; background: #607d8b; }
.tag-news { background: var(--news); } .tag-economy { background: var(--economy); } .tag-tech { background: var(--tech); }
.tag-sports { background: var(--sports); } .tag-ent { background: var(--ent); } .tag-life { background: var(--life); }
.src { border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; }
.traffic { font-variant-numeric: tabular-nums; }
.has-video { color: #e53935; font-size: 0.75rem; }
.empty { padding: 40px 0; text-align: center; color: var(--muted); }

.topic { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-top: 20px; }
.crumbs { font-size: 0.9rem; margin-bottom: 8px; }
.topic h1 { font-size: 1.55rem; line-height: 1.35; margin: 8px 0 6px; }
.byline { margin: 0; color: var(--muted); font-size: 0.88rem; }
.block h2 { font-size: 1rem; margin: 22px 0 6px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.lead { font-size: 1.08rem; font-weight: 500; margin: 0; }
.block p { margin: 0 0 12px; }
.note { font-size: 0.88rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 10px; }
.refs { margin: 0; padding-left: 18px; }
.refs li { margin-bottom: 6px; }
.press { color: var(--muted); font-size: 0.85rem; }

.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.yt { margin: 0; }
.yt-play { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 10px;
  overflow: hidden; background: #000; cursor: pointer; }
.yt-play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-icon { position: absolute; left: 50%; top: 50%; width: 64px; height: 44px; transform: translate(-50%, -50%);
  background: #e53935; border-radius: 12px; opacity: 0.92; }
.yt-icon::after { content: ""; position: absolute; left: 26px; top: 13px; border-style: solid; border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff; }
.yt iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; display: block; }
.yt figcaption { font-size: 0.88rem; margin-top: 6px; }

.more { margin: 20px 0; }
.more h2 { font-size: 1rem; color: var(--muted); }
.more ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

.error { padding: 60px 0; text-align: center; }
.footer { color: var(--muted); font-size: 0.82rem; padding-top: 24px; padding-bottom: 40px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 8px; }
.footer-links a { color: var(--muted); }
.legal .block h2 { text-transform: none; letter-spacing: 0; color: var(--text); font-size: 1.05rem; }
.legal .block p { line-height: 1.75; }

@media (max-width: 480px) {
  .feed-head h1 { font-size: 1.3rem; }
  .topic { padding: 16px; }
  .topic h1 { font-size: 1.3rem; }
}
