/* Élő kereső – a Mozivászon téma színeit használja, ha vannak; különben semleges */
.elok { position: relative; width: 100%; max-width: 420px; --elok-bg: var(--mv-surface, #fff); --elok-fg: var(--mv-text, #1d2125);
  --elok-bd: var(--mv-border, rgba(0,0,0,.15)); --elok-ac: var(--mv-accent, #e50914); --elok-r: var(--mv-radius, 12px); }
.elok__box { display: flex; align-items: center; gap: 0; border: 1px solid var(--elok-bd); border-radius: 999px; background: var(--elok-bg); overflow: hidden; }
.elok.is-open .elok__box, .elok__box:focus-within { border-color: var(--elok-ac); box-shadow: 0 0 0 3px color-mix(in srgb, var(--elok-ac) 25%, transparent); }
.elok__icon { padding-left: .85rem; font-size: .95rem; opacity: .65; }
.elok.is-loading .elok__icon { animation: elok-pulse .8s ease-in-out infinite alternate; }
@keyframes elok-pulse { from { opacity: .3; } to { opacity: 1; } }
.elok__input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--elok-fg); padding: .55rem .6rem; font: inherit; }
.elok__input::-webkit-search-cancel-button { cursor: pointer; }
.elok__btn { border: 0; background: var(--elok-ac); color: #fff; font-weight: 600; padding: .55rem 1rem; cursor: pointer; font: inherit; }
.elok__panel { position: absolute; z-index: 1080; top: calc(100% + 6px); left: 0; right: 0; min-width: min(360px, 92vw); max-height: min(70vh, 560px); overflow-y: auto;
  background: var(--elok-bg); color: var(--elok-fg); border: 1px solid var(--elok-bd); border-radius: var(--elok-r); box-shadow: 0 14px 40px rgba(0,0,0,.35); padding: .35rem; }
.elok__item { display: flex; align-items: center; gap: .7rem; padding: .4rem .5rem; border-radius: calc(var(--elok-r) * .6); color: inherit !important; text-decoration: none !important; }
.elok__item:hover, .elok__item.is-active { background: color-mix(in srgb, var(--elok-ac) 14%, transparent); }
.elok__img { flex: 0 0 auto; width: 40px; height: 58px; object-fit: cover; border-radius: 6px; background: color-mix(in srgb, currentColor 8%, transparent); }
.elok__img--none { display: grid; place-items: center; font-size: 1.1rem; }
.elok__txt { min-width: 0; display: flex; flex-direction: column; }
.elok__title { font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.elok__title mark { background: color-mix(in srgb, var(--elok-ac) 30%, transparent); color: inherit; padding: 0 .1em; border-radius: 3px; }
.elok__meta { font-size: .8rem; opacity: .7; }
.elok__none { padding: .8rem; opacity: .75; text-align: center; }
.elok__none--did { padding: .6rem .8rem .1rem; text-align: left; font-size: .9em; }
.elok__did { padding: 0 .8rem .4rem; font-weight: 600; }
.elok__more { display: block; width: 100%; margin-top: .25rem; padding: .55rem; border: 0; border-top: 1px solid var(--elok-bd); background: transparent; color: var(--elok-ac); font: inherit; font-weight: 600; cursor: pointer; text-align: center; border-radius: 0 0 calc(var(--elok-r) * .6) calc(var(--elok-r) * .6); }
.elok__more:hover { background: color-mix(in srgb, var(--elok-ac) 10%, transparent); }
@media (max-width: 575.98px) { .elok { max-width: none; } .elok__panel { position: fixed; left: .5rem; right: .5rem; top: auto; margin-top: 6px; } }
/* a sablon saját kereső-stílusa ne rajzoljon második keretet a mezőre */
.elok .elok__input, .elok .elok__input:focus { border: 0 !important; box-shadow: none !important; border-radius: 0 !important; background: transparent !important; height: auto !important; margin: 0 !important; outline: 0 !important; }
.elok .elok__btn { border-radius: 0 !important; margin: 0 !important; box-shadow: none !important; }

/* oldalsávos modulban: a doboz ne vágja le a listát, és a lista a doboz alatti modulok fölé kerüljön */
.elok-host { overflow: visible !important; position: relative; }
.elok-host--open { z-index: 1070; }
.elok-host .elok { max-width: none; }
.elok-host .elok__panel { min-width: 0; width: max(100%, 280px); }
/* a mező ne szélesítse ki a keskeny dobozt (oldalsáv, telefonos menü) */
.elok, .elok__box { min-width: 0; }
.elok .elok__input { width: 100% !important; min-width: 0 !important; }
.elok-host { min-width: 0; max-width: 100%; }
@media (max-width: 991.98px) {
  /* telefonos menüben / keskeny oldalsávban a lista a mező alá kerül, nem lebeg */
  .elok-host .elok__panel { position: static; width: auto; min-width: 0; margin-top: 6px; max-height: 60vh; box-shadow: none; }
}

/* Hol keressen: Mindenhol / Sorozatok / Filmek / Egyebek */
.elok__scope { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.elok__chip { border: 1px solid var(--elok-bd); background: transparent; color: inherit; font: inherit; font-size: .8rem; line-height: 1.2;
  padding: .3rem .7rem; border-radius: 999px; cursor: pointer; opacity: .85; }
.elok__chip:hover { border-color: var(--elok-ac); opacity: 1; }
.elok__chip[aria-checked="true"] { background: var(--elok-ac); border-color: var(--elok-ac); color: #fff; opacity: 1; font-weight: 600; }
html[data-theme="neon"] .elok__chip[aria-checked="true"] { color: #05060a; }
.elok-host .elok__panel { top: auto; }
/* a négy gomb egy sorban férjen el keskeny oldalsávban is */
.elok__scope { flex-wrap: nowrap; gap: .25rem; }
.elok__chip { flex: 1 1 auto; min-width: 0; padding: .28rem .35rem; font-size: .74rem; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* keskeny helyen (pl. asztali oldalsáv) 2×2, szélesebb helyen egy sorban – levágott felirat nélkül */
.elok { container-type: inline-size; }
.elok__chip { overflow: visible; text-overflow: clip; }
@container (max-width: 300px) {
  .elok__scope { display: grid; grid-template-columns: 1fr 1fr; }
}
