/* creepymocha V4 - the vertical player (.vp), the watch screen (.vw) and Swipe (.sw).
   One 9:16 stage everywhere: a still with slow motion, a four-beat timeline (hook, story, tension, twist), captions, a right-hand rail. */

.vp { position: relative; width: 100%; height: 100%; overflow: hidden; background: #000; border-radius: 18px; container-type: size; color: var(--bone); isolation: isolate; user-select: none; -webkit-user-select: none; }
.vp__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; animation: kb linear both paused; }
.vp.is-playing .vp__bg { animation-play-state: running; }
@keyframes kb { from { transform: scale(1.04) translateX(calc(var(--kb, 0%) * -1)); } to { transform: scale(1.18) translateX(var(--kb, 0%)); } }
.vp__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(5, 4, 4, 0.64) 0%, rgba(5, 4, 4, 0) 20%, rgba(5, 4, 4, 0) 44%, rgba(5, 4, 4, 0.9) 100%); }
.vp__top { position: absolute; z-index: 2; left: 12px; right: 12px; top: 12px; pointer-events: none; }
.vp__beats { display: flex; gap: 4px; }
.vp__beats i { display: block; height: 3px; border-radius: 3px; background: rgba(237, 230, 216, 0.28); overflow: hidden; }
.vp__beats b { display: block; height: 100%; background: var(--bone); transform: scaleX(0); transform-origin: left; }
.vp__now { display: flex; justify-content: space-between; margin-top: 9px; font-size: 12px; font-weight: 650; text-shadow: 0 1px 6px #000; }
.vp__time { color: var(--bone-2); font-variant-numeric: tabular-nums; }
.vp__tap { position: absolute; inset: 0; z-index: 1; cursor: pointer; }
.vp__tap:focus-visible { outline-offset: -4px; }
.vp__center { position: absolute; left: 50%; top: 44%; z-index: 2; transform: translate(-50%, -50%); display: grid; place-items: center; width: 72px; height: 72px; border-radius: 999px; background: rgba(14, 11, 10, 0.5); border: 1.5px solid rgba(237, 230, 216, 0.6); pointer-events: none; transition: opacity 0.3s var(--out); }
.vp__center .ic { width: 28px; height: 28px; margin-left: 4px; }
.vp.is-playing .vp__center, .vp.has-ov .vp__center { opacity: 0; }
.vp__cap { position: absolute; z-index: 2; left: 16px; right: 72px; bottom: 164px; font-weight: 650; font-size: clamp(15px, 5.4cqw, 22px); line-height: 1.38; text-shadow: 0 2px 6px #000, 0 0 18px #000; opacity: 0; transform: translateY(6px); transition: opacity 0.45s var(--out), transform 0.6s var(--out); pointer-events: none; text-wrap: pretty; }
.vp__cap.is-in { opacity: 1; transform: none; }
.vp--feed .vp__cap { bottom: 200px; }
.vp__meta { position: absolute; z-index: 2; left: 16px; right: 72px; bottom: 30px; display: grid; gap: 4px; pointer-events: none; }
.vp--feed .vp__meta { bottom: 20px; }
.vp__meta a, .vp__meta .btn { pointer-events: auto; }
.vp__series { font-family: var(--title); font-weight: 800; font-size: clamp(20px, 7cqw, 30px); line-height: 1.1; text-shadow: 0 2px 8px #000; }
.vp__series a:hover { color: var(--red-text); }
.vp__ep { font-size: 13px; color: var(--bone-2); text-shadow: 0 1px 6px #000; }
.vp__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; }
.vp__tags .fear__cups .ic { width: 14px; height: 14px; }
.vp__dub { font-size: 11px; font-weight: 650; padding: 2px 6px; border-radius: 4px; background: var(--red); }
.vp__why { font-size: 12px; color: var(--bone-2); text-shadow: 0 1px 6px #000; }
.vp__full { justify-self: start; margin-top: 6px; background: rgba(14, 11, 10, 0.6); }
.vp__rail { position: absolute; z-index: 3; right: 8px; bottom: 36px; display: grid; gap: 12px; }
.vp--feed .vp__rail { bottom: 24px; }
.vp__rail button { display: grid; justify-items: center; gap: 2px; width: 52px; font-size: 11px; font-weight: 600; color: var(--bone); text-shadow: 0 1px 6px #000; }
.vp__rail button .ic { box-sizing: content-box; width: 22px; height: 22px; padding: 10px; border-radius: 999px; background: rgba(14, 11, 10, 0.52); transition: background-color 0.2s var(--out); }
.vp__rail button:hover .ic { background: rgba(14, 11, 10, 0.85); }
.vp__rail [aria-pressed="true"] .ic { color: var(--red-text); }
.vp__seek { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 22px; cursor: pointer; }
.vp__seek::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(237, 230, 216, 0.25); transition: height 0.15s var(--out); }
.vp__seek i { position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--red-text); transition: height 0.15s var(--out); }
.vp__seek:hover::before, .vp__seek:hover i, .vp__seek:focus-visible::before, .vp__seek:focus-visible i { height: 8px; }

/* overlays: ad, lock, end card, caption and dubbing menu */
.vp__ov { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; padding: 22px; text-align: center; background: rgba(8, 6, 6, 0.92); }
.vp__ov[hidden] { display: none; }
.vp__ov--hint { background: none; place-items: end center; pointer-events: none; padding-bottom: 36px; }
.vp__ov--menu { place-items: end center; padding: 0; background: rgba(5, 4, 4, 0.6); }
.endhint { pointer-events: auto; display: grid; gap: 10px; justify-items: center; padding: 12px 16px; border-radius: 12px; background: rgba(14, 11, 10, 0.82); font-size: 14px; font-weight: 600; max-width: 86%; }
.ad, .lockov, .endov { display: grid; gap: 12px; justify-items: center; max-width: 320px; }
.ad__tag { font-size: 11px; font-weight: 650; color: var(--bone-2); }
.ad__mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 14px; background: var(--bone); color: var(--void); font: 800 22px var(--title); }
.ad__line { font: 700 22px/1.2 var(--title); }
.ad__sub { font-size: 14px; color: var(--bone-2); }
.ad__bar { width: 100%; height: 4px; border-radius: 4px; background: rgba(237, 230, 216, 0.2); overflow: hidden; }
.ad__bar i { display: block; height: 100%; width: 0; background: var(--red-text); }
.ad__go { font-size: 13px; color: var(--bone-2); text-decoration: underline; text-underline-offset: 3px; }
@keyframes adbar { to { width: 100%; } }
.lockov h3, .endov h3 { font: 800 clamp(20px, 6cqw, 26px)/1.15 var(--title); text-wrap: balance; }
.lockov p, .endov p { color: var(--bone-2); font-size: 15px; }
.lockov .btn, .endov .btn { width: 100%; }
.endov__bar { width: 100%; height: 4px; border-radius: 4px; background: rgba(237, 230, 216, 0.2); overflow: hidden; }
.endov__bar i { display: block; height: 100%; width: 0; background: var(--red-text); }
.endov__acts { display: grid; gap: 8px; width: 100%; }
.endov__lock { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--bone-2); }
.endov__lock .ic { color: var(--red-text); }
.endov__rel { display: flex; gap: 8px; justify-content: center; }
.endov__rel a { width: 82px; display: grid; gap: 4px; }
.endov__rel img { aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; }
.endov__rel span { font-size: 11px; line-height: 1.2; }
.ccm { width: 100%; max-height: 82%; overflow: auto; background: var(--ink-1); border-top: 1px solid var(--line-2); border-radius: 16px 16px 0 0; padding: 14px 16px 18px; text-align: left; scrollbar-width: thin; }
.ccm__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ccm__head h3 { font: 700 16px var(--ui); }
.ccm h4 { font-size: 12px; font-weight: 650; color: var(--bone-2); margin: 12px 0 6px; }
.ccm__list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ccm__list button { display: flex; justify-content: space-between; gap: 6px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 13px; text-align: left; }
.ccm__list button:hover:not(:disabled) { border-color: var(--bone); }
.ccm__list button[aria-checked="true"] { background: var(--bone); color: var(--void); font-weight: 650; }
.ccm__list button:disabled { opacity: 0.4; cursor: default; }
.ccm__list small { font-size: 10px; }
.ccm__note { margin-top: 10px; font-size: 12px; line-height: 1.5; color: var(--ash); }

/* the watch screen */
.vw { position: fixed; inset: 0; z-index: 90; background: #050404; color: var(--bone); overflow: hidden; }
.vw__bg { position: absolute; inset: -60px; background-size: cover; background-position: center; filter: blur(50px) brightness(0.32) saturate(1.2); }
.vw__top { position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 var(--gutter); }
.vw__brand .lk { --h: 26px; }
.vw__from { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 6px; background: var(--red); }
.vw__eps-btn { display: none; }
.vw__body { position: absolute; inset: 56px 0 0 0; z-index: 2; display: flex; justify-content: center; gap: clamp(20px, 3vw, 52px); padding: 4px var(--gutter) 22px; min-height: 0; }
.vw__stage { height: 100%; aspect-ratio: 9 / 16; max-height: 940px; flex: none; }
.vw__side { width: min(420px, 38vw); overflow: auto; padding: 4px 4px 40px; display: grid; gap: 14px; align-content: start; scrollbar-width: thin; }
.vw__title { font: 800 clamp(28px, 2.6vw, 42px)/1.05 var(--title); }
.vw__title a:hover { color: var(--red-text); }
.vw__syn { color: var(--bone-2); font-size: 15px; }
.vw__eps { display: grid; border-top: 1px solid var(--line); }
.vwep { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.vwep:hover { background: rgba(237, 230, 216, 0.06); }
.vwep.is-now { background: rgba(192, 20, 28, 0.2); }
.vwep__n { font: 700 18px var(--title); color: var(--ash); text-align: center; }
.vwep b { display: block; font-size: 14px; }
.vwep small { display: block; font-size: 12px; color: var(--bone-2); }
.vwep__s { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ash); }
.vwep__s .ic { width: 15px; height: 15px; }
.vwep__s em { font-style: normal; font-variant-numeric: tabular-nums; }
.sheet--eps .vwep { grid-template-columns: 28px 1fr auto; }
.player__lock { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: rgba(8, 6, 6, 0.92); text-align: center; padding: 20px; }
.player__lock .lockov { max-width: 380px; }

/* Swipe */
.sw { display: grid; grid-template-columns: minmax(220px, 300px) auto minmax(220px, 300px); justify-content: center; gap: clamp(20px, 3vw, 52px); padding: 16px var(--gutter); height: calc(100svh - var(--top)); min-height: 560px; }
.sw__center { display: grid; place-items: center; min-height: 0; }
.sw__stage { position: relative; height: 100%; max-height: 900px; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #000; touch-action: none; outline: none; box-shadow: 0 0 0 1px var(--line-2); }
.sw__stage:focus-visible { box-shadow: 0 0 0 2px var(--bone); }
.sw__track { position: absolute; inset: 0; transform: translateY(calc(var(--i, 0) * -100%)); transition: transform 0.45s var(--out); }
.sw__card { position: absolute; left: 0; right: 0; top: calc(var(--n) * 100%); height: 100%; }
.sw__card .vp { border-radius: 0; }
.sw__stage.is-bump .sw__track { animation: bump 0.3s var(--out); }
@keyframes bump { 50% { transform: translateY(calc(var(--i, 0) * -100% + 22px)); } }
.sw__hint { position: absolute; z-index: 8; left: 50%; bottom: 17%; display: grid; justify-items: center; gap: 2px; padding: 10px 14px; border-radius: 12px; background: rgba(14, 11, 10, 0.72); font-size: 13px; font-weight: 650; pointer-events: none; animation: hint 1.6s ease-in-out infinite; transform: translateX(-50%); }
@keyframes hint { 0%, 100% { transform: translate(-50%, 6px); opacity: 0.6; } 50% { transform: translate(-50%, -8px); opacity: 1; } }
.sw__side { display: grid; gap: 14px; align-content: center; font-size: 15px; min-width: 0; }
.sw__h { font: 800 22px/1.15 var(--title); }
.sw__why { color: var(--bone-2); font-size: 14px; }
.sw__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.taste { display: grid; gap: 10px; }
.taste li { display: grid; grid-template-columns: 1fr 86px; gap: 12px; align-items: center; font-size: 14px; }
.taste__bar { height: 6px; border-radius: 6px; background: var(--ink-3); overflow: hidden; }
.taste__bar i { display: block; height: 100%; width: 0; background: var(--red-text); transition: width 0.6s var(--out); }
.sw__tastebtn { display: none; position: absolute; z-index: 9; right: 10px; top: 62px; background: rgba(14, 11, 10, 0.55); }
.sw__ctl { display: flex; gap: 8px; }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 13px; color: var(--bone-2); margin: 6px 0 0; }
.keys dt { color: var(--bone); font-weight: 650; }
.keys dd { margin: 0; }
.sw__sheet { display: grid; gap: 14px; }

@media (max-width: 1180px) {
  .sw { grid-template-columns: minmax(200px, 250px) auto minmax(200px, 250px); gap: 20px; }
}
@media (max-width: 980px) {
  .sw { display: block; padding: 0; height: calc(100svh - var(--top) - 64px); min-height: 0; }
  .sw__side { display: none; }
  .sw__center { height: 100%; }
  .sw__stage { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
  .sw__tastebtn { display: grid; }
}
@media (max-width: 900px) {
  .vw__side { display: none; }
  .vw__body { padding: 0; }
  .vw__stage { width: 100%; height: 100%; aspect-ratio: auto; max-height: none; }
  .vw .vp { border-radius: 0; }
  .vw__eps-btn { display: grid; }
}
@media (max-width: 700px) {
  .vw__brand { display: none; }
  .vw__from { font-size: 12px; }
}
/* films: the landscape player (V5) */
.player__frame { transform-origin: 70% 50%; animation: film-kb 48s ease-in-out infinite alternate paused; }
.player.is-playing .player__frame { animation-play-state: running; }
@keyframes film-kb { from { transform: scale(1.02); } to { transform: scale(1.12) translateX(-1.5%); } }
.player__now span { margin-left: 4px; color: var(--bone-2); font-size: 14px; }
.player__now span:not(:empty)::before { content: "· "; }
.player__rot { display: none; position: absolute; z-index: 4; left: 16px; right: 16px; top: 72px; padding: 8px 12px; border-radius: 8px; background: rgba(14, 11, 10, 0.72); font-size: 13px; text-align: center; pointer-events: none; }
@media (orientation: portrait) and (max-width: 700px) { .player__rot { display: block; } }
.seek--film em { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: rgba(237, 230, 216, 0.5); }
.player__ov { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; padding: 22px; text-align: center; background: rgba(8, 6, 6, 0.92); }
.player__ov[hidden] { display: none; }
.player__chaps { position: absolute; z-index: 5; right: var(--gutter); bottom: 118px; display: grid; width: min(300px, calc(100% - 32px)); padding: 6px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--line-2); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.8); }
.player__chaps[hidden] { display: none; }
.player__chaps button { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 10px; border-radius: 8px; text-align: left; font-size: 14px; }
.player__chaps button:hover { background: var(--ink-3); }
.player__chaps b { font-family: var(--title); color: var(--ash); }
.player__chaps em { font-style: normal; font-size: 12px; color: var(--ash); font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .player__frame { animation: none; }
  .vp__bg { animation: none; transform: scale(1.06); }
  .sw__track { transition: none; }
  .sw__hint { animation: none; }
}
