/* Story characters on film: see characters.js */
.ch-film { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; background: #14100C; opacity: 0; transition: opacity .5s ease; pointer-events: none; z-index: 2; }
.ch-film.on { opacity: 1; }
.ch-film.off { opacity: 0 !important; }
.ch-v { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }

/* cover frame on core and Panchatantra story pages */
.ch-host { position: relative; }
.ch-cover { border-radius: inherit; }
/* series episodes (desktop): the frame itself has square corners, the cover image inside it is rounded */
.ot-ep-art > .ch-cover { border-radius: 18px; }
.ch-sw { position: absolute; right: 10px; bottom: 10px; z-index: 3; width: 40px; height: 40px; border: 0; border-radius: 50%; padding: 0; cursor: pointer; background: rgba(20,16,12,.55) center / 18px no-repeat; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 2px 10px rgba(0,0,0,.25); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E"); }
.ch-sw[aria-pressed="true"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5.5v13l11-6.5z'/%3E%3C/svg%3E"); }
.ch-sw:hover { background-color: rgba(20,16,12,.72); }
.ch-sw:focus-visible { outline: 3px solid #E8590C; outline-offset: 2px; }

/* card beside the title on story-and-activity pages */
.ch-card { position: relative; inset: auto; float: right; width: 190px; aspect-ratio: 9 / 16; margin: 0 0 16px 28px; border-radius: 22px; box-shadow: 0 18px 40px -16px rgba(20,16,12,.45), 0 0 0 1px rgba(20,16,12,.08); shape-outside: inset(0 round 22px); }
@media (max-width: 700px) { .ch-card { width: 128px; margin: 0 0 12px 16px; border-radius: 18px; } }
/* the hero card grows to hold the floated film card, which used to hang 80px out of it over the next section */
.fe-hero.ch-host { display: flow-root; }
/* on the first slide of phone guide mode */
/* (a wide band that takes the free space between the intro and the Start button, so the button is never pushed off the slide) */
.ch-card.ch-gm { float: none; flex: 1 1 0; min-height: 0; max-height: 260px; aspect-ratio: auto; width: 100%; margin: 18px 0; border-radius: 20px; box-shadow: 0 16px 36px -14px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.18); shape-outside: none; }
.ch-card.ch-gm .ch-v { object-position: 50% 35%; }

/* home: hover preview over a story card cover */
.ch-prev { border-radius: inherit; transition: opacity .3s ease; }

@media (prefers-reduced-motion: reduce) { .ch-film { transition: none; } }
