/* ==========================================================
   Mini Lion Galaxy — kid-friendly galaxy theme
   Colours are taken from the logo.
   ========================================================== */

:root {
  --space: #120c35;        /* deep space background */
  --space-2: #1d1452;      /* lighter section band */
  --space-3: #2a1d6e;      /* cards */
  --sky: #3ec6f0;          /* boy figure blue */
  --pink: #ec3b83;         /* girl figure pink */
  --sun: #ffc72c;          /* star yellow */
  --orange: #ff9a2e;       /* heart orange */
  --mint: #4fe0b0;
  --cream: #fff8e7;
  --text: #fff8e7;
  --muted: #cfc6f5;
  --radius: 26px;
  --shadow: 0 14px 0 rgba(0, 0, 0, 0.25);
  --font-fun: "Baloo 2", "Comic Sans MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--space);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-fun);
  line-height: 1.1;
  margin: 0 0 0.4em;
}

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--sun); color: var(--space); padding: 8px 14px; border-radius: 12px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* The logo has a black background: "screen" blending lets it melt into the night sky. */
.logo-img { mix-blend-mode: screen; }

/* ---------- Starfield (filled by script.js) ---------- */
.starfield { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.starfield .star {
  position: absolute; border-radius: 50%; background: #fff;
  animation: twinkle 3.5s ease-in-out infinite;
}
@keyframes twinkle { 0%, 100% { opacity: 0.15; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.2); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 12, 53, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 3px dashed rgba(255, 199, 44, 0.35);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 78px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 64px; height: 46px; object-fit: cover; }
.brand span { font-family: var(--font-fun); font-weight: 800; font-size: 1.35rem; color: var(--sun); white-space: nowrap; }

.main-nav { display: flex; gap: 8px; }
.main-nav a {
  font-family: var(--font-fun); font-weight: 700; font-size: 1.1rem;
  text-decoration: none; padding: 8px 18px; border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}
.main-nav a:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }
.main-nav a[aria-current="page"] { background: var(--sun); color: var(--space); }

.menu-toggle {
  display: none; background: var(--sun); color: var(--space); border: 0;
  width: 48px; height: 48px; border-radius: 16px; font-size: 1.5rem; cursor: pointer;
}

@media (max-width: 760px) {
  .menu-toggle { display: grid; place-items: center; }
  .brand span { font-size: 1.15rem; }
  .main-nav {
    position: absolute; top: 100%; left: 16px; right: 16px;
    flex-direction: column; padding: 12px;
    background: var(--space-3); border-radius: var(--radius); box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 18px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-fun); font-weight: 800; font-size: 1.15rem;
  text-decoration: none; border: 0; cursor: pointer;
  padding: 14px 28px; border-radius: 999px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 9px 0 rgba(0, 0, 0, 0.3); }
.btn:active { transform: translateY(3px); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3); }
.btn-sun { background: var(--sun); color: var(--space); }
.btn-pink { background: var(--pink); color: #fff; }
.btn-sky { background: var(--sky); color: var(--space); }
.btn-outline { background: transparent; color: var(--text); box-shadow: inset 0 0 0 3px var(--text); }
.btn-outline:hover { box-shadow: inset 0 0 0 3px var(--sun); color: var(--sun); }

/* ---------- Sections ---------- */
.section { padding: 90px 0; position: relative; }
.section-alt { background: var(--space-2); }
.section-alt::before, .section-alt::after {
  content: ""; position: absolute; left: 0; right: 0; height: 40px;
  background: var(--space-2);
  -webkit-mask: radial-gradient(30px 22px at 30px 100%, #000 98%, transparent) 0 0 / 60px 40px repeat-x;
          mask: radial-gradient(30px 22px at 30px 100%, #000 98%, transparent) 0 0 / 60px 40px repeat-x;
}
.section-alt::before { top: -39px; }
.section-alt::after { bottom: -39px; transform: scaleY(-1); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.1rem); }
.section-head p { color: var(--muted); margin: 0; }
.eyebrow {
  display: inline-block; font-family: var(--font-fun); font-weight: 700;
  color: var(--space); background: var(--sky); padding: 4px 16px; border-radius: 999px;
  margin-bottom: 14px; font-size: 0.95rem;
}

/* ---------- Hero ---------- */
.hero { padding: 60px 0 100px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); }
.hero h1 .c-sky { color: var(--sky); }
.hero h1 .c-pink { color: var(--pink); }
.hero h1 .c-sun { color: var(--sun); }
.hero-lead { font-size: 1.2rem; color: var(--muted); max-width: 520px; margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; padding: 0; list-style: none; }
.hero-tags li {
  font-weight: 800; font-size: 0.95rem; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); border: 2px solid rgba(255, 255, 255, 0.15);
}

.hero-art { position: relative; display: grid; place-items: center; }
.hero-art .logo-img { width: 100%; max-width: 520px; height: auto; aspect-ratio: 1280 / 924; object-fit: contain; animation: bob 5s ease-in-out infinite; }
.hero-art::before {
  content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 59, 131, 0.35), rgba(62, 198, 240, 0.15) 55%, transparent 70%);
  filter: blur(10px);
}
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }

.planet { position: absolute; border-radius: 50%; pointer-events: none; }
.planet-1 {
  width: 120px; height: 120px; top: 30px; right: -40px;
  background: radial-gradient(circle at 35% 35%, #ffd96b, var(--orange));
  box-shadow: inset -14px -10px 0 rgba(0, 0, 0, 0.15);
  animation: float 9s ease-in-out infinite;
}
.planet-1::after {
  content: ""; position: absolute; left: -30%; top: 42%; width: 160%; height: 18%;
  border-radius: 50%; border: 6px solid rgba(255, 255, 255, 0.55); transform: rotate(-18deg);
}
.planet-2 {
  width: 60px; height: 60px; bottom: 50px; left: 3%;
  background: radial-gradient(circle at 35% 35%, #9ef0ff, var(--sky));
  box-shadow: inset -8px -6px 0 rgba(0, 0, 0, 0.15);
  animation: float 7s ease-in-out infinite reverse;
}
.planet-3 {
  width: 34px; height: 34px; top: 45%; left: 46%;
  background: radial-gradient(circle at 35% 35%, #ffb0d0, var(--pink));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-10px, 16px); } }

@media (max-width: 860px) {
  .hero { padding-top: 30px; text-align: center; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art .logo-img { max-width: 360px; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-tags { justify-content: center; }
  .planet-1 { width: 80px; height: 80px; right: -20px; }
}

/* ---------- Explore collection ---------- */
.collection-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; }
.collection-card {
  --c: var(--sky);
  position: relative; text-decoration: none;
  background: var(--space-3); border-radius: var(--radius);
  padding: 28px 22px 26px; text-align: center;
  border: 4px solid var(--c); box-shadow: var(--shadow);
  transition: transform 0.25s cubic-bezier(.34, 1.56, .64, 1);
}
.collection-card:hover { transform: translateY(-8px) rotate(-1.5deg); }
.collection-card:nth-child(even):hover { transform: translateY(-8px) rotate(1.5deg); }
.collection-card .icon {
  width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; font-size: 2.6rem; background: var(--c);
}
.collection-card h3 { font-size: 1.45rem; color: var(--c); }
.collection-card p { margin: 0; font-size: 0.98rem; color: var(--muted); }
.c-sky { --c: var(--sky); }
.c-pink { --c: var(--pink); }
.c-sun { --c: var(--sun); }
.c-orange { --c: var(--orange); }
.c-mint { --c: var(--mint); }
.center-cta { text-align: center; margin-top: 48px; }

/* ---------- Why Mini Lion Galaxy ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.why-card {
  background: var(--cream); color: var(--space);
  border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow);
}
.why-card .badge {
  width: 62px; height: 62px; border-radius: 20px; display: grid; place-items: center;
  font-size: 2rem; margin-bottom: 16px; transform: rotate(-6deg);
}
.why-card h3 { font-size: 1.4rem; }
.why-card p { margin: 0; font-size: 1rem; color: #4a3f7a; }

.parent-note {
  margin-top: 40px; display: flex; gap: 20px; align-items: center;
  background: linear-gradient(120deg, var(--pink), var(--orange));
  border-radius: var(--radius); padding: 26px 30px; box-shadow: var(--shadow);
}
.parent-note .emoji { font-size: 2.6rem; flex: none; }
.parent-note p { margin: 0; font-weight: 700; }
@media (max-width: 600px) { .parent-note { flex-direction: column; text-align: center; } }

/* ---------- Page banner (inner pages) ---------- */
.page-banner { padding: 60px 0 30px; text-align: center; }
.page-banner h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.page-banner h1 span { color: var(--sun); }
.page-banner p { color: var(--muted); max-width: 620px; margin: 0 auto; }

/* ---------- Videos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 26px; }
.video-card {
  background: var(--space-3); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 4px solid transparent;
  transition: transform 0.25s cubic-bezier(.34, 1.56, .64, 1), border-color 0.2s;
}
.video-card:hover { transform: translateY(-6px); border-color: var(--sun); }
.video-card button {
  all: unset; display: block; width: 100%; cursor: pointer;
}
.video-card button:focus-visible { outline: 4px solid var(--sky); outline-offset: -4px; }
.video-thumb { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.play-badge {
  position: absolute; inset: 0; margin: auto; width: 70px; height: 70px; border-radius: 50%;
  background: var(--pink); display: grid; place-items: center;
  box-shadow: 0 0 0 8px rgba(236, 59, 131, 0.35);
  transition: transform 0.2s;
}
.play-badge::after {
  content: ""; margin-left: 6px;
  border-left: 22px solid #fff; border-top: 14px solid transparent; border-bottom: 14px solid transparent;
}
.video-card:hover .play-badge { transform: scale(1.12); }
.new-badge {
  position: absolute; top: 12px; left: 12px; background: var(--sun); color: var(--space);
  font-family: var(--font-fun); font-weight: 800; padding: 2px 12px; border-radius: 999px; font-size: 0.9rem;
}
.video-info { padding: 18px 20px 22px; }
.video-info h2 { font-size: 1.2rem; margin: 0 0 6px; }
.video-info .meta { font-size: 0.9rem; color: var(--muted); }

.video-status { text-align: center; padding: 50px 20px; color: var(--muted); }
.loader { display: inline-flex; gap: 10px; margin-bottom: 14px; }
.loader span { width: 16px; height: 16px; border-radius: 50%; animation: hop 0.9s ease-in-out infinite; }
.loader span:nth-child(1) { background: var(--sky); }
.loader span:nth-child(2) { background: var(--pink); animation-delay: 0.15s; }
.loader span:nth-child(3) { background: var(--sun); animation-delay: 0.3s; }
@keyframes hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.playlist-embed { aspect-ratio: 16 / 9; width: 100%; max-width: 900px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.playlist-embed iframe { width: 100%; height: 100%; border: 0; }

.channel-cta { text-align: center; margin-top: 50px; }
.channel-cta p { color: var(--muted); }

/* ---------- Video player popup ---------- */
.player-modal {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(8, 5, 25, 0.9); padding: 16px;
  align-items: center; justify-content: center;
}
.player-modal.open { display: flex; }
.player-box { width: min(1000px, 100%); position: relative; }
.player-frame { aspect-ratio: 16 / 9; background: #000; border-radius: 20px; overflow: hidden; border: 5px solid var(--sun); }
.player-frame iframe { width: 100%; height: 100%; border: 0; }
.player-close {
  position: absolute; top: -18px; right: -10px; width: 52px; height: 52px; border-radius: 50%;
  border: 0; background: var(--pink); color: #fff; font-size: 1.6rem; cursor: pointer;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
}
.player-title { font-family: var(--font-fun); font-size: 1.3rem; margin-top: 14px; text-align: center; }

/* ---------- Reach out ---------- */
.reach-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; align-items: start; }
@media (max-width: 860px) { .reach-grid { grid-template-columns: 1fr; } }
.contact-cards { display: grid; gap: 18px; }
.contact-card {
  display: flex; gap: 18px; align-items: center; text-decoration: none;
  background: var(--space-3); border-radius: var(--radius); padding: 20px 22px;
  border: 4px solid var(--c, var(--sky)); box-shadow: var(--shadow);
  transition: transform 0.2s;
}
a.contact-card:hover { transform: translateX(6px); }
.contact-card .icon {
  flex: none; width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center;
  font-size: 1.8rem; background: var(--c, var(--sky));
}
.contact-card h2 { font-size: 1.25rem; margin: 0; }
.contact-card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.form-card { background: var(--cream); color: var(--space); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-card h2 { font-size: 2rem; }
.form-card > p { margin-top: 0; color: #4a3f7a; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 800; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--space);
  padding: 13px 16px; border-radius: 16px; border: 3px solid #ddd3ff; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); }
.field textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } .form-card { padding: 24px 18px; } }
.form-note { font-size: 0.9rem; color: #6a5f9a; margin: 12px 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: #0b0726; padding: 70px 0 30px; margin-top: 40px; border-top: 4px dashed rgba(255, 199, 44, 0.35); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer-brand img { width: 170px; height: auto; margin-bottom: 12px; }
.footer-brand p { color: var(--muted); margin: 0; max-width: 340px; }
.site-footer h2 { font-size: 1.3rem; color: var(--sun); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer-links a { display: inline-block; padding: 10px 0; min-height: 44px; text-decoration: none; color: var(--muted); font-weight: 700; }
.footer-links a:hover { color: var(--sky); }
.footer-bottom {
  margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  font-size: 0.92rem; color: var(--muted);
}
.footer-bottom a {
  color: var(--sun); font-weight: 800;
  text-decoration: underline; text-underline-offset: 3px;
  display: inline-block; padding: 10px 2px; margin: -10px 0;
}
.footer-bottom a:hover { color: var(--sky); }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand img, .footer-brand p { margin-inline: auto; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ---------- Pop-in animation ---------- */
.reveal { opacity: 0; transform: translateY(30px) scale(0.97); transition: opacity 0.6s, transform 0.6s cubic-bezier(.34, 1.56, .64, 1); }
.reveal.shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
