/* ================= KIDS PAGE (Nov 2026) =================
   Markup: kidsPage() / kidsCollection() in js/views.js. Bright and playful, still Roya: ink base, white type,
   one accent hue per section (--kh). Poster cards are the shared .pcard.kv (not restyled here). */
.kids-page { --k-r: 26px; padding-bottom: 20px; }

/* ---- show of the day ---- */
.kids-hero { --kh: 200; position: relative; isolation: isolate; overflow: hidden; margin: 14px var(--gutter) 0; border-radius: var(--k-r);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: center; gap: clamp(18px, 3vw, 48px);
  padding: clamp(22px, 4.2vw, 56px); min-height: clamp(300px, 34vw, 460px);
  border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 30px 80px -40px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.08); }
.kh-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background: radial-gradient(70% 90% at 10% 0%, hsl(var(--kh) 85% 55% / 0.45), transparent 60%),
    radial-gradient(60% 80% at 100% 100%, hsl(calc(var(--kh) + 70) 90% 60% / 0.32), transparent 62%),
    linear-gradient(155deg, hsl(var(--kh) 55% 16%), #0b0a1c 70%); }
.kh-bg i { position: absolute; border-radius: 50%; filter: blur(1px); }
.kh-b1 { width: 26%; aspect-ratio: 1; top: -9%; inset-inline-end: 34%; background: radial-gradient(circle at 35% 35%, #ffe066, #ffb703 70%); opacity: 0.22; }
.kh-b2 { width: 14%; aspect-ratio: 1; bottom: 8%; inset-inline-start: 46%; background: radial-gradient(circle at 35% 35%, #8ef0de, #2dd4bf 70%); opacity: 0.2; }
.kh-b3 { width: 8%; aspect-ratio: 1; top: 18%; inset-inline-start: 4%; background: radial-gradient(circle at 35% 35%, #ffb3c7, #ff6b9d 70%); opacity: 0.28; }
.kh-dots { inset: 0; border-radius: 0 !important; filter: none !important; opacity: 0.5;
  background: radial-gradient(circle, rgba(255,255,255,0.14) 1.5px, transparent 2px) 0 0 / 26px 26px;
  -webkit-mask-image: linear-gradient(115deg, #000, transparent 55%); mask-image: linear-gradient(115deg, #000, transparent 55%); }
.kh-copy { display: grid; gap: 12px; justify-items: start; min-width: 0; }
.kh-kicker { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700;
  color: #1b1300; background: linear-gradient(120deg, #ffe066, #ffb703); box-shadow: 0 8px 22px -10px rgba(255,183,3,0.8); }
.kh-kicker svg { width: 14px; height: 14px; }
.kh-copy h1 { margin: 0; font-size: clamp(2rem, 1.2rem + 3.6vw, 4.2rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance;
  background: linear-gradient(100deg, #fff 35%, hsl(calc(var(--kh) + 40) 100% 80%)); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[dir="rtl"] .kh-copy h1 { line-height: 1.3; letter-spacing: 0; }
.kh-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; color: var(--text-2); font-size: var(--fs-s); font-variant-numeric: tabular-nums; }
.kh-age { padding: 2px 10px; border-radius: 99px; background: rgba(255,255,255,0.14); color: #fff; font-weight: 700; }
.kh-copy p { margin: 0; max-width: 54ch; color: var(--text-2); line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kh-art { justify-self: center; position: relative; width: min(100%, 300px); aspect-ratio: 2 / 3; border-radius: 22px; overflow: hidden; padding: 0;
  transform: rotate(-4deg); box-shadow: 0 30px 60px -22px rgba(0,0,0,0.95), 0 0 0 6px rgba(255,255,255,0.08), 0 0 60px -10px hsl(var(--kh) 90% 60% / 0.55);
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1); }
:root[dir="rtl"] .kh-art { transform: rotate(4deg); }
.kh-art:hover, .kh-art:focus-visible { transform: rotate(0) scale(1.03); }
.kh-art img { width: 100%; height: 100%; object-fit: cover; }

/* ---- age pills ---- */
.kids-ages { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 16px var(--gutter) 4px; }
.kids-ages::-webkit-scrollbar { display: none; }
.ka-pill { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px 0 12px; border-radius: 99px;
  background: hsl(var(--kh) 70% 50% / 0.14); border: 1px solid hsl(var(--kh) 80% 65% / 0.35); color: #fff; transition: transform 240ms, background 240ms; }
.ka-pill svg { width: 20px; height: 20px; color: hsl(var(--kh) 95% 72%); }
.ka-pill b { font-weight: 700; font-size: var(--fs-s); white-space: nowrap; }
.ka-pill small { min-width: 24px; padding: 1px 7px; border-radius: 99px; background: rgba(0,0,0,0.3); color: var(--text-2); font-size: 11px; text-align: center; font-variant-numeric: tabular-nums; }
.ka-pill:hover, .ka-pill:focus-visible { transform: translateY(-2px); background: hsl(var(--kh) 70% 50% / 0.26); }
.kids-rails { padding-top: clamp(18px, 2.4vw, 30px); }

/* ---- collection tiles ---- */
.kc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--card-gap, 14px); padding-inline: var(--gutter); }
.kc-tile { position: relative; isolation: isolate; overflow: hidden; display: grid; align-content: end; gap: 2px; min-height: clamp(150px, 13vw, 200px);
  padding: 16px 18px; border-radius: 22px; color: #fff;
  background: radial-gradient(90% 90% at 100% 0%, hsl(var(--kh) 90% 62% / 0.55), transparent 62%), linear-gradient(160deg, hsl(var(--kh) 60% 24%), hsl(var(--kh) 55% 10%));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1), 0 18px 40px -26px rgba(0,0,0,0.9); transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 260ms; }
.kc-tile:hover, .kc-tile:focus-visible { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22), 0 26px 46px -24px hsl(var(--kh) 85% 50% / 0.7); }
.kc-fan { position: absolute; z-index: -1; top: 12px; inset-inline-end: 12px; width: 52%; height: 70%; }
.kf-p { position: absolute; top: 0; inset-inline-end: calc(var(--i) * 24%); width: 46%; aspect-ratio: 2 / 3; border-radius: 9px; overflow: hidden; background: rgba(0,0,0,0.3);
  box-shadow: 0 10px 22px -8px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.14); transform: rotate(calc((var(--i) - 1) * -7deg)) translateY(calc(var(--i) * 6px)); transition: transform 300ms; }
.kf-p:nth-child(1) { z-index: 3; } .kf-p:nth-child(2) { z-index: 2; } .kf-p:nth-child(3) { z-index: 1; }
.kf-p img { width: 100%; height: 100%; object-fit: cover; }
.kc-tile:hover .kf-p, .kc-tile:focus-visible .kf-p { transform: rotate(calc((var(--i) - 1) * -10deg)) translateY(calc(var(--i) * 4px - 4px)); }
.kc-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, hsl(var(--kh) 55% 8% / 0.95), transparent 70%); }
.kc-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; margin-bottom: 6px; background: rgba(255,255,255,0.16); color: #fff; }
.kc-ic svg { width: 20px; height: 20px; }
.kc-name { font-weight: 800; font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem); line-height: 1.3; }
.kc-count { font-size: var(--fs-xs); color: rgba(255,255,255,0.72); font-variant-numeric: tabular-nums; }

/* ---- live channels: one compact row ---- */
.kl-track { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 4px var(--gutter) 8px; scroll-snap-type: x proximity; }
.kl-track::-webkit-scrollbar { display: none; }
.kl-ch { flex: none; width: 96px; display: grid; justify-items: center; gap: 7px; scroll-snap-align: start; color: var(--text-2); }
.kl-logo { position: relative; width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center; padding: 14px; overflow: hidden;
  background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1); transition: transform 240ms, box-shadow 240ms; }
.kl-logo b { position: absolute; font-weight: 800; font-size: 20px; color: var(--text-3); }
.kl-logo img { position: relative; max-width: 100%; max-height: 100%; object-fit: contain; }
.kl-name { width: 100%; font-size: 12px; line-height: 1.3; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kl-ch:hover .kl-logo, .kl-ch:focus-visible .kl-logo { transform: translateY(-3px) rotate(-3deg); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3), 0 12px 26px -12px rgba(225,29,42,0.7); }
.kl-ch:hover, .kl-ch:focus-visible { color: #fff; }
.kids-live .rail-title .badge-live { font-size: 10px; }

/* ---- one collection (#/kids?col=...) ---- */
.kcol-head { --kh: 200; position: relative; isolation: isolate; overflow: hidden; margin: 14px var(--gutter) 0; border-radius: var(--k-r);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: clamp(20px, 3.6vw, 44px);
  background: radial-gradient(80% 120% at 0% 0%, hsl(var(--kh) 90% 60% / 0.45), transparent 60%), linear-gradient(160deg, hsl(var(--kh) 55% 20%), #0a0a16 75%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1); }
.kcol-bg i { position: absolute; z-index: -1; border-radius: 50%; opacity: 0.18; background: hsl(calc(var(--kh) + 60) 95% 70%); }
.kcol-bg i:nth-child(1) { width: 180px; height: 180px; top: -60px; inset-inline-end: 30%; }
.kcol-bg i:nth-child(2) { width: 70px; height: 70px; bottom: 14px; inset-inline-end: 44%; opacity: 0.22; background: #ffe066; }
.kcol-bg i:nth-child(3) { width: 34px; height: 34px; top: 28px; inset-inline-start: 46%; opacity: 0.3; background: #ff8fb1; }
.kcol-copy { display: grid; gap: 8px; justify-items: start; min-width: 0; }
.kcol-back { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-s); color: var(--text-2); margin-bottom: 6px; }
.kcol-back:hover { color: #fff; }
.kcol-back svg { width: 16px; height: 16px; }
.kcol-copy h1 { margin: 0; font-size: clamp(1.7rem, 1.1rem + 2.6vw, 3.2rem); font-weight: 800; line-height: 1.2; }
.kcol-copy p { margin: 0; color: var(--text-2); max-width: 52ch; }
.kcol-count { padding: 3px 12px; border-radius: 99px; background: rgba(0,0,0,0.3); font-size: var(--fs-xs); font-weight: 700; font-variant-numeric: tabular-nums; }
.kcol-fan { position: relative; width: clamp(200px, 22vw, 300px); height: clamp(150px, 15vw, 200px); }
.kcol-fan .kf-p { width: 40%; inset-inline-end: calc(var(--i) * 20%); }
.kcol-fan .kf-p:nth-child(4) { z-index: 0; }
.kcol-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 16px var(--gutter) 6px; }
.kcol-chips::-webkit-scrollbar { display: none; }
.kcol-chips .chip { flex: none; height: 40px; }
.kcol-chips .chip svg { width: 16px; height: 16px; }
.kcol-chips .chip small { color: var(--text-3); font-variant-numeric: tabular-nums; }
.kcol-grid { padding-top: 18px; }

/* ---- tablet / phone ---- */
@media (max-width: 860px) {
  .kids-hero { grid-template-columns: minmax(0, 1fr) 132px; min-height: 0; }
  .kh-art { width: 132px; border-radius: 16px; align-self: start; }
  .kc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kcol-fan { display: none; }
  .kcol-head { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 599px) {
  .kids-hero { margin-top: 8px; grid-template-columns: minmax(0, 1fr); padding: 20px 18px 22px; border-radius: 22px; gap: 14px; }
  .kh-art { order: -1; justify-self: stretch; width: 100%; aspect-ratio: 16 / 9; transform: none !important; border-radius: 16px; }
  .kh-art img { object-position: 50% 25%; }
  .kh-copy { gap: 10px; }
  .kh-copy h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  .kh-copy p { font-size: var(--fs-s); -webkit-line-clamp: 2; }
  .kh-copy .th-actions .btn { flex: 1 1 auto; }
  .kids-ages { gap: 8px; padding-top: 14px; }
  .ka-pill { min-height: 42px; padding: 0 12px 0 10px; }
  .kc-grid { gap: 10px; }
  .kc-tile { min-height: 132px; padding: 12px 13px; border-radius: 18px; }
  .kc-ic { width: 32px; height: 32px; border-radius: 10px; margin-bottom: 4px; }
  .kc-name { font-size: 0.95rem; }
  .kc-fan { width: 58%; height: 62%; top: 10px; inset-inline-end: 8px; }
  .kl-ch { width: 78px; }
  .kl-logo { width: 70px; height: 70px; border-radius: 20px; padding: 11px; }
  .kcol-head { margin-top: 8px; border-radius: 22px; padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .kh-art, .kc-tile, .kf-p, .ka-pill, .kl-logo { transition: none; }
  .kh-art:hover, .kc-tile:hover, .kc-tile:hover .kf-p, .ka-pill:hover, .kl-ch:hover .kl-logo { transform: none; }
}

/* ---- collection tiles v2: one full-bleed cover, a colour wash from the text side, big clean title ---- */
.kc-tile.has-cover { min-height: 0; aspect-ratio: 16 / 9; padding: clamp(14px, 1.4vw, 20px); background: hsl(var(--kh) 50% 12%); }
.kc-tile .kc-cover { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: center 35%;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1), filter 600ms; filter: saturate(1.08); }
.kc-tile.has-cover::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(to left, hsl(var(--kh) 70% 14% / 0.92) 0%, hsl(var(--kh) 70% 14% / 0.55) 42%, transparent 75%); }
[dir="ltr"] .kc-tile.has-cover::before { background: linear-gradient(to right, hsl(var(--kh) 70% 14% / 0.92) 0%, hsl(var(--kh) 70% 14% / 0.55) 42%, transparent 75%); }
.kc-tile.has-cover::after { background: linear-gradient(to top, rgba(5,6,9,0.85) 0%, rgba(5,6,9,0.25) 45%, transparent 70%); }
.kc-tile.has-cover .kc-fan { display: none; }
.kc-tile.has-cover .kc-ic { background: hsl(var(--kh) 85% 55% / 0.9); box-shadow: 0 8px 18px -8px hsl(var(--kh) 85% 40%); }
.kc-tile.has-cover .kc-name { font-size: clamp(1.05rem, 0.85rem + 0.6vw, 1.45rem); text-shadow: 0 2px 12px rgba(0,0,0,0.6); }
.kc-tile.has-cover .kc-count { color: rgba(255,255,255,0.85); }
.kc-tile.has-cover:hover .kc-cover, .kc-tile.has-cover:focus-visible .kc-cover { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .kc-tile .kc-cover { transition: none; } }
