/* MIU Records · release. Тёмный, в цветах makeituprecords.com, устроен как iOS.
   Движение только transform и opacity; prefers-reduced-motion гасит всё. */

:root {
  --bg: #000;
  --row: #16171f;
  --row-2: #20212b;
  --row-press: #262733;
  --sep: rgba(255, 255, 255, .08);
  --text: #fff;
  --muted: #8e8e96;
  --muted-2: #c3c3c5;
  --a1: #3c4fff;
  --a2: #7000f0;
  --cyan: #00adfd;
  --pink: #e895ff;
  --ok: #30d158;
  --warn: #ffd60a;
  --err: #ff453a;
  --r: 16px;
  --spring: cubic-bezier(.32, .72, 0, 1);
  --out: cubic-bezier(.23, 1, .32, 1);
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text);
  font: 400 15px/1.45 Poppins, -apple-system, system-ui, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.locked { overflow: hidden; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }

/* Свечение фона, как на сайте MIU. Отдельный неподвижный слой без filter. */
.glow {
  position: fixed; inset: -20vh -20vw; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40vmax 40vmax at 8% 18%, rgba(0, 173, 253, .10), transparent 70%),
    radial-gradient(42vmax 42vmax at 95% 40%, rgba(112, 0, 240, .13), transparent 70%),
    radial-gradient(36vmax 36vmax at 30% 100%, rgba(232, 149, 255, .07), transparent 70%);
}

.grad {
  background: linear-gradient(95deg, var(--a1), #6a3cff 55%, var(--a2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------------------------------------------------------------- шапка */
.bar {
  position: sticky; top: 0; z-index: 30;
  padding: calc(var(--sat) + 10px) 16px 10px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
  background: rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: saturate(160%) blur(20px); backdrop-filter: saturate(160%) blur(20px);
  border-bottom: .5px solid transparent;
  transition: border-color .25s;
}
.bar.scrolled { border-bottom-color: var(--sep); }
.bar .logo { height: 30px; width: auto; }
.bar .mid {
  font-weight: 600; font-size: 16px; text-align: center; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 56vw;
  opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .25s var(--out);
}
.bar.scrolled .mid { opacity: 1; transform: none; }
.bar .end { justify-self: end; display: flex; gap: 6px; align-items: center; }
.bar .start { justify-self: start; display: flex; align-items: center; gap: 4px; min-width: 0; }
.back {
  display: inline-flex; align-items: center; gap: 2px; color: var(--muted-2);
  min-height: 44px; padding-right: 8px; font-weight: 500;
}
.back svg { width: 22px; height: 22px; }

.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px;
  color: var(--muted-2);
}
.icon-btn:active { background: var(--row); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--a1), var(--a2)); font-weight: 600; font-size: 14px;
  color: #fff; text-transform: uppercase;
}

/* ---------------------------------------------------------------- страница */
.wrap { max-width: 680px; margin: 0 auto; padding: 4px 16px calc(120px + var(--sab)); }
.large {
  font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em;
  margin: 6px 0 4px;
}
.sub { color: var(--muted); margin: 0 0 18px; }
.screen { animation: enter .42s var(--out) both; }
.screen.back-in { animation-name: enterBack; }
@keyframes enter { from { opacity: 0; transform: translateX(22px); } }
@keyframes enterBack { from { opacity: 0; transform: translateX(-22px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.section-title {
  font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  margin: 26px 16px 8px; font-weight: 500;
}
.section-note { font-size: 13px; color: var(--muted); margin: 8px 16px 0; line-height: 1.45; }

/* ---------------------------------------------------------------- группы iOS */
.group { background: var(--row); border-radius: var(--r); overflow: hidden; }
.group + .group { margin-top: 12px; }
.row {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 52px; padding: 10px 16px; text-align: left;
  transition: background-color .15s;
}
.row + .row::before {
  content: ''; position: absolute; top: 0; right: 0; left: 16px; height: .5px;
  background: var(--sep);
}
.row.ind + .row::before, .row + .row.ind::before { left: 60px; }
button.row:active, .row.tap:active { background: var(--row-press); }
.row .lbl { flex: 1; min-width: 0; }
.row .lbl small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; }
.row .val {
  color: var(--muted); max-width: 55%; text-align: right; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.row .val.set { color: var(--muted-2); }
.row .chev { width: 8px; height: 13px; color: #55565f; flex: none; }
.row .ico {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none;
  background: var(--row-2); color: var(--muted-2);
}
.row .ico svg { width: 17px; height: 17px; }
.row.gap::after {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--pink);
  flex: none; box-shadow: 0 0 0 4px rgba(232, 149, 255, .12);
}
.row.readonly .val { color: var(--muted); }
.row.danger { color: var(--err); justify-content: center; font-weight: 500; }

.field {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px;
  padding: 6px 0; color: var(--text);
}
.field::placeholder { color: #5d5e68; }
textarea.field { resize: none; min-height: 110px; line-height: 1.5; }
.row.stack { flex-direction: column; align-items: stretch; gap: 2px; }
.row.stack > .cap { font-size: 12px; color: var(--muted); }

/* переключатель iOS */
.switch {
  position: relative; width: 51px; height: 31px; flex: none; border-radius: 999px;
  background: #39393d; transition: background-color .25s;
}
.switch::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px;
  border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .3);
  transition: transform .3s var(--spring);
}
.switch.on { background: var(--ok); }
.switch.on::after { transform: translateX(20px); }

/* сегменты */
.seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 2px;
  border-radius: 10px; background: #0e0f15; position: relative; width: 100%;
}
.seg button {
  position: relative; z-index: 1; min-height: 34px; border-radius: 8px; font-size: 13px;
  font-weight: 500; color: var(--muted-2); transition: color .2s;
}
.seg button.on { color: #fff; }
.seg .thumb {
  position: absolute; z-index: 0; top: 2px; bottom: 2px; left: 2px; border-radius: 8px;
  background: var(--row-2); box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
  transition: transform .35s var(--spring);
}

.check { display: flex; gap: 12px; align-items: flex-start; text-align: left; }
.check .box {
  width: 24px; height: 24px; flex: none; border-radius: 7px; border: 1.5px solid #4a4b56;
  display: grid; place-items: center; transition: background-color .2s, border-color .2s;
  margin-top: 1px;
}
.check .box svg { width: 14px; height: 14px; opacity: 0; transform: scale(.6);
  transition: opacity .2s, transform .3s var(--spring); }
.check.on .box { background: var(--a1); border-color: var(--a1); }
.check.on .box svg { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 16px;
  background: #fff; color: #000; transition: transform .2s var(--out), opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .35; pointer-events: none; }
.btn.wide { width: 100%; }
.btn.dark { background: var(--row-2); color: #fff; }
.btn.grad-bg { background: linear-gradient(95deg, var(--a1), var(--a2)); color: #fff; }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.link { color: var(--muted-2); font-weight: 500; min-height: 44px; }

/* ---------------------------------------------------------------- вход */
.hero { padding: 7vh 4px 20px; }
.hero h1 { font-size: 44px; line-height: 1.05; margin: 0 0 8px; font-weight: 700;
  letter-spacing: -.03em; }
.hero h2 { font-size: 22px; margin: 0 0 14px; font-weight: 600; }
.hero p { color: var(--muted-2); margin: 0 0 26px; max-width: 460px; }
.code-input { letter-spacing: .5em; font-size: 26px; font-weight: 600; text-align: center; }
.fine { font-size: 12.5px; color: var(--muted); margin-top: 14px; line-height: 1.5; }
.fine a { color: var(--muted-2); }

/* ---------------------------------------------------------------- релизы */
.rel-list { display: grid; gap: 10px; }
.rel {
  display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 18px;
  background: var(--row); text-align: left; width: 100%;
  animation: rise .45s var(--out) both; animation-delay: calc(var(--i, 0) * 40ms);
  transition: transform .2s var(--out);
}
.rel:active { transform: scale(.985); }
.cover-sm {
  width: 64px; height: 64px; border-radius: 10px; flex: none; object-fit: cover;
  background: linear-gradient(135deg, #1d1f2b, #0d0e14); display: grid; place-items: center;
  color: #3a3b48;
}
.rel .t { font-weight: 600; font-size: 16px; line-height: 1.25; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.rel .a { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.rel .body { flex: 1; min-width: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 500; background: var(--row-2); color: var(--muted-2);
  margin-top: 6px;
}
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.draft { color: var(--muted-2); }
.chip.submitted { color: var(--cyan); }
.chip.in_review { color: #7b88ff; }
.chip.live { color: var(--ok); }
.chip.rejected { color: var(--err); }
.empty { text-align: center; padding: 8vh 20px 20px; color: var(--muted); }
.empty img { width: 92px; margin: 0 auto 16px; opacity: .9; }

/* ---------------------------------------------------------------- шаги мастера */
.steps {
  position: sticky; top: calc(var(--sat) + 64px); z-index: 20; margin: 0 -16px 8px;
  padding: 6px 16px 10px; background: rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.steps .seg { background: #0c0d12; }
.steps .seg button { font-size: 12.5px; }
.steps .seg button .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--pink); margin-left: 5px; vertical-align: 2px; }
.steps .seg button.done .dot { background: var(--ok); }

.footer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  padding: 12px 16px calc(12px + var(--sab));
  background: linear-gradient(to top, rgba(0, 0, 0, .95) 55%, rgba(0, 0, 0, 0));
}
.footer .in { max-width: 680px; margin: 0 auto; display: flex; gap: 10px; align-items: center; }
.footer .in .btn { flex: 1; }
.left-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px;
  border-radius: 999px; background: rgba(232, 149, 255, .12); color: var(--pink);
  font-size: 13px; font-weight: 600; flex: none;
}
.left-chip.ok { background: rgba(48, 209, 88, .12); color: var(--ok); }

/* ---------------------------------------------------------------- треки */
.drop {
  border: 1.5px dashed #33343f; border-radius: 18px; padding: 22px 16px; text-align: center;
  color: var(--muted-2); transition: border-color .2s, background-color .2s;
  display: grid; gap: 6px; justify-items: center; width: 100%;
}
.drop.over { border-color: var(--a1); background: rgba(60, 79, 255, .07); }
.drop svg { width: 28px; height: 28px; color: var(--muted-2); }
.drop small { color: var(--muted); font-size: 12.5px; }
.tr-num { width: 26px; text-align: center; color: var(--muted); font-weight: 600; flex: none;
  font-variant-numeric: tabular-nums; }
.tr-state { flex: none; display: flex; align-items: center; gap: 6px; color: var(--muted);
  font-size: 13px; font-variant-numeric: tabular-nums; }
.ring { width: 22px; height: 22px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3; }
.ring .bg { stroke: #2c2d38; }
.ring .fg { stroke: var(--a1); stroke-linecap: round; transition: stroke-dashoffset .3s; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #33343f;
  border-top-color: var(--muted-2); animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.badge { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px;
  background: rgba(255, 214, 10, .12); color: var(--warn); }
.badge.err { background: rgba(255, 69, 58, .12); color: var(--err); }
.badge.cov { background: rgba(123, 136, 255, .14); color: #9aa4ff; }
.note {
  display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; font-size: 13.5px;
  background: rgba(255, 214, 10, .08); color: #f3e2a3; line-height: 1.45;
}
.note.info { background: rgba(0, 173, 253, .08); color: #a9dcf5; }
.note.bad { background: rgba(255, 69, 58, .1); color: #ffb3ad; }
audio { width: 100%; height: 40px; }

/* ---------------------------------------------------------------- обложка */
.cover-box {
  position: relative; width: min(100%, 360px); aspect-ratio: 1; margin: 6px auto 0;
  border-radius: 20px; overflow: hidden; background: var(--row);
  box-shadow: 0 30px 80px -30px rgba(112, 0, 240, .45);
  display: grid; place-items: center; color: var(--muted);
}
.cover-box img { width: 100%; height: 100%; object-fit: cover; animation: fade .5s both; }
.cover-box .busy { position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0, 0, 0, .55); gap: 10px; align-content: center; font-size: 13px; }
.crop {
  position: relative; width: min(86vw, 420px); aspect-ratio: 1; margin: 0 auto;
  border-radius: 16px; overflow: hidden; touch-action: none; background: #0b0b0f;
  cursor: grab;
}
.crop img { position: absolute; left: 0; top: 0; max-width: none; user-select: none;
  -webkit-user-drag: none; pointer-events: none; transform-origin: 0 0; }
.crop::after { content: ''; position: absolute; inset: 0; border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); pointer-events: none; }
.slider { width: 100%; accent-color: #fff; min-height: 44px; }

/* ---------------------------------------------------------------- шторка */
.scrim {
  position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .55);
  opacity: 0; transition: opacity .3s;
}
.scrim.show { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-height: 92dvh;
  display: flex; flex-direction: column; background: #111218;
  border-radius: 22px 22px 0 0; transform: translateY(105%);
  transition: transform .45s var(--spring); box-shadow: 0 -20px 60px rgba(0, 0, 0, .5);
}
.sheet.show { transform: translateY(0); }
.sheet.tall { height: 92dvh; }
.sheet .grab { width: 36px; height: 5px; border-radius: 3px; background: #3a3b45;
  margin: 8px auto 2px; flex: none; }
.sheet .head {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 4px 8px 8px;
  flex: none;
}
.sheet .head .t { font-weight: 600; text-align: center; font-size: 16px; }
.sheet .head .l { justify-self: start; }
.sheet .head .r { justify-self: end; }
.sheet .head .l button, .sheet .head .r button { min-height: 44px; padding: 0 10px;
  color: var(--muted-2); font-weight: 500; }
.sheet .head .r button.strong { color: #fff; font-weight: 600; }
.sheet .body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 16px
  calc(24px + var(--sab)); overscroll-behavior: contain; }
.search {
  display: flex; align-items: center; gap: 8px; background: var(--row); border-radius: 12px;
  padding: 0 12px; margin-bottom: 12px; min-height: 40px;
}
.search svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.opt { justify-content: space-between; }
.opt .tick { width: 18px; height: 18px; color: var(--a1); opacity: 0; transform: scale(.6);
  transition: opacity .2s, transform .3s var(--spring); }
.opt.on .tick { opacity: 1; transform: none; }
.fridays { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.fri {
  min-height: 64px; border-radius: 14px; background: var(--row); display: grid; place-items: center;
  align-content: center; gap: 0; transition: transform .2s var(--out), background-color .2s;
}
.fri b { font-size: 18px; }
.fri span { font-size: 12px; color: var(--muted); }
.fri.on { background: #fff; color: #000; }
.fri.on span { color: #444; }
.fri:active { transform: scale(.96); }

.who {
  display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px;
  background: rgba(48, 209, 88, .08); animation: rise .35s var(--out) both;
}
.who img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.who b { display: block; }
.who small { color: var(--muted); }

/* ---------------------------------------------------------------- статус релиза */
.status-hero { display: grid; gap: 16px; justify-items: center; text-align: center;
  padding-top: 8px; }
.status-hero .cover-lg { width: min(64vw, 240px); aspect-ratio: 1; border-radius: 18px;
  object-fit: cover; box-shadow: 0 30px 80px -24px rgba(112, 0, 240, .5);
  background: var(--row); }
.timeline { display: grid; gap: 0; margin-top: 4px; }
.tl { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 10px 16px;
  align-items: start; }
.tl .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #3a3b45;
  margin: 4px auto 0; position: relative; }
.tl.done .dot { background: var(--ok); border-color: var(--ok); }
.tl.now .dot { border-color: var(--cyan); box-shadow: 0 0 0 5px rgba(0, 173, 253, .15); }
.tl.bad .dot { background: var(--err); border-color: var(--err); }
.tl small { display: block; color: var(--muted); font-size: 13px; }
.msg { padding: 12px 14px; border-radius: 16px; background: var(--row); margin-top: 8px;
  animation: rise .35s var(--out) both; }
.msg.me { background: #1b1d33; margin-left: 24px; }
.msg .who-l { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.msg p { margin: 0; white-space: pre-wrap; word-wrap: break-word; }

/* ---------------------------------------------------------------- тост */
.toast {
  position: fixed; left: 50%; bottom: calc(96px + var(--sab)); z-index: 90;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #2a2b36; color: #fff; padding: 11px 18px; border-radius: 14px; font-size: 14px;
  max-width: calc(100vw - 32px); box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  transition: opacity .25s, transform .4s var(--spring);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: #3a1d1d; color: #ffcfcb; }

.foot { text-align: center; color: var(--muted); font-size: 12.5px; padding: 30px 16px 10px; }
.foot a { color: var(--muted-2); text-decoration: none; margin: 0 8px; }

.skeleton { background: linear-gradient(90deg, #15161d, #1d1e27, #15161d); background-size: 200% 100%;
  animation: sk 1.2s linear infinite; border-radius: 18px; height: 88px; }
@keyframes sk { to { background-position: -200% 0; } }

@media (min-width: 760px) {
  .large { font-size: 36px; }
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 520px; max-height: 84vh;
    border-radius: 22px; transform: translate(-50%, -46%) scale(.96); opacity: 0;
    transition: transform .4s var(--spring), opacity .25s; }
  .sheet.show { transform: translate(-50%, -50%); opacity: 1; }
  .sheet.tall { height: 84vh; }
  .sheet .grab { display: none; }
  .hero h1 { font-size: 64px; }
}

@media (hover: hover) {
  button.row:hover, .rel:hover { background: #1b1c25; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; }
}

/* Правки по живым снимкам 23.09: ссылка «Releases» без подчёркивания, точка пропуска
   стоит перед шевроном, а не за ним. */
.back { text-decoration: none; }
.row .chev { order: 10; }
.row.gap::after { order: 9; }
