/* ============ Dis-Toon-elodeon ============ */
:root {
  --bg: #0b0b12; --bg-img: none; --fg: #fff; --muted: rgba(255,255,255,.66);
  --accent: #7c5cff; --accent-fg: #fff; --accent2: #ff6a00;
  --card-bg: rgba(255,255,255,.05); --card-fg: #fff; --card-muted: rgba(255,255,255,.62);
  --card-radius: 14px; --thumb-radius: 12px; --card-border: 1px solid rgba(255,255,255,.08); --card-shadow: none; --card-pad: 0;
  --card-hover-shadow: 0 10px 30px rgba(0,0,0,.45);
  --head: "Rubik", system-ui, sans-serif; --head-w: 800; --head-tt: none; --head-ls: -.01em; --head-color: var(--fg); --head-shadow: none;
  --body: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --btn-bg: #fff; --btn-fg: #0b0b12; --btn-radius: 999px; --btn-border: 0; --btn-shadow: 0 6px 20px rgba(0,0,0,.35);
  --ghost-bg: rgba(255,255,255,.14); --ghost-fg: #fff; --ghost-border: 1px solid rgba(255,255,255,.22);
  --header-bg: rgba(11,11,18,.82); --header-fg: #fff; --header-border: 1px solid rgba(255,255,255,.06);
  --tab-bg: rgba(12,12,20,.94); --tab-fg: rgba(255,255,255,.6); --tab-on: #fff; --tab-border: 1px solid rgba(255,255,255,.08);
  --chip-bg: rgba(255,255,255,.08); --chip-fg: #fff; --chip-on-bg: #fff; --chip-on-fg: #0b0b12;
  --badge-e-bg: #22c55e; --badge-e-fg: #04210f; --badge-m-bg: #ffb020; --badge-m-fg: #2a1600; --badge-radius: 999px; --badge-font: var(--body);
  --dur-bg: rgba(0,0,0,.78); --dur-fg: #fff;
  --see: var(--fg); --skel: rgba(255,255,255,.07);
  --hh: 58px; --tabh: 62px;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px); --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
  --pad: max(16px, var(--sal)); --padr: max(16px, var(--sar));
  --cardw: clamp(160px, 44vw, 270px);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hh) + var(--sat) + 52px); }
body { margin: 0; min-height: 100vh; background: var(--bg); background-image: var(--bg-img); background-attachment: fixed; color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.35; overflow-x: hidden; -webkit-tap-highlight-color: transparent; padding-bottom: calc(var(--tabh) + var(--sab) + 16px); }
body.noscroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
main { display: block; max-width: 1480px; margin: 0 auto; outline: none; position: relative; z-index: 1; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; padding-top: var(--sat); background: var(--header-bg); color: var(--header-fg); border-bottom: var(--header-border); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.top-in { height: var(--hh); max-width: 1480px; margin: 0 auto; display: flex; align-items: center; gap: 8px; padding: 0 var(--padr) 0 var(--pad); }
.brand { display: flex; align-items: center; min-height: 44px; min-width: 44px; margin-right: auto; }
.brand img { height: 38px; width: auto; max-width: 160px; object-fit: contain; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: inherit; font-size: 20px; }
.icon-btn:hover { background: rgba(127,127,127,.18); }
.topnav { display: none; gap: 4px; }
.topnav a, .topnav button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; font-weight: 800; font-size: 15px; opacity: .78; }
.topnav .on, .topnav a:hover, .topnav button:hover { opacity: 1; background: rgba(127,127,127,.16); }

/* master wordmark */
.wm { display: inline-flex; align-items: center; font-size: 21px; line-height: 1; white-space: nowrap; letter-spacing: 0; }
.wm-dis { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.22em; background: linear-gradient(175deg, #c9f3ff 5%, #48a6ff 45%, #1f4fd8 90%); -webkit-background-clip: text; background-clip: text; color: transparent; position: relative; padding-right: .04em; filter: drop-shadow(0 1px 0 rgba(0,0,0,.5)); }
.wm-dis::before { content: "✦"; position: absolute; left: -.42em; top: -.32em; font-size: .42em; color: #bfefff; -webkit-text-fill-color: #bfefff; filter: drop-shadow(0 0 3px #7fd6ff); }
.wm-dash { font-family: "Rubik", sans-serif; font-weight: 900; color: rgba(255,255,255,.55); margin: 0 .06em; font-size: .9em; }
.wm-toon { display: inline-flex; border: 2px solid #fff; transform: rotate(-2deg); }
.wm-toon b { font-family: "Archivo Black", sans-serif; font-weight: 400; font-size: .74em; width: 1.12em; height: 1.28em; display: grid; place-items: center; text-transform: uppercase; }
.wm-toon b:nth-child(odd) { background: #000; color: #fff; }
.wm-toon b:nth-child(even) { background: #fff; color: #000; }
.wm-elo { font-family: "Lilita One", sans-serif; font-size: 1.04em; color: #fff; background: #ff6600; padding: .14em .42em .2em; border-radius: 46% 54% 40% 60% / 62% 46% 54% 38%; transform: rotate(-3deg); box-shadow: inset 0 -3px 0 rgba(0,0,0,.14); position: relative; }
.wm-elo::after { content: ""; position: absolute; width: .26em; height: .26em; border-radius: 50%; background: #ff6600; right: -.3em; top: -.05em; }

/* ---------- tabbar ---------- */
.tabbar { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); padding: 4px max(6px, var(--sal)) calc(4px + var(--sab)) max(6px, var(--sar)); background: var(--tab-bg); border-top: var(--tab-border); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.tabbar a, .tabbar button { min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--tab-fg); font-size: 11.5px; font-weight: 800; letter-spacing: .01em; }
.tabbar svg { width: 24px; height: 24px; }
.tabbar .on { color: var(--tab-on); }
.tabbar .on svg { transform: scale(1.08); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: var(--btn-radius); background: var(--btn-bg); color: var(--btn-fg); border: var(--btn-border); box-shadow: var(--btn-shadow); font-family: var(--head); font-weight: var(--head-w); font-size: 16px; letter-spacing: .01em; white-space: nowrap; transition: transform .15s ease, box-shadow .15s ease, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn i { font-style: normal; font-size: .9em; }
.btn-ghost { background: var(--ghost-bg); color: var(--ghost-fg); border: var(--ghost-border); box-shadow: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-ghost i { font-size: 1.15em; }
.btn-more { background: var(--ghost-bg); color: var(--fg); border: var(--ghost-border); box-shadow: none; }
.btn-more small { opacity: .7; font-weight: 700; }
.more-wrap { display: flex; justify-content: center; padding: 22px 0 6px; }

/* ---------- rails ---------- */
.rail, .shows, .nets, .sect { margin: 26px 0 0; }
.rail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 var(--padr) 0 var(--pad); margin-bottom: 10px; min-height: 44px; }
.rail-head h1, .rail-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; min-width: 0; font-family: var(--head); font-weight: var(--head-w); text-transform: var(--head-tt); letter-spacing: var(--head-ls); color: var(--head-color); text-shadow: var(--head-shadow); font-size: 21px; line-height: 1.15; }
.rail-head h1 { font-size: 28px; }
.rail-head h2 > span, .rail-head h1 > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 6px 8px; margin: -6px -8px; }
.rail-head small { font-family: var(--body); font-size: 13px; font-weight: 800; opacity: .62; text-shadow: none; letter-spacing: 0; flex: none; }
.rail-logo { height: 30px; width: auto; max-width: 92px; object-fit: contain; flex: none; }
.see { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px 0 10px; font-weight: 800; font-size: 14.5px; color: var(--see); opacity: .9; white-space: nowrap; }
.see:hover { opacity: 1; text-decoration: underline; }
.rail-wrap { position: relative; }
.rail-track { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); padding: 4px var(--padr) 14px var(--pad); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > .card { flex: 0 0 var(--cardw); width: var(--cardw); scroll-snap-align: start; }
.rail-arr { display: none; }

/* ---------- cards ---------- */
.card { position: relative; min-width: 0; background: var(--card-bg); color: var(--card-fg); border-radius: var(--card-radius); border: var(--card-border); box-shadow: var(--card-shadow); padding: var(--card-pad); transition: transform .18s ease, box-shadow .18s ease; }
.card-hit { display: block; width: 100%; text-align: left; border-radius: inherit; color: inherit; }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--thumb-radius); overflow: hidden; background: #222 linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,0)); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--card-hover-shadow); }
.card:hover .thumb img { transform: scale(1.05); }
.kind { position: absolute; left: 7px; top: 7px; padding: 3px 8px; border-radius: var(--badge-radius); font-family: var(--badge-font); font-size: 10.5px; font-weight: 900; letter-spacing: .03em; text-transform: uppercase; line-height: 1.2; }
.kE .kind { background: var(--badge-e-bg); color: var(--badge-e-fg); }
.kM .kind { background: var(--badge-m-bg); color: var(--badge-m-fg); }
.dur { position: absolute; right: 7px; bottom: 7px; padding: 2px 7px; border-radius: 6px; background: var(--dur-bg); color: var(--dur-fg); font-size: 12px; font-weight: 800; line-height: 1.3; }
.netb { display: inline-block; padding: 2px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 900; line-height: 1.3; letter-spacing: .02em; white-space: nowrap; font-family: "Nunito", sans-serif; }
.thumb .netb { position: absolute; left: 7px; bottom: 7px; }
.netb-disney { background: #1e5bff; color: #fff; }
.netb-disneyjr { background: #fff; color: #0a61e0; box-shadow: inset 0 0 0 2px #e4202a; }
.netb-cn { background: #000; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.netb-nick { background: #ff6600; color: #fff; }
.netb-nickjr { background: #00b4c8; color: #fff; }
.netb-nickrewind { background: #b5e61d; color: #2a0f4f; }
.cbody { display: block; padding: 9px 4px 4px; }
.ctitle { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 800; font-size: 14.5px; line-height: 1.25; min-height: 2.5em; overflow-wrap: anywhere; }
.cmeta { display: block; margin-top: 3px; font-size: 12.5px; color: var(--card-muted); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-add, .card-x { position: absolute; top: 0; right: 0; width: 46px; height: 46px; display: grid; place-items: center; z-index: 2; }
.card-add i, .card-x i { font-style: normal; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 20px; font-weight: 800; line-height: 1; border: 1.5px solid rgba(255,255,255,.75); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform .15s; }
.card-add[aria-pressed="true"] i { background: #fff; color: #111; }
.card-add:hover i, .card-x:hover i { transform: scale(1.1); }
.prog { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255,255,255,.3); }
.prog b { display: block; height: 100%; background: var(--accent2); }
.rail-cw .dur { bottom: 12px; }

/* grids */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 16px 12px; padding: 0 var(--padr) 0 var(--pad); }
.show-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 14px 12px; padding: 0 var(--padr) 0 var(--pad); }
.show-tile { position: relative; display: block; min-width: 0; border-radius: var(--card-radius); background: var(--card-bg); color: var(--card-fg); border: var(--card-border); box-shadow: var(--card-shadow); padding: var(--card-pad); transition: transform .18s; }
.show-tile:hover { transform: translateY(-3px); box-shadow: var(--card-hover-shadow); }
.st-name { display: block; padding: 9px 4px 0; font-family: var(--head); font-weight: var(--head-w); font-size: 15px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-count { display: block; padding: 2px 4px 6px; font-size: 12.5px; font-weight: 700; color: var(--card-muted); }

/* skeleton */
.skel { background: var(--skel); position: relative; overflow: hidden; }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent); animation: shim 1.3s infinite; }
@keyframes shim { to { transform: translateX(100%); } }
.skel-hero { height: clamp(300px, 86vw, 520px); }
.skel-card { background: none; border: 0; box-shadow: none; }
.skel-h { display: block; width: 180px; height: 22px; border-radius: 8px; }
.skel-t { display: block; height: 13px; margin: 10px 4px 0; border-radius: 6px; }
.skel-t2 { display: block; height: 11px; width: 60%; margin: 7px 4px 0; border-radius: 6px; }

/* empty */
.empty { text-align: center; padding: 48px 24px; max-width: 520px; margin: 0 auto; }
.empty h2 { font-family: var(--head); font-weight: var(--head-w); margin: 0 0 6px; color: var(--head-color); }
.empty p { color: var(--muted); margin: 0 0 18px; }
.empty-ico { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; font-weight: 900; border: 3px dashed currentColor; opacity: .5; }

/* ---------- home ---------- */
.hero { position: relative; }
.hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.hero-track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; height: clamp(340px, 96vw, 560px); overflow: hidden; background: #111; }
.slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,18,0) 30%, rgba(11,11,18,.72) 64%, #0b0b12 100%); }
.slide-info { position: absolute; left: 0; right: 0; bottom: 30px; padding: 0 var(--padr) 0 var(--pad); }
.slide-logo { display: inline-flex; align-items: center; height: 40px; padding: 5px 12px; border-radius: 12px; margin-bottom: 8px; }
.slide-logo img { height: 100%; width: auto; max-width: 120px; object-fit: contain; }
.slide-logo-disney { background: linear-gradient(135deg, #061a5c, #1747c7); }
.slide-logo-disneyjr { background: #fff; }
.slide-logo-cn { background: #fff; border: 2px solid #000; }
.slide-logo-nick { background: #2b1257; }
.slide-logo-nickjr { background: #5b4bd6; }
.slide-logo-nickrewind { background: #2a0f4f; }
.slide-kicker { margin: 0 0 4px; font-size: 12.5px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #ffd166; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slide-title { margin: 0; font-family: "Rubik", sans-serif; font-weight: 800; font-size: clamp(23px, 6.4vw, 44px); line-height: 1.08; letter-spacing: -.015em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 2px 16px rgba(0,0,0,.5); max-width: 760px; }
.slide-meta { margin: 6px 0 14px; font-weight: 700; color: rgba(255,255,255,.8); font-size: 14px; }
.slide-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.dots { position: absolute; left: 0; right: 0; bottom: 4px; display: flex; justify-content: center; }
.dot { width: 26px; height: 26px; display: grid; place-items: center; }
.dot::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.4); transition: width .25s, background .25s; }
.dot[aria-current="true"]::before { width: 22px; background: #fff; }
.home-tag { margin: 14px var(--padr) 0 var(--pad); text-align: center; font-weight: 800; font-size: 13.5px; color: var(--muted); letter-spacing: .01em; }
.home-tag span { color: #ff8a2a; padding: 0 2px; }

.net-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 var(--padr) 0 var(--pad); }
.net-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 16 / 11; border-radius: 18px; overflow: hidden; padding: 12px 12px 28px; transition: transform .18s ease, box-shadow .18s ease; isolation: isolate; }
.net-tile:hover { transform: translateY(-3px) rotate(-.6deg); box-shadow: 0 14px 30px rgba(0,0,0,.45); }
.net-logo { flex: 1; width: 100%; display: flex; align-items: center; justify-content: center; min-height: 0; }
.net-logo img { max-width: 82%; max-height: 76px; width: auto; height: auto; object-fit: contain; }
.net-count { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 12px; font-weight: 900; letter-spacing: .03em; }
.net-disney { background: radial-gradient(circle at 18% 22%, rgba(255,255,255,.9) 0 1px, transparent 2px), radial-gradient(circle at 78% 30%, #fff 0 1.2px, transparent 2.2px), radial-gradient(circle at 60% 80%, rgba(255,255,255,.8) 0 1px, transparent 2px), radial-gradient(circle at 30% 70%, rgba(170,220,255,.9) 0 1px, transparent 2px), radial-gradient(120% 90% at 50% 0%, #2b6dff, #0a2a8a 55%, #051143); color: #cfe0ff; }
.net-disneyjr { background: radial-gradient(circle at 50% 56%, rgba(30,155,255,.12) 0 9px, transparent 10px) 0 0/44px 44px, radial-gradient(circle at 36% 34%, rgba(30,155,255,.12) 0 6px, transparent 7px) 0 0/44px 44px, radial-gradient(circle at 64% 34%, rgba(30,155,255,.12) 0 6px, transparent 7px) 0 0/44px 44px, linear-gradient(180deg, #ffffff, #e3f4ff); color: #0a61e0; box-shadow: inset 0 -6px 0 #ffc72c; }
.net-disneyjr .net-count { bottom: 12px; }
.net-cn { background: #fff; color: #000; border: 3px solid #000; }
.net-cn::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: conic-gradient(#000 25%, #fff 0 50%, #000 0 75%, #fff 0) 0 0 / 26px 26px; z-index: -1; }
.net-cn .net-count { background: #fff; color: #000; width: max-content; margin: 0 auto; padding: 2px 8px; border: 2px solid #000; bottom: 2px; }
.net-cn .net-logo img { max-height: 64px; }
.net-nick { background: radial-gradient(circle at 88% 10%, #a6dd55 0 12%, transparent 13%), radial-gradient(circle at 6% 94%, #a6dd55 0 9%, transparent 10%), linear-gradient(160deg, #5aa320, #2c6609); color: #fff; box-shadow: inset 0 -7px 0 #ff6600; }
.net-nick .net-count { bottom: 12px; }
.net-nick .net-logo img { filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }
.net-nickjr { background: radial-gradient(circle at 12% 18%, #ffd36b 0 8%, transparent 9%), radial-gradient(circle at 88% 78%, #ff9ec4 0 9%, transparent 10%), radial-gradient(circle at 86% 16%, #a8e6cf 0 6%, transparent 7%), linear-gradient(160deg, #7a68f0, #4b3bc4); color: #fff; box-shadow: inset 0 -7px 0 #00b4c8; }
.net-nickjr .net-count { bottom: 12px; }
.net-nickrewind { background: repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 2px, transparent 2px 4px), linear-gradient(135deg, #2a1050, #0e0618); color: #b5e61d; box-shadow: inset 0 0 0 3px #b5e61d; }
.net-nickrewind::before { content: "PLAY ▶"; position: absolute; left: 10px; top: 6px; font: 16px "VT323", monospace; color: #fff; text-shadow: 1px 0 #ff00c8, -1px 0 #00e5ff; }
.net-nickrewind .net-logo img { max-width: 88%; }

.rail-hub { position: relative; padding-top: 6px; }
.rail-hub::before { content: ""; position: absolute; left: var(--pad); right: var(--padr); top: -8px; height: 3px; border-radius: 3px; }
.rail-hub[data-hub="disney"]::before { background: linear-gradient(90deg, #1e5bff, #58e1ff); }
.rail-hub[data-hub="disneyjr"]::before { background: linear-gradient(90deg, #1e9bff, #e4202a, #ffc72c); }
.rail-hub[data-hub="cn"]::before { background: conic-gradient(#fff 25%, #000 0 50%, #fff 0 75%, #000 0) 0 0 / 6px 6px; height: 6px; }
.rail-hub[data-hub="nick"]::before { background: #ff6600; }
.rail-hub[data-hub="nickjr"]::before { background: linear-gradient(90deg, #00b4c8, #ff9ec4, #ffd36b, #a8e6cf); }
.rail-hub[data-hub="nickrewind"]::before { background: linear-gradient(90deg, #ff6600, #b5e61d, #8a3ffc); }
.rail-hub[data-hub="cn"] .rail-logo { background: #fff; padding: 2px 4px; border-radius: 3px; }
.rail-hub[data-hub="disneyjr"] .rail-logo { background: #fff; padding: 2px 6px; border-radius: 8px; }
.rail-hub[data-hub="nick"] .rail-logo, .rail-hub[data-hub="nickjr"] .rail-logo { height: 38px; }
.rail-hub[data-hub="nickrewind"] .rail-logo { height: 18px; max-width: 120px; }
.rail-hub .rail-head h2 > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- hub hero (shared) ---------- */
.hub-hero { position: relative; overflow: hidden; isolation: isolate; padding: 26px var(--padr) 26px var(--pad); text-align: center; }
.hh-deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hh-in { position: relative; max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.hh-logo { margin: 0; }
.hh-logo img { height: 112px; width: auto; max-width: 78vw; object-fit: contain; }
.hh-tag { margin: 12px 0 14px; font-weight: 800; font-size: 16px; line-height: 1.35; max-width: 34ch; }
.hh-stats { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 520px; }
.hh-stats li { display: flex; flex-direction: column; align-items: center; padding: 8px 2px; border-radius: 14px; background: rgba(255,255,255,.14); }
.hh-stats b { font-family: var(--head); font-weight: var(--head-w); font-size: 20px; line-height: 1.1; }
.hh-stats span { font-size: 11px; font-weight: 800; opacity: .85; text-transform: uppercase; letter-spacing: .03em; line-height: 1.15; text-align: center; }
.drip { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 26px; }
.subtabs { position: sticky; top: calc(var(--hh) + var(--sat)); z-index: 30; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px var(--padr) 10px var(--pad); background: var(--bg); }
.subtabs::-webkit-scrollbar { display: none; }
.subtabs a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--btn-radius); background: var(--chip-bg); color: var(--chip-fg); font-weight: 900; font-size: 14px; border: var(--ghost-border); }
.subtabs a:hover { background: var(--chip-on-bg); color: var(--chip-on-fg); }

/* show + all pages */
.show-hero { position: relative; overflow: hidden; min-height: 300px; display: flex; align-items: flex-end; isolation: isolate; }
.sh-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
img.lb { transform: scale(1.34); }
.sh-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.35) 45%, var(--bg) 100%); }
.sh-in { padding: 70px var(--padr) 18px var(--pad); width: 100%; }
.crumb { display: inline-flex; align-items: center; min-height: 44px; font-weight: 900; font-size: 14px; padding: 0 12px; border-radius: 999px; background: rgba(0,0,0,.45); color: #fff; margin-bottom: 8px; }
.sect-top > .crumb { margin: 14px var(--pad) 4px; background: var(--chip-bg); color: var(--chip-fg); }
.sh-title { margin: 0; font-family: var(--head); font-weight: var(--head-w); text-transform: var(--head-tt); font-size: clamp(30px, 9vw, 60px); line-height: 1.02; color: #fff; text-shadow: 0 3px 18px rgba(0,0,0,.55); letter-spacing: var(--head-ls); overflow-wrap: anywhere; }
.sh-meta { margin: 8px 0 14px; font-weight: 800; color: rgba(255,255,255,.9); text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.sect-top { margin-top: 10px; }

/* search */
.sbox { display: flex; align-items: center; gap: 10px; margin: 16px var(--padr) 12px var(--pad); padding: 0 16px; min-height: 54px; border-radius: 16px; background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.14); }
.sbox:focus-within { border-color: #ff8a2a; box-shadow: 0 0 0 4px rgba(255,138,42,.2); }
.sbox input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: inherit; font: 800 17px var(--body); height: 52px; }
.sbox input::placeholder { color: rgba(255,255,255,.45); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 var(--padr) 6px var(--pad); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--chip-bg); color: var(--chip-fg); font-weight: 900; font-size: 13.5px; border: 1.5px solid transparent; }
.chip small { opacity: .65; margin-left: 2px; }
.chip[aria-pressed="true"] { background: var(--chip-on-bg); color: var(--chip-on-fg); }
.chip-disney[aria-pressed="true"] { background: #1e5bff; color: #fff; }
.chip-disneyjr[aria-pressed="true"] { background: #fff; color: #0a61e0; border-color: #e4202a; }
.chip-cn[aria-pressed="true"] { background: #000; color: #fff; border-color: #fff; }
.chip-nick[aria-pressed="true"] { background: #ff6600; color: #fff; }
.chip-nickjr[aria-pressed="true"] { background: #00b4c8; color: #fff; }
.chip-nickrewind[aria-pressed="true"] { background: #b5e61d; color: #2a0f4f; }
#sres .rail-head { margin-top: 18px; }

/* ---------- sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .2s; }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto; background: #12121c; color: #fff; border-radius: 22px 22px 0 0; padding: 6px var(--padr) calc(18px + var(--sab)) var(--pad); transform: translateY(100%); transition: transform .22s ease; font-family: "Nunito", sans-serif; }
.sheet.on .sheet-scrim { opacity: 1; }
.sheet.on .sheet-panel { transform: none; }
.sheet-grab { width: 42px; height: 5px; border-radius: 9px; background: rgba(255,255,255,.25); margin: 4px auto 6px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head h2 { margin: 0; font: 800 22px "Rubik", sans-serif; }
.sheet-list { display: grid; gap: 10px; padding-top: 6px; }
.sheet-row { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 8px 14px 8px 8px; border-radius: 16px; overflow: hidden; position: relative; isolation: isolate; }
.sheet-row .net-logo { flex: 0 0 104px; height: 56px; }
.sheet-row .net-logo img { max-height: 52px; max-width: 100%; }
.sheet-row.net-cn .net-logo img { max-height: 44px; }
.sheet-row.net-cn::after { width: 40px; height: auto; left: auto; top: 0; right: 0; }
.sr-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sr-txt b { font-size: 16px; font-weight: 900; }
.sr-txt small { font-size: 12.5px; font-weight: 700; opacity: .85; }
.sr-go { font-size: 26px; font-weight: 900; }
.sheet-row.net-cn .sr-go { margin-right: 40px; }

/* ---------- player ---------- */
.player { position: fixed; inset: 0; z-index: 80; background: #07070c; color: #fff; display: flex; flex-direction: column; opacity: 0; transition: opacity .18s; font-family: "Nunito", sans-serif; }
.player.on { opacity: 1; }
.p-bar { flex: none; display: flex; align-items: center; gap: 10px; padding: calc(6px + var(--sat)) var(--padr) 6px var(--pad); min-height: calc(56px + var(--sat)); }
.p-close { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.12); }
.p-close:hover { background: rgba(255,255,255,.22); }
.p-net { display: flex; align-items: center; gap: 8px; }
.p-net .netb { font-size: 12.5px; padding: 4px 10px; }
.p-kind { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; padding: 4px 9px; border-radius: 999px; }
.p-kind.kE { background: #22c55e; color: #04210f; }
.p-kind.kM { background: #ffb020; color: #2a1600; }
.p-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding-bottom: calc(20px + var(--sab)); }
.p-stage { background: #000; }
.p-frame { position: relative; width: 100%; max-width: min(1200px, calc((100vh - 220px) * 16 / 9)); min-width: min(100%, 560px); margin: 0 auto; aspect-ratio: 16 / 9; background: #000; }
.p-frame iframe, .p-frame > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.p-info { max-width: 1200px; margin: 0 auto; padding: 14px var(--padr) 0 var(--pad); }
.p-meta { font-size: 14px; font-weight: 800; color: rgba(255,255,255,.72); }
.p-meta a { color: #ffd166; text-decoration: underline; text-underline-offset: 3px; }
.p-title { margin: 6px 0 12px; font: 800 clamp(20px, 5.4vw, 30px)/1.15 "Rubik", sans-serif; overflow-wrap: anywhere; }
.p-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.player .btn { font-family: "Rubik", sans-serif; font-weight: 800; }
.player .btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; }
.p-uphead { margin: 22px 0 8px; font: 800 18px "Rubik", sans-serif; }
.p-up { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.p-up button { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 6px; border-radius: 12px; min-height: 64px; }
.p-up button:hover { background: rgba(255,255,255,.07); }
.p-up .thumb { flex: 0 0 132px; border-radius: 8px; }
.p-up .dur { font-size: 11px; right: 4px; bottom: 4px; }
.up-t { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.up-t b { font-size: 14.5px; line-height: 1.22; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.up-t small { font-size: 12.5px; color: rgba(255,255,255,.6); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player[data-hub="disney"] .p-bar { background: linear-gradient(90deg, #061a5c, transparent); }
.player[data-hub="nick"] .p-bar { background: linear-gradient(90deg, rgba(255,102,0,.45), transparent); }
.player[data-hub="nickjr"] .p-bar { background: linear-gradient(90deg, rgba(0,180,200,.45), transparent); }
.player[data-hub="nickrewind"] .p-bar { background: linear-gradient(90deg, rgba(181,230,29,.3), transparent); }
.player[data-hub="disneyjr"] .p-bar { background: linear-gradient(90deg, rgba(30,155,255,.4), transparent); }
.player[data-hub="cn"] .p-bar { background: conic-gradient(#fff 25%, #000 0 50%, #fff 0 75%, #000 0) 0 100% / 12px 12px repeat-x, #000; border-bottom: 0; }

.toast { position: fixed; z-index: 90; left: 50%; bottom: calc(var(--tabh) + var(--sab) + 16px); transform: translate(-50%, 20px); background: #fff; color: #111; font-weight: 900; font-size: 14px; padding: 11px 18px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* =================== HOME (master) =================== */
body.hub-home { --bg-img: radial-gradient(900px 500px at 0% 0%, rgba(30,91,255,.16), transparent 60%), radial-gradient(800px 500px at 100% 10%, rgba(255,102,0,.13), transparent 60%); }
body.hub-home .rail-head h2 { font-family: "Rubik", sans-serif; }

/* =================== DISNEY CHANNEL =================== */
body.hub-disney {
  --bg: #06123a; --bg-img: radial-gradient(1100px 600px at 15% -10%, rgba(52,120,255,.45), transparent 60%), radial-gradient(900px 600px at 100% 30%, rgba(88,225,255,.14), transparent 60%), linear-gradient(180deg, #071a54 0%, #06123a 55%, #040b26 100%);
  --fg: #fff; --muted: #b9c8ff; --accent: #58e1ff; --accent2: #58e1ff;
  --head: "Fredoka", sans-serif; --head-w: 700; --head-shadow: 0 0 8px rgba(120,190,255,.5);
  --card-bg: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); --card-border: 1px solid rgba(160,200,255,.25); --card-radius: 18px; --thumb-radius: 14px; --card-pad: 6px; --card-muted: #a9bdf5;
  --card-hover-shadow: 0 0 0 2px #58e1ff, 0 12px 34px rgba(40,120,255,.55);
  --btn-bg: linear-gradient(180deg, #8fd0ff 0%, #2f7bff 48%, #1a4fd6 100%); --btn-fg: #fff; --btn-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 6px 18px rgba(30,90,255,.5);
  --ghost-bg: rgba(255,255,255,.1); --ghost-border: 1px solid rgba(160,200,255,.35);
  --header-bg: rgba(5,15,52,.82); --header-border: 1px solid rgba(120,170,255,.2);
  --tab-bg: rgba(5,14,48,.95); --tab-on: #8fe8ff;
  --badge-e-bg: linear-gradient(180deg, #8fe8ff, #2bb8ff); --badge-e-fg: #031a4a; --badge-m-bg: linear-gradient(180deg, #ffe58a, #ffb52e); --badge-m-fg: #3a2300;
  --chip-bg: rgba(255,255,255,.1); --chip-on-bg: #fff; --chip-on-fg: #0a2a8a;
}
body.hub-disney::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .7; background-image: radial-gradient(1.4px 1.4px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 32% 62%, #cfe8ff, transparent), radial-gradient(1.6px 1.6px at 72% 24%, #fff, transparent), radial-gradient(1px 1px at 86% 70%, #bfe9ff, transparent), radial-gradient(1.2px 1.2px at 52% 88%, #fff, transparent), radial-gradient(1px 1px at 6% 82%, #fff, transparent); background-size: 340px 340px; animation: twinkle 4s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .35; } to { opacity: .85; } }
body.hub-disney .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 32%); pointer-events: none; }
body.hub-disney .hub-hero { padding-top: 34px; background: radial-gradient(60% 70% at 50% 30%, rgba(80,160,255,.45), transparent 70%); }
body.hub-disney .hh-deco { background: radial-gradient(2px 2px at 20% 30%, #fff, transparent), radial-gradient(2.5px 2.5px at 80% 22%, #fff, transparent), radial-gradient(1.5px 1.5px at 66% 72%, #fff, transparent), radial-gradient(2px 2px at 10% 76%, #cfefff, transparent); }
body.hub-disney .hh-deco::before, body.hub-disney .hh-deco::after { content: "✦"; position: absolute; color: #d8f5ff; text-shadow: 0 0 12px #6cd3ff, 0 0 26px #2f7bff; animation: twinkle 2.2s ease-in-out infinite alternate; }
body.hub-disney .hh-deco::before { left: 12%; top: 18%; font-size: 28px; }
body.hub-disney .hh-deco::after { right: 10%; top: 46%; font-size: 20px; animation-delay: 1.1s; }
body.hub-disney .hh-logo img { filter: drop-shadow(0 6px 22px rgba(80,170,255,.6)); }
body.hub-disney .hh-stats li { background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.05)); border: 1px solid rgba(160,210,255,.3); }
body.hub-disney .rail-head h2 > span::after { content: " ✦"; color: #8fe8ff; font-size: .7em; vertical-align: .25em; }
body.hub-disney .subtabs { background: rgba(6,18,58,.92); }

/* =================== DISNEY JR. =================== */
body.hub-disneyjr {
  --bg: #e9f6ff; --bg-img: radial-gradient(circle at 50% 58%, rgba(30,155,255,.08) 0 11px, transparent 12px), radial-gradient(circle at 34% 34%, rgba(30,155,255,.08) 0 7px, transparent 8px), radial-gradient(circle at 66% 34%, rgba(30,155,255,.08) 0 7px, transparent 8px);
  --fg: #0b2a5c; --muted: #3f5f8f; --accent: #e4202a; --accent2: #e4202a;
  --head: "Baloo 2", sans-serif; --head-w: 800; --head-color: #0a61e0; --head-ls: 0;
  --card-bg: #fff; --card-fg: #0b2a5c; --card-muted: #5a77a3; --card-radius: 26px; --thumb-radius: 20px; --card-pad: 7px; --card-border: 0; --card-shadow: 0 6px 0 #b9e0ff, 0 10px 24px rgba(10,97,224,.12);
  --card-hover-shadow: 0 8px 0 #ffc72c, 0 14px 30px rgba(10,97,224,.2);
  --btn-bg: #e4202a; --btn-fg: #fff; --btn-shadow: 0 5px 0 #a3121a; --btn-radius: 999px;
  --ghost-bg: #fff; --ghost-fg: #0a61e0; --ghost-border: 2px solid #b9e0ff;
  --header-bg: rgba(255,255,255,.92); --header-fg: #0a61e0; --header-border: 0;
  --tab-bg: rgba(255,255,255,.96); --tab-fg: #7e9cc8; --tab-on: #e4202a; --tab-border: 1px solid #d5ebff;
  --badge-e-bg: #ffc72c; --badge-e-fg: #3a2600; --badge-m-bg: #1e9bff; --badge-m-fg: #fff;
  --chip-bg: #fff; --chip-fg: #0a61e0; --chip-on-bg: #0a61e0; --chip-on-fg: #fff;
  --skel: rgba(10,97,224,.08); --see: #e4202a;
}
body.hub-disneyjr { background-size: 64px 64px; background-attachment: scroll; }
body.hub-disneyjr .top { box-shadow: 0 4px 0 #ffc72c; }
body.hub-disneyjr .brand img { height: 30px; }
body.hub-disneyjr .hub-hero { background: linear-gradient(180deg, #5fc0ff 0%, #a6dcff 60%, #e9f6ff 100%); padding-bottom: 34px; }
body.hub-disneyjr .hh-deco { background: radial-gradient(circle at 12% 30%, #fff 0 34px, transparent 35px), radial-gradient(circle at 20% 22%, #fff 0 22px, transparent 23px), radial-gradient(circle at 88% 20%, #fff 0 30px, transparent 31px), radial-gradient(circle at 80% 26%, #fff 0 20px, transparent 21px); opacity: .85; }
body.hub-disneyjr .hh-deco::before { content: ""; position: absolute; right: 7%; bottom: 18%; width: 46px; height: 46px; border-radius: 50%; background: #ffc72c; box-shadow: -26px -24px 0 -10px #ffc72c, 26px -24px 0 -10px #ffc72c; }
body.hub-disneyjr .hh-deco::after { content: ""; position: absolute; left: 6%; bottom: 26%; width: 30px; height: 30px; border-radius: 50%; background: #e4202a; box-shadow: -17px -16px 0 -7px #e4202a, 17px -16px 0 -7px #e4202a; }
body.hub-disneyjr .hh-logo { background: #fff; padding: 16px 26px; border-radius: 40px; box-shadow: 0 6px 0 #ffc72c, 0 12px 30px rgba(10,97,224,.18); }
body.hub-disneyjr .hh-logo img { height: 72px; }
body.hub-disneyjr .hh-tag { color: #0b2a5c; }
body.hub-disneyjr .hh-stats li { background: #fff; box-shadow: 0 4px 0 #b9e0ff; }
body.hub-disneyjr .hh-stats b { color: #e4202a; }
body.hub-disneyjr .hh-stats span { color: #0a61e0; }
body.hub-disneyjr .subtabs a { border: 2px solid #b9e0ff; }
body.hub-disneyjr .dur { border-radius: 99px; }
body.hub-disneyjr .card-add i, body.hub-disneyjr .card-x i { background: #fff; color: #0a61e0; border-color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
body.hub-disneyjr .card-add[aria-pressed="true"] i { background: #e4202a; color: #fff; border-color: #e4202a; }
body.hub-disneyjr .sh-title { font-size: clamp(32px, 10vw, 62px); }
body.hub-disneyjr .rail-head h2 > span::before { content: ""; display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: #e4202a; margin-right: 8px; vertical-align: .05em; box-shadow: -7px -7px 0 -3px #e4202a, 7px -7px 0 -3px #e4202a; }
body.hub-disneyjr .see { background: #fff; border-radius: 999px; padding: 0 14px; box-shadow: 0 3px 0 #b9e0ff; }

/* =================== CARTOON NETWORK =================== */
body.hub-cn {
  --bg: #fff; --bg-img: none; --fg: #000; --muted: #333; --accent: #00a2e8; --accent2: #00a2e8;
  --head: "Archivo Black", sans-serif; --head-w: 400; --head-tt: uppercase; --head-ls: -.01em; --head-color: #000;
  --card-bg: #fff; --card-fg: #000; --card-muted: #444; --card-radius: 0; --thumb-radius: 0; --card-border: 3px solid #000; --card-shadow: 5px 5px 0 #000; --card-pad: 0;
  --card-hover-shadow: 7px 7px 0 #00a2e8;
  --btn-bg: #000; --btn-fg: #fff; --btn-radius: 0; --btn-shadow: 4px 4px 0 #00a2e8; --btn-border: 3px solid #000;
  --ghost-bg: #fff; --ghost-fg: #000; --ghost-border: 3px solid #000;
  --header-bg: #fff; --header-fg: #000; --header-border: 4px solid #000;
  --tab-bg: #000; --tab-fg: #8a8a8a; --tab-on: #fff; --tab-border: 0;
  --badge-e-bg: #000; --badge-e-fg: #fff; --badge-m-bg: #ffe600; --badge-m-fg: #000; --badge-radius: 0; --badge-font: "Archivo Black", sans-serif;
  --dur-bg: #fff; --dur-fg: #000;
  --chip-bg: #fff; --chip-fg: #000; --chip-on-bg: #000; --chip-on-fg: #fff;
  --skel: #eee; --see: #000;
}
body.hub-cn .top { -webkit-backdrop-filter: none; backdrop-filter: none; }
body.hub-cn .brand img { height: 40px; }
body.hub-cn .card-hit .cbody { padding: 9px 10px 10px; border-top: 3px solid #000; }
body.hub-cn .ctitle { font-family: "Archivo Black", sans-serif; font-weight: 400; font-size: 13.5px; text-transform: uppercase; letter-spacing: -.005em; line-height: 1.18; min-height: 2.36em; }
body.hub-cn .dur { border: 2px solid #000; border-radius: 0; font-family: "Archivo Black", sans-serif; font-weight: 400; }
body.hub-cn .kind { font-weight: 400; font-size: 10px; border: 2px solid #000; }
body.hub-cn .kE .kind { border-color: #fff; }
body.hub-cn .card:hover { transform: translate(-2px, -2px); }
body.hub-cn .card-add i, body.hub-cn .card-x i { border-radius: 0; background: #fff; color: #000; border: 2px solid #000; }
body.hub-cn .card-add[aria-pressed="true"] i { background: #00a2e8; color: #fff; }
body.hub-cn .rail-track { padding-bottom: 18px; padding-right: 20px; }
body.hub-cn .hub-hero { background: conic-gradient(#000 25%, #fff 0 50%, #000 0 75%, #fff 0) 0 0 / 56px 56px; padding: 30px var(--padr) 30px var(--pad); border-bottom: 4px solid #000; }
body.hub-cn .hh-in { background: #fff; border: 4px solid #000; box-shadow: 8px 8px 0 #00a2e8; padding: 20px 16px 22px; }
body.hub-cn .hh-logo img { height: 100px; }
body.hub-cn .hh-tag { font-family: "Archivo Black", sans-serif; font-weight: 400; text-transform: uppercase; font-size: 14px; letter-spacing: 0; }
body.hub-cn .hh-stats li { background: #000; color: #fff; border-radius: 0; }
body.hub-cn .hh-stats li:nth-child(even) { background: #fff; color: #000; box-shadow: inset 0 0 0 3px #000; }
body.hub-cn .hh-stats b { font-size: 19px; }
body.hub-cn .hh-stats span { font-size: 9.5px; }
body.hub-cn .subtabs { border-bottom: 3px solid #000; }
body.hub-cn .subtabs a { font-family: "Archivo Black", sans-serif; font-weight: 400; text-transform: uppercase; font-size: 13px; }
body.hub-cn .subtabs a:hover { background: #000; color: #fff; }
body.hub-cn .rail-head h2 { font-size: 20px; }
body.hub-cn .rail-head h2::before { content: ""; flex: none; width: 18px; height: 18px; background: conic-gradient(#000 25%, #fff 0 50%, #000 0 75%, #fff 0) 0 0 / 9px 9px; border: 2px solid #000; }
body.hub-cn .see { font-family: "Archivo Black", sans-serif; font-weight: 400; text-transform: uppercase; font-size: 13px; }
body.hub-cn .show-tile .thumb { border-bottom: 3px solid #000; }
body.hub-cn .st-name { font-family: "Archivo Black", sans-serif; font-weight: 400; text-transform: uppercase; font-size: 14px; padding: 9px 10px 0; }
body.hub-cn .st-count { padding: 2px 10px 9px; }
body.hub-cn .show-hero { border-bottom: 4px solid #000; }
body.hub-cn .sh-shade { background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.85) 100%); }
body.hub-cn .sh-title { font-family: "Archivo Black", sans-serif; text-shadow: 4px 4px 0 #000; }
body.hub-cn .crumb, body.hub-cn .sect-top > .crumb { border-radius: 0; background: #000; color: #fff; }
body.hub-cn .btn-play:hover { box-shadow: 6px 6px 0 #ffe600; }

/* =================== NICKELODEON =================== */
body.hub-nick {
  --bg: #ff6600; --bg-img: radial-gradient(700px 400px at 100% 0%, rgba(255,160,60,.6), transparent 60%), radial-gradient(600px 500px at 0% 100%, rgba(225,80,0,.6), transparent 60%);
  --fg: #fff; --muted: #ffe2cc; --accent: #8dc63f; --accent2: #8dc63f;
  --head: "Lilita One", sans-serif; --head-w: 400; --head-ls: .01em; --head-color: #fff; --head-shadow: 3px 3px 0 #c44f00;
  --card-bg: #fff; --card-fg: #2b1100; --card-muted: #8a5a3a; --card-radius: 22px; --thumb-radius: 16px; --card-pad: 6px; --card-border: 0; --card-shadow: 0 6px 0 #c44f00;
  --card-hover-shadow: 0 9px 0 #6fa82a;
  --btn-bg: #8dc63f; --btn-fg: #1f3300; --btn-shadow: 0 5px 0 #5e8f22; --btn-radius: 999px;
  --ghost-bg: #fff; --ghost-fg: #ff6600; --ghost-border: 0;
  --header-bg: #ff6600; --header-fg: #fff; --header-border: 0;
  --tab-bg: #fff; --tab-fg: #c48a62; --tab-on: #ff6600; --tab-border: 0;
  --badge-e-bg: #8dc63f; --badge-e-fg: #1f3300; --badge-m-bg: #ff6600; --badge-m-fg: #fff; --badge-radius: 46% 54% 40% 60% / 60% 42% 58% 40%; --badge-font: "Lilita One", sans-serif;
  --dur-bg: #2b1100; --chip-bg: #fff; --chip-fg: #ff6600; --chip-on-bg: #8dc63f; --chip-on-fg: #1f3300;
  --skel: rgba(255,255,255,.25); --see: #fff;
}
body.hub-nick .top { -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 3px 0 #c44f00; }
body.hub-nick .brand img { height: 46px; }
body.hub-nick .kind { font-weight: 400; font-size: 11.5px; letter-spacing: .04em; padding: 3px 10px 4px; }
body.hub-nick .ctitle { font-weight: 900; }
body.hub-nick .dur { border-radius: 99px; }
body.hub-nick .card-add i, body.hub-nick .card-x i { background: #fff; color: #ff6600; border: 0; box-shadow: 0 2px 0 #c44f00; border-radius: 46% 54% 40% 60% / 60% 42% 58% 40%; }
body.hub-nick .card-add[aria-pressed="true"] i { background: #8dc63f; color: #1f3300; }
body.hub-nick .tabbar { box-shadow: 0 -3px 0 #c44f00; }
body.hub-nick .hub-hero { padding-bottom: 46px; background: radial-gradient(80% 70% at 50% 40%, #ff8a1f, #ff6600 70%); }
body.hub-nick .hh-deco { background: url(img-splat.png) no-repeat -60px -40px / 220px auto, url(img-splat.png) no-repeat calc(100% + 70px) 70% / 240px auto; opacity: .35; filter: brightness(1.35) saturate(.9); }
body.hub-nick .hh-logo img { height: 150px; filter: drop-shadow(5px 7px 0 #b84300); }
body.hub-nick .hh-tag { font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 19px; letter-spacing: .01em; text-shadow: 2px 2px 0 #c44f00; }
body.hub-nick .hh-stats li { background: #fff; color: #ff6600; border-radius: 46% 54% 40% 60% / 60% 42% 58% 40%; padding: 10px 2px; box-shadow: 0 4px 0 #c44f00; }
body.hub-nick .hh-stats span { color: #8a5a3a; }
body.hub-nick .drip { fill: #8dc63f; height: 30px; }
body.hub-nick .subtabs { background: #ff6600; }
body.hub-nick .subtabs a { font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 15.5px; box-shadow: 0 3px 0 #c44f00; }
body.hub-nick .rail-head h2 { font-size: 24px; }
body.hub-nick .show-tile .st-name { font-family: "Lilita One", sans-serif; color: #ff6600; }
body.hub-nick .sh-shade { background: linear-gradient(180deg, rgba(255,102,0,0) 30%, rgba(255,102,0,.75) 75%, #ff6600 100%); }
body.hub-nick .sh-title { text-shadow: 4px 4px 0 #c44f00; }
body.hub-nick .btn-more { background: #fff; color: #ff6600; box-shadow: 0 4px 0 #c44f00; }

/* =================== NICK JR. =================== */
body.hub-nickjr {
  --bg: #f1fbfc; --bg-img: radial-gradient(500px 300px at 100% 0%, rgba(255,158,196,.18), transparent 60%), radial-gradient(500px 340px at 0% 40%, rgba(255,211,107,.18), transparent 60%), radial-gradient(600px 400px at 100% 90%, rgba(168,230,207,.25), transparent 60%);
  --fg: #064b55; --muted: #3c7781; --accent: #ff6600; --accent2: #ff6600;
  --head: "Nunito", sans-serif; --head-w: 900; --head-color: #00899a; --head-ls: -.01em;
  --card-bg: #fff; --card-fg: #064b55; --card-muted: #5b8d95; --card-radius: 28px; --thumb-radius: 20px; --card-pad: 7px; --card-border: 4px solid #a8e6cf; --card-shadow: 0 8px 22px rgba(0,137,154,.12);
  --card-hover-shadow: 0 12px 26px rgba(0,137,154,.22);
  --btn-bg: #ff6600; --btn-fg: #fff; --btn-shadow: 0 5px 0 #c44f00; --btn-radius: 999px;
  --ghost-bg: #fff; --ghost-fg: #00899a; --ghost-border: 3px solid #b9eef4;
  --header-bg: #5b4bd6; --header-fg: #fff; --header-border: 0;
  --tab-bg: rgba(255,255,255,.97); --tab-fg: #7fb0b8; --tab-on: #00a3b5; --tab-border: 1px solid #d3f1f4;
  --badge-e-bg: #ff6600; --badge-e-fg: #fff; --badge-m-bg: #00b4c8; --badge-m-fg: #fff;
  --dur-bg: rgba(6,75,85,.85);
  --chip-bg: #fff; --chip-fg: #00899a; --chip-on-bg: #00b4c8; --chip-on-fg: #fff;
  --skel: rgba(0,180,200,.1); --see: #ff6600;
}
body.hub-nickjr .top { -webkit-backdrop-filter: none; backdrop-filter: none; }
body.hub-nickjr .top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px; background: linear-gradient(90deg, #ff9ec4 0 20%, #ffd36b 0 40%, #a8e6cf 0 60%, #b9d7ff 0 80%, #cdb4ff 0); }
body.hub-nickjr .brand img { height: 46px; }
body.hub-nickjr .card:nth-child(5n+2), body.hub-nickjr .show-tile:nth-child(5n+2) { --card-border: 4px solid #ffd36b; }
body.hub-nickjr .card:nth-child(5n+3), body.hub-nickjr .show-tile:nth-child(5n+3) { --card-border: 4px solid #ff9ec4; }
body.hub-nickjr .card:nth-child(5n+4), body.hub-nickjr .show-tile:nth-child(5n+4) { --card-border: 4px solid #b9d7ff; }
body.hub-nickjr .card:nth-child(5n+5), body.hub-nickjr .show-tile:nth-child(5n+5) { --card-border: 4px solid #cdb4ff; }
body.hub-nickjr .dur { border-radius: 99px; }
body.hub-nickjr .card-add i, body.hub-nickjr .card-x i { background: #fff; color: #00a3b5; border: 0; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
body.hub-nickjr .card-add[aria-pressed="true"] i { background: #ff6600; color: #fff; }
body.hub-nickjr .hub-hero { background: radial-gradient(70% 60% at 50% 30%, #8a7bff, transparent 70%), linear-gradient(180deg, #5b4bd6 0%, #6c5ce7 100%); color: #fff; padding: 30px var(--padr) 48px var(--pad); }
body.hub-nickjr .hh-deco { background: radial-gradient(circle at 10% 20%, #ffd36b 0 14px, transparent 15px), radial-gradient(circle at 90% 26%, #ff9ec4 0 20px, transparent 21px), radial-gradient(circle at 84% 78%, #a8e6cf 0 12px, transparent 13px), radial-gradient(circle at 6% 70%, #cdb4ff 0 18px, transparent 19px), radial-gradient(140% 60% at 50% 120%, rgba(255,255,255,.25), transparent 60%); }
body.hub-nickjr .hh-logo img { height: 150px; filter: drop-shadow(0 8px 14px rgba(20,10,80,.3)); }
body.hub-nickjr .hh-tag { font-size: 17px; font-weight: 900; }
body.hub-nickjr .hh-stats li { background: #fff; color: #00899a; border-radius: 20px; }
body.hub-nickjr .hh-stats li:nth-child(1) b { color: #ff6600; }
body.hub-nickjr .hh-stats li:nth-child(2) b { color: #e2457f; }
body.hub-nickjr .hh-stats li:nth-child(3) b { color: #00a3b5; }
body.hub-nickjr .hh-stats li:nth-child(4) b { color: #8a5cf6; }
body.hub-nickjr .drip { fill: #00b4c8; height: 28px; }
body.hub-nickjr .hh-tag { color: #fff; }
body.hub-nickjr .rail-head h2 > span::before { content: ""; display: inline-block; width: 13px; height: 13px; border-radius: 50%; background: #ff6600; margin-right: 8px; box-shadow: 9px -6px 0 -3px #ff6600; vertical-align: .05em; }
body.hub-nickjr .subtabs { background: #f1fbfc; }
body.hub-nickjr .sh-shade { background: linear-gradient(180deg, rgba(0,180,200,0) 30%, rgba(0,160,180,.7) 75%, #f1fbfc 100%); }
body.hub-nickjr .sh-meta { color: #fff; }
body.hub-nickjr .see { background: #fff; border-radius: 999px; padding: 0 14px; box-shadow: 0 3px 0 #ffd2b3; }

/* =================== NICKREWIND =================== */
body.hub-nickrewind {
  --bg: #24093f; --bg-img: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px), radial-gradient(800px 500px at 0% 0%, rgba(138,63,252,.4), transparent 60%), radial-gradient(700px 500px at 100% 40%, rgba(255,102,0,.2), transparent 60%);
  --fg: #f5ecd7; --muted: #cbb9e8; --accent: #b5e61d; --accent2: #ff6600;
  --head: "Bungee", sans-serif; --head-w: 400; --head-color: #b5e61d; --head-shadow: 2px 2px 0 #120626; --head-ls: .01em;
  --card-bg: #f5ecd7; --card-fg: #1d0a3a; --card-muted: #6a4e8e; --card-radius: 6px; --thumb-radius: 3px; --card-pad: 6px; --card-border: 3px solid #120626; --card-shadow: 6px 6px 0 #b5e61d;
  --card-hover-shadow: 8px 8px 0 #ff6600;
  --btn-bg: #b5e61d; --btn-fg: #1d0a3a; --btn-radius: 6px; --btn-shadow: 5px 5px 0 #ff6600; --btn-border: 3px solid #120626;
  --ghost-bg: #f5ecd7; --ghost-fg: #1d0a3a; --ghost-border: 3px solid #120626;
  --header-bg: rgba(18,6,38,.92); --header-fg: #f5ecd7; --header-border: 0;
  --tab-bg: rgba(18,6,38,.97); --tab-fg: #9c86c4; --tab-on: #b5e61d; --tab-border: 2px solid #ff6600;
  --badge-e-bg: #ff6600; --badge-e-fg: #fff; --badge-m-bg: #b5e61d; --badge-m-fg: #1d0a3a; --badge-radius: 2px; --badge-font: "VT323", monospace;
  --dur-bg: #120626; --dur-fg: #b5e61d;
  --chip-bg: #f5ecd7; --chip-fg: #1d0a3a; --chip-on-bg: #b5e61d; --chip-on-fg: #1d0a3a;
  --skel: rgba(245,236,215,.1); --see: #b5e61d;
}
body.hub-nickrewind::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.16) 0 2px, transparent 2px 4px); mix-blend-mode: multiply; }
body.hub-nickrewind .top { border-bottom: 3px solid #ff6600; box-shadow: 0 3px 0 #b5e61d; }
body.hub-nickrewind .brand img { height: 26px; max-width: 180px; }
body.hub-nickrewind .card { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.8' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E"); }
body.hub-nickrewind .thumb::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.14) 0 1px, transparent 1px 3px); pointer-events: none; }
body.hub-nickrewind .kind { font-weight: 400; font-size: 16px; letter-spacing: .06em; padding: 0 6px; line-height: 1.15; }
body.hub-nickrewind .kE .kind::before { content: "▶ "; }
body.hub-nickrewind .kM .kind::before { content: "◉ REC "; color: #d40000; }
body.hub-nickrewind .dur { font-family: "VT323", monospace; font-size: 17px; font-weight: 400; border-radius: 2px; padding: 0 6px; line-height: 1.15; z-index: 1; }
body.hub-nickrewind .ctitle { font-weight: 900; }
body.hub-nickrewind .card-add i, body.hub-nickrewind .card-x i { border-radius: 4px; background: #f5ecd7; color: #1d0a3a; border: 2px solid #120626; }
body.hub-nickrewind .card-add[aria-pressed="true"] i { background: #b5e61d; }
body.hub-nickrewind .rail-track { padding-bottom: 20px; padding-right: 22px; }
body.hub-nickrewind .hub-hero { padding: 34px var(--padr) 30px var(--pad); background: linear-gradient(180deg, #3b1475, #24093f); border-bottom: 3px solid #ff6600; }
body.hub-nickrewind .hh-deco { background: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 2px, transparent 2px 5px), linear-gradient(transparent 62%, rgba(255,255,255,.07) 62% 66%, transparent 66%); animation: track 5s linear infinite; }
@keyframes track { from { background-position: 0 0, 0 -60px; } to { background-position: 0 0, 0 400px; } }
body.hub-nickrewind .hh-deco::before { content: "PLAY ▶"; position: absolute; left: 14px; top: 10px; font: 24px "VT323", monospace; color: #fff; text-shadow: 2px 0 #ff00c8, -2px 0 #00e5ff; }
body.hub-nickrewind .hh-deco::after { content: "SP  0:00:00"; position: absolute; right: 14px; top: 10px; font: 24px "VT323", monospace; color: #fff; text-shadow: 2px 0 #ff00c8, -2px 0 #00e5ff; }
body.hub-nickrewind .hh-logo { margin-top: 18px; }
body.hub-nickrewind .hh-logo img { height: auto; width: min(420px, 82vw); filter: drop-shadow(4px 4px 0 #120626); }
body.hub-nickrewind .hh-tag { font-family: "VT323", monospace; font-size: 24px; font-weight: 400; line-height: 1.1; color: #f5ecd7; }
body.hub-nickrewind .hh-stats li { background: #f5ecd7; color: #1d0a3a; border-radius: 4px; border: 3px solid #120626; box-shadow: 4px 4px 0 #b5e61d; }
body.hub-nickrewind .hh-stats b { font-family: "Bungee", sans-serif; font-size: 17px; }
body.hub-nickrewind .hh-stats span { font-family: "VT323", monospace; font-size: 15px; font-weight: 400; letter-spacing: .02em; }
body.hub-nickrewind .subtabs { background: #24093f; }
body.hub-nickrewind .subtabs a { border-radius: 4px; font-family: "Bungee", sans-serif; font-weight: 400; font-size: 13px; box-shadow: 3px 3px 0 #ff6600; }
body.hub-nickrewind .rail-head h2 { font-size: 19px; }
body.hub-nickrewind .rail-head h2 > span { -webkit-text-stroke: 0; padding-bottom: 2px; border-bottom: 3px solid #ff6600; }
body.hub-nickrewind .see { font-family: "VT323", monospace; font-size: 21px; font-weight: 400; }
body.hub-nickrewind .st-name { font-family: "Bungee", sans-serif; font-size: 13.5px; color: #1d0a3a; }
body.hub-nickrewind .sh-title { color: #b5e61d; text-shadow: 4px 4px 0 #ff6600; }
body.hub-nickrewind .crumb { border-radius: 4px; font-family: "VT323", monospace; font-size: 20px; font-weight: 400; }
body.hub-nickrewind .btn { font-family: "Bungee", sans-serif; font-weight: 400; }

/* ---------- responsive ---------- */
@media (min-width: 700px) {
  :root { --cardw: 240px; --pad: max(28px, var(--sal)); --padr: max(28px, var(--sar)); }
  .net-grid { grid-template-columns: repeat(3, 1fr); }
  .grid, .show-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px 16px; }
  .hh-logo img { height: 140px; }
  .rail-head h2 { font-size: 24px; }
}
@media (min-width: 1000px) {
  :root { --cardw: 268px; --pad: max(40px, var(--sal)); --padr: max(40px, var(--sar)); }
  body { padding-bottom: 40px; }
  .tabbar { display: none; }
  .topnav { display: flex; }
  .brand { margin-right: 16px; }
  .topnav { margin-right: auto; }
  .wm { font-size: 25px; }
  .net-grid { grid-template-columns: repeat(6, 1fr); }
  .net-tile { aspect-ratio: 4 / 3.2; }
  .slide { height: min(64vh, 600px); }
  .slide-shade { background: linear-gradient(90deg, rgba(11,11,18,.92) 0%, rgba(11,11,18,.55) 42%, rgba(11,11,18,0) 70%), linear-gradient(180deg, rgba(11,11,18,0) 70%, #0b0b12 100%); }
  .slide-info { bottom: 64px; max-width: 640px; }
  .hub-hero { padding-top: 44px; padding-bottom: 44px; }
  .toast { bottom: 28px; }
  .sheet-panel { left: 50%; right: auto; bottom: 50%; width: 520px; border-radius: 22px; transform: translate(-50%, 60%); opacity: 0; transition: transform .22s, opacity .22s; }
  .sheet.on .sheet-panel { transform: translate(-50%, 50%); opacity: 1; }
  .sheet-grab { display: none; }
  .show-hero { min-height: 420px; }
  .sh-in { max-width: 1480px; margin: 0 auto; }
}
@media (hover: hover) and (min-width: 700px) {
  .rail-arr { display: grid; place-items: center; position: absolute; top: 0; bottom: 14px; width: 48px; z-index: 5; font-size: 36px; font-weight: 900; color: #fff; background: linear-gradient(90deg, rgba(0,0,0,.6), transparent); opacity: 0; transition: opacity .2s; }
  .rail-arr.next { right: 0; background: linear-gradient(270deg, rgba(0,0,0,.6), transparent); }
  .rail-arr.prev { left: 0; }
  .rail-wrap:hover .rail-arr:not(:disabled) { opacity: 1; }
  .rail-arr:disabled { pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.sheet-row.net-nickrewind::before { display: none; }

/* ---------- live TV ---------- */
.live-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 3px 7px; border-radius: 6px; background: #e8112d; color: #fff; font: 900 11px/1.2 "Nunito", sans-serif; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; flex: none; box-shadow: 0 2px 10px rgba(232,17,45,.45); -webkit-text-stroke: 0; text-shadow: none; }
.live-badge i, .live-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; display: inline-block; animation: livePulse 1.4s ease-in-out infinite; }
.live-dot { background: #e8112d; margin-right: 7px; }
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.rail-head h2 .live-badge, .rail-head h1 .live-badge { margin-right: 10px; font-size: 12px; }
.rail-head h1 { display: flex; align-items: center; }
.lprog { display: block; height: 5px; border-radius: 9px; background: rgba(127,127,127,.3); overflow: hidden; }
.lprog b { display: block; height: 100%; background: #e8112d; border-radius: inherit; transition: width .9s linear; }

.live-rail { margin-top: 18px; }
.live-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 330px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--padr) 10px var(--pad); scrollbar-width: none; }
.live-track::-webkit-scrollbar { display: none; }
.live-card { scroll-snap-align: start; display: flex; flex-direction: column; min-width: 0; border-radius: 16px; overflow: hidden; background: #14141f; color: #fff; border: 2px solid transparent; transition: transform .15s, border-color .15s; font-family: "Nunito", sans-serif; }
.live-card:hover { transform: translateY(-2px); }
.live-card:focus-visible { border-color: #fff; }
.lc-nick { background: linear-gradient(160deg, #ff7a1a, #e05500); }
.lc-nick.lc-jr { background: linear-gradient(160deg, #6f5de6, #4b3bc4); }
.lc-disney { background: linear-gradient(160deg, #1d4fd6, #06123a); }
.lc-disney.lc-jr { background: linear-gradient(160deg, #1e9bff, #0a61e0); }
.lc-cn { background: #000; border-color: #fff; }
.lc-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.lc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lc-thumb .live-badge { position: absolute; left: 8px; top: 8px; }
.lc-logo { position: absolute; right: 8px; top: 6px; height: 34px; max-width: 40%; display: flex; align-items: center; padding: 3px 7px; border-radius: 9px; background: rgba(0,0,0,.55); }
.lc-logo img { max-height: 28px; width: auto; max-width: 100%; object-fit: contain; }
.lc-cn .lc-logo { background: #fff; border-radius: 0; }
.lc-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; min-width: 0; }
.lc-ch { font-size: 11.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.lc-title { font: 800 16px/1.2 "Rubik", sans-serif; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; min-height: 2.4em; }
.lc-meta, .lc-next { font-size: 12.5px; font-weight: 700; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-body .lprog { margin: 3px 0 1px; background: rgba(255,255,255,.28); }
.lc-body .lprog b { background: #fff; }

.live-guide .lg-sub { margin: -4px var(--padr) 14px var(--pad); color: var(--muted); font-weight: 700; font-size: 14px; max-width: 760px; }
.lg-row { margin: 0 var(--padr) 22px var(--pad); padding: 14px; border-radius: 18px; background: var(--card-bg); border: var(--card-border); min-width: 0; }
.lg-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.lg-logo { height: 40px; display: flex; align-items: center; }
.lg-logo img { max-height: 40px; width: auto; max-width: 110px; }
.lg-cn .lg-logo { background: #fff; padding: 2px 6px; }
.lg-head h2 { margin: 0; flex: 1; min-width: 0; font: 800 20px "Rubik", sans-serif; }
.lg-watch { min-height: 42px; padding: 0 16px; font-size: 15px; }
.lg-body { display: grid; gap: 14px; min-width: 0; }
.lg-body .live-card { max-width: 420px; }
.lg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; min-width: 0; }
.gr { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; min-width: 0; }
.gr:nth-child(odd) { background: rgba(127,127,127,.09); }
.gr-now { background: rgba(232,17,45,.16) !important; }
.gr-time { flex: 0 0 74px; display: flex; flex-direction: column; font-size: 14px; }
.gr-time small { font-size: 11px; opacity: .7; font-weight: 700; }
.gr-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gr-txt b { font-size: 14.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gr-txt small { font-size: 12px; font-weight: 700; opacity: .72; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.live-ch { padding-bottom: 20px; }
.lv-stage { position: relative; background: #000; }
.lv-frame { position: relative; width: 100%; max-width: min(1280px, calc((100vh - var(--hh) - 170px) * 16 / 9)); min-width: min(100%, 560px); margin: 0 auto; aspect-ratio: 16 / 9; background: #000; }
.lv-frame iframe, .lv-frame > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lv-bug { position: absolute; right: 10px; top: 10px; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 8px; background: rgba(0,0,0,.6); color: #fff; font: 800 12px "Nunito", sans-serif; pointer-events: none; max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-slate { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; text-align: center; padding: 20px; background: radial-gradient(circle at 50% 40%, #23233a, #050508); color: #fff; font: 800 17px/1.35 "Nunito", sans-serif; }
.lv-slate-logo img { max-height: 70px; width: auto; margin: 0 auto 12px; }
.lv-slate p { max-width: 520px; margin: 0 auto; }
.lv-info { max-width: 1280px; margin: 0 auto; padding: 14px var(--padr) 0 var(--pad); display: grid; gap: 14px; }
.lv-now { min-width: 0; }
.lv-block { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 900; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.lv-title { margin: 6px 0 4px; font: 800 clamp(20px, 5.4vw, 30px)/1.15 "Rubik", sans-serif; color: var(--fg); overflow-wrap: anywhere; text-transform: none; }
.lv-meta, .lv-next { margin: 0 0 8px; font-weight: 700; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.lv-next { margin: 8px 0 0; }
.lv-next b { color: var(--fg); }
.lv-prog { max-width: 640px; }
.lv-ctl { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.lv-ctl .btn { min-height: 46px; padding: 0 16px; }
.lv-ctl small { font-size: 12px; opacity: .8; font-family: "Nunito", sans-serif; font-weight: 800; }
.lv-guide { max-width: 1280px; margin: 22px auto 0; padding: 0 var(--padr) 0 var(--pad); }
.lv-guide h2 { margin: 0 0 8px; font: 800 20px "Rubik", sans-serif; color: var(--head-color); }
body.hub-cn .lv-guide h2, body.hub-cn .lv-title { font-family: "Archivo Black", sans-serif; font-weight: 400; }
body.hub-nick .gr-now { background: rgba(0,0,0,.18) !important; }
body.hub-nick .live-badge { box-shadow: 0 0 0 2px #fff; }
.sheet-live { background: linear-gradient(120deg, #e8112d, #7a0a1c); color: #fff; }
.sheet-live .net-logo { justify-content: center; }
.sheet-live .live-badge { font-size: 16px; padding: 6px 12px; background: #fff; color: #e8112d; }
.sheet-live .live-badge i { background: #e8112d; }
.nav-live { gap: 0; }

@media (min-width: 700px) {
  .live-track { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; }
  .lg-body { grid-template-columns: minmax(260px, 360px) 1fr; align-items: start; }
}
@media (min-width: 1000px) {
  .lv-info { grid-template-columns: 1fr auto; align-items: start; }
}
/* TV-size viewports (Android TV / Fire TV WebView): the player fills the screen */
@media (min-width: 880px) and (max-height: 620px) {
  body.page-live .top { position: relative; }
  body.page-live .tabbar { display: none; }
  body.page-live { padding-bottom: 24px; }
  body.page-live .lv-stage { height: 100vh; }
  body.page-live .lv-frame { max-width: none; min-width: 0; width: 100%; height: 100%; aspect-ratio: auto; }
  body.page-live .lv-info { grid-template-columns: 1fr auto; align-items: start; }
}

/* =================== PBS KIDS =================== */
.kF .kind { background: var(--badge-f-bg, #ffd400); color: var(--badge-f-fg, #1a2378); }
.p-kind.kF { background: #ffd400; color: #1a2378; }
.netb-pbskids { background: #2638c4; color: #fff; box-shadow: inset 0 0 0 2px #9bd22d; }
.slide-logo-pbskids { background: transparent; padding: 0; height: 58px; }
.slide-logo-pbskids img { max-width: 58px; }
.net-pbskids { grid-column: 1 / -1; aspect-ratio: auto; min-height: 120px; background: radial-gradient(circle at 8% 22%, #ffd400 0 9px, transparent 10px), radial-gradient(circle at 93% 30%, #9bd22d 0 13px, transparent 14px), radial-gradient(circle at 86% 82%, #fff 0 6px, transparent 7px), radial-gradient(circle at 16% 84%, #9bd22d 0 7px, transparent 8px), linear-gradient(150deg, #3a4fe0, #1d2ba3); color: #fff; box-shadow: inset 0 -7px 0 #9bd22d; }
.net-pbskids .net-logo img { max-height: 84px; filter: drop-shadow(0 4px 10px rgba(0,0,20,.35)); }
.net-pbskids .net-count { bottom: 12px; font-family: "Fredoka", sans-serif; font-weight: 700; }
.rail-hub[data-hub="pbskids"]::before { background: linear-gradient(90deg, #2638c4 0 34%, #9bd22d 0 67%, #ffd400 0); height: 5px; }
.rail-hub[data-hub="pbskids"] .rail-logo { height: 40px; }
.chip-pbskids[aria-pressed="true"] { background: #2638c4; color: #fff; }
.player[data-hub="pbskids"] .p-bar { background: linear-gradient(90deg, rgba(38,56,196,.6), transparent); }
.lc-pbskids { background: linear-gradient(160deg, #3a4fe0, #1d2ba3); box-shadow: inset 0 -5px 0 #9bd22d; }
.lc-pbskids .lc-logo { background: transparent; padding: 0; height: 40px; }
.lc-pbskids .lc-logo img { max-height: 40px; }
.lc-pbskids .lc-title { font-family: "Fredoka", sans-serif; font-weight: 700; }
.lg-pbskids .lg-logo img { max-height: 44px; }
.sect-note { margin: -4px var(--padr) 10px var(--pad); font-size: 13px; font-weight: 700; color: var(--muted); }
@media (min-width: 700px) {
  .net-pbskids { min-height: 130px; }
  .live-track { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .net-grid { grid-template-columns: repeat(7, 1fr); }
  .net-pbskids { grid-column: auto; aspect-ratio: 4 / 3.2; min-height: 0; }
  .live-track { grid-template-columns: repeat(4, 1fr); }
}
body.hub-pbskids {
  --bg: #eef3ff; --bg-img: radial-gradient(520px 320px at 100% 0%, rgba(155,210,45,.16), transparent 60%), radial-gradient(520px 360px at 0% 45%, rgba(255,212,0,.14), transparent 60%), radial-gradient(640px 420px at 100% 95%, rgba(38,56,196,.10), transparent 60%);
  --fg: #141d6b; --muted: #4a5596; --accent: #2638c4; --accent2: #9bd22d;
  --head: "Fredoka", "Nunito", sans-serif; --head-w: 700; --head-color: #2638c4; --head-ls: 0;
  --body: "Nunito", system-ui, sans-serif;
  --card-bg: #fff; --card-fg: #141d6b; --card-muted: #5a649f; --card-radius: 24px; --thumb-radius: 18px; --card-pad: 7px; --card-border: 0; --card-shadow: 0 6px 0 #c9d3ff, 0 10px 22px rgba(38,56,196,.12);
  --card-hover-shadow: 0 8px 0 #9bd22d, 0 14px 28px rgba(38,56,196,.22);
  --btn-bg: #9bd22d; --btn-fg: #112070; --btn-shadow: 0 5px 0 #5f8f0c; --btn-radius: 999px;
  --ghost-bg: #fff; --ghost-fg: #2638c4; --ghost-border: 3px solid #c9d3ff;
  --header-bg: #2638c4; --header-fg: #fff; --header-border: 0;
  --tab-bg: rgba(255,255,255,.97); --tab-fg: #8590c8; --tab-on: #2638c4; --tab-border: 1px solid #d7deff;
  --badge-e-bg: #9bd22d; --badge-e-fg: #112070; --badge-m-bg: #2638c4; --badge-m-fg: #fff; --badge-f-bg: #ffd400; --badge-f-fg: #1a2378; --badge-font: "Fredoka", sans-serif;
  --dur-bg: rgba(20,29,107,.85);
  --chip-bg: #fff; --chip-fg: #2638c4; --chip-on-bg: #2638c4; --chip-on-fg: #fff;
  --skel: rgba(38,56,196,.09); --see: #2638c4;
}
body.hub-pbskids .top { -webkit-backdrop-filter: none; backdrop-filter: none; }
body.hub-pbskids .top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px; background: linear-gradient(90deg, #9bd22d 0 33%, #ffd400 0 66%, #fff 0); }
body.hub-pbskids .brand img { height: 46px; }
body.hub-pbskids .kind { font-weight: 600; font-size: 11.5px; letter-spacing: .02em; }
body.hub-pbskids .dur { border-radius: 99px; }
body.hub-pbskids .card-add i, body.hub-pbskids .card-x i { background: #fff; color: #2638c4; border: 0; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
body.hub-pbskids .card-add[aria-pressed="true"] i { background: #9bd22d; color: #112070; }
body.hub-pbskids .ctitle { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 15px; }
body.hub-pbskids .st-name { font-weight: 700; }
body.hub-pbskids .hub-hero { background: radial-gradient(70% 60% at 50% 25%, #4d63ff, transparent 70%), linear-gradient(180deg, #2638c4 0%, #2f45d6 100%); color: #fff; padding: 30px var(--padr) 50px var(--pad); }
body.hub-pbskids .hh-deco { background: radial-gradient(circle at 9% 22%, #ffd400 0 14px, transparent 15px), radial-gradient(circle at 91% 24%, #9bd22d 0 22px, transparent 23px), radial-gradient(circle at 85% 80%, #fff 0 10px, transparent 11px), radial-gradient(circle at 6% 72%, #9bd22d 0 16px, transparent 17px), radial-gradient(circle at 30% 90%, #ffd400 0 8px, transparent 9px), radial-gradient(140% 60% at 50% 125%, rgba(255,255,255,.22), transparent 60%); }
body.hub-pbskids .hh-logo img { height: 150px; filter: drop-shadow(0 8px 16px rgba(5,10,70,.35)); }
body.hub-pbskids .hh-tag { color: #fff; font-family: "Fredoka", sans-serif; font-size: 18px; font-weight: 600; }
body.hub-pbskids .hh-stats li { background: #fff; border-radius: 20px; box-shadow: 0 4px 0 #9bd22d; }
body.hub-pbskids .hh-stats b { color: #2638c4; }
body.hub-pbskids .hh-stats li:nth-child(3) b { color: #d99a00; }
body.hub-pbskids .hh-stats span { color: #4a5596; }
body.hub-pbskids .hub-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: radial-gradient(circle at 12px -2px, transparent 14px, #eef3ff 15px) 0 0 / 24px 22px repeat-x; }
body.hub-pbskids .rail-head h2 > span::before { content: ""; display: inline-block; width: 13px; height: 13px; border-radius: 50%; background: #9bd22d; margin-right: 8px; box-shadow: 9px -6px 0 -3px #ffd400; vertical-align: .05em; }
body.hub-pbskids .subtabs { background: #eef3ff; }
body.hub-pbskids .subtabs a { font-family: "Fredoka", sans-serif; font-weight: 600; }
body.hub-pbskids .sh-shade { background: linear-gradient(180deg, rgba(38,56,196,0) 25%, rgba(38,56,196,.75) 72%, #eef3ff 100%); }
body.hub-pbskids .sh-title { font-family: "Fredoka", sans-serif; font-weight: 700; color: #fff; text-shadow: 0 4px 0 #1d2ba3; }
body.hub-pbskids .sh-meta { color: #fff; font-weight: 800; }
body.hub-pbskids .see { background: #fff; border-radius: 999px; padding: 0 14px; box-shadow: 0 3px 0 #c9d3ff; }
body.hub-pbskids .btn { font-family: "Fredoka", sans-serif; font-weight: 700; }
body.hub-pbskids .sect-movies .rail-head h2 > span::before, body.hub-pbskids .rail-movies .rail-head h2 > span::before { background: #ffd400; box-shadow: 9px -6px 0 -3px #9bd22d; }
body.hub-pbskids .gr-now { background: rgba(155,210,45,.25) !important; }
/* PBS KIDS launch slide */
.slide-promo .slide-shade { background: linear-gradient(180deg, rgba(16,26,110,0) 22%, rgba(16,26,110,.78) 60%, #0b0b12 100%); }
.slide-promo .promo-logo { height: 76px; }
.slide-promo .promo-logo img { max-width: 76px; }
.slide-promo .slide-kicker { color: #ffcf00; }
.slide-promo .slide-title { font-family: "Fredoka", "Rubik", sans-serif; }
.slide-promo .btn-play { background: #7cc242; color: #fff; text-decoration: none; }
.slide-promo .btn-ghost { text-decoration: none; }
@media (min-width: 900px) { .slide-promo .slide-shade { background: linear-gradient(90deg, rgba(16,26,110,.94) 0%, rgba(16,26,110,.6) 44%, rgba(16,26,110,0) 72%), linear-gradient(180deg, rgba(11,11,18,0) 70%, #0b0b12 100%); } .slide-promo .promo-logo { height: 96px; } .slide-promo .promo-logo img { max-width: 96px; } }
@media (min-width: 900px) and (max-height: 700px) { .slide-promo .promo-logo { height: 52px; margin-bottom: 4px; } .slide-promo .promo-logo img { max-width: 52px; } }

/* DONATE (2026-11-19, Cash App $WrestleWorldPlus; button styles + TV QR modal from donate.js): header pill, subtext on wide screens */
.top-in .hkd-btn.hkd-hdr { margin-left: auto; min-height: 36px; padding: 4px 13px; }
.top-in .hkd-btn.hkd-hdr .hkd-s { display: none; }
@media (min-width: 1000px) { .top-in .hkd-btn.hkd-hdr { margin-left: 0; } .top-in .hkd-btn.hkd-hdr .hkd-s { display: block; } }
@media (max-width: 699px) { .top-in .hkd-btn.hkd-hdr { display: none; } }
.tabbar { grid-template-columns: repeat(6, 1fr); }
.tabbar a.hkd-tab { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; min-height: 54px; display: flex; flex-direction: column; gap: 3px; color: var(--tab-fg) !important; font-size: 11.5px; font-weight: 800; letter-spacing: .01em; filter: none; }
.tabbar a.hkd-tab .hkd-ic { width: 24px; height: 24px; border-radius: 7px; font-size: 16px; background: linear-gradient(180deg,#1fdb5f,#00b13a); color: #fff; }
html.tv .tabbar a.hkd-tab.hkd-btn { display: flex !important; }
