body {
    background-color: #f2f2f2;

}
.header-contant { border-bottom: 1px solid #333; }

.sticky-top { box-shadow: 0 2px 8px rgba(0,0,0,.15); z-index: 1030; }

.offcanvas.text-bg-dark .nav-link { color: #fff; }
.offcanvas.text-bg-dark .nav-link:hover { color: #e9ecef; }

main.container { position: relative; z-index: 1; }

.form-container {
    max-width: 600px;
    margin: 50px auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.btn-custom {
    width: 100%;
}

.galerryCarousel {
    max-height: 500px; /* Define a altura máxima do carrossel */
    overflow: hidden; /* Esconde partes extras da imagem */
}

.classImg{
    height: 500px; /* Define a altura fixa */
    width: 100%; /* Mantém a largura total */
    object-fit: cover; /* Garante que a imagem se ajuste bem, cortando se necessário */
    background-size:cover;
}

.card > img{
    width: 320px;
    height: 400px;
}

.imgFilme{
    width: 360px;
    height: 565px;
}
.card{
    align-items: center !important;
}

.card h3{
    text-align: center;
}

.iframe-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    padding-top: 56.25%; /* Proporção 16:9 */
    margin: auto;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

/*LOGIN*/

.login-container {
    max-width: 700px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.login-box{
    height: 100%;
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa;
}

/*IMAGEM COMO BAIXAR?*/

.img-instrucao img{
    max-width: 80%;
    max-height: 50%;
    margin: auto;
}

/*MENU CATEGORIAS*/
.contant-cat { padding: 10px 0; overflow-x: auto; background:#212529; }
.contant-cat ul { display:flex; flex-wrap:wrap; gap:10px; list-style:none; }
.contant-cat ul li a {
  display:inline-block; padding:6px 12px; background-color:#343a40; color:#fff;
  border-radius:20px; text-decoration:none; white-space:nowrap; font-size:14px;
  transition: background-color .2s ease;
}
.contant-cat ul li a:hover { background-color:#495057; }

@media (max-width: 991.98px) {
  .contant-cat { display:none; }
}

/*CATEGORIAS*/

.verMaisCat{
    display: inline-block;
    margin: 5px auto;
    width: 150px;
    padding: 5px;
    text-align: center;
    background-color: #343a40;
    font-size: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    color: #fff;
}

.verMaisCat:hover {
    background-color: #495057;
  }

  /*BUSCAR FILMES(SEARCH)*/
  .card-body p,
  .card-body h5,
  .card-body h6,
  .card-body small {
    font-size: 0.85rem;
  }

/*Banner*/
/* Altura responsiva do banner */
#myCarousel .carousel-item { position: relative; }
#myCarousel .banner-frame {
position: relative;
width: 100%;
height: clamp(360px, 62vh, 780px); /* ajuste como preferir */
overflow: hidden;
}
/* Imagem preenche todo o pai, sem distorcer (pode haver corte lateral em telas muito “altas”) */
#myCarousel .banner-frame img {
width: 100%;
height: 100%;
display: block;
object-fit: cover;      /* preenche mantendo proporção */
object-position: center;
}
/* Degradê sutil para melhorar a leitura da legenda */
#myCarousel .banner-frame::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(180deg, rgba(0,0,0,.25) 30%, rgba(0,0,0,.65) 100%);
pointer-events: none;
}
/* Posição da legenda */
#myCarousel .carousel-caption {
z-index: 2;
bottom: clamp(1rem, 8vh, 4rem);
}
/* Títulos/textos mais legíveis sobre o banner */
#myCarousel .carousel-caption h1 { text-shadow: 0 2px 8px rgba(0,0,0,.5); }
#myCarousel .carousel-caption p  { text-shadow: 0 1px 6px rgba(0,0,0,.4); }

/* Desc Filme – Poster */
.poster-wrap {
  max-width: 500px;
  width: 100%;
}
.poster-img {
  width: 100%;
  height: auto;     
  object-fit: cover;
}

/* Metadados */
.meta-label {
  display: block;
  font-size: 0.75rem;
  color: #6c757d;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .02em;
}

/* Quebra de layout muito estreito: dá um respiro ao poster */
@media (max-width: 575.98px) {
  .poster-wrap { max-width: 360px; }
}

/* Se quiser controlar a altura do poster apenas em telas grandes */
@media (min-width: 992px) {
  .poster-img {
    max-height: 720px;
    object-fit: contain;    /* evita crop agressivo em posters mais altos */
  }
}

.ad-728 { min-height: 90px; }
@media (max-width: 767.98px) { .ad-728 { min-height: 50px; } }