/* ============================================================
   עולם הלגו · lego.css
   רעיון אחד: כל מערכון עולם קטן. סטילים גדולים, פרקים ברשימה, מאחורי הקלעים.
   צבע: צהוב לבנה על הכחול של האתר, ומרקם כפתורי לגו עדין ברקע. בלי קרקס.
   ============================================================ */
.lg { --brick: #f6c531; --brick-red: #c8271f; --era: var(--brick); background: var(--navy-950); }

/* ── הפתיחה: פריים אחד גדול, והרעיון ── */
.lg-hero { position: relative; min-height: min(92vh, 900px); display: grid; align-items: end; padding: calc(var(--nav-h) + 40px) 0 clamp(50px, 7vw, 90px); overflow: hidden; background: #000; }
.lg-hero__frame { position: absolute; inset: 0; z-index: 0; }
.lg-hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: brightness(.55) saturate(1.1); will-change: transform; }
.lg-hero__frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 6, 26, .6), transparent 30%, rgba(4, 6, 26, .35) 60%, var(--navy-950)); }
.lg-hero__inner { position: relative; z-index: 2; }
.lg-hero .eyebrow { color: var(--brick); }
.lg-hero .title { font-size: clamp(3rem, 8vw, 7rem); line-height: .98; color: #fff; }
.lg-hero .lede { max-width: 50ch; color: #eef2ff; }
.lg-hero__facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: clamp(26px, 4vw, 44px); }
.lg-hero__facts span { font-family: var(--font-ui); font-size: .82rem; color: var(--muted); }
.lg-hero__facts b { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.1; color: var(--brick); direction: ltr; unicode-bidi: isolate; }

/* ── העולמות ── */
.lg-worlds { background: radial-gradient(circle at 12px 12px, rgba(246, 197, 49, .07) 3px, transparent 3.5px) 0 0 / 34px 34px, var(--navy-950); }
.lg-worlds__list { display: grid; gap: clamp(40px, 6vw, 90px); margin-top: clamp(36px, 5vw, 64px); }
.lw { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(22px, 4vw, 56px); align-items: center; }
.lw:nth-child(2n) { grid-template-columns: .75fr 1.25fr; }
.lw:nth-child(2n) .lw__still { order: 2; }
.lw--portrait { grid-template-columns: minmax(240px, 400px) 1fr; }
.lw--portrait:nth-child(2n) { grid-template-columns: 1fr minmax(240px, 400px); }
.lw__still { position: relative; display: block; border-radius: 14px; overflow: hidden; background: #000; border: 2px solid rgba(246, 197, 49, .22); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 1); transition: border-color .3s, transform .5s var(--ease); }
.lw__still img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.lw--portrait .lw__still img { aspect-ratio: 9 / 16; }
.lw__still:hover { border-color: var(--brick); transform: translateY(-3px); }
.lw__play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 76px; height: 76px; border-radius: 50%; background: var(--brick); display: grid; place-items: center; box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .7); transition: transform .45s var(--ease); }
.lw__play svg { width: 28px; height: 28px; margin-inline-start: 3px; fill: #1a1240; }
.lw__still:hover .lw__play { transform: scale(1.08); }
.lw__num { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--brick); direction: ltr; unicode-bidi: isolate; }
.lw__name { margin-top: 8px; font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1.05; color: #fff; }
.lw__blurb { margin-top: 14px; font-family: var(--font-body); font-size: clamp(1rem, 1.2vw, 1.1rem); line-height: 1.75; color: #d6ddf4; max-width: 40ch; }
.lw__eps { display: grid; gap: 4px; margin-top: 20px; }
.lw__ep { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 12px 14px; border-radius: 10px; border: 1px solid transparent; color: #fff; transition: background .3s, border-color .3s; }
.lw__ep b { grid-column: 1; font-family: var(--font-ui); font-weight: 600; font-size: .98rem; }
.lw__ep small { grid-column: 1; font-family: var(--font-ui); font-size: .76rem; color: var(--muted); }
.lw__ep i { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-family: var(--font-ui); font-weight: 600; font-size: .82rem; color: var(--brick); direction: ltr; }
.lw__ep:hover, .lw__ep:focus-visible { background: rgba(246, 197, 49, .08); border-color: rgba(246, 197, 49, .3); }

/* ── מאחורי הקלעים ── */
.lg-bts { background: var(--navy-900); }
.lg-bts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(30px, 4vw, 50px); }
.lg-bts__q { grid-column: 1 / -1; margin: clamp(20px, 3vw, 40px) auto 0; max-width: 32ch; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.3rem); line-height: 1.25; color: #fff; text-wrap: balance; }
.lg-bts__q small { display: block; margin-top: 12px; font-family: var(--font-ui); font-weight: 500; font-size: .85rem; color: var(--muted); }
/* אריחים (אותו רכיב כמו בעמוד הסיפור) */
.vt { position: relative; display: block; border-radius: 12px; overflow: hidden; background: var(--navy-800); border: 1px solid rgba(201, 222, 251, .1); color: #fff; transition: transform .45s var(--ease), border-color .3s; }
.vt__img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.vt__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.vt__cap { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px 14px; align-items: baseline; }
.vt__cap b { grid-column: 1; font-family: var(--font-ui); font-weight: 600; font-size: .98rem; line-height: 1.35; }
.vt__cap small { grid-column: 1; font-family: var(--font-ui); font-size: .78rem; color: var(--muted); }
.vt__cap i { grid-column: 2; grid-row: 1 / span 2; align-self: start; font-style: normal; font-family: var(--font-ui); font-size: .8rem; font-weight: 600; color: var(--brick); direction: ltr; padding-top: 2px; }
a.vt:hover, a.vt:focus-visible { transform: translateY(-4px); border-color: var(--brick); }
a.vt:hover .vt__img img { transform: scale(1.04); }
a.vt[data-yt] .vt__img::before { content: ''; position: absolute; z-index: 2; left: 50%; top: 50%; width: 52px; height: 52px; translate: -50% -50%; border-radius: 50%; background: var(--brick) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2304061a'><path d='M8 5.5v13l11-6.5z'/></svg>") center/24px no-repeat; opacity: 0; transform: scale(.8); transition: opacity .3s, transform .35s var(--ease); }
a.vt:hover .vt__img::before, a.vt:focus-visible .vt__img::before { opacity: 1; transform: scale(1); }

/* ── למה זה עובד ── */
.lg-why { background: var(--navy-950); }
.lg-why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lg-why__item { padding: 26px 24px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.lg-why__item i { font-style: normal; font-family: var(--font-display); font-weight: 700; color: var(--brick); direction: ltr; unicode-bidi: isolate; }
.lg-why__item h3 { margin-top: 8px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 1.9vw, 1.7rem); color: #fff; }
.lg-why__item p { margin-top: 10px; font-family: var(--font-ui); font-size: .95rem; line-height: 1.7; color: #d6ddf4; }
.lg-why__cta { margin-top: clamp(40px, 6vw, 80px); text-align: center; }
.lg-why__cta p { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.8vw, 2.4rem); color: #fff; }
.lg-why__cta > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }

/* ── הנגן ── */
.vc-player { position: fixed; inset: 0; z-index: 2600; display: grid; place-items: center; padding: 4vw; background: rgba(4, 6, 26, .9); backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity .35s; }
.vc-player.is-open { opacity: 1; pointer-events: auto; }
.vc-player > div { width: min(1080px, 100%); }
.vc-player.is-portrait > div { width: min(420px, 100%); }
.vc-player__box { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 1); }
.vc-player.is-portrait .vc-player__box { aspect-ratio: 9 / 16; max-height: 86vh; }
.vc-player__box .ytstage { position: absolute; inset: 0; height: 100%; max-height: none; aspect-ratio: auto; }
.vc-player__cap { margin-top: 14px; text-align: center; font-family: var(--font-ui); color: var(--sky-light); }
.vc-player__x { position: absolute; top: 18px; inset-inline-end: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(4, 6, 26, .7); color: #fff; font-size: 1.4rem; cursor: pointer; }

@media (max-width: 900px) {
  .lg-hero { min-height: 0; padding-top: calc(var(--nav-h) + 26vh); }
  .lg-hero__facts { gap: 12px 24px; }
  .lw, .lw:nth-child(2n), .lw--portrait { grid-template-columns: 1fr; gap: 18px; }
  .lw:nth-child(2n) .lw__still { order: 0; }
  .lw--portrait .lw__still { max-width: 300px; }
  .lg-bts__grid, .lg-why__grid { grid-template-columns: 1fr; }
}
