/* ============================================
   RESET E ESTILOS BASE
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: #121212;
  color: #fff;
  line-height: 1.4;
}

html {
  overflow-y: scroll;
}

/* ============================================
   HEADER E NAVEGAÇÃO
   ============================================ */

header {
  background-color: #1a1a1a;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #2c2c2c;
  position: sticky;
  top: 0;
  z-index: 100;
}

header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #e50914;
  letter-spacing: -0.5px;
}

header h1 a,
header h1-link {
  text-decoration: none;
  color: inherit;
}

header h1 a:visited,
header h1-link:visited {
  color: inherit;
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: #e50914;
}

.search-toggle-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}

.search-toggle-btn:hover {
  background: rgba(229, 9, 20, 0.15);
  color: #e50914;
}

/* ========== Cookie Consent Banner ========== */

#cookie-consent-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 420px;
  width: calc(100% - 40px);
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  z-index: 9999;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  transition: all 0.3s ease;
}

.cookie-consent-content {
  padding: 1.2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-consent-content p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #e0e0e0;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 8px 20px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: inherit;
}

.cookie-btn.accept {
  background: #e50914;
  color: white;
  box-shadow: 0 2px 4px rgba(229, 9, 20, 0.3);
}

.cookie-btn.accept:hover {
  background: #ff0a1f;
  transform: scale(1.02);
}

.cookie-btn.reject {
  background: #2a2a2a;
  color: #ccc;
  border: 1px solid #444;
}

.cookie-btn.reject:hover {
  background: #3a3a3a;
  color: white;
  border-color: #555;
}

/* ========== BARRA DE PESQUISA RESPONSIVA ========== */

.search-bar {
  display: none;
  align-items: center;
  flex: 1;
  max-width: 300px;
  margin-left: auto;
}

.search-bar.active {
  display: flex;
}

.search-bar input[type="search"] {
  width: 0;
  opacity: 0;
  transition: width 0.2s ease, opacity 0.2s ease;
  background: #171717;
  border: 1px solid #444;
  color: #fff;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  outline: none;
}

.search-bar.active input[type="search"] {
  width: 100%;
  opacity: 1;
}

/* ========== RESULTADOS DE PESQUISA ========== */

.search-results {
  margin: 1rem 2rem;
  padding: 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid #2c2c2c;
  border-radius: 12px;
}

.search-results.active {
  display: block;
}

.search-results-header {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}

.search-card {
  background-color: #1f1f1f;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.search-card:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 12px rgba(0,0,0,0.4);
}

.search-card img {
  aspect-ratio: 2 / 3;
  width: 100%;
  height: auto;
  -o-object-fit: cover;
     object-fit: cover;
}

.search-card a {
  text-decoration: none;
  color: inherit;
}

.search-card .card-info {
  padding: 0.75rem;
}

.search-card .card-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-card .card-info p {
  font-size: 0.85rem;
  color: #aaa;
  margin-top: 0.25rem;
}

.search-card .search-placeholder {
  aspect-ratio: 2 / 3;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 2rem;
}

.search-card.selected {
  outline: 2px solid #e50914;
  outline-offset: -2px;
  transform: scale(1.02);
}

.search-results-loading,
.search-results-error,
.search-results-empty {
  text-align: center;
  padding: 2rem;
  color: #aaa;
  font-size: 0.95rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-right: auto;
}

.nav-and-auth {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.back-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: color 0.2s;
}

.back-button:hover {
  color: #e50914;
}

.back-icon {
  width: 28px;
  height: 28px;
  stroke: currentcolor;
  fill: none;
}

.user-area {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-dropdown {
  position: relative;
  display: inline-block;
}

.user-avatar {
  background-color: #4285F4;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #1e1e1e;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 4px;
  padding: 8px 0;
}

.dropdown-content span {
  display: block;
  padding: 8px 16px;
  color: #fff;
  border-bottom: 1px solid #333;
}

.dropdown-content button {
  background: none;
  border: none;
  color: #fff;
  padding: 8px 16px;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.dropdown-content button:hover {
  background-color: #333;
}

.user-dropdown:hover .dropdown-content {
  display: block;
}

.login-button {
  background-color: #e50914;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
}

.login-button:hover {
  background-color: #b20710;
}

.dropdown-content .dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 16px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  text-align: left;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.dropdown-content .dropdown-item:hover {
  background-color: #333;
}

.dropdown-content .dropdown-item svg {
  flex-shrink: 0;
}

/* ============================================
   CATÁLOGO (GRADE DE CARDS)
   ============================================ */

main {
  max-width: 1400px;
  margin: 1rem auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
}

.catalog-filter {
  background: #1a1a1a;
  border: 1px solid #2c2c2c;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  align-self: flex-end;
}

.catalog-filter span {
  font-size: 0.95rem;
  font-weight: 600;
  color: #b3b3b3;
}

.catalog-filter select {
  background: #2c2c2c;
  border: 1px solid #444;
  border-radius: 6px;
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.catalog-filter select:focus {
  border-color: #e50914;
}

.catalog-filter label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #b3b3b3;
  margin-right: 0.5rem;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
  row-gap: 3rem;
  position: relative;
}

.toggle-filters-btn {
  display: none;
  /* escondido em desktop */
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 0.5rem;
  background: #2a2a2a;
  border: 1px solid #444;
  color: #fff;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
}

.toggle-filters-btn:hover {
  background: #3a3a3a;
}

/* ============================================
   CATALOG FILTER – RESPONSIVO
   ============================================ */

@media (max-width: 768px) {
  .catalog-filter {
    display: none;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding: 0.75rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    justify-content: center;
    margin-bottom: 1rem;
  }

  .catalog-filter.show {
    display: flex;
    /* abre o filtro */
  }

  .catalog-filter span {
    width: 100%;
    text-align: center;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    color: #b3b3b3;
  }

  .catalog-filter label {
    width: 100%;
    text-align: center;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    color: #b3b3b3;
    margin-right: 0;
  }

  .catalog-filter select {
    flex: 1 1 30%;
    min-width: 110px;
    max-width: 180px;
    background: #2a2a2a;
    border: 1px solid #444;
    color: #fff;
    font-size: 0.8rem;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23aaa' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    padding-right: 1.5rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .catalog-filter select:focus {
    border-color: #e50914;
    outline: none;
  }

  .toggle-filters-btn {
    display: block;
  }

  /* Ajuste extra para smartphones muito estreitos */

  @media (max-width: 420px) {
    .catalog-filter select {
      flex: 1 1 45%;
      font-size: 0.75rem;
    }
  }
}

/* ===== NOVAS REGRAS PARA COMPORTAMENTO DOS CARDS ===== */

/* Define o card como container de consulta */

.movie-card {
  container-type: inline-size;
  position: relative;
  background-color: #1f1f1f;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.movie-card:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 12px rgba(0,0,0,0.4);
}

.movie-card img {
  aspect-ratio: 2 / 3;
  width: 100%;
  height: auto;
  -o-object-fit: cover;
     object-fit: cover;
}

.movie-card a,
.movie-card-link {
  display: block;
  width: 100%;
  height: 100%;
}

.movie-card a:visited,
.movie-card-link:visited {
  color: inherit;
}

.card-info {
  padding: 0.75rem;
  width: 100%;
  box-sizing: border-box;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.rank-badge {
  display: inline-block;
  background-color: #1e6df2;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
  font-family: monospace;
  white-space: nowrap;
}

.card-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.card-info p {
  font-size: 0.85rem;
  color: #aaa;
  margin-top: 0.25rem;
}

.movie-card-link,
.movie-card-link * {
  text-decoration: none !important;
  color: inherit !important;
}

.movie-card-link .card-info {
  padding: 0.75rem;
}

/* Estilo do runtime */

.movie-runtime {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.9rem;
  position: relative;
}

/* Separador "|" entre runtime e rating (apenas se ambos existirem) */

.movie-runtime:not(:only-child)::after {
  content: "|";
  margin-left: 0.6rem;
  background: none;
  padding: 0;
  color: #ddd;
}

/* Estilo do rating compacto (IMDb) */

.imdb-rating-compact {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.detail-meta .imdb-logo {
  background: #f5c518 !important;
  color: #000 !important;
  font-weight: bold;
  padding: 1px 4px;
  border-radius: 4px;
  font-size: 0.65rem;
  line-height: 1;
}

.detail-meta:has(.movie-runtime) .imdb-rating-compact {
  margin-left: auto;
}

/* Container query: quando o card for estreito (runtime + rating não cabem), esconde runtime e alinha rating à direita */

@container (max-width: 170px) {
  .movie-runtime,
    .movie-runtime::after {
    display: none;
  }

  .detail-meta {
    justify-content: flex-end;
  }
}

/* ===== FIM DAS REGRAS DO CARD ===== */

.watchlist-btn {
  position: absolute;
  top: 0;
  left: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s, transform 0.1s;
  z-index: 2;
}

.watchlist-btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
  display: block;
}

.watchlist-btn:hover {
  color: rgba(255, 255, 255, 1);
  transform: scale(1.05);
}

.watchlist-btn.saved {
  color: #ffc107;
}

.watchlist-btn.saved:hover {
  color: #ffca2c;
}

/* ============================================
   PÁGINA DE DETALHES
   ============================================ */

.detail-container {
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  position: relative;
  min-height: 100vh;
}

.detail-overlay {
  background: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.4) 100%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  padding: 3rem 2rem;
  min-height: 100vh;
}

main:has(#detail-bg) {
  max-width: none;
  margin: 0;
  padding: 0;
}

.detail-poster {
  flex: 0 0 300px;
}

.detail-poster img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.detail-info {
  flex: 2;
  min-width: 260px;
  max-width: 600px;
}

.detail-info h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.detail-info h1 span {
  font-size: 1.5rem;
  font-weight: 400;
  color: #ccc;
}

/* Estilo dos metadados de detalhes (mantido como antes) */

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  width: 100%;
}

.imdb-rating-compact {
  margin-left: auto;
}

.detail-meta span {
  background-color: rgba(255,255,255,0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

.detail-description {
  font-size: 1rem;
  line-height: 1.5;
  margin: 1rem 0;
  color: #e0e0e0;
}

.detail-cast, .detail-director, .detail-country, .detail-awards {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.detail-cast strong, .detail-director strong, .detail-country strong, .detail-awards strong {
  color: #e50914;
  margin-right: 0.5rem;
}

.detail-watch-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.watch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, #e50914, #b20710);
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3), 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  letter-spacing: 0.5px;
}

.watch-button:hover {
  transform: scale(1.02);
  background: linear-gradient(135deg, #ff1a24, #e50914);
  box-shadow: 0 8px 20px rgba(229, 9, 20, 0.4);
  border-color: rgba(255, 255, 255, 0.4);
}

.watch-button:active {
  transform: scale(0.98);
}

.watch-icon {
  width: 28px;
  height: 28px;
  -o-object-fit: contain;
     object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
  transition: transform 0.2s ease;
}

.watch-button:hover .watch-icon {
  transform: rotate(5deg);
}

.trailer-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 6px 12px;
  background-color: #2a2a2a;
  color: #ccc;
  border: 1px solid transparent;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: normal;
  cursor: pointer;
  transition: all 0.2s ease;
}

.trailer-button:hover {
  background-color: #3a3a3a;
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}

.detail-logo {
  display: block;
  max-width: 100%;
  max-height: 9rem;
  width: auto;
  height: auto;
  margin: 0 auto 1rem auto;
  -o-object-fit: contain;
     object-fit: contain;
}

.detail-poster-img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  margin: 0 auto 1rem auto;
  -o-object-fit: contain;
     object-fit: contain;
  position: relative;
}

/* ============================================
   PROVEDORES DE STREAMING NA PÁGINA DE DETALHES
   ============================================ */

.watch-providers {
  display: flex;
  flex-wrap: wrap;
  min-height: 80px;
  align-items: center;
  gap: 12px;
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid #2c2c2c;
  border-radius: 12px;
}

/* Texto "Disponível em:" */

.watch-providers-label {
  font-weight: 600;
  color: #b3b3b3;
  margin-right: 4px;
  white-space: nowrap;
}

/* Logos */

.watch-providers img {
  height: 40px;
  width: auto;
  border-radius: 6px;
  transition: transform 0.15s ease;
  background: #1a1a1a;
  padding: 3px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.watch-providers img:hover {
  transform: scale(1.08);
}

/* Fallback textual quando não há logo */

.watch-providers .provider-name {
  background: #2a2a2a;
  color: #ccc;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Banner de cinema (filme em cartaz) */

.cinema-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-top: 1.5rem;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  transition: transform 0.2s ease;
}

.cinema-banner:hover {
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 215, 0, 0.6);
}

.cinema-banner svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  fill: #ffc107;
}

.cinema-banner .banner-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.cinema-banner .banner-text strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffc107;
  letter-spacing: 0.5px;
}

.cinema-banner .banner-text .sub {
  font-size: 0.75rem;
  color: #ccc;
}

/* ============================================
   MODAL DO TRAILER
   ============================================ */

.trailer-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  width: 80%;
  max-width: 800px;
  background-color: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
}

.modal-close:hover {
  color: #e50914;
}

#trailer-iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
}

/* ============================================
   MODAL DO WATCHHUB
   ============================================ */

.watchhub-modal {
  display: none;
  position: fixed;
  z-index: 1003;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
}

.watchhub-modal.show {
  display: flex;
}

.watchhub-modal-content {
  background-color: #1e1e1e;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  border: 1px solid #333;
  position: relative;
}

.watchhub-modal-close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  color: #aaa;
}

.watchhub-modal-close:hover {
  color: #e50914;
}

.stream-list {
  list-style: none;
  padding: 0;
}

.stream-list li {
  margin: 1rem 0;
}

.stream-btn {
  display: inline-block;
  background-color: #e50914;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.2s;
}

.stream-btn:hover {
  background-color: #ff0a1f;
}

/* ============================================
   MENU LATERAL DE EPISÓDIOS
   ============================================ */

.episodes-button {
  position: fixed;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  bottom: 30px;
  right: 30px;
  background-color: #e50914;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  transition: background 0.2s;
}

.episodes-button:hover {
  background-color: #ff0a1f;
}

.episodes-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  min-height: 200px;
  height: 100%;
  background-color: #1e1e1e;
  box-shadow: -2px 0 10px rgba(0,0,0,0.5);
  z-index: 1002;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.episodes-sidebar.open {
  right: 0;
}

.sidebar-header {
  padding: 1rem;
  background-color: #2a2a2a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #333;
  position: sticky;
  top: 0;
  z-index: 10;
}

.close-sidebar-btn {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #fff;
}

.episodes-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.episodes-fixed-header {
  background-color: #1e1e1e;
  padding: 1rem;
  border-bottom: 1px solid #333;
  position: sticky;
  top: 0;
  z-index: 5;
}

.season-select {
  width: 100%;
  padding: 8px;
  background-color: #2a2a2a;
  color: #fff;
  border: 1px solid #444;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

.season-select:hover {
  background-color: #333;
}

.episodes-scrollable {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.episode-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.episode-list li {
  padding: 0.8rem;
  border-bottom: 1px solid #333;
  cursor: pointer;
}

.episode-list li:hover {
  background-color: #2c2c2c;
}

.episode-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.episode-check-wrapper {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
  /* alinha o botão à direita, se desejar */
}

.ep-thumb {
  width: 80px;
  height: auto;
  border-radius: 4px;
  -o-object-fit: cover;
     object-fit: cover;
}

.ep-placeholder {
  width: 80px;
  height: 112px;
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #aaa;
  text-align: center;
  box-shadow: inset 0 0 0 1px #333;
  padding: 8px;
  line-height: 1.2;
  gap: 4px;
}

.ep-placeholder svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.ep-info {
  flex: 1;
}

.ep-info strong {
  display: block;
  margin-bottom: 4px;
}

.ep-info small {
  color: #aaa;
}

.loading, .error {
  text-align: center;
  padding: 2rem;
  color: #aaa;
}

.watched-check {
  background: rgba(255, 193, 7, 0.12);
  border: 1px solid rgba(255, 193, 7, 0.25);
  border-radius: 999px;
  cursor: pointer;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #ffc107;
  font-size: 0.82rem;
  font-weight: 600;
  transition: transform 0.1s, background-color 0.2s, border-color 0.2s;
}

.watched-check svg {
  width: 18px;
  height: 18px;
  display: block;
}

.watched-check .watched-text {
  white-space: nowrap;
}

.watched-check.watched {
  background: rgba(76, 175, 80, 0.16);
  border-color: rgba(76, 175, 80, 0.3);
  color: #4caf50;
}

.watched-check:hover {
  transform: scale(1.05);
}

.season-progress-fixed {
  margin-top: 0.5rem;
  padding: 0 0.5rem;
}

.season-progress-text {
  font-size: 0.8rem;
  color: #aaa;
  margin-bottom: 0.25rem;
}

.progress-bar-bg {
  background-color: #333;
  border-radius: 4px;
  height: 6px;
  overflow: hidden;
}

.progress-bar-fill {
  background-color: #e50914;
  height: 100%;
  width: 0%;
  transition: width 0.2s;
}

/* ============================================
   ÍCONE DE FAVORITOS
   ============================================ */

.favorites-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: color 0.2s;
  padding: 0;
  margin: 0 0.4rem 0 0;
}

.favorites-btn svg {
  width: 24px;
  height: 24px;
}

.favorites-btn:hover {
  color: #e50914;
}

/* ============================================
   ÍCONE DE SINO (NOTIFICAÇÕES)
   ============================================ */

.notifications-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: color 0.2s;
  padding: 0;
  margin: 0;
}

.notifications-btn svg {
  width: 24px;
  height: 24px;
}

.notifications-btn:hover {
  color: #e50914;
}

.bell-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#mobile-notifications-btn {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: #e50914;
  color: white;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
  z-index: 10;
  pointer-events: none;
  /* evita que o badge capture cliques */
}

/* Sidebar de notificações */

.notifications-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100%;
  background-color: #1e1e1e;
  box-shadow: -2px 0 10px rgba(0,0,0,0.5);
  z-index: 1002;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.notifications-sidebar.open {
  right: 0;
}

/* Ajuste para mobile */

@media (max-width: 768px) {
  .notifications-sidebar {
    width: 100%;
    right: -100%;
    height: auto;
    top: 0;
    bottom: 72px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .notifications-sidebar.open {
    right: 0;
  }

  /* Aumenta o toque e melhora a leitura dos itens */

  .notification-item {
    padding: 1rem;
  }

  .notification-item strong {
    font-size: 0.95rem;
  }

  .notification-item small {
    font-size: 0.75rem;
  }
}

.sidebar-header {
  padding: 1rem;
  background-color: #2a2a2a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #333;
  position: sticky;
  top: 0;
  z-index: 10;
}

.sidebar-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.close-sidebar-btn {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #fff;
}

.notifications-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.notification-item {
  padding: 0.8rem;
  border-bottom: 1px solid #333;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.notification-item:hover {
  background-color: #2c2c2c;
}

.notification-item img {
  width: 80px;
  height: auto;
  border-radius: 4px;
  -o-object-fit: cover;
     object-fit: cover;
}

.notification-item p {
  margin: 0;
}

/* ============================================
   RESPONSIVIDADE (CORRIGIDA)
   ============================================ */

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem;
  }

  .header-left {
    justify-content: flex-start;
    margin-right: 0;
  }

  .back-icon {
    width: 24px;
    height: 24px;
  }

  .nav-and-auth {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .search-bar {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-top: 0.5rem;
    order: 3;
  }

  .search-bar.active {
    width: 100%;
  }

  .search-bar input[type="search"] {
    width: 100%;
    font-size: 0.9rem;
  }

  .search-toggle-btn {
    order: 1;
  }

  nav {
    flex: none;
    flex-wrap: nowrap;
    gap: 0.75rem;
    font-size: 0.85rem;
  }

  .user-area {
    margin-left: 0;
    justify-content: flex-end;
  }

  main {
    padding: 0 1rem;
  }

  .catalog-filter {
    align-self: stretch;
    justify-content: center;
  }

  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
  }

  .search-results-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
  }

  .detail-overlay {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
  }

  .detail-poster {
    flex: 0 0 auto;
    max-width: 250px;
  }

  .detail-info h1 {
    font-size: 1.8rem;
  }

  .episodes-button {
    bottom: 90px;
  }

  .detail-meta {
    justify-content: center;
    font-size: 0.6rem;
  }

  /* Ajuste opcional para cards no mobile */

  .movie-card {
    font-size: 0.65rem;
  }

  .episodes-sidebar {
    width: 100%;
    right: -100%;
  }

  .ep-thumb, .ep-placeholder {
    width: 60px;
    height: 84px;
  }

  .watch-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    gap: 0.5rem;
  }

  .watch-icon {
    width: 20px;
    height: 20px;
  }

  .modal-content, .watchhub-modal-content {
    width: 95%;
  }

  .watch-providers {
    justify-content: center;
    gap: 10px;
    padding: 0.6rem 0.8rem;
  }

  .watch-providers img {
    height: 32px;
  }

  /* Modais de listas */

  .list-selection-modal > .list-modal-content,
    .list-selection-modal > .lists-popup {
    width: 95vw;
    max-width: 400px;
    padding: 1.25rem;
    border-radius: 10px;
  }

  .list-selection-modal h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
  }

  .all-lists-item {
    padding: 10px 12px;
    margin-bottom: 8px;
  }

  .all-lists-item .list-name {
    font-size: 0.95rem;
    margin-bottom: 4px;
  }

  .all-lists-item .list-meta {
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.8rem;
  }

  .all-lists-item .list-meta span {
    white-space: normal;
    flex: 1 1 auto;
  }

  .all-lists-item .delete-list-btn {
    padding: 4px 8px;
    font-size: 0.75rem;
    margin-left: auto;
  }

  .list-selection-modal li {
    padding: 8px 12px;
  }

  .list-option {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }

  .delete-list-btn {
    padding: 4px 8px;
    font-size: 0.8rem;
  }

  #new-list-btn {
    font-size: 0.9rem;
    padding: 0.5rem;
    margin-top: 4px;
  }

  /* Alinhamento à esquerda no mobile */

  .owner-info,
    .list-owner-info,
    .list-interactions {
    justify-content: flex-start !important;
  }

  /* Listas populares */

  .popular-list-block .list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .section-title {
    font-size: 1.4rem;
    margin: 1rem 0 1rem;
  }

  .carousel-card {
    width: 120px;
  }

  .carousel-button {
    font-size: 1.5rem;
    padding: 0.2rem 0.4rem;
  }

  .popular-lists-link {
    display: none;
  }

  /* Cookie Consent Banner */

  #cookie-consent-banner {
    bottom: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    width: auto;
    border-radius: 10px;
  }

  .cookie-consent-content {
    padding: 1rem;
    gap: 0.8rem;
  }

  .cookie-consent-content p {
    font-size: 0.8rem;
    text-align: center;
  }

  .cookie-buttons {
    justify-content: center;
  }

  .cookie-btn {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    font-size: 0.75rem;
  }

  .remove-from-list-btn {
    padding: 5px 12px;
    font-size: 0.7rem;
    gap: 4px;
  }

  .remove-from-list-btn svg {
    width: 14px;
    height: 14px;
  }

  /* Banner de cinema (filme em cartaz) */

  .cinema-banner {
    padding: 0.6rem 0.8rem;
    gap: 0.75rem;
  }

  .cinema-banner svg {
    width: 32px;
    height: 32px;
  }

  .cinema-banner .banner-text strong {
    font-size: 0.8rem;
  }

  .cinema-banner .banner-text .sub {
    font-size: 0.65rem;
  }
}

/* ============================================
   SCROLLBAR PERSONALIZADA
   ============================================ */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #e50914;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff0a1f;
}

/* ============================================
   MODAIS DE LISTAS (backdrop + conteúdo)
   ============================================ */

.list-selection-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2001;
  display: flex;
  align-items: center;
  justify-content: center;
}

.list-modal-content {
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 2rem;
  min-width: 350px;
  max-width: 90vw;
  color: #fff;
  max-height: 80vh;
  overflow-y: auto;
}

.list-selection-modal h3 {
  margin-top: 0;
}

.list-selection-modal ul {
  list-style: none;
  padding: 0;
}

.all-lists-item {
  background: #2a2a2a;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  border: 1px solid #3a3a3a;
}

.all-lists-item:hover {
  background: #3a3a3a;
  border-color: #e50914;
}

.all-lists-item .list-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: #fff;
}

.all-lists-item .list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #aaa;
}

.list-option,
#new-list-btn {
  background: #2a2a2a;
  border: none;
  color: #fff;
  padding: 0.5rem 1rem;
  width: 100%;
  text-align: left;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
}

.list-option:hover,
#new-list-btn:hover {
  background: #3a3a3a;
}

.delete-list-btn {
  background: #e50914;
  color: white;
  border: none;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.delete-list-btn:hover {
  background: #ff0a1f;
}

.delete-list-btn svg {
  vertical-align: middle;
  margin-right: 4px;
}

.movie-card.dragging {
  opacity: 0.5;
  border: 2px dashed #e50914;
}

/* Modal personalizado para alertas, confirmações e prompts */

.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-modal-content {
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 2rem;
  min-width: 300px;
  max-width: 90vw;
  color: #fff;
  text-align: center;
}

.custom-modal-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #fff;
}

.custom-modal-message {
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 1.5rem;
}

.custom-modal-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.custom-modal-btn {
  background: #2a2a2a;
  border: none;
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.custom-modal-btn:hover {
  background: #3a3a3a;
}

.custom-modal-btn.primary {
  background: #e50914;
  color: white;
}

.custom-modal-btn.primary:hover {
  background: #ff0a1f;
}

.custom-modal-input {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  background: #2a2a2a;
  border: 1px solid #444;
  color: #fff;
  border-radius: 4px;
  font-size: 0.95rem;
}

.custom-modal-input:focus {
  outline: none;
  border-color: #e50914;
}

/* ============================================
   PÁGINA DE LISTA INDIVIDUAL
   ============================================ */

.list-header {
  margin-bottom: 1.5rem;
  text-align: left;
}

.list-header h2 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.list-header .list-type {
  font-size: 0.95rem;
  color: #aaa;
  background: rgba(255,255,255,0.1);
  padding: 0.15rem 0.8rem;
  border-radius: 20px;
}

.remove-from-list-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #bbb;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  width: auto;
  margin-top: 0.5rem;
  letter-spacing: 0.3px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.remove-from-list-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform 0.2s ease;
}

.remove-from-list-btn:hover {
  background: #e50914;
  border-color: #e50914;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(229, 9, 20, 0.25);
}

.remove-from-list-btn:hover svg {
  transform: scale(1.05);
}

.remove-from-list-btn:active {
  transform: translateY(0);
  background: #b20710;
  box-shadow: none;
  transition: 0.05s;
}

.list-owner-info {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: #ccc;
  font-size: 0.95rem;
}

.list-owner-info .user-avatar {
  background-color: #4285F4;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.list-interactions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.like-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  transition: color 0.2s, transform 0.1s;
  padding: 4px;
}

.like-btn:hover {
  color: #e50914;
  transform: scale(1.2);
}

.like-btn.liked {
  color: #e50914;
}

#like-count {
  color: #aaa;
  font-size: 1rem;
}

/* ============================================
   CARROSSEL E LISTAS POPULARES
   ============================================ */

.popular-list-block {
  margin-bottom: 3rem;
  background: #1a1a1a;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}

.popular-list-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.5);
}

.popular-list-block .list-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1rem;
  margin-left: 2rem;
  text-align: left;
}

.popular-list-block .list-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: -0.3px;
}

.owner-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  color: #b3b3b3;
}

.owner-avatar,
.owner-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  border: 2px solid #e50914;
}

.owner-avatar-placeholder {
  background: #4285F4;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
}

.owner-name {
  font-weight: 600;
  color: #fff;
}

.item-count {
  font-size: 0.85rem;
  color: #808080;
  background: #2a2a2a;
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
}

.like-section {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.like-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #ccc;
  transition: color 0.2s, transform 0.15s;
  padding: 6px;
}

.like-btn:hover {
  color: #e50914;
  transform: scale(1.3);
}

.like-btn.liked {
  color: #e50914;
  animation: pulse 0.4s ease;
}

.like-count {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

@keyframes pulse {
  0%   {
    transform: scale(1);
  }

  50%  {
    transform: scale(1.5);
  }

  100% {
    transform: scale(1);
  }
}

.carousel {
  position: relative;
  display: flex;
  align-items: center;
  margin: 1rem 0;
  padding: 0 2rem;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 1.5rem;
  padding: 0.5rem 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

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

.carousel-card {
  flex: 0 0 auto;
  width: 160px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 12px;
  overflow: hidden;
  background: #1f1f1f;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.carousel-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.carousel-card img {
  aspect-ratio: 2 / 3;
  width: 100%;
  display: block;
  -o-object-fit: cover;
     object-fit: cover;
}

.carousel-card .card-info {
  padding: 0.75rem;
  background: none;
  text-align: left;
}

.carousel-card .card-info h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carousel-card .card-info p {
  font-size: 0.7rem;
  color: #aaa;
  margin-top: 0.2rem;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  border: none;
  color: white;
  font-size: 2rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-button.left  {
  left: -0.5rem;
}

.carousel-button.right {
  right: -0.5rem;
}

.carousel-button:hover {
  background: rgba(229,9,20,0.8);
  transform: translateY(-50%) scale(1.1);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin: 1rem 0 1rem;
  position: relative;
  padding-left: 1rem;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: #e50914;
  border-radius: 2px;
}

@media (min-width: 1400px) {
  .detail-info {
    max-width: 38%;
  }
}

@media (max-width: 1200px) and (min-width: 993px) {
  .detail-info {
    max-width: 55%;
  }
}

@media (max-width: 992px) {
  .detail-overlay {
    flex-direction: column;
    align-items: center;
  }

  #letterboxd-reviews-container {
    margin-left: 0;
  }
}

/* ========== CAST========== */

.cast-section {
  /* Fundo com gradiente similar ao detail-overlay para integração visual */
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.4) 100%);
  padding: 2rem;
  margin: 0;
  /* sem margem extra, pois já está dentro do container */
  border-radius: 0;
  /* opcional, se quiser cantos retos */
  box-sizing: border-box;
}

.cast-section .section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
  padding-left: 0.75rem;
  border-left: 4px solid #e50914;
  letter-spacing: -0.2px;
  text-transform: uppercase;
}

.cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1.2rem;
}

.cast-card {
  background: rgba(26, 26, 26, 0.8);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cast-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
  border-color: rgba(229, 9, 20, 0.3);
}

.cast-photo {
  width: 100%;
  aspect-ratio: 2 / 3;
  -o-object-fit: cover;
     object-fit: cover;
  background: #2a2a2a;
  transition: opacity 0.2s;
}

.cast-photo-placeholder {
  width: 100%;
  aspect-ratio: 2 / 3;
  background: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.cast-info {
  padding: 0.4rem 0.5rem 0.2rem;
  font-size: 0.75rem;
}

.cast-name {
  display: block;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.15rem;
}

.cast-character {
  display: block;
  color: #b3b3b3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsivo para mobile */

@media (max-width: 768px) {
  .cast-section {
    padding: 1.5rem 1rem;
  }

  .cast-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.8rem;
  }

  .cast-section .section-title {
    font-size: 1.1rem;
  }
}

/* ============================================
   PÁGINA DE PRIVACIDADE
   ============================================ */

.privacy-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  color: #ccc;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.4) 100%);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  border-radius: 16px;
  border: 1px solid #2c2c2c;
}

.privacy-container h1 {
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.3px;
}

.privacy-container h2 {
  font-size: 1.25rem;
  color: #ffffff;
  margin: 2rem 0 0.75rem;
  padding-left: 0.75rem;
  border-left: 3px solid #e50914;
}

.privacy-container p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #b3b3b3;
}

.privacy-container ul {
  list-style: disc inside;
  margin: 1rem 0;
  color: #b3b3b3;
}

.privacy-container li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* Responsivo */

@media (max-width: 768px) {
  .privacy-container {
    padding: 1.5rem 1rem;
  }
}

/* ============================================
   RODAPÉ GLOBAL
   ============================================ */

.site-footer {
  background: #0d0d0d;
  border-top: 1px solid #2c2c2c;
  padding: 2rem;
  margin-top: 3rem;
  font-size: 0.85rem;
  color: #b3b3b3;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.footer-section {
  flex: 1 1 200px;
  min-width: 160px;
}

.footer-section h4 {
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #b3b3b3;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: #e50914;
}

.footer-section select {
  background: #2a2a2a;
  border: 1px solid #444;
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  outline: none;
  cursor: pointer;
}

.copyright {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #808080;
  width: 100%;
  text-align: center;
  border-top: 1px solid #2c2c2c;
  padding-top: 1rem;
}

.footer-section-title {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  display: block;
  cursor: pointer;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 2rem 1rem;
    text-align: center;
  }

  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }

  .footer-section {
    min-width: 100%;
    flex: 1 1 100%;
  }

  .footer-section h4 {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
  }

  .footer-section ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
  }

  .footer-section li {
    margin-bottom: 0.25rem;
  }

  .footer-section select {
    width: 100%;
    max-width: 280px;
    margin-top: 0.5rem;
    text-align: center;
  }

  .copyright {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.5;
  }
}

/* ============================================
   PÁGINA SOBRE (about)
   ============================================ */

.about-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  color: #ccc;
  background: rgba(18, 18, 18, 0.8);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  border-radius: 16px;
  border: 1px solid #2c2c2c;
}

.about-container h1 {
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.3px;
}

.about-container h2 {
  font-size: 1.25rem;
  color: #ffffff;
  margin: 2rem 0 0.75rem;
  padding-left: 0.75rem;
  border-left: 3px solid #e50914;
}

.about-container p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #b3b3b3;
}

.tmdb-attribution {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #2c2c2c;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.tmdb-attribution img {
  width: 80px;
  height: auto;
  flex-shrink: 0;
}

.tmdb-attribution p {
  margin: 0;
  font-size: 0.85rem;
  color: #888;
}

/* Responsivo */

@media (max-width: 768px) {
  .about-container {
    padding: 1.5rem 1rem;
  }

  .tmdb-attribution {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================
   BARRA DE NAVEGAÇÃO INFERIOR (MOBILE 2026)
   ============================================ */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: #000000;
  border-top: 1px solid #2c2c2c;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: env(safe-area-inset-bottom, 8px);
}

.bottom-nav ul {
  display: flex;
  justify-content: space-around;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 500px;
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #bbbbbb;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 16px;
  transition: color 0.2s, background 0.2s;
  min-width: 64px;
}

.nav-link svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.nav-link--active {
  color: #ffffff;
  background: #e50914;
}

.nav-link:hover {
  color: #ffffff;
}

/* Compensa a altura da barra no conteúdo principal */

body:has(.bottom-nav) main {
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 8px) + 1rem);
}

/* Oculta a barra inferior em telas maiores (desktop) */

@media (min-width: 769px) {
  .bottom-nav {
    display: none !important;
  }

  body:has(.bottom-nav) main {
    padding-bottom: 0;
  }
}

/* Oculta nav e área do usuário no mobile, mantendo logo e busca */

@media (max-width: 768px) {
  .nav-and-auth nav,
    .user-area {
    display: none !important;
  }

  .header-left {
    flex: 1;
  }
}

/* ---------- Bottom Sheet (menu de perfil mobile 2026) ---------- */

.bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.bottom-sheet-content {
  background: #1e1e1e;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 500px;
  padding: 1.5rem 1.5rem 2rem;
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.bottom-sheet-handle {
  width: 40px;
  height: 4px;
  background: #555;
  border-radius: 2px;
  margin: 0 auto 1rem;
}

.bottom-sheet-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  text-align: center;
}

.bottom-sheet-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bottom-sheet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #2a2a2a;
  border: none;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  width: 100%;
  text-align: left;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}

.bottom-sheet-item:hover {
  background: #3a3a3a;
}

.bottom-sheet-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Reset para botões na barra inferior (Notificação / Perfil) */

button.nav-link {
  background: none;
  border: none;
  color: #bbbbbb;
  /* mesmo tom dos links inativos */
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 16px;
  transition: color 0.2s, background 0.2s;
  min-width: 64px;
  font-family: inherit;
  /* importante para manter a fonte do site */
}

button.nav-link:hover {
  color: #ffffff;
}

/* ============================================
   SEÇÃO DE REVIEWS – LAYOUT ORIGINAL + CORES 2026
   ============================================ */

/* Seção principal */

.reviews-section {
  margin-top: 2rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  padding: 3rem;
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  transition: background-color 0.2s ease;
}

.reviews-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  padding-left: 0.75rem;
  border-left: 3px solid #e50914;
  letter-spacing: -0.2px;
}

/* Grid com exatamente 2 colunas – os cards quebram linha automaticamente */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* máximo 2 reviews por linha */
  gap: 1rem;
}

.review-card {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 1rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  border: 1px solid #2c2c2c;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 260px;
}

.review-card:hover,
.review-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  border-color: #e50914;
}

/* Cabeçalho: avatar + autor à esquerda, likes à direita – alinhamento centralizado */

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
}

.review-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #3a3a3a;
  -o-object-fit: cover;
     object-fit: cover;
  background: #252525;
  flex-shrink: 0;
  display: block;
}

.review-author-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.review-author {
  font-size: 0.85rem;
  font-weight: 700;
  color: #e0e0e0;
  margin: 0;
  line-height: 1.2;
  display: block;
}

.review-username {
  font-size: 0.7rem;
  color: #888;
  margin: 0;
  display: block;
}

/* Badges (likes) – lado direito */

.review-meta-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-likes {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
}

.likes-icon {
  fill: #e50914;
  width: 14px;
  height: 14px;
}

.likes-count {
  line-height: 1;
}

/* Conteúdo do texto */

.review-content {
  flex: 1;
  margin-bottom: 0.75rem;
}

.review-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #bcbcbc;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Link “Ler mais” – alinhado à direita no final do card */

.review-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.review-link {
  font-size: 0.75rem;
  font-weight: 500;
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.review-link:hover,
.review-link:focus-visible {
  color: #e50914;
  text-decoration: none;
  outline: none;
}

.no-reviews {
  padding: 1rem;
  text-align: center;
  color: #aaa;
  font-size: 0.85rem;
  background: #1a1a1a;
  border-radius: 12px;
  border: 1px solid #2c2c2c;
}

/* ============================================
   CONTAINER DE REVIEWS NA PÁGINA DE DETALHES
   ============================================ */

#letterboxd-reviews-container {
  flex: 1 1 300px;
  min-width: 260px;
  align-self: flex-start;
  margin-top: 0;
}

/* Margem lateral em telas a partir de 1025px */

@media (min-width: 1025px) {
  #letterboxd-reviews-container {
    margin-left: 1rem;
  }
}

/* Tablet empilhado: força largura total e remove margens */

@media (max-width: 1024px) {
  #letterboxd-reviews-container {
    flex-basis: 100%;
    max-width: none;
    margin-top: 2rem;
    margin-left: 0;
  }
}

/* Desktop grande: limita largura máxima para não ocupar tudo */

@media (min-width: 1200px) {
  #letterboxd-reviews-container {
    max-width: 45%;
    margin-left: 2rem;
  }
}

/* nenhuma alteração no grid-template-columns – já é fixo 2 colunas */

/* Telas muito grandes */

@media (min-width: 1400px) {
  #letterboxd-reviews-container {
    max-width: 40%;
  }
}

/* ===== RESPONSIVIDADE DOS COMPONENTES INTERNOS ===== */

/* Mobile: uma única coluna */

@media (max-width: 768px) {
  .reviews-section {
    padding: 0.8rem;
    margin-top: 1.2rem;
  }

  .reviews-title {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
    /* empilha tudo */
    gap: 0.8rem;
  }

  .review-card {
    padding: 0.8rem;
  }

  .review-avatar {
    width: 32px;
    height: 32px;
  }

  .review-author {
    font-size: 0.8rem;
  }

  .review-username {
    font-size: 0.65rem;
  }

  .review-likes {
    font-size: 0.7rem;
    padding: 2px 8px;
  }

  .review-text {
    font-size: 0.8rem;
    -webkit-line-clamp: 3;
  }

  .review-footer {
    justify-content: flex-end;
  }
}

/* ============================================
   INDICADOR DE CARREGAMENTO HTMX
   ============================================ */

.reviews-loading-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  margin-top: 1rem;
}

.htmx-indicator {
  opacity: 0;
  transition: opacity 200ms ease-in;
}

.htmx-request .htmx-indicator {
  opacity: 1;
}

/* ============================================
   SPOILER
   ============================================ */

.spoiler-wrapper {
  position: relative;
}

.spoiler-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.spoiler-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
}

.spoiler-toggle-btn:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
}

.spoiler-icon {
  flex-shrink: 0;
}

.spoiler-text {
  filter: blur(8px);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  transition: filter 0.3s ease;
}

/* Estado revelado – remove blur e esconde overlay */

.spoiler-wrapper.revealed .spoiler-overlay {
  opacity: 0;
  pointer-events: none;
}

.spoiler-wrapper.revealed .spoiler-text {
  filter: none;
  -webkit-user-select: auto;
     -moz-user-select: auto;
          user-select: auto;
}

/* ============================================
   SPINNER DE CARREGAMENTO
   ============================================ */

.spinner {
  animation: rotate 2s linear infinite;
  width: 40px;
  height: 40px;
}

.spinner .path {
  stroke: #e50914;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }

  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: #aaa;
  font-size: 0.9rem;
}

*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

/* ! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com */

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box;
  /* 1 */
  border-width: 0;
  /* 2 */
  border-style: solid;
  /* 2 */
  border-color: #e5e7eb;
  /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
  -moz-tab-size: 4;
  /* 3 */
  -o-tab-size: 4;
     tab-size: 4;
  /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  /* 4 */
  font-feature-settings: normal;
  /* 5 */
  font-variation-settings: normal;
  /* 6 */
  -webkit-tap-highlight-color: transparent;
  /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0;
  /* 1 */
  line-height: inherit;
  /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0;
  /* 1 */
  color: inherit;
  /* 2 */
  border-top-width: 1px;
  /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  /* 1 */
  font-feature-settings: normal;
  /* 2 */
  font-variation-settings: normal;
  /* 3 */
  font-size: 1em;
  /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0;
  /* 1 */
  border-color: inherit;
  /* 2 */
  border-collapse: collapse;
  /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-feature-settings: inherit;
  /* 1 */
  font-variation-settings: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  font-weight: inherit;
  /* 1 */
  line-height: inherit;
  /* 1 */
  letter-spacing: inherit;
  /* 1 */
  color: inherit;
  /* 1 */
  margin: 0;
  /* 2 */
  padding: 0;
  /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button;
  /* 1 */
  background-color: transparent;
  /* 2 */
  background-image: none;
  /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  /* 1 */
  vertical-align: middle;
  /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}

.container {
  width: 100%;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1536px) {
  .container {
    max-width: 1536px;
  }
}

.static {
  position: static;
}

.block {
  display: block;
}

.flex {
  display: flex;
}

.h-40 {
  height: 10rem;
}

.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}