/* 段考複習動畫 page: flat cards on the reading-page background, a plain dialog for the player. No gradients, no glow. */
/* the 粉圓 font draws some characters heavier than others, which reads as broken in running text: this page sets its text in the plain system sans (--body) and keeps the serif for headings */
.videos, .vplayer { font-family: var(--body); }
.videos { background: #111A21; padding: 120px 0 110px; min-height: 100vh; }

.vhero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.videos .eyebrow { color: var(--gold); letter-spacing: 0.12em; font-size: 15px; margin-bottom: 10px; }
.videos h1 { font-family: var(--serif); font-size: clamp(34px, 9vw, 64px); white-space: nowrap; margin-bottom: 16px; }
.videos .lead { color: #D5DEE4; font-family: var(--body); max-width: 34em; }
.vbear { flex: none; width: 96px; height: auto; margin-bottom: -2px; }

.vfilter { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 8px; }
.vfilter button { font: inherit; font-size: 16px; color: var(--sub); background: transparent; border: 2px solid var(--line); border-radius: 14px; padding: 6px 18px; cursor: pointer; transition: color .15s, border-color .15s; }
.vfilter button span { color: var(--faint); font-size: 13px; margin-left: 4px; }
.vfilter button:hover { color: var(--text); border-color: rgba(241, 247, 251, 0.3); }
.vfilter button.on { color: #fff; background: var(--brand-deep); border-color: var(--brand-deep); }
.vfilter button.on span { color: #fff; opacity: 0.8; }
.vfilter button:focus-visible, .vclose:focus-visible, .vchapters button:focus-visible, .vcard:focus-visible { outline: 3px solid var(--brand-text); outline-offset: 3px; }

.vgroup { margin-top: 44px; }
.vgroup[hidden] { display: none; }
.vgroup h2 { font-family: var(--serif); font-size: 28px; margin-bottom: 18px; display: flex; align-items: baseline; gap: 14px; }
.vgroup h2 small { font-size: 14px; color: var(--faint); }
.vgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

.vcard { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--text); background: #18232D; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 0 #0B1218; transition: transform .12s, box-shadow .12s; }
.vcard:hover { transform: translateY(-3px); box-shadow: 0 7px 0 #0B1218; }
.vcard:active { transform: translateY(2px); box-shadow: 0 2px 0 #0B1218; }
.vthumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #0A0E13; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; }
/* a round play mark, so a card reads as a video */
.vthumb::before { content: ""; position: absolute; left: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%; background: rgba(10, 14, 20, 0.78); transition: background .15s; }
.vthumb::after { content: ""; position: absolute; left: 24px; bottom: 21px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; }
.vcard:hover .vthumb::before { background: var(--brand-deep); }
.vthumb b { position: absolute; right: 10px; bottom: 10px; font-weight: 400; font-size: 13px; background: rgba(10, 14, 18, 0.85); padding: 1px 9px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.vlabel { display: block; font-size: 14px; color: var(--gold); letter-spacing: 0.06em; }
.vcard .vlabel { padding: 14px 16px 0; }
.vtitle { padding: 2px 16px 16px; font-size: 17px; line-height: 1.55; font-family: var(--body); }

.vnote { margin-top: 64px; max-width: 46em; font-family: var(--body); line-height: 1.8; }
.vnote b { color: var(--text); font-weight: 400; }
.vcta { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.vcta p { font-family: var(--body); color: #D5DEE4; }
.vcta b { font-weight: 400; color: var(--text); }

.vplayer { border: 0; padding: 0; background: transparent; color: var(--text); width: min(960px, 100vw); max-width: 100vw; max-height: 100dvh; margin: auto; }
.vplayer::backdrop { background: rgba(5, 8, 14, 0.82); }
.vbox { background: #111A21; border-radius: 16px; padding: 18px 20px 24px; max-height: 100dvh; overflow-y: auto; }
.vbox header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 12px; }
.vbox h2 { font-size: 20px; line-height: 1.45; }
.vbox .vlabel { margin-bottom: 2px; }
.vclose { flex: none; width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: var(--sub); font-size: 30px; line-height: 1; cursor: pointer; }
.vclose:hover { color: var(--text); background: var(--line); }
.vgate { aspect-ratio: 16 / 9; background: #0A0E13; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 16px; }
.vgate[hidden] { display: none; }
.vgate p { color: #D5DEE4; }
.vgate-msg { min-height: 1.6em; font-size: 14px; color: var(--sub) !important; }
.vgate:not([hidden]) + video { display: none; }
.vbox video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; display: block; }
.vscope { margin-top: 14px; color: var(--sub); font-size: 15px; font-family: var(--body); }
.vchapters { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 16px; }
.vchapters button { width: 100%; display: flex; gap: 12px; align-items: baseline; text-align: left; font: inherit; font-size: 15px; color: #D5DEE4; background: transparent; border: 0; border-radius: 8px; padding: 6px 8px; cursor: pointer; }
.vchapters button:hover { background: var(--line); }
.vchapters time { color: var(--brand-text); font-variant-numeric: tabular-nums; flex: none; }
body:has(dialog[open]) { overflow: hidden; }

@media (max-width: 560px) {
  .videos { padding-top: 100px; }
  .vbear { width: 64px; }
  .vgroup { margin-top: 36px; }
  .vgrid { grid-template-columns: 1fr; }
  .vplayer { width: 100vw; }
  .vbox { border-radius: 0; min-height: 100dvh; }
}
