html, body {
    height: 100%;
}

body {
    margin: 0;
    background: #131313;
    font-family: "Dosis", sans-serif;
    font-weight: 350;
    font-style: normal;
    color: white;
}

p {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

h1,h2 {
    letter-spacing: 3px;
    font-weight: 500;
}

.link-filmes a {
    text-decoration: none;
    color: white;
}

.link-filmes a:hover {
    text-decoration: underline;
}

.link-filmes a:visited {
    color: white;
}   


.movies h2 {

    display: inline-block;
    margin-left: 10px;
}

.perfil {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    box-shadow: 0px 0px 10px #111111;
}

.header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 40px;


}


.conteiner {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 25px; 
}





/* Carrossel */

.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow-x: hidden;
} 


.carousel {
    display: flex;
    gap: 15px;
    padding: 30px 20px;
    scroll-behavior: smooth;
    overflow-x: auto;
    overflow-y: visible;

    scroll-behavior: smooth;

}

.carousel::-webkit-scrollbar {
    display: none;
}

.card {
    position: relative;
    min-width: 220px;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s ease;
    cursor: pointer;
}

.card img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}

/* Card expandido */
.card.active {
    transform: scale(1.2);
    z-index: 10;
}

/* Informações */
.info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card.active .info {
    opacity: 1;
}

.info h3 {
    margin: 0;
    font-size: 16px;
}

.info p {
    margin: 5px 0;
    font-size: 13px;
}
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  font-size: 30px;
  width: 50px;
  height: 100px;
  cursor: pointer;
  z-index: 20;
}

.nav.left {
  left: 0;
}

.nav.right {
  right: 0;
}

.nav:hover {
  background: rgba(0,0,0,0.9);
}

/* barra escondida por padrão */
.progress {
    position: absolute;
    bottom: 6px;
    left: 8px;
    right: 8px;

    height: 4px;
    background: rgba(255,255,255,0.25);
    border-radius: 2px;
    overflow: hidden;

    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;

    z-index: 5;
}

/* aparece somente quando o card está ativo */
.card.active .progress {
    opacity: 1;
    transform: translateY(0);
}

.progress-bar {
    height: 100%;
    background: #ffffff;
    width: 0;
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    bottom: 12px;
    right: 10px;

    font-size: 12px;
    font-weight: 600;
    color: white;

    background: rgba(0,0,0,0.6);
    padding: 2px 6px;
    border-radius: 4px;

    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;

    z-index: 6;
}

/* aparece somente quando o card está ativo */
.card.active .progress-text {
    opacity: 1;
    transform: translateY(0);
}



footer {
    background: black;
    color: #fff;
    padding: 30px 16px;
    text-align: center;
}

.grid-filmes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.grid-filmes .card {
    height: 270px;
    cursor: pointer;
}

.grid-filmes .card:hover {
    transform: scale(1.05);
}


/* ====== MODO GRID (filmes.html) ====== */

/* info escondida por padrão */
.grid-filmes .info {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* mostra info no hover */
.grid-filmes .card:hover .info {
    opacity: 1;
    transform: translateY(0);
}

/* barra aparece no hover */
.grid-filmes .card:hover .progress,
.grid-filmes .card:hover .progress-text {
    opacity: 1;
    transform: translateY(0);
}


/* ===== Barra de pesquisa ===== */

.search-input {
  width: 100%;
  max-width: 400px;
  padding: 12px 16px;
  margin: 20px 0 30px;

  border-radius: 8px;
  border: none;
  outline: none;

  background: #1f1f1f;
  color: white;
  font-size: 15px;

  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.search-input::placeholder {
  color: rgba(255,255,255,0.5);
}
