/* Прототип v2: главная «Морок: Сеча трёх» на мире «Клятвы Межи» (Codex).
   Поверх ../oath/style.css, roster.css, battle.css — их не трогаем. */

:root {
  --v2-ground: #120e13;
  --v2-panel: #1b1519;
  --v2-rule: #6b5440;
  --v2-gold: #e2bb76;
  --v2-gold-2: #ffdca0;
  --v2-ink: #f7e9c9;
  --v2-muted: #cdbfa3;
  --v2-wrap: min(calc(100% - 2 * var(--edge)), 1360px);
}
::selection { background: #7a3b25; color: #fff3dc; }
html { scrollbar-color: #6b5440 #120e13; }
.v2-wrap { width: var(--v2-wrap); margin-inline: auto; }

/* ── Первый экран ─────────────────────────────────────────── */
.v2-opening .duel-frame { min-height: clamp(560px, calc(100svh - 70px), 860px); }
.v2-opening .duel-title { width: min(40vw, 640px); }
.v2-opening .duel-title h1 { font-size: clamp(84px, 9vw, 168px); }
.v2-opening .duel-title h1 .v2-sub {
  display: block; margin-top: calc(clamp(84px, 9vw, 168px) * .34); /* хвост «р» у Ponomar уходит глубоко вниз */
  font: 500 clamp(20px, 1.9vw, 34px)/1 var(--body);
  letter-spacing: .42em; text-transform: uppercase; text-indent: .42em;
  color: var(--v2-gold);
}
.v2-opening .duel-title p { margin-bottom: 0; }
.v2-fact { font-weight: 500 !important; color: var(--v2-muted) !important; font-size: clamp(13px, 1vw, 16px) !important; letter-spacing: .06em; }
.v2-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 22px; margin-top: clamp(16px, 1.8vw, 28px); }

.v2-store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px 0 18px;
  color: #1c1208; background: linear-gradient(180deg, #ffe1a6, #dfa64e);
  border: 1px solid #ffe7b8; border-radius: 3px;
  box-shadow: 0 10px 28px -12px #e09a3fcc, inset 0 -2px 0 #b97f2f;
  font: 650 16px/1.1 var(--body); text-decoration: none; white-space: nowrap;
}
.v2-store svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.v2-store small { display: block; font-size: 11px; font-weight: 550; letter-spacing: .04em; opacity: .75; }
.v2-store[aria-disabled="true"] { cursor: default; }
a.v2-store:hover { background: linear-gradient(180deg, #fff0cf, #ebb560); }
/* Магазины: App Store — золотая; Google Play и RuStore — тонкие рядом под ней. */
.v2-stores { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.v2-stores-alt { display: flex; gap: 8px; }
.v2-store.v2-store-alt {
  min-height: 42px; padding: 0 14px 0 12px; gap: 8px;
  color: #f6dbab; background: #160f0bcc; border-color: #bb9c63; box-shadow: none;
  font-size: 14px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.v2-store.v2-store-alt svg { width: 14px; height: 14px; }
.v2-store.v2-store-alt small { font-size: 10px; opacity: .7; }
a.v2-store.v2-store-alt:hover { background: #2a1d12; color: #ffe7b8; }
.v2-get-actions .v2-stores { align-items: flex-start; }
.v2-store:active { transform: translateY(1px); box-shadow: 0 6px 18px -10px #e09a3fcc, inset 0 -1px 0 #b97f2f; }

@media (prefers-reduced-motion: no-preference) {
  [data-enter] > * { animation: v2-rise .9s cubic-bezier(.16, 1, .3, 1) both; }
  [data-enter] > *:nth-child(2) { animation-delay: .08s; }
  [data-enter] > *:nth-child(3) { animation-delay: .14s; }
  [data-enter] > *:nth-child(4) { animation-delay: .2s; }
  .duel-art img { animation: v2-settle 2.4s cubic-bezier(.16, 1, .3, 1) both; }
  .v2-store { transition: transform .18s ease, box-shadow .25s ease, background .25s ease; }
  a.v2-store:hover { transform: translateY(-2px); }
}
@keyframes v2-rise { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
@keyframes v2-settle { from { transform: scale(1.06); filter: brightness(.6) saturate(.8); } }

@media (max-width: 660px) {
  .v2-opening .duel-frame { min-height: max(640px, calc(100svh - 57px)); }
  .v2-opening .duel-title { width: calc(100% - 2 * var(--edge)); }
  .v2-opening .duel-title h1 { font-size: clamp(62px, 18vw, 92px); }
  .v2-opening .duel-title h1 span { display: block; }
  .v2-opening .duel-title h1 .v2-sub { font-size: 16px; letter-spacing: .36em; margin-top: calc(clamp(62px, 18vw, 92px) * .34); }
  .v2-opening .duel-title .watch { position: static; transform: none; }
  .v2-actions { position: absolute; left: 0; right: 0; top: calc(max(640px, calc(100svh - 57px)) - 206px); margin: 0; gap: 4px 16px; }
  .v2-store { min-height: 50px; }
}

/* ── Герои: смена картины — один авторский момент ─────────── */
@media (prefers-reduced-motion: no-preference) {
  .oath-roster .or-profile:not([hidden]) .or-art { animation: v2-unveil .7s cubic-bezier(.16, 1, .3, 1) both; }
  .oath-roster .or-profile:not([hidden]) .or-story > * { animation: v2-rise .6s cubic-bezier(.16, 1, .3, 1) both; }
  .oath-roster .or-profile:not([hidden]) .or-lore { animation-delay: .06s; }
  .oath-roster .or-token img { transition: transform .25s ease, border-color .2s ease; }
  .oath-roster .or-token:hover img { transform: translateY(-2px); }
}
@keyframes v2-unveil { from { opacity: 0; clip-path: inset(0 8% 0 0); filter: blur(10px) brightness(.7); } }

/* ── Бой на iPhone ────────────────────────────────────────── */
.v2-play {
  position: relative; padding-block: clamp(64px, 8vw, 120px);
  background:
    radial-gradient(60% 70% at 78% 50%, #2a3a3433, transparent 70%),
    linear-gradient(#141015, #0f1316);
  border-top: 1px solid #3b3029;
}
.v2-play-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.35fr); gap: clamp(28px, 5vw, 84px); align-items: center; }
.v2-play h2, .v2-get h2 { margin: 0; font: 600 clamp(42px, 4.6vw, 74px)/.98 var(--folio); letter-spacing: -.035em; color: var(--v2-ink); text-wrap: balance; }
.v2-lead { margin: 18px 0 0; max-width: 34ch; color: var(--v2-muted); font: 500 clamp(19px, 1.55vw, 24px)/1.35 var(--folio); }
.v2-facts { list-style: none; margin: clamp(26px, 3vw, 44px) 0 0; padding: 0; display: grid; gap: 0; }
.v2-facts li { display: grid; grid-template-columns: 10.5rem 1fr; align-items: baseline; gap: 16px; padding: 14px 0; border-top: 1px solid #4a3c31; }
.v2-facts li > * { min-width: 0; }
.v2-facts li:last-child { border-bottom: 1px solid #4a3c31; }
.v2-facts b { font: 400 clamp(26px, 2vw, 31px)/1 var(--display); color: var(--v2-gold-2); white-space: nowrap; }
.v2-facts span { color: #e9dcc0; font-size: 16px; line-height: 1.4; }

.v2-device {
  position: relative; padding: clamp(10px, 1.1vw, 16px);
  background: linear-gradient(145deg, #2e2a2c, #0b0a0c 55%, #24201f);
  border-radius: clamp(28px, 3.4vw, 52px);
  box-shadow: 0 40px 80px -30px #000, 0 0 0 1px #4d4239, inset 0 0 0 1px #000;
}
.v2-device::before { /* остров камеры */
  content: ""; position: absolute; z-index: 2; left: clamp(10px, 1.1vw, 16px); top: 50%; width: 8px; height: 22%;
  translate: 6px -50%; border-radius: 6px; background: #050506;
}
.v2-screen { position: relative; overflow: hidden; aspect-ratio: 1280 / 592; border-radius: clamp(20px, 2.5vw, 38px); background: #0b0d0c; }
.v2-clip { width: 100%; height: 100%; object-fit: cover; }
.v2-clip-toggle {
  position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid #ffffff55; border-radius: 50%; background: #0c0a0bb3; color: #fff; backdrop-filter: blur(6px);
}
.v2-clip-toggle svg { width: 16px; height: 16px; fill: currentColor; }
.v2-clip-toggle .i-play, .v2-clip-toggle[aria-pressed="true"] .i-pause { display: none; }
.v2-clip-toggle[aria-pressed="true"] .i-play { display: block; }

@media (max-width: 860px) {
  .v2-play-grid { grid-template-columns: 1fr; }
  .v2-device { order: 2; }
  .v2-play-copy { display: contents; }
  .v2-play-copy > h2 { order: 0; }
  .v2-lead { order: 1; margin-top: -8px; }
  .v2-facts { order: 3; margin-top: 0; }
  .v2-facts li { grid-template-columns: 1fr; gap: 4px; }
  .v2-device { border-radius: 26px; padding: 8px; }
  .v2-screen { border-radius: 19px; }
}

/* ── Как проходит сеча (Codex) — пути к картинкам в разметке ─ */
.oath-battle { border-top: 1px solid #3b3029; }

/* ── Скачать + правила ────────────────────────────────────── */
.v2-get {
  padding-block: clamp(64px, 8vw, 120px);
  background:
    linear-gradient(180deg, #120e13 0%, #120e13d9 40%, #120e13 100%),
    url("../oath/art/tale-crossing.webp") center 30% / cover no-repeat;
  border-top: 1px solid #3b3029;
}
.v2-get-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 84px); align-items: start; }
.v2-get-card { padding: clamp(26px, 3vw, 44px); background: #1a1418e6; border: 1px solid var(--v2-rule); }
.v2-get-card > p { margin: 16px 0 0; color: #eadfc6; font: 500 clamp(18px, 1.4vw, 22px)/1.35 var(--folio); max-width: 36ch; }
.v2-get-actions { margin: 26px 0 8px; }
.v2-get .v2-small { font: 400 14px/1.5 var(--body); color: var(--v2-muted); max-width: 52ch; margin-top: 12px; }
.v2-get .v2-small b { color: var(--v2-gold-2); font-weight: 600; }
.v2-rules h3 { margin: 0 0 10px; font: 600 clamp(30px, 2.6vw, 42px)/1 var(--folio); color: var(--v2-ink); }
.v2-rules details { border-bottom: 1px solid #5a4838; }
.v2-rules details:first-of-type { border-top: 1px solid #5a4838; }
.v2-rules summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; cursor: pointer; list-style: none;
  font: 600 clamp(20px, 1.6vw, 25px)/1.2 var(--folio); color: #f1ddb3;
}
.v2-rules summary::-webkit-details-marker { display: none; }
.v2-rules summary span { flex: none; width: 12px; height: 12px; border: 1px solid var(--v2-gold); transform: rotate(45deg); transition: transform .25s ease, background-color .25s ease; }
.v2-rules details[open] summary span { background: var(--v2-gold); transform: rotate(225deg) scale(.8); }
.v2-rules details p { margin: 0 0 18px; color: #e4d7bc; max-width: 52ch; }
@media (max-width: 860px) { .v2-get-grid { grid-template-columns: 1fr; } }

/* ── Подвал ───────────────────────────────────────────────── */
.v2-foot { border-top: 1px solid #5a493c; background: #0f0c10; }
.v2-foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding-block: 26px; }
.v2-foot .end-mark { text-decoration: none; color: var(--v2-ink); }
.v2-foot .end-mark small { display: block; font: 550 9px/1.2 var(--body); letter-spacing: .13em; text-transform: uppercase; color: var(--v2-gold); }
.v2-foot nav { display: flex; flex-wrap: wrap; gap: 0 clamp(14px, 2.2vw, 32px); }
.v2-foot nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--v2-muted); font-size: 14px; text-decoration: none; }
.v2-foot nav a:hover { color: #f4cd87; text-decoration: underline; text-underline-offset: .25em; }
.v2-age { display: inline-grid; place-items: center; min-width: 38px; height: 26px; border: 1px solid #8b7a62; color: #cbbd9f; font-size: 13px; }

/* Шапка: хвост «р» в логотипе не должен задевать «Сеча трёх» */
.mast .wordmark small, .v2-foot .end-mark small { margin-top: .62em; }

/* ── Карта Калёного моста ─────────────────────────────────── */
.v2-map { padding-block: clamp(64px, 8vw, 120px); background: linear-gradient(#0f1316, #121012); border-top: 1px solid #3b3029; }
.v2-map-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: clamp(22px, 2.6vw, 40px); }
.v2-map-head h2 { margin: 0; font: 600 clamp(42px, 4.6vw, 74px)/.98 var(--folio); letter-spacing: -.035em; color: var(--v2-ink); }
.v2-map-head p { margin: 0; color: var(--v2-muted); font: 500 clamp(17px, 1.3vw, 20px)/1.35 var(--folio); }
/* Карта за минуту — вертикальный ролик со звуком рядом с текстом. */
.v2-map-tour { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(20px, 3vw, 48px); align-items: center; margin-top: clamp(40px, 5vw, 72px); padding-top: clamp(32px, 4vw, 56px); border-top: 1px solid #3b3029; }
.v2-map-tour-copy h3 { margin: 0 0 14px; font: 600 clamp(32px, 3.2vw, 52px)/1 var(--folio); letter-spacing: -.03em; color: var(--v2-ink); }
.v2-map-tour-copy p { margin: 0 0 12px; max-width: 46ch; color: var(--v2-muted); font: 500 clamp(17px, 1.3vw, 20px)/1.4 var(--folio); }
.v2-map-tour-video { display: block; width: min(340px, 100%); height: auto; aspect-ratio: 9 / 16; background: #0b0a0c; border: 1px solid #5a4a36; border-radius: 4px; box-shadow: 0 24px 60px -30px #000; }
@media (max-width: 760px) {
  .v2-map-tour { grid-template-columns: 1fr; justify-items: center; }
  .v2-map-tour-copy { justify-self: stretch; }
  .v2-map-tour-video { width: min(360px, 100%); }
}
.v2-map-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
.v2-map-stage { position: relative; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--v2-rule); background: #0c0e0e; box-shadow: 0 30px 70px -40px #000; }
.v2-map-plane {
  --z: 1; --tx: 0%; --ty: 0%;
  position: absolute; inset: 0;
  transform: scale(var(--z)) translate(var(--tx), var(--ty));
  transform-origin: 50% 50%;
}
.v2-map-img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .v2-map-plane { transition: transform 1.1s cubic-bezier(.16, 1, .3, 1); }
  .v2-map-img { transition: filter .8s ease; }
}
.v2-map[data-zoomed] .v2-map-img { filter: saturate(1.1) brightness(1.08); }

.v2-pin {
  position: absolute; left: var(--x); top: var(--y); z-index: 1;
  width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0;
  display: grid; place-items: center; border: 0; background: none; cursor: pointer;
  transform: scale(calc(1 / var(--z)));
}
.v2-map:not(.ready) .v2-pin { display: none; }
@media (prefers-reduced-motion: no-preference) { .v2-pin { transition: transform 1.1s cubic-bezier(.16, 1, .3, 1); } }
.v2-pin::before { /* ромбик-метка */
  content: ""; width: 16px; height: 16px; rotate: 45deg;
  background: #1a1410; border: 2px solid var(--v2-gold); box-shadow: 0 0 0 4px #00000066, 0 0 18px #f0b45a66;
  transition: background-color .2s ease, scale .2s ease;
}
.v2-pin[data-side="morok"]::before { border-color: #9fd9c2; box-shadow: 0 0 0 4px #00000066, 0 0 18px #7ad6b866; }
.v2-pin[data-kind="boss"]::before { width: 20px; height: 20px; border-color: #ff8a4c; box-shadow: 0 0 0 4px #00000066, 0 0 26px #ff6a2c99; }
.v2-pin span {
  position: absolute; left: 50%; top: calc(100% - 4px); translate: -50% 0; white-space: nowrap;
  padding: 3px 8px; background: #120e12e6; border: 1px solid #6b5440; color: #f3e3c2; font: 600 12px/1.2 var(--body);
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.v2-pin:hover span, .v2-pin:focus-visible span, .v2-pin[aria-pressed="true"] span { opacity: 1; }
.v2-pin:hover::before { scale: 1.2; }
.v2-pin[aria-pressed="true"]::before { background: var(--v2-gold); scale: 1.25; }
.v2-pin[data-side="morok"][aria-pressed="true"]::before { background: #9fd9c2; }
.v2-pin[data-kind="boss"][aria-pressed="true"]::before { background: #ff8a4c; }
.v2-pin:focus-visible { outline: none; }
.v2-pin:focus-visible::before { outline: 2px solid #ffe095; outline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .v2-map.ready:not([data-zoomed]) .v2-pin[data-kind="boss"]::before { animation: v2-ember 2.8s ease-in-out infinite; }
}
@keyframes v2-ember { 50% { box-shadow: 0 0 0 4px #00000066, 0 0 34px #ff6a2ccc; } }
.v2-map-reset {
  position: absolute; left: 12px; top: 12px; z-index: 2; min-height: 44px; padding: 0 16px;
  background: #120e12e6; color: #f3e3c2; border: 1px solid var(--v2-gold); font: 600 14px/1 var(--body);
}
.v2-map-reset:hover { background: #2a1d17; }

.v2-map-card { min-height: 100%; padding: clamp(22px, 2.4vw, 36px); background: #1a1418; border: 1px solid var(--v2-rule); }
.v2-map-card[data-side="morok"] { background: #121a1c; border-color: #50665d; }
.v2-map-card h3 { margin: 0; font: 600 clamp(32px, 3vw, 50px)/1 var(--folio); color: var(--v2-ink); letter-spacing: -.03em; }
.v2-map-card p { margin: 14px 0 0; color: #e7dabf; font: 500 clamp(18px, 1.4vw, 22px)/1.35 var(--folio); max-width: 40ch; }
.v2-map-card .v2-map-sub { margin: 0 0 8px; color: var(--v2-gold); font: 600 14px/1.2 var(--body); }
.v2-map-card[data-side="morok"] .v2-map-sub { color: #9fd9c2; }
.v2-map-media { margin: calc(-1 * clamp(22px, 2.4vw, 36px)) calc(-1 * clamp(22px, 2.4vw, 36px)) 22px; aspect-ratio: 16 / 9; overflow: hidden; background: #0b0b0d; }
.v2-map-media :is(img, video) { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .v2-map-card > * { animation: v2-rise .6s cubic-bezier(.16, 1, .3, 1) both; }
  .v2-map-media :is(img, video) { animation: v2-unveil .8s cubic-bezier(.16, 1, .3, 1) both; }
}
@media (max-width: 860px) {
  .v2-map-grid { grid-template-columns: 1fr; }
  .v2-map-card { min-height: 0; }
}
.v2-places { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
/* Кнопки перехода в карточке места — в стиле кнопок сторон на первом экране. */
.v2-place {
  display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 6px 16px 6px 14px;
  background: #341a19ed; border: 1px solid #ac8752; color: #ffe3a6; cursor: pointer;
  font: 600 clamp(21px, 1.7vw, 27px)/1 var(--folio); letter-spacing: -.01em;
}
.v2-place::before {
  content: ""; flex: none; width: 9px; height: 9px; transform: rotate(45deg);
  border: 1px solid #e9b867; background: #e2793b; box-shadow: 0 0 10px #ff8a3d99;
}
.v2-place svg { flex: none; width: 17px; height: 17px; margin-left: 4px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.v2-place:hover, .v2-place:focus-visible { background-color: #582823; }
.v2-place:focus-visible { outline: 2px solid var(--v2-gold-2); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .v2-place, .v2-place svg { transition: transform .25s ease, background-color .25s ease; }
  .v2-place:hover svg, .v2-place:focus-visible svg { transform: translateX(3px); }
}
@media (min-width: 861px) {
  .v2-map-grid > .v2-map-card { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; }
  .v2-map-grid > .v2-map-stage { grid-row: 1; }
}

/* Клипы из игры в «Как проходит сеча» */
.battle-picture video { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .battle-picture video { opacity: var(--scene-opacity, 0); transition: opacity 220ms ease-out; }
}

/* Ссылка «Сказание и умения» у героя в блоке «Выбери героя». */
.oath-roster .or-tale {
  display: inline-flex; align-items: center; gap: 10px; align-self: start; min-height: 48px; margin-top: 18px; padding: 6px 16px;
  background: #341a19ed; border: 1px solid #ac8752; color: #ffe3a6; text-decoration: none;
  font: 600 clamp(20px, 1.6vw, 26px)/1 var(--folio);
}
.oath-roster [data-side="morok"] .or-tale { background: #111d27ed; border-color: #87958a; color: #e2e8df; }
.oath-roster .or-tale svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.oath-roster .or-tale:hover, .oath-roster .or-tale:focus-visible { background-color: #582823; }
.oath-roster [data-side="morok"] .or-tale:hover, .oath-roster [data-side="morok"] .or-tale:focus-visible { background-color: #273b45; }
.oath-roster .or-tale:focus-visible { outline: 2px solid var(--v2-gold-2); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .oath-roster .or-tale svg { transition: transform .25s ease; }
  .oath-roster .or-tale:hover svg { transform: translateX(3px); }
}

/* ── Радио Морока ── */
.v2-radio { padding: clamp(60px, 7vw, 120px) 0; background: radial-gradient(90% 120% at 85% 20%, #3a1d14 0%, transparent 60%), var(--v2-ground); border-top: 1px solid #3a2e2a; }
.v2-radio-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.v2-radio h2 { margin: 0; font: 600 clamp(42px, 4.6vw, 74px)/.98 var(--folio); letter-spacing: -.035em; color: var(--v2-ink); }
.v2-radio-onair { display: none; align-items: center; gap: 10px; margin: 0 0 16px; font: 600 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: #ffb27a; }
.v2-radio-onair i { width: 9px; height: 9px; border-radius: 50%; background: #ff6a2b; box-shadow: 0 0 12px #ff6a2b; }
.v2-radio-facts { margin-top: 26px; }

.v2-player { background: linear-gradient(180deg, #221815 0%, #161113 100%); border: 1px solid #6b5440; padding: clamp(18px, 2vw, 28px); }
.v2-player-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.v2-radio-play {
  position: relative; width: 72px; height: 72px; border-radius: 50%; border: 1px solid #e9b867; cursor: pointer;
  background: radial-gradient(circle at 50% 40%, #e2793b 0%, #8e2f1a 70%); color: #fff1d8; display: grid; place-items: center;
  box-shadow: 0 0 0 6px #e2793b22, 0 10px 30px #e2793b33;
}
.v2-radio-play svg, .v2-mini-play svg { width: 28px; height: 28px; fill: currentColor; }
.v2-radio-play .i-pause, [data-radio][data-state="playing"] .v2-radio-play .i-play,
.v2-mini-play .i-pause, .v2-mini[data-state="playing"] .v2-mini-play .i-play { display: none; }
[data-radio][data-state="playing"] .v2-radio-play .i-pause, .v2-mini[data-state="playing"] .v2-mini-play .i-pause { display: block; }
.v2-radio-play:focus-visible, .v2-player button:focus-visible, .v2-mini button:focus-visible, .v2-mini a:focus-visible { outline: 2px solid var(--v2-gold-2); outline-offset: 3px; }
.v2-now { min-width: 0; }
.v2-now-set { margin: 0; font: 600 11px/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--v2-muted); }
.v2-now-title { margin: 6px 0 10px; font: 600 clamp(24px, 2.2vw, 34px)/1.05 var(--folio); color: var(--v2-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-seek { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.v2-seek input {
  --p: 0%; -webkit-appearance: none; appearance: none; width: 100%; height: 4px; margin: 0; cursor: pointer; border-radius: 2px;
  background: linear-gradient(90deg, #e2793b var(--p), #4f3f33 var(--p));
}
.v2-seek input:disabled { cursor: default; opacity: .5; }
.v2-seek input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #ffe3a6; border: 0; }
.v2-seek input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #ffe3a6; border: 0; }
.v2-time { font: 500 12px/1 var(--body); color: var(--v2-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.v2-player-btns { display: flex; gap: 6px; }
.v2-player-btns button, .v2-mini-next {
  width: 44px; height: 44px; display: grid; place-items: center; background: transparent; border: 1px solid #6b5440; color: #ffe3a6; cursor: pointer;
}
.v2-player-btns svg, .v2-mini-next svg { width: 18px; height: 18px; fill: currentColor; }
.v2-player-btns button:hover, .v2-mini-next:hover { background: #582823; }

.v2-tracks {
  margin: 20px 0 0; padding: 4px 0 0; list-style: none; border-top: 1px solid #3f322b; max-height: 360px; overflow-y: auto;
  columns: 2; column-gap: 18px; scrollbar-color: #6b5440 transparent; scrollbar-width: thin;
}
.v2-tracks li { break-inside: avoid; }
.v2-tracks button {
  display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 9px 4px; background: none; border: 0; border-bottom: 1px solid #2c2320;
  color: var(--v2-ink); cursor: pointer; text-align: left; font: 400 15px/1.25 var(--body);
}
.v2-tracks button:hover { color: #ffe3a6; }
.v2-tracks button[aria-current="true"] { color: #ffb27a; }
.v2-tracks button[aria-current="true"] .v2-tr-title::before { content: "▶ "; font-size: .8em; }
.v2-tr-dur { color: var(--v2-muted); font-variant-numeric: tabular-nums; font-size: 13px; }

.v2-mini {
  position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 40;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; width: min(460px, calc(100% - 24px));
  padding: 8px 10px; background: #1a1315f2; border: 1px solid #ac8752; box-shadow: 0 12px 40px #000a;
}
.v2-mini[hidden] { display: none; }
.v2-mini-play { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #e9b867; background: radial-gradient(circle at 50% 40%, #e2793b, #8e2f1a 70%); color: #fff1d8; display: grid; place-items: center; cursor: pointer; }
.v2-mini-play svg { width: 20px; height: 20px; }
.v2-mini-title { color: var(--v2-ink); text-decoration: none; font: 600 18px/1.1 var(--folio); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: no-preference) {
  [data-radio][data-state="playing"] .v2-radio-play { animation: v2-ember 2.4s ease-in-out infinite; }
  .v2-player[data-state="playing"] ~ * .v2-radio-onair i, .v2-radio-onair i { animation: v2-ember-dot 1.6s ease-in-out infinite; }
}
@keyframes v2-ember { 50% { box-shadow: 0 0 0 10px #e2793b18, 0 10px 40px #e2793b55; } }
@keyframes v2-ember-dot { 50% { opacity: .45; } }
@media (max-width: 900px) {
  .v2-radio-grid { grid-template-columns: 1fr; }
  .v2-tracks { columns: 1; max-height: 300px; }
}
@media (max-width: 480px) {
  .v2-player-top { grid-template-columns: auto minmax(0, 1fr); }
  .v2-player-btns { grid-column: 1 / -1; justify-content: flex-end; }
  .v2-radio-play { width: 60px; height: 60px; }
}

/* Плашка «Своё радио» на первом экране и ссылка на страницу радио. */
.v2-music-badge {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 14px; padding: 7px 14px; border: 1px solid #ac875299;
  background: #1a1315b3; color: #ffe3a6; text-decoration: none; font: 600 13px/1.2 var(--body); letter-spacing: .02em;
}
.v2-music-badge i { width: 8px; height: 8px; border-radius: 50%; background: #ff6a2b; box-shadow: 0 0 10px #ff6a2b; flex: none; }
.v2-music-badge:hover, .v2-music-badge:focus-visible { background: #341a19e6; border-color: #e9b867; }
.v2-music-badge:focus-visible { outline: 2px solid var(--v2-gold-2); outline-offset: 2px; }
.v2-radio-all {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 16px;
  border: 1px solid #ac8752; background: #341a19ed; color: #ffe3a6; text-decoration: none; font: 600 clamp(19px, 1.5vw, 24px)/1 var(--folio);
}
.v2-radio-all svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; flex: none; }
.v2-radio-all:hover, .v2-radio-all:focus-visible { background: #582823; }
.v2-radio-all:focus-visible { outline: 2px solid var(--v2-gold-2); outline-offset: 2px; }
.v2-get .v2-small a { color: #ffe3a6; }
@media (prefers-reduced-motion: no-preference) {
  .v2-music-badge i { animation: v2-ember-dot 1.6s ease-in-out infinite; }
  .v2-radio-all svg { transition: transform .25s ease; }
  .v2-radio-all:hover svg { transform: translateX(3px); }
}

.v2-radio .v2-lead { margin-top: 18px; }

.v2-facts a { color: #ffe3a6; }
.v2-facts a:focus-visible { outline: 2px solid var(--v2-gold-2); outline-offset: 2px; }
