/* 🎬 «Мини-сериал» v3 (#2355, ✅ Армана 25.10 15:58, docs/approved/mini_series_v3.md). Каркас и кнопки — klipy2.css (k2-*). */
.ms-lbl { margin: 18px 0 8px; font-size: 15px; font-weight: 700; color: #f7d58c; }
.k2-cols > div > .ms-lbl:first-child { margin-top: 4px; }
/* герои */
.ms-heroes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ms-h { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.ms-av { position: relative; width: 84px; height: 84px; border-radius: 50%; border: 2.5px solid #f2c46d; box-shadow: 0 0 0 4px rgba(242,196,109,.12); box-sizing: border-box; }
.ms-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.ms-av.add { border: 2px dashed rgba(242,196,109,.6); box-shadow: none; display: flex; align-items: center; justify-content: center; color: #f7d58c; font-size: 30px; }
.ms-av .k2-spin { width: 28px; height: 28px; }
.ms-add { cursor: pointer; position: relative; }
.ms-add small { font-size: 14px; color: #d9c7aa; text-align: center; }
.ms-add input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ms-add:focus-within .ms-av { outline: 2px solid #f7d58c; outline-offset: 3px; }
.ms-hx { position: absolute; top: -6px; right: -6px; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid rgba(242,196,109,.6); background: #2a1015; color: #fbf1de; font-size: 14px; line-height: 1; cursor: pointer; }
.ms-hx::after { content: ""; position: absolute; inset: -6px; }   /* зона нажатия 44px */
.ms-nm { width: 100%; box-sizing: border-box; min-height: 44px; padding: 6px 8px; border-radius: 12px; border: 1.5px solid rgba(242,196,109,.35); background: #1a0b0f; color: #fbf1de; font: inherit; font-size: 16px; text-align: center; }
.ms-nm.ph { display: block; border-style: dashed; }
.ms-nm:focus { outline: none; border-color: #f2c46d; }
.ms-gen { margin-top: 10px; }
/* длина серии */
.ms-len { padding: 14px; border-radius: 18px; border: 1.5px solid rgba(242,196,109,.35); background: rgba(255,238,208,.05); }
.ms-len-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ms-len-top b { font: 700 28px/1 Georgia, "Times New Roman", serif; color: #f7d58c; white-space: nowrap; }
.ms-rng { --p: 0%; -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 4px 0 0; background: transparent; cursor: pointer; }
.ms-rng::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, #f7d58c, #e2a94a) 0 / var(--p) 100% no-repeat, rgba(242,196,109,.2); }
.ms-rng::-moz-range-track { height: 8px; border-radius: 4px; background: rgba(242,196,109,.2); }
.ms-rng::-moz-range-progress { height: 8px; border-radius: 4px; background: linear-gradient(90deg, #f7d58c, #e2a94a); }
.ms-rng::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: #fbf1de; border: 3px solid #e2a94a; box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.ms-rng::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fbf1de; border: 3px solid #e2a94a; }
.ms-rng:focus-visible { outline: 2px solid #f7d58c; outline-offset: 2px; border-radius: 8px; }
.ms-len-sc { display: flex; justify-content: space-between; font-size: 14px; color: #cdb89a; }
/* цена */
.ms-price { margin-top: 12px; }
.ms-sum { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 15px; border-bottom: 1px solid rgba(242,196,109,.15); }
.ms-sum:last-child { border: 0; }
.ms-sum b { color: #f7d58c; white-space: nowrap; }
.ms-sum.neg b { color: #ff9b8a; }
/* плашка «Мои мини-сериалы» */
.ms-my { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 18px; padding: 14px; border-radius: 20px; border: 1.5px solid rgba(242,196,109,.75); background: linear-gradient(135deg, rgba(247,213,140,.2), rgba(122,30,46,.35) 60%, rgba(19,7,9,.6)); color: #fbf1de; text-align: left; font: inherit; box-sizing: border-box; cursor: pointer; }
.ms-stack { position: relative; width: 86px; height: 76px; flex: none; }
.ms-stack img { position: absolute; width: 46px; height: 70px; object-fit: cover; border-radius: 10px; border: 2px solid #f2c46d; box-shadow: 0 4px 10px rgba(0,0,0,.5); }
.ms-stack img:nth-child(1) { left: 0; top: 6px; transform: rotate(-9deg); }
.ms-stack img:nth-child(2) { left: 20px; top: 2px; transform: rotate(-1deg); z-index: 1; }
.ms-stack img:nth-child(3) { left: 40px; top: 6px; transform: rotate(8deg); z-index: 2; }
.ms-stack:empty::before { content: "🎬"; font-size: 40px; display: flex; height: 100%; align-items: center; justify-content: center; }
.ms-my b { display: block; font: 700 19px/1.2 Georgia, "Times New Roman", serif; }
.ms-my small { display: block; margin-top: 4px; font-size: 14px; color: #e3d3ba; }
.ms-my em { margin-left: auto; font-style: normal; font-size: 26px; color: #f7d58c; }
/* плитки сериалов */
.ms-ep-n { position: absolute; left: 8px; top: 8px; z-index: 1; padding: 2px 10px; border-radius: 999px; background: rgba(19,7,9,.78); border: 1px solid rgba(242,196,109,.55); font-size: 14px; font-weight: 700; color: #f7d58c; }
/* серии */
.ms-cast { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 6px; }
.ms-cast span { display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: 72px; font-size: 14px; color: #e3d3ba; text-align: center; overflow-wrap: anywhere; }
.ms-cast img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 2px solid #f2c46d; }
.ms-eps { display: grid; gap: 10px; }
.ms-ep { display: flex; gap: 12px; width: 100%; padding: 10px; border-radius: 16px; border: 1.5px solid rgba(242,196,109,.3); background: rgba(255,238,208,.05); color: #fbf1de; font: inherit; text-align: left; box-sizing: border-box; }
button.ms-ep { cursor: pointer; }
.ms-ep .pv { position: relative; width: 64px; height: 112px; flex: none; border-radius: 12px; overflow: hidden; border: 1.5px solid rgba(242,196,109,.4); background: #2a1015; display: flex; align-items: center; justify-content: center; }
.ms-ep .pv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ms-ep.play .pv::after { content: "▶"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; text-shadow: 0 1px 6px #000; }
.ms-ep .pv .k2-spin { position: relative; width: 26px; height: 26px; }
.ms-ep-t { min-width: 0; flex: 1; }
.ms-ep b { display: block; font-size: 16px; }
.ms-ep p { margin: 4px 0 0; font-size: 14px; line-height: 1.35; color: #e3d3ba; }
.ms-ep small { display: block; margin-top: 6px; font-size: 14px; color: #cdb89a; }
.ms-ep.bad small { color: #ff9b8a; }
.ms-ep .k2-prog { display: block; height: 8px; margin-top: 8px; }
/* идея следующей серии */
.ms-idea { padding: 16px; border-radius: 20px; border: 1.5px solid rgba(242,196,109,.9); background: linear-gradient(160deg, rgba(247,213,140,.18), rgba(226,169,74,.06)); }
.ms-idea .k2-ta { margin-top: 10px; }
.ms-tag { display: inline-flex; gap: 6px; padding: 4px 12px; border-radius: 999px; background: rgba(242,196,109,.16); border: 1.5px solid rgba(242,196,109,.6); color: #f7d58c; font-size: 14px; font-weight: 700; }
.ms-idea h3 { margin: 10px 0 8px; font: 700 21px/1.25 Georgia, "Times New Roman", serif; }
.ms-idea dl { margin: 0; display: grid; grid-template-columns: 96px 1fr; gap: 8px 10px; font-size: 15px; line-height: 1.35; }
.ms-idea dt { color: #f7d58c; font-weight: 700; }
.ms-idea dd { margin: 0; color: #fbf1de; }
.ms-idea .k2-listen { margin-top: 12px; }
.ms-mem { margin: 12px 0 0; font-size: 14px; color: #d9c7aa; }
.ms-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.ms-row .k2-btn { margin: 0; }
@media (min-width: 700px) {
  .ms-heroes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ms-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* поле идеи: справа 🎤 и ✕ общего голосового ввода — текст под них не заходит */
.ms-ov textarea.vi-field { padding-right: 112px !important; min-height: 120px; }
/* ══ #2385 сезон · серия · «Когда оживлять?» · очередь (✅ Армана 25.10 21:09, docs/approved/mini_series_v3.md п. 8–12) ══ */
.ms-bible { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-radius: 16px; border: 1.5px dashed rgba(242,196,109,.5); background: rgba(242,196,109,.06); font-size: 14px; line-height: 1.4; color: #e3d3ba; }
.ms-bible b { color: #f7d58c; }
.ms-qbtn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; margin-top: 12px; padding: 10px 14px; box-sizing: border-box; border-radius: 16px; border: 1.5px solid rgba(150,165,255,.5); background: rgba(120,140,255,.1); color: #fbf1de; font: inherit; text-align: left; cursor: pointer; }
.ms-qbtn > span:first-child { font-size: 22px; }
.ms-qbtn b { display: block; font-size: 16px; } .ms-qbtn small { display: block; font-size: 14px; color: #cfd6ff; }
.ms-qbtn em { margin-left: auto; font-style: normal; font-size: 24px; color: #cfd6ff; }
.ms-sl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 4px; }
.ms-se { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 12px; box-sizing: border-box; border-radius: 14px; border: 1.5px solid rgba(242,196,109,.25); background: rgba(255,238,208,.04); color: #fbf1de; font: inherit; text-align: left; cursor: pointer; }
.ms-se.on { border-color: #f2c46d; background: rgba(242,196,109,.1); }
.ms-se .n { flex: none; width: 34px; font: 700 18px/1 Georgia, "Times New Roman", serif; color: #f7d58c; text-align: center; }
.ms-se .t { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-se:focus-visible, .ms-qbtn:focus-visible, .ms-opt:focus-visible { outline: 2px solid #f7d58c; outline-offset: 2px; }
.ms-chip { flex: none; padding: 3px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; white-space: nowrap; border: 1px solid rgba(242,196,109,.25); background: rgba(255,238,208,.06); color: #d9c7aa; }
.ms-chip.done { background: rgba(111,207,151,.16); color: #bfe9cf; border-color: rgba(111,207,151,.5); }
.ms-chip.q { background: rgba(120,140,255,.14); color: #cfd6ff; border-color: rgba(150,165,255,.45); }
.ms-chip.fr { background: rgba(242,196,109,.18); color: #f7d58c; border-color: rgba(242,196,109,.6); }
.ms-chip.bad { background: rgba(255,155,138,.12); color: #ffb9ad; border-color: rgba(255,155,138,.45); }
.ms-ept { margin: 0 0 4px; font: 700 21px/1.25 Georgia, "Times New Roman", serif; color: #fbf1de; }
.ms-blk { margin-top: 14px; }
.ms-blk h3 { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 6px; font: 700 17px/1.2 Georgia, "Times New Roman", serif; }
.ms-blk p { margin: 0; font-size: 15px; line-height: 1.45; color: #e3d3ba; }
.ms-ed { min-height: 44px; padding: 0 4px; border: 0; background: none; color: #f7d58c; font: 600 14px system-ui, sans-serif; cursor: pointer; }
.ms-ln { margin: 6px 0 0; padding: 8px 12px; border-left: 3px solid #f2c46d; border-radius: 0 10px 10px 0; background: rgba(255,238,208,.05); font-size: 15px; line-height: 1.4; }
.ms-ln b { color: #f7d58c; }
.ms-lnE { display: block; margin-top: 8px; font-size: 14px; } .ms-lnE b { display: block; margin-bottom: 4px; color: #f7d58c; }
.ms-fg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.ms-fr { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ms-fr-im { position: relative; display: block; aspect-ratio: 9/16; border-radius: 12px; overflow: hidden; border: 1.5px solid rgba(242,196,109,.3); background: #2a1015; }
.ms-fr-im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ms-fw { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #cdb89a; }
.ms-fr-n { position: absolute; left: 6px; top: 6px; min-width: 26px; height: 26px; padding: 0 6px; box-sizing: border-box; border-radius: 13px; background: rgba(19,7,9,.78); border: 1px solid rgba(242,196,109,.5); color: #f7d58c; font-size: 14px; font-weight: 700; line-height: 24px; text-align: center; }
.ms-fr-st { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 6px; background: rgba(19,7,9,.82); color: #f7d58c; font-size: 14px; text-align: center; }
.ms-fr .k2-btn { width: 100%; padding: 6px 4px; }
.ms-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ms-opt { min-height: 72px; padding: 12px; border-radius: 16px; border: 1.5px solid rgba(242,196,109,.35); background: rgba(255,238,208,.04); color: #fbf1de; font: inherit; text-align: center; cursor: pointer; }
.ms-opt b { display: block; font-size: 17px; } .ms-opt small { display: block; margin-top: 4px; font-size: 14px; color: #d9c7aa; }
.ms-opt.on { border: 2.5px solid #f2c46d; background: rgba(242,196,109,.14); }
.ms-tm { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.ms-tm label { display: block; font-size: 14px; color: #d9c7aa; }
.ms-tm select { -webkit-appearance: none; appearance: none; display: block; width: 100%; box-sizing: border-box; min-height: 48px; margin-top: 4px; border-radius: 14px; border: 1.5px solid rgba(242,196,109,.5); background: #1a0b0f; color: #fbf1de; font: 700 22px/1 Georgia, "Times New Roman", serif; text-align: center; color-scheme: dark; }
.ms-stp { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 8px 8px 8px 14px; border-radius: 14px; border: 1.5px solid rgba(242,196,109,.35); }
.ms-stp span { font-size: 15px; } .ms-stp div { display: flex; align-items: center; gap: 14px; }
.ms-stp button { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid rgba(242,196,109,.5); background: rgba(255,238,208,.06); color: #f7d58c; font-size: 22px; cursor: pointer; }
.ms-stp button:disabled { opacity: .4; cursor: default; }
.ms-stp b { min-width: 24px; font: 700 22px/1 Georgia, "Times New Roman", serif; text-align: center; }
.ms-cap { margin-top: 12px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid rgba(242,196,109,.5); background: rgba(242,196,109,.08); font-size: 14px; line-height: 1.4; color: #e3d3ba; }
.ms-cap b { color: #f7d58c; } .ms-cap.over { border-color: rgba(255,155,138,.6); background: rgba(255,155,138,.08); }
.ms-mq { display: grid; gap: 10px; margin-top: 4px; }
.ms-me { padding: 12px; border-radius: 16px; border: 1.5px solid rgba(242,196,109,.3); background: rgba(255,238,208,.04); }
.ms-me.ok { border-color: rgba(111,207,151,.6); }
.ms-me .hd { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ms-me .hd b { min-width: 0; font-size: 16px; } .ms-me .hd .ok { color: #bfe9cf; font-size: 14px; font-weight: 700; white-space: nowrap; } .ms-me .hd .w { color: #f7d58c; font-size: 14px; font-weight: 700; white-space: nowrap; }
.ms-me .k2-prog { height: 8px; } .ms-me .k2-btn { width: 100%; margin-top: 10px; }
.ms-pv-redo { white-space: nowrap; position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 2; background: rgba(19,7,9,.85); }
@media (min-width: 700px) { .ms-fg { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* #3312: заглушка «Скоро откроется» для учеников, пока раздел закрыт */
.ms-soon { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 24px auto 0; max-width: 520px; padding: 28px 20px 22px; text-align: center; }
.ms-soon-ic { font-size: 56px; line-height: 1; }
.ms-soon-t { margin: 0; font-size: 22px; line-height: 1.25; }
.ms-soon .k2-lead { margin: 0; }
.ms-soon .k2-btn { width: 100%; min-height: 48px; margin-top: 6px; }
