/* לייבעדיק – הפתיחה הקולנועית */
.cine{--T:9s;position:relative;width:100%;max-width:500px;aspect-ratio:13/16;border-radius:340px 340px 18px 18px;overflow:hidden;background:#05050A;isolation:isolate;box-shadow:0 40px 80px -30px rgba(0,0,0,.9)}
.cine .scene{position:absolute;inset:0;opacity:0;animation:var(--T) linear infinite both}
.cine .scene img{width:100%;height:100%;object-fit:cover;animation:var(--T) cubic-bezier(.45,.05,.35,1) infinite both;will-change:transform}
.cine .s1{animation-name:s1-op}
.cine .s1 img{object-position:50% 50%;transform-origin:42% 48%;animation-name:s1-cam}
.cine .s2{animation-name:s2-op}
.cine .s2 img{object-position:50% 70%;transform-origin:52% 78%;animation-name:s2-cam}
.cine .s3{animation-name:s3-op}
.cine .s3 img{object-position:50% 15%;transform-origin:77% 48%;animation-name:s3-cam}

@keyframes s1-op{0%{opacity:1}30%{opacity:1}35%{opacity:0}97%{opacity:0}100%{opacity:1}}
@keyframes s1-cam{0%{transform:scale(1)}28%{transform:scale(1.09)}35%{transform:scale(1.5)}100%{transform:scale(1)}}
@keyframes s2-op{0%,30%{opacity:0}35%{opacity:1}60%{opacity:1}65%{opacity:0}100%{opacity:0}}
@keyframes s2-cam{0%,30%{transform:scale(1.02) translateY(0)}62%{transform:scale(1.42) translateY(-3%)}100%{transform:scale(1.42)}}
@keyframes s3-op{0%,60%{opacity:0}65%{opacity:1}95%{opacity:1}100%{opacity:0}}
@keyframes s3-cam{0%,60%{transform:scale(1.45)}74%{transform:scale(1.02)}96%{transform:scale(1.06)}100%{transform:scale(1.06)}}

/* אור שבוקע מהדלת */
.door-light{position:absolute;top:0;bottom:0;left:14%;width:22%;background:linear-gradient(90deg,rgba(255,230,190,.28),rgba(255,214,150,.1) 45%,transparent);mix-blend-mode:screen;animation:door var(--T) ease-in-out infinite both;pointer-events:none}
@keyframes door{0%{opacity:.25;width:8%}6%{opacity:.5}9%{opacity:.3}14%{opacity:.6;width:14%}20%{opacity:.4}28%{opacity:.9;width:30%}33%{opacity:1;width:100%}36%,100%{opacity:0;width:8%}}
.flash{position:absolute;inset:0;background:radial-gradient(circle at 25% 45%,rgba(255,240,210,.95),rgba(255,214,150,.4) 35%,transparent 70%);opacity:0;animation:flash var(--T) ease-out infinite both;pointer-events:none;z-index:3}
@keyframes flash{0%,29%{opacity:0}33%{opacity:.95}38%{opacity:0}100%{opacity:0}}
.vignette{position:absolute;inset:0;background:radial-gradient(120% 90% at 50% 40%,transparent 55%,rgba(0,0,0,.55));pointer-events:none;z-index:2}

/* מיתרים רוטטים */
.strings{position:absolute;inset:0;width:100%;height:100%;opacity:0;animation:strings-op var(--T) linear infinite both;z-index:2;pointer-events:none}
.strings line{stroke:#FFE7B0;stroke-width:1.6;opacity:.85;vector-effect:non-scaling-stroke;filter:drop-shadow(0 0 3px rgba(255,210,130,.9));animation:vib .07s linear infinite alternate}
.strings line:nth-child(2){animation-duration:.06s}.strings line:nth-child(3){animation-duration:.05s}.strings line:nth-child(4){animation-duration:.045s}.strings line:nth-child(5){animation-duration:.04s}.strings line:nth-child(6){animation-duration:.035s}
@keyframes vib{from{transform:translateX(-.25px)}to{transform:translateX(.25px)}}
@keyframes strings-op{0%,68%{opacity:0}71%{opacity:1}88%{opacity:.7}95%,100%{opacity:0}}

/* גלי קול מהגיטרה */
.rings{position:absolute;left:77%;top:47.5%;width:0;height:0;z-index:2;opacity:0;animation:strings-op var(--T) linear infinite both}
.rings span{position:absolute;left:-60px;top:-60px;width:120px;height:120px;border-radius:50%;border:2px solid rgba(201,160,90,.9);animation:ring 1.1s ease-out infinite}
.rings span:nth-child(2){animation-delay:.36s;border-color:rgba(111,207,163,.85)}
.rings span:nth-child(3){animation-delay:.72s}
@keyframes ring{from{transform:scale(.4);opacity:1}to{transform:scale(3.4);opacity:0}}

/* תווים שעפים מהגיטרה */
.cine-notes{position:absolute;left:77%;top:47.5%;z-index:4;pointer-events:none}
.cine-notes i{position:absolute;font-style:normal;font-weight:900;font-size:var(--s,30px);color:var(--c,#C9A05A);text-shadow:0 0 14px rgba(201,160,90,.7);opacity:0;animation:note-fly var(--T) cubic-bezier(.2,.7,.3,1) infinite both;animation-delay:var(--d,0s)}
@keyframes note-fly{0%,70%{opacity:0;transform:translate(0,0) rotate(0) scale(.4)}73%{opacity:1}92%{opacity:.9;transform:translate(var(--x),var(--y)) rotate(var(--r)) scale(1)}96%,100%{opacity:0;transform:translate(var(--x),calc(var(--y) - 30px)) rotate(var(--r)) scale(1)}}

/* כתוביות */
.caption{position:absolute;right:0;left:0;bottom:12%;margin:auto;width:max-content;max-width:86%;text-align:center;z-index:5;background:var(--black);border:0;color:var(--paper);font-weight:600;font-size:15px;padding:10px 20px;border-radius:999px;opacity:0;animation:var(--T) ease infinite both}
.caption.c1{animation-name:cap1}.caption.c2{animation-name:cap2}.caption.c3{animation-name:cap3;color:var(--black);background:var(--chugim);border-color:transparent}
@keyframes cap1{0%,3%{opacity:0;transform:translateY(14px)}7%,26%{opacity:1;transform:none}30%,100%{opacity:0;transform:translateY(-10px)}}
@keyframes cap2{0%,37%{opacity:0;transform:translateY(14px)}41%,57%{opacity:1;transform:none}60%,100%{opacity:0;transform:translateY(-10px)}}
@keyframes cap3{0%,72%{opacity:0;transform:translateY(14px) scale(.96)}76%,93%{opacity:1;transform:none}96%,100%{opacity:0}}
.caption .dots span{display:inline-block;animation:dot 1.2s infinite}
.caption .dots span:nth-child(2){animation-delay:.2s}.caption .dots span:nth-child(3){animation-delay:.4s}
@keyframes dot{0%,60%,100%{opacity:.2}30%{opacity:1}}

/* פס התקדמות */
.cine-progress{position:absolute;right:16%;left:16%;bottom:5%;height:3px;border-radius:3px;background:rgba(255,255,255,.18);z-index:5;overflow:hidden}
.cine-progress span{position:absolute;inset:0;background:linear-gradient(90deg,var(--chugim),var(--gold));transform-origin:right;animation:prog var(--T) linear infinite}
@keyframes prog{from{transform:scaleX(0)}to{transform:scaleX(1)}}

/* כפתורי שליטה */
.cine-controls{display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap}
.cine-btn{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:10px 18px;border-radius:999px;border:1px solid var(--rule);background:var(--black-2);color:var(--paper);font:inherit;font-weight:500;font-size:14px;cursor:pointer}
.cine-btn:hover{border-color:var(--gold)}
.cine-btn.sound{background:var(--gold);color:var(--black);border-color:var(--gold)}
.eq{display:inline-flex;align-items:flex-end;gap:2px;height:16px}
.eq i{width:3px;background:currentColor;border-radius:2px;animation:eq 1s ease-in-out infinite}
.eq i:nth-child(1){height:40%;animation-delay:-.2s}.eq i:nth-child(2){height:100%;animation-delay:-.5s}.eq i:nth-child(3){height:60%;animation-delay:-.1s}.eq i:nth-child(4){height:80%;animation-delay:-.7s}
@keyframes eq{0%,100%{transform:scaleY(.35)}50%{transform:scaleY(1)}}

.cine.paused *,.cine.paused{animation-play-state:paused!important}

/* פריטה: המיתרים מתעוררים והתווים מתפוצצים */
.cine.strum .strings{animation:none;opacity:1}
.cine.strum .strings line{stroke-width:2.4;animation-duration:.03s}
.strum-burst{position:absolute;left:77%;top:47.5%;z-index:6;pointer-events:none}
.strum-burst i{position:absolute;font-style:normal;font-weight:900;font-size:var(--s,28px);color:var(--c,#FFE7B0);text-shadow:0 0 16px rgba(255,210,130,.9);animation:burst 1.4s cubic-bezier(.15,.8,.3,1) forwards}
@keyframes burst{from{opacity:1;transform:translate(0,0) scale(.3)}to{opacity:0;transform:translate(var(--x),var(--y)) rotate(var(--r)) scale(1.2)}}

/* סרטון אמיתי – אם מוגדר HERO_VIDEO */
.cine video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:7}


/* תמונת הגיטרה: הגיטרה אופקית, אז גלי הקול והתווים יוצאים מתיבת התהודה */
.cine .s3 img{transform-origin:35% 52%}
.cine .strings{display:none}
.cine .rings,.cine .cine-notes,.cine .strum-burst{left:35%;top:52%}
.cine .cine-notes,.cine .strum-burst{transform:scaleX(-1)}
.cine.offscreen .scene,.cine.offscreen .scene img,.cine.offscreen .caption,.cine.offscreen .cine-progress span,.cine.offscreen .door-light,.cine.offscreen .flash,.cine.offscreen .rings,.cine.offscreen .cine-notes i{animation-play-state:paused!important}
.anim .hero-art .cine{animation:cineIn 1.2s cubic-bezier(.2,.85,.2,1) .1s both}
.has-intro .anim .hero-art .cine{animation-delay:1.2s}
@keyframes cineIn{from{clip-path:inset(100% 0 0 0 round 340px 340px 18px 18px)}to{clip-path:inset(0 0 0 0 round 340px 340px 18px 18px)}}
.cine-btn:focus-visible{outline:3px solid var(--gold)}
