/* Screening room video section (studio.js). Classes start with cr-. */
.cr-room { position: relative; overflow: hidden; padding: 58px 0 64px; color: #fff; background: #150524; }
.c-page .cr-room .section-tag { color: #c687f5; }
.cr-room .s-head { position: relative; margin-bottom: 34px; }

/* Soft light taken from the selected video */
.cr-glow { position: absolute; inset: 0; pointer-events: none; }
.cr-glow i { position: absolute; inset: 8% 18%; background-position: center; background-size: cover; filter: blur(90px) saturate(1.5); opacity: 0; transition: opacity .9s; }
.cr-glow i.on { opacity: .42; }
.cr-glow::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 55%, transparent 25%, rgba(21, 5, 36, .82) 75%), linear-gradient(#150524, transparent 18% 82%, #150524); }

.cr-grid { position: relative; display: grid; grid-template-columns: 340px 1fr 300px; gap: 26px; align-items: center; padding: 0 40px; }

/* Details: all entries share one cell, so the height never jumps between videos */
.cr-info { display: grid; }
.cr-info article { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: flex-start; visibility: hidden; opacity: 0; transition: opacity .25s, visibility 0s .25s; }
.cr-info article.on { visibility: visible; opacity: 1; transition: opacity .45s .12s; }
.cr-info article.on > * { animation: cr-up .5s ease backwards; }
.cr-info article.on > :nth-child(2) { animation-delay: .08s; }
.cr-info article.on > :nth-child(3) { animation-delay: .14s; }
.cr-info article.on > :nth-child(4) { animation-delay: .2s; }
.cr-info article.on > :nth-child(5) { animation-delay: .26s; }
@keyframes cr-up { from { opacity: 0; translate: 0 14px; } }
.cr-count { font-size: 54px; font-weight: 800; line-height: 1.1; color: #d9a8ff; }
.cr-count small { font-size: 18px; font-weight: 600; color: rgba(217, 168, 255, .5); }
.cr-info h3 { margin: 10px 0; font-size: 24px; line-height: 1.8; }
.cr-info p { font-size: 13.5px; line-height: 2.2; color: #e6d8f6; }
.cr-info ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 22px; list-style: none; }
.cr-info li { padding: 6px 13px; border-radius: 99px; font-size: 11.5px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(215, 170, 255, .32); }
.cr-cta { width: 250px; height: 54px; color: #fff; background: linear-gradient(90deg, #a52fd0, #641aa6); box-shadow: 0 10px 28px rgba(165, 47, 208, .45); }

/* The player, framed like a phone */
.cr-room { --cr-h: clamp(340px, calc(100vh / var(--z, 1) - 128px), 496px); }
.cr-stage { position: relative; justify-self: center; }
.cr-phone { position: relative; z-index: 1; width: calc(var(--cr-h) * .5625 + 18px); padding: 9px; border-radius: 42px; background: linear-gradient(130deg, #d9c4f2, #38205a 14%, #12071f 55%, #6f4a9c 95%, #e6d4fa); box-shadow: 0 40px 70px rgba(0, 0, 0, .6), 0 0 60px rgba(160, 70, 235, .4); transition: box-shadow .6s; }
.cr-room.playing .cr-phone { box-shadow: 0 40px 70px rgba(0, 0, 0, .6), 0 0 90px rgba(180, 90, 255, .65); }
.cr-screen { position: relative; height: var(--cr-h); overflow: hidden; border-radius: 34px; background: #07010d; }
.cr-screen video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.cr-screen.swap video { animation: cr-swap .55s ease; }
@keyframes cr-swap { from { opacity: 0; scale: 1.08; } }
.cr-screen button { border: 0; cursor: pointer; color: #fff; font-family: Alexandria, sans-serif; -webkit-tap-highlight-color: transparent; }
.cr-screen svg { width: 22px; height: 22px; }
.cr-big { position: absolute; top: 50%; left: 50%; translate: -50% -50%; display: grid; place-items: center; width: 82px; height: 82px; border-radius: 50%; background: rgba(60, 10, 100, .72); box-shadow: 0 0 0 2px rgba(255, 255, 255, .75); transition: opacity .25s, scale .25s, visibility 0s; }
.cr-screen .cr-big svg { width: 40px; height: 40px; margin-left: 4px; }
.cr-big:hover { scale: 1.08; }
.cr-screen.playing .cr-big { visibility: hidden; opacity: 0; scale: .6; transition: opacity .25s, scale .25s, visibility 0s .25s; }
.cr-hear { position: absolute; top: 16px; right: 14px; display: none; align-items: center; gap: 8px; height: 38px; padding: 0 15px; border-radius: 99px; direction: rtl; font-size: 12px; font-weight: 600; background: rgba(20, 3, 36, .78); }
.cr-screen.playing.muted .cr-hear { display: flex; animation: cr-call 2.2s ease-in-out infinite; }
@keyframes cr-call { 50% { box-shadow: 0 0 0 7px rgba(190, 110, 255, .28); } }
.cr-controls { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 14px 12px; background: linear-gradient(transparent, rgba(10, 0, 20, .92)); transition: opacity .3s; }
.cr-controls > div { display: flex; align-items: center; gap: 8px; }
.cr-controls div button { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.cr-controls div button:hover { background: rgba(190, 110, 255, .55); }
.cr-controls time { margin-right: auto; font: 600 12px Alexandria, sans-serif; }
.cr-seek { display: block; width: 100%; height: 18px; margin-bottom: 6px; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; }
.cr-seek::-webkit-slider-runnable-track { height: 5px; border-radius: 9px; background: linear-gradient(90deg, #c97bff calc(var(--played, 0) * 100%), rgba(255, 255, 255, .28) 0); }
.cr-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -4.500px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #c97bff; }
.cr-seek::-moz-range-track { height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .28); }
.cr-seek::-moz-range-progress { height: 5px; border-radius: 9px; background: #c97bff; }
.cr-seek::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }
/* With a mouse, the controls hide while watching and return on hover or keyboard focus */
@media (hover: hover) {
  .cr-screen.playing .cr-controls { opacity: 0; }
  .cr-screen.playing:hover .cr-controls, .cr-screen.playing:focus-within .cr-controls { opacity: 1; }
}

.cr-float { position: absolute; z-index: 2; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 18px; border: 1px solid rgba(235, 205, 255, .65); background: linear-gradient(140deg, #b970fa, #5c1da0); box-shadow: 0 0 28px rgba(171, 85, 246, .65); }
.cr-float svg { width: 32px; height: 32px; }
.cr-float.f1 { top: 52px; right: -34px; }
.cr-float.f2 { top: 250px; left: -38px; }
.cr-float.f3 { bottom: 96px; right: -30px; }
.anim .cr-float { animation: float 5s ease-in-out infinite; }
.anim .cr-float.f2 { animation-delay: -1.7s; }
.anim .cr-float.f3 { animation-delay: -3.3s; }
.anim .cr-stage.rv .cr-float { animation: none; opacity: 0; }
.anim .cr-stage.rv.in .cr-float { animation: pop .7s cubic-bezier(.3, 1.7, .5, 1) .5s backwards; opacity: 1; }
.anim .cr-stage.rv.in .cr-float.f2 { animation-delay: .65s; }
.anim .cr-stage.rv.in .cr-float.f3 { animation-delay: .8s; }

/* Playlist */
.cr-list { display: flex; flex-direction: column; gap: 14px; list-style: none; }
.cr-list button { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px; overflow: hidden; text-align: right; border-radius: 20px; cursor: pointer; color: #fff; font-family: Alexandria, sans-serif; background: rgba(255, 255, 255, .06); border: 1.5px solid rgba(215, 170, 255, .2); transition: background .3s, border-color .3s, translate .3s; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .cr-list button:hover { translate: -6px 0; background: rgba(160, 80, 230, .22); } }
.cr-list button[aria-pressed="true"] { border-color: #c97bff; background: linear-gradient(90deg, rgba(100, 26, 166, .55), rgba(165, 47, 208, .4)); }
.cr-thumb { position: relative; flex: none; width: 66px; height: 96px; overflow: hidden; border-radius: 13px; }
.cr-thumb img { width: 100%; height: 100%; object-fit: cover; transition: scale .4s; }
.cr-list button:hover img { scale: 1.1; }
.cr-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.cr-meta small { font-size: 11px; font-weight: 700; color: #d9a8ff; }
.cr-meta b { font-size: 13.5px; line-height: 1.8; }
.cr-meta span { font-size: 11px; color: #cdb4e6; }
/* "Now playing" bars on the selected cover */
.cr-bars { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; gap: 4px; background: rgba(25, 3, 44, .55); }
.cr-bars i { width: 5px; height: 20px; border-radius: 3px; background: #fff; transform: scaleY(.35); }
[aria-pressed="true"] .cr-bars { display: flex; }
.anim .cr-room.playing [aria-pressed="true"] .cr-bars i { animation: cr-wave .8s ease-in-out infinite alternate; }
.anim .cr-room.playing [aria-pressed="true"] .cr-bars i:nth-child(2) { animation-delay: -.5s; }
.anim .cr-room.playing [aria-pressed="true"] .cr-bars i:nth-child(3) { animation-delay: -.25s; }
@keyframes cr-wave { to { transform: scaleY(1.25); } }
.cr-progress { position: absolute; right: 0; left: 0; bottom: 0; height: 3px; background: #e0a6ff; transform: scaleX(0); transform-origin: right; }
[aria-pressed="true"] .cr-progress { transform: scaleX(var(--played, 0)); }

@media (max-width: 899px) {
  .cr-room { padding: 42px 0 44px; }
  .cr-room .s-head { margin-bottom: 24px; }
  .cr-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 0; }
  /* Phone order: player, list, then details */
  .cr-stage { order: 1; }
  .cr-list { order: 2; flex-direction: row; gap: 10px; padding: 2px 16px 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
  .cr-list li { flex: none; width: 128px; scroll-snap-align: center; }
  .cr-list button { flex-direction: column; gap: 8px; height: 100%; padding: 8px; text-align: center; }
  .cr-thumb { width: 100%; height: 120px; }
  .cr-meta { align-items: center; }
  .cr-meta b { font-size: 11.5px; }
  .cr-info { order: 3; width: 100%; max-width: 480px; margin: 0 auto; padding: 0 20px; }
  .cr-info article { align-items: center; text-align: center; }
  .cr-info ul { justify-content: center; }
  .cr-count { font-size: 36px; }
  .cr-info h3 { font-size: 19px; }
  .cr-info p { font-size: 13px; }
  .cr-phone { width: min(290px, 76vw); padding: 7px; border-radius: 36px; }
  .cr-screen { height: auto; aspect-ratio: 9 / 16; border-radius: 30px; }
  .cr-float { width: 46px; height: 46px; border-radius: 14px; }
  .cr-float svg { width: 24px; height: 24px; }
  .cr-float.f1 { right: -20px; }
  .cr-float.f2 { left: -22px; top: 46%; }
  .cr-float.f3 { right: -18px; }
}
@media (max-width: 359px) {
  .cr-controls { padding-left: 8px; padding-right: 8px; }
  .cr-controls > div { gap: 4px; }
  .cr-controls div button { width: 31px; height: 31px; }
  .cr-controls time { font-size: 10.5px; }
}
