/* NewsToons — kid-friendly, bright, big touch targets */
* { box-sizing: border-box; margin: 0; }
body {
  font-family: "Comic Sans MS", "Chalkboard SE", "Segoe UI", system-ui, sans-serif;
  background: #eaf4ff;
  color: #23324a;
  line-height: 1.4;
}
header { text-align: center; padding: 1.6rem 1rem 0.6rem; }
.masthead {
  font-size: clamp(2.4rem, 8vw, 4rem);
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 0.5px;
  text-shadow: 2px 2px 0 #ffffff;
}
.masthead .news  { color: #1d5fd6; }
.masthead .toons { color: #ff7a1a; }
.tagline { color: #4a5a75; margin-top: 0.2rem; font-size: 1.05rem; }
.ages {
  display: inline-block; margin-top: 0.5rem; padding: 0.25rem 0.9rem;
  background: #ffd94d; border-radius: 999px; font-weight: 700; font-size: 0.9rem;
}
main { max-width: 960px; margin: 0 auto; padding: 1.2rem; }

/* index grid */
.grid {
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.card {
  background: #ffffff; border-radius: 18px; overflow: hidden;
  text-decoration: none; color: inherit;
  box-shadow: 0 4px 14px rgba(29, 95, 214, 0.13);
  transition: transform 0.15s ease;
  border: 3px solid transparent;
}
.card:hover, .card:focus-visible { transform: translateY(-4px) scale(1.01); border-color: #ff7a1a; }
.card img { width: 100%; height: auto; display: block; }
.cardbody { padding: 0.8rem 1rem 1rem; }
.epnum {
  display: inline-block; background: #1d5fd6; color: #ffffff;
  border-radius: 999px; padding: 0.1rem 0.7rem; font-size: 0.8rem; font-weight: 700;
}
.cardbody h2 { font-size: 1.1rem; margin: 0.45rem 0 0.25rem; }
.date { color: #6a7a95; font-size: 0.85rem; }

/* episode page */
.episode h1 { text-align: center; font-size: clamp(1.3rem, 4.5vw, 1.9rem); margin-bottom: 0.4rem; }
.meta { text-align: center; color: #4a5a75; margin-bottom: 0.4rem; }
.badge {
  background: #1d5fd6; color: #ffffff; border-radius: 999px;
  padding: 0.12rem 0.7rem; font-size: 0.8rem; font-weight: 700;
}
.chips { text-align: center; margin-bottom: 1rem; }
.chip {
  display: inline-block; margin: 0.15rem; padding: 0.18rem 0.7rem;
  border: 2px solid #b9d2f5; border-radius: 999px;
  font-size: 0.8rem; color: #1d5fd6; background: #ffffff;
}
figure { margin: 0 0 1.1rem; }
figure img {
  width: 100%; height: auto; display: block;
  border-radius: 14px; box-shadow: 0 4px 14px rgba(29, 95, 214, 0.15);
  background: #ffffff;
}
.epnav {
  display: flex; justify-content: space-between; align-items: center;
  gap: 0.6rem; margin: 1.4rem 0 0.6rem; flex-wrap: wrap;
}
.btn {
  background: #ff7a1a; color: #ffffff; text-decoration: none; font-weight: 800;
  padding: 0.7rem 1.2rem; border-radius: 999px; font-size: 1rem;
  box-shadow: 0 3px 0 #d95f00;
}
.btn:active { transform: translateY(2px); box-shadow: none; }
.btn.home { background: #1d5fd6; box-shadow: 0 3px 0 #143f8f; }

footer {
  text-align: center; color: #6a7a95; font-size: 0.8rem;
  padding: 1.6rem 1rem 2.2rem; max-width: 760px; margin: 0 auto;
}
footer p { margin-bottom: 0.4rem; }
footer a { color: #1d5fd6; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* listen buttons — below the panel so they never cover the art or logo */
figure { text-align: center; }
.listen {
  display: inline-block; margin-top: 0.45rem;
  border: 0; cursor: pointer; font-family: inherit;
  background: #ffffff; color: #1d5fd6; font-weight: 800;
  padding: 0.5rem 1.2rem; border-radius: 999px; font-size: 0.95rem;
  box-shadow: 0 3px 10px rgba(29, 95, 214, 0.2);
}
.listen.playing { background: #ffd94d; color: #23324a; }

/* globe chooser */
.globe-section { text-align: center; margin-bottom: 1.6rem; }
.globe-section h1 { font-size: clamp(1.2rem, 4vw, 1.7rem); margin-bottom: 0.8rem; }
#globe { display: flex; justify-content: center; }
#globe svg { user-select: none; -webkit-user-select: none; }
#globe-toast {
  min-height: 1.6rem; margin-top: 0.5rem; font-weight: 700; color: #1d5fd6;
  opacity: 0; transition: opacity 0.3s ease;
}
.lang-buttons { margin-top: 0.6rem; display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }
.btn.soon { background: #ffd94d; color: #23324a; box-shadow: 0 3px 0 #d9b425; cursor: default; }
.grid-title { text-align: center; margin: 0.4rem 0 1rem; font-size: 1.4rem; }
.sponsors { font-weight: 700; color: #4a5a75; }
#globe path:hover { filter: brightness(1.15); stroke: #23324a; stroke-width: 1.4px; }

/* per-episode kid rating */
.rating { text-align: center; margin: 1.6rem 0 0.4rem; }
.rate-ask { font-weight: 800; color: #23324a; margin-bottom: 0.5rem; }
.rate-faces { display: flex; gap: 0.9rem; justify-content: center; }
.face {
  border: 3px solid transparent; background: #ffffff; cursor: pointer;
  font-size: 2.2rem; line-height: 1; padding: 0.35rem 0.6rem; border-radius: 999px;
  box-shadow: 0 3px 10px rgba(29, 95, 214, 0.18); transition: transform 0.12s ease;
}
.face:hover { transform: scale(1.12); }
.face.chosen { border-color: #ff7a1a; background: #fff3e6; transform: scale(1.15); }
.rate-thanks { margin-top: 0.6rem; font-weight: 800; color: #1d5fd6; }

/* sponsorship page */
.sponsorpage { text-align: left; max-width: 720px; margin: 0 auto; }
.sponsorpage h1 { text-align: center; }
.sponsorpage h2 { margin: 1.4rem 0 0.4rem; font-size: 1.15rem; color: #1d5fd6; }
.sponsorpage p, .sponsorpage li { margin-bottom: 0.7rem; line-height: 1.55; }
.sponsorpage .lead { font-weight: 700; }
.sponsorpage ul { padding-left: 1.2rem; }
.sponsorpage .contact { margin-top: 1.2rem; font-weight: 700; }
.ainotice { font-weight: 700; color: #4a5a75; }
table.sources { width: 100%; border-collapse: collapse; margin: 0.8rem 0 1rem; }
table.sources th, table.sources td { text-align: left; padding: 0.45rem 0.5rem; border-bottom: 2px solid #dbe9fb; vertical-align: top; }
table.sources th { color: #1d5fd6; }
