/* ==========================================================================
   PALETA PROVISÓRIA OFICIAL
   Fundo Geral: #F8F9FA | Cards: #FFFFFF | Bordas: #E5E7EB
   Texto Principal: #111827 | Texto Secundário: #6B7280 | Destaque: #EE2922
   ========================================================================== */

/* CONTAINER PRINCIPAL */
html, body {
  background-color: #F8F9FA !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh;
}
.tv-canais-wrapper {
  background-color: #F8F9FA;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px;
  font-family: system-ui, -apple-system, sans-serif;
  color: #111827;
}

/* CABEÇALHO */
.tv-canais-header {
  margin-bottom: 32px;
}
.tv-canais-header h1 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 8px 0;
}
.tv-canais-header p {
  font-size: 16px;
  color: #6B7280;
  margin: 0;
}

/* BUSCA */
.tv-canais-search {
  margin-bottom: 32px;
}
.tv-canais-search input {
  width: 100%;
  max-width: 600px;
  padding: 16px 24px;
  font-size: 16px;
  background-color: #FFFFFF;
  border: 1px solid #EE2922; /* Destaque no contorno estilo print */
  border-radius: 30px;
  color: #111827;
  outline: none;
  box-sizing: border-box;
}
.tv-canais-search input::placeholder {
  color: #6B7280;
}

/* CHIPS DE CATEGORIA */
.tv-canais-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}
.tv-canais-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background-color: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: #6B7280;
  cursor: pointer;
  user-select: none;
}
.tv-canais-chip-active {
  background-color: #EE2922;
  border-color: #EE2922;
  color: #FFFFFF;
}

/* GRUPOS DE CATEGORIA (H2) */
.tv-canais-group {
  margin-bottom: 48px;
}
.tv-canais-group-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 24px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* GRID E CARDS DE CANAL */
.tv-canais-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 768px) {
  .tv-canais-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 1024px) {
  .tv-canais-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
.tv-canais-card {
  background-color: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.tv-canais-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.tv-canais-logo-placeholder,
.tv-canais-logo-wrapper img {
  max-width: 100%;
  height: 56px;
  object-fit: contain;
}
.tv-canais-logo-placeholder {
  width: 100%;
  height: 56px;
  background-color: #F8F9FA;
  border: 1px dashed #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #6B7280;
  margin-bottom: 12px;
  border-radius: 4px;
}

/* WRAPPER do logo: contém skeleton (absolute) + img, altura fixa garantida */
.tv-canais-logo-wrapper {
  position: relative;
  width: 100%;
  height: 56px;
  margin-bottom: 12px;
}
.tv-canais-logo-wrapper img {
  width: 100%;
  height: 56px;
  object-fit: contain;
  display: block;
}

/* SKELETON LOADING — absoluto dentro do wrapper */
.tv-canais-skeleton {
  position: absolute;
  inset: 0;
  background-color: #F8F9FA;
  background-image: linear-gradient(90deg, #F8F9FA 0px, #E5E7EB 40px, #F8F9FA 80px);
  background-size: 200% 100%;
  animation: tvCanaisShimmer 1.5s infinite linear;
  border-radius: 4px;
}

@keyframes tvCanaisShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.tv-canais-nome {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  text-align: center;
}

/* EMPTY STATE */
.tv-canais-empty-state {
  text-align: center;
  padding: 48px 24px;
  background-color: #FFFFFF;
  border: 1px dashed #E5E7EB;
  border-radius: 12px;
  color: #6B7280;
  font-size: 16px;
  margin-bottom: 48px;
}

/* BENEFÍCIOS */
.tv-beneficios-wrapper {
  margin-top: 64px;
  background-color: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 40px;
}
.tv-beneficios-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.tv-beneficios-card {
  text-align: center;
  padding: 16px;
}
.tv-beneficios-icone-placeholder {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px auto;
  background-color: #F8F9FA;
  border: 1px dashed #EE2922;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #EE2922;
}
.tv-beneficios-titulo {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}



/* ==========================================================================
   RESPONSIVIDADE (MEDIA QUERIES OFICIAIS)
   ========================================================================== */

/* TABLET: 768px até 1279px */
@media (min-width: 768px) and (max-width: 1279px) {
  /* Busca */
  .tv-canais-search input {
    max-width: 100%;
  }

  /* Grade de Canais */
  .tv-canais-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Benefícios */
  .tv-beneficios-grid {
    grid-template-columns: repeat(3, 1fr);
  }


}

/* MOBILE: até 767px */
@media (max-width: 767px) {
  /* Melhor aproveitamento de espaço em smartphones */
  .tv-canais-wrapper {
    padding: 24px 16px;
  }

  /* Chips */
  .tv-canais-chip-group {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 8px; /* Prevenção de corte visual na scrollbar */
    -webkit-overflow-scrolling: touch; /* Suavização nativa de scroll mobile (iOS) */
  }
  
  .tv-canais-chip {
    flex-shrink: 0;
  }

  /* Grade de Canais */
  .tv-canais-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Benefícios */
  .tv-beneficios-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }


}