/* =========================================================
   UniSST V225 — COMPORTAMENTO V205 REAPLICADO + HOME/ASSINATURAS
   Fonte de verdade visual: V205.
   - gap 24px
   - trilho, setas e hover no ritmo V205
   - mantém a expansão lateral autorizada V222/V223
   - imagem fornecida pelo usuário somente na Página inicial
   - Assinaturas sem a imagem lateral; hero volta à mídia do próprio catálogo
   ========================================================= */

:root{
  --v225-rail-gap:24px;
  --v225-radius:8px;
  --v225-ease:cubic-bezier(.2,.75,.2,1);
}

/* ---------- V205: trilhos e espaçamento ---------- */
@media (min-width:900px){
  html body.streaming-system-v220 :is(.course-rail,.pv205-card-rail,.pv203-card-rail,.learning-course-rail)[data-rail]{
    display:flex!important;
    flex-flow:row nowrap!important;
    align-items:flex-start!important;
    gap:var(--v225-rail-gap)!important;
    column-gap:var(--v225-rail-gap)!important;
    padding:0 0 4px!important;
    overflow-x:auto!important;
    overflow-y:visible!important;
    scroll-snap-type:x proximity!important;
    scroll-padding-left:var(--pv-gutter)!important;
    scrollbar-width:none!important;
  }
  html body.streaming-system-v220 :is(.course-rail,.pv205-card-rail,.pv203-card-rail,.learning-course-rail)[data-rail]::-webkit-scrollbar{display:none!important}
  html body.streaming-system-v220 [data-rail]:has(>a.v220-reference-card){
    --v223-preserved-gap:var(--v225-rail-gap)!important;
    gap:var(--v225-rail-gap)!important;
    column-gap:var(--v225-rail-gap)!important;
  }
  html body.streaming-system-v220 [data-rail].pv-super-focus-open:has(>a.v220-reference-card){
    gap:var(--v225-rail-gap)!important;
    column-gap:var(--v225-rail-gap)!important;
  }

  /* Retira a redução V221 de Home/Assinaturas e volta à largura V205. */
  html body.streaming-system-v220 :is(.public-home-v198,.authenticated-home-page,.sub224-subscription)
  a.v220-reference-card.v220-poster-card:not(.v220-grid-card){
    flex:0 0 var(--pv-poster-w)!important;
    width:var(--pv-poster-w)!important;
    min-width:var(--pv-poster-w)!important;
    max-width:var(--pv-poster-w)!important;
    height:var(--pv-poster-h)!important;
    min-height:var(--pv-poster-h)!important;
    max-height:var(--pv-poster-h)!important;
    aspect-ratio:2/3!important;
    border-radius:var(--v225-radius)!important;
  }
  html body.streaming-system-v220 a.v220-reference-card.v220-landscape-card:not(.v220-grid-card){
    border-radius:var(--v225-radius)!important;
  }
}

/* ---------- V205: hover visual, mantendo o push lateral autorizado ---------- */
@media (min-width:900px) and (hover:hover) and (pointer:fine){
  html body.streaming-system-v220 a.v220-reference-card{
    transition:transform .15s ease,filter .15s ease,box-shadow .15s ease,
      width .30s var(--v225-ease),min-width .30s var(--v225-ease),max-width .30s var(--v225-ease),flex-basis .30s var(--v225-ease)!important;
  }
  html body.streaming-system-v220 a.v220-reference-card.v220-landscape-card:is(:hover,:focus-visible,.preview-pending,.preview-active){
    transform:scale(1.025)!important;
    z-index:8!important;
    filter:brightness(1.04)!important;
    box-shadow:0 12px 26px rgba(0,0,0,.48)!important;
  }
  html body.streaming-system-v220 a.v220-reference-card.v220-poster-card:is(:hover,:focus-visible,.preview-pending){
    transform:none!important;
    z-index:8!important;
    filter:brightness(1.04)!important;
    box-shadow:0 12px 26px rgba(0,0,0,.48)!important;
  }
  html body.streaming-system-v220 a.v220-reference-card.v220-poster-card.prime-poster-card.pv-super-focus-active{
    --v225-focus-h:var(--pv-poster-h);
    --v225-focus-w:min(calc(var(--v225-focus-h) * 1.60),calc(100vw - 56px));
    flex:0 0 var(--v225-focus-w)!important;
    flex-basis:var(--v225-focus-w)!important;
    width:var(--v225-focus-w)!important;
    min-width:var(--v225-focus-w)!important;
    max-width:var(--v225-focus-w)!important;
    height:var(--v225-focus-h)!important;
    min-height:var(--v225-focus-h)!important;
    max-height:var(--v225-focus-h)!important;
    margin:0!important;
    transform:none!important;
    transform-origin:left center!important;
    border-radius:var(--v225-radius)!important;
    box-shadow:0 12px 26px rgba(0,0,0,.48)!important;
  }
  html body.streaming-system-v220 a.v220-reference-card.v220-poster-card.prime-poster-card.pv-super-focus-active + a.v220-reference-card{margin-left:0!important}
}

/* ---------- V205: setas e área lateral ---------- */
@media (min-width:900px){
  html body.prime-v086 .rail-shell>.rail-arrow,
  html body.prime-public-v086 .rail-shell>.rail-arrow{
    width:54px!important;
    border:0!important;
    border-radius:0!important;
    opacity:0!important;
    visibility:hidden!important;
    color:#fff!important;
    display:grid!important;
    place-items:center!important;
    background:linear-gradient(90deg,rgba(5,5,5,.86),rgba(5,5,5,.20),transparent)!important;
    transition:opacity .14s ease,visibility .14s ease!important;
  }
  html body.prime-v086 .rail-shell>.rail-arrow.right,
  html body.prime-public-v086 .rail-shell>.rail-arrow.right{
    background:linear-gradient(270deg,rgba(5,5,5,.86),rgba(5,5,5,.20),transparent)!important;
  }
  html body :is(.rail-shell:hover,.rail-shell:focus-within)>.rail-arrow:not(.is-disabled),
  html body .rail-shell.can-scroll-prev>.rail-arrow.left,
  html body .rail-shell.can-scroll-next>.rail-arrow.right{opacity:1!important;visibility:visible!important}
  html body .rail-shell>.rail-arrow.is-disabled{opacity:0!important;visibility:hidden!important;pointer-events:none!important}
  html body .rail-shell>.rail-arrow svg{width:36px!important;height:36px!important;stroke-width:2.2!important;filter:drop-shadow(0 2px 3px rgba(0,0,0,.7))!important}
  html body.streaming-system-v220 .rail-shell>.rail-arrow{top:0!important;bottom:auto!important;transform:none!important;height:var(--pv-card-h)!important}
  html body.streaming-system-v220 .rail-shell:has([data-v220-rail-orientation="poster"])>.rail-arrow,
  html body.streaming-system-v220 .rail-shell:has(.reference-poster-rail)>.rail-arrow{height:var(--pv-poster-h)!important}
}

/* ---------- Assinaturas: remove imagem enviada e volta à arte do catálogo ---------- */
html body.prime-experience-v205 .sub224-subscription .sub224-hero-figure{display:none!important}
html body.prime-experience-v205 .sub224-subscription .sub215-detail-hero-art{
  background-image:var(--sub215-image)!important;
  background-size:cover!important;
  background-position:center 24%!important;
  filter:saturate(.92) brightness(.78)!important;
}
html body.prime-experience-v205 .sub224-subscription .sub215-detail-hero-shade{
  background:
    linear-gradient(90deg,#050505 0%,rgba(5,5,5,.98) 22%,rgba(5,5,5,.76) 48%,rgba(5,5,5,.30) 72%,rgba(5,5,5,.10) 100%),
    linear-gradient(0deg,#050505 0%,rgba(5,5,5,.16) 40%,rgba(5,5,5,.04) 100%)!important;
}
html body.prime-experience-v205 .sub224-subscription .sub215-related{
  padding-top:26px!important;
  padding-bottom:8px!important;
}
html body.prime-experience-v205 .sub224-subscription .sub215-related-title{
  margin-bottom:14px!important;
  font-size:clamp(24px,2.1vw,34px)!important;
  letter-spacing:-.025em!important;
}

/* ---------- Página inicial: imagem fornecida pelo usuário somente aqui ---------- */
html body.public-home-v198 .uv198-feature .uv202-feature-image{
  object-fit:cover!important;
  object-position:center 26%!important;
}
html body.public-home-v198 .uv198-feature{
  background:#050505!important;
}

@media (max-width:899px){
  html body.prime-experience-v205 .sub224-subscription .sub215-detail-hero-art{background-position:64% center!important}
}


/* ---------- V228: Home pública antes de logar com mosaico mais visível e variado ---------- */
html body.public-home-v198.public-guest .uv198-hero-visual{
  background:#040404!important;
}
html body.public-home-v198.public-guest .uv198-mosaic{
  width:40%!important;
  padding:14px 10px 14px 0!important;
  gap:10px!important;
  align-self:stretch!important;
}
html body.public-home-v198.public-guest .uv198-mosaic-card{
  border-radius:10px!important;
  overflow:hidden!important;
  background-size:cover!important;
  background-position:center center!important;
  filter:saturate(1.08) brightness(1.10) contrast(1.04)!important;
  box-shadow:0 16px 40px rgba(0,0,0,.16), inset 0 0 0 1px rgba(255,255,255,.06)!important;
}
html body.public-home-v198.public-guest .uv198-mosaic-card::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.02) 0%,rgba(0,0,0,.05) 48%,rgba(0,0,0,.18) 100%);
  pointer-events:none;
}
html body.public-home-v198.public-guest .uv198-mosaic-card span{
  opacity:.96!important;
  left:10px!important;
  right:10px!important;
  bottom:10px!important;
  font-size:10px!important;
}
html body.public-home-v198.public-guest .uv198-feature{
  inset:0 0 0 40%!important;
  background:#050505!important;
}
html body.public-home-v198.public-guest .uv198-feature::before{
  background:
    linear-gradient(90deg,rgba(0,0,0,.28) 0%,rgba(0,0,0,.08) 22%,rgba(0,0,0,0) 44%),
    linear-gradient(0deg,rgba(0,0,0,.24) 0%,rgba(0,0,0,.06) 34%,rgba(0,0,0,.02) 100%)!important;
}
html body.public-home-v198.public-guest .uv198-feature .uv202-feature-image{
  object-fit:cover!important;
  object-position:center 22%!important;
  opacity:1!important;
}
html body.public-home-v198.public-guest .uv198-feature-shade{
  box-shadow:inset 0 0 72px rgba(0,0,0,.10)!important;
}
html body.public-home-v198.public-guest .uv198-hero-fade{
  width:21%!important;
  background:linear-gradient(90deg,#050505 0%,rgba(5,5,5,.84) 24%,rgba(5,5,5,.24) 72%,rgba(5,5,5,0) 100%)!important;
}
@media (max-width:1050px){
  html body.public-home-v198.public-guest .uv198-mosaic{padding:10px 8px 10px 0!important;gap:8px!important}
  html body.public-home-v198.public-guest .uv198-hero-fade{width:18%!important}
}


/* ---------- V229: ajuste fino final do mosaico público guest (mais próximo do Prime) ---------- */
html body.public-home-v198.public-guest .uv198-hero{
  grid-template-columns:minmax(460px,47.5%) minmax(0,52.5%)!important;
}
html body.public-home-v198.public-guest .uv198-hero-copy:after{
  width:clamp(220px,18vw,320px)!important;
  right:clamp(-240px,-14vw,-150px)!important;
  background:linear-gradient(90deg,
    #050505 0%,
    rgba(5,5,5,.92) 24%,
    rgba(5,5,5,.68) 50%,
    rgba(5,5,5,.22) 78%,
    rgba(5,5,5,0) 100%)!important;
}
html body.public-home-v198.public-guest .uv198-hero-visual{
  background:#040404!important;
}
html body.public-home-v198.public-guest .uv198-mosaic{
  width:39.25%!important;
  padding:18px 12px 18px 0!important;
  gap:12px!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-template-rows:repeat(4,minmax(0,1fr))!important;
}
html body.public-home-v198.public-guest .uv198-mosaic-card{
  border-radius:12px!important;
  overflow:hidden!important;
  background-size:cover!important;
  background-position:center center!important;
  filter:saturate(1.12) brightness(1.16) contrast(1.05)!important;
  box-shadow:0 14px 34px rgba(0,0,0,.14), inset 0 0 0 1px rgba(255,255,255,.07)!important;
  transform:none!important;
}
html body.public-home-v198.public-guest .uv198-mosaic-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(255,255,255,.02) 0%,rgba(255,255,255,0) 24%,rgba(0,0,0,.04) 52%,rgba(0,0,0,.16) 100%);
  pointer-events:none;
}
html body.public-home-v198.public-guest .uv198-mosaic-card::after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:34%;
  background:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,.28) 78%,rgba(0,0,0,.44) 100%);
  pointer-events:none;
}
html body.public-home-v198.public-guest .uv198-mosaic-card span{
  opacity:1!important;
  left:11px!important;
  right:11px!important;
  bottom:11px!important;
  color:#fff!important;
  font-size:10px!important;
  line-height:1.18!important;
  font-weight:800!important;
  text-shadow:0 2px 10px rgba(0,0,0,.85)!important;
}
html body.public-home-v198.public-guest .uv198-feature{
  inset:0 0 0 39.25%!important;
  background:#050505!important;
}
html body.public-home-v198.public-guest .uv198-feature::before{
  background:
    linear-gradient(90deg,rgba(0,0,0,.20) 0%,rgba(0,0,0,.06) 22%,rgba(0,0,0,0) 42%),
    linear-gradient(0deg,rgba(0,0,0,.20) 0%,rgba(0,0,0,.05) 34%,rgba(0,0,0,.02) 100%)!important;
}
html body.public-home-v198.public-guest .uv198-feature .uv202-feature-image{
  object-fit:cover!important;
  object-position:center 18%!important;
  opacity:1!important;
  filter:saturate(1.04) brightness(1.02)!important;
}
html body.public-home-v198.public-guest .uv198-feature-shade{
  box-shadow:inset 0 0 58px rgba(0,0,0,.08)!important;
}
html body.public-home-v198.public-guest .uv198-feature-copy{
  left:clamp(28px,3vw,42px)!important;
  right:22px!important;
  bottom:7.5%!important;
  gap:6px!important;
  opacity:.96!important;
}
html body.public-home-v198.public-guest .uv198-hero-fade{
  width:18.5%!important;
  background:linear-gradient(90deg,#050505 0%,rgba(5,5,5,.78) 22%,rgba(5,5,5,.20) 72%,rgba(5,5,5,0) 100%)!important;
}
@media (max-width:1260px){
  html body.public-home-v198.public-guest .uv198-hero{grid-template-columns:48.25% 51.75%!important}
  html body.public-home-v198.public-guest .uv198-mosaic{width:40.5%!important;gap:9px!important;padding:14px 9px 14px 0!important}
  html body.public-home-v198.public-guest .uv198-feature{inset:0 0 0 40.5%!important}
}
@media (max-width:1050px){
  html body.public-home-v198.public-guest .uv198-mosaic{width:42%!important;gap:8px!important;padding:12px 8px 12px 0!important}
  html body.public-home-v198.public-guest .uv198-feature{inset:0 0 0 42%!important}
  html body.public-home-v198.public-guest .uv198-hero-fade{width:16%!important}
}


/* ---------- V231: correção definitiva da arte principal da Home pública guest ---------- */
html body.public-home-v198.public-guest .uv198-feature{
  background-image:none!important;
  background:#050505!important;
  left:auto!important;
  inset:0 0 0 39.25%!important;
}
html body.public-home-v198.public-guest .uv198-feature .uv202-feature-image{
  position:absolute!important;
  z-index:0!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  display:block!important;
  object-fit:cover!important;
  object-position:center 16%!important;
  opacity:1!important;
  filter:saturate(1.03) brightness(1.03) contrast(1.02)!important;
}
html body.public-home-v198.public-guest .uv198-feature:before{z-index:1!important}
html body.public-home-v198.public-guest .uv198-feature-shade{z-index:2!important}
html body.public-home-v198.public-guest .uv198-feature-copy{z-index:3!important}
html body.public-home-v198.public-guest .uv198-feature-link{z-index:4!important}
html body.public-home-v198.public-guest .uv198-hero-visual{isolation:isolate!important}
html body.public-home-v198.public-guest .uv198-feature::before{
  background:
    linear-gradient(90deg,rgba(0,0,0,.16) 0%,rgba(0,0,0,.05) 18%,rgba(0,0,0,0) 38%),
    linear-gradient(0deg,rgba(0,0,0,.18) 0%,rgba(0,0,0,.03) 34%,rgba(0,0,0,0) 100%)!important;
}
html body.public-home-v198.public-guest .uv198-feature-shade{
  box-shadow:inset 0 0 36px rgba(0,0,0,.08)!important;
}
@media (max-width:1260px){
  html body.public-home-v198.public-guest .uv198-feature{inset:0 0 0 40.5%!important}
}
@media (max-width:1050px){
  html body.public-home-v198.public-guest .uv198-feature{inset:0 0 0 42%!important}
}
