/* =====================
   RESET GLOBAL
===================== */
*{
  box-sizing:border-box;
}

html,body{
  margin:0;
  padding:0;
  background:#000;
  color:#fff;
  font-family:Arial,Helvetica,sans-serif;
  scrollbar-gutter:stable both-edges;
  scroll-behavior:smooth;
  -webkit-tap-highlight-color:transparent;
}

/* =====================
   APP
===================== */
#app{
  padding-top: 0px;
}

/* =====================
   TOPBAR
===================== */
.topbar{
  position:fixed;
  top:0;
  width:100%;
  z-index:100;

  background:linear-gradient(
    to bottom,
    rgba(0,0,0,.85) 0%,
    rgba(0,0,0,.55) 40%,
    rgba(0,0,0,.15) 70%,
    rgba(0,0,0,0) 100%
  );

  backdrop-filter:none;
}


.topbar-inner{
  max-width:1400px;
  height:72px;
  margin:0 auto;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  padding:0 32px;
}

.topbar-actions{
  display:flex;
  align-items:center;
  gap:20px;
}

.logo{
  height:42px;
  max-height:42px;
  width:auto;
  flex-shrink:0;
}

/* =====================
   FUNDO
===================== */
.bg-fixed{
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
}

/* =====================
   HERO
===================== */
.hero-video{
  position:relative;
  height:150vh;
  overflow:hidden;
  touch-action:pan-y;
  background:#000;
}

.hero-track{
  display:flex;
  width:100%;
  height:100%;
  will-change:transform;
}

.hero-fade-transition{
  position:absolute;
  inset:0;
  background:#000;
  opacity:0;
  pointer-events:none;
  z-index:8;
  transition:opacity .45s ease;
}

.hero-poster{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  pointer-events:none;
  z-index:1;
}

.hero-video::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  z-index:3;              /* 🔥 acima do video */
  pointer-events:none;

  height:200px;
  background:linear-gradient(
    to bottom,
    rgba(0,0,0,.85) 0%,
    rgba(0,0,0,.45) 40%,
    rgba(0,0,0,0) 100%
  );
}

.hero-video::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:220px;
  z-index:3;
  pointer-events:none;

  background:linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,.6) 60%,
    #000 100%
  );
}

.hero-video video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:1;
  opacity:0;
  transition:opacity .6s ease;
}

.hero-video video.ready{
  opacity:1;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(
    to bottom,
    rgba(0,0,0,0) 45%,
    rgba(0,0,0,.65) 80%,
    rgba(0,0,0,1) 100%
  );
  z-index:0;
}

.hero-content{
  position:relative;
  z-index:3;
  height:100%;
  max-width:520px;
  padding-left:120px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.hero-title-img{
  max-width:340px;
  width:100%;
  height:auto;
  margin-bottom:18px;
  filter:drop-shadow(0 8px 24px rgba(0,0,0,.85));
}

.hero-text{
  color:#ccc;
  margin-bottom:2px;
}

.hero-btn{
  background:#e50914;
  color:#fff;
  padding:10px 22px;
  font-size:14px;
  font-weight:600;
  border-radius:6px;
  text-decoration:none;
  width:fit-content;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  transition:background .25s ease,transform .25s ease,box-shadow .25s ease;
}

.hero-btn:hover{
  background:#ff1e28;
  transform:translate(1px);
  box-shadow:10px 10px 10px -10px rgba(229,9,20,.45);
}

/* =====================
   HERO CONTROLES
===================== */
.hero-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:5;
  width:56px;
  height:56px;
  border-radius:50%;
  background:rgba(0,0,0,.55);
  color:#fff;
  font-size:36px;
  border:none;
  cursor:pointer;
  opacity:0;
  transition:opacity .25s ease;
}

.hero-arrow.left{left:24px;}
.hero-arrow.right{right:24px;}

.hero-video:hover .hero-arrow{
  opacity:1;
}

.hero-dots{
  position:absolute;
  bottom:80px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:10px;
  z-index:10;
}

.hero-dots .dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:rgba(255,255,255,.4);
  cursor:pointer;
}

.hero-dots .dot.active{
  background:#fff;
  transform:scale(1.2);
}

/* =====================
   HBO ROW
===================== */
.hbo-row{
  margin-top:-140px;
  padding:40px 60px;
  position:relative;
  z-index:4;
}

.hbo-title{
  font-size:20px;
  margin-bottom:16px;
}

.hbo-slider{
  display:flex;
  gap:14px;
  overflow-x:auto;
}

.hbo-slider::-webkit-scrollbar{
  display:none;
}

.hbo-card{
  position:relative;
  width:170px;
  aspect-ratio:2/3;
  border-radius:8px;
  overflow:hidden;
  background:#111;
  flex-shrink:0;
}

.hbo-card img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.hbo-card::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:8px;
  border:2px solid rgba(255,255,255,.9);
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease;
}

.hbo-card:hover::after{
  opacity:1;
}

/* =====================
   MENU
===================== */
.menu{
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:32px;
}

.menu button{
  background:none;
  border:none;
  color:rgba(255,255,255,.75);
  font-size:17px;
  font-weight:600;
  cursor:pointer;
  padding:6px 0;
}

.menu button.active{
  color:#fff;
}

.menu-indicator{
  position:absolute;
  bottom:-8px;
  height:2px;
  background:#e50914;
  transition:left .35s ease,width .35s ease;
}

/* =====================
   ICONES
===================== */
.icon-btn{
  background:none;
  border:none;
  padding:6px;
  cursor:pointer;
}

.icon-search{
  width:18px;
  height:18px;
  stroke:rgba(255,255,255,.8);
  stroke-width:2;
  fill:none;
}

.login-btn{
  background:transparent;
  border:1px solid rgba(255,255,255,.35);
  color:rgba(255,255,255,.8);
  padding:8px 16px;
  font-size:13px;
  font-weight:600;
  border-radius:20px;
  cursor:pointer;
}

/* =====================
   MOBILE (SO CELULAR)
===================== */
@media (max-width:768px){

  .hero-video{
    height:100vh;        /* ocupa tela toda */
    min-height:unset;
  }

  .hero-overlay{
    background:linear-gradient(
      to bottom,
      rgba(0,0,0,0.1) 0%,
      rgba(0,0,0,0.6) 65%,
      #000 100%
    );
  }

}

@media (max-width:768px){

  .topbar{
    background:linear-gradient(
      to bottom,
      rgba(0,0,0,.85),
      rgba(0,0,0,0)
    );
    backdrop-filter:none;
  }

}

@media (max-width:768px){

  .hero-content{
    justify-content:flex-end;
    padding-bottom:140px; /* posição HBO */
    align-items:center;
    text-align:center;
    padding-left:0;
    max-width:none;
    width:100%;
  }

}

@media (max-width:768px){

  .hero-btn{
    border-radius:14px;
    padding:16px 28px;
    font-size:16px;
    min-height:52px;
  }

}


  #app{
    padding-top:px; /* mesma altura da topbar */
  }


  /* TOPBAR */
  .topbar-inner{
    grid-template-columns:1fr auto 1fr;
    padding:0 16px;
  }

  .logo{
    justify-self:center;
  }

  /* HERO */
  .hero-video{
    height:100vh;
    min-height:520px;
  }

  .hero-content{
    padding-left:0;
    max-width:none;
    width:100%;
    align-items:center;
    text-align:center;
  }

  .hero-title-img{
    max-width:260px;
  }

  .hero-text,
  .hero-descricao{
    text-align:center;
    margin:0 auto;
    font-size:15px;
    line-height:1.4;
    max-width:280px;
  }

  .hero-btn{
    margin:16px auto 0 auto;
    min-height:48px;
    padding:14px 24px;
    border-radius:10px;
  }

  .hero-arrow{
  display:block;
}

@media (max-width:768px){
  .hero-arrow{
    display:none;
  }
}


  .hero-dots{
    bottom:40px;
  }

  /* ROW */
  .hbo-row{
    padding:30px 16px;
    margin-top:-80px;
  }

  .hbo-card{
    width:140px;
  }

/* CONTROLES CENTRAIS PREMIUM */

.center-controls{
position:absolute;
bottom:60px;
left:50%;
transform:translateX(-50%);
display:flex;
align-items:center;
gap:22px;
z-index:20;
opacity:0;
transition:.25s;
}

.player.show-ui .center-controls{
opacity:1;
}

.center-controls button{
background:rgba(0,0,0,.6);
border:none;
color:#fff;
font-size:16px;
padding:14px 18px;
border-radius:50px;
cursor:pointer;
}

/* =====================
   PLAYER CINEMA (UPGRADE PRO)
===================== */

.player-overlay{
  position:fixed;
  inset:0;
  background:#000;
  z-index:9999;

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

  animation:fadeInPlayer .35s ease;
}

@keyframes fadeInPlayer{
  from{opacity:0;}
  to{opacity:1;}
}

.player-box{
  position:relative;
  width:92%;
  height:92%;
  max-width:1600px;
}

.player-box iframe{
  width:100%;
  height:100%;
  border:none;
  border-radius:10px;
  background:#000;
}

/* BOTÃO FECHAR HBO */
.player-close{
  position:absolute;
  top:-46px;
  right:0;

  background:rgba(0,0,0,.55);
  border:none;
  color:#fff;
  font-size:20px;

  width:38px;
  height:38px;
  border-radius:50%;

  cursor:pointer;
  transition:.25s;
}

.player-close:hover{
  background:#e50914;
  transform:scale(1.08);
}

/* MOBILE PLAYER FULLSCREEN REAL */
@media(max-width:768px){

  .player-box{
    width:100%;
    height:100%;
  }

  .player-box iframe{
    border-radius:0;
  }

  .player-close{
    top:14px;
    right:14px;
    z-index:2;
  }
}
