/* polish-v9 — ranglar va ramkalar (02.10.2026). Faqat CSS qatlami, React build'iga tegmaydi.
   Har bo'lim va har janr o'z rangida: --ix-c ni enhance.js qo'yadi (bo'lmasa — asosiy rang). */

:root {
  --ix-ring: linear-gradient(120deg, #ff6b35 0%, #e73c7e 50%, #7c5cff 100%);
  --ix-c-def: var(--accent);
}

/* ---------- Yuqori panel: pastida rangli chiziq ---------- */
.home-top { border-bottom: 0; }
.home-top::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--ix-ring);
  opacity: .55;
  pointer-events: none;
}
.home-top .icon-btn { border: 1.5px solid color-mix(in srgb, var(--brand-3) 22%, var(--line)); }

/* ---------- Qidiruv kartasi: gradient ramka ---------- */
.code-box {
  border: 2px solid transparent;
  background:
    radial-gradient(120% 160% at 0% 0%, var(--ix-glow-1), transparent 58%) padding-box,
    radial-gradient(120% 160% at 100% 100%, var(--ix-glow-2), transparent 58%) padding-box,
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--ix-ring) border-box;
}
.code-box-row input { border: 1.5px solid color-mix(in srgb, var(--brand-3) 25%, var(--line)); }

/* ---------- Janrlar: kino chiptasi ko‘rinishida (emoji va aylana yo‘q) ---------- */
.genre-chip {
  --tc: var(--ix-c, var(--ix-c-def));
  position: relative;
  gap: 0;
  height: 40px;
  padding: 0 18px 0 30px;
  border-radius: 7px;
  border: 1.5px solid color-mix(in srgb, var(--tc) 42%, transparent);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--tc) 24%, var(--surface)) 0 17px, transparent 17px),
    color-mix(in srgb, var(--tc) 5%, var(--surface));
  color: var(--text, inherit);
  font-weight: 750;
  letter-spacing: .01em;
  /* chiptaning ikki yonidagi o‘yiqlar */
  -webkit-mask:
    radial-gradient(circle 6px at 0 50%, transparent 96%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 6px at 100% 50%, transparent 96%, #000) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle 6px at 0 50%, transparent 96%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 6px at 100% 50%, transparent 96%, #000) right / 51% 100% no-repeat;
  transition: transform .25s var(--ix-ease, ease), background .2s ease, border-color .2s ease, color .2s ease;
}
/* emoji olib tashlandi */
.genre-chip span { display: none !important; }
/* yirtish chizig‘i (perforatsiya) */
.genre-chip::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 7px;
  bottom: 7px;
  border-left: 1.5px dashed color-mix(in srgb, var(--tc) 70%, transparent);
}
/* qirqma qismdagi kichik nuqta-teshik */
.genre-chip::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--tc);
  opacity: .8;
}
.genre-chip:hover {
  transform: translateY(-2px) rotate(-2deg);
  border-color: var(--tc);
  color: var(--tc);
  box-shadow: none;
  background:
    linear-gradient(90deg, var(--tc) 0 17px, transparent 17px),
    color-mix(in srgb, var(--tc) 10%, var(--surface));
}
.genre-chip:hover::after { background: var(--surface); opacity: 1; }
.genre-chip:nth-child(even):hover { transform: translateY(-2px) rotate(2deg); }
.genre-chip:focus-visible { outline: 2px solid var(--tc); outline-offset: -4px; }
.genre-chip:active { transform: translateY(0) scale(.97); }
@media (prefers-reduced-motion: reduce) {
  .genre-chip, .genre-chip:hover, .genre-chip:nth-child(even):hover { transform: none; }
}

/* ---------- "Qanday ishlaydi": gradient ramka, qadamlar uch xil rangda ---------- */
.ixcta-how {
  border: 1.5px solid transparent;
  background:
    linear-gradient(110deg, color-mix(in srgb, var(--brand-1) 8%, var(--surface)), color-mix(in srgb, var(--brand-3) 8%, var(--surface))) padding-box,
    var(--ix-ring) border-box;
}
.ixcta-how > span:nth-of-type(1) b { background: #ff6b35; box-shadow: 0 6px 14px -6px #ff6b35; }
.ixcta-how > span:nth-of-type(2) b { background: #e73c7e; box-shadow: 0 6px 14px -6px #e73c7e; }
.ixcta-how > span:nth-of-type(3) b { background: #7c5cff; box-shadow: 0 6px 14px -6px #7c5cff; }

/* ---------- Treylerlar: rasm yuklanguncha ichi bo'sh (rangli blok emas) ---------- */
.story-image { background: var(--surface-2); }

/* ---------- Bo'lim sarlavhalari: rangli chiziq + rangli "Barchasi" ---------- */
.movie-section-header h2 {
  position: relative;
  padding-left: 13px;
}
.movie-section-header h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--ix-c, var(--ix-c-def)), color-mix(in srgb, var(--ix-c, var(--ix-c-def)) 35%, transparent));
}
.movie-section .view-all-link {
  color: var(--ix-c, var(--ix-c-def));
  border: 1.5px solid color-mix(in srgb, var(--ix-c, var(--ix-c-def)) 40%, transparent);
  background: color-mix(in srgb, var(--ix-c, var(--ix-c-def)) 10%, transparent);
}
.movie-section .view-all-link:hover { background: color-mix(in srgb, var(--ix-c, var(--ix-c-def)) 18%, transparent); }

/* ---------- Kino kartalari: bo'lim rangidagi ramka ---------- */
.movie-section .mc-poster {
  border: 2px solid color-mix(in srgb, var(--ix-c, var(--ix-c-def)) 32%, transparent);
  box-shadow: 0 10px 22px -18px color-mix(in srgb, var(--ix-c, var(--ix-c-def)) 70%, transparent);
  transition: border-color .25s ease, box-shadow .25s ease;
}
@media (hover: hover) {
  .movie-section .mc-link:hover .mc-poster {
    border-color: var(--ix-c, var(--ix-c-def));
    box-shadow: 0 20px 36px -20px var(--ix-c, var(--ix-c-def));
  }
  .movie-section .mc-link:hover .mc-title { color: var(--ix-c, var(--ix-c-def)); }
}
.movie-section .mc-link:focus-visible .mc-poster { box-shadow: 0 0 0 3px var(--ix-c, var(--accent)); }
.movie-section .col-stack img { outline: 2px solid color-mix(in srgb, var(--ix-c, var(--ix-c-def)) 35%, transparent); outline-offset: -2px; }

/* ---------- Pastki menyu: rangli ramka, faol tugma — gradient ---------- */
.navbar { border: 1.5px solid color-mix(in srgb, var(--brand-3) 22%, var(--line)); }
.nav-link.active { position: relative; }
.nav-link.active::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 50%;
  width: 22px;
  height: 3px;
  margin-left: -11px;
  border-radius: 3px;
  background: var(--ix-ring);
}

/* ---------- Kino sahifasi: poster va CTA karta ramkasi ---------- */
.mp-poster { border: 2px solid color-mix(in srgb, var(--brand-2) 35%, transparent); }
@media (min-width: 900px) {
  .ix-cta-card {
    border: 2px solid transparent;
    background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--ix-ring) border-box;
  }
}

/* ---------- Qorong'i rejim: ramkalar biroz yorqinroq ---------- */
:root:not([data-theme=light]) .movie-section .mc-poster {
  border-color: color-mix(in srgb, var(--ix-c, var(--ix-c-def)) 42%, transparent);
}

/* ========== Maket asosida (02.10.2026) ========== */

/* Sarlavhadagi oxirgi so'z gradientda (enhance.js .ix-grad qo'yadi) */
.code-box-text b .ix-grad {
  display: inline;
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  background: linear-gradient(100deg, #e73c7e, #a14cf0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Qidiruv: maydon va tugma bitta blok */
.code-box-row { gap: 0; }
.code-box-row input {
  border-radius: 14px 0 0 14px;
  border-right: 0;
  background-color: var(--surface);
}
.code-box-row .btn {
  border-radius: 0 14px 14px 0;
  width: 58px;
  box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--brand-2) 80%, transparent);
}
.code-box-row .btn:not(:disabled):hover { transform: none; filter: brightness(1.06); }

/* Janrlar: o'ng chetda "›" tugmasi */
.ix-chips-host { position: relative; }
.ix-chips-next {
  position: absolute;
  right: 6px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--brand-3) 30%, var(--line));
  background: var(--surface);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0 0 3px 2px;
  cursor: pointer;
  box-shadow: 0 8px 18px -10px var(--shadow);
  transition: transform .2s var(--ix-ease), opacity .2s ease;
}
.ix-chips-next:hover { transform: translateX(2px); }
.ix-chips-next[hidden] { display: grid; opacity: 0; pointer-events: none; }

/* "Qanday ishlaydi": sarlavha tepada, qadamlar orasida strelka, katta gradient raqamlar */
.ixcta-how {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 26px;
  padding: 16px 18px;
  border-radius: 20px;
}
.ixcta-how > strong { grid-column: 1 / -1; font-size: 17px; font-weight: 850; }
.ixcta-how > span { position: relative; flex-direction: row !important; align-items: center !important; gap: 10px !important; }
.ixcta-how > span:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 15px;
}
.ixcta-how b {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  font-size: 16px;
  font-weight: 850;
}
.ixcta-how > span:nth-of-type(1) b { background: linear-gradient(135deg, #ff6b35, #e73c7e); }
.ixcta-how > span:nth-of-type(2) b { background: linear-gradient(135deg, #e73c7e, #a14cf0); }
.ixcta-how > span:nth-of-type(3) b { background: linear-gradient(135deg, #a14cf0, #4f6bff); }
.ixcta-how i { font-size: 13px; font-weight: 750; color: var(--text); line-height: 1.25; }

/* Bo'lim sarlavhalari kattaroq */
.movie-section-header h2 { font-size: 21px; font-weight: 900; }

/* Pastki menyu: faol bo'lim — pushti */
.nav-link.active, .nav-link.active svg { color: #e73c7e !important; }
.nav-link.active { font-weight: 800; }

@media (max-width: 599px) {
  .ixcta-how { gap: 10px 18px; padding: 14px 12px; }
  .ixcta-how > strong { font-size: 16px; }
  .ixcta-how > span { gap: 7px !important; }
  .ixcta-how > span:not(:last-child)::after { right: -14px; font-size: 12px; }
  .ixcta-how b { width: 32px; height: 32px; flex-basis: 32px; font-size: 14px; }
  .ixcta-how i { font-size: 11.5px; }
  .movie-section-header h2 { font-size: 19px; }
  .ix-chips-next { right: 2px; }
}/* chipta qiyshayganda burchagi kesilmasin */
.genre-chips { padding-top: 7px; }

/* ---------- Qidiruv kartasi: kinoplyonka (yuqori va pastda perforatsiya) ---------- */
:root { --ix-film: #1d1a26; }
:root[data-theme=dark] { --ix-film: #2c2739; }
.code-box { padding-top: 34px; padding-bottom: 34px; }
.code-box::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0 9px, transparent 9px) 8px 4px / 20px 5px repeat-x,
    linear-gradient(90deg, var(--bg) 0 9px, transparent 9px) 8px calc(100% - 4px) / 20px 5px repeat-x,
    linear-gradient(var(--ix-film), var(--ix-film)) top / 100% 13px no-repeat,
    linear-gradient(var(--ix-film), var(--ix-film)) bottom / 100% 13px no-repeat;
}
/* "kinokassa" yorlig'i sarlavha ustida */
.code-box-text::before {
  content: "KINOKASSA \00B7  24/7";
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 9px 3px 20px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: .14em;
  color: #e73c7e;
  background:
    radial-gradient(circle 3.5px at 10px 50%, #e73c7e 96%, transparent) no-repeat,
    color-mix(in srgb, #e73c7e 10%, transparent);
  border: 1px dashed color-mix(in srgb, #e73c7e 45%, transparent);
}
@media (max-width: 599px) {
  .code-box { padding-top: 26px; padding-bottom: 26px; }
  .code-box::after { background-size: 20px 4px, 20px 4px, 100% 10px, 100% 10px; background-position: 8px 3px, 8px calc(100% - 3px), top, bottom; }
}

/* ---------- Bo'lim sarlavhalari: emoji o'rniga chiziqli ikonka ---------- */
.movie-section-header h2.ix-has-ico { display: flex; align-items: center; gap: 10px; padding-left: 0; }
.movie-section-header h2.ix-has-ico::before { display: none; }
.ix-hico {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: var(--ix-c, var(--ix-c-def));
  background: color-mix(in srgb, var(--ix-c, var(--ix-c-def)) 13%, var(--surface));
  border: 1.5px solid color-mix(in srgb, var(--ix-c, var(--ix-c-def)) 40%, transparent);
  transform: rotate(-6deg);
  transition: transform .3s var(--ix-ease, ease);
}
.ix-hico svg { width: 19px; height: 19px; }
.movie-section:hover .ix-hico { transform: rotate(0) scale(1.06); }
@media (max-width: 599px) {
  .ix-hico { flex-basis: 30px; width: 30px; height: 30px; border-radius: 8px; }
  .ix-hico svg { width: 17px; height: 17px; }
}
@media (prefers-reduced-motion: reduce) { .ix-hico, .movie-section:hover .ix-hico { transform: none; } }

/* ---------- Treylerlar: hammasi sig'sa — markazda ---------- */
.stories-container.ix-static { justify-content: center; padding-left: 0; padding-right: 0; }
