/* 영상 (/videos, 2026-11-20) — 주제별 숏폼(세로 썸네일) · 발성 스타터 무료 강의(가로 썸네일) · 재생 대화상자(이전 · 다음) */
.v-head { padding-bottom: clamp(24px, 3vw, 40px); }
.v-head .lede { max-width: 36em; }
.v-acts { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.v-acts .v-ch { margin-left: 8px; font-size: var(--fs-s); }

.v-page .sec-title small { margin-left: 4px; font-size: var(--fs-m); font-weight: 500; letter-spacing: -.02em; color: var(--slate); }
.v-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px 28px; }
.v-top .lede { margin-top: 12px; }
#shorts, #free { scroll-margin-top: 72px; }

/* 주제 버튼 — 보이스 칼럼 분류(.cats)와 같은 모양, 좁으면 옆으로 민다 */
.v-cats { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--mist); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.v-cats::-webkit-scrollbar { display: none; }
.v-cats button { flex: none; height: 44px; padding: 0 16px; border: 0; border-radius: 11px; background: none; font-size: var(--fs-s); font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.v-cats button span { margin-left: 2px; color: var(--slate); font-variant-numeric: tabular-nums; }
@media (hover: hover) { .v-cats button:hover { color: var(--ink); } }
.v-cats [aria-pressed="true"] { background: var(--white); color: var(--cobalt); font-weight: 650; box-shadow: 0 1px 2px rgba(20, 27, 42, .08); }

/* 숏폼 — 주제 묶음마다 제목 + 세로 썸네일 칸 */
.v-group { margin-top: clamp(40px, 5vw, 56px); }
.v-group h3 { display: flex; align-items: baseline; gap: 8px; font-size: var(--fs-l); font-weight: 700; letter-spacing: -.03em; }
.v-group h3 span { font-size: var(--fs-xs); font-weight: 500; color: var(--slate); }
.v-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 14px; }

.v-th, .v-lt { position: relative; display: block; width: 100%; padding: 0; border: 0; overflow: hidden; background: var(--ink); cursor: pointer; }
.v-th { aspect-ratio: 9 / 16; border-radius: 16px; }
.v-lt { aspect-ratio: 16 / 9; border-radius: 14px; }
.v-th picture, .v-lt picture { display: contents; }
.v-th img, .v-lt img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
@media (hover: hover) { .v-th:hover img, .v-lt:hover img { transform: scale(1.035); } }
.v-th:focus-visible, .v-lt:focus-visible { outline-offset: 3px; }
.v-page .pl { position: absolute; left: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--ink); box-shadow: 0 2px 8px rgba(20, 27, 42, .18); }
.v-page .dur { position: absolute; right: 8px; bottom: 10px; padding: 3px 7px; border-radius: 7px; background: rgba(20, 27, 42, .78); color: #fff; font-size: 12.5px; font-weight: 650; line-height: 1.3; font-variant-numeric: tabular-nums; }
.v-short h4, .v-lessons h4 { margin-top: 12px; font-size: var(--fs-s); line-height: 1.5; font-weight: 650; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* 무료 강의 — 단원마다 가로 썸네일 */
.v-unit { margin-top: clamp(40px, 5vw, 56px); }
.v-unit h3 { display: flex; align-items: center; gap: 10px; font-size: var(--fs-l); font-weight: 700; letter-spacing: -.03em; }
.v-unit h3 b { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--cobalt); color: #fff; display: grid; place-items: center; font-size: var(--fs-xs); font-weight: 700; }
.v-unit h3 span { font-size: var(--fs-xs); font-weight: 500; color: var(--slate); }
.v-lessons { margin-top: 20px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 16px; }   /* 단원마다 다섯 편 — 한 줄에 */

/* 재생 대화상자 — 숏폼은 세로, 강의는 가로. 양옆 화살표로 같은 목록의 이전 · 다음 */
.v-dlg { --g: 64px; padding: 0; border: 0; border-radius: 22px; background: var(--white); color: var(--ink); overflow: hidden; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
.v-dlg[open] { display: grid; grid-template-columns: min-content; }   /* 폭은 화면(영상) 폭에 맞추고 글은 그 안에서 줄바꿈 */
.v-dlg::backdrop { background: rgba(20, 27, 42, .72); }
.vd-stage { display: grid; grid-template-columns: var(--g) auto var(--g); align-items: center; justify-items: center; background: var(--navy); }
.vd-screen { position: relative; aspect-ratio: 9 / 16; height: min(74dvh, 720px, calc((100vw - 24px - var(--g) * 2) * 16 / 9)); background: #000; }
.v-dlg.is-long .vd-screen { aspect-ratio: 16 / 9; height: auto; width: min(880px, calc(100vw - 24px - var(--g) * 2)); }
.vd-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vd-nav { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; transition: background .15s; }
@media (hover: hover) { .vd-nav:not(:disabled):hover { background: rgba(255, 255, 255, .26); } }
.vd-nav:disabled { opacity: .28; cursor: default; }
.vd-cap { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 20px; }
.vd-txt { min-width: 0; }
.vd-txt small { display: block; font-size: var(--fs-xs); color: var(--slate); }
.vd-txt b { display: block; font-size: var(--fs-m); font-weight: 650; letter-spacing: -.02em; line-height: 1.45; }
.vd-acts { flex: none; display: flex; align-items: center; gap: 8px; }
.vd-acts .btn { height: 44px; padding: 0 16px; font-size: var(--fs-s); }
.vd-n { margin-right: 6px; font-size: var(--fs-xs); color: var(--slate); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* 숏폼 대화상자는 폭이 좁다 — 글과 버튼을 두 줄로 */
.v-dlg:not(.is-long) .vd-cap { flex-direction: column; align-items: stretch; }
.v-dlg:not(.is-long) .vd-acts { justify-content: flex-end; }

@media (max-width: 1100px) {
    .v-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .v-lessons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .v-acts .v-ch { margin-left: 0; flex-basis: 100%; }
    .v-cats { margin: 0 calc(var(--gut) * -1); padding: 4px var(--gut); border-radius: 0; background: none; }
    .v-cats button { background: var(--mist); }
    .v-cats [aria-pressed="true"] { background: var(--cobalt); color: #fff; box-shadow: none; }
    .v-cats [aria-pressed="true"] span { color: rgba(255, 255, 255, .8); }
    .v-grid, .v-lessons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
    .v-dlg { --g: 44px; }
    .vd-nav { width: 36px; height: 36px; }
    .v-dlg.is-long .vd-cap { flex-direction: column; align-items: stretch; }
    .v-dlg.is-long .vd-acts { justify-content: flex-end; }
}
@media (max-width: 420px) {
    .v-dlg { --g: 36px; }
    .vd-acts .btn { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) { .v-th img, .v-lt img { transition: none; } }
