/* 기사 화면 · 본문 블록 B1~B17 · 템플릿 12종 */

.ph { background: var(--bg-sunken); border-radius: var(--radius); border: 0; }
.ph--hero { aspect-ratio: 16 / 9; width: 100%; }
.accent { color: var(--text-accent); }
.gold { color: var(--brand-gold); }

/* ---------- 기사 공통 ---------- */
.article { padding-top: 36px; padding-bottom: 40px; }
.article__main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.title-bar { border-left: 4px solid var(--brand-navy); padding-left: 16px; }
.kicker { display: flex; align-items: center; gap: 12px; }
.badge { font-size: var(--fs-label); font-weight: 700; padding: 4px 10px; border-radius: var(--radius); color: var(--text-on-dark); }
.badge--navy { background: var(--brand-navy); }
.badge--ink { background: var(--text-primary); color: var(--bg-page); }

.byline { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid var(--border-default); border-bottom: 1px solid var(--border-default); }
.byline__who { flex: 1; display: flex; flex-direction: column; }
.byline__tools { display: flex; gap: 4px; }
.tool { background: none; border: 0; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 16px; }
.tool:hover { background: var(--bg-sunken); }
.avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--bg-avatar); color: var(--text-on-dark); display: inline-flex; align-items: center; justify-content: center; font-weight: 500; font-size: var(--fs-ui); }
.avatar--72 { width: 72px; height: 72px; font-size: var(--fs-h2); font-weight: 700; }
.follow { color: var(--text-accent); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.follow.is-on { color: var(--text-secondary); }

.hero { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.with-share { display: grid; grid-template-columns: 24px var(--w-body); gap: 80px; }
.share-col { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 24px; align-self: start; }
.share-col button, .share-col a { background: none; border: 0; cursor: pointer; font-size: 18px; padding: 0; }
.body { display: flex; flex-direction: column; gap: 24px; max-width: var(--w-body); min-width: 0; }
.notice { border-top: 1px solid var(--border-default); padding-top: 16px; margin: 0; }
.tags { margin: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.rail { display: flex; flex-direction: column; gap: 32px; }
.rail-box { display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--brand-navy); padding-top: 16px; }
.rail-box a { display: block; }
.ranking { margin: 0; padding: 0; list-style: none; counter-reset: r; display: flex; flex-direction: column; gap: 12px; }
.ranking li { counter-increment: r; display: flex; gap: 12px; font-size: var(--fs-body-s); }
.ranking li::before { content: counter(r); color: var(--brand-gold); font-weight: 700; font-size: var(--fs-h3); line-height: 1.2; }
.ad { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ad__300x250 { width: 300px; height: 250px; max-width: 100%; }
.ad--inline { padding: 16px 0; border-top: 1px solid var(--border-default); border-bottom: 1px solid var(--border-default); }

.discuss { border-top: 3px solid var(--brand-navy); padding-top: 40px; margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.discuss p { margin: 0; }
.discuss__placeholder { border: 1px dashed var(--border-default); padding: 24px; text-align: center; }

@media (max-width: 1023px) {
  .with-share { grid-template-columns: 1fr; }
  .share-col { display: none; }
  .body { max-width: none; }
}
@media (max-width: 767px) {
  .byline { flex-wrap: wrap; }
  .byline__tools { width: 100%; justify-content: flex-end; }
}

/* ---------- 본문 블록 ---------- */
.b-p { margin: 0; line-height: 1.7; }
.b-h { font-size: var(--fs-h3); font-weight: 700; margin: 16px 0 0; scroll-margin-top: 24px; }
.b-quote { margin: 8px 0; border-left: 4px solid var(--brand-gold); padding-left: 20px; }
.b-quote blockquote { margin: 0 0 12px; }
.b-box { display: flex; flex-direction: column; gap: 12px; border-top: 3px solid var(--brand-navy); border-bottom: 1px solid var(--border-default); padding: 20px 0; }
.b-box--gold { border-top-color: var(--brand-gold); }
a.b-box:hover { text-decoration: none; }
.b-summary { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.b-summary li::before { content: "·  "; }
.b-summary--body li { font-size: var(--fs-body); }
.b-img { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.b-img .ph { aspect-ratio: 5 / 3; }
.b-img--wide { width: min(744px, 100vw - 2 * var(--gutter)); }
.credit { color: var(--text-tertiary); }
.b-gallery { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.b-gallery__main { aspect-ratio: 16 / 9; position: relative; }
.b-gallery__count { position: absolute; right: 12px; bottom: 12px; background: var(--text-primary); color: var(--bg-page); font-size: var(--fs-caption); padding: 2px 8px; border-radius: var(--radius); }
.b-gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.b-gallery__thumbs .ph { aspect-ratio: 3 / 2; cursor: pointer; }
.b-video { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.b-video__player { aspect-ratio: 16 / 9; background: var(--brand-navy); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; position: relative; }
.b-video__play { width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--bg-page); color: var(--text-primary); font-size: 20px; cursor: pointer; }
.b-video__cc { position: absolute; left: 12px; bottom: 10px; color: var(--text-on-dark); font-size: var(--fs-caption); }
.b-embed { background: var(--bg-sunken); padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; border-radius: var(--radius); }
.b-embed p { margin: 0; }
.b-facts { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.b-facts div { display: grid; grid-template-columns: 140px 1fr; align-items: baseline; gap: 16px; }
.b-facts dd { margin: 0; color: var(--text-secondary); }
.b-table { margin: 0; }
.b-table__scroll { overflow-x: auto; }
.b-table table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: var(--fs-body-s); }
.b-table th { text-align: left; font-size: var(--fs-ui); border-top: 2px solid var(--text-primary); border-bottom: 1px solid var(--text-primary); padding: 12px 8px 12px 0; }
.b-table td { border-bottom: 1px solid var(--border-default); padding: 12px 8px 12px 0; }
.b-chart { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.b-chart__bars { display: flex; align-items: flex-end; gap: 14px; height: 200px; }
.b-chart__col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.b-chart__bar { width: 100%; background: var(--brand-navy); display: block; }
.b-chart__bar.is-hl { background: var(--brand-gold); }
.b-chart p { margin: 0; }
.b-map { aspect-ratio: 2 / 1; display: flex; align-items: flex-end; justify-content: flex-end; padding: 12px; }
.b-timeline { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.b-timeline li { display: grid; grid-template-columns: 96px 10px 1fr; align-items: center; gap: 16px; font-size: var(--fs-body-s); }
.b-timeline__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand-navy); }
.b-timeline li.is-now { font-weight: 500; font-size: var(--fs-ui); }
.b-timeline li.is-now .b-timeline__dot { background: var(--brand-gold); }
.b-angles { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.b-angles li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; font-size: var(--fs-body-s); }
.b-podcast { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--border-default); border-bottom: 1px solid var(--border-default); }
.b-podcast:hover { text-decoration: none; }
.b-podcast__cover { width: 72px; height: 72px; flex: none; }
.b-podcast__text { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.b-podcast__play { width: 48px; height: 48px; border-radius: 50%; background: var(--bg-sunken); display: inline-flex; align-items: center; justify-content: center; }
.b-poll { display: flex; flex-direction: column; gap: 14px; }
.b-poll__opt { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-body-s); }
.b-poll__row { display: flex; gap: 8px; }
.b-poll__row strong { color: var(--text-secondary); font-weight: 500; }
.b-poll__opt.is-mine .b-poll__row { font-weight: 500; }
.b-poll__opt.is-mine strong { color: var(--text-accent); }
.b-poll__track, .agree__track, .player__track { height: 8px; background: var(--bg-sunken); }
.b-poll__track span, .agree__track span { display: block; height: 100%; background: var(--border-strong); opacity: .35; }
.b-poll__opt.is-mine .b-poll__track span, .agree__track span { background: var(--brand-navy); opacity: 1; }
.b-poll p { margin: 0; }
.b-divider { width: 48px; height: 2px; background: var(--brand-gold); border: 0; margin: 16px auto; }

/* ---------- T2 속보 · T7 라이브 ---------- */
.updates { margin: 0; padding: 0; list-style: none; }
.update { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: 20px 0; border-top: 1px solid var(--border-default); }
.update p { margin: 8px 0 0; }
.update--live { display: flex; flex-direction: column; gap: 8px; grid-template-columns: none; }
.update--live p { margin: 0; }
.related { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--border-default); padding-top: 16px; }
.new-updates { align-self: stretch; }

/* ---------- T3 롱폼 ---------- */
.progress { position: sticky; top: 0; height: 4px; z-index: 5; }
.progress span { display: block; height: 100%; width: var(--read, 0%); background: var(--brand-gold); }
.lf-hero { background: var(--brand-navy); color: var(--text-on-dark); min-height: 72vh; display: flex; align-items: flex-end; padding: 64px 0; }
.lf-hero .container { display: flex; flex-direction: column; gap: 16px; }
.lf-hero .t-display { max-width: 900px; }
.col-744 { max-width: calc(744px + var(--gutter) * 2); margin: 0 auto; padding: 48px var(--gutter) 40px; display: flex; flex-direction: column; gap: 32px; }
.col-744 .body { margin: 0 auto; width: 100%; }
.chapters { display: flex; gap: 32px; padding: 16px 0; border-bottom: 1px solid var(--border-default); }
.chapters a { color: var(--text-secondary); }
.chapters a.is-on { color: var(--text-accent); }

/* ---------- T4 포토 ---------- */
.photo { display: flex; flex-direction: column; gap: 48px; padding-top: 48px; padding-bottom: 40px; }
.photo__head { display: flex; flex-direction: column; gap: 16px; max-width: 900px; }
.photo .b-img--wide { width: 100%; }
.photo .b-img .ph { aspect-ratio: 3 / 2; }

/* ---------- T5 칼럼 · T10 사설 ---------- */
.columnist { display: flex; align-items: center; gap: 20px; }
.opinion-title { font-family: var(--font-serif); font-size: 36px; line-height: 1.4; margin: 0; }
.opinion-note { border-top: 1px solid var(--border-default); border-bottom: 1px solid var(--border-default); padding: 16px 0; margin: 0; }
.editorial { align-items: center; text-align: center; }
.editorial .body, .editorial .b-box, .editorial .discuss { text-align: left; width: 100%; }
.editorial__mark { display: flex; }
.editorial__mark span { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--brand-navy); }
.editorial__mark span + span { border-color: var(--brand-gold); margin-left: -10px; }
.editorial__title { font-family: var(--font-serif); font-size: 40px; line-height: 1.4; margin: 0; }
@media (max-width: 767px) { .opinion-title, .editorial__title { font-size: 26px; } }

/* ---------- T6 해설 ---------- */
.glossary { background: var(--bg-sunken); padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; border-radius: var(--radius); }
.glossary dl { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.glossary div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
.glossary dd { margin: 0; }
.toc { position: sticky; top: 24px; }
.toc a { color: var(--text-secondary); }
.toc a.is-on { color: var(--text-accent); }
.body--qa .b-h { font-size: var(--fs-h2); border-top: 1px solid var(--border-default); padding-top: 24px; }

/* ---------- T8 영상 ---------- */
.video-stage { background: var(--text-primary); padding: 40px 0 48px; }
.video-stage__in { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }
.b-video__player--big { border: 0; }
.video-next { display: flex; flex-direction: column; gap: 16px; color: var(--bg-page); }
.video-next__item { display: flex; gap: 12px; color: inherit; }
.video-next__item .ph { width: 144px; height: 81px; flex: none; background: var(--bg-avatar); }
@media (max-width: 1023px) { .video-stage__in { grid-template-columns: 1fr; } }

/* ---------- T9 팟캐스트 ---------- */
.pod-head { display: flex; gap: 24px; align-items: flex-start; }
.pod-head__cover { width: 200px; height: 200px; flex: none; display: flex; align-items: center; justify-content: center; color: var(--text-tertiary); font-size: var(--fs-caption); }
.pod-head p { margin: 8px 0; }
.player { background: var(--bg-sunken); padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; border-radius: var(--radius); }
.player__controls { display: flex; align-items: center; gap: 20px; }
.player__controls button { background: none; border: 0; cursor: pointer; color: var(--text-secondary); font-size: var(--fs-ui); }
.player__main { width: 52px; height: 52px; border-radius: 50%; background: var(--brand-navy) !important; color: var(--text-on-dark) !important; font-size: 18px !important; }
.player__track { background: var(--border-default); height: 4px; }
.player__track span { display: block; height: 100%; background: var(--brand-gold); }
.transcript { border-top: 1px solid var(--border-default); border-bottom: 1px solid var(--border-default); padding: 16px 0; }
.transcript summary { cursor: pointer; }
@media (max-width: 767px) { .pod-head { flex-direction: column; } .pod-head__cover { width: 140px; height: 140px; } }

/* ---------- T11 다각도 ---------- */
.fact { font-size: var(--fs-label); padding: 2px 8px; border-radius: 12px; border: 1px solid currentColor; margin-left: 8px; }
.fact--true { color: var(--fact-true); }
.tabs { display: flex; border-bottom: 1px solid var(--border-default); overflow-x: auto; scrollbar-width: none; }
.tabs button { background: none; border: 0; padding: 12px 20px; font-size: var(--fs-ui); color: var(--text-secondary); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--text-primary); font-weight: 500; border-bottom-color: var(--brand-navy); }
.angle { display: flex; flex-direction: column; gap: 16px; }
.angle[hidden] { display: none; }
.agree { display: flex; flex-direction: column; gap: 6px; }
.agree__text { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- T12 쇼츠 ---------- */
.short-stage { background: var(--text-primary); padding: 48px var(--gutter); display: flex; justify-content: center; align-items: flex-end; gap: 48px; }
.short { width: min(405px, 100%); aspect-ratio: 9 / 16; background: var(--brand-navy); border-radius: 8px; padding: 24px 20px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; color: var(--text-on-dark); }
.short h1, .short p { margin: 0; }
.short__link { background: var(--bg-page); color: var(--text-primary); padding: 10px 12px; border-radius: 4px; font-size: var(--fs-ui); font-weight: 500; }
.short__actions { display: flex; flex-direction: column; gap: 24px; }
.short__actions button, .short__actions a { display: flex; text-decoration: none; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; color: var(--bg-page); font-size: var(--fs-caption); cursor: pointer; }
.short__actions button::first-line { font-size: 18px; }
.short__note { padding-top: 32px; padding-bottom: 32px; }
@media (max-width: 767px) { .short-stage { padding: 0; gap: 0; position: relative; } .short { border-radius: 0; width: 100%; } .short__actions { position: absolute; right: 12px; bottom: 120px; } }

/* 실제 사진 (미디어 라이브러리) */
.hero__img, .b-img img { width: 100%; height: auto; display: block; }
.b-gallery__main { position: relative; overflow: hidden; }
.b-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.b-gallery__thumbs button[style] { background-size: cover; background-position: center; }

/* 라이브 블로그 (58) */
.update.is-pinned { background: var(--brand-gold-soft); padding: 16px; border-radius: var(--radius); }
.update.is-breaking { border-left: 4px solid var(--state-danger); padding-left: 16px; }
.update.is-breaking .accent { color: var(--state-danger); }
.update.is-correction { border-left: 4px solid var(--text-tertiary); padding-left: 16px; }
.update.is-new { animation: live-in .8s ease-out; }
@keyframes live-in { from { background: var(--brand-gold-soft); } to { background: transparent; } }
.live-dot { animation: live-blink 2s infinite; }
@keyframes live-blink { 50% { opacity: .55; } }
.new-updates { position: sticky; top: 12px; z-index: 5; margin: 0 auto; display: flex; }
.new-updates[hidden] { display: none; }

/* 6단계 미디어 */
.vbox { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; }
.vplayer { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.vbox--live { margin: 8px 0 16px; }
.vbox__badge { position: absolute; z-index: 2; top: 12px; left: 12px; background: var(--state-danger); color: #fff; font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 4px; }
.short--video { position: relative; padding: 0; overflow: hidden; }
.short__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.short--video > :not(video):not(.short__sound) { position: relative; z-index: 1; color: #fff; text-shadow: 0 1px 3px rgb(0 0 0 / .6); }
.short__sound { position: absolute; z-index: 2; top: 12px; right: 12px; border: 0; border-radius: 999px; padding: 6px 12px; background: rgb(0 0 0 / .55); color: #fff; font-size: var(--fs-caption); cursor: pointer; }
.player__main.is-playing svg { opacity: 0; }
.player__main.is-playing::after { content: "❚❚"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; letter-spacing: -2px; color: var(--text-on-dark); }
.player__main { position: relative; }
.player__track { cursor: pointer; }
.transcript__full { white-space: pre-wrap; line-height: 1.8; max-height: 480px; overflow: auto; }
.tool[aria-pressed=true] { color: var(--brand-gold); }

.short__actions [data-like].is-on { color: #ff5a6a; }
.short__actions [data-like].is-on .i { fill: currentColor; }

/* 기사 듣기 막대 */
.lbar { display: flex; align-items: center; gap: 12px; margin: 12px 0 4px; padding: 10px 12px; border: 1px solid var(--border-strong); border-left: 4px solid var(--brand-gold); background: var(--bg-page); }
.lbar__play { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--brand-navy); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lbar__play:hover { background: var(--brand-navy-soft); }
.lbar__mid { flex: 1; min-width: 0; display: grid; gap: 4px; }
.lbar__top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.lbar__title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lbar__time { color: var(--text-secondary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lbar__seek { width: 100%; accent-color: var(--brand-gold); margin: 0; }
.lbar__rate, .lbar__x { flex: none; border: 1px solid var(--border-default); background: none; color: var(--text-primary); border-radius: 4px; height: 32px; min-width: 40px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.lbar__x { border: 0; font-size: 20px; color: var(--text-secondary); min-width: 32px; }
.lbar__rate:hover, .lbar__x:hover { background: var(--bg-sunken); }
.lbar.is-wait .lbar__play { background: var(--bg-sunken); color: var(--text-tertiary); pointer-events: none; }
.lbar.is-wait .lbar__play svg { animation: lbar-spin 1.2s linear infinite; }
.lbar.is-wait .lbar__seek, .lbar.is-wait .lbar__rate, .lbar.is-wait .lbar__time { visibility: hidden; }
.lbar.is-wait .lbar__title { font-weight: 400; color: var(--text-secondary); white-space: normal; }
@keyframes lbar-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lbar.is-wait .lbar__play svg { animation: none; } }
.avatar { overflow: hidden; } .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
