.cpv-hero{
  position: relative;
  margin: 0 0 28px;
  overflow: hidden;
  border-radius: 12px;
}

.cpv-hero__media{
  position: relative;
  height: 520px;
  background: #111;
}

.cpv-hero__img{
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

.cpv-hero__overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
    rgba(8,10,14,.92) 0%,
    rgba(8,10,14,.72) 42%,
    rgba(8,10,14,.18) 100%
  );
}

.cpv-hero__content{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.cpv-hero__box{
  max-width: 560px;
  padding: 42px 44px;
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
}

.cpv-hero__title{
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.05;
}

.cpv-hero__subtitle{
  margin: 0 0 8px;
  color: rgba(255,255,255,.86);
  font-size: clamp(15px, 1.5vw, 18px);
}

.cpv-hero__badge{
  margin: 0 0 20px;
  color: rgba(255,255,255,.72);
  font-size: 13px;
}

.cpv-hero__cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: #c6281c;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}

.cpv-hero__cta,
.cpv-hero__cta:visited{
  color: #fff;
  transition: 
    background-color .2s ease,
    box-shadow .2s ease,
    transform .15s ease;
}

.cpv-hero__cta:hover,
.cpv-hero__cta:focus{
  color: #fff;
  background: #b52419; /* vermelho ligeiramente mais escuro */
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  transform: translateY(-1px);
  text-decoration: none;
}


/* MOBILE */
@media (max-width: 768px){
  .cpv-hero{ border-radius: 14px; }
  .cpv-hero__media{ height: 560px; }
  .cpv-hero__img{ height: 560px; }
  .cpv-hero__overlay{
    background: linear-gradient(180deg, rgba(14,14,16,.20) 0%, rgba(14,14,16,.75) 55%, rgba(14,14,16,.92) 100%);
  }
  .cpv-hero__content{ align-items: flex-end; padding-bottom: 14px; }
  .cpv-hero__box{
    max-width: 100%;
    padding: 18px 18px;
    margin: 0 10px;
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.10);
  }
}


/* =========================
   NETFLIX-LIKE CATEGORY ROW
   ========================= */

.cpv-row{
  margin-bottom: 26px;
}

.cpv-row-wrap{ position: relative; }

.cpv-row-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin: 0 0 10px;
}

.cpv-row-title{
  margin:0;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 20px;
}

/* scroller */
.cpv-cards-scroll{
  display:flex;
  gap:16px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  padding: 6px 2px 10px;
  scroll-behavior:smooth;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.cpv-cards-scroll::-webkit-scrollbar{ display:none; }

/* card */
.cpv-cat-card{
  position:relative;
  flex:0 0 360px;
  scroll-snap-align:start;
  border-radius:14px;
  overflow:hidden;
  text-decoration:none;
  color:#fff;
  min-height:175px;           /* AQUI: altura maior */
  background:#111;
  border:1px solid rgba(0,0,0,.08);
  box-shadow: 0 5px 5px rgba(0,0,0,.10);
  transform: translateZ(0);
  will-change: box-shadow;
}

@media (max-width: 768px){
  .cpv-cat-card{ flex-basis: 78%; }
}

.cpv-cat-bg{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  transform:scale(1.02);
  filter: saturate(1.05) contrast(1.05);
  transition: transform .25s ease;
  will-change: transform;
}

.cpv-cat-bg--fallback{
  background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.02));
}

.cpv-cat-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(90deg,
    rgba(8,10,14,.88) 0%,
    rgba(8,10,14,.55) 48%,
    rgba(8,10,14,.10) 100%
  );
}

.cpv-cat-content{
  position:relative;
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.cpv-cat-title{
  font-size:18px;
  line-height:1.15;
  letter-spacing:-0.2px;
}

.cpv-cat-meta{
  font-size:13px;
  opacity:.82;
}

/* hover sem tremideira: não escala o card, só a imagem */
@media (hover:hover){
  .cpv-cat-card:hover{
    box-shadow: 0 5px 5px rgba(0,0,0,.14);
    border-color: rgba(0,0,0,.14);
  }

  .cpv-cat-card:hover .cpv-cat-bg{
    transform: scale(1.08);
  }
}
/* ===== Netflix-style overlay arrows (FIX) ===== */

.cpv-row-wrap{ position: relative; }

.cpv-row-arrows{
  position:absolute;
  /* só por cima da zona dos cards (não em cima do título) */
  top: 46px;
  left: 0;
  right: 0;
  bottom: 0;

  display:flex;
  justify-content:space-between;
  align-items:center;

  pointer-events:none;
  opacity:0;
  transition: opacity .25s ease;
  z-index: 50; /* <<< MUITO IMPORTANTE */
}

/* aparece em hover SEM depender de hover:hover */
.cpv-row-wrap:hover .cpv-row-arrows,
.cpv-row-wrap:focus-within .cpv-row-arrows{
  opacity:1;
}

.cpv-row-btn{
  pointer-events:auto;
  width:46px;
  height:86px;
  border-radius:10px;
  border:0;
  background: rgba(0,0,0,.55);
  color:#fff;
  font-size:34px;
  font-weight:300;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: background .2s ease, transform .15s ease, opacity .2s ease;
  margin: 0 12px; /* margem interior esquerda/direita */
}

.cpv-row-btn:hover{
  background: rgba(0,0,0,.75);
  transform: scale(1.05);
}

.cpv-row-btn:disabled{
  opacity:0;
  pointer-events:none;
}

/* mobile continua sem setas */
@media (max-width:768px){
  .cpv-row-arrows{ display:none; }
}
.cpv-row-btn:focus{
  outline: none;
}
.cpv-row-btn:focus-visible{
  outline: 2px solid rgba(255,255,255,.35);
  outline-offset: 2px;
}
.cpv-cat-card,
.cpv-cat-card:hover,
.cpv-cat-card:focus{
  color:#fff;
}

.cpv-cat-title,
.cpv-cat-card:hover .cpv-cat-title,
.cpv-cat-card:focus .cpv-cat-title{
  color:#fff !important;
}

/* meta também */
.cpv-cat-meta,
.cpv-cat-card:hover .cpv-cat-meta{
  color: rgba(255,255,255,.82) !important;
}
