/* =====================================================================
   SwipAi v3, итерация 2: кадр между слов, 3D-куб разделов, студия-дашборд.
   Идеи: Fancy Components (media between text, box carousel, pixel trail, scramble in).
   ===================================================================== */

/* ---------- Найди своё: кадр раскрывается между словами ---------- */
.find__stage { height: 100svh; display: grid; place-items: center; overflow: hidden; position: relative; }
.find__title { display: flex; align-items: center; justify-content: center; white-space: nowrap; text-shadow: none; position: relative; z-index: 2; }
.find__l, .find__r { display: inline-block; will-change: transform; }
.find__media {
  position: relative; display: inline-block; flex: none; height: .92em; aspect-ratio: 9 / 16; margin: 0 .06em;
  border-radius: .1em; overflow: hidden; background: var(--ink); transform: scaleX(0); will-change: transform;
  box-shadow: 0 0 0 2px rgba(240,171,252,.35), 0 30px 90px -20px rgba(217,70,239,.6);
}
.find__media img, .find__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.find__media img { opacity: 0; transition: opacity .6s ease; }
.find__media img.is-on { opacity: 1; }
.find__media::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(6,3,14,.22) 0 1px, transparent 1px 3px); pointer-events: none; }

/* ---------- 3D-куб разделов ---------- */
.cube-stage { position: relative; min-height: 100svh; display: grid; align-items: center; gap: 40px; padding: 90px var(--g); max-width: 1320px; margin: 0 auto; }
.feats { display: grid; gap: 10px; position: relative; z-index: 2; }
.feat { cursor: pointer; padding: 22px 24px 22px 26px; border-radius: 22px; background: rgba(12,6,32,.55); border: 1.5px solid transparent; opacity: .45; transition: opacity .4s ease, border-color .4s ease, background-color .4s ease; }
.feat h3 { font-size: clamp(26px, 2.6vw, 40px); }
.feat .ico { width: 44px; height: 44px; }
.feat.is-on { opacity: 1; border-color: rgba(240,171,252,.35); background: rgba(42,20,112,.45); }
.feat__bar { position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--orchid); transform: scaleY(0); transform-origin: top; transition: transform .6s var(--ease-out); }
.feat.is-on .feat__bar { transform: scaleY(1); }
.cube-box { position: relative; display: grid; place-items: center; perspective: 1600px; min-height: 420px; }
.cube { --s: min(38vw, 440px); position: relative; width: var(--s); height: var(--s); transform-style: preserve-3d; will-change: transform; }
.cube__f {
  position: absolute; inset: 0; backface-visibility: hidden; border-radius: 26px; overflow: hidden;
  background: linear-gradient(150deg, #1d0f45, #0c0620 70%); border: 1.5px solid rgba(240,171,252,.22);
  box-shadow: inset 0 0 80px rgba(109,40,217,.25);
  display: grid; grid-template-rows: auto 1fr; padding: 18px; gap: 14px;
}
.cube__f::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, rgba(255,255,255,.08), transparent 40%); }
.cube__top { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--blush); }
.cube__top b { color: var(--paper); letter-spacing: .02em; text-transform: none; font-size: 18px; font-weight: 800; }
.cube-shadow { position: absolute; bottom: -6%; left: 50%; width: 70%; height: 40px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(109,40,217,.55), transparent); filter: blur(6px); pointer-events: none; }
/* мини-интерфейсы на гранях */
.ui-cont { position: relative; border-radius: 16px; overflow: hidden; }
.ui-cont img { width: 100%; height: 100%; object-fit: cover; }
.ui-cont__info { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; background: linear-gradient(transparent, rgba(6,3,14,.92)); display: grid; gap: 8px; }
.ui-cont__info b { font-size: 18px; }
.ui-cont__info small { color: var(--text); font-size: 12px; }
.ui-bar { height: 4px; border-radius: 4px; background: rgba(241,234,255,.18); overflow: hidden; }
.ui-bar i { display: block; height: 100%; background: var(--orchid); transform-origin: left; transform: scaleX(.3); }
.ui-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ui-row img { width: 100%; aspect-ratio: 9 / 13; object-fit: cover; border-radius: 10px; }
.ui-ann { display: grid; gap: 12px; align-content: start; }
.ui-ann { min-height: 0; overflow: hidden; }
.ui-ann__card { position: relative; display: grid; grid-template-columns: 26% 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: 16px; background: rgba(241,234,255,.06); border: 1px solid var(--line); }
.ui-ann__card img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; }
.ui-chip { display: inline-flex; width: max-content; padding: 4px 10px; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: var(--orchid); color: var(--void); }
.ui-toggle { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text); }
.ui-toggle span { position: relative; width: 40px; height: 22px; border-radius: 22px; background: rgba(241,234,255,.2); transition: background-color .3s ease; flex: none; }
.ui-toggle span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); transition: transform .35s var(--ease-out); }
.ui-toggle.is-on span { background: var(--orchid); }
.ui-toggle.is-on span::after { transform: translateX(18px); }
.ui-bell { width: 30px; height: 30px; fill: none; stroke: var(--paper); stroke-width: 2; transform-origin: 50% 10%; }
.ui-search { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(241,234,255,.08); border: 1px solid var(--line); font-size: 15px; font-weight: 600; min-height: 46px; }
.ui-search svg { width: 18px; height: 18px; fill: none; stroke: var(--dim); stroke-width: 2; flex: none; }
.ui-search .caret { display: inline-block; width: 2px; height: 18px; background: var(--orchid); animation: blink 1s steps(2) infinite; vertical-align: -3px; margin-left: 2px; }
.ui-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ui-grid img { width: 100%; aspect-ratio: 9 / 13; object-fit: cover; border-radius: 10px; transition: opacity .35s ease, transform .45s var(--ease-out); }
.ui-grid img.is-out { opacity: 0; transform: scale(.9); }
.ui-brand { display: grid; place-items: center; text-align: center; gap: 12px; position: relative; }
.ui-brand__mosaic { position: absolute; inset: -18px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; opacity: .35; }
.ui-brand__mosaic img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.ui-brand img.logo { position: relative; width: 70%; }
@media (min-width: 900px) { .cube-stage { grid-template-columns: minmax(300px, .8fr) 1.2fr; } }
@media (max-width: 899px) {
  .cube-stage { padding-top: 70px; gap: 24px; }
  .cube-box { order: -1; min-height: 0; }
  .cube { --s: min(66vw, 300px); }
  .feats { gap: 6px; }
  .feat { padding: 12px 16px 12px 20px; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; }
  .feat .ico { width: 30px; height: 30px; }
  .feat h3 { font-size: 22px; }
  .feat p { grid-column: 1 / -1; font-size: 15px; display: none; }
  .feat.is-on p { display: block; }
}

/* ---------- Студия-дашборд для авторов ---------- */
.studio { position: relative; border-radius: 28px; overflow: hidden; border: 1.5px solid rgba(240,171,252,.18); background: rgba(8,4,20,.82); isolation: isolate; }
.studio__px { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.studio__bar { display: flex; align-items: center; gap: 8px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.studio__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(241,234,255,.18); }
.studio__bar i:first-child { background: #ff5f8a; }
.studio__bar span { margin-left: 10px; }
.studio__bar .live { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--blush); }
.studio__bar .live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--orchid); box-shadow: 0 0 10px var(--orchid); animation: blink 1.4s steps(2) infinite; }
.studio__grid { display: grid; gap: 1px; background: var(--line); }
.panel { position: relative; display: grid; gap: 12px; align-content: start; padding: clamp(20px, 2.4vw, 34px); background: rgba(8,4,20,.88); min-height: 220px; }
.panel__k { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--blush); }
.panel__v { font-size: clamp(56px, 6.4vw, 104px); font-weight: 900; letter-spacing: -.06em; line-height: .85; font-variant-numeric: tabular-nums; white-space: nowrap; }
.panel__t { color: var(--text); font-size: 16px; max-width: 26em; }
.panel--split .panel__v { color: var(--orchid); }
.donut { position: absolute; right: clamp(18px, 2vw, 30px); top: clamp(18px, 2vw, 30px); width: clamp(84px, 8vw, 120px); height: auto; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 10; }
.donut .bg { stroke: rgba(241,234,255,.1); }
.donut .fg { stroke: var(--orchid); stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(217,70,239,.6)); }
.days { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; margin-top: 4px; }
.days i { aspect-ratio: 1; border-radius: 2px; background: rgba(241,234,255,.1); transition: background-color .25s ease; }
.days i.is-on { background: var(--orchid); box-shadow: 0 0 6px rgba(217,70,239,.5); }
.days__cap { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.excl { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text); }
.excl span { position: relative; width: 54px; height: 30px; border-radius: 30px; background: var(--orchid); transition: background-color .4s ease; }
.excl span::after { content: ''; position: absolute; left: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); transform: translateX(24px); transition: transform .5s var(--ease-out); }
.excl.is-off span { background: rgba(241,234,255,.18); }
.excl.is-off span::after { transform: translateX(0); }
.shield { position: absolute; right: clamp(18px, 2vw, 30px); top: clamp(18px, 2vw, 30px); width: 64px; height: 64px; fill: none; stroke: var(--orchid); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shield path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease-out); }
.shield.is-drawn path { stroke-dashoffset: 0; }
.shield.is-drawn path + path { transition-delay: .5s; }
.panel--steps ol { list-style: none; margin: 4px 0 0; padding: 0 0 0 26px; display: grid; gap: 16px; position: relative; counter-reset: st; }
.panel--steps ol::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: rgba(241,234,255,.14); }
.panel--steps li { position: relative; font-size: 18px; font-weight: 700; counter-increment: st; }
.panel--steps li::before { content: counter(st); position: absolute; left: -26px; top: 2px; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; background: var(--deep); border: 1.5px solid var(--orchid); color: var(--paper); }
.flow-dot { position: absolute; left: 4px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 12px var(--orchid), 0 0 24px var(--orchid); }
.panel--who .btn { margin-top: 10px; justify-self: start; }
@media (min-width: 900px) { .studio__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 600px) and (max-width: 899px) { .studio__grid { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) { .studio__bar .live::before, .ui-search .caret { animation: none; } }

/* =====================================================================
   итерация 3: правки по отзыву Романа
   ===================================================================== */
/* убираем «рябь»: строки развёртки на всех картинках и на всей странице */
.fx-scan, .bp__img::after, .find__media::after, .board-wrap::before, .foot__word { display: none; }
.screen::after { background: linear-gradient(180deg, rgba(6,3,14,.1) 30%, rgba(6,3,14,.92)); }
.prism__f::after { background: linear-gradient(90deg, rgba(0,0,0,.1), transparent 8%, transparent 92%, rgba(0,0,0,.1)); }
.bp__img { height: auto; width: min(100%, 300px); max-height: 90%; }
/* шапка с затемнением, чтобы логотип не налезал на крупные заголовки */
.nav { background: linear-gradient(180deg, rgba(6,3,14,.92) 0%, rgba(6,3,14,.6) 60%, transparent); }
/* «Сейчас в ленте»: виден один жанр */
.onair__list.is-built > span:not(.onair__cur) { display: none; }
.onair__cur { display: inline-block; }
.js .onair__list.is-built > span + span { transform: none; }
/* видео в «Найди своё» без обработки */
.find__media { box-shadow: 0 40px 100px -30px rgba(0,0,0,.85); }
/* «Как смотреть»: перфорация за пределами карточек, телефон внутри карточки, без цветных контуров */
.how__item::before, .how__item::after { display: none; }
.how__track { padding: 56px 0; }
.how__track::before { top: 16px; } .how__track::after { bottom: 16px; }
.how__item > img { height: auto; max-height: min(52vh, 470px); align-self: center; }

/* ---------- лента в телефоне вместо статичных слов ---------- */
.manifest__stage.is-feed { min-height: 100svh; height: 100svh; display: grid; align-content: center; padding: 80px var(--g) 40px; overflow: hidden; }
.manifest__stage.is-feed .manifest__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.feed { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5vw; max-width: 1300px; width: 100%; margin: 0 auto; }
.feed__words { display: grid; }
.feed__w { grid-area: 1 / 1; font-size: clamp(48px, 7.2vw, 132px); font-weight: 900; letter-spacing: -.055em; line-height: .9; text-transform: uppercase; }
.feed__w:last-child { color: var(--orchid); }
.feed__phone { position: relative; height: min(72vh, 680px); aspect-ratio: 9 / 16; border-radius: 44px; overflow: hidden; background: #000;
  border: 9px solid #120a2b; box-shadow: 0 0 0 1.5px rgba(241,234,255,.16), 0 60px 140px -40px rgba(109,40,217,.8); }
.feed__strip { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.feed__strip img, .feed__strip video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.feed__bars { position: absolute; z-index: 2; left: 14px; right: 14px; top: 14px; display: flex; gap: 5px; }
.feed__bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; }
.feed__bars b { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.feed__ui { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 18px; display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.feed__swipe { letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.feed__phone::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 18%, transparent 75%, rgba(0,0,0,.45)); pointer-events: none; }
.manifest__stage.is-feed .manifest__sub { margin-top: 28px; max-width: 1300px; width: 100%; margin-left: auto; margin-right: auto; font-size: clamp(24px, 3vw, 48px); }
@media (max-width: 759px) {
  .feed { grid-template-columns: 1fr; justify-items: center; gap: 22px; }
  .feed__phone { order: -1; height: 52svh; border-radius: 30px; border-width: 6px; }
  .feed__w { font-size: 11vw; text-align: center; }
  .manifest__stage.is-feed .manifest__sub { text-align: center; margin-top: 14px; }
}
