/* Общий стиль страниц, сделанных не в Tilda: сток, подборки, админка, реквизиты.
   Палитра и шрифт — как у основного сайта. */
:root {
  --bg: #15181d; --card: #1e232a; --card-2: #262c35; --line: #2f3640;
  --text: #e6e9ee; --muted: #9aa3b0; --dim: #6b7380; --lime: #c9f03a; --ink: #15181d; --danger: #ff7a6b;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body.ts-app {
  font-family: 'Manrope', Arial, sans-serif; font-weight: 300; font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--lime); color: var(--ink); }

/* шапка */
.ts-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1200px; margin: 0 auto; padding: 18px 20px; }
.ts-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; font-weight: 400; }
.ts-logo img { width: 54px; height: 54px; filter: invert(1) brightness(.92); animation: ts-spin 15s linear infinite; }
@keyframes ts-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ts-logo img { animation: none; } }

.ts-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ts-narrow { max-width: 760px; margin: 0 auto; padding: 32px 20px 80px; }
.ts-back { display: inline-block; margin-bottom: 40px; color: var(--muted); text-decoration: none; }
.ts-back:hover { color: var(--text); }
.ts-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 400; letter-spacing: 1.5px; margin: 0 0 10px; }
.ts-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.ts-h1 { font-weight: 200; font-size: clamp(44px, 8vw, 96px); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 22px; }
.ts-h2 { font-weight: 200; font-size: clamp(32px, 5vw, 56px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 18px; }
.ts-lead { font-size: clamp(17px, 2vw, 20px); max-width: 820px; margin: 0 0 14px; }
.ts-muted { color: var(--muted); }
.ts-error { color: var(--danger); margin: 10px 0 0; font-size: 15px; }
.ts-ok { color: var(--lime); margin: 10px 0 0; font-size: 15px; }

/* кнопки и поля */
.ts-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px;
  border: 0; border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 500; cursor: pointer;
  text-decoration: none; transition: transform .15s, opacity .15s;
}
.ts-btn:hover { transform: translateY(-1px); }
.ts-btn:disabled { opacity: .5; cursor: default; transform: none; }
.ts-btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); font-weight: 400; }
.ts-btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--muted); }
.ts-btn--small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.ts-form { display: grid; gap: 12px; }
.ts-form input, .ts-form textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  font-weight: 300; outline: none; transition: border-color .15s;
}
.ts-form input:focus, .ts-form textarea:focus { border-color: var(--lime); }
.ts-form textarea { min-height: 96px; resize: vertical; }
.ts-form .ts-trap { position: absolute; left: -9999px; }

/* реквизиты */
.ts-requisites { font-size: 18px; line-height: 1.75; }
.ts-requisites span[style], .ts-requisites b, .ts-requisites strong { font-weight: 400; }
.ts-requisites a { color: var(--lime); }

/* фильтры */
.ts-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; margin: 36px 0 22px; }
.ts-dd { position: relative; }
.ts-dd__menu {
  position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; min-width: 240px; max-height: 340px; overflow: auto;
  padding: 8px; border-radius: 12px; background: var(--card-2); box-shadow: 0 16px 40px rgba(0,0,0,.45); display: none;
}
.ts-dd.is-open .ts-dd__menu { display: block; }
.ts-dd__item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 15px; }
.ts-dd__item:hover { background: var(--line); }
.ts-dd__item input { accent-color: var(--lime); }
.ts-chip-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--lime); color: var(--ink); font-size: 12px; font-weight: 600; }

/* треки */
.ts-tracks { display: grid; gap: 10px; }
.ts-track {
  display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 16px;
  padding: 14px 16px; border-radius: var(--radius); background: var(--card);
}
.ts-track__num { color: var(--dim); font-size: 14px; width: 22px; text-align: right; }
.ts-track--numbered { grid-template-columns: 22px 52px 1fr; }
.ts-play {
  width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--lime); cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.ts-play svg { width: 22px; height: 22px; fill: var(--ink); }
.ts-play .i-pause { display: none; }
.ts-track.is-playing .ts-play .i-play { display: none; }
.ts-track.is-playing .ts-play .i-pause { display: block; }
.ts-track__main { min-width: 0; }
.ts-track__meta { font-size: 15px; margin: 0 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-track__meta b { font-weight: 400; }
.ts-track__meta span { color: var(--muted); }
.ts-track__name { font-size: 12px; color: var(--dim); margin: -4px 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-progress { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ts-bar { position: relative; flex: 1; height: 4px; border-radius: 2px; background: var(--line); cursor: pointer; }
.ts-bar::before { content: ""; position: absolute; inset: -10px 0; } /* удобнее попадать пальцем */
.ts-bar__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 2px; background: var(--lime); }
.ts-add { white-space: nowrap; }
.ts-add.is-added { background: transparent; color: var(--lime); box-shadow: inset 0 0 0 1px var(--lime); }
.ts-more { margin: 24px 0 0; }
.ts-empty { padding: 40px 0; color: var(--muted); }
.ts-track--missing { opacity: .55; }
.ts-track--missing .ts-track__meta { margin: 0; }

@media (max-width: 640px) {
  .ts-track { grid-template-columns: 46px 1fr; gap: 12px; padding: 12px; }
  .ts-track--numbered { grid-template-columns: 18px 46px 1fr; }
  .ts-play { width: 46px; height: 46px; }
  .ts-add { grid-column: 1 / -1; width: 100%; }
}

/* корзина */
.ts-cart-btn { position: relative; }
.ts-drawer-bg { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .2s; }
.ts-drawer {
  position: fixed; z-index: 51; top: 0; right: 0; bottom: 0; width: min(480px, 100%); overflow: auto;
  background: var(--bg); box-shadow: -20px 0 60px rgba(0,0,0,.5); transform: translateX(100%); transition: transform .25s;
  padding: 24px 22px 40px;
}
.ts-drawer.is-open { transform: none; }
.ts-drawer.is-open + .ts-drawer-bg, .ts-drawer-bg.is-open { opacity: 1; pointer-events: auto; }
.ts-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.ts-drawer__head h2 { font-weight: 300; font-size: 26px; margin: 0; }
.ts-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--card); cursor: pointer; font-size: 22px; line-height: 1; }
.ts-cart-list { display: grid; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.ts-cart-list li { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--card); font-size: 14px; }
.ts-cart-list small { display: block; color: var(--dim); font-size: 12px; }
.ts-remove { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 20px; }
.ts-admin-box { margin-top: 28px; padding: 18px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--lime); }
.ts-admin-box h3 { margin: 0 0 4px; font-weight: 400; font-size: 18px; }
.ts-copy { display: flex; gap: 8px; margin-top: 10px; }
.ts-copy input { flex: 1; }

/* FAQ */
.ts-faq { margin: 90px 0 40px; }
.ts-faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.ts-faq details:last-child { border-bottom: 1px solid var(--line); }
.ts-faq summary { cursor: pointer; font-size: 19px; font-weight: 400; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.ts-faq summary::after { content: "+"; color: var(--lime); font-size: 26px; line-height: 1; }
.ts-faq details[open] summary::after { content: "–"; }
.ts-faq p { margin: 12px 0 0; color: var(--muted); max-width: 820px; }

/* админка */
.ts-picks { display: grid; gap: 10px; margin: 24px 0; }
.ts-pick { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--radius); background: var(--card); }
.ts-pick a { text-decoration: none; }
.ts-pick small { display: block; color: var(--muted); font-size: 13px; }
.ts-pick__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.ts-foot { max-width: 1200px; margin: 60px auto 0; padding: 30px 20px 50px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.ts-foot a { color: var(--text); }

[hidden] { display: none !important; }
