/* ============================== yoru v37 — focus, phone hero, spacing, Together preview, Community ============================== */

/* ---------- focus rings: keyboard only (no boxes after a tap or click) ---------- */
html:not(.kbd) :focus{outline:none!important}
html:not(.kbd) .brand:focus,html:not(.kbd) #hdr .nav a:focus,html:not(.kbd) .tabbar a:focus,html:not(.kbd) .snav a:focus{box-shadow:none!important}
html.kbd :focus-visible{outline:2px solid rgba(255,255,255,.75)!important;outline-offset:3px}
a,button{-webkit-tap-highlight-color:transparent}
.brand,.brand *{-webkit-user-select:none;user-select:none}

/* ---------- phones: a tall, perfectly cropped home hero ---------- */
@media (max-width:760px){
  #hero.h37{height:min(92svh,860px)!important;min-height:600px!important;max-height:none!important}
  #hero.h37 .still,#hero.h37 canvas{background-position:62% center!important;object-position:62% center}
  #hero.h37 .ph37{position:absolute;inset:0;z-index:1;background:center 18%/cover no-repeat;opacity:0;transition:opacity .7s ease;pointer-events:none}
  #hero.h37 .ph37.on{opacity:1}
  #hero.h37.has-tall canvas{opacity:0!important}
  #hero.h37 .shade{z-index:2!important;background:linear-gradient(180deg,rgba(0,0,0,.55) 0%,rgba(0,0,0,0) 22%,rgba(0,0,0,0) 38%,rgba(0,0,0,.72) 66%,#000 96%)!important}
  #hero.h37 #hc{position:absolute!important;left:16px!important;right:16px!important;bottom:58px!important;top:auto!important;z-index:3!important;margin:0!important;transform:none!important}
  #hero.h37 .dots{position:absolute!important;left:0!important;right:0!important;bottom:24px!important;top:auto!important;z-index:3!important;display:flex!important;justify-content:center!important;margin:0 auto!important;width:auto!important;transform:none!important}
  #hero.h37 .tlogo{max-width:78%!important;max-height:84px!important;object-fit:contain;object-position:left bottom}
  #hero.h37 .chips{gap:6px!important}
  #hero.h37 .chips .chip{height:32px!important;padding:0 11px!important;font-size:13px!important}
  #hero.h37 .syn{font-size:15px!important;line-height:1.45!important;-webkit-line-clamp:3}
  #hero.h37 .cta{gap:10px!important;margin-top:16px!important}
  #hero.h37 .cta .btn.white{flex:1;justify-content:center;height:52px!important;border-radius:16px!important}
  #hero.h37 + *,#hero.h37 ~ #strip + *{margin-top:8px!important}
  /* pages whose intro block is followed by sections don't need a big bottom gap */
  #app > .wrap.page:not(:last-child){padding-bottom:12px!important}
}
@media (max-width:380px){#hero.h37{min-height:560px!important}#hero.h37 .syn{-webkit-line-clamp:2}}

/* ---------- Latest: kicker readable over bright art ---------- */
.lh2-in .as-lbl,.lh2 .as-lbl{color:#fff!important;text-shadow:0 1px 8px rgba(0,0,0,.9)}
.lh2-in{text-shadow:0 2px 14px rgba(0,0,0,.6)}
.lh2-art::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.72),rgba(0,0,0,.2) 70%),linear-gradient(0deg,rgba(0,0,0,.6),transparent 60%)}
.lh2-art{position:absolute}

/* ---------- Watch Together: live party preview ---------- */
.wth{position:relative;overflow:hidden}
.wth .wth-art{filter:blur(2px) saturate(1.1)!important;opacity:.45!important}
.wth::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,#000 0%,rgba(0,0,0,.75) 40%,rgba(0,0,0,.2) 100%),linear-gradient(0deg,#000,transparent 40%)}
.wtm37{position:absolute;right:max(24px,calc((100vw - 1400px)/2 + 24px));top:104px;width:min(420px,32vw);transform:translateY(16px) rotate(-1.5deg);z-index:2;
  opacity:0;transition:opacity .6s ease,transform .8s var(--spring,ease)}
.wtm37.on{opacity:1;transform:rotate(-1.5deg)}
@media (min-width:1101px){.wth{min-height:600px!important}}
.wtm37-v{position:relative;aspect-ratio:16/9;border-radius:22px;overflow:hidden;background:#111;box-shadow:0 40px 90px -30px #000,0 0 0 1px rgba(255,255,255,.12)}
.wtm37-art{position:absolute;inset:0;background:center/cover no-repeat}
.wtm37-v::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.85),transparent 55%)}
.wtm37-live{position:absolute;top:12px;left:12px;z-index:2;display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px;border-radius:999px;font:700 11px var(--sf);letter-spacing:.04em;
  background:rgba(255,59,48,.9);color:#fff}
.wtm37-live i{width:6px;height:6px;border-radius:50%;background:#fff;animation:wtPulse 1.4s ease-in-out infinite}
@keyframes wtPulse{50%{opacity:.3}}
.wtm37-t{position:absolute;left:14px;right:14px;bottom:22px;z-index:2}
.wtm37-t b{display:block;font:700 17px var(--sf);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wtm37-t small{font:500 12px var(--sf);color:rgba(255,255,255,.7)}
.wtm37-bar{position:absolute;left:14px;right:14px;bottom:12px;height:3px;border-radius:2px;background:rgba(255,255,255,.25);z-index:2;overflow:hidden}
.wtm37-bar i{position:absolute;inset:0 62% 0 0;background:#fff;animation:wtBar 12s linear infinite}
@keyframes wtBar{from{right:70%}to{right:30%}}
.wtm37-c{position:relative;margin:-26px 18px 0 auto;width:78%;padding:14px;border-radius:20px;z-index:3;transform:rotate(1.5deg);
  background:rgba(28,28,32,.72);-webkit-backdrop-filter:blur(26px) saturate(1.5);backdrop-filter:blur(26px) saturate(1.5);border:1px solid rgba(255,255,255,.12);box-shadow:0 30px 60px -20px #000}
.wtm37-faces{display:flex;margin-bottom:10px}
.wtm37-faces span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font:700 13px var(--sf);color:#fff;margin-left:-8px;border:2px solid #1c1c20;
  background:linear-gradient(145deg,hsl(var(--h) 70% 58%),hsl(var(--h) 60% 38%))}
.wtm37-faces span:first-child{margin-left:0}
.wtm37-c p{margin:6px 0 0;max-width:86%;padding:7px 12px;border-radius:16px;background:#2c2c30;font:400 14px/1.3 var(--sf);width:fit-content}
.wtm37-c p b{display:block;font:600 11px var(--sf);color:rgba(255,255,255,.5);margin-bottom:1px}
.wtm37-c p.me{margin-left:auto;background:#0a84ff}
.wtm37-c p{opacity:0;animation:wtIn .5s ease forwards}.wtm37-c .b1{animation-delay:.6s}.wtm37-c .b2{animation-delay:1.4s}.wtm37-c .b3{animation-delay:2.2s}
@keyframes wtIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (max-width:1100px){.wtm37{display:none}}
@media (prefers-reduced-motion:reduce){.wtm37-c p{animation:none;opacity:1}.wtm37-bar i,.wtm37-live i{animation:none}}

/* ---------- Community: readable hero, glass stat chips ---------- */
.chub{position:relative}
.chub::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,rgba(0,0,0,.88) 0%,rgba(0,0,0,.6) 40%,rgba(0,0,0,.1) 80%),linear-gradient(0deg,#000 0%,transparent 45%)}
.chub-art{opacity:.75!important}
.chub-in h1{text-shadow:0 4px 30px rgba(0,0,0,.6)}
.chub-stats{display:flex!important;flex-wrap:wrap;gap:10px!important;margin-top:22px!important}
.chub-stats > div{display:flex!important;align-items:center;gap:10px;height:52px;padding:0 16px 0 12px!important;border-radius:16px;
  background:rgba(30,30,34,.55);-webkit-backdrop-filter:blur(20px) saturate(1.4);backdrop-filter:blur(20px) saturate(1.4);border:1px solid rgba(255,255,255,.1)}
.chub-stats > div > span{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;color:#fff;background:#0a84ff}
.chub-stats > div:nth-child(2) > span{background:#30d158}.chub-stats > div:nth-child(3) > span{background:#ff9f0a}
.chub-stats b{font:700 18px var(--sf)}
.chub-stats small{font:500 13px var(--sf);color:rgba(255,255,255,.6)}
.rooms2 .rm{border-radius:22px!important;overflow:hidden}
@media (max-width:760px){
  .chub-in h1{font-size:clamp(34px,10vw,46px)!important;line-height:1.02!important}
  .chub-cta{flex-wrap:wrap;gap:8px!important}
  .chub-cta .btn{flex:1 1 auto;justify-content:center}
  .chub::after{background:linear-gradient(0deg,#000 5%,rgba(0,0,0,.55) 60%,rgba(0,0,0,.3))}
}

/* ---------- Together on phones ---------- */
@media (max-width:760px){
  .wth h1{font-size:clamp(40px,12vw,56px)!important}
  .wt-steps{display:grid!important;grid-auto-flow:column;grid-auto-columns:78%;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding-bottom:4px}
  .wt-steps::-webkit-scrollbar{display:none}
  .wt-steps .wts{scroll-snap-align:start}
  .wt-cards{grid-template-columns:1fr!important}
}

/* ---------- one iOS switch for every .tog (settings rows, toolbar pills, the spoiler toggle) ---------- */
html body .tog{display:inline-flex!important;align-items:center!important;gap:9px!important;width:auto!important;min-width:0!important;height:auto!important;padding:0!important;
  background:none!important;border:0!important;box-shadow:none!important;color:inherit;cursor:pointer;flex:none}
html body .tog::before,html body .tog::after{content:none!important;display:none!important}
html body .tog > i{position:relative!important;display:block!important;flex:none!important;width:51px!important;height:31px!important;margin:0!important;padding:0!important;left:auto!important;top:auto!important;
  border-radius:999px!important;background:rgba(120,120,128,.36)!important;transform:none!important;transition:background .25s ease!important;box-shadow:none!important;border:0!important}
html body .tog > i::before{content:none!important;display:none!important}
html body .tog > i::after{content:""!important;display:block!important;position:absolute!important;top:2px!important;left:2px!important;width:27px!important;height:27px!important;border-radius:50%!important;
  background:#fff!important;box-shadow:0 3px 8px rgba(0,0,0,.28),0 1px 1px rgba(0,0,0,.12)!important;transform:none;transition:transform .32s cubic-bezier(.3,1.3,.5,1)!important}
html body .tog[aria-pressed="true"] > i{background:#30d158!important}
html body .tog[aria-pressed="true"] > i::after{transform:translateX(20px)!important}
/* compact switch inside labelled pills (Autoplay, Auto-skip, Spoiler) */
html body .wtool .tog,html body .composer .tog,html body .wbar .tog{height:36px!important;padding:0 12px 0 7px!important;border-radius:10px!important;background:rgba(255,255,255,.08)!important;font:600 13.5px var(--sf)!important;white-space:nowrap}
html body .wtool .tog > i,html body .composer .tog > i,html body .wbar .tog > i{width:36px!important;height:22px!important}
html body .wtool .tog > i::after,html body .composer .tog > i::after,html body .wbar .tog > i::after{width:18px!important;height:18px!important}
html body .wtool .tog[aria-pressed="true"] > i::after,html body .composer .tog[aria-pressed="true"] > i::after,html body .wbar .tog[aria-pressed="true"] > i::after{transform:translateX(14px)!important}
html body .composer .tog{border-radius:999px!important}

/* ---------- poster cards: the meta line never clips (wraps, and drops the genre on narrow cards) ---------- */
.info .meta{flex-wrap:wrap!important;row-gap:2px!important;overflow:hidden;max-height:2.9em}
@media (max-width:760px){.info .meta > span:first-child:not(.sc){display:none!important}}

/* title page facts row (Format / Episodes / Duration): chips size to their text, the row scrolls */
.meta:has(> div > dt) > div{flex:none!important;max-width:none!important;min-width:0}
.meta:has(> div > dt) dd{white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;max-width:none!important}

/* ---------- genre cards: a tinted placeholder instead of a black tile while art loads ---------- */
.gc{background:radial-gradient(120% 90% at 20% 0%,hsl(calc(var(--i,0) * 41) 55% 26%),#0b0b0d 75%)!important}
.gc-stage img{transition:opacity .4s ease}

/* ---------- Movies: spinner while the hero is still empty ---------- */
.ashow:not(:has(.as-copy.in))::after{content:"";position:absolute;left:50%;top:50%;width:30px;height:30px;margin:-15px 0 0 -15px;z-index:5;border-radius:50%;
  background:conic-gradient(from 0deg,rgba(255,255,255,.12),#fff);-webkit-mask:repeating-conic-gradient(#000 0 14deg,transparent 14deg 30deg),radial-gradient(farthest-side,transparent 40%,#000 41%);-webkit-mask-composite:source-in;
  mask:repeating-conic-gradient(#000 0 14deg,transparent 14deg 30deg) intersect,radial-gradient(farthest-side,transparent 40%,#000 41%);animation:iosSpin 1s steps(12) infinite}

/* ---------- Playback card fallback ---------- */
.pb37 .pb-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-top:.5px solid rgba(255,255,255,.08)}
.pb37 .seg{display:flex!important;padding:2px;border-radius:10px;background:rgba(118,118,128,.24)}
.pb37 .seg button{height:32px;padding:0 14px;border-radius:8px;font:600 13.5px var(--sf);color:#fff;background:none}
.pb37 .seg button.on{background:rgba(255,255,255,.22);box-shadow:0 3px 8px rgba(0,0,0,.25)}
