/* Estilos Gerais */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #ffffff;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  line-height: 1.6;
}

h1,h2,h3 { 
  margin: 30px 0;
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;

}

.plataform {
    margin-bottom: 10px;
    color: #aaa;
    font-size: 1rem;
    text-align: left;
  }

.marvel-title { 
  color: #e62429;
  text-shadow: 0 0 10px rgba(230, 36, 41, 0.5);
  text-align: center;
}

.dc-titulo { 
  color: #0476f2;
  text-shadow: 0 0 10px rgba(4, 118, 242, 0.5);
    text-align: center;
}

/* Filtros */
.filters-container {
  background: rgba(26, 26, 26, 0.8);
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-group {
  margin: 15px 0;
}

.filter-group h3 {
  margin-bottom: 10px;
  color: #aaa;
  font-size: 1rem;
  text-align: left;
}

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

.filter-btn {
  background: #2a2a2a;
  border: none;
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.filter-btn.active {
  background: #e62429;
  color: white;
  box-shadow: 0 0 10px rgba(230, 36, 41, 0.5);
}

.filter-btn:hover {
  transform: translateY(-2px);
  background: #3a3a3a;
}

/* Plataformas */
.platform-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.platform-badge {
  padding: 5px 15px;
  border-radius: 15px;
  font-size: 0.9em;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-weight: 500;
}

.platform-badge.active {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.all {
  background: #666;
  color: white;
}

.disney-plus {
  background: #113ccf;
  color: white;
}

.max {
  background: #00a8e1;
  color: white;
}

/* Plataforma HBO */
.platform-badge.hbo {
  background: #942e8a;
  color: white;
}

.platform-tag.hbo {
  background: rgba(148, 46, 138, 0.2);
  color: #d46bc8;
  border: 1px solid #942e8a;
}

/* Grid de Séries */
.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

.serie {
  background: rgba(26, 26, 26, 0.8);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.serie:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Cabeçalho */
.serie-header {
  display: flex;
  justify-content: space-between;
  padding: 12px 15px;
  background: rgba(0, 0, 0, 0.3);
}

.platform-tag {
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.8em;
  font-weight: bold;
}

.platform-tag.disney-plus {
  background: rgba(17, 60, 207, 0.2);
  color: #5d8aff;
  border: 1px solid #113ccf;
}

.platform-tag.max {
  background: rgba(0, 168, 225, 0.2);
  color: #00c8ff;
  border: 1px solid #00a8e1;
}

/* Mídia */
.media-container {
  height: 160px;
  overflow: hidden;
  position: relative;
  background: #000;
}

.media-container iframe,
.media-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

/* Informações da Série */
.serie-info {
  padding: 15px;
}

.serie-info h3 {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
  text-align: left;
  color: #fff;
}

.serie-info p {
  color: #aaa;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

/* Timeline */
.timeline {
  position: relative;
  margin: 20px 0;
  padding-left: 20px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 10px;
}

/* Barra de rolagem personalizada */
.timeline::-webkit-scrollbar {
  width: 5px;
}

.timeline::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.1);
}

.timeline::-webkit-scrollbar-thumb {
  background: #e62429;
  border-radius: 5px;
}

.timeline:before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
  position: relative;
  margin-bottom: 15px;
}

.timeline-point {
  position: absolute;
  left: 0;
  top: 5px;
  width: 12px;
  height: 12px;
  background: #444;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item.aired .timeline-point {
  background: #e62429;
  box-shadow: 0 0 5px rgba(230, 36, 41, 0.8);
}

.timeline-content {
  margin-left: 20px;
  background: rgba(42, 42, 42, 0.5);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
}

.timeline-content span {
  display: block;
  font-weight: bold;
  color: #fff;
}

.timeline-content small {
  color: #aaa;
  font-size: 0.8rem;
}

/* Status */
.status-indicator {
  display: flex;
  gap: 5px;
}

.current-badge {
  background: #00c853;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7em;
  font-weight: bold;
}

.upcoming-badge {
  background: #ffd600;
  color: #000;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7em;
  font-weight: bold;
}

.future-badge {
  background: #0476f2;
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7em;
  font-weight: bold;
}

/* Mensagens */
.no-series {
  text-align: center;
  color: #aaa;
  padding: 20px;
  grid-column: 1 / -1;
}

.error {
  color: #e62429;
  text-align: center;
  padding: 20px;
}

/* Atualização */
.last-update {
  text-align: center;
  color: #666;
  margin-top: 40px;
  font-style: italic;
  font-size: 0.9rem;
}

/* Responsivo */
@media (max-width: 768px) {
  .series-grid {
    grid-template-columns: 1fr;
  }
  
  .filters-container {
    padding: 15px;
  }
  
  .filter-buttons, .platform-badges {
    justify-content: center;
  }
}
