/* ZuzuLand public site - additions on top of the shared studio theme (studio.css, owned by the WebAdmin). */
.brand-cover { width: 34px; height: 34px; border-radius: 9px; border: 1px solid rgba(201, 164, 76, .45); object-fit: cover; }

/* hero */
.zl-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem; align-items: center;
    margin-top: 1.4rem; padding: 2rem; border-radius: 18px; overflow: hidden; border: 1px solid rgba(201, 164, 76, .3);
    background: radial-gradient(700px 360px at 85% 20%, rgba(201, 164, 76, .12), transparent 70%), linear-gradient(180deg, #17161d, #111015); }
.zl-hero-art { order: 2; justify-self: center; }
.zl-hero-art img { width: min(360px, 100%); aspect-ratio: 1; object-fit: cover; border-radius: 18px; border: 1px solid rgba(201, 164, 76, .35);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, .02), 0 30px 70px rgba(0, 0, 0, .55); }
.zl-kicker { font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: .4rem; }
.zl-title { font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; letter-spacing: .05em; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: .95; color: var(--gold-2); margin: 0 0 .8rem; }
.zl-lead { font-size: 1.08rem; color: #d9d4cb; max-width: 40rem; }
.zl-stats { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.2rem; color: var(--muted); font-size: .85rem; }
.zl-stats b { font-family: "Bebas Neue", Impact, sans-serif; font-size: 1.6rem; color: var(--text); margin-right: .25rem; font-weight: 400; }
@media (max-width: 767.98px) { .zl-hero { grid-template-columns: 1fr; padding: 1.3rem; } .zl-hero-art { order: 0; } .zl-hero-art img { width: 200px; } }

/* featured + rails */
.zl-featured { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.4rem; align-items: center; }
.zl-featured-art { position: relative; display: block; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: #000; }
.zl-featured-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zl-featured-art.portrait img { object-fit: contain; }
.zl-featured-art:hover .poster-play { opacity: 1; }
@media (max-width: 767.98px) { .zl-featured { grid-template-columns: 1fr; } }
.zl-rail { margin-top: 1.6rem; }
.zl-rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 300px); gap: 1rem; overflow-x: auto; padding-bottom: .6rem; scroll-snap-type: x mandatory; }
.zl-rail-item { scroll-snap-align: start; }

/* chips, posters */
.zl-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .8rem; }
.zl-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line-2);
    color: #d6d1c8; text-decoration: none; font-size: .85rem; min-height: 36px; }
.zl-chip:hover { border-color: rgba(201, 164, 76, .6); color: var(--text); }
.zl-chip.on { background: var(--gold); border-color: var(--gold); color: #17130a; font-weight: 600; }
.small-chips .zl-chip { font-size: .78rem; min-height: 30px; }
.poster-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.cat-link { font-size: .78rem; color: var(--gold-2); text-decoration: none; }
.poster-desc { font-size: .82rem; color: #b8b3bd; margin: .35rem 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* categories */
.zl-category { display: flex; gap: 1rem; align-items: center; text-decoration: none; color: var(--text); height: 100%; transition: border-color .15s, transform .15s; }
.zl-category:hover { border-color: rgba(201, 164, 76, .5); transform: translateY(-2px); color: var(--text); }
.zl-category-art { flex: 0 0 120px; aspect-ratio: 16/10; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: #0d0d11; font-size: 2rem; color: var(--gold); }
.zl-category-art img { width: 100%; height: 100%; object-fit: cover; }
.zl-category-text { display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; min-width: 0; }
@media (max-width: 575.98px) {
    .zl-category { gap: .8rem; }
    .zl-category-art { flex-basis: 84px; font-size: 1.5rem; }
    .zl-category-text .section-title { font-size: 1.3rem; }
    .zl-category-text .section-title i { display: none; }   /* the big icon on the left already shows it */
}

/* watch / about */
.zl-moral { display: flex; gap: .6rem; align-items: flex-start; padding: .7rem .9rem; border-radius: 10px; border: 1px solid rgba(201, 164, 76, .35); background: rgba(201, 164, 76, .06); }
.zl-moral i { color: var(--gold-2); }
.zl-credits, .zl-lyrics { white-space: pre-wrap; font-family: inherit; font-size: .82rem; color: #cfcad3; margin: 0; }
.zl-lyrics { font-size: .92rem; line-height: 1.6; margin-top: 1rem; }
.zl-theme-cover { width: 100%; max-width: 320px; display: block; margin: 0 auto; border-radius: 14px; border: 1px solid rgba(201, 164, 76, .35); }
#themeBtn.playing, #bgBtn.playing { background: var(--gold); color: #17130a; border-color: var(--gold); }

/* ZuzuLand series: friends, places, episode schedule */
.zl-friend { display: flex; gap: 1rem; align-items: flex-start; }
.zl-friend-face { width: 104px; height: 104px; flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--gold), 0 10px 26px rgba(0, 0, 0, .5); }
.zl-friend-soon { display: grid; place-items: center; background: linear-gradient(135deg, #3ba9ff, #ff7eb6); color: #fff; font-family: "Bebas Neue", Impact, sans-serif; font-size: 2.8rem; }
.zl-friend-name { font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; letter-spacing: .05em; font-size: 1.6rem; color: var(--gold-2); margin: 0; }
.zl-place img, .zl-place-soon { width: 100%; height: 170px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line-2); }
.zl-place-soon { display: grid; place-items: center; font-size: 2.2rem; color: var(--gold); background: linear-gradient(135deg, rgba(59, 169, 255, .25), rgba(255, 126, 182, .25)); }
.zl-cast { display: flex; flex-wrap: wrap; gap: 1rem; }
.zl-cast-item { display: flex; flex-direction: column; align-items: center; gap: .35rem; text-decoration: none; color: var(--text); font-size: .85rem; }
.zl-cast-item img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--gold); transition: transform .15s; }
.zl-cast-item:hover img { transform: translateY(-3px) scale(1.04); }
.zl-next { display: block; text-decoration: none; color: var(--text); border-color: rgba(201, 164, 76, .5); }
.zl-next:hover { color: var(--text); border-color: var(--gold); }
.zl-ep { display: flex; gap: 1rem; align-items: flex-start; padding: .7rem 1rem; }
.zl-ep.next { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 10px 30px rgba(0, 0, 0, .35); }
.zl-ep.aired { opacity: .7; }
.zl-ep-num { font-family: "Bebas Neue", Impact, sans-serif; font-size: 1.7rem; color: var(--gold-2); min-width: 2.8rem; line-height: 1.1; }
.zl-ep-title { font-size: 1.05rem; font-weight: 600; margin: 0; }
.zl-gems { display: flex; flex-wrap: wrap; gap: .5rem; }
.zl-gem-step { display: flex; flex-direction: column; align-items: center; min-width: 78px; padding: .5rem; border: 1px solid var(--line-2); border-radius: 12px; text-decoration: none; color: var(--muted); font-size: .85rem; }
.zl-gem-step.found { color: var(--text); border-color: rgba(201, 164, 76, .6); }
.zl-gem-step small { font-size: .7rem; color: var(--muted); }
.zl-gem { display: inline-block; width: 12px; height: 12px; transform: rotate(45deg); border-radius: 2px; margin-right: .3rem; }
.zl-gem-step .zl-gem { width: 20px; height: 20px; margin: .25rem 0 .45rem; opacity: .45; }
.zl-gem-step.found .zl-gem { opacity: 1; box-shadow: 0 0 10px currentColor; }
.zl-gem-red { background: #ff4d4d; color: #ff4d4d; } .zl-gem-orange { background: #ff9a3d; color: #ff9a3d; } .zl-gem-yellow { background: #ffd23f; color: #ffd23f; }
.zl-gem-green { background: #5bd16e; color: #5bd16e; } .zl-gem-blue { background: #3ba9ff; color: #3ba9ff; } .zl-gem-indigo { background: #5b5bd6; color: #5b5bd6; } .zl-gem-violet { background: #b05bff; color: #b05bff; }
/* GFX: ZuzuLand in 3D (Blender models, lazy <model-viewer>) */
.zl-gfx-stage { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2);
    background: radial-gradient(circle at 50% 35%, #f3f6ff, #c9d8f2); }
.zl-gfx-stage.wide { aspect-ratio: 16/9; }
.zl-gfx-stage > img, .zl-gfx-stage > .zl-place-soon { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0; }
.zl-gfx-viewer { position: absolute; inset: 0; width: 100%; height: 100%; background: radial-gradient(circle at 50% 35%, #f6f8ff, #d3def3); --poster-color: transparent; }
.zl-gfx-go { position: absolute; left: 50%; bottom: .7rem; transform: translateX(-50%); z-index: 2; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); white-space: nowrap; }
.zl-gfx-stage.is-3d > img { visibility: hidden; }/* GFX: Sounds (theme song, music stings, sound effects) */
.zl-sound audio { width: 100%; height: 40px; }
.zl-sound.zl-theme { border-color: rgba(201, 164, 76, .55); background: linear-gradient(135deg, rgba(201, 164, 76, .16), #131318 70%); }
.zl-dur { display: inline-block; font-size: .78rem; color: var(--gold-2); opacity: .85; }
.zl-sfx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.zl-sfx { display: flex; flex-direction: column; align-items: center; gap: .25rem; color: inherit; cursor: pointer; text-align: center; padding: .9rem .6rem; }
.zl-sfx .bi { font-size: 1.9rem; color: var(--gold-2); transition: transform .15s; }
.zl-sfx:hover .bi, .zl-sfx:focus-visible .bi { transform: scale(1.12); }
.zl-sfx.is-playing { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-dim), 0 10px 30px rgba(0, 0, 0, .35); }
.zl-sfx-name { font-weight: 600; font-size: .92rem; }

/* Demos page (/demos): demo videos + thumbs up (green) / thumbs down (red) votes */
.zl-demo-video { width: 100%; aspect-ratio: 16/9; border-radius: 10px; background: #0d0d11; display: block; }
.zl-demo-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.zl-demo-tools .zl-chip { padding: .15rem .6rem; font-size: .72rem; }
.zl-vote { display: flex; gap: .6rem; margin-top: .4rem; }
.zl-vote.busy { opacity: .6; pointer-events: none; }
.zl-vote-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem 1.1rem; border-radius: 999px; font-weight: 600;
  font-size: 1rem; background: transparent; cursor: pointer; transition: transform .1s, background .15s; }
.zl-vote-btn:active { transform: scale(.94); }
.zl-vote-btn .bi { font-size: 1.25rem; }
.zl-vote-btn.up { color: #3ddc84; border: 2px solid rgba(61, 220, 132, .55); }
.zl-vote-btn.down { color: #ff5a5a; border: 2px solid rgba(255, 90, 90, .55); }
.zl-vote-btn.up:hover, .zl-vote-btn.up.on { background: #1f9d55; border-color: #3ddc84; color: #fff; }
.zl-vote-btn.down:hover, .zl-vote-btn.down.on { background: #c53030; border-color: #ff5a5a; color: #fff; }
.zl-vote-btn.err { animation: zl-shake .3s 2; }
@keyframes zl-shake { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-4px); } }
.zl-vote-hint-up { color: #3ddc84; }
.zl-vote-hint-down { color: #ff5a5a; }
.zl-demo-video.portrait { aspect-ratio: 9/16; width: auto; max-width: 100%; height: min(78vh, 720px); margin: 0 auto; }
.zl-demo-tabs { border-bottom-color: var(--line-2); gap: .25rem; flex-wrap: wrap; }
.zl-demo-tabs .nav-link { color: var(--text); border: 1px solid transparent; border-radius: 10px 10px 0 0; font-weight: 600; }
.zl-demo-tabs .nav-link:hover { color: var(--gold-2); border-color: var(--line-2) var(--line-2) transparent; }
.zl-demo-tabs .nav-link.active { color: #17130a; background: var(--gold); border-color: var(--gold); }
.zl-tab-count { background: rgba(255, 255, 255, .14); color: inherit; margin-left: .25rem; font-weight: 600; }
.zl-demo-tabs .nav-link.active .zl-tab-count { background: rgba(0, 0, 0, .18); }

/* Loading animation on every video (wwwroot/js/video-loader.js) */
.zl-vwrap { position: relative; display: block; width: 100%; border-radius: 10px; }
.zl-vwrap.portrait { width: fit-content; max-width: 100%; margin: 0 auto; }
.zl-vwrap > video { display: block; }
.zl-vloader { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: .6rem;
  background: radial-gradient(circle, rgba(10, 10, 16, .55) 0%, rgba(10, 10, 16, .25) 70%); border-radius: inherit;
  opacity: 0; visibility: hidden; transition: opacity .2s; pointer-events: none; }
.zl-vwrap.loading .zl-vloader { opacity: 1; visibility: visible; }
.zl-vloader-star { grid-area: 1 / 1; font-size: 2.4rem; line-height: 1; color: var(--gold-2, #f2c94c);
  text-shadow: 0 0 14px rgba(242, 201, 76, .7); animation: zl-star-bounce .9s ease-in-out infinite; }
.zl-vloader-ring { grid-area: 1 / 1; width: 4.6rem; height: 4.6rem; border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, .18); border-top-color: var(--gold, #c9a44c); animation: zl-ring-spin 1s linear infinite; }
.zl-vloader-text { grid-area: 2 / 1; color: #fff; font-weight: 600; font-size: .9rem; letter-spacing: .04em; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.zl-vwrap.failed .zl-vloader-text::after { content: " - could not load, try again"; }
@keyframes zl-star-bounce { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-6px) scale(1.12); } }
@keyframes zl-ring-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .zl-vloader-star, .zl-vloader-ring { animation-duration: 3s; } }
.zl-vloader-pct { color: var(--gold-2, #f2c94c); font-weight: 700; margin-left: .15rem; }
.zl-vloader-pct:empty { display: none; }
/* "Downloaded NN %" badge (top-left of the video) */
.zl-vbuf { position: absolute; top: .55rem; left: .55rem; display: flex; flex-direction: column; gap: .25rem; min-width: 8.5rem;
  padding: .3rem .55rem .4rem; border-radius: 8px; background: rgba(10, 10, 16, .62); color: #fff; font-size: .74rem; font-weight: 600;
  opacity: 0; transition: opacity .4s; pointer-events: none; }
.zl-vbuf.on { opacity: 1; }
.zl-vbuf.done { opacity: 0; transition-delay: 1.5s; }
.zl-vbuf-bar { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.zl-vbuf-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold, #c9a44c), #3ddc84); transition: width .3s; }
