/* Chapter preview video on static reading pages (scripts/chapter_shorts.py). */
.cc-short { display: grid; justify-items: center; gap: .6rem; margin: 2rem 0; padding: 1.4rem 1rem; text-align: center;
  border-radius: 18px; background: rgba(127, 127, 127, .08); border: 1px solid rgba(127, 127, 127, .2); }
.cc-short h2 { margin: 0; }
.cc-short video { display: block; width: min(100%, 320px); height: auto; aspect-ratio: 9 / 16; border-radius: 14px; background: #080c16; }
.cc-short p { margin: 0; }
.cc-short-note { font-size: .92em; opacity: .8; }
/* Wide screens: pin the preview in a side panel and shift the lesson column left to make room
   (header and footer bars stay full width). */
@media (min-width: 1260px) {
  main:has(.cc-short) { position: relative; left: -130px; }
  .cc-short { position: fixed; top: 96px; right: 20px; width: 220px; margin: 0; padding: .9rem .7rem; gap: .5rem; z-index: 5;
    max-height: calc(100vh - 170px); overflow: auto; }
  .cc-short h2 { font-size: 1.05rem; }
  .cc-short video { width: 100%; max-height: calc(100vh - 330px); }
  .cc-short-note { font-size: .85em; }
}
