/* ---------- раздел «Музыка на Suno» ---------- */
.mu { --bass: 0; --beat: 0; background: #020207; }
.mu #viz, .mu #fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -3; }
.mu #fx { z-index: -2; pointer-events: none; }
.mu .grid-floor, .mu #space { display: none; }
.mu .noise { opacity: .04; }
/* тёмная подложка слева под текстом, чтобы яркий фон не спорил с заголовком */
.mu main::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(2,2,7,.55), rgba(2,2,7,.15) 55%, rgba(2,2,7,0)); }
.mu main { padding-bottom: 140px; }

.mu-hero { max-width: var(--max); margin: 0 auto; padding: 150px var(--gutter) 40px; min-height: 86svh; display: flex; flex-direction: column; justify-content: center; }
.mu-hero h1 { font-size: clamp(42px, 11vw, 150px); line-height: .9; font-weight: 800; text-transform: uppercase; }
.mu-hero h1 .grad-mu { background: linear-gradient(100deg, #00f0ff, #7b5cff 45%, #ff2bd6); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 calc(20px + var(--bass) * 60px) rgba(123,92,255,.7)); }
.mu-hero p { margin-top: 26px; font-size: clamp(18px, 2.1vw, 23px); color: #d4d8f5; max-width: 640px; text-shadow: 0 2px 20px rgba(0,0,0,.6); }
.mu-hero .hero__actions { margin-top: 34px; }
.btn--play { gap: 10px; background: linear-gradient(100deg, #00f0ff, #7b5cff 50%, #ff2bd6); color: #07070d;
  box-shadow: 0 10px calc(40px + var(--beat) * 50px) -10px rgba(255,43,214,.9); transform: scale(calc(1 + var(--beat) * .04)); }
.btn--play svg { width: 20px; height: 20px; }
.mu-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; align-items: center; }
.mu-meta > span, .snd { font: 500 12px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: #aab0d6; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(5,6,12,.45); backdrop-filter: blur(8px); }
.snd { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.snd svg { width: 15px; height: 15px; }
.snd:hover { color: #fff; border-color: #fff; }

/* список треков: аккордеон */
.mu-list { max-width: 980px; margin: 0 auto; padding: 0 var(--gutter); }
.mu-list .section__head { margin-bottom: 26px; }
.empty { padding: 40px 28px; border-radius: 22px; border: 1px dashed var(--line-strong); background: rgba(5,6,12,.55); backdrop-filter: blur(12px); text-align: center; color: #c6cbea; }
.empty b { display: block; font: 700 22px var(--f-display); color: #fff; margin-bottom: 10px; }
.trk { border-radius: 20px; margin-bottom: 12px; background: rgba(8,10,20,.62); border: 1px solid var(--line); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); overflow: hidden; transition: border-color .3s, background .3s, box-shadow .3s; }
.trk:hover { border-color: var(--line-strong); }
.trk.open { border-color: rgba(123,92,255,.6); background: rgba(10,12,26,.78); box-shadow: 0 20px 60px -30px rgba(123,92,255,.7); }
.trk.playing { border-color: rgba(0,240,255,.55); box-shadow: 0 0 calc(10px + var(--bass) * 40px) -10px rgba(0,240,255,.7); }
.trk__head { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 12px; }
.trk__play { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: #07070d;
  background: linear-gradient(135deg, #00f0ff, #7b5cff 60%, #ff2bd6); box-shadow: 0 6px 18px -6px rgba(123,92,255,.9); transition: transform .2s; }
.trk__play:hover { transform: scale(1.08); }
.trk__play svg { width: 18px; height: 18px; }
.trk__open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; padding: 6px 6px 6px 4px; font: inherit; }
.trk__n { color: var(--muted); font-size: 13px; width: 22px; flex: none; }
.trk__eq { display: none; gap: 2px; align-items: flex-end; height: 16px; width: 22px; flex: none; }
.trk__eq i { width: 3px; background: #00f0ff; border-radius: 2px; animation: eq .8s ease-in-out infinite; }
.trk__eq i:nth-child(2) { animation-delay: -.3s; background: #7b5cff; } .trk__eq i:nth-child(3) { animation-delay: -.55s; background: #ff2bd6; } .trk__eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 16px; } }
body.is-playing .trk.playing .trk__n { display: none; }
body.is-playing .trk.playing .trk__eq { display: flex; }
.trk__ttl { flex: 1; min-width: 0; }
.trk__ttl b { display: block; font: 600 17px var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trk__ttl small { color: var(--muted); font-size: 13px; }
.trk__tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.trk__tags em { font: 500 11px var(--f-mono); font-style: normal; letter-spacing: .06em; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.06); color: #aab0d6; white-space: nowrap; }
.trk__tags em.ba-badge { color: #07070d; background: linear-gradient(100deg, #ffd36e, #ff9a3c); font-weight: 600; }
.trk__dur { color: var(--muted); font-size: 13px; width: 44px; text-align: right; flex: none; }
.trk__chev { flex: none; color: var(--muted); transition: transform .35s, color .2s; display: grid; }
.trk.open .trk__chev { transform: rotate(180deg); color: #fff; }
.trk__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2,.7,.2,1); }
.trk.open .trk__body { grid-template-rows: 1fr; }
.trk__inner { min-height: 0; overflow: hidden; display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; padding: 0 22px; transition: padding .45s; }
.trk.open .trk__inner { padding: 6px 22px 24px; }
.trk__inner:not(:has(.trk__lyrics)) { grid-template-columns: 1fr; }
.trk__about p { color: #c6cbea; font-size: 16px; line-height: 1.65; }
.trk__about p + p { margin-top: 12px; }
.trk__shot { display: block; margin-top: 18px; padding: 0; border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; background: none; cursor: zoom-in; width: 100%; }
.trk__shot img { display: block; width: 100%; height: auto; transition: transform .5s; }
.trk__shot:hover img { transform: scale(1.03); }
.trk__lyrics pre { margin: 10px 0 0; white-space: pre-wrap; font: 15px/1.75 var(--f-body); color: #d4d8f5; max-height: 420px; overflow: auto; padding-right: 8px; }
.ab__ttl { font-size: 11px; letter-spacing: .22em; color: #00f0ff; }
.ab { margin-top: 18px; padding: 16px; border-radius: 16px; background: rgba(255,211,110,.06); border: 1px solid rgba(255,211,110,.3); }
.ab__row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin-top: 10px; }
.ab__btn { text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.04); color: var(--text); cursor: pointer; font: inherit; transition: all .2s; }
.ab__btn span { display: block; font: 700 16px var(--f-display); }
.ab__btn small { color: var(--muted); font-size: 12px; }
.ab__btn:hover { border-color: #ffd36e; }
.ab__btn.on { border-color: #ffd36e; background: rgba(255,211,110,.16); box-shadow: 0 0 24px -8px #ffd36e; }
.ab__arrow { color: #ffd36e; font-size: 20px; }
.ab__hint { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* плеер-док */
.dock { position: fixed; left: 50%; bottom: 14px; z-index: 60; width: min(1100px, calc(100% - 20px)); transform: translate(-50%, 140%); transition: transform .5s cubic-bezier(.2,.7,.2,1);
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 22px;
  background: rgba(6,8,16,.72); border: 1px solid var(--line-strong); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.9), 0 0 calc(20px + var(--bass) * 60px) -20px rgba(123,92,255,.9); }
.dock.show { transform: translate(-50%, 0); }
.d-left { display: flex; align-items: center; gap: 12px; min-width: 0; width: 260px; }
.d-cover { flex: none; width: 54px; height: 54px; border-radius: 14px; background: center/cover no-repeat, linear-gradient(135deg, #00f0ff, #7b5cff 55%, #ff2bd6); cursor: pointer;
  transform: scale(calc(1 + var(--beat) * .08)); box-shadow: 0 0 calc(var(--bass) * 30px) rgba(0,240,255,.6); }
.d-cover.empty::after { content: '♪'; display: grid; place-items: center; height: 100%; font-size: 24px; color: #07070d; }
.d-meta { min-width: 0; }
.d-meta b { display: block; font: 600 15px var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-meta small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.d-mid { display: grid; gap: 6px; min-width: 0; }
.d-ctrl { display: flex; align-items: center; justify-content: center; gap: 6px; }
.ib { width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; color: #c6cbea; display: grid; place-items: center; cursor: pointer; transition: color .2s, background .2s; padding: 0; }
.ib:hover { color: #fff; background: rgba(255,255,255,.08); }
.ib.on { color: #00f0ff; }
.ib svg { width: 19px; height: 19px; }
.ib--big { width: 48px; height: 48px; color: #07070d; background: #fff; }
.ib--big:hover { background: #00f0ff; color: #07070d; }
.d-seekrow { display: flex; align-items: center; gap: 10px; font: 12px var(--f-mono); color: var(--muted); }
.seek { --p: 0%; --buf: 0%; --hover: 0%; position: relative; flex: 1; height: 22px; cursor: pointer; touch-action: none; outline: none; }
.seek::before, .seek::after, .seek i { content: ''; position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; }
.seek::before { right: 0; background: rgba(255,255,255,.12); }
.seek i { width: var(--buf); background: rgba(255,255,255,.18); }
.seek::after { width: var(--p); background: linear-gradient(90deg, #00f0ff, #7b5cff, #ff2bd6); box-shadow: 0 0 12px rgba(123,92,255,.8); }
.seek b { position: absolute; top: 50%; left: var(--p); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px #00f0ff; transform: scale(0); transition: transform .15s; z-index: 1; }
.seek:hover b, .seek:focus-visible b { transform: scale(1); }
.seek:hover::before { height: 6px; margin-top: -3px; }
.d-tip { position: absolute; bottom: 100%; left: var(--hover); transform: translateX(-50%); padding: 3px 7px; border-radius: 6px; background: #fff; color: #07070d; font-size: 11px; opacity: 0; pointer-events: none; transition: opacity .15s; }
.seek:hover .d-tip { opacity: 1; }
.d-right { display: flex; align-items: center; gap: 4px; }
.vol { -webkit-appearance: none; appearance: none; width: 90px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #fff var(--v, 80%), rgba(255,255,255,.18) var(--v, 80%)); outline: none; cursor: pointer; }
.vol::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #00f0ff; }
.vol::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: #fff; }
.d-ab { display: inline-flex; align-items: center; padding: 3px; border-radius: 999px; background: rgba(255,211,110,.12); border: 1px solid rgba(255,211,110,.4); margin-right: 6px; }
.d-ab button { border: 0; background: none; color: #ffd36e; font: 600 12px var(--f-mono); padding: 6px 10px; border-radius: 999px; cursor: pointer; }
.d-ab button.on { background: #ffd36e; color: #07070d; }
.d-ab span { display: none; }

.toast { position: fixed; left: 50%; top: 96px; transform: translate(-50%, -10px); z-index: 70; padding: 10px 18px; border-radius: 999px; background: rgba(6,8,16,.85); border: 1px solid var(--line-strong);
  font: 600 13px var(--f-mono); letter-spacing: .1em; color: #fff; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; backdrop-filter: blur(10px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.lb { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(2,2,7,.92); cursor: zoom-out; animation: appear .3s; }
.lb img { max-width: 100%; max-height: 100%; border-radius: 12px; }

/* режим «кино» */
.cine-exit { display: none; }
body.cinema main, body.cinema .header, body.cinema .footer { opacity: 0; pointer-events: none; transition: opacity .6s; }
body.cinema .dock { opacity: .0; transition: opacity .4s, transform .5s; }
body.cinema .dock:hover, body.cinema .dock:focus-within { opacity: 1; }
body.cinema .cine-exit { display: block; position: fixed; top: 16px; right: 16px; z-index: 61; }
body.cinema { cursor: none; }
body.cinema .dock, body.cinema .cine-exit { cursor: default; }

@media (max-width: 860px) {
  .dock { grid-template-columns: 1fr auto; grid-template-areas: 'l r' 'm m'; gap: 8px 10px; padding: 10px; bottom: 8px; }
  .d-left { grid-area: l; width: auto; }
  .d-mid { grid-area: m; }
  .d-right { grid-area: r; }
  .vol, .d-right .hide-m { display: none; }
  .trk__inner { grid-template-columns: 1fr !important; }
  .trk__tags { display: none; }
}
@media (max-width: 520px) {
  .trk__head { padding: 8px; }
  .trk__play { width: 40px; height: 40px; }
  .trk__n { display: none; }
  .trk__open { gap: 10px; }
  .trk__ttl b { font-size: 15px; }
  .ab__row { grid-template-columns: 1fr 1fr; } .ab__arrow { display: none; }
  .d-ctrl .ib:not(.ib--big):not(#d-prev):not(#d-next) { display: none; }
}
@media (max-width: 520px) {
  .d-ab { margin-right: 0; padding: 2px; }
  .d-ab button { padding: 5px 7px; font-size: 11px; }
  .d-cover { width: 46px; height: 46px; }
  .d-right .ib { width: 34px; height: 34px; }
}

.lyr { margin-top: 10px; max-height: 460px; overflow: auto; padding-right: 8px; font: 15px/1.75 var(--f-body); color: #d4d8f5; }
.lyr span { display: block; }
.lyr .lyr__sec { margin: 14px 0 4px; font: 600 11px var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: #ff9ae8; }
.lyr .lyr__sec:first-child { margin-top: 0; }
.lyr::-webkit-scrollbar { width: 6px; } .lyr::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 6px; }
.trk__cv { flex: none; width: 44px; height: 44px; border-radius: 10px; background: center/cover no-repeat; box-shadow: 0 4px 14px -6px rgba(0,0,0,.8); }
@media (max-width: 520px) { .trk__cv { width: 38px; height: 38px; } }

/* удар — и в весь кадр: толчок, засвет и насыщенность на малом */
.mu #viz { transform: scale(calc(1 + var(--beat) * .06)); filter: brightness(calc(1 + var(--beat) * .55)) saturate(calc(1 + var(--snare, 0) * .9)); will-change: transform, filter; }
.mu-hero h1 { transform: scale(calc(1 + var(--beat) * .025)); transform-origin: left center; }
