/* --- Banner Responsive de Serie (ajustado) --- */
.series-banner {
  position: relative;
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  min-height: 390px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-bottom: 40px;
  margin-top: 0;
}
.banner-image {
  /* aspect-ratio: 850 / 540; */
  width: 55%;
  /* max-width: 680px; */
  min-width: 320px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  position: relative;
  /* border-radius: 16px; */
  overflow: hidden;
  z-index: 2;
}
.banner-overlay {
  position: absolute;
  left: 0; top: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  /* border-radius: 16px; */
}
.badges-top {
  position: absolute;
  top: 18px;
  left: 24px;
  z-index: 2;
  display: flex;
  gap: 12px;
}
.badges-bottom {
  position: absolute;
  bottom: 18px;
  left: 24px;
  z-index: 2;
  display: flex;
  gap: 12px;
}
.badge-series{
    border-radius: 15px;
    padding: 5px 15px;
    font-size: 0.75rem;
    font-weight: 650;
}
.banner-content {
  width: 45%;
  flex: 1;
  padding: 30px 50px 30px 0px; 
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  background: transparent;
  transition: padding 0.2s, text-align 0.2s, align-items 0.2s;
  box-sizing: border-box;
}

/* @media (max-width: 1400px) {
  .banner-content {
    padding: 20px 40px 20px 20px;
  }
}
@media (max-width: 1200px) {
  .banner-content {
    padding: 20px 24px 20px 16px;
  }
} */
@media (max-width: 980px) {
  .series-banner { flex-direction: column; min-height: unset; }
  .banner-image { width: 100%; height: 320px; min-width: unset; }
  .banner-content { width: 100%; padding: 30px 40px; align-items: center; text-align: center; }
}
p.series-desc {
    margin-bottom: 24px;
    margin-top: 18px;
}

@media (max-width: 500px) {
    h1.series-title {
    font-size: 1.75rem;
    margin-bottom: 20px;
    line-height: 2rem;
}
}

@media (max-width: 600px) {
        .btn-continuar .btn-text,
        .btn-primer .btn-text {
            display: none !important;
            }
        .btn-continuar,
        .btn-primer {
            min-width: 38px;
            padding-left: 0.7em;
            padding-right: 0.7em;
            justify-content: center;
            }
        }

.chapters-list-ajax-wrap {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
}

/* === Badges de Clasificación (Géneros, Audiencia, Advertencias) === */
.series-classification-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    justify-content: flex-end;
}

.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #e3e8f0;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #2d3436;
    cursor: help;
    position: relative;
    transition: all 0.2s ease;
}

.info-badge:hover {
    background: #d1d8e6;
    transform: translateY(-2px);
}

.info-badge i {
    font-size: 0.85rem;
}

/* Estilos específicos por tipo de badge */
.badge-genres {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-genres:hover {
    background: #c8e6c9;
}

.badge-audience {
    background: #e3f2fd;
    color: #1565c0;
}

.badge-audience:hover {
    background: #bbdefb;
}

.badge-warnings {
    background: #ffebee;
    color: #c62828;
}

.badge-warnings:hover {
    background: #ffcdd2;
}

/* Tooltip para los badges */
.badge-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    background: #2d3436;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.75rem;
    white-space: wrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    width: max-content;
    max-width: 250px;
}

.badge-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 15px;
    border: 6px solid transparent;
    border-top-color: #2d3436;
}

.info-badge:hover .badge-tooltip {
    opacity: 1;
}

/* Responsive para badges en móviles */
@media (max-width: 980px) {
    .series-classification-badges {
        justify-content: center;
    }
    
    .badge-tooltip {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    
    .badge-tooltip::after {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}