/* Long cartoons / series — cinematic kid-friendly theme */
.page-cartoons-long .cl-main,
.page-series-detail .cl-main {
  background: linear-gradient(180deg, #1a2d44 0%, #243b55 40%, #f8fafb 40%);
  min-height: 60vh;
}

.cl-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2f4a6b 0%, #1e3350 55%, #152a42 100%);
  color: #fff;
}

.cl-hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 20%, rgba(107, 151, 196, 0.35), transparent 60%);
  pointer-events: none;
}

.cl-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.cl-hero__sub {
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  max-width: 36rem;
}

.cl-pill {
  display: inline-flex;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #bcd1e8;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  transition: all 0.2s ease;
}

.cl-pill:hover,
.cl-pill--active {
  background: #6b97c4;
  color: #fff;
  border-color: #6b97c4;
}

.cl-series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: -2rem;
  position: relative;
  z-index: 2;
}

.cl-series-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(47, 74, 107, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  color: inherit;
}

.cl-series-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(47, 74, 107, 0.18);
}

.cl-series-card__poster {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #dde7f2, #bcd1e8);
  overflow: hidden;
}

.cl-series-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cl-series-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 2.5rem;
  color: #6b97c4;
  opacity: 0.6;
}

.cl-series-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 51, 80, 0.35);
  opacity: 0;
  transition: opacity 0.2s;
  color: #fff;
  font-size: 2rem;
}

.cl-series-card:hover .cl-series-card__play {
  opacity: 1;
}

.cl-series-card__body {
  padding: 1rem 1.15rem 1.25rem;
}

.cl-series-card__badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b97c4;
  background: #eef5ff;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.35rem;
}

.cl-series-card__title {
  font-size: 1.05rem;
  font-weight: 900;
  color: #2f4a6b;
  margin: 0;
}

.cl-series-card__desc {
  font-size: 0.8rem;
  font-weight: 600;
  color: #5e7a99;
  margin: 0.35rem 0 0;
  line-height: 1.5;
}

.cl-series-card__meta {
  font-size: 0.75rem;
  font-weight: 700;
  color: #8b9bb1;
  margin: 0.5rem 0 0;
}

.cl-series-header {
  background: linear-gradient(135deg, #2f4a6b, #1e3350);
  color: #fff;
}

.cl-season__title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #2f4a6b;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #eef5ff;
}

.cl-episode-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cl-episode-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid #eef5ff;
  transition: background 0.2s, border-color 0.2s;
  color: inherit;
}

.cl-episode-row:hover {
  background: #f3f8fd;
  border-color: #bcd1e8;
}

.cl-episode-row__num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #6b97c4;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 900;
}

.cl-episode-row__thumb {
  flex-shrink: 0;
  width: 120px;
  aspect-ratio: 16/9;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #dde7f2;
}

.cl-episode-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cl-episode-row__thumb-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #6b97c4;
}

.cl-episode-row__info {
  flex: 1;
  min-width: 0;
}

.cl-episode-row__title {
  display: block;
  font-weight: 800;
  color: #2f4a6b;
  font-size: 0.95rem;
}

.cl-episode-row__desc {
  display: block;
  font-size: 0.78rem;
  color: #5e7a99;
  margin-top: 0.15rem;
}

.cl-episode-row__cta {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 800;
  color: #6b97c4;
}

.cl-empty {
  background: #fff;
  border-radius: 1.5rem;
  margin-top: -2rem;
  position: relative;
  z-index: 2;
}
