/* =========================================================
   UniSST V216 — SETAS PRIME + FILTRO ÚNICO COMPARTILHADO
   Escopo autorizado pelo usuário em 07/09/2026.
   Não altera geometria/proporção dos cards V215.
   ========================================================= */
:root{
  --v216-filter-bg:#0f0f0f;
  --v216-filter-field:#1a1a1a;
  --v216-filter-field-2:#202020;
  --v216-filter-border:rgba(255,255,255,.14);
  --v216-filter-text:#ffffff;
  --v216-filter-muted:#b8b8b8;
  --v216-gold:#d4af37;
}

/* ---------- Filtro compartilhado: Home / Cursos / Playlist / Assinaturas ---------- */
.v216-filter-wrap{
  position:relative;
  z-index:24;
  width:100%;
  box-sizing:border-box;
  padding:22px clamp(24px,3.2vw,50px) 18px;
  background:#050505;
  color:#fff;
}
.v216-filter-segments{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  margin:0 0 18px;
  overflow-x:auto;
  scrollbar-width:none;
}
.v216-filter-segments::-webkit-scrollbar{display:none}
.v216-filter-segments a{
  flex:0 0 auto;
  min-height:38px;
  padding:0 16px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#1b1b1b;
  color:#fff;
  text-decoration:none;
  font-size:13px;
  font-weight:800;
  white-space:nowrap;
}
.v216-filter-segments a:hover{background:#252525}
.v216-filter-segments a.active{
  border-color:var(--v216-gold);
  background:#202020;
  color:#fff;
}

html body .v216-course-filter{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  display:grid!important;
  grid-template-columns:minmax(340px,2.15fr) repeat(3,minmax(145px,.82fr)) minmax(112px,.52fr)!important;
  gap:10px!important;
  align-items:stretch!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
html body .v216-course-filter .v216-catalog-search,
html body .v216-course-filter .catalog-search{
  position:relative!important;
  height:50px!important;
  min-height:50px!important;
  width:100%!important;
  display:flex!important;
  align-items:center!important;
  padding:0 16px 0 48px!important;
  overflow:hidden!important;
  border:1px solid rgba(212,175,55,.6)!important;
  border-radius:10px!important;
  background:var(--v216-filter-field)!important;
  color:#fff!important;
  box-sizing:border-box!important;
  box-shadow:none!important;
}
html body .v216-course-filter .catalog-search svg{
  position:absolute!important;
  left:16px!important;
  top:50%!important;
  width:18px!important;
  height:18px!important;
  transform:translateY(-50%)!important;
  fill:none!important;
  stroke:var(--v216-gold)!important;
  stroke-width:1.9!important;
  pointer-events:none!important;
}
html body .v216-course-filter .catalog-search input{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  height:48px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  color:#fff!important;
  font-size:14px!important;
  font-weight:650!important;
  caret-color:#fff!important;
  box-shadow:none!important;
}
html body .v216-course-filter .catalog-search input::placeholder{color:#b9b9b9!important;opacity:1!important}
html body .v216-course-filter .catalog-search:focus-within{
  border-color:var(--v216-gold)!important;
  box-shadow:0 0 0 2px rgba(212,175,55,.14)!important;
}
html body .v216-course-filter select{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  height:50px!important;
  padding:0 38px 0 14px!important;
  border:1px solid var(--v216-filter-border)!important;
  border-radius:6px!important;
  background-color:var(--v216-filter-field-2)!important;
  color:#fff!important;
  font-size:13px!important;
  font-weight:700!important;
  box-shadow:none!important;
}
html body .v216-course-filter select option{background:#202020!important;color:#fff!important}
html body .v216-course-filter .prime-light-btn{
  width:100%!important;
  min-width:0!important;
  height:50px!important;
  border:0!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#111!important;
  font-size:14px!important;
  font-weight:850!important;
  box-shadow:none!important;
  cursor:pointer!important;
}
html body .v216-course-filter .prime-light-btn:hover{background:#eeeeee!important;transform:none!important}
html body .v216-course-filter .v216-clear-filter{
  grid-column:1/-1;
  justify-self:end;
  margin-top:-2px;
  color:#d4d4d4;
  font-size:12px;
  font-weight:700;
  text-decoration:none;
}

/* Nas páginas editoriais, o filtro sempre ocupa sua própria faixa e não sobrepõe hero/trilhos. */
body.public-home-v198 .v216-filter-wrap,
body.prime-experience-v205 .v216-filter-wrap,
body.prime-v086 .v216-filter-wrap{
  clear:both!important;
  transform:none!important;
  margin:0!important;
}
body.public-home-v198 .uv198-hero + .v216-filter-wrap{margin-top:0!important}
body.public-home-v198 .v216-filter-wrap + .uv198-public-rails,
body.public-home-v198 .v216-filter-wrap + .pv-public-rails{padding-top:18px!important}
body.prime-v086 .clean-home-hero + .v216-filter-wrap{margin-top:0!important}
body.prime-v086 .v216-filter-wrap + .home-prime-content{padding-top:16px!important}
body.prime-experience-v205 .sub215-detail-hero + .v216-filter-wrap{padding-top:20px!important}

/* ---------- Setas de carrossel no padrão audiovisual: somente no hover da FILEIRA ---------- */
html body .rail-shell{
  position:relative!important;
}
html body .rail-shell > .rail-arrow{
  position:absolute!important;
  z-index:80!important;
  top:50%!important;
  bottom:auto!important;
  width:50px!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  display:grid!important;
  place-items:center!important;
  color:#fff!important;
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  transform:translateY(-50%)!important;
  transition:opacity .14s ease,visibility .14s ease!important;
  box-shadow:none!important;
}
html body .rail-shell > .rail-arrow.left{
  left:0!important;
  right:auto!important;
  background:linear-gradient(90deg,rgba(5,5,5,.96) 0%,rgba(5,5,5,.78) 44%,rgba(5,5,5,.18) 78%,transparent 100%)!important;
}
html body .rail-shell > .rail-arrow.right{
  right:0!important;
  left:auto!important;
  background:linear-gradient(270deg,rgba(5,5,5,.96) 0%,rgba(5,5,5,.78) 44%,rgba(5,5,5,.18) 78%,transparent 100%)!important;
}
html body .rail-shell > .rail-arrow svg{
  width:34px!important;
  height:34px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:2.4!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
  filter:drop-shadow(0 2px 4px rgba(0,0,0,.8))!important;
}
/* Neutraliza regras legadas que mantinham seta visível só por existir rolagem. */
html body .rail-shell.can-scroll-prev:not(:hover):not(:focus-within) > .rail-arrow.left,
html body .rail-shell.can-scroll-next:not(:hover):not(:focus-within) > .rail-arrow.right,
html body .rail-shell:not(:hover):not(:focus-within) > .rail-arrow{
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
html body .rail-shell:hover > .rail-arrow:not(.is-disabled),
html body .rail-shell:focus-within > .rail-arrow:not(.is-disabled){
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
}
html body .rail-shell > .rail-arrow.is-disabled{
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
}

/* A altura da zona da seta é a altura NORMAL do card, nunca a expansão do hover. */
@media (min-width:621px){
  body.prime-public-v086 .pv-public-rail-shell{
    --v216-arrow-h:var(--pv-card-h);
  }
  body.prime-public-v086 .pv-public-rail-shell:has(.pv-public-poster-rail){
    --v216-arrow-h:var(--pv-poster-h);
  }
  body.prime-v086.authenticated-home-page .v078-reference-home .rail-shell,
  body.prime-v086 .v214-courses-home .rail-shell{
    --v216-arrow-h:var(--pv-card-h);
  }
  body.prime-v086.authenticated-home-page .v078-reference-home .rail-shell:has(.reference-poster-rail),
  body.prime-v086 .v214-courses-home .rail-shell:has(.reference-poster-rail){
    --v216-arrow-h:var(--pv-poster-h);
  }
  body.prime-experience-v205 .pv205-rail-shell{
    --v216-arrow-h:calc(var(--v215-pv205-card-w, 25vw) * .5625);
  }
  html body :is(.pv-public-rail-shell,.v078-reference-home .rail-shell,.v214-courses-home .rail-shell,.pv205-rail-shell) > .rail-arrow{
    top:calc(var(--v216-arrow-h) / 2)!important;
    height:var(--v216-arrow-h)!important;
    transform:translateY(-50%)!important;
  }
}

@media (max-width:1100px){
  html body .v216-course-filter{grid-template-columns:1fr 1fr!important}
  html body .v216-course-filter .catalog-search{grid-column:1/-1!important}
  html body .v216-course-filter .prime-light-btn{grid-column:1/-1!important}
}
@media (max-width:680px){
  .v216-filter-wrap{padding:16px 14px 14px}
  .v216-filter-segments{margin-bottom:12px;gap:8px}
  .v216-filter-segments a{min-height:36px;padding:0 13px;font-size:12px}
  html body .v216-course-filter{grid-template-columns:1fr!important;gap:8px!important}
  html body .v216-course-filter .catalog-search,
  html body .v216-course-filter select,
  html body .v216-course-filter .prime-light-btn{grid-column:1!important}
  html body .rail-shell > .rail-arrow{display:none!important}
}
@media (max-width:680px){
  html body.prime-public-v086 .pv-public-rail-shell > .rail-arrow,
  html body.prime-v086 .rail-shell > .rail-arrow,
  html body.prime-experience-v205 .pv205-rail-shell > .rail-arrow{display:none!important}
}
