#filter-container {
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

#filter-container.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    display: none; /* Para garantir que não ocupe espaço */
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* Centralizado: Loader com animação girando */
.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

/* Estilo do spinner */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Aplica cor branca a todos os elementos SVG */
svg {

  stroke: var(--text-genero1);
}
/* Ícone SVG verde no topo direito */
/* Estilo padrão para celular */
.movie-card .loader svg {
  position: absolute;
  top: -75px;
  right: -62px;
  background: #12cd22;
  border-bottom-left-radius: 10px;
  z-index: 11;
}

/* Estilo para PC (largura mínima de 768px) */
@media (min-width: 768px) {
  .movie-card .loader svg {
        top: -89px;
        right: -60px;
  }
}



/* === Variáveis Globais === */
:root {
  /* Cores Padrão (Escuro) */
  --background: #0a0a0a;
  --text-color: white;
  --fundo-ios: linear-gradient(145deg, #1e1e1e, #252525);
  --text-genero: #141414;
  --text-genero1: #fff;
  --text-maide: #ff3c00;
  --card-background: rgba(255, 255, 255, 0.05);
  --sidebar-background: rgba(28, 28, 30, 0.8);
  --header-background: rgba(28, 28, 30, 0.85);
  --search-box-bg: rgba(255, 255, 255, 0.08);
  --button-bg: rgba(255, 255, 255, 0.08);
  --accent-color: #007AFF;
  --border-color: rgba(255, 255, 255, 0.1);
  --hover-bg: rgba(255, 255, 255, 0.08);
  --active-bg: rgba(255, 255, 255, 0.12);
  --placeholder-color: rgba(255, 255, 255, 0.5);
  --icon-fill: rgba(255, 255, 255, 0.8);
  --shadow: rgba(0, 0, 0, 0.3);

  /* Manter o restante do estilo base */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--text-color);
}

/* === Modo Claro === */
.light {
  --text-genero1: #000000db;
  --text-genero: #fff;
  --fundo-ios: linear-gradient(145deg, #f9f9f9, #ffffff);
  --background: #fff;
  --text-color: #000;
  --text-maide: #172bcd;
  --card-background: rgba(0, 0, 0, 0.05);
  --sidebar-background: rgba(240, 240, 245, 0.85);
  --header-background: rgba(240, 240, 245, 0.9);
  --search-box-bg: rgba(255, 255, 255, 0.8);
  --button-bg: rgba(255, 255, 255, 0.6);
  --border-color: rgba(0, 0, 0, 0.1);
  --placeholder-color: rgba(0, 0, 0, 0.5);
  --icon-fill: rgba(0, 0, 0, 0.8);
}

body {
  background: linear-gradient(135deg, var(--background));
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  transition: background 0.3s ease;
}

/* Modo Claro - Regras Específicas (mantidas como antes, só usando variáveis) */
.light .nav-label,
.light .nav-icon,
.light .movie-info h3,
.light .movie-info p,
.light .search-box,
.light .header,
.light .maide,
.light .search-box::placeholder,
.light .nav-item:hover .nav-label,
.light .nav-item:hover .nav-icon,
.light .youtube-logo span {
  color: var(--text-color) !important;
}

.light .search-box,
.light .header-btn,
.light .sidebar,
.light .movie-poster {
  background: var(--card-background);
}

.light .header,
.light .sidebar {
  background: var(--sidebar-background);
  border-color: var(--border-color);
}

.light .search-box {
  background: var(--search-box-bg);
  border-color: var(--border-color);
}

/* Sidebar */
.sidebar {
  width: 70px;
  background: var(--sidebar-background);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-color);
  padding-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: fixed;
  top: 23px;
  left: 0;
  bottom: 0;
  z-index: 10;
  transition: transform 0.3s ease-in-out;
}

.sidebar:not(.active) {
  transform: translateX(-100%);
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  cursor: pointer;
  background: var(--button-bg);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.menu-btn:hover {
  background: var(--hover-bg);
  transform: scale(1.05);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 56px;
}

.nav-item:hover {
  background: var(--hover-bg);
  transform: translateY(-1px);
}

.nav-item.active {
  background: var(--active-bg);
}

.nav-icon {
  width: 24px;
  height: 24px;
  fill: var(--icon-fill);
  transition: fill 0.3s ease;
}

.nav-item:hover .nav-icon {
  fill: white;
}

.nav-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--icon-fill);
  text-align: center;
  transition: color 0.3s ease;
}

.nav-item:hover .nav-label {
  color: white;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 60px;
  background: var(--header-background);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 5px;
  gap: 16px;
  z-index: 1000;
}

.dark .header {
  background: rgba(28, 28, 30, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.auto .header {
  background: rgba(28, 28, 30, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.youtube-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: #ff0000;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

.search-container {
  flex: 1;
  max-width: 640px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  flex: 1;
  height: 40px;
  background: var(--search-box-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 0 16px;
  color: var(--text-color);
  font-size: 14px;
  transition: all 0.3s ease;
}

.dark .search-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

.search-box:focus {
  outline: none;
  background: var(--hover-bg);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.search-box::placeholder {
  color: var(--placeholder-color);
}

.header-btn {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: var(--button-bg);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dark .header-btn {
  background: var(--button-bg);
}

.header-btn:hover {
  background: var(--hover-bg);
  transform: scale(1.05);
}

/* Main Content */
.main-content {
  margin-top: 60px;
  padding: 16px;
  width: 100%;
  overflow-y: auto;
  position: relative;
}

/* Movies Grid */
.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  max-width: 100%;
  margin: 0 auto;
}

/* Paginator Container - Estilo iOS */
.paginator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 40px 0;
  width: 100%;
}

/* Load More Button - Estilo iOS */
#inadb-loadmore {
  display: inline-block;
  padding: 0 20px;
  height: 44px;
  line-height: 44px;
  background-color: #007AFF;
  color: white;
  font-size: 17px;
  font-weight: 400;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  border-radius: 10px;
  text-decoration: none;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all 0.1s linear;
  -webkit-tap-highlight-color: transparent;
  box-shadow: none;
  appearance: none;
  user-select: none;
  max-width: 200px;
  width: 100%;
}

#inadb-loadmore:hover {
  background-color: #0066CC;
  transform: scale(0.98);
}

#inadb-loadmore:active {
  background-color: #0052A3;
  transform: scale(0.96);
}

/* Loading Spinner - Estilo iOS */
#inadb-loadmore-spinner {
  display: none;
  width: 24px;
  height: 24px;
  margin-bottom: 15px;
}

#inadb-loadmore-spinner::after {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid #007AFF;
  border-color: #007AFF transparent #007AFF transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Quando estiver carregando */
.paginator.loading #inadb-loadmore-spinner {
  display: block;
}

.paginator.loading #inadb-loadmore {
  display: none;
}

.movie-card {
  background: transparent;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.movie-card:hover {
  transform: scale(1.02);
}

.movie-poster {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 8px;
  box-shadow: var(--shadow) 0 4px 12px;
}

.movie-poster.loading::before,
.movie-poster.loading::after,
.movie-poster.loading .bar1,
.movie-poster.loading .bar2 {
  content: '';
  position: absolute;
  top: -113%;
  left: -20%;
  width: 40%;
  height: 180%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  filter: blur(4px);
  pointer-events: none;
  z-index: 2;
  animation: shineMove 4s linear infinite;
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.movie-info {
  margin-top: -9px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.movie-info h3 {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 4px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-info p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    z-index: 20;
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    margin-top: 60px;
    padding: 16px 8px;
  }

  .header {
    left: 0;
    z-index: 1000;
  }

  .movies-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
  }

  .movie-poster {
    height: 150px;
  }

  .movie-info h3 {
    font-size: 11px;
    margin-bottom: 2px;
  }

  .movie-info p {
    font-size: 10px;
  }

  .mobile-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(28, 28, 30, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    backdrop-filter: blur(20px);
  }

  .nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .nav-btn:hover,
  .nav-btn.active {
    background: rgba(255, 255, 255, 0.12);
  }

  .paginator {
    text-align: center;
    margin: 30px 0;
  }

  #inadb-loadmore {
    display: inline-block;
    padding: 10px 24px;
    background: #e50914;
    color: white;
    font-size: 14px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s;
  }

  #inadb-loadmore:hover {
    background: #b00710;
  }

  #inadb-loadmore-spinner {
    display: none;
    width: 100%;
    height: 40px;
    background: transparent url(bloader.svg) center no-repeat;
    background-size: 40px auto;
    margin-top: 30px;
    margin-bottom: 30px;
  }
}
/* Barra inferior mobile */
    .mobile-nav {
      display: none;
    }

    @media (max-width: 768px) {
      .mobile-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: var(--sidebar-background);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1000;
        backdrop-filter: blur(20px);
      }
      .nav-btn {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        background: var(--button-bg);
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
      }
      .nav-btn:hover,
      .nav-btn.active {
        background: rgba(255, 255, 255, 0.12);
      }
	  
.sidebar .nav-item svg {
  stroke: var(--text-maide); /* cor laranja, pode trocar */
}


/* NOVOS CSS 1 */





/* NOVOS CSS 2 */




/* NOVOS CSS 3 */