/* ==========================================================================
   선한길교회 — live.css
   Pages that show data from the church's existing backend:
   공지/일정 · 커뮤니티 허브 · 자료실 · 게시글 보기 · 글쓰기
   Uses the tokens and grid from site.css.
   ========================================================================== */

/* ---------- shared pieces ---------- */
.live { padding-bottom: var(--sec); }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); min-height: 48px; margin-bottom: var(--s5); }
.bar > h2 { margin-right: auto; }
.bar--tools { justify-content: space-between; }
.bar--tools .search { margin-left: auto; }

.search { display: flex; gap: var(--s2); flex: 1 1 240px; max-width: 420px; }
.search .input { min-width: 0; }
.search .btn { flex: none; }

.filter { display: flex; flex-wrap: wrap; gap: var(--s1); margin-right: auto; }
.filter button { height: 40px; padding: 0 var(--s3); font-weight: 600; color: var(--muted); white-space: nowrap; transition: color .16s var(--ease-state); }
.filter button:hover { color: var(--navy); }
.filter button[aria-pressed="true"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--here); }

.loading { display: grid; gap: var(--s3); padding-block: var(--s4); }
.loading-row { height: 20px; border-radius: var(--r); background: var(--tint); }
.loading-row:nth-child(odd) { width: 72%; }
.loading-row:nth-child(even) { width: 46%; }

.pager { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1); margin-top: var(--s6); }
.pager button { min-width: 40px; height: 40px; padding: 0 var(--s3); font-weight: 600; color: var(--muted); border-radius: var(--r); }
.pager button:hover:not([disabled]) { color: var(--navy); background: var(--tint); }
.pager button[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--here); border-radius: 0; }
.pager button[disabled] { color: var(--line); cursor: default; }

.tag { font-size: var(--fs-small); font-weight: 600; color: var(--muted); white-space: nowrap; }
.tag--pin { color: var(--navy); }

/* ---------- lists (공지사항, 자료실) ---------- */
.list { border-bottom: 1px solid var(--line); }
.list-head, .row { display: grid; grid-template-columns: var(--list-cols, minmax(0, 1fr) 104px 64px); column-gap: var(--s4); align-items: baseline; }
.list-head { display: none; padding-block: var(--s2); font-size: var(--fs-small); font-weight: 600; color: var(--muted); }
.list-head > :not(:first-child), .row-num { text-align: right; }
.row { width: 100%; padding-block: var(--s4); border-top: 1px solid var(--line); color: var(--ink); }
.row-title { grid-column: 1 / -1; font-weight: 600; color: var(--navy); line-height: 1.5; }
.row-title .tag { margin-right: var(--s2); }
.row-title .tag + .tag { margin-left: calc(var(--s2) * -1 + var(--s2)); }
.row:hover .row-text { text-decoration: underline; text-underline-offset: .22em; }
.row-meta { grid-column: 1 / -1; margin-top: var(--s1); font-size: var(--fs-small); color: var(--muted); }
.row-meta span + span::before { content: " · "; }
.row-cell { display: none; font-size: var(--fs-small); color: var(--muted); }
@media (min-width: 720px) {
  .list-head { display: grid; }
  .row-title { grid-column: auto; }
  .row-meta { display: none; }
  .row-cell { display: block; }
}
.list--resource { --list-cols: minmax(0, 1fr) 96px 104px 64px; }
.list-head > .row-author, .row-author { text-align: left; }

/* ---------- 공지/일정 ---------- */
.notice-grid { row-gap: var(--s8); }
.sched-list { position: relative; }
.sched-list > li { position: relative; padding: var(--s3) 0 var(--s3) var(--s5); border-left: 1px solid var(--navy); }
.sched-list > li::before { content: ""; position: absolute; left: -6px; top: calc(var(--s3) + .8em); width: 11px; height: 1px; background: var(--navy); }
.sched-today { font-size: var(--fs-small); font-weight: 600; color: var(--muted); }
.sched-today::before { left: -2px !important; top: calc(var(--s3) - 2px) !important; width: 3px !important; height: 26px !important; background: var(--here) !important; }
.sched-today .here { margin-right: var(--s2); }
.sched-link { display: block; color: inherit; }
a.sched-link:hover .sched-title { text-decoration: underline; text-underline-offset: .22em; }
.sched-date { font-size: var(--fs-h3); line-height: 1.4; font-weight: 700; letter-spacing: -.015em; color: var(--navy); }
.sched-date small { margin-left: var(--s2); font-size: var(--fs-small); font-weight: 500; letter-spacing: 0; color: var(--muted); }
.sched-range { font-size: var(--fs-body); letter-spacing: 0; }
.sched-title { font-weight: 600; line-height: 1.5; }
.sched-time { font-size: var(--fs-small); color: var(--muted); }
.sched-live { color: var(--navy); font-weight: 700; margin-left: var(--s2); }
.sched-admin { display: flex; gap: var(--s4); }
.sched-admin .text-btn { min-height: 40px; font-size: var(--fs-small); }
.sched-admin .text-btn--danger { color: var(--alert); }
.sched-list--past > li { border-left-color: var(--line); }
.sched-list--past .sched-date, .sched-list--past .sched-title { color: var(--muted); }
.sched-more { margin-top: var(--s3); }
.sched .state, .notice-list .state { padding-block: var(--s5); }
.notice-list .state, [data-res-list] .state { border-block: 1px solid var(--line); }
@media (min-width: 720px) and (max-width: 1099px) {
  /* tablet: the calendar is a row of dates above the notices */
  .sched-list:not(.sched-list--past) { display: flex; flex-wrap: wrap; column-gap: var(--gut); border-top: 1px solid var(--navy); }
  .sched-list:not(.sched-list--past) > li { flex: 1 1 200px; max-width: 320px; border-left: 0; padding: var(--s4) var(--s4) var(--s4) 0; }
  .sched-list:not(.sched-list--past) > li::before { left: 0; top: -6px; width: 1px; height: 11px; }
  .sched-list:not(.sched-list--past) > .sched-today { flex-basis: 100%; max-width: none; padding-bottom: 0; }
  .sched-list:not(.sched-list--past) > .sched-today::before { top: -13px !important; left: 0 !important; }
}

/* ---------- 커뮤니티 허브: the album ---------- */
.wall { display: flex; flex-wrap: wrap; gap: var(--s6) var(--wall-gap, 16px); align-items: flex-start; }
.tile { flex: none; width: 100%; }
.tile-link { display: block; color: inherit; }
.tile-media { position: relative; overflow: hidden; border-radius: var(--r); background: var(--tint); aspect-ratio: var(--ratio, 1.5); }
.tile-media canvas, .tile-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-media img { opacity: 0; transition: opacity .42s var(--ease-state), transform .72s var(--ease-walk); }
.tile-media img.is-loaded { opacity: 1; }
.tile-media img.is-cover { object-fit: contain; padding: 14%; background: var(--tint); }
.tile-link:hover .tile-media img { transform: scale(1.03); }
.tile-mark { position: absolute; left: var(--s3); bottom: var(--s3); display: flex; align-items: center; gap: var(--s2); height: 32px; padding: 0 var(--s3); background: var(--ink); color: #fff; border-radius: var(--r); font-size: var(--fs-small); font-weight: 600; }
.tile-mark--play { width: 32px; padding: 0; gap: 0; justify-content: center; }
.tile-mark--play::before { content: ""; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent #fff; }
.tile-cap { padding-top: var(--s3); }
.tile-board { font-size: var(--fs-small); font-weight: 600; color: var(--muted); }
.tile-title { font-size: var(--fs-body); line-height: 1.5; font-weight: 700; color: var(--navy); }
.tile--lead .tile-title { font-size: var(--fs-h3); line-height: 1.45; letter-spacing: -.015em; }
.tile-link:hover .tile-title { text-decoration: underline; text-underline-offset: .22em; }
.tile-meta { margin-top: var(--s1); font-size: var(--fs-small); color: var(--muted); }
.tile-meta span + span::before { content: " · "; }
.tile.is-skel .tile-cap::before, .tile.is-skel .tile-cap::after { content: ""; display: block; height: 14px; margin-top: var(--s2); border-radius: var(--r); background: var(--tint); }
.tile.is-skel .tile-cap::before { width: 70%; }
.tile.is-skel .tile-cap::after { width: 40%; }
/* 더 보기: centred, large and filled navy so it reads as "the list goes on" (it was a thin outline
   lost on the left). It turns hollow when pointed at (computers only, so a tap on a phone doesn't
   leave it stuck hollow) or while pressed. The outline is always there, hidden by the fill. */
.hub-more { display: flex; width: 100%; max-width: 320px; min-height: 56px; margin: var(--s7) auto 0;
  box-shadow: inset 0 0 0 2px var(--navy); }
@media (hover: hover) { .hub-more:hover { background: var(--paper); color: var(--navy); } }
.hub-more:active { background: var(--paper); color: var(--navy); }
.hub-more::after { content: ""; width: 7px; height: 7px; border-right: 2px solid; border-bottom: 2px solid; transform: translateY(-2px) rotate(45deg); }
@media (min-width: 720px) { .wall { --wall-gap: 20px; row-gap: var(--s7); } }
@media (min-width: 1100px) { .wall { --wall-gap: 24px; } }

/* ---------- 게시글 보기 ---------- */
.post-head { padding-top: var(--s6); padding-bottom: var(--s6); }
.post-back { margin-left: -2px; }
.post-back::before { content: "←"; margin-right: var(--s2); }
.post-board { margin-top: var(--s3); font-size: var(--fs-small); font-weight: 600; color: var(--muted); }
.post-title { overflow-wrap: anywhere; }
.post-meta { margin-top: var(--s3); font-size: var(--fs-small); color: var(--muted); }
.post-meta span + span::before { content: " · "; }
.post-main { padding-top: var(--s6); border-top: 1px solid var(--line); }
.post-body { line-height: 1.9; overflow-wrap: anywhere; }
.post-body b, .post-body strong { font-weight: 700; }
.post-body a { color: var(--blue); text-decoration: underline; text-underline-offset: .22em; }
.post-body > :first-child { margin-top: 0; }

.media-run { --g: var(--s2); display: flex; flex-wrap: wrap; gap: var(--g); margin-block: var(--s4); }
.m { position: relative; flex: none; width: 100%; min-width: 0; margin: 0; }
.m img { display: block; width: 100%; height: auto; border-radius: var(--r); background: var(--tint); cursor: zoom-in; }
.m[data-size="mid"] { width: 66.666%; }
.m[data-size="2"], .m[data-size="3"] { width: calc(50% - var(--s2) / 2); }
.m[data-size="2"]:not([data-fit="original"]) img, .m[data-size="3"]:not([data-fit="original"]) img { aspect-ratio: 4 / 3; object-fit: cover; }
.m[data-size="1"] img, .m[data-size="mid"] img { width: auto; max-width: 100%; max-height: min(88vh, 900px); }
.m--video { aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--ink); }
.m--video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; transform-origin: 0 0; }
/* post.js may lay a video out wider and scale it down, for a sharper YouTube picture.
   In full screen the player simply fills the screen. */
.m--video iframe:fullscreen { width: 100% !important; height: 100% !important; transform: none !important; }
.m--video iframe:-webkit-full-screen { width: 100% !important; height: 100% !important; transform: none !important; }
.m > button { display: block; width: 100%; border-radius: var(--r); }
.m[data-size="1"] > button, .m[data-size="mid"] > button { width: auto; max-width: 100%; }
/* 자동 배치: post.js groups the photos into .m-row (and .m-col for two stacked) and gives each its
   shape (--r = width / height) and its share of the row (--fg). Every photo keeps its shape: nothing is cropped.
   On a phone the rows dissolve: one whole photo per row. */
.m[data-size="auto"] { aspect-ratio: var(--r, 1.5); }
.m[data-size="auto"] > button { position: absolute; inset: 0; width: 100%; height: 100%; }
.m[data-size="auto"] img { width: 100%; height: 100%; object-fit: cover; }
.m-row, .m-col { display: contents; }
@media (min-width: 720px) {
  .m[data-size="3"] { width: calc(33.333% - var(--s2) * 2 / 3); }
  .m-row { display: flex; align-items: flex-start; width: 100%; gap: var(--g); }
  .m-col { display: flex; flex-direction: column; align-self: stretch; flex: none; gap: var(--g); }
  /* one height across the row: each photo's width follows its shape */
  .m-row > .m { flex: var(--fg, 1) 1 0; width: auto; min-width: 0; }
  /* the stacked pair fills the big photo's height, split by shape */
  .m-col > .m { flex: var(--fg, 1) 1 0; width: 100%; min-height: 0; aspect-ratio: auto; }
  /* a photo left on its own: as 1장, never taller than the screen */
  .m-row--single > .m { flex: none; width: min(100%, calc(min(88vh, 900px) * var(--r))); }
}
@media (min-width: 1100px) {
  /* photos may run the full width of the spread; text stays in the reading page */
  .post-body .media-run { --g: var(--s3); width: calc(150% + var(--gut) / 2); margin-left: calc(-50% - var(--gut) / 2); }
  .post-body .m[data-size="2"] { width: calc(50% - var(--s3) / 2); }
  .post-body .m[data-size="3"] { width: calc(33.333% - var(--s3) * 2 / 3); }
}

.post-locked { padding-block: var(--s6); }
.files { margin-top: var(--s7); }
.files h2 { font-size: var(--fs-small); font-weight: 600; color: var(--muted); margin-bottom: var(--s2); }
.files li { border-top: 1px solid var(--line); }
.files li:last-child { border-bottom: 1px solid var(--line); }
.files a { display: flex; align-items: baseline; gap: var(--s3); min-height: 52px; padding-block: var(--s3); font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.files a:hover .file-name { text-decoration: underline; text-underline-offset: .22em; }
.files .tag { flex: none; width: 3.6em; }
.post-actions { display: flex; gap: var(--s2); margin-top: var(--s6); }

/* 나눔 (comments) */
.comments { margin-top: var(--s8); padding-top: var(--s6); border-top: 1px solid var(--navy); }
.comments-count { margin-left: var(--s2); color: var(--muted); font-weight: 500; }
.c-form { margin-top: var(--s4); }
.c-form .form-actions { margin-top: var(--s3); }
.c-form .form-actions .btn { flex: 0 0 auto; }
.c-login { margin-top: var(--s4); color: var(--muted); }
.c-login button { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: .22em; min-height: 40px; }
.c-list { margin-top: var(--s5); }
.c-item { padding-block: var(--s4); border-top: 1px solid var(--line); }
.c-item .c-item { margin-top: var(--s4); margin-left: var(--s2); padding: 0 0 0 var(--s4); border-top: 0; border-left: 1px solid var(--line); }
.c-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2); }
.c-name { font-weight: 700; color: var(--navy); }
.c-date { font-size: var(--fs-small); color: var(--muted); }
.c-text { margin-top: var(--s1); white-space: pre-wrap; overflow-wrap: anywhere; }
.c-text.is-deleted { color: var(--muted); }
.c-acts { display: flex; gap: var(--s4); }
.c-acts button { min-height: 40px; font-size: var(--fs-small); font-weight: 600; color: var(--blue); }
.c-acts button[data-c-del] { color: var(--alert); }
.c-acts button:hover { text-decoration: underline; text-underline-offset: .22em; }
.c-inline { margin-top: var(--s2); }

/* 사진 보기 (photo viewer) */
.lb { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: #0b1120; color: #fff; overflow: hidden; }
.lb::backdrop { background: #0b1120; }
.lb-stage { position: absolute; inset: 56px 0 48px; overflow: hidden; touch-action: none; cursor: zoom-in; }
.lb-stage.is-zoomed { cursor: grab; }
.lb-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; will-change: transform; }
.lb-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: var(--s2); height: 56px; padding-inline: var(--s4); }
.lb-count { margin-right: auto; font-weight: 600; }
.lb button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 40px; padding: 0 var(--s3); color: #fff; font-size: var(--fs-small); font-weight: 600; border-radius: var(--r); }
.lb button:hover { background: rgba(255, 255, 255, .14); }
.lb :focus-visible { outline-color: var(--sky); }
.lb-save { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
.lb-nav { position: absolute; top: 50%; width: 48px !important; height: 64px !important; margin-top: -32px; font-size: 24px !important; background: rgba(11, 17, 32, .55); }
.lb-prev { left: var(--s2); }
.lb-next { right: var(--s2); }
.lb-hint { position: absolute; left: var(--s4); right: var(--s4); bottom: 0; height: 48px; display: flex; align-items: center; font-size: var(--fs-small); color: #c4d2e6; }
@media (hover: none) { .lb-hint { display: none; } .lb-stage { bottom: 0; } }

/* ---------- 글쓰기 ---------- */
.write { padding-bottom: var(--sec); }
.w-row { padding-block: var(--s4); border-top: 1px solid var(--line); align-items: baseline; }
.w-row:first-child { border-top: 0; }
.w-label { font-size: var(--fs-small); font-weight: 600; color: var(--navy); }
.w-row .check { margin-top: 0; }
.w-title { font-size: var(--fs-h3); font-weight: 700; min-height: 56px; }
.w-two { display: grid; gap: var(--s3); }
.w-hint { margin-top: var(--s2); font-size: var(--fs-small); color: var(--muted); }
@media (min-width: 720px) { .w-two { grid-template-columns: 1fr 1fr; } }

.ed { border: 1px solid var(--edge); border-radius: var(--r); background: var(--paper); }
.ed:focus-within { border-color: var(--blue); }
.ed-tools { position: sticky; top: var(--header-h); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1); padding: var(--s2); background: var(--paper); border-bottom: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0; }
.ed-tools button { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 var(--s3); color: var(--navy); font-weight: 600; border-radius: var(--r); white-space: nowrap; }
.ed-tools button:hover { background: var(--tint); }
.ed-tools button[aria-pressed="true"] { background: var(--tint); box-shadow: inset 0 -3px 0 var(--here); }
.ed-sep { width: 1px; height: 24px; margin-inline: var(--s1); background: var(--line); }
.ed-b { font-weight: 800 !important; }
.ed-i { font-style: italic; }
.ed-u { text-decoration: underline; }
.ed-s { text-decoration: line-through; }
/* alignment glyphs: three lines, drawn */
.ed-al::before { content: ""; width: 18px; height: 14px; background:
  linear-gradient(var(--navy), var(--navy)) var(--x1, 0) 0 / 18px 2px no-repeat,
  linear-gradient(var(--navy), var(--navy)) var(--x2, 0) 6px / 11px 2px no-repeat,
  linear-gradient(var(--navy), var(--navy)) var(--x3, 0) 12px / 15px 2px no-repeat; }
.ed-al--c { --x2: 3.5px; --x3: 1.5px; }
.ed-al--r { --x2: 7px; --x3: 3px; }
.ed-body { min-height: 320px; padding: var(--s4); line-height: 1.9; outline: none; overflow-wrap: anywhere; }
.ed-body:empty::before { content: attr(data-placeholder); color: var(--muted); pointer-events: none; }
.ed-body.is-drop { background: var(--tint); }
.ed-body .editor-inline-wrapper, .ed-body .editor-video-wrapper { position: relative; cursor: pointer; }
.ed-body .editor-inline-img { border-radius: var(--r) !important; }
.ed-body .editor-video-wrapper { width: calc(100% - 8px); aspect-ratio: 16 / 9; background: var(--ink); border-radius: var(--r); overflow: hidden; }
.ed-body .editor-video-wrapper iframe { width: 100%; height: 100%; border: 0; pointer-events: none; }
.ed-body [data-size="2"]:not([data-fit="original"]) > .editor-inline-img,
.ed-body [data-size="3"]:not([data-fit="original"]) > .editor-inline-img { aspect-ratio: 4 / 3; object-fit: cover; width: 100% !important; }
/* The space kept after each photo (&nbsp;) cannot shrink, so on a phone a row of 2 or 3 photos
   overflowed and the rows came apart. In the editor only, a photo gives up that space;
   the saved inline widths, and so the post page and the app, are unchanged. */
.ed-body .editor-inline-wrapper[data-size="2"] { width: calc(49% - 8px - .3em) !important; }
.ed-body .editor-inline-wrapper[data-size="3"] { width: calc(32% - 8px - .3em) !important; }
/* 자동 배치 is stored at full width (for the app); the editor shows each photo whole at one height */
.ed-body .editor-inline-wrapper[data-size="auto"] { width: auto !important; }
.ed-body [data-size="auto"] > .editor-inline-img { width: auto !important; height: 160px !important; max-width: 100% !important; }
.ed-body .editor-video-wrapper[data-size="auto"] { width: auto !important; height: 160px; }
.ed-body .is-picked { outline: 3px solid var(--here); outline-offset: 2px; border-radius: var(--r); }
.ed-body [data-cover="1"]::after { content: "대표"; position: absolute; left: var(--s2); top: var(--s2); padding: 2px var(--s2); background: var(--ink); color: #fff; border-radius: var(--r); font-size: var(--fs-small); font-weight: 600; line-height: 1.5; }
.ed-body .is-dragging { opacity: .4; }
.ed-photo { position: sticky; top: calc(var(--header-h) + var(--ed-tools-h, 57px)); z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1); padding: var(--s2); background: var(--tint); border-bottom: 1px solid var(--line); }
.ed-photo button { height: 40px; padding: 0 var(--s3); font-size: var(--fs-small); font-weight: 600; color: var(--navy); border-radius: var(--r); white-space: nowrap; }
.ed-photo button:hover { background: var(--paper); }
.ed-photo button[aria-pressed="true"] { background: var(--paper); box-shadow: inset 0 -3px 0 var(--here); }
.ed-photo .is-danger { color: var(--alert); }
.ed-photo label { display: inline-flex; align-items: center; gap: var(--s2); min-height: 40px; padding: 0 var(--s2); font-size: var(--fs-small); font-weight: 600; color: var(--navy); cursor: pointer; }
.ed-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); padding: var(--s2) var(--s4); border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--muted); }
.ed-foot .filter { margin-right: 0; }
.ed-foot .filter button { height: 36px; font-size: var(--fs-small); }
.ed-progress { margin-left: auto; font-weight: 600; color: var(--navy); }

.drop { display: block; padding: var(--s5); border: 1px dashed var(--edge); border-radius: var(--r); cursor: pointer; transition: background-color .16s var(--ease-state), border-color .16s var(--ease-state); }
.drop:hover, .drop.is-drop { background: var(--tint); border-color: var(--navy); }
.drop strong { display: block; color: var(--navy); }
.drop span { display: block; font-size: var(--fs-small); color: var(--muted); }
.att { margin-top: var(--s3); }
.att li { display: flex; align-items: center; gap: var(--s3); min-height: 48px; border-top: 1px solid var(--line); }
.att li:last-child { border-bottom: 1px solid var(--line); }
.att-name { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.att-state { font-size: var(--fs-small); color: var(--muted); }
.w-actions { display: flex; justify-content: flex-end; gap: var(--s2); margin-top: var(--s6); }
.w-actions .btn { min-width: 128px; }
.yt-preview { margin-top: var(--s4); aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--tint); }
.yt-preview iframe { width: 100%; height: 100%; border: 0; }

/* ---------- 자료실 ---------- */
.res-filter { flex: 0 1 240px; }
