/* Hallmark · shape: catalog + detail + learner (vod list: feature card for the free series, teacher grid when there is one, recruit band; detail: teal hero with cover, sticky enrol box, anchor tabs over every panel; watch: player first, progress and lesson list on the side) · genre: modern-minimal · theme: brand (teal, amber on money and play only) · redesign: polish from 5차 시안 ds.css · v2.0.0 */
/* Hallmark · critique: scoped to .v5 so the legacy chrome (header, footer, #Container) is untouched; every class carries the v5- prefix because the legacy CSS already owns .btn, .panel and .wrap */
/* Hallmark · answered F7 · the pill radius sits on chips, tags and the hub switch only; cards 16, controls 10 */
/* Hallmark · answered F15 · one container (1000, the live #Container) and one column gap per layout (32 hero, 48 detail, 32 watch) */
/* Hallmark · waive 34 48 · tokens live on .v5, not :root, and html/body belong to the legacy chrome — the page is a scoped insert inside the live site */
/* Hallmark · dismissed: mock bottom bar (.bar2) and fixed purchase bar — on phones the enrol box sits right under the hero instead, so it never fights the live bottom tabs (.sd-tabs) or the app's own bar */
/* 2026-12-03 영상 강의 5차 시안 — 모든 손님·회원(측정 중인 시험 없음). 쓰는 곳: vod/index.php · view.php · watch.php · sell.php · main.0.9.php(로그인 학생·학부모의 무료 강의 줄). lib/function/vod_v5.lib.php */

.v5 {
  --ds-teal: #23777A; --ds-teal-ink: #1F6C72; --ds-deep: #12393B; --ds-ink: #12282C; --ds-sub: #5B6770;
  --ds-amber: #F2B84B; --ds-amber-soft: #FFF1D3; --ds-paper: #F6F9F9; --ds-line: #E6EBF0; --ds-chip: #EAF5F5;
  --ds-white: #FFFFFF; --ds-on-teal: #DDF1F1; --ds-mint-soft: #CFE6E6; --ds-warn-bg: #FFF7E6; --ds-warn: #5B4A1F; --ds-star: #A0661A;
  --card: 0 1px 2px rgb(18 40 44 / 0.06), 0 10px 28px rgb(18 40 44 / 0.10);
  --card-hi: 0 2px 4px rgb(18 40 44 / 0.08), 0 18px 40px rgb(18 40 44 / 0.16);
  --t-12: 12px; --t-13: 13px; --t-15: 15px; --t-16: 16px; --t-18: 18px; --t-22: 22px; --t-28: 28px; --t-36: 36px;
  --r-chip: 6px; --r-ctl: 10px; --r-card: 16px; --r-pill: 999px;
  --s-3xs: 2px; --s-2xs: 4px; --s-xs: 8px; --s-sm: 12px; --s-md: 16px; --s-lg: 24px; --s-xl: 32px; --s-2xl: 48px; --s-3xl: 64px;
  --gutter: 20px; --ease-out: cubic-bezier(0.23, 1, 0.32, 1); --dur-press: 100ms; --dur-release: 150ms;
  display: block; color: var(--ds-ink); font-size: var(--t-15); line-height: 1.6; word-break: keep-all; overflow-wrap: break-word; text-align: left;
  -webkit-font-smoothing: antialiased; padding-bottom: var(--s-3xl);
}
@media (max-width: 40rem) { .v5 { --gutter: 16px; } }
.v5 *, .v5 *::before, .v5 *::after { box-sizing: border-box; }
.v5 h1, .v5 h2, .v5 h3 { margin: 0; color: var(--ds-deep); font-weight: 800; line-height: 1.3; letter-spacing: -0.02em; text-wrap: balance; }
.v5 p { margin: 0; text-wrap: pretty; }
.v5 ul, .v5 ol, .v5 dl, .v5 dd, .v5 figure { margin: 0; padding: 0; }
.v5 ul, .v5 ol { list-style: none; }
.v5 img { display: block; max-width: 100%; }
.v5 a { color: var(--ds-teal-ink); text-underline-offset: 0.18em; }
.v5 :focus-visible { outline: 2px solid var(--ds-teal); outline-offset: 2px; }
.v5 .v5-on-dark :focus-visible { outline-color: var(--ds-amber); }
.v5 .v5-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.v5-wrap { width: 100%; max-width: calc(1000px + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.v5 .v5-sub { color: var(--ds-sub); font-size: var(--t-15); }
.v5-ico { width: 28px; height: 28px; flex: none; }

/* controls */
.v5 .v5-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--s-xs); min-height: 44px; padding: 0 var(--s-lg); border: 1px solid transparent; border-radius: var(--r-ctl);
  font: inherit; font-size: var(--t-16); font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; touch-action: manipulation;
  transition: background-color var(--dur-release) var(--ease-out), border-color var(--dur-release) var(--ease-out), transform var(--dur-release) var(--ease-out); }
.v5 .v5-btn:active { transform: scale(0.98); transition-duration: var(--dur-press); }
.v5 .v5-btn:disabled, .v5 .v5-btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.v5 .v5-stars-sum { color: var(--ds-star); }
.v5 .v5-btn-primary { background: var(--ds-teal); color: var(--ds-white); }
.v5 .v5-btn-primary:active { background: var(--ds-deep); }
.v5 .v5-btn-secondary { background: var(--ds-white); color: var(--ds-teal-ink); border-color: var(--ds-teal); }
.v5 .v5-btn-secondary:active { background: var(--ds-chip); }
.v5 .v5-btn-ontint { background: var(--ds-white); color: var(--ds-teal-ink); font-weight: 700; }
.v5 .v5-btn-ghost { background: var(--ds-white); color: var(--ds-ink); border-color: var(--ds-line); }
.v5 .v5-btn-sm { min-height: 36px; padding: 0 var(--s-md); font-size: var(--t-15); }
.v5 .v5-btn-sm::after { content: ""; position: absolute; inset: -4px -2px; }
@media (hover: hover) and (pointer: fine) {
  .v5 .v5-btn-primary:hover { background: var(--ds-teal-ink); }
  .v5 .v5-btn-secondary:hover, .v5 .v5-btn-ontint:hover { background: var(--ds-chip); }
  .v5 .v5-btn-ghost:hover { border-color: var(--ds-sub); }
}
.v5 .v5-panel { background: var(--ds-white); border-radius: var(--r-card); box-shadow: var(--card); }
.v5 .v5-pill { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s-md); border-radius: var(--r-pill); border: 1px solid var(--ds-line); background: var(--ds-white); color: var(--ds-ink); font-size: var(--t-15); text-decoration: none; white-space: nowrap; position: relative; }
.v5 .v5-pill::after { content: ""; position: absolute; inset: -2px 0; }
.v5 .v5-pill[aria-current="page"] { background: var(--ds-teal); border-color: var(--ds-teal); color: var(--ds-white); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .v5 .v5-pill:not([aria-current]):hover { border-color: var(--ds-teal); color: var(--ds-teal-ink); } }
.v5 .v5-tags { display: flex; flex-wrap: wrap; gap: var(--s-2xs); }
.v5 .v5-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 var(--s-xs); border-radius: var(--r-chip); background: var(--ds-chip); color: var(--ds-teal-ink); font-size: var(--t-12); font-weight: 700; white-space: nowrap; }
.v5 .v5-tag.free { background: var(--ds-teal); color: var(--ds-white); }
.v5 .v5-on-dark .v5-tag:not(.free) { background: var(--ds-deep); color: var(--ds-on-teal); }
.v5 .v5-on-dark .v5-tag.free { background: var(--ds-amber); color: var(--ds-deep); }
.v5 .v5-warn { margin-top: var(--s-md); padding: var(--s-sm) var(--s-md); border-radius: var(--r-ctl); background: var(--ds-warn-bg); color: var(--ds-warn); font-size: var(--t-13); }
.v5 .v5-ok { font-weight: 700; color: var(--ds-teal-ink); }
.v5 .v5-note { font-size: var(--t-13); color: var(--ds-sub); line-height: 1.7; }
.v5 .v5-empty { margin-top: var(--s-sm); display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s-sm); align-items: center; padding: var(--s-md); border-radius: var(--r-ctl); background: var(--ds-paper); color: var(--ds-sub); font-size: var(--t-15); }
.v5 .v5-empty .v5-ico { width: 32px; height: 32px; color: var(--ds-teal); }
.v5 .v5-empty b { display: block; color: var(--ds-ink); }

/* hub switch: 라이브 특강 | 영상 강의 */
.v5 .v5-hub { display: inline-grid; grid-template-columns: repeat(2, auto); gap: var(--s-2xs); padding: var(--s-2xs); border-radius: var(--r-pill); background: var(--ds-chip); margin-top: var(--s-md); }
.v5 .v5-hub a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s-md); border-radius: var(--r-pill); color: var(--ds-teal-ink); font-weight: 600; text-decoration: none; }
.v5 .v5-hub a[aria-current="page"] { background: var(--ds-white); color: var(--ds-deep); font-weight: 700; box-shadow: var(--card); }

/* ---------------------------------------------------------------- list */
.v5 .v5-vh { background: var(--ds-paper); }
.v5 .v5-vh .v5-wrap { padding-block: var(--s-xl) var(--s-lg); display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s-xl); align-items: center; }
.v5 .v5-vh h1 { font-size: var(--t-36); }
.v5 .v5-vh .v5-lede { margin-top: var(--s-xs); font-size: var(--t-16); max-width: 40em; }
.v5 .v5-vh .v5-legal { margin-top: var(--s-sm); font-size: var(--t-13); color: var(--ds-sub); max-width: 46em; }
.v5 .v5-vh img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-card); box-shadow: var(--card); }
.v5 .v5-filter { display: flex; flex-wrap: wrap; gap: var(--s-xs); margin-top: var(--s-lg); }
.v5 .v5-feat { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); overflow: hidden; margin-top: var(--s-md); }
.v5 .v5-feat .v5-th { display: block; background: var(--ds-chip); }
.v5 .v5-feat .v5-th img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.v5 .v5-feat .v5-body { padding: var(--s-lg); display: grid; gap: var(--s-sm); align-content: center; justify-items: start; }
.v5 .v5-feat .v5-tt { font-size: var(--t-22); font-weight: 800; color: var(--ds-deep); line-height: 1.35; text-decoration: none; }
.v5 .v5-feat p { font-size: var(--t-15); }
.v5 .v5-mini { display: flex; flex-wrap: wrap; gap: var(--s-xs) var(--s-lg); font-size: var(--t-13); }
.v5 .v5-mini dt { color: var(--ds-sub); }
.v5 .v5-mini dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.v5 .v5-seller { font-size: var(--t-13); color: var(--ds-sub); }
.v5 .v5-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-md); margin-top: var(--s-md); }
.v5 .v5-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.v5 .v5-card .v5-th { display: block; aspect-ratio: 16 / 9; background: var(--ds-chip); }
.v5 .v5-card .v5-th img { width: 100%; height: 100%; object-fit: cover; }
.v5 .v5-card .v5-th span { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; padding: 0 var(--s-sm); color: var(--ds-teal-ink); font-weight: 700; text-align: center; }
.v5 .v5-card .v5-body { padding: var(--s-md); display: grid; gap: var(--s-2xs); align-content: start; }
.v5 .v5-card .v5-tt { font-size: var(--t-18); font-weight: 800; color: var(--ds-deep); line-height: 1.35; text-decoration: none; }
.v5 .v5-card .v5-meta { font-size: var(--t-13); color: var(--ds-sub); font-variant-numeric: tabular-nums; }
.v5 .v5-card .v5-pr { font-size: var(--t-15); font-weight: 700; color: var(--ds-teal-ink); }
@media (hover: hover) and (pointer: fine) { .v5 .v5-feat:hover, .v5 .v5-card:hover { box-shadow: var(--card-hi); } .v5 .v5-feat .v5-tt:hover, .v5 .v5-card .v5-tt:hover { text-decoration: underline; } }
.v5 .v5-soon { margin-top: var(--s-md); }
.v5 .v5-none { margin-top: var(--s-lg); }
.v5 .v5-recruit { display: grid; grid-template-columns: 240px minmax(0, 1fr) auto; gap: var(--s-xl); align-items: center; margin-top: var(--s-2xl); padding: var(--s-lg); border-radius: var(--r-card); background: linear-gradient(135deg, var(--ds-deep), var(--ds-teal-ink)); color: var(--ds-white); }
.v5 .v5-recruit img { width: 100%; height: auto; border-radius: var(--r-ctl); }
.v5 .v5-recruit h2 { font-size: var(--t-22); color: var(--ds-white); }
.v5 .v5-recruit ul { margin-top: var(--s-xs); display: grid; gap: var(--s-3xs); color: var(--ds-on-teal); font-size: var(--t-15); }

/* ---------------------------------------------------------------- detail */
.v5 .v5-ch { background: linear-gradient(135deg, var(--ds-deep) 0%, var(--ds-teal-ink) 100%); color: var(--ds-white); }
.v5 .v5-ch .v5-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: var(--s-xl); align-items: center; padding-block: var(--s-2xl); }
.v5 .v5-ch h1 { margin-top: var(--s-sm); color: var(--ds-white); font-size: var(--t-36); line-height: 1.25; }
.v5 .v5-ch .v5-lede { margin-top: var(--s-sm); font-size: var(--t-18); color: var(--ds-on-teal); }
.v5 .v5-ch-art img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-card); box-shadow: var(--card-hi); }
.v5 .v5-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-xs); margin-top: var(--s-lg); max-width: 520px; }
.v5 .v5-facts div { padding: var(--s-sm) var(--s-md); border-radius: var(--r-ctl); background: var(--ds-deep); }
.v5 .v5-facts dt { color: var(--ds-on-teal); font-size: var(--t-12); }
.v5 .v5-facts dd { font-size: var(--t-16); font-weight: 700; color: var(--ds-white); font-variant-numeric: tabular-nums; }
.v5 .v5-cd .v5-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "main buy"; gap: var(--s-2xl); align-items: start; padding-top: var(--s-xl); }
.v5 .v5-cd-main { grid-area: main; min-width: 0; }
.v5 .v5-buy { grid-area: buy; position: sticky; top: var(--s-md); padding: var(--s-lg); display: grid; gap: var(--s-sm); box-shadow: var(--card-hi); }
.v5 .v5-buy .v5-btn { width: 100%; min-height: 52px; }
.v5 .v5-buy form { margin: 0; }
.v5 .v5-price { font-size: var(--t-28); font-weight: 800; color: var(--ds-deep); font-variant-numeric: tabular-nums; line-height: 1.25; }
.v5 .v5-price small { display: block; margin-top: var(--s-2xs); font-size: var(--t-13); font-weight: 400; color: var(--ds-sub); }
.v5 .v5-price.soon { font-size: var(--t-22); }
.v5 .v5-buy .v5-meta { font-size: var(--t-13); color: var(--ds-sub); }
.v5 .v5-buy .v5-warn { margin-top: 0; }
.v5 .v5-buy .vl-prog { margin: 0 !important; }
.v5 .v5-byline { font-size: var(--t-15); color: var(--ds-ink); padding: var(--s-sm) var(--s-md); border-radius: var(--r-ctl); background: var(--ds-paper); box-shadow: inset 0 0 0 1px var(--ds-line); }
.v5 .v5-byline a { font-weight: 700; }
.v5 .v5-tabs { display: flex; gap: var(--s-lg); border-bottom: 1px solid var(--ds-line); margin-top: var(--s-lg); overflow-x: auto; scrollbar-width: none; position: sticky; top: 0; background: var(--ds-white); z-index: 5; }
.v5 .v5-tabs::-webkit-scrollbar { display: none; }
.v5 .v5-tabs a { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; min-width: 44px; padding-inline: var(--s-2xs); color: var(--ds-sub); font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.v5 .v5-tabs a[aria-current="true"] { color: var(--ds-ink); font-weight: 700; border-bottom-color: var(--ds-teal); }
.v5 .v5-tabs a span { margin-left: var(--s-2xs); color: var(--ds-sub); font-variant-numeric: tabular-nums; }
.v5 .v5-pan { padding-top: var(--s-xl); scroll-margin-top: 64px; }
.v5 .v5-pan h2 { font-size: var(--t-22); }
.v5 .v5-pan .v5-txt { margin-top: var(--s-sm); white-space: pre-line; font-size: var(--t-15); line-height: 1.75; }
.v5 .v5-pan > .v5-note:first-of-type { margin-top: var(--s-2xs); }
.v5 .v5-eps { width: 100%; border-collapse: collapse; margin-top: var(--s-sm); }
.v5 .v5-eps td, .v5 .v5-eps th { padding: var(--s-sm) var(--s-sm) var(--s-sm) 0; border-bottom: 1px solid var(--ds-line); text-align: left; vertical-align: middle; font-weight: 400; }
.v5 .v5-eps td.th { width: 128px; }
.v5 .v5-eps td.th img { width: 112px; height: 63px; object-fit: cover; border-radius: var(--r-chip); }
.v5 .v5-eps th { width: 56px; color: var(--ds-sub); font-size: var(--t-13); white-space: nowrap; font-variant-numeric: tabular-nums; }
.v5 .v5-eps td.t { font-size: var(--t-15); font-weight: 600; }
.v5 .v5-eps td.t .v5-tag { margin-right: var(--s-2xs); }
.v5 .v5-eps td.len { width: 64px; text-align: right; color: var(--ds-sub); font-size: var(--t-13); font-variant-numeric: tabular-nums; white-space: nowrap; }
.v5 .v5-eps tr.sec td { padding-top: var(--s-md); font-size: var(--t-13); font-weight: 800; color: var(--ds-deep); }
.v5 .v5-player-sec .vp-wrap, .v5 .v5-player .vp-wrap { border-radius: var(--r-card); box-shadow: var(--card-hi); margin-top: var(--s-sm); }
.v5 .vp-start { width: auto; min-width: 76px; height: 76px; padding: 0 var(--s-lg) 0 calc(var(--s-lg) + 18px) !important; border-radius: var(--r-pill) !important; background: var(--ds-white) !important; color: var(--ds-teal-ink) !important; box-shadow: var(--card-hi); }
.v5 .vp-start::before { content: ""; position: absolute; left: var(--s-lg); top: 50%; margin-top: -9px; border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent var(--ds-teal); }
.v5 .vp-start:active { transform: translate(-50%, -50%) scale(0.96); }
.v5 .v5-login { margin-top: var(--s-sm); display: grid; gap: var(--s-sm); justify-items: start; padding: var(--s-md); border-radius: var(--r-ctl); background: var(--ds-paper); box-shadow: inset 0 0 0 1px var(--ds-line); }
.v5 .v5-teacher { margin-top: var(--s-sm); display: flex; gap: var(--s-sm); align-items: center; }
.v5 .v5-teacher img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.v5 .v5-review-form { margin-top: var(--s-md); padding: var(--s-md); display: grid; gap: var(--s-sm); }
.v5 .v5-review-form .v5-stars { display: flex; flex-wrap: wrap; gap: var(--s-xs) var(--s-md); }
.v5 .v5-review-form .v5-stars label { display: inline-flex; align-items: center; gap: var(--s-2xs); min-height: 44px; font-size: var(--t-15); color: var(--ds-star); cursor: pointer; }
.v5 .v5-review-form textarea, .v5 .v5-rv input[type="text"] { width: 100%; border: 1px solid var(--ds-sub); border-radius: var(--r-ctl); padding: var(--s-sm); font: inherit; font-size: var(--t-16); background: var(--ds-white); color: var(--ds-ink); }
.v5 .v5-rv { padding: var(--s-md) 0; border-bottom: 1px solid var(--ds-line); }
.v5 .v5-rv .who { font-size: var(--t-13); color: var(--ds-sub); }
.v5 .v5-rv .stars { color: var(--ds-star); }
.v5 .v5-rv .v5-txt { margin-top: var(--s-2xs); }
.v5 .v5-rv .rep { margin-top: var(--s-xs); padding: var(--s-xs) var(--s-sm); border-radius: var(--r-ctl); background: var(--ds-chip); font-size: var(--t-15); }
.v5 .v5-rv form { margin-top: var(--s-xs); display: flex; gap: var(--s-xs); }
.v5 .v5-row { display: flex; flex-wrap: wrap; gap: var(--s-xs); margin-top: var(--s-sm); }
.v5 .v5-cross { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--s-md); align-items: center; margin-top: var(--s-md); padding: var(--s-sm); color: var(--ds-ink); text-decoration: none; transition: box-shadow var(--dur-release) var(--ease-out); }
.v5 .v5-cross img { width: 120px; height: 68px; object-fit: cover; border-radius: var(--r-chip); }
.v5 .v5-cross small { display: block; font-size: var(--t-12); color: var(--ds-teal-ink); font-weight: 700; }
.v5 .v5-cross b { display: block; font-size: var(--t-15); font-weight: 700; }
.v5 .v5-cross span { font-size: var(--t-12); color: var(--ds-sub); }
@media (hover: hover) and (pointer: fine) { .v5 .v5-cross:hover { box-shadow: var(--card-hi); } }

/* ---------------------------------------------------------------- watch */
.v5 .v5-watch-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-xl); padding-top: var(--s-lg); align-items: start; }
.v5 .v5-watch-main { min-width: 0; }
.v5 .v5-crumb { font-size: var(--t-13); color: var(--ds-sub); }
.v5 .v5-crumb a { font-weight: 600; }
.v5 .v5-watch h1 { font-size: var(--t-22); margin-top: var(--s-2xs); }
.v5 .v5-watch .v5-sub { margin-top: var(--s-2xs); font-size: var(--t-13); }
.v5 .v5-player { margin-top: var(--s-sm); }
.v5 .v5-player .vp-notice { margin-top: var(--s-sm); }
.v5 .v5-ctl { display: flex; justify-content: space-between; gap: var(--s-xs); margin-top: var(--s-sm); }
.v5 .v5-ctl .v5-btn:only-child { margin-left: auto; }
.v5 .v5-side { position: sticky; top: var(--s-md); display: grid; gap: var(--s-md); }
.v5 .v5-prog { padding: var(--s-md); display: grid; gap: var(--s-xs); }
.v5 .v5-prog b { font-size: var(--t-16); color: var(--ds-deep); }
.v5 .v5-prog .n { font-size: var(--t-28); font-weight: 800; color: var(--ds-teal-ink); font-variant-numeric: tabular-nums; line-height: 1.2; }
.v5 .v5-prog .n small { font-size: var(--t-15); color: var(--ds-sub); font-weight: 600; }
.v5 .v5-bar { height: 8px; border-radius: var(--r-pill); background: var(--ds-chip); overflow: hidden; }
.v5 .v5-bar i { display: block; height: 100%; background: var(--ds-teal); border-radius: inherit; }
.v5 .v5-wlist { padding: var(--s-xs); }
.v5 .v5-wlist .sec { padding: var(--s-sm) var(--s-sm) var(--s-2xs); font-size: var(--t-13); font-weight: 800; color: var(--ds-deep); }
.v5 .v5-wlist a, .v5 .v5-wlist .x { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: var(--s-xs); align-items: center; min-height: 52px; padding: var(--s-xs) var(--s-sm); border-radius: var(--r-ctl); color: var(--ds-ink); text-decoration: none; font-size: var(--t-15); line-height: 1.4; }
.v5 .v5-wlist .x { color: var(--ds-sub); }
.v5 .v5-wlist a[aria-current="true"] { background: var(--ds-chip); font-weight: 700; }
.v5 .v5-wlist .st { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--ds-mint-soft); color: var(--ds-white); }
.v5 .v5-wlist .st.done { background: var(--ds-teal); box-shadow: none; }
.v5 .v5-wlist .st.now { box-shadow: inset 0 0 0 2px var(--ds-teal); }
.v5 .v5-wlist .st .v5-ico { width: 14px; height: 14px; }
.v5 .v5-wlist .len { font-size: var(--t-12); color: var(--ds-sub); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .v5 .v5-wlist a:not([aria-current]):hover { background: var(--ds-paper); } }
.v5 .v5-foot { margin-top: var(--s-md); font-size: var(--t-12); color: var(--ds-sub); line-height: 1.6; }

/* ---------------------------------------------------------------- sell */
.v5 .v5-sec { padding-top: var(--s-3xl); }
.v5 .v5-sec h2 { font-size: var(--t-28); }
.v5 .v5-sec .v5-sub { margin-top: var(--s-2xs); }
.v5 .v5-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-md); margin-top: var(--s-lg); }
.v5 .v5-how li { overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.v5 .v5-how img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--ds-paper); }
.v5 .v5-how div { padding: var(--s-md); display: grid; gap: var(--s-2xs); }
.v5 .v5-how b { font-size: var(--t-18); color: var(--ds-deep); }
.v5 .v5-how span { font-size: var(--t-15); color: var(--ds-sub); }
.v5 .v5-appnote { margin-top: var(--s-lg); padding: var(--s-sm) var(--s-md); border-radius: var(--r-ctl); box-shadow: inset 0 0 0 1px var(--ds-mint-soft); color: var(--ds-sub); font-size: var(--t-13); }
.v5 .v5-appnote b { color: var(--ds-teal-ink); }
.v5 .v5-ch .v5-btn-money { margin-top: var(--s-lg); background: var(--ds-amber); color: var(--ds-deep); font-weight: 700; }
@media (hover: hover) and (pointer: fine) { .v5 .v5-ch .v5-btn-money:hover { background: var(--ds-amber-soft); } }

/* ---------------------------------------------------------------- main page rail (logged-in students and parents) */
.v5.v5-rail { padding-block: var(--s-xl) var(--s-lg); }
.v5 .v5-row-hd { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-xs) var(--s-md); }
.v5 .v5-row-hd h2 { font-size: var(--t-22); }
.v5 .v5-more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.v5 .v5-rail-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s-md); margin-top: var(--s-sm); align-items: stretch; }
.v5 .v5-series { display: grid; grid-template-rows: auto 1fr; overflow: hidden; color: var(--ds-ink); text-decoration: none; }
.v5 .v5-series img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.v5 .v5-series .v5-body { padding: var(--s-md) var(--s-lg) var(--s-lg); display: grid; gap: var(--s-xs); align-content: start; }
.v5 .v5-series b { font-size: var(--t-18); font-weight: 800; color: var(--ds-deep); line-height: 1.35; }
.v5 .v5-series .v5-meta { font-size: var(--t-13); color: var(--ds-sub); font-variant-numeric: tabular-nums; }
.v5 .v5-eplist { display: grid; gap: var(--s-xs); align-content: start; }
.v5 .v5-eplist a { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--s-sm); align-items: center; padding: var(--s-xs); color: var(--ds-ink); text-decoration: none; }
.v5 .v5-eplist a.noimg { grid-template-columns: minmax(0, 1fr); padding: var(--s-sm) var(--s-md); }
.v5 .v5-eplist img { width: 112px; height: 63px; object-fit: cover; border-radius: var(--r-chip); }
.v5 .v5-eplist b { display: block; font-size: var(--t-15); font-weight: 700; line-height: 1.4; }
.v5 .v5-eplist span { font-size: var(--t-12); color: var(--ds-sub); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .v5 .v5-series:hover, .v5 .v5-eplist a:hover { box-shadow: var(--card-hi); } }

/* ---------------------------------------------------------------- phones and narrow tablets */
@media (max-width: 63.9rem) {
  .v5 .v5-vh .v5-wrap { grid-template-columns: minmax(0, 1fr); padding-block: var(--s-lg); gap: var(--s-md); }
  .v5 .v5-vh h1 { font-size: var(--t-28); }
  .v5 .v5-vh img { display: none; }
  .v5 .v5-feat { grid-template-columns: minmax(0, 1fr); }
  .v5 .v5-feat .v5-th img { aspect-ratio: 16 / 9; height: auto; }
  .v5 .v5-feat .v5-body { padding: var(--s-md); }
  .v5 .v5-feat .v5-body > .v5-btn { width: 100%; }
  .v5 .v5-grid { grid-template-columns: minmax(0, 1fr); }
  .v5 .v5-recruit { grid-template-columns: minmax(0, 1fr); gap: var(--s-md); padding: var(--s-md); }
  .v5 .v5-recruit img { max-width: 320px; }
  .v5 .v5-ch .v5-wrap { grid-template-columns: minmax(0, 1fr); gap: var(--s-md); padding-block: var(--s-lg); }
  .v5 .v5-ch h1 { font-size: var(--t-28); }
  .v5 .v5-ch .v5-lede { font-size: var(--t-16); }
  .v5 .v5-cd .v5-wrap { grid-template-columns: minmax(0, 1fr); grid-template-areas: "buy" "main"; gap: 0; padding-top: var(--s-md); }
  .v5 .v5-buy { position: static; box-shadow: var(--card); }
  .v5 .v5-eps td.th { width: 88px; }
  .v5 .v5-eps td.th img { width: 80px; height: 45px; }
  .v5 .v5-eps th { width: 44px; }
  .v5 .v5-tabs { gap: var(--s-md); }
  .v5 .v5-watch-grid { grid-template-columns: minmax(0, 1fr); padding-top: var(--s-md); }
  .v5 .v5-side { position: static; }
  .v5 .v5-how { grid-template-columns: minmax(0, 1fr); }
  .v5 .v5-sec { padding-top: var(--s-2xl); }
  .v5 .v5-sec h2 { font-size: var(--t-22); }
  .v5 .v5-rail-in { grid-template-columns: minmax(0, 1fr); }
  .v5 .v5-series .v5-body { padding: var(--s-md); }
}
@media (max-width: 40rem) {
  .v5 .v5-facts dd { font-size: var(--t-15); }
  .v5 .v5-cross { grid-template-columns: 88px minmax(0, 1fr); }
  .v5 .v5-cross img { width: 88px; height: 50px; }
  .v5 .v5-ctl .v5-btn { padding: 0 var(--s-md); font-size: var(--t-15); }
}
@media (prefers-reduced-motion: reduce) {
  .v5 *, .v5 *::before, .v5 *::after { transition-duration: 0.01ms !important; }
  .v5 .v5-btn:active { transform: none; }
}
.v5.v5-inline { padding: 0; margin: var(--s-sm) 0; }
.v5.v5-inline .v5-cross { margin-top: 0; }

/* ---------------------------------------------------------------- my courses, orders, refund, receipt, buy (2026-12-03 buyer flow) */
.v5 .v5-mylist { display: grid; gap: var(--s-md); margin-top: var(--s-lg); }
.v5 .v5-myc { display: grid; grid-template-columns: 240px minmax(0, 1fr); overflow: hidden; }
.v5 .v5-myc.noimg { grid-template-columns: minmax(0, 1fr); }
.v5 .v5-myc.off { opacity: 0.7; }
.v5 .v5-myc .v5-th { display: block; background: var(--ds-chip); }
.v5 .v5-myc .v5-th img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.v5 .v5-myc .v5-body { padding: var(--s-md) var(--s-lg); display: grid; gap: var(--s-xs); align-content: start; }
.v5 .v5-myc .v5-tt { font-size: var(--t-18); font-weight: 800; color: var(--ds-deep); line-height: 1.35; text-decoration: none; }
.v5 .v5-meta { font-size: var(--t-13); color: var(--ds-sub); font-variant-numeric: tabular-nums; }
.v5 .v5-myprog { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-sm); align-items: center; font-size: var(--t-13); color: var(--ds-sub); }
.v5 .v5-myprog b { color: var(--ds-teal-ink); font-variant-numeric: tabular-nums; }
.v5 .v5-mystat { display: flex; flex-wrap: wrap; gap: var(--s-2xs) var(--s-md); font-size: var(--t-15); }
.v5 .v5-mystat li { display: inline-flex; align-items: center; gap: var(--s-2xs); min-height: 32px; }
.v5 .v5-myh { margin-top: var(--s-2xl); font-size: var(--t-22); }
.v5 .v5-hub a { white-space: nowrap; }
.v5 .v5-orders { width: 100%; border-collapse: collapse; margin-top: var(--s-lg); font-size: var(--t-15); }
.v5 .v5-orders th, .v5 .v5-orders td { text-align: left; padding: var(--s-sm) var(--s-sm) var(--s-sm) 0; border-bottom: 1px solid var(--ds-line); vertical-align: top; }
.v5 .v5-orders thead th { font-size: var(--t-13); color: var(--ds-sub); font-weight: 600; }
.v5 .v5-orders td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.v5 .v5-orders .v5-row { margin-top: var(--s-2xs); }
.v5 .v5-state { display: inline-flex; align-items: center; min-height: 24px; padding: 0 var(--s-xs); border-radius: var(--r-chip); font-size: var(--t-12); font-weight: 700; background: var(--ds-chip); color: var(--ds-teal-ink); white-space: nowrap; }
.v5 .v5-state.req { background: var(--ds-amber-soft); color: var(--ds-deep); }
.v5 .v5-state.ref { background: var(--ds-paper); color: var(--ds-sub); box-shadow: inset 0 0 0 1px var(--ds-line); }
.v5 .v5-box { margin-top: var(--s-lg); padding: var(--s-lg); display: grid; gap: var(--s-sm); }
.v5 .v5-box h2 { font-size: var(--t-18); }
.v5 .v5-dl { display: grid; gap: var(--s-xs); font-size: var(--t-15); }
.v5 .v5-dl div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--s-sm); padding-bottom: var(--s-xs); border-bottom: 1px solid var(--ds-line); }
.v5 .v5-dl dt { color: var(--ds-sub); font-size: var(--t-13); padding-top: var(--s-3xs); }
.v5 .v5-dl dd { font-variant-numeric: tabular-nums; }
.v5 .v5-big { font-size: var(--t-28); font-weight: 800; color: var(--ds-deep); font-variant-numeric: tabular-nums; }
.v5 .v5-opt { display: flex; gap: var(--s-sm); align-items: center; min-height: 52px; padding: var(--s-sm) var(--s-md); border-radius: var(--r-ctl); box-shadow: inset 0 0 0 1px var(--ds-line); background: var(--ds-white); cursor: pointer; font-size: var(--t-15); }
.v5 .v5-opt input { width: 18px; height: 18px; accent-color: var(--ds-teal); }
.v5 .v5-opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ds-teal); background: var(--ds-chip); }
.v5 fieldset.v5-f { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s-xs); }
.v5 fieldset.v5-f legend { font-weight: 700; font-size: var(--t-15); margin-bottom: var(--s-xs); padding: 0; }
.v5 .v5-share { display: flex; gap: var(--s-xs); margin-top: var(--s-xs); }
.v5 .v5-share input { flex: 1; min-width: 0; border: 1px solid var(--ds-sub); border-radius: var(--r-ctl); padding: 0 var(--s-sm); min-height: 44px; font: inherit; font-size: var(--t-15); background: var(--ds-white); }
.v5 .v5-buygrid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s-2xl); align-items: start; padding-top: var(--s-xl); }
.v5 .v5-receipt { max-width: 640px; }
@media print { .v5 .v5-noprint, #Wrap-Header, .footer-2025, #paybanner, .sd-tabs { display: none !important; } .v5 .v5-panel { box-shadow: none; border: 1px solid #ccc; } }
@media (max-width: 63.9rem) {
  .v5 .v5-myc { grid-template-columns: minmax(0, 1fr); }
  .v5 .v5-myc .v5-body { padding: var(--s-md); }
  .v5 .v5-buygrid { grid-template-columns: minmax(0, 1fr); gap: var(--s-lg); padding-top: var(--s-lg); }
  .v5 .v5-orders thead { display: none; }
  .v5 .v5-orders tr { display: grid; gap: var(--s-2xs); padding: var(--s-sm) 0; border-bottom: 1px solid var(--ds-line); }
  .v5 .v5-orders td { border: 0; padding: 0; }
  .v5 .v5-dl div { grid-template-columns: 96px minmax(0, 1fr); }
}
.v5 .v5-cont { margin-top: var(--s-lg); }
.v5 .v5-cont .v5-row-hd h2 { font-size: var(--t-22); }
.v5 .v5-cont-list { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--s-xs); }
@media (max-width: 63.9rem) { .v5 .v5-cont-list { grid-template-columns: minmax(0, 1fr); } }
