/* «Данил Мухин» (/app/author*): герой с орбитой платформ, цифры, книга,
   видео и клипы, магазины. Только токены; общие строки/карточки — account.css. */

.au-screen { --au-orbit: 300px; --au-r: 118px; }

/* ── Монограмма площадки ─────────────────────────────────── */
.au-mono {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 32px; height: 32px; border-radius: var(--radius-full);
  background: var(--accent-a12); color: var(--ac-hi);
  font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0; line-height: 1;
}
.au-mono--lg { width: 48px; height: 48px; background: var(--on-primary-a18); color: var(--on-primary); font-size: var(--fs-body); }
.au-badge { padding: 3px var(--sp-2); border-radius: var(--radius-full); background: var(--accent-a15); color: var(--ac-hi); font-size: var(--fs-micro); font-weight: 600; white-space: nowrap; }
.au-row--main { background: var(--accent-a06); }
.au-foot { margin: var(--sp-4) var(--sp-1) 0; font-size: var(--fs-small); }

/* ── Герой: фото в центре, платформы по кругу ────────────── */
.au-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: var(--sp-2); }
.au-orbit { position: relative; width: min(var(--au-orbit), 100%); aspect-ratio: 1; }
.au-orbit::before {
  content: ""; position: absolute; inset: 41px; border-radius: var(--radius-full);
  border: 1px dashed var(--border);
}
.au-orbit__photo {
  position: absolute; top: 50%; left: 50%; width: 132px; height: 132px; margin: -66px 0 0 -66px;
  border-radius: var(--radius-full); object-fit: cover; border: 3px solid var(--accent);
  box-shadow: var(--shadow-glow-strong);
}
.au-orbit__ring { position: absolute; inset: 0; animation: au-spin 140s linear infinite; }
.au-orbit__dot {
  position: absolute; top: 50%; left: 50%; display: block; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: var(--radius-full); background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-card-sm); text-decoration: none;
  transform: rotate(calc(360deg / var(--n) * var(--i))) translateY(calc(var(--au-r) * -1)) rotate(calc(-360deg / var(--n) * var(--i)));
}
.au-orbit__mono { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; animation: au-spin-rev 140s linear infinite; }
.au-orbit:hover .au-orbit__ring, .au-orbit:hover .au-orbit__mono,
.au-orbit:focus-within .au-orbit__ring, .au-orbit:focus-within .au-orbit__mono { animation-play-state: paused; }
.au-orbit__dot:focus-visible { outline: 2px solid var(--ac-hi); outline-offset: 2px; }
@keyframes au-spin { to { transform: rotate(360deg); } }
@keyframes au-spin-rev { to { transform: rotate(-360deg); } }

.au-hero__name { margin: var(--sp-2) 0 0; font-size: var(--fs-title-lg); font-weight: 700; line-height: 1.15; color: var(--text); }
.au-hero__role { margin: var(--sp-1) 0 0; font-size: var(--fs-overline); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ac-hi); }
.au-hero__lead { margin: var(--sp-3) var(--sp-2) 0; font-size: var(--fs-body-rd); line-height: 1.5; color: var(--text-secondary); }

/* ── Цифры ───────────────────────────────────────────────── */
.au-stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); margin-top: var(--sp-5); }
.au-stat {
  display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-4);
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card-sm);
}
.au-stat__num { font-size: var(--fs-title-lg); font-weight: 800; line-height: 1.1; color: var(--ac-hi); font-variant-numeric: tabular-nums; }
.au-stat__label { font-size: var(--fs-small); line-height: 1.35; color: var(--text-secondary); }

/* ── Книга ───────────────────────────────────────────────── */
.au-book { padding: var(--sp-4); }
.au-book__title { margin: 0; font-size: var(--fs-h3); font-weight: 700; color: var(--text); }
.au-book__sub { margin: var(--sp-1) 0 0; font-size: var(--fs-body-rd); line-height: 1.45; color: var(--text-secondary); }
.au-book__meta { margin: var(--sp-3) 0 0; font-size: var(--fs-small); line-height: 1.5; color: var(--text-secondary); }
.au-book__isbn { margin: var(--sp-1) 0 0; font-size: var(--fs-small); color: var(--text-secondary); }

.au-month { display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--sp-2); margin: var(--sp-4) 0; padding: var(--sp-3); border-radius: var(--radius); background: var(--bg-alt); }
.au-day { aspect-ratio: 1; border-radius: var(--radius-full); background: var(--accent-a22); animation: au-pop .5s var(--ease) both; animation-delay: calc(var(--d) * 28ms); }
.au-day--last { background: var(--accent); box-shadow: var(--shadow-glow); }
@keyframes au-pop { from { transform: scale(.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.au-gains { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); margin: 0; padding: 0; list-style: none; }
.au-gain { display: flex; gap: var(--sp-2); align-items: flex-start; }
.au-gain__n {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 24px; height: 24px;
  border-radius: var(--radius-full); background: var(--accent-a15); color: var(--ac-hi); font-size: var(--fs-small); font-weight: 700;
}
.au-gain__t { font-size: var(--fs-caption); font-weight: 600; line-height: 1.3; color: var(--text); }
.au-gain__s { display: block; margin-top: 2px; font-weight: 400; color: var(--text-secondary); }

/* ── Карточка товара (как на маркетплейсе) ───────────────── */
.au-pcard { padding: var(--sp-4); }
.au-pcard__top { display: flex; gap: var(--sp-4); align-items: flex-start; }
.au-cover {
  position: relative; flex-shrink: 0; width: 132px; height: auto; aspect-ratio: 7 / 10; object-fit: cover;
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
}
.au-pcard__info { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.au-pcard__author { margin: 0; font-size: var(--fs-caption); font-weight: 600; color: var(--ac-hi); }
.au-pcard__title { margin: var(--sp-1) 0 0; font-size: var(--fs-h3); font-weight: 800; line-height: 1.15; color: var(--text); }
.au-pcard__sub { margin: var(--sp-2) 0 0; font-size: var(--fs-caption); line-height: 1.4; color: var(--text-secondary); }
.au-tags { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin: var(--sp-3) 0 0; padding: 0; list-style: none; }
.au-tags li { padding: 3px var(--sp-2); border-radius: var(--radius-full); background: var(--accent-a12); color: var(--ac-hi); font-size: var(--fs-small); font-weight: 600; }
.au-specs { display: grid; gap: 0; margin: var(--sp-4) 0 0; padding-top: var(--sp-2); border-top: 1px solid var(--border); }
.au-specs div { display: flex; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-2) 0; border-bottom: 1px solid var(--border); font-size: var(--fs-caption); }
.au-specs div:last-child { border-bottom: 0; }
.au-specs dt { color: var(--text-secondary); }
.au-specs dd { margin: 0; text-align: right; color: var(--text); font-weight: 600; }
.au-screen .kp-seg { margin-top: var(--sp-4); }

/* ── Основной магазин ────────────────────────────────────── */
.au-main {
  display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-4); padding: var(--sp-4);
  border-radius: var(--radius-lg); color: var(--on-primary);
  background: linear-gradient(135deg, var(--primary-light), var(--accent-dark)); box-shadow: var(--shadow-glow);
}
.au-main__row { display: flex; align-items: center; gap: var(--sp-3); }
.au-main__text { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.au-main__tag { font-size: var(--fs-micro); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--on-primary-a85); }
.au-main__name { font-size: var(--fs-h3); font-weight: 800; }
.au-main__sub { font-size: var(--fs-small); color: var(--on-primary-a85); }
.au-main__btn {
  gap: var(--sp-2); background: var(--on-primary); color: var(--primary-dark); text-decoration: none;
}
.au-main__btn:focus-visible { outline: 2px solid var(--on-primary); outline-offset: 3px; }
.au-main__note { margin: 0; text-align: center; font-size: var(--fs-small); color: var(--on-primary-a85); }
.au-arrow { flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── Предложения магазинов: название, куда ведёт, кнопка ──── */
.au-offer { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--border); }
.au-offer:first-child { border-top: 0; }
.au-offer__text { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.au-offer__name { font-size: var(--fs-body-rd); font-weight: 600; color: var(--text); }
.au-offer__sub { margin-top: 1px; font-size: var(--fs-small); line-height: 1.35; color: var(--text-secondary); }
.au-offer__dom { margin-top: 2px; font-size: var(--fs-small); color: var(--ac-hi); }
.au-offer__btn {
  display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: var(--sp-1);
  min-height: var(--tap-min); padding: 0 var(--sp-4); border-radius: var(--radius-full);
  background: var(--accent); color: var(--on-accent); font-size: var(--fs-caption); font-weight: 700; text-decoration: none;
}
.au-offer__btn:focus-visible { outline: 2px solid var(--ac-hi); outline-offset: 2px; }

/* ── Путь: вертикальная шкала ────────────────────────────── */
.au-tl { margin: 0; padding: 0 0 0 var(--sp-1); list-style: none; }
.au-tl__item {
  position: relative; display: flex; flex-direction: column; gap: 2px; padding: 0 0 var(--sp-5) var(--sp-8);
  animation: au-rise .5s var(--ease) both; animation-delay: calc(var(--d) * 80ms);
}
.au-tl__item::before { content: ""; position: absolute; top: 18px; bottom: 0; left: 8px; width: 2px; background: var(--border); }
.au-tl__item:last-child { padding-bottom: 0; }
.au-tl__item:last-child::before { display: none; }
.au-tl__dot { position: absolute; top: 3px; left: 1px; width: 16px; height: 16px; border-radius: var(--radius-full); border: 3px solid var(--accent); background: var(--bg); }
.au-tl__item--accent .au-tl__dot { background: var(--accent); box-shadow: var(--shadow-glow-strong); }
.au-tl__when { font-size: var(--fs-small); font-weight: 700; color: var(--ac-hi); letter-spacing: .02em; }
.au-tl__title { font-size: var(--fs-card-title); font-weight: 700; color: var(--text); }
.au-tl__text { font-size: var(--fs-caption); line-height: 1.45; color: var(--text-secondary); }
.au-tl__item--accent .au-tl__title { color: var(--ac-hi); }
@keyframes au-rise { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── Видео и клипы ───────────────────────────────────────── */
.au-screen .kp-seg { margin-top: var(--sp-2); }
.au-feed { margin-top: var(--sp-4); display: grid; gap: var(--sp-3); }
.au-feed--videos { grid-template-columns: 1fr 1fr; gap: var(--sp-4) var(--sp-3); }
.au-feed--clips { grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); }

.au-video { display: flex; flex-direction: column; gap: var(--sp-2); padding: 0; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.au-video__thumb, .au-clip { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-alt); }
.au-video__thumb { display: block; aspect-ratio: 16 / 9; }
.au-video__thumb img, .au-clip img { display: block; width: 100%; height: 100%; object-fit: cover; }
.au-clip { aspect-ratio: 9 / 16; padding: 0; border: 0; cursor: pointer; }
.au-video__play {
  position: absolute; top: 50%; left: 50%; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: var(--radius-full);
  background: var(--surface-a90); box-shadow: var(--shadow-card-sm);
}
.au-video__play::after { content: ""; margin-left: 3px; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent var(--accent-dark); }
.au-clip .au-video__play { width: 32px; height: 32px; margin: -16px 0 0 -16px; }
.au-video__dur { position: absolute; right: var(--sp-1); bottom: var(--sp-1); padding: 1px var(--sp-1); border-radius: var(--radius-sm); background: var(--primary-dark); color: var(--on-primary); font-size: var(--fs-micro); }
.au-video__title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
  font-size: var(--fs-caption); font-weight: 600; line-height: 1.35;
}
.au-video:focus-visible, .au-clip:focus-visible { outline: 2px solid var(--ac-hi); outline-offset: 3px; border-radius: var(--radius); }
.au-more { width: 100%; margin-top: var(--sp-4); }

/* плеер в шторке */
.au-player { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--bg-alt); }
.au-player--clip { width: auto; height: min(68dvh, 560px); margin-inline: auto; aspect-ratio: 9 / 16; }
.au-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.au-player__open { width: 100%; margin-top: var(--sp-3); }

@media (prefers-reduced-motion: reduce) {
  .au-orbit__ring, .au-orbit__mono, .au-day, .au-tl__item { animation: none; }
}

.au-ava { width: 32px; height: 32px; flex-shrink: 0; border-radius: var(--radius-full); object-fit: cover; border: 1px solid var(--accent-a30); }
