.containers__separator {
  gap: 1rem;
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem 0;
}

.hero-section {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
}

.hero-carousel {
  position: relative;
  height: 85vh;
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  /* ALTERAÇÃO: Alinhar a caixa de detalhes à direita como na imagem de referência */
  justify-content: flex-end;
  color: white;
}

.carousel-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(60%);
  z-index: 0;
  display: block;
}

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-details {
  position: relative;
  /* SUGESTÃO: Aumentar um pouco o max-width se o texto parecer muito espremido */
  max-width: 550px;
  /* Original: 500px. Ajuste conforme o visual desejado */
  z-index: 1;
  padding: 2rem;
  border-radius: 12px;
  right: 10vh;
}

.carousel-details h2 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.synopsis {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.info-group {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.watch-button {
  background-color: #eb004b;
  color: white;
  padding: 10px 14px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  /* Adicionar transição suave */
}

.watch-button:hover {
  background-color: #c8003f;
  /* Tom mais escuro no hover */
}

.icon-button {
  width: 36px;
  height: 36px;
  background-color: #1c1c1c;
  color: white;
  font-size: 1.2rem;
  border: 1px solid #303030;
  cursor: pointer;
  border-radius: 6px;
  display: inline-flex;
  /* Para centralizar melhor o ícone */
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  /* Adicionar transição suave */
}

.icon-button:hover {
  background-color: #303030;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 2;
}

.carousel-button {
  background-color: #eb004b;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  font-size: 1.2rem;
  cursor: pointer;
}

.arrow-hero {
  background-color: #eb004b;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-radius: 8px;
}

.arrow {
  background-color: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-radius: 8px;
}

.arrowLeft-icon,
.arrowRight-icon {
  margin-top: 0.1rem;
  width: 1.5rem;
  height: 1.5rem;
  cursor: pointer;
}

.arrowLeft-icon {
  rotate: 180deg;
}

.rating-hero {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  color: #f1f1f1;
}

.rating-value-hero {
  margin-left: 8px;
  font-size: 1rem;
  font-weight: bold;
  color: #f1f1f1;
}

.star-rating-hero {
  position: relative;
  display: inline-block;
  --pct: 0%;
  /* Garante que o contêiner tenha um tamanho definido com base nas imagens */
  width: auto;
  /* Ou corresponda à largura intrínseca da imagem das estrelas cheias */
  height: 16px;
  /* Corresponde à altura das imagens das estrelas */
}

/* Estilo base para todas as imagens dentro do componente de avaliação por estrelas */
.star-rating-hero img {
  display: block;
  /* Evita problemas de espaçamento indesejado com imagens em linha */
  width: auto;
  /* Permite que as imagens escalem naturalmente com base na altura */
  height: 16px;
  /* Altura fixa para tamanho consistente das estrelas */
}

.star-rating {
  position: relative;
  display: inline-block;
  --pct: 0%;
  /* Garante que o contêiner tenha um tamanho definido com base nas imagens */
  width: auto;
  /* Ou corresponda à largura intrínseca da imagem das estrelas cheias */
  height: 12px;
  /* Corresponde à altura das imagens das estrelas */
}

/* Estilo base para todas as imagens dentro do componente de avaliação por estrelas */
.star-rating img {
  display: block;
  /* Evita problemas de espaçamento indesejado com imagens em linha */
  width: auto;
  /* Permite que as imagens escalem naturalmente com base na altura */
  height: 12px;
  /* Altura fixa para tamanho consistente das estrelas */
}

/* O novo elemento wrapper que lida com o recorte da imagem das estrelas cheias */
.stars-full-wrapper {
  position: absolute;
  /* Posiciona este wrapper precisamente sobre.stars-bg */
  top: 0;
  left: 0;
  height: 100%;
  /* Garante que o wrapper corresponda à altura das estrelas */
  /* Este é o cerne da solução: controla a largura visível e recorta */
  width: var(--pct);
  /* Define dinamicamente a largura da janela de recorte */
  overflow: hidden;
  /* Crucialmente, recorta qualquer conteúdo (a imagem interna) que se estenda além de sua largura */
}

/* A imagem das estrelas cheias em si, agora posicionada dentro de seu novo wrapper */
.stars-full {
  position: absolute;
  /* Posiciona esta imagem dentro de seu pai.stars-full-wrapper */
  top: 0;
  left: 0;
  /* Garante que a imagem ocupe sua largura intrínseca total para ser recortada pelo wrapper.
       Ela deve ser tão larga quanto o componente de avaliação por estrelas completo. */
  width: 100%;
  /* Isso significa 100% da largura *total* da avaliação por estrelas */
}

.banner-buttons {
  display: flex;
  gap: 10px;
}

.banner-buttons .btn-play {
  display: flex;
  align-items: center;
  background-color: #eb004b;
  color: #fff;
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: bold;
  margin-right: 10px;
}

.banner-buttons .btn-icon {
  display: flex;
  align-items: center;
  background-color: #333;
  color: #fff;
  padding: 14px;
  border-radius: 8px;
  font-size: 1.5rem;
}

.lists-page {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem 0;
}

.all-lists-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 1366px;
  margin: 0 auto;
  border: 1px solid #3f3f3f;
  border-radius: 12px;
  padding: 3rem;
  box-sizing: border-box;
  position: relative;
}

.lists-top-container {
  display: flex;
  gap: 6.5px;
  align-items: center;
  top: -0.75rem;
}

.list-section-button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.25rem;
  color: #f1f1f1;
  background-color: #eb004b;
  font-weight: bold;
  font-size: 1rem;
}

.add-list-button {
  border: 1px solid #eb004b;
  border: none;
  border-radius: 50%;
  background: #1f1f1f;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.plus-icon-fill,
.check-icon-fill,
.clock-icon-fill,
.heart-icon-fill,
.edit-icon-fill {
  height: 1.75rem;
  width: 1.75rem;
}

.plus-icon-fill:hover,
.check-icon-fill:hover,
.clock-icon-fill:hover,
.heart-icon-fill:hover,
.edit-icon-fill:hover {
  height: 2rem;
  width: 2rem;
}

.list-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.list-details-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}

.list-description {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  overflow-x: auto;
}

.list-description p {
  font-weight: 700;
  font-size: 1.2rem;
  color: #f5f5f5;
  white-space: nowrap;
  margin: 0;
}

.list-description .material-symbols-outlined {
  font-size: 1.2rem;
  color: #eb004b;
  cursor: pointer;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #2e2e2e;
  padding: 0.4rem;
  border-radius: 6px;
}

.indicators {
  display: flex;
  gap: 2px;
}

.dot {
  width: 1rem;
  height: 0.25rem;
  background: #3f3f3f;
  border-radius: 1px;
}

.dot.active {
  background: #eb004b;
}

.films-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 1rem;
}

.film-on-list {
  flex: 0 0 auto;
  background: #3f3f3f;
  padding: 0.5rem;
  width: 176px;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border-radius: 4px;
}

.film-banner-list-carousel {
  width: 100%;
  aspect-ratio: 140/190;
  object-fit: cover;
  border-radius: 6px;
}

.film-on-list-details {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
}

.list-banner-match-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.list-banner-match {
  object-fit: cover;
  height: 8rem;
  width: 100%;
  border-radius: 0.5rem;
  margin: 0.5rem;
}

/* MATCH CTA */
.match-cta {
  background-image: url("../img/Container.png");
  display: flex;
  justify-content: center;
  flex-direction: column;
  object-fit: cover;
  height: 11rem;
  width: 100%;
  border-radius: 0.5rem;
  margin: 0.5rem;
}

.open-serie-match-bakground {
  width: 100%;
  height: 100%;
}

.open-serie-match-description {
  display: flex;
  flex-direction: row;
  padding: 1rem 3rem 1rem 3rem;
  font-size: 1.2rem;
  justify-content: space-between;
}

.open-serie-match-button {
  background-color: #ff005c;
  font-weight: bold;
  color: #fff;
  padding: 15px 30px;
  font-size: 1rem;
  border-radius: 4px;
  margin-top: 20px;
}

/* Estrelas */

.list-details-timestamp,
.rating {
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  font-size: 0.65rem;
  background: #1f1f1f;
  color: #f5f5f5;
  padding: 0.3rem 0.4rem;
  border-radius: 6px;
  border: 1px solid #555;
  gap: 0.3rem;
}

.duration-icon {
  width: 12px;
  height: 12px;
}

.rating-value,
.duration-value {
  font-size: 0.65rem;
  font-weight: bold;
  color: #f1f1f1;
}

/* ==========  CATEGORIES  ========== */

.categories-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-block: 3rem;
  /* space above & below the block */
}

.categories-header {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.2rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
}

.section-subtitle {
  font-size: 0.875rem;
  color: #aaaaaa;
  max-width: 36rem;
  /* keeps the line-length readable */
  margin-top: 0.25rem;
}

.categories-carousel {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  overflow-x: auto;
  /* enables horizontal scroll on small screens */
  padding-block: 0.25rem;
  /* a little breathing room */
}

.category-card {
  --card-size: 6.5rem;
  /* tweak once, scales icon & radius */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  min-width: var(--card-size);
  height: var(--card-size);
  border: none;
  border-radius: 0.75rem;
  background: #eb004b;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  background: #eb004b;
}

.category-icon {
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.5rem;
  filter: brightness(0) invert(1);
  /* forces icon to white */
}

.category-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
  pointer-events: none;
  /* keeps click on the whole card */
}

/* Matches your existing arrows/dots – nothing else to change */

.container-reviews {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 20px;
  background-color: #1f1f1f;
}

.reviews {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 20px;
  background-color: #2e2e2e;
  padding: 40px;
  border-radius: 8px;
}

.review-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.review-item {
  flex: 1 1 calc((100% - 20px) / 2);
  min-width: 540px;
  background-color: #2e2e2e;
  border-radius: 8px;
  padding: 20px;
  box-sizing: border-box;
  color: #ffffff;
  margin: 0 auto;
}

.card-film-title {
  font-size: 1rem;
  font-weight: bold;
}

.card-film-info {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.card-film {
  display: 0 1 10%;
  max-width: auto;
}

.card-info {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  width: auto;
  min-width: 156px;
}

.banner-film {
  width: 100%;
  max-width: 10rem;
  max-height: 12rem;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 16px;
}

.user-info {
  flex: 1;
}

.user-name {
  margin: 0;
  font-size: 1.2rem;
}

.user-ranking {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: #cccccc;
}

.user-ranking span {
  color: #ffffff;
}

/* Ações do card (botões de interação) */
.card-actions {
  margin: 16px 0;
}

.card-actions button {
  background: transparent;
  border: 1px solid #3f3f3f;
  color: #eb004b;
  padding: 8px 12px;
  border-radius: 4px;
  margin-right: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

.card-actions button:hover {
  background: rgba(235, 0, 75, 0.1);
}

/* Descrição do review */
.card-description {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #cccccc;
  margin: 0;
}

.review-actions {
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-check-reviews {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #eb004b;
  font-weight: bold;
  font-size: 16px;
  color: #fff;
  padding: 14px 20px;
  border-radius: 4px;
  gap: 4px;
}

.cast-list {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cast-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: center;
  color: #ffffff;
  gap: 10px;
}

/* REVIEWS */

.btn-add-review {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #eb004b;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  padding: 10px 16px;
  border-radius: 4px;
}

.arrowLeft-icon .arrowRight-icon {
  margin-top: 0.1rem;
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

.stars-icon {
  width: 16px;
  height: 16px;
  fill: #eb004b;
}

.paginacao {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

/* --- Variáveis CSS (opcional, mas boa prática para cores) --- */
:root {
  --primary-red: #eb004b; /* Vermelho Lumière */
  --accent-red: #ff3377;
  --dark-bg: #1a1a1a;
  --medium-dark-bg: #1f1f1f;
  --light-dark-bg: #2e2e2e;
  --border-color: #3f3f3f;
  --text-light: #f5f5f5;
  --text-medium: #ccc;
  --text-dark: #888;
  --button-green: #28a745;
  --button-green-hover: #218838;
  --button-red: #eb004b;
  --button-red-hover: #b20b1c;
  --error-color: #ff0000;
  --button-red-rgb: 235, 0, 75; /* Usado para cores RGBA */
}

/* --- Global Resets & Base Styles --- */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-light);
  line-height: 1.6;
}

/* --- Main Content - Lists Page --- */
.lists-page {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem 0;
  padding: 0 1rem; /* Adiciona padding para evitar que o conteúdo cole nas bordas em telas menores */
  box-sizing: border-box; /* Garante que padding e borda não aumentem a largura total */
}

/* --- All Lists Container --- */
.all-lists-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 1366px;
  margin: 0 auto;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 3rem;
  box-sizing: border-box;
  position: relative; /* Necessário para posicionar .lists-top-container */
  background-color: var(--medium-dark-bg); /* Fundo para a área das listas */
}

@media (max-width: 768px) {
  .all-lists-container {
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .all-lists-container {
    padding: 1.5rem 1rem;
    gap: 1rem;
  }
}

/* --- Top Section of Lists Container (Button & Add Button) --- */

/* Estilos para a área de resultados da pesquisa no modal */
#searchResults.search-results-dropdown {
  display: none; /* Esconde o container de resultados por padrão */
  margin-top: 15px; /* Adicione a distância desejada aqui, por exemplo, 15px */
  background-color: var(
    --light-dark-bg
  ); /* Exemplo: Um fundo para o dropdown */
  border: 1px solid var(--border-color); /* Exemplo: Uma borda para o dropdown */
  border-radius: 5px; /* Exemplo: Cantos arredondados */
  max-height: 300px; /* Exemplo: Limita a altura do dropdown */
  overflow-y: auto; /* Exemplo: Adiciona scroll se os resultados excederem a altura */
  padding: 5px; /* Exemplo: Espaçamento interno */
}

@media (max-width: 768px) {
  .lists-top-container {
    left: 1rem; /* Ajusta a posição para telas menores */
  }
}

.add-list-button,
.edit-list-button, /* Botão de editar dentro da lista */
.delete-list-button /* Novo botão de deletar */ {
  border: none;
  border-radius: 50%;
  background-color: transparent; /* Certifica que o background é transparente para mostrar o ícone */
  color: var(--text-light); /* Cor padrão para ícones (se forem fontes) */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: transform 0.2s ease-in-out;
}

/* Tamanho padrão dos ícones */
.plus-icon-fill,
.check-icon-fill,
.clock-icon-fill,
.heart-icon-fill,
.edit-icon-fill,
.trash-icon-fill /* Ícone de lixeira para deletar */ {
  color: white; /* Cor dos ícones SVG, se aplicável */
  height: 1.75rem;
  width: 1.75rem;
  vertical-align: middle;
}

/* Efeito de hover para todos os ícones de ação */
.add-list-button:hover .plus-icon-fill,
.edit-list-button:hover .edit-icon-fill,
.delete-list-button:hover .trash-icon-fill,
.plus-icon-fill:hover,
.check-icon-fill:hover,
.clock-icon-fill:hover,
.heart-icon-fill:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

/* --- Individual List Item (Container for list name and carousel) --- */

.list-name-display {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

/* Estilos para o ícone de edição (se for material symbols) */

.list-description .material-symbols-outlined:hover {
  color: var(--accent-red);
}

/* --- Carousel Controls (Arrows & Indicators) --- */

.carousel-controls .arrow img {
  width: 18px;
}

.arrow img {
  width: 1.5rem;
  height: 1.5rem;
}

.arrow[style*="display: none"],
.indicators[style*="display: none"] {
  opacity: 0;
  pointer-events: none;
}

/* --- Films Carousel --- */

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

.film-on-list:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Animação para os itens do carrossel ao serem adicionados */
.film-on-list--animated {
  opacity: 0;
  transform: translateY(20px);
  animation: slideInUp 0.4s forwards ease-out;
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Botão de remover filme individual */
.remove-movie-from-list-button {
  position: absolute;
  display: none;
  top: 0px;
  right: 0px;
  background-color: rgba(var(--button-red-rgb)); /* Usando RGBA com variável */
  border: none;
  border-bottom-left-radius: 8px;
  border-top-right-radius: 6px;
  padding: 0.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.film-on-list:hover .remove-movie-from-list-button {
  opacity: 1;
  display: none;
}

.remove-movie-from-list-button img {
  width: 1rem;
  height: 1rem;
  filter: brightness(0) invert(1);
}

/* --- Timestamp & Rating Styles --- */
.rating {
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  font-size: 0.7rem;
  background: var(--medium-dark-bg);
  color: var(--text-light);
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  gap: 0.3rem;
  flex-shrink: 0;
}

.rating-list-value,
.duration-value {
  font-size: 0.7rem;
  font-weight: bold;
  color: var(--text-light);
}

.open-serie-match-description h3 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text-light);
}

.open-serie-match-button:hover {
  background-color: var(--accent-red);
}

/* --- Modal Styles (Main List Modal) --- */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: var(--medium-dark-bg); /* Usando variável */
  margin: auto;
  padding: 30px;
  border: 1px solid var(--text-dark); /* Usando variável */
  border-radius: 10px;
  width: 80%;
  max-width: 600px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  position: relative;
  animation: fadeIn 0.3s ease-out;

  display: flex;
  flex-direction: column;
  gap: 15px;
  color: var(--text-light);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.close-button {
  color: var(--text-dark); /* Usando variável */
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-button:hover,
.close-button:focus {
  color: var(--text-light); /* Usando variável */
}

.modal-content label {
  font-size: 0.95rem;
  color: var(--text-medium); /* Usando variável */
  margin-bottom: -5px;
}

.modal-content input[type="text"] {
  width: calc(100% - 20px);
  padding: 10px;
  border: 1px solid var(--border-color); /* Usando variável */
  border-radius: 5px;
  background-color: #444; /* Mantido como não variável, se não houver no :root */
  color: var(--text-light); /* Usando variável */
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.modal-content input[type="text"]:focus {
  border-color: var(--primary-red); /* Usando variável */
}

.modal-content button {
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  background-color: var(--button-red); /* Usando variável */
  color: white;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.modal-content button:hover {
  background-color: var(--button-red-hover); /* Usando variável */
}

.modal-content .search-input-container {
  display: flex;
  gap: 10px;
}

.modal-content .search-input-container input {
  flex-grow: 1;
}

/* Estilos para a área de resultados da pesquisa */
.search-results-dropdown {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--border-color); /* Usando variável */
  border-radius: 5px;
  background-color: var(--light-dark-bg); /* Usando variável */
  padding: 5px 0;
  margin-top: -10px;
}

.search-result-item {
  display: flex;
  align-items: center;
  padding: 8px 15px;
  gap: 10px;
  border-bottom: 1px solid #444; /* Mantido, se não houver variável específica */
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-result-item:hover {
  background-color: #3a3a3a; /* Mantido, se não houver variável específica */
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item .search-result-poster {
  width: 40px;
  height: 60px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
}

.search-result-item .search-result-title {
  flex-grow: 1;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-item .add-to-modal-list-btn {
  background-color: var(--button-green); /* Usando variável */
  padding: 5px 10px;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.search-result-item .add-to-modal-list-btn:hover {
  background-color: var(--button-green-hover); /* Usando variável */
}

.search-result-item .add-to-modal-list-btn.added {
  background-color: #6c757d; /* Mantido, se não houver variável específica */
  cursor: not-allowed;
  opacity: 0.7;
}

/* Estilos para a lista de filmes selecionados */
.modal-selected-movies h3 {
  margin-bottom: 5px;
  font-size: 1.1rem;
  color: var(--text-light); /* Usando variável */
}

#selectedMoviesList {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 250px;
  overflow-y: auto;
  border: 1px solid var(--border-color); /* Usando variável */
  border-radius: 5px;
  background-color: var(--light-dark-bg); /* Usando variável */
}

#noMoviesSelectedText {
  color: var(--text-medium); /* Usando variável */
  text-align: center;
  padding: 10px;
}

.selected-movie-item {
  display: flex;
  align-items: center;
  padding: 8px 15px;
  gap: 10px;
  border-bottom: 1px solid #444; /* Mantido, se não houver variável específica */
}

.selected-movie-item:last-child {
  border-bottom: none;
}

.selected-movie-item .selected-movie-poster {
  width: 40px;
  height: 60px;
  object-fit: cover;
  border-radius: 3px;
}

.selected-movie-item .remove-from-modal-list-btn {
  background-color: var(--button-red); /* Usando variável */
  padding: 5px 10px;
  font-size: 0.85rem;
  margin-left: auto;
}

.selected-movie-item .remove-from-modal-list-btn:hover {
  background-color: var(--button-red-hover); /* Usando variável */
}

.error-message {
  color: var(--error-color); /* Usando variável */
  font-size: 0.85rem;
  margin-top: -10px;
  margin-bottom: 5px;
}

/* Media Queries para responsividade do modal */
@media (max-width: 768px) {
  .modal-content {
    width: 90%;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .modal-content {
    width: 95%;
    padding: 15px;
  }
  .modal-content label {
    font-size: 0.9rem;
  }
  .search-input-container {
    flex-direction: column;
  }
  .modal-content input[type="text"],
  .modal-content button {
    width: 100%;
  }
  .search-result-item .search-result-title,
  .selected-movie-item span {
    font-size: 0.85rem;
  }
}
