/* SARANG · 사랑 — Netflix-style K-Drama home for TV
   © אופיר ברנס (Ofir Baranes) 2026 - כל הזכויות שמורות */

:root {
  --bg: #09070b;
  --bg2: #120d15;
  --panel: rgba(24, 18, 28, .78);
  --glass: rgba(255, 255, 255, .1);
  --glass2: rgba(255, 255, 255, .16);
  --line: rgba(255, 255, 255, .12);
  --text: #f7f2f5;
  --muted: #b3a8b6;
  --dim: #7d7282;
  --rose: #ff2e63;
  --rose2: #ff6b8b;
  --peach: #ff9a6b;
  --gold: #f7c873;
  --mint: #4fe3b5;
  --grad: linear-gradient(120deg, #ff2e63 0%, #ff5a5f 45%, #ff9a6b 100%);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --navw: 6.6rem;
  --gut: calc(var(--navw) + 3.4rem);
  --land-w: 22rem;
  --ser-ko: 'Noto Serif KR', 'Noto Serif', serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: min(calc(100vw / 120), calc(100vh / 67.5)); background: var(--bg); }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'Heebo', system-ui, sans-serif; font-size: 1.1rem; line-height: 1.45;
  overflow: hidden; -webkit-font-smoothing: antialiased; user-select: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
img { display: block; }
.fx { outline: none; }
[hidden] { display: none !important; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.ko { font-family: var(--ser-ko); }
.scroll-y { overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.scroll-y::-webkit-scrollbar, .track::-webkit-scrollbar { display: none; }

/* ---------- רקע במה ---------- */
#stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
#stage .bd {
  position: absolute; inset: 0; background-size: cover; background-position: center top;
  opacity: 0; transition: opacity .9s var(--ease);
}
#stage .bd.on { opacity: 1; }
body.motion #stage .bd.on { animation: kenburns 26s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.09) translate3d(1.2%, -1%, 0); } }
#stage .shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to left, rgba(9,7,11,.97) 0%, rgba(9,7,11,.86) 26%, rgba(9,7,11,.35) 52%, rgba(9,7,11,.05) 72%),
    linear-gradient(to top, var(--bg) 0%, rgba(9,7,11,.92) 30%, rgba(9,7,11,.15) 62%, rgba(9,7,11,0) 80%),
    radial-gradient(120% 80% at 0% 0%, rgba(255,46,99,.08), transparent 60%);
}
body.dim #stage { filter: brightness(.55) blur(2px); transition: filter .4s; }

/* ---------- ספלאש ---------- */
#splash {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg);
  transition: opacity .7s var(--ease), visibility .7s;
}
#splash.out { opacity: 0; visibility: hidden; }
.logo-mark { position: relative; text-align: center; }
.logo-mark .ko-logo {
  font-family: var(--ser-ko); font-weight: 900; font-size: 11rem; line-height: 1; letter-spacing: -.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 2.4rem rgba(255,46,99,.45));
  animation: logoIn 1.4s var(--spring) both;
}
.logo-mark .en-logo {
  margin-top: 1.4rem; font-weight: 300; letter-spacing: 1.6em; font-size: 1.6rem; color: #fff;
  padding-inline-start: 1.6em; opacity: 0; animation: fadeUp .9s .55s var(--ease) forwards; direction: ltr;
}
.logo-mark .heart {
  position: absolute; inset-inline-end: -2.6rem; top: -1.4rem; font-size: 3rem; color: var(--rose);
  animation: beat 1.2s .9s ease-in-out infinite; opacity: 0; animation-fill-mode: both;
}
.splash-hi { margin-top: 2.6rem; font-size: 1.5rem; color: var(--muted); opacity: 0; animation: fadeUp .8s .9s var(--ease) forwards; }
@keyframes logoIn { from { opacity: 0; transform: scale(.7); letter-spacing: .4em; filter: blur(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }
@keyframes beat { 0%, 100% { opacity: 1; transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.18); } }
.loader-dots { display: flex; gap: .7rem; justify-content: center; margin-top: 2.4rem; }
.loader-dots i { width: .8rem; height: .8rem; border-radius: 50%; background: var(--rose); animation: dot 1s ease-in-out infinite; }
.loader-dots i:nth-child(2) { animation-delay: .15s; } .loader-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 100% { opacity: .25; transform: scale(.7); } 50% { opacity: 1; transform: scale(1); } }

/* ---------- תפריט צד ---------- */
#sidenav {
  position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 20; width: var(--navw);
  display: flex; flex-direction: column; justify-content: center; padding-inline: .9rem;
  background: linear-gradient(to left, rgba(9,7,11,.92) 0%, rgba(9,7,11,.55) 70%, rgba(9,7,11,0) 100%);
  transition: width .35s var(--ease), background .35s;
}
#sidenav .brand {
  position: absolute; top: 2.6rem; inset-inline-start: 0; width: var(--navw); text-align: center;
  font-family: var(--ser-ko); font-weight: 900; font-size: 2.3rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
#sidenav .nav-list { display: flex; flex-direction: column; gap: .5rem; }
.nav-i {
  display: flex; align-items: center; gap: 1.4rem; height: 3.8rem; padding-inline: 1.15rem; border-radius: 1rem;
  color: #d9d0dc; white-space: nowrap; overflow: hidden; position: relative;
  transition: background .2s, color .2s, transform .25s var(--spring);
}
.nav-i i { font-size: 1.55rem; width: 2.4rem; text-align: center; flex: none; }
.nav-i .lbl { font-size: 1.45rem; font-weight: 600; opacity: 0; transition: opacity .25s; }
.nav-i.cur { color: #fff; }
.nav-i.cur::before {
  content: ''; position: absolute; inset-inline-start: .15rem; top: 1.1rem; bottom: 1.1rem; width: .3rem;
  border-radius: 1rem; background: var(--rose);
}
.nav-i .av { width: 2.4rem; height: 2.4rem; border-radius: .6rem; font-size: 1.2rem; }
.nav-i.is-focus { background: #fff; color: #111; transform: scale(1.04); }
.nav-i.is-focus::before { display: none; }
#sidenav:focus-within, body.nav-open #sidenav { width: 23rem; background: linear-gradient(to left, rgba(9,7,11,.98) 0%, rgba(9,7,11,.92) 60%, rgba(9,7,11,.0) 100%); }
#sidenav:focus-within .lbl, body.nav-open #sidenav .lbl { opacity: 1; }
body.nav-open #view { filter: brightness(.45); transition: filter .35s; }
body.nav-open #stage { filter: brightness(.5); transition: filter .35s; }
#stage { transition: filter .35s; }
#view { transition: filter .35s; }

/* ---------- מבנה מסך ---------- */
#view { position: fixed; inset: 0; z-index: 5; }
.screen { position: absolute; inset: 0; animation: screenIn .45s var(--ease); }
@keyframes screenIn { from { opacity: 0; transform: translateX(-1.5rem); } to { opacity: 1; transform: none; } }

/* ---------- פאנל מידע ---------- */
.info {
  position: absolute; z-index: 2; top: 4rem; inset-inline-start: var(--gut); width: 54rem;
  transition: transform .45s var(--ease), opacity .3s;
}
.info .logo-wrap { height: 10.5rem; display: flex; align-items: flex-end; margin-bottom: 1.1rem; transition: height .4s var(--ease); }
.info .t-logo {
  max-width: 30rem; max-height: 100%; object-fit: contain; object-position: right bottom;
  filter: drop-shadow(0 .3rem 1.2rem rgba(0,0,0,.6));
}
.info .t-text { font-size: 4rem; font-weight: 900; line-height: 1.02; letter-spacing: -.01em; text-shadow: 0 .3rem 2rem rgba(0,0,0,.6); }
.info .t-he { font-size: 1.8rem; font-weight: 800; margin-bottom: .2rem; }
.info .t-sub { color: var(--muted); font-size: 1.15rem; margin-bottom: .8rem; display: flex; gap: .9rem; align-items: baseline; }
.info .t-sub .ko { font-size: 1.2rem; color: #d7c9d6; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1rem; font-size: 1.2rem; color: #e7dfe8; }
.meta .sep { width: .3rem; height: .3rem; border-radius: 50%; background: var(--dim); }
.meta .star { color: var(--gold); font-weight: 700; }
.meta .star i { margin-inline-end: .3rem; }
.meta .cr { border: 1px solid rgba(255,255,255,.4); border-radius: .3rem; padding: 0 .45rem; font-size: 1rem; }
.pill {
  display: inline-flex; align-items: center; gap: .45rem; height: 2rem; padding-inline: .8rem; border-radius: 2rem;
  font-size: 1.02rem; font-weight: 700; white-space: nowrap;
}
.pill.he { background: linear-gradient(120deg, rgba(79,227,181,.22), rgba(79,227,181,.08)); color: #9ff5d9; border: 1px solid rgba(79,227,181,.35); }
.pill.he.part { background: rgba(247,200,115,.15); color: var(--gold); border-color: rgba(247,200,115,.35); }
.pill.no-he { background: rgba(255,255,255,.08); color: var(--muted); border: 1px solid var(--line); }
.pill.pass { background: rgba(255,46,99,.16); color: #ff9db5; border: 1px solid rgba(255,46,99,.4); }
.pill.air { background: rgba(255,46,99,.9); color: #fff; }
.pill.new { background: var(--grad); color: #fff; }
.info .tag { margin-top: 1.1rem; font-size: 1.55rem; font-weight: 700; color: #fff; }
.info .desc {
  margin-top: .45rem; font-size: 1.25rem; line-height: 1.6; color: #ddd3de; max-width: 50rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.info .why {
  margin-top: 1rem; display: flex; gap: .8rem; align-items: flex-start; font-size: 1.3rem; line-height: 1.5;
  background: linear-gradient(120deg, rgba(255,46,99,.18), rgba(255,154,107,.08)); border: 1px solid rgba(255,46,99,.3);
  padding: .8rem 1.1rem; border-radius: 1rem; max-width: 50rem;
}
.info .why i { color: var(--rose2); margin-top: .3rem; }
.info .acts { margin-top: 1.8rem; display: flex; gap: 1rem; transition: opacity .3s; }
.info.swap > * { animation: infoSwap .4s var(--ease); }
@keyframes infoSwap { from { opacity: 0; transform: translateY(.6rem); } to { opacity: 1; transform: none; } }

/* מצב גלישה בשורות: פאנל מידע קומפקטי */
.home.browsing .info .logo-wrap { height: 7.6rem; }
.home.browsing .info .t-text { font-size: 3.1rem; }
.home.browsing .info .desc { -webkit-line-clamp: 2; }
.home.browsing .info .acts { opacity: 0; pointer-events: none; }
.home.browsing .info .tag { font-size: 1.35rem; }

/* ---------- כפתורים ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .8rem; height: 3.7rem; padding-inline: 2rem;
  border-radius: .75rem; font-size: 1.35rem; font-weight: 700; color: #fff; white-space: nowrap;
  background: var(--glass2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .25s var(--spring), background .2s, color .2s, box-shadow .25s;
}
.btn i { font-size: 1.25rem; }
.btn.primary { background: var(--grad); box-shadow: 0 .6rem 2rem rgba(255,46,99,.35); }
.btn.round { width: 3.7rem; padding: 0; border-radius: 50%; }
.btn.is-focus { background: #fff; color: #111; transform: scale(1.07); box-shadow: 0 .8rem 2.4rem rgba(0,0,0,.45); }
.btn.on { color: var(--rose2); }
.btn.on.is-focus { color: var(--rose); }
.btn.sm { height: 3rem; font-size: 1.15rem; padding-inline: 1.4rem; }
.press { transform: scale(.94) !important; transition-duration: .08s !important; }

/* ---------- שורות ---------- */
.rows {
  position: absolute; inset: 0; z-index: 3; padding-inline-start: var(--gut);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 29.5rem, #000 31.5rem);
          mask-image: linear-gradient(to bottom, transparent 0, transparent 29.5rem, #000 31.5rem);
}
.home:not(.browsing) .rows { -webkit-mask-image: none; mask-image: none; }
.rows-pad { height: 53rem; }
.rows-end { height: 40rem; }
.row { position: relative; padding-bottom: 1rem; }
.row-t { margin: 0 0 .1rem; font-size: 1.6rem; font-weight: 800; display: flex; align-items: center; gap: .8rem; }
.row-t .sub { font-size: 1.1rem; font-weight: 400; color: var(--muted); }
.row-t .ic { color: var(--rose2); font-size: 1.3rem; }
.track {
  display: flex; gap: 1.15rem; overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  padding: 1rem .9rem 1.3rem 8rem; margin-inline-start: -.9rem;
  scroll-padding-inline-start: .9rem;
}

/* ---------- קלפים ---------- */
.card { position: relative; flex: none; border-radius: .8rem; transition: transform .28s var(--ease), box-shadow .28s var(--ease); }
.card .im { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; background: #1d1620; }
.card.is-focus { transform: scale(1.08); z-index: 5; box-shadow: 0 0 0 .22rem #fff, 0 1.4rem 3rem rgba(0,0,0,.7); }
.card .grad { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.25) 38%, transparent 60%); }

.c-land { width: var(--land-w); aspect-ratio: 16 / 9; }
.c-land .lg {
  position: absolute; bottom: .9rem; inset-inline-start: 1rem; max-width: 62%; max-height: 42%;
  object-fit: contain; object-position: right bottom; filter: drop-shadow(0 .2rem .6rem rgba(0,0,0,.7));
}
.c-land .tt {
  position: absolute; bottom: .8rem; inset-inline: 1rem; font-weight: 800; font-size: 1.3rem; line-height: 1.15;
  text-shadow: 0 .15rem .6rem rgba(0,0,0,.8); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.c-land .badges { position: absolute; top: .7rem; inset-inline-end: .7rem; display: flex; gap: .4rem; }
.c-land .badges .pill { height: 1.7rem; font-size: .88rem; padding-inline: .6rem; backdrop-filter: blur(8px); }
.c-land .badges .pill.he { background: rgba(9,7,11,.6); }
.c-land .prog { position: absolute; bottom: 0; inset-inline: 0; height: .4rem; background: rgba(255,255,255,.25); border-radius: 0 0 .8rem .8rem; overflow: hidden; }
.c-land .prog b { position: absolute; inset-block: 0; inset-inline-start: 0; background: var(--rose); }
.c-land .ep-lbl { position: absolute; top: .7rem; inset-inline-start: .8rem; font-size: .95rem; font-weight: 700; background: rgba(9,7,11,.7); padding: .15rem .6rem; border-radius: .4rem; }
.c-land.wide { --land-w: 30rem; }

.c-top { width: 22.5rem; height: 16rem; display: flex; align-items: flex-end; border-radius: 0; }
.c-top .num {
  position: absolute; right: -.2rem; bottom: -2.1rem; font-size: 16rem; font-weight: 900; line-height: 1;
  color: var(--bg); -webkit-text-stroke: .25rem rgba(255,255,255,.55); letter-spacing: -.08em; direction: ltr;
  font-family: 'Heebo', sans-serif;
}
.c-top.n10 .num { font-size: 13rem; letter-spacing: -.12em; right: -.6rem; }
.c-top .pst { position: absolute; inset-inline-end: 0; bottom: 0; width: 10.7rem; aspect-ratio: 2 / 3; border-radius: .7rem; overflow: hidden; transition: box-shadow .28s, transform .28s var(--ease); }
.c-top .pst img { width: 100%; height: 100%; object-fit: cover; }
.c-top.is-focus { transform: none; box-shadow: none; }
.c-top.is-focus .pst { box-shadow: 0 0 0 .22rem #fff, 0 1.2rem 2.6rem rgba(0,0,0,.7); transform: scale(1.06); }
.c-top.is-focus .num { -webkit-text-stroke-color: #fff; }

.c-post { width: 13.5rem; aspect-ratio: 2 / 3; }
.c-post .tt { position: absolute; bottom: .7rem; inset-inline: .8rem; font-weight: 800; font-size: 1.1rem; line-height: 1.2; text-shadow: 0 .1rem .5rem #000; }

/* פרקים */
.c-ep { width: 21rem; flex: none; border-radius: .8rem; position: relative; transition: transform .28s var(--ease); }
.c-ep .th { position: relative; aspect-ratio: 16 / 9; border-radius: .8rem; overflow: hidden; background: #1d1620; }
.c-ep .th img { width: 100%; height: 100%; object-fit: cover; }
.c-ep .play {
  position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.6rem; color: #fff; opacity: 0;
  background: rgba(0,0,0,.35); transition: opacity .2s;
}
.c-ep.is-focus .play { opacity: 1; }
.c-ep .eb { padding: .7rem .2rem 0; display: flex; align-items: center; gap: .7rem; font-size: 1.15rem; }
.c-ep .eb b { font-weight: 800; }
.c-ep .eb .d { color: var(--muted); }
.c-ep .eb .pill { height: 1.6rem; font-size: .82rem; padding-inline: .5rem; margin-inline-start: auto; }
.c-ep .seen { position: absolute; inset: 0; background: rgba(9,7,11,.55); display: grid; place-items: center; }
.c-ep .seen i { font-size: 2.4rem; color: var(--mint); }
.c-ep .nextup { position: absolute; top: .6rem; inset-inline-start: .6rem; }
.c-ep.is-focus { transform: scale(1.06); box-shadow: none; }
.c-ep.is-focus .th { box-shadow: 0 0 0 .22rem #fff, 0 1rem 2.4rem rgba(0,0,0,.7); }
.c-ep.lock .th img { filter: grayscale(.8) brightness(.6); }

/* ---------- דף סדרה ---------- */
.detail { position: fixed; inset: 0; z-index: 30; background: var(--bg); animation: detIn .5s var(--ease); }
@keyframes detIn { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
.detail .d-bg { position: absolute; top: 0; inset-inline: 0; height: 67.5rem; background-size: cover; background-position: center top; }
.detail .d-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to left, rgba(9,7,11,.98) 0%, rgba(9,7,11,.85) 32%, rgba(9,7,11,.2) 65%, rgba(9,7,11,.05) 100%),
    linear-gradient(to top, var(--bg) 0%, rgba(9,7,11,.6) 35%, transparent 60%);
}
.detail .d-scroll { position: absolute; inset: 0; }
.detail .d-main { position: relative; padding: 7rem var(--gut) 2rem 0; padding-inline-start: 9rem; width: 72rem; min-height: 58rem; }
.detail .d-main .logo-wrap { height: 11rem; display: flex; align-items: flex-end; margin-bottom: 1.2rem; }
.detail .d-main .t-logo { max-width: 32rem; max-height: 100%; object-fit: contain; object-position: right bottom; filter: drop-shadow(0 .3rem 1.2rem rgba(0,0,0,.6)); }
.detail .t-he { font-size: 2.6rem; font-weight: 900; line-height: 1.1; }
.detail .t-sub { color: var(--muted); font-size: 1.25rem; margin: .4rem 0 1rem; display: flex; gap: 1rem; align-items: baseline; }
.detail .t-sub .ko { font-size: 1.35rem; color: #e4d6e3; }
.detail .tag { margin-top: 1.2rem; font-size: 1.6rem; font-weight: 700; }
.detail .desc { margin-top: .5rem; font-size: 1.3rem; line-height: 1.65; color: #e1d8e2; max-width: 56rem; }
.detail .cast { margin-top: 1rem; color: var(--muted); font-size: 1.15rem; }
.detail .cast b { color: #e7dfe8; font-weight: 500; }
.detail .acts { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.detail .notice { margin-top: 1.3rem; display: flex; gap: .8rem; align-items: center; font-size: 1.15rem; color: var(--gold); }
.detail .notice.bad { color: #ff8fa7; }
.d-sec { position: relative; padding-inline-start: 9rem; margin-top: 1.5rem; }
.d-sec h3 { font-size: 1.6rem; margin: 0 0 .2rem; display: flex; gap: 1rem; align-items: baseline; }
.d-sec h3 small { font-size: 1.1rem; color: var(--muted); font-weight: 400; }
.d-sec .track { padding-inline-end: 9rem; }
.d-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem 3rem; max-width: 92rem; padding: 1rem 0 4rem; font-size: 1.15rem; }
.d-facts dt { color: var(--dim); margin-bottom: .2rem; }
.d-facts dd { margin: 0; color: #e7dfe8; }
.skeleton { background: linear-gradient(90deg, #1b151e 0%, #2a2130 50%, #1b151e 100%); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- עמודי רשת ---------- */
.page { position: absolute; inset: 0; }
.page .scroller { position: absolute; inset: 0; padding: 4rem var(--gut) 0 3rem; padding-inline-start: var(--gut); padding-inline-end: 3rem; }
.page.with-info .scroller { -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 26rem, #000 28rem); mask-image: linear-gradient(to bottom, transparent 0, transparent 26rem, #000 28rem); }
.page-h { margin: 0; font-size: 3.2rem; font-weight: 900; letter-spacing: -.01em; }
.page-h .grad-t { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-sub { margin: .5rem 0 0; font-size: 1.35rem; color: var(--muted); }
.chips { display: flex; gap: .8rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 1.4rem .6rem 1rem; margin-inline-start: -.6rem; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 3.1rem; padding-inline: 1.5rem; border-radius: 3rem; font-size: 1.2rem; font-weight: 600;
  background: var(--glass); border: 1px solid var(--line); display: inline-flex; align-items: center; gap: .6rem;
  transition: transform .25s var(--spring), background .2s, color .2s;
}
.chip.on { background: rgba(255,46,99,.2); border-color: rgba(255,46,99,.6); color: #fff; }
.chip.is-focus { background: #fff; color: #111; transform: scale(1.08); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, var(--land-w)); gap: 2.2rem 1.4rem; padding: .8rem .2rem 6rem; }
.grid.posters { grid-template-columns: repeat(auto-fill, 13.5rem); }
.grid-pad { height: 27rem; }
.empty { padding: 6rem 0; text-align: center; color: var(--muted); font-size: 1.4rem; }
.empty i { display: block; font-size: 4rem; margin-bottom: 1.4rem; color: var(--dim); }
.count { color: var(--muted); font-size: 1.15rem; font-weight: 400; }

/* ---------- מצב רוח ---------- */
.moods { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.3rem; padding: 1rem 0 2rem; }
.mood {
  position: relative; height: 9.5rem; border-radius: 1.2rem; overflow: hidden; padding: 1.3rem 1.4rem;
  display: flex; flex-direction: column; justify-content: flex-end; color: #fff; isolation: isolate;
  transition: transform .28s var(--spring), box-shadow .28s;
}
.mood::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, var(--c1), var(--c2)); opacity: .9; }
.mood i { position: absolute; top: 1.1rem; inset-inline-end: 1.2rem; font-size: 2.6rem; opacity: .85; }
.mood b { font-size: 1.45rem; font-weight: 800; line-height: 1.15; }
.mood small { font-size: 1rem; opacity: .85; }
.mood.is-focus { transform: scale(1.07); box-shadow: 0 0 0 .22rem #fff, 0 1.2rem 2.6rem rgba(0,0,0,.6); }
.ai-box {
  margin-top: 1.6rem; border-radius: 1.4rem; padding: 1.8rem 2rem; position: relative; overflow: hidden;
  background: linear-gradient(120deg, rgba(255,46,99,.16), rgba(139,92,246,.14)); border: 1px solid rgba(255,107,139,.3);
}
.ai-box h3 { margin: 0 0 .3rem; font-size: 1.7rem; display: flex; gap: .8rem; align-items: center; }
.ai-box h3 i { color: var(--rose2); }
.ai-box p { margin: 0; color: var(--muted); font-size: 1.2rem; }
.ai-prompts { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.2rem; }
.ai-orb {
  width: 5rem; height: 5rem; border-radius: 50%; margin: 0 auto 1.4rem;
  background: conic-gradient(from 0deg, #ff2e63, #ff9a6b, #8b5cf6, #22d3ee, #ff2e63); animation: spin 2.2s linear infinite;
  -webkit-mask: radial-gradient(circle at center, transparent 52%, #000 54%); mask: radial-gradient(circle at center, transparent 52%, #000 54%);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- חיפוש ---------- */
.search-wrap { display: grid; grid-template-columns: 37rem 1fr; gap: 3rem; height: 100%; }
.kb-side { padding-top: 4rem; }
.q-box {
  height: 4.4rem; border-radius: .9rem; background: var(--glass); border: 1px solid var(--line); display: flex; align-items: center;
  padding-inline: 1.3rem; gap: 1rem; font-size: 1.6rem; font-weight: 600; margin-bottom: 1.2rem;
}
.q-box input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font: inherit; }
.q-box input::placeholder { color: var(--dim); font-weight: 400; }
.q-box.is-focus { border-color: #fff; background: rgba(255,255,255,.14); }
.kb { display: grid; grid-template-columns: repeat(7, 1fr); gap: .55rem; }
.kb .k {
  height: 3.9rem; border-radius: .7rem; background: rgba(255,255,255,.07); display: grid; place-items: center; font-size: 1.55rem; font-weight: 600;
  transition: transform .2s var(--spring), background .15s, color .15s;
}
.kb .k.w2 { grid-column: span 2; font-size: 1.15rem; }
.kb .k.w3 { grid-column: span 3; font-size: 1.15rem; }
.kb .k.is-focus { background: #fff; color: #111; transform: scale(1.1); }
.res-side { position: relative; padding-top: 4rem; min-width: 0; }
.res-side .scroller { position: absolute; inset: 0; padding: 4rem 0 0; }
.res-side .grid { --land-w: 20rem; }
.hint { color: var(--muted); font-size: 1.15rem; margin-top: 1.4rem; line-height: 1.6; }

/* ---------- כניסה / פרופילים ---------- */
.center-screen { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.center-screen h1 { font-size: 3.4rem; margin: 0 0 .6rem; font-weight: 800; }
.center-screen p { margin: 0; color: var(--muted); font-size: 1.4rem; }
.mini-logo { font-family: var(--ser-ko); font-weight: 900; font-size: 4.2rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 1.6rem; }
.pin-dots { display: flex; gap: 1.4rem; margin: 2.4rem 0; direction: ltr; }
.pin-dots i { width: 1.5rem; height: 1.5rem; border-radius: 50%; border: .18rem solid rgba(255,255,255,.5); transition: background .2s, transform .25s var(--spring); }
.pin-dots i.f { background: #fff; border-color: #fff; transform: scale(1.15); }
.pin-dots.err { animation: shake .45s; }
.pin-dots.err i { border-color: var(--rose); }
@keyframes shake { 20%, 60% { transform: translateX(-1rem); } 40%, 80% { transform: translateX(1rem); } }
.keypad { display: grid; grid-template-columns: repeat(3, 6rem); gap: 1rem; direction: ltr; }
.keypad .k { height: 6rem; border-radius: 1.2rem; background: var(--glass); font-size: 2rem; font-weight: 600; display: grid; place-items: center; transition: transform .2s var(--spring), background .15s; }
.keypad .k.is-focus { background: #fff; color: #111; transform: scale(1.1); }
.err-msg { color: #ff8fa7; min-height: 2rem; margin-top: 1.2rem; font-size: 1.25rem; }

.profiles { display: flex; gap: 3rem; margin-top: 3rem; flex-wrap: wrap; justify-content: center; }
.prof { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; width: 13rem; transition: transform .3s var(--spring); }
.prof .av { width: 12rem; height: 12rem; border-radius: 1.6rem; font-size: 5.4rem; transition: box-shadow .25s; }
.prof span { font-size: 1.45rem; color: var(--muted); transition: color .2s; }
.prof.is-focus { transform: scale(1.08); }
.prof.is-focus .av { box-shadow: 0 0 0 .28rem #fff, 0 1.4rem 3rem rgba(0,0,0,.6); }
.prof.is-focus span { color: #fff; }
.prof.add .av { background: rgba(255,255,255,.06); border: .18rem dashed rgba(255,255,255,.25); color: var(--muted); font-size: 3.6rem; }
.av {
  display: grid; place-items: center; font-family: var(--ser-ko); font-weight: 900; color: #fff;
  background: linear-gradient(135deg, var(--a1), var(--a2)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
  text-shadow: 0 .2rem 1rem rgba(0,0,0,.25);
}
.form-col { display: flex; flex-direction: column; gap: 1.4rem; align-items: center; margin-top: 2.4rem; }
.field {
  width: 34rem; height: 4.6rem; border-radius: .9rem; background: var(--glass); border: .14rem solid var(--line);
  color: #fff; font: inherit; font-size: 1.7rem; padding-inline: 1.4rem; outline: 0; text-align: center;
}
.field.is-focus { border-color: #fff; background: rgba(255,255,255,.14); }
.av-pick { display: flex; gap: 1rem; }
.av-pick .av { width: 5.2rem; height: 5.2rem; border-radius: 1rem; font-size: 2.3rem; transition: transform .25s var(--spring), box-shadow .2s; }
.av-pick .av.on { box-shadow: 0 0 0 .2rem var(--rose); }
.av-pick .av.is-focus { transform: scale(1.15); box-shadow: 0 0 0 .22rem #fff; }

/* ---------- הגדרות ---------- */
.set-list { display: flex; flex-direction: column; gap: 1rem; max-width: 70rem; margin-top: 2rem; padding-bottom: 6rem; }
.set-i {
  display: flex; align-items: center; gap: 1.4rem; min-height: 5.6rem; padding: 1rem 1.6rem; border-radius: 1.1rem;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); transition: transform .25s var(--spring), background .2s;
}
.set-i > i { font-size: 1.6rem; width: 2.4rem; color: var(--rose2); text-align: center; }
.set-i .tx { flex: 1; }
.set-i .tx b { display: block; font-size: 1.35rem; }
.set-i .tx small { color: var(--muted); font-size: 1.08rem; }
.set-i.is-focus { background: rgba(255,255,255,.14); transform: scale(1.02); box-shadow: 0 0 0 .18rem #fff; }
.toggle { width: 4.4rem; height: 2.4rem; border-radius: 2rem; background: rgba(255,255,255,.2); position: relative; transition: background .25s; flex: none; }
.toggle::after { content: ''; position: absolute; top: .25rem; inset-inline-start: .25rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: #fff; transition: transform .3s var(--spring); }
.toggle.on { background: var(--rose); }
.toggle.on::after { transform: translateX(-2rem); }
.guide { max-width: 70rem; margin-top: 1rem; display: grid; gap: 1rem; }
.guide .step { display: flex; gap: 1.2rem; align-items: flex-start; background: rgba(255,255,255,.04); border-radius: 1rem; padding: 1.2rem 1.4rem; font-size: 1.2rem; line-height: 1.6; }
.guide .step b.n { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 800; }
.foot { margin-top: 2.4rem; color: var(--dim); font-size: 1rem; }

/* ---------- מודאל ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(5,3,7,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.modal .box {
  width: 60rem; max-width: 92vw; border-radius: 1.6rem; padding: 2.6rem 3rem; background: linear-gradient(160deg, #1d1522, #120d15);
  border: 1px solid var(--line); box-shadow: 0 3rem 6rem rgba(0,0,0,.6); animation: pop .45s var(--spring); display: flex; gap: 2.2rem;
}
@keyframes pop { from { opacity: 0; transform: scale(.9) translateY(1rem); } }
.modal .box .mp { width: 12rem; aspect-ratio: 2/3; border-radius: .9rem; object-fit: cover; flex: none; box-shadow: 0 1rem 2rem rgba(0,0,0,.5); }
.modal .box h2 { margin: 0 0 .5rem; font-size: 2rem; }
.modal .box p { margin: 0; color: var(--muted); font-size: 1.25rem; line-height: 1.55; }
.modal .box .acts { display: flex; flex-direction: column; gap: .8rem; margin-top: 1.6rem; align-items: stretch; }
.modal .box .acts .btn { justify-content: flex-start; }
.modal.kbm .box { flex-direction: column; width: 46rem; }

/* ---------- טוסט + חגיגה ---------- */
#toast {
  position: fixed; z-index: 90; bottom: 3rem; left: 50%; transform: translate(-50%, 2rem); opacity: 0;
  background: rgba(30,22,34,.95); border: 1px solid var(--line); border-radius: 3rem; padding: 1rem 2rem; font-size: 1.3rem;
  display: flex; gap: .8rem; align-items: center; transition: transform .45s var(--spring), opacity .3s; pointer-events: none;
  box-shadow: 0 1.2rem 3rem rgba(0,0,0,.5);
}
#toast.on { transform: translate(-50%, 0); opacity: 1; }
#toast i { color: var(--rose2); }
.hearts { position: fixed; inset: 0; z-index: 95; pointer-events: none; overflow: hidden; }
.hearts i { position: absolute; bottom: -3rem; color: var(--rose); animation: rise 2.6s var(--ease) forwards; }
@keyframes rise { to { transform: translateY(-80rem) rotate(var(--r)); opacity: 0; } }

/* ---------- בהלה בקצה ---------- */
.bump-left { animation: bumpL .26s; } .bump-right { animation: bumpR .26s; } .bump-up { animation: bumpU .26s; } .bump-down { animation: bumpD .26s; }
@keyframes bumpL { 50% { translate: -.6rem 0; } } @keyframes bumpR { 50% { translate: .6rem 0; } }
@keyframes bumpU { 50% { translate: 0 -.6rem; } } @keyframes bumpD { 50% { translate: 0 .6rem; } }

/* =====================================================================
   מובייל / מסך מגע (body.m) — אותה אפליקציה, פריסה אנכית
   ===================================================================== */
body.m { overflow: hidden; }
html.m { font-size: 15px; }
body.m { --navw: 0rem; --gut: 1.1rem; --land-w: 15.5rem; }
body.m #sidenav {
  inset-block: auto 0; inset-inline: 0; width: auto; height: calc(4.4rem + env(safe-area-inset-bottom)); flex-direction: row;
  padding: 0 0 env(safe-area-inset-bottom); background: rgba(12,9,14,.94); backdrop-filter: blur(16px); border-top: 1px solid var(--line);
}
body.m #sidenav .brand { display: none; }
body.m #sidenav .nav-list { flex-direction: row; justify-content: space-around; width: 100%; gap: 0; }
body.m .nav-i { flex-direction: column; gap: .15rem; height: 4.4rem; padding: .5rem .2rem 0; border-radius: 0; flex: 1; }
body.m .nav-i i { font-size: 1.25rem; }
body.m .nav-i .lbl { opacity: 1; font-size: .72rem; font-weight: 500; }
body.m .nav-i.cur::before { inset-inline: 35%; top: 0; bottom: auto; width: auto; height: .2rem; }
body.m .nav-i.is-focus { background: none; color: #fff; transform: none; }
body.m #sidenav:focus-within { width: auto; }
body.m .nav-i[data-k="profile"] { display: none; }
body.m #view, body.m .detail { bottom: calc(4.4rem + env(safe-area-inset-bottom)); }
body.m #stage { display: none; }
body.m .screen { animation: fade .3s; }
body.m .rows, body.m .page .scroller { -webkit-mask-image: none !important; mask-image: none !important; overflow-y: auto; -webkit-overflow-scrolling: touch; }
body.m .rows { padding-inline-start: 0; }
body.m .rows-pad, body.m .grid-pad { display: none; }
body.m .rows-end { height: 3rem; }
body.m .info { position: relative; inset: auto; width: auto; top: 0; padding: 0 1.1rem 1.4rem; }
body.m .m-hero { position: relative; aspect-ratio: 4 / 5; max-height: 72vh; width: 100%; overflow: hidden; }
body.m .m-hero img { width: 100%; height: 100%; object-fit: cover; }
body.m .m-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 0%, rgba(9,7,11,.5) 35%, transparent 60%); }
body.m .m-hero + .info { margin-top: -9rem; }
body.m .info .logo-wrap { height: 6rem; justify-content: center; }
body.m .info .t-logo { max-width: 70%; object-position: center bottom; }
body.m .info .t-text { font-size: 2.2rem; text-align: center; }
body.m .info .t-he, body.m .info .t-sub, body.m .info .meta { justify-content: center; text-align: center; }
body.m .info .tag { text-align: center; font-size: 1.15rem; }
body.m .info .desc { display: none; }
body.m .info .acts { justify-content: center; }
body.m .info .acts .btn { height: 3rem; font-size: 1rem; padding-inline: 1.2rem; }
body.m .row { padding-inline-start: 1.1rem; }
body.m .row-t { font-size: 1.15rem; }
body.m .track { padding: .6rem .2rem .8rem 1.1rem; margin-inline-start: -.2rem; gap: .6rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
body.m .track > * { scroll-snap-align: start; }
body.m .card.is-focus, body.m .c-ep.is-focus, body.m .mood.is-focus { transform: none; box-shadow: none; }
body.m .c-ep.is-focus .th, body.m .c-top.is-focus .pst { box-shadow: none; transform: none; }
body.m .c-top { width: 15rem; height: 11rem; }
body.m .c-top .num { font-size: 10.5rem; bottom: -1.4rem; -webkit-text-stroke-width: .15rem; }
body.m .c-top.n10 .num { font-size: 8.5rem; }
body.m .c-top .pst { width: 7.4rem; }
body.m .c-land .tt { font-size: 1rem; }
body.m .c-land .badges .pill { height: 1.4rem; font-size: .7rem; }
body.m .c-ep { width: 15rem; }
body.m .c-ep .eb { font-size: .95rem; }
body.m .page .scroller { padding: 1.4rem 1.1rem 0; }
body.m .page-h { font-size: 1.9rem; }
body.m .page-sub { font-size: 1rem; }
body.m .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem .7rem; }
body.m .grid .c-land { width: auto; }
body.m .moods { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
body.m .mood { height: 6.4rem; padding: .9rem; }
body.m .mood b { font-size: 1.05rem; }
body.m .mood i { font-size: 1.7rem; }
body.m .chip { height: 2.5rem; font-size: .95rem; padding-inline: 1rem; }
body.m .search-wrap { display: block; }
body.m .kb, body.m .kb-hint { display: none; }
body.m .kb-side { padding-top: 0; }
body.m .res-side { padding-top: 0; position: static; }
body.m .res-side .scroller { position: static; padding: 0; }
body.m .q-box { font-size: 1.15rem; height: 3.4rem; }
body.m .detail .d-bg { height: 62vw; background-position: center; }
body.m .detail .d-scroll { overflow-y: auto; }
body.m .detail .d-main { width: auto; padding: 44vw 1.1rem 1rem; min-height: 0; }
body.m .detail .d-main .logo-wrap { height: 5.5rem; }
body.m .detail .d-main .t-logo { max-width: 70%; }
body.m .detail .t-he { font-size: 1.7rem; }
body.m .detail .desc { font-size: 1.05rem; }
body.m .detail .acts .btn { height: 3rem; font-size: 1rem; padding-inline: 1rem; }
body.m .detail .acts .btn.round { width: 3rem; }
body.m .d-sec { padding-inline-start: 1.1rem; }
body.m .d-sec .track { padding-inline-end: 1.1rem; }
body.m .d-facts { grid-template-columns: 1fr 1fr; gap: 1rem; padding-inline-end: 1.1rem; font-size: .95rem; }
body.m .center-screen h1 { font-size: 2rem; }
body.m .center-screen p { font-size: 1.05rem; padding: 0 1.4rem; }
body.m .prof { width: 8rem; } body.m .prof .av { width: 7.5rem; height: 7.5rem; font-size: 3.2rem; }
body.m .profiles { gap: 1.4rem; }
body.m .field { width: 86vw; }
body.m .av-pick { flex-wrap: wrap; justify-content: center; }
body.m .modal .box { flex-direction: column; padding: 1.6rem; gap: 1rem; }
body.m .modal .box .mp { display: none; }
body.m .set-i { min-height: 4.4rem; }
body.m .logo-mark .ko-logo { font-size: 6.5rem; }
body.m .logo-mark .en-logo { font-size: 1rem; }

/* ---------- השלמות ---------- */
.rows { pointer-events: none; }
.rows .row, .rows .rows-end, .rows .m-hero, .rows .info { pointer-events: auto; }
.info-c { min-height: 1rem; }
.home .info .acts { margin-top: 1.8rem; }
.c-land .cap {
  position: absolute; top: calc(100% + .45rem); inset-inline: .2rem; font-size: 1.08rem; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s;
}
.c-land.is-focus .cap { color: #fff; }
.grid:has(.cap) { row-gap: 3.6rem; }
.track:has(.cap) { padding-bottom: 3.4rem; }
.c-post .chk { position: absolute; inset: 0; display: none; place-items: center; border-radius: inherit; background: rgba(255,46,99,.5); font-size: 3.4rem; color: #fff; }
.c-post.sel .chk { display: grid; animation: pop .35s var(--spring); }
.c-post.sel { box-shadow: 0 0 0 .22rem var(--rose); }
.search-page { position: absolute; inset: 0; padding-inline: var(--gut) 3rem; }
.m-head { padding-bottom: .4rem; }
.av.sm { width: 3.2rem; height: 3.2rem; border-radius: .8rem; font-size: 1.5rem; flex: none; }
.set-i .av.sm + .tx { margin-inline-start: -.2rem; }
.modal .box .field { text-align: start; }
.detail .eps .empty { padding: 2rem 0; }
body.in-detail #sidenav { visibility: hidden; }
body.m .c-land .cap { font-size: .85rem; top: calc(100% + .3rem); }
body.m .grid:has(.cap) { row-gap: 2.4rem; }
body.m .track:has(.cap) { padding-bottom: 2.2rem; }
body.m .search-page { padding: 1.2rem 1.1rem 0; overflow-y: auto; }
body.m .res .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page.with-info .info .logo-wrap { height: 7.6rem; }
.page.with-info .info .t-text { font-size: 3.1rem; }
.page.with-info .info .desc { -webkit-line-clamp: 2; }
.info .why ~ .desc { display: none; }
.page.with-info .scroller { -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 27.8rem, #000 29.4rem) !important; mask-image: linear-gradient(to bottom, transparent 0, transparent 27.8rem, #000 29.4rem) !important; }
.grid-pad { height: 29rem; }
body.m .page.with-info .scroller { -webkit-mask-image: none !important; mask-image: none !important; }
body.m .info .acts { gap: .5rem; flex-wrap: wrap; padding: 0 .4rem; }
body.m .info .acts .btn.round { width: 3rem; }
body.m .detail .acts { gap: .5rem; }
body.m.in-detail #sidenav { visibility: visible; }
.nav-i .av { flex: none; }
