/* onzifilm: тъмна кино тема с прожекторна светлина, mobile first */

:root {
  --bg: #0a0a0f;
  --bg-soft: #13131b;
  --card: #17171f;
  --card-2: #1f1f29;
  --line: #2a2a36;
  --text: #f3f1ec;
  --muted: #a3a1ad;
  --faint: #6f6d7a;
  --amber: #ffb547;
  --coral: #ff5c7a;
  --glow: linear-gradient(135deg, var(--amber), var(--coral));
  --radius: 18px;
  --max: 1080px;
  --display: "Unbounded", "Inter", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Лъч от прожектор, който леко трепти */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 900px;
  background:
    radial-gradient(ellipse 50% 60% at 50% -5%, rgba(255, 181, 71, 0.22), transparent 70%),
    radial-gradient(ellipse 35% 45% at 85% 5%, rgba(255, 92, 122, 0.16), transparent 70%),
    radial-gradient(ellipse 30% 40% at 10% 15%, rgba(255, 92, 122, 0.08), transparent 70%);
  pointer-events: none;
  z-index: -1;
  animation: flicker 6s infinite;
}

/* Фини кино рисунки на фона (ролка, клапа, камера, билет...).
   Стоят на място при скролване и избледняват към средата, за да не пречат на текста. */
html::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("bg-cinema.svg") 0 0 / 1000px 1000px repeat;
  opacity: 0.07;
  -webkit-mask: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(0, 0, 0, 0.35), #000 85%);
  mask: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(0, 0, 0, 0.35), #000 85%);
  pointer-events: none;
  z-index: -2;
}

@media (max-width: 680px) {
  html::before { background-size: 640px 640px; opacity: 0.06; }
}

/* Филмова зърнистост */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 100;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  47% { opacity: 1; }
  48% { opacity: 0.86; }
  50% { opacity: 1; }
  72% { opacity: 0.93; }
  74% { opacity: 1; }
}

a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: 20px;
}

h1, h2, h3 {
  font-family: var(--display);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.accent {
  background: var(--glow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Бутони */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border-radius: 14px;
  padding: 14px 22px;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.btn-primary {
  color: #1a1206;
  background: var(--glow);
  box-shadow: 0 8px 30px rgba(255, 120, 90, 0.3);
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 36px rgba(255, 120, 90, 0.45); }

.btn-ghost { background: var(--card-2); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--amber); }

.link-btn {
  background: none;
  border: 0;
  color: var(--amber);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 181, 71, 0.4);
  text-underline-offset: 4px;
}

.link-btn:hover { text-decoration-color: var(--amber); }

/* Навигация */
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--glow);
  display: inline-grid;
  place-items: center;
  box-shadow: 0 0 18px rgba(255, 140, 90, 0.55);
}

.logo-dot::after {
  content: "";
  border-left: 8px solid var(--bg);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  margin-left: 2px;
}

.logo b { color: var(--amber); font-weight: 700; }

.nav-links {
  display: none;
  gap: 22px;
  font-size: 15px;
}

.nav-links a, .nav-links button {
  background: none;
  border: 0;
  text-decoration: none;
  color: var(--muted);
}

.nav-links a:hover, .nav-links button:hover { color: var(--text); }

@media (min-width: 820px) { .nav-links { display: flex; } }

.lang {
  margin-left: auto;
  display: flex;
  gap: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  font-size: 14px;
  font-weight: 600;
}

.lang a {
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--muted);
}

.lang a[aria-current="page"] { background: var(--text); color: var(--bg); }

/* Hero: екранът */
.hero {
  text-align: center;
  padding-block: 48px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 22px;
}

.rec {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 10px var(--coral);
  animation: blink 1.6s infinite;
}

@keyframes blink { 50% { opacity: 0.25; } }

.hero h1 {
  font-size: clamp(32px, 6.6vw, 64px);
  font-weight: 700;
  max-width: 15ch;
  margin: 0 auto 20px;
}

.lead {
  color: var(--muted);
  font-size: clamp(17px, 2.3vw, 20px);
  max-width: 36em;
  margin: 0 auto 32px;
}

.lead strong { color: var(--text); font-weight: 600; }

/* Търсачка */
.search-box {
  max-width: 760px;
  margin: 0 auto;
  background: rgba(23, 23, 31, 0.8);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 10px;
  box-shadow: 0 0 0 1px rgba(255, 181, 71, 0.06), 0 30px 80px rgba(255, 140, 90, 0.12);
  backdrop-filter: blur(10px);
  text-align: left;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 680px) {
  .search-form { grid-template-columns: 1fr auto auto; }
}

.field {
  font: inherit;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}

.field:focus { border-color: var(--amber); }
.field::placeholder { color: var(--faint); }

select.field { cursor: pointer; }

.search-input-wrap { position: relative; }
.search-input-wrap .field { padding-left: 46px; font-size: 18px; }

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--amber);
  pointer-events: none;
}

.suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  list-style: none;
  padding: 6px;
  z-index: 20;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.suggest li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.suggest li[aria-selected="true"], .suggest li:hover { background: var(--line); }
.suggest .mini-poster { width: 30px; font-size: 11px; border-radius: 4px; flex: 0 0 30px; }
.suggest small { color: var(--muted); margin-left: auto; }

.search-help {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  padding: 12px 8px 4px;
  font-size: 15px;
  color: var(--muted);
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.chip {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 14px;
  color: var(--text);
}

.chip:hover { border-color: var(--amber); color: var(--amber); }

/* Резултат */
.result-area { max-width: 760px; margin: 16px auto 0; text-align: left; }

.result {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  animation: rise 0.35s ease-out;
}

@media (min-width: 640px) {
  .result { grid-template-columns: 130px 1fr; gap: 22px; padding: 22px; }
}

@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.poster, .mini-poster {
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  color: rgba(255, 255, 255, 0.92);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 50%),
    linear-gradient(160deg, hsl(var(--h, 20) 65% 38%), hsl(calc(var(--h, 20) + 50) 70% 16%));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.result h2 { font-size: 22px; }
.result .meta { color: var(--muted); font-size: 14px; margin: 4px 0 14px; }

.groups { display: grid; gap: 14px; }

.group-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.providers { display: flex; flex-wrap: wrap; gap: 6px; }

.provider {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.provider:hover { border-color: var(--amber); }
.provider .arrow { color: var(--amber); }
.provider .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; box-shadow: 0 0 6px currentColor; }
.provider small { color: var(--muted); font-weight: 500; }
.provider .leaving {
  font-size: 11px;
  font-weight: 700;
  color: var(--coral);
  border: 1px solid rgba(255, 92, 122, 0.4);
  border-radius: 6px;
  padding: 1px 6px;
}

img.poster { width: 100%; height: auto; object-fit: cover; background: var(--card-2); }
.poster.skeleton { background: linear-gradient(100deg, var(--card-2) 30%, #2a2a36 50%, var(--card-2) 70%) 0 0 / 300% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }
.result.loading .meta { margin-top: 10px; }

.alts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; font-size: 13px; color: var(--faint); }
.alts .chip { font-size: 13px; }
.demo-note a { color: var(--muted); }

.empty-group { font-size: 14px; color: var(--faint); }

.result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.follow[aria-pressed="true"] { border-color: var(--amber); color: var(--amber); }
.demo-note { font-size: 13px; color: var(--faint); }

.no-result {
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 22px;
  animation: rise 0.35s ease-out;
}

.no-result h2 { font-size: 19px; margin-bottom: 6px; }
.no-result p { color: var(--muted); margin-bottom: 16px; }

/* Седалки в киносалона (силует) */
.seats {
  height: 84px;
  margin-top: 56px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 44'%3E%3Cpath d='M8 44V16Q8 5 19 5H45Q56 5 56 16V44Z' fill='%23050508'/%3E%3C/svg%3E") 0 100% / 64px 44px repeat-x,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 44'%3E%3Cpath d='M10 44V17Q10 7 20 7H44Q54 7 54 17V44Z' fill='%23101017'/%3E%3C/svg%3E") 32px 18px / 56px 38px repeat-x;
}

/* Филмова лента */
.strip-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 14px;
}

.strip-head h2 { font-size: clamp(20px, 3.2vw, 26px); }
.strip-head p { color: var(--muted); font-size: 15px; }

.filmstrip {
  position: relative;
  background: #050508;
  padding: 22px 0;
  overflow: hidden;
}

.filmstrip::before, .filmstrip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 9px;
  background: linear-gradient(90deg, #2d2d38 0 13px, transparent 13px 24px) 0 0 / 24px 9px repeat-x;
  opacity: 0.9;
}

.filmstrip::before { top: 6px; }
.filmstrip::after { bottom: 6px; }

.strip-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: roll 50s linear infinite;
}

.filmstrip:hover .strip-track { animation-play-state: paused; }

@keyframes roll { to { transform: translateX(-50%); } }

.frame {
  flex: 0 0 auto;
  width: 168px;
  height: 100px;
  border: 0;
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: left;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
  color: #fff;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent 70%),
    linear-gradient(135deg, hsl(var(--h) 70% 42%), hsl(calc(var(--h) + 45) 75% 18%));
  transition: transform 0.2s, box-shadow 0.2s;
}

.frame small { font-weight: 500; font-size: 12px; opacity: 0.75; }
.frame:hover { transform: scale(1.04); box-shadow: 0 0 0 2px var(--amber); }

/* Секции */
section { padding-block: 72px; }

.section-title {
  font-size: clamp(26px, 4.6vw, 40px);
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 34em;
  margin: 0 auto 40px;
}

/* Билети: трите функции */
.tickets { display: grid; gap: 18px; }

@media (min-width: 900px) {
  .tickets { grid-template-columns: repeat(3, 1fr); }
}

.ticket {
  --stub: 58px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr var(--stub);
  background: linear-gradient(160deg, #1d1b24, #15141b);
  border-radius: 16px;
  -webkit-mask:
    radial-gradient(circle 11px at calc(100% - var(--stub)) 0, transparent 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle 11px at calc(100% - var(--stub)) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle 11px at calc(100% - var(--stub)) 0, transparent 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle 11px at calc(100% - var(--stub)) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
  transition: transform 0.2s;
}

.ticket:hover { transform: translateY(-3px) rotate(-0.4deg); }

.ticket-main {
  padding: 26px 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-right: 2px dashed rgba(255, 255, 255, 0.12);
}

.ticket-no {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--amber);
  margin-bottom: 14px;
}

.ticket-q {
  font-size: 15px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 4px;
}

.ticket h3 { font-size: 22px; margin-bottom: 10px; }
.ticket p { color: var(--muted); font-size: 16px; margin-bottom: 20px; }
.ticket p em { color: var(--text); }
.ticket .btn { margin-top: auto; }

.ticket-stub {
  writing-mode: vertical-rl;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  white-space: nowrap;
  color: var(--faint);
  text-transform: uppercase;
}

.ticket-stub span:first-child { color: var(--coral); }

/* Петъчна премиера: табела с крушки.
   Крушките са само в рамката (по една редица от всяка страна). "space" ги
   разпределя равномерно, така че никоя не се реже и ъглите съвпадат.
   ::before = тихо светещи крушки, ::after = по-ярки, през които минава светлина. */
.marquee {
  --bulb: 18px;
  position: relative;
  isolation: isolate;
  border-radius: 24px;
  padding: var(--bulb);
  background: linear-gradient(135deg, #2a1a12, #2a1220);
}

.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-size: var(--bulb) var(--bulb);
  background-position: 0 0, 0 100%, 0 0, 100% 0;
  background-repeat: space no-repeat, space no-repeat, no-repeat space, no-repeat space;
}

.marquee::before {
  --b: radial-gradient(circle, rgba(255, 196, 110, 0.55) 0 2.2px, rgba(255, 181, 71, 0.12) 3.2px, transparent 5px);
  background-image: var(--b), var(--b), var(--b), var(--b);
}

.marquee::after {
  --b: radial-gradient(circle, #fff1cf 0 2.4px, rgba(255, 196, 110, 0.6) 3.4px, transparent 7px);
  background-image: var(--b), var(--b), var(--b), var(--b);
  -webkit-mask: linear-gradient(115deg, transparent 35%, #000 50%, transparent 65%) 0 0 / 300% 100%;
  mask: linear-gradient(115deg, transparent 35%, #000 50%, transparent 65%) 0 0 / 300% 100%;
  animation: bulbs 4.5s ease-in-out infinite;
}

@keyframes bulbs {
  from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  to   { -webkit-mask-position: 0 0;    mask-position: 0 0; }
}

.marquee-inner {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #16141c, #100f15);
  border-radius: 12px;
  padding: 36px 22px;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(255, 181, 71, 0.12), 0 0 40px rgba(255, 140, 80, 0.08);
}

.marquee-label {
  display: inline-block;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--amber);
  margin-bottom: 12px;
}

.marquee h2 { font-size: clamp(24px, 4.4vw, 38px); margin-bottom: 10px; }
.marquee p { color: var(--muted); max-width: 32em; margin: 0 auto 24px; }

.signup {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}

@media (min-width: 560px) { .signup { flex-direction: row; } }

.form-note { font-size: 14px; color: var(--faint); margin-top: 10px; min-height: 1.4em; }
.form-note.ok { color: var(--amber); }
.form-note.err { color: var(--coral); }
/* Скрито поле срещу ботове */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding-block: 28px 100px;
  color: var(--muted);
  font-size: 14px;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

footer a { color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Правни страници (поверителност) */
.legal { max-width: 760px; padding-block: 32px 64px; }
.legal h1 { font-size: clamp(28px, 5vw, 42px); margin-bottom: 8px; }
.legal h2 { font-size: 20px; margin: 36px 0 10px; }
.legal h3 { font-family: "Inter", sans-serif; font-size: 17px; letter-spacing: 0; margin: 20px 0 6px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 10px; }
.legal strong { color: var(--text); }
.legal ul { padding-left: 20px; }
.legal a:not(.btn) { color: var(--amber); }
.legal-date { font-size: 14px; color: var(--faint) !important; margin-bottom: 24px !important; }
.legal-back { margin-top: 40px; }

/* 404 */
.notfound { text-align: center; padding-block: 72px 96px; }
.notfound .reel { font-size: 64px; display: block; margin-bottom: 16px; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.notfound h1 { font-size: clamp(28px, 6vw, 52px); margin-bottom: 12px; }
.notfound p { color: var(--muted); max-width: 30em; margin: 0 auto 28px; }
.notfound .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
footer a:hover { color: var(--text); }

/* Анкета (диалог с клапа отгоре) */
.quiz-dialog {
  margin: auto;
  width: min(520px, calc(100% - 32px));
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
}

.quiz-dialog::before {
  content: "";
  display: block;
  height: 20px;
  background: repeating-linear-gradient(-45deg, #f3f1ec 0 16px, #111 16px 32px);
}

.quiz-dialog::backdrop { background: rgba(5, 5, 8, 0.8); backdrop-filter: blur(4px); }

.quiz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}

.icon-btn {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 8px;
}

.icon-btn:hover { color: var(--text); background: var(--card-2); }

.progress {
  height: 4px;
  background: var(--card-2);
  margin: 12px 20px 0;
  border-radius: 4px;
  overflow: hidden;
}

.progress span { display: block; height: 100%; background: var(--glow); transition: width 0.25s; }

.quiz-body { padding: 20px; }
.quiz-body h3 { font-size: 21px; margin-bottom: 16px; }

.options { display: grid; gap: 8px; }

.option {
  text-align: left;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
  transition: border-color 0.15s, transform 0.15s;
}

.option:hover, .option:focus-visible { border-color: var(--amber); outline: none; transform: translateX(3px); }

.quiz-foot { display: flex; justify-content: space-between; padding: 0 20px 20px; }

.pick {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.pick:first-of-type { border-top: 0; }
.pick .mini-poster { width: 46px; font-size: 14px; flex: 0 0 46px; }
.pick div { flex: 1; }
.pick strong { display: block; }
.pick small { color: var(--muted); }

/* Чатбот: плаваща иконка + панел */
.chat-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1a1206;
  background: var(--glow);
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(255, 110, 90, 0.4);
}

.chat-fab::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid rgba(255, 140, 90, 0.5);
  animation: ping 2.4s infinite;
}

@keyframes ping { 0% { opacity: 1; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1.18); } }

.chat-fab[aria-expanded="true"] { display: none; }

.chat-fab { transition: opacity 0.25s, transform 0.25s; }

/* На телефон бутонът се скрива, докато търсачката се вижда (там има линк към бота) */
.chat-fab.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }

.chat-panel {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--card);
  display: flex;
  flex-direction: column;
}

@media (min-width: 560px) {
  .chat-panel {
    inset: auto 16px 16px auto;
    width: 390px;
    height: min(580px, calc(100vh - 32px));
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  }
}

.chat-panel[hidden] { display: none; }

.chat-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 16px 14px;
  background: linear-gradient(135deg, rgba(255, 181, 71, 0.14), rgba(255, 92, 122, 0.1));
  border-bottom: 1px solid var(--line);
}

.chat-head::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  height: 7px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 10px, transparent 10px 18px) 0 0 / 18px 7px repeat-x;
}

.chat-head strong { display: block; font-family: var(--display); font-size: 16px; }
.chat-head small { color: var(--muted); font-size: 13px; }

.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg { max-width: 86%; padding: 11px 15px; border-radius: 16px; font-size: 15px; }
.msg.bot { background: var(--card-2); align-self: flex-start; border-bottom-left-radius: 5px; }
.msg.bot b { color: var(--amber); }
.msg.user { background: var(--text); color: var(--bg); align-self: flex-end; border-bottom-right-radius: 5px; }

.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form .field { padding: 11px 13px; }
.chat-form .btn { padding: 11px 16px; }

/* Съобщение (toast) */
.toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  z-index: 60;
  max-width: calc(100% - 32px);
}

.toast[hidden] { display: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .filmstrip { overflow-x: auto; }
}
