  body {
        background: #000;
        color: #fff;
        font-family: Arial, sans-serif;
        margin: 0;
    }
    h1 {
        margin: 40px 0 20px;
    }
    .grid-filmes {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }
    .item {
        text-decoration: none;
        color: white;
        position: relative;
        display: flex;
        flex-direction: column;
    }
    .item img {
        width: 100%;
        border-radius: 8px;
        display: block;
    }
    .title {
        font-size: 16px;
        font-weight: bold;
        margin-top: 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .sub {
        font-size: 13px;
        color: #ccc;
    }
    .stars {
        color: gold;
        font-size: 18px;
        margin-top: 4px;
    }
    #loadMoreBtn {
      display: block;
      margin: 30px auto;
      padding: 12px 24px;
      font-size: 16px;
      background-color: #ff3d00;
      color: #fff;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }
    #loadMoreBtn:hover {
      background-color: #e53900;
    }
#filterForm {
  margin-bottom: 30px;
}

#filterGenre {
    width: 250px;
    font-size: 18px;
    color: #fff;
    padding: 10px;
    background-color: #333;
    border: 2px solid #000;
    border-radius: 8px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='%23e74c3c'%3E%3Cpolygon points='0,0 20,0 10,10'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 9px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: border 0.8s, box-shadow 0.3s;
  }

  #filterGenre:focus {
    border-color: #c0392b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
  }

  label[for="filterGenre"] {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
  }
.genre-carousel {
  margin-top: 10px;
  overflow-x: auto;
  gap: 12px;
  padding-bottom: 8px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
  cursor: grab;
  -webkit-overflow-scrolling: touch; /* smooth scrolling iOS */
  user-select: none;
  border-bottom: 1px solid #333;
  scroll-padding: 10px;
}

.genre-carousel::-webkit-scrollbar {
  display: none; /* Chrome, Safari e Opera */
}

 /* Estilo do spinner animado */
  .spinner {
    width: 30px;
    height: 30px;
    border: 5px solid #ccc;
    border-top: 5px solid #ff3d00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 40px auto;
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
.grid-filmes .item {
  transition: transform 0.3s ease, border 0.3s ease;
  will-change: transform, border;
  border-radius: 10px;
  border: 2px solid transparent; /* borda inicial invisível para evitar "pular" layout */
  position: relative; /* para que o z-index funcione */
}

.grid-filmes .item:hover {
  transform: scale(1.05);
  shadow: 2px solid rgba(255, 255, 255, 0.7); /* borda branca semi-transparente */
  cursor: pointer;
  border-radius: 10px;
  z-index: 10;
}

.grid-filmes::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}
    .stars {
        color: gold;
        font-size: 18px;
        margin-top: 4px;
    }
    .carousel-wrapper {
        position: relative;
    }
    .carousel {
        display: flex;
        overflow-x: auto;
        scroll-behavior: smooth;
        gap: 20px;
        padding: 20px 40px; /* espaço para as setas */
        scrollbar-width: none; /* Firefox */
    }
.carousel .item {
  transition: transform 0.3s ease, border 0.3s ease;
  will-change: transform, border;
  border-radius: 10px;
  border: 2px solid transparent; /* borda inicial invisível para evitar "pular" layout */
  position: relative; /* para que o z-index funcione */
}

.carousel .item:hover {
  transform: scale(1.05);
  shadow: 2px solid rgba(255, 255, 255, 0.7); /* borda branca semi-transparente */
  cursor: pointer;
  border-bottom: 2px solid #10ac84;
  border-radius: 10px;
  z-index: 10;
}

    .carousel::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    .item {
        flex: 0 0 auto;
        width: 170px;
        text-decoration: none;
        color: white;
        position: relative;
    }
    .item img {
        width: 100%;
        border-radius: 8px;
        display: block;
    }
    .title {
        font-size: 16px;
        font-weight: bold;
        margin-top: 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .sub {
        font-size: 13px;
        color: #ccc;
    }
.numbered {
    position: absolute;
    left: -20px;
    top: 150px;
    font-size: 120px;
    font-weight: 700;
    background: linear-gradient(15deg, #000, #000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px white; /* contorno branco */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    z-index: 12;
    pointer-events: none;
}


    h1, h2 {
        margin-top: 40px;
        margin-bottom: 0;
    }

    /* Setas do carrossel */
    .carousel-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-100%);
        background: rgba(30,30,30,0.8);
        border: none;
        color: white;
        font-size: 20px;
        width: 50px;
        height: 50px;
        cursor: pointer;
        z-index: 10;
        border-radius: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.3s;
        user-select: none;
    }
    .carousel-arrow:hover {
        background-color: #10ac84;
    }
    .carousel-arrow.left {
        left: 5px;
    }
    .carousel-arrow.right {
        right: 5px;
    }

.highlight-carousel-wrapper {
  position: relative;
  overflow: hidden;
  margin: 30px 0;
}

.highlight-carousel {
  display: flex;
  transition: transform 0.4s ease;
  width: 100%;
}

.highlight-slide {
  min-width: 100%;
  box-sizing: border-box;
  padding: 10px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.highlight-slide img {
  width: 200px;
  border-radius: 8px;
}

.highlight-info {
  flex: 1;
  color: white;
}

.highlight-info h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 22px;
}

.highlight-info p {
  margin-top: 10px;
  color: #ccc;
}

.highlight-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 12px;
  font-size: 28px;
  cursor: pointer;
  z-index: 100;
  border-radius: 50%;
}

.highlight-arrow.left {
  left: 10px;
}

.highlight-arrow.right {
  right: 10px;
}

.highlight-arrow:hover {
  background-color: #ff4500;
}
/* OCULTA MENU MOBILE E BOTÃO EM TELAS GRANDES */
.menu-toggle,
.mobile-menu {
  display: none;
}

/* MOSTRA MENU MOBILE EM TELAS PEQUENAS */
@media (max-width: 768px) {
  nav {
    display: none; /* oculta o menu desktop */
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }
}

.container {
  border-radius: 5px;
  color: #fff;
  max-width: 1100px;
}

/* Poster */
.poster {
  flex-shrink: 0;
  width: 380px;
  margin: 10px;
  border-radius: 10px;
  overflow: hidden;
}
.poster img {
  width: 100%;
  display: block;
}

/* Details */
.details {
  flex-grow: 1;
}
h1 {
  margin-top: 0;
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.subtitle {
  font-style: italic;
  color: #ccc;
  margin-bottom: 15px;
}
.meta {
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #aaa;
}
.meta span {
  margin-right: 15px;
  border-right: 1px solid #444;
  padding-right: 15px;
}
.meta span:last-child {
  border: none;
  padding-right: 0;
}
.genres {
  margin-bottom: 15px;
}
.genres span {
  background: #e50914;
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 0.85rem;
  margin-right: 8px;
  user-select: none;
}
.rating {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 1rem;
}
.rating .visual {
  background: #e50914;
  padding: 5px 15px;
  border-radius: 5px;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  user-select: none;
}
.rating .numeric {
  font-size: 1rem;
  color: #ccc;
}
.sinopse {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 30px;
}
.buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.btn {
  background: #e50914;
  padding: 12px 25px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  cursor: pointer;
  user-select: none;
}
.btn:hover {
  background: #f40612;
}

/* Popup */
#vote-popup {
  display:none; 
  position:fixed; 
  top:0; left:0; right:0; bottom:0; 
  background:rgba(0,0,0,0.8); 
  justify-content:center; 
  align-items:center; 
  z-index:10000;
}
#vote-popup .popup-content {
  background:#111; 
  padding:20px; 
  border-radius:10px; 
  text-align:center; 
  color:#fff;
  max-width: 90vw;
  box-sizing: border-box;
}
#vote-popup .vote-btn {
  margin:10px; 
  padding:10px 20px; 
  border:none; 
  border-radius:5px; 
  color:#fff; 
  cursor:pointer;
  font-weight: bold;
  font-size: 16px;
}
#vote-popup .vote-btn.gostei { background: #4CAF50; }
#vote-popup .vote-btn.nao-gostei { background: #f44336; }
#vote-popup #close-vote-popup {
  margin-top:15px; 
  padding:6px 12px; 
  background:#555; 
  border:none; 
  border-radius:5px; 
  color:#ccc; 
  cursor:pointer;
}

/* RESPONSIVO PARA MOBILE */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    padding: 15px 20px;
    margin: 8vh auto 0 auto;
    gap: 20px;
  }

  .poster {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  h1 {
    font-size: 1.8rem;
    text-align: center;
  }

  .subtitle {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 10px;
  }

  .meta {
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 12px;
  }

  .meta span {
    margin-right: 10px;
    padding-right: 10px;
  }

  .genres {
    text-align: center;
    margin-bottom: 12px;
  }

  .genres span {
    font-size: 0.75rem;
    padding: 4px 10px;
    margin-right: 5px;
  }

  .rating {
    justify-content: center;
    font-size: 0.9rem;
    margin-bottom: 15px;
  }

  .rating .visual {
    font-size: 1rem;
    padding: 4px 12px;
  }

  .rating .numeric {
    font-size: 0.9rem;
  }

  .sinopse {
    font-size: 1rem;
    margin-bottom: 20px;
    padding: 0 10px;
  }

  .buttons {
    justify-content: center;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  #vote-popup .popup-content {
    max-width: 95vw;
  }
}

