/* «DentX Academy» — views/videos/index.ejs (owner 2026-11-13). Light front layout; each track brings its colour as --tc. */
:root { --ac-navy: #0a1a3a; --ac-ink: #0f1c36; --ac-muted: #5d6b86; --ac-line: #e3e9f3; --ac-sky: #19c3ff; }

/* hero */
.ac-hero { position: relative; overflow: hidden; border-radius: 22px; padding: 1.4rem 1.25rem 1.3rem; margin: 0 0 1rem; color: #fff;
  background: radial-gradient(420px 260px at 85% 0%, rgba(25,195,255,.32), transparent 65%), radial-gradient(380px 300px at 0% 100%, rgba(30,136,255,.22), transparent 60%), linear-gradient(160deg, #061127, var(--ac-navy) 60%, #050d1f); }
.ac-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(#000, transparent 80%); }
.ac-hero > * { position: relative; z-index: 1; }
.ac-brand { display: inline-flex; align-items: center; gap: .55rem; }
.ac-brand img { height: 26px; width: auto; }
.ac-brand b { font-family: Inter, system-ui, sans-serif; font-weight: 800; font-size: .78rem; letter-spacing: .32em; color: var(--ac-sky); padding-top: 2px; }
.ac-hero h1 { font-size: clamp(1.45rem, 5.2vw, 2.1rem); font-weight: 900; line-height: 1.3; margin: .7rem 0 .35rem; text-wrap: balance; color: #fff; }
.ac-lead { margin: 0; color: #c8d6f2; font-size: .98rem; max-width: 46ch; }
.ac-stats { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.ac-stats li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: .35rem .75rem; font-size: .85rem; color: #dbe6fb; }
.ac-stats b { font-size: 1.05rem; color: #fff; margin-inline-end: .15rem; }
.ac-go { margin-top: 1.1rem; display: inline-flex; align-items: center; gap: .55rem; border: 0; border-radius: 999px; padding: .7rem 1.25rem .7rem 1.35rem; background: var(--ac-sky); color: #04132b; font-weight: 900; font-size: 1rem; cursor: pointer; touch-action: manipulation; box-shadow: 0 10px 26px -10px rgba(25,195,255,.8); }
.ac-go .bi { font-size: 1.35rem; line-height: 1; }
.ac-go:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ac-n { display: inline-block; min-width: 1.4em; padding: 0 .35em; border-radius: 999px; background: rgba(10,26,58,.08); font-size: .76rem; }
.fx-fchip.is-on .ac-n { background: rgba(255,255,255,.25); }

/* track */
.ac-track { margin: 1.4rem 0 .4rem; }
.ac-th { display: flex; align-items: flex-start; gap: .8rem; }
.ac-ti { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; color: #fff; background: var(--tc); box-shadow: 0 8px 18px -10px var(--tc); }
.ac-tt { flex: 1; min-width: 0; }
.ac-tt h2 { margin: 0; font-size: 1.15rem; font-weight: 900; color: var(--ac-ink); }
.ac-tt p { margin: .1rem 0 0; color: var(--ac-muted); font-size: .88rem; }
.ac-meta { display: flex; gap: .4rem; margin-top: .3rem; font-size: .76rem; font-weight: 700; color: var(--ac-muted); }
.ac-meta span { background: #f1f4fa; border-radius: 999px; padding: .08rem .6rem; }
.ac-all { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--ac-line); color: var(--ac-ink); text-decoration: none; background: #fff; }
html[dir="ltr"] .ac-all .bi, html[dir="ltr"] .vl-next .bi { display: inline-block; transform: scaleX(-1); }
.ac-prog { display: flex; align-items: center; gap: .6rem; margin: .7rem 0 0; font-size: .78rem; font-weight: 700; color: var(--ac-muted); }
.ac-bar { flex: 1; max-width: 220px; height: 6px; border-radius: 999px; background: #e9eef6; overflow: hidden; }
.ac-bar i { display: block; height: 100%; width: 0; background: var(--tc); border-radius: inherit; transition: width .4s; }

/* lessons: a swipe row on a phone, a wrapping grid when the track is opened alone or on a wide screen */
.ac-row { list-style: none; margin: .8rem calc(-1 * max(12px, 2vw)) 0; padding: 0 max(12px, 2vw) .4rem; display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ac-row::-webkit-scrollbar { display: none; }
.ac-row > li { scroll-snap-align: start; min-width: 0; }
.ac-track.is-solo .ac-row { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); overflow: visible; margin-inline: 0; padding-inline: 0; }
@media (min-width: 720px) { .ac-row { grid-auto-columns: 180px; } }

.ac-card { display: flex; flex-direction: column; gap: .4rem; width: 100%; padding: 0; border: 0; background: none; text-align: start; cursor: pointer; color: inherit; touch-action: manipulation; }
.ac-pic { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: var(--ac-navy); box-shadow: 0 14px 28px -18px rgba(10,26,58,.6); }
.ac-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.ac-card:hover .ac-pic img { transform: scale(1.03); }
.ac-card:focus-visible { outline: 3px solid var(--tc, var(--ac-sky)); outline-offset: 3px; border-radius: 16px; }
.ac-ln { position: absolute; top: 8px; inset-inline-end: 8px; background: rgba(5,13,31,.78); color: #fff; font-size: .72rem; font-weight: 800; padding: .12rem .55rem; border-radius: 999px; }
.ac-dur { position: absolute; bottom: 8px; inset-inline-start: 8px; background: rgba(0,0,0,.72); color: #fff; font-size: .74rem; font-weight: 700; padding: 1px 7px; border-radius: 6px; direction: ltr; }
.ac-ok { position: absolute; top: 8px; inset-inline-start: 8px; width: 26px; height: 26px; border-radius: 50%; display: none; place-items: center; background: #10b981; color: #fff; font-size: .9rem; box-shadow: 0 0 0 3px rgba(255,255,255,.85); }
.ac-card.is-seen .ac-ok { display: grid; }
.ac-card.is-seen .ac-pic img { filter: saturate(.75) brightness(.92); }
.ac-t { font-weight: 800; font-size: .9rem; line-height: 1.35; color: var(--ac-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ac-k { font-size: .75rem; color: var(--ac-muted); }
.ac-w { display: none; color: #0e9f6e; font-weight: 700; }
.ac-card.is-seen .ac-w { display: inline; }

.ac-empty { text-align: center; padding: 3rem 1rem; color: var(--ac-muted); }
.ac-empty .bi { font-size: 2.4rem; }
.ac-ch { text-align: center; margin: 1.8rem 0 1rem; }
.ac-ch a { font-weight: 800; color: #e0002b; text-decoration: none; }

/* player sheet */
.vl-sheet { position: fixed; inset: 0; z-index: 2000; background: rgba(5,12,28,.88); display: grid; place-items: center; padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(12px, env(safe-area-inset-bottom, 0px)); }
.vl-sheet-in { width: min(420px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: .55rem; }
.vl-sheet-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; color: #fff; }
.vl-sheet-top small { display: block; color: var(--ac-sky); font-weight: 700; font-size: .75rem; }
.vl-sheet-top b { display: block; line-height: 1.35; }
.vl-x { border: 0; background: rgba(255,255,255,.14); color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 1.1rem; flex: none; }
.vl-frame { position: relative; width: 100%; aspect-ratio: 9 / 16; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); border-radius: 18px; overflow: hidden; background: #000; margin-inline: auto; }
.vl-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vl-acts { display: flex; gap: .5rem; }
.vl-acts > * { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; border-radius: 12px; font-weight: 800; font-size: .92rem; text-decoration: none; touch-action: manipulation; }
.vl-open { background: rgba(255,255,255,.12); color: #fff; }
.vl-next { border: 0; background: var(--ac-sky); color: #04132b; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .ac-pic img, .ac-bar i { transition: none; } }
