/* Аудиорез - поверх Bootstrap 5.3 */
:root {
  --rt-brand: #f85a10;
  --rt-brand-2: #f9a825;
  --rt-grad: linear-gradient(to right, #f83600 0%, #f9d423 100%);
  --rt-grad-soft: linear-gradient(135deg, rgba(248, 54, 0, .12), rgba(249, 212, 35, .12));
  --rt-bg: #f6f5f3;
  --rt-surface: #ffffff;
  --rt-surface-2: #f0eeeb;
  --rt-border: rgba(0, 0, 0, .08);
  --rt-text: #1d1d1f;
  --rt-muted: #6b6b70;
  --rt-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
  --rt-radius: 18px;
  --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-link-color-rgb: 214, 72, 0;
  --bs-link-hover-color-rgb: 248, 54, 0;
}
[data-bs-theme="dark"] {
  --rt-bg: #111113;
  --rt-surface: #1a1a1d;
  --rt-surface-2: #232327;
  --rt-border: rgba(255, 255, 255, .08);
  --rt-text: #f2f2f3;
  --rt-muted: #9a9aa1;
  --rt-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  --bs-body-bg: #111113;
  --bs-link-color-rgb: 255, 145, 77;
  --bs-link-hover-color-rgb: 255, 176, 120;
}
body { background: var(--rt-bg); color: var(--rt-text); padding-bottom: 72px; }
@media (min-width: 992px) { body { padding-bottom: 0; } }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
.text-body-secondary { color: var(--rt-muted) !important; }

/* ---------- кнопки ---------- */
.btn-brand { background: var(--rt-grad); border: 0; color: #fff; font-weight: 600; box-shadow: 0 6px 18px rgba(248, 70, 0, .28); }
.btn-brand:hover, .btn-brand:focus { color: #fff; filter: brightness(1.05); box-shadow: 0 8px 22px rgba(248, 70, 0, .38); }
.btn-brand:active { transform: translateY(1px); }
.btn-soft { background: var(--rt-surface-2); border: 1px solid var(--rt-border); color: var(--rt-text); font-weight: 600; }
.btn-soft:hover { background: var(--rt-surface); color: var(--rt-text); border-color: var(--rt-brand); }

/* ---------- шапка ---------- */
.rt-header { background: color-mix(in srgb, var(--rt-surface) 86%, transparent); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--rt-border); }
.rt-header .navbar { padding: .55rem 0; }
.rt-logo { display: flex; align-items: center; gap: .5rem; margin-right: 0; }
.rt-logo:hover { text-decoration: none; }
.rt-logo-text { font-weight: 500; letter-spacing: -.02em; color: var(--rt-text); font-size: 1.3rem; }
.rt-logo-text b { font-weight: 800; background: var(--rt-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 575.98px) { .rt-logo-text { display: none; } }
.rt-navlink { color: var(--rt-text); font-weight: 500; border-radius: 999px; white-space: nowrap; }
.rt-navlink:hover { background: var(--rt-surface-2); text-decoration: none; }
.rt-navlink.active { background: var(--rt-grad-soft); color: var(--rt-brand); }
.rt-search { max-width: 420px; min-width: 0; }
@media (min-width: 992px) { .rt-search { width: 340px; } }
.rt-search-input { border-radius: 999px; padding-left: 2.4rem; background: var(--rt-surface-2); border: 1px solid transparent; height: 42px; }
.rt-search-input:focus { background: var(--rt-surface); border-color: var(--rt-brand); box-shadow: 0 0 0 .2rem rgba(248, 90, 16, .15); }
.rt-search-ico { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--rt-muted); pointer-events: none; }
.rt-iconbtn { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--rt-text); padding: 0; }
.rt-iconbtn:hover { background: var(--rt-surface-2); color: var(--rt-brand); }
[data-bs-theme="dark"] .ico-moon, [data-bs-theme="light"] .ico-sun { display: none; }
.rt-suggest { border-radius: 14px; padding: .4rem; box-shadow: var(--rt-shadow); border: 1px solid var(--rt-border); background: var(--rt-surface); max-height: 70vh; overflow: auto; }
.rt-suggest.show { display: block; }
.rt-suggest .dropdown-header { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; padding: .4rem .7rem .2rem; }
.rt-suggest .dropdown-item { border-radius: 10px; padding: .45rem .7rem; white-space: normal; }
.rt-suggest .dropdown-item small { color: var(--rt-muted); }
.rt-suggest .dropdown-item.active, .rt-suggest .dropdown-item:active { background: var(--rt-grad-soft); color: var(--rt-text); }

/* ---------- нижняя панель на мобильных ---------- */
.rt-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex; justify-content: space-around; background: color-mix(in srgb, var(--rt-surface) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--rt-border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.rt-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .68rem; color: var(--rt-muted); font-weight: 500; padding: 2px 0; }
.rt-tabbar a:hover { text-decoration: none; }
.rt-tabbar svg { width: 22px; height: 22px; }
.rt-tabbar a.active { color: var(--rt-brand); }

/* ---------- общее ---------- */
.rt-main { min-height: 60vh; }
.rt-section { margin-top: 2.25rem; }
.rt-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.rt-section-head h2 { font-size: 1.35rem; font-weight: 750; letter-spacing: -.02em; margin: 0; }
.rt-section-head a { font-weight: 600; white-space: nowrap; }
.rt-card { background: var(--rt-surface); border: 1px solid var(--rt-border); border-radius: var(--rt-radius); box-shadow: var(--rt-shadow); }
.rt-page-head { padding-top: 1.5rem; }
.rt-page-head h1 { font-weight: 800; letter-spacing: -.03em; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.rt-lead { color: var(--rt-muted); max-width: 760px; }
.rt-crumbs .breadcrumb-item a { color: var(--rt-muted); }
.rt-crumbs .breadcrumb-item.active { color: var(--rt-muted); opacity: .8; }

/* чипы тегов */
.rt-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.rt-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .85rem; border-radius: 999px; background: var(--rt-surface); border: 1px solid var(--rt-border); color: var(--rt-text); font-weight: 500; font-size: .92rem; transition: border-color .15s, transform .15s; }
.rt-chip:hover { text-decoration: none; border-color: var(--rt-brand); color: var(--rt-brand); transform: translateY(-1px); }
.rt-chip-count { color: var(--rt-muted); font-size: .78rem; font-weight: 400; }
.rt-chip.is-brand { background: var(--rt-grad-soft); border-color: transparent; }
.rt-chip.active { background: var(--rt-grad); color: #fff; border-color: transparent; }

/* ---------- главная ---------- */
.rt-hero { position: relative; overflow: hidden; border-radius: 28px; margin-top: 1.25rem; padding: clamp(1.75rem, 5vw, 3.5rem); background: radial-gradient(1200px 400px at 100% 0%, rgba(249, 212, 35, .35), transparent 60%), radial-gradient(800px 400px at 0% 100%, rgba(248, 54, 0, .25), transparent 60%), var(--rt-surface); border: 1px solid var(--rt-border); }
.rt-hero h1 { font-weight: 850; letter-spacing: -.035em; font-size: clamp(1.9rem, 5vw, 3.2rem); line-height: 1.05; max-width: 720px; }
.rt-hero h1 span { background: var(--rt-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rt-hero p { color: var(--rt-muted); font-size: 1.1rem; max-width: 620px; }
.rt-hero-search { max-width: 620px; position: relative; }
.rt-hero-search .form-control { height: 58px; border-radius: 999px; padding-left: 1.4rem; padding-right: 8.5rem; font-size: 1.05rem; border: 1px solid var(--rt-border); background: var(--rt-surface); box-shadow: var(--rt-shadow); }
.rt-hero-search .form-control:focus { border-color: var(--rt-brand); box-shadow: 0 0 0 .25rem rgba(248, 90, 16, .15); }
.rt-hero-search .btn { position: absolute; right: 6px; top: 6px; height: 46px; border-radius: 999px; padding: 0 1.4rem; }
.rt-hero-eq { position: absolute; right: clamp(-40px, 2vw, 40px); bottom: -10px; display: flex; gap: 8px; align-items: flex-end; height: 220px; opacity: .9; pointer-events: none; }
.rt-hero-eq i { width: 14px; border-radius: 8px; background: var(--rt-grad); animation: rt-eq 1.6s ease-in-out infinite; }
.rt-hero-eq i:nth-child(2n) { animation-delay: -.4s; } .rt-hero-eq i:nth-child(3n) { animation-delay: -.9s; } .rt-hero-eq i:nth-child(5n) { animation-delay: -1.2s; }
@keyframes rt-eq { 0%, 100% { height: 30%; } 50% { height: 95%; } }
@media (max-width: 991.98px) { .rt-hero-eq { display: none; } }
@media (prefers-reduced-motion: reduce) { .rt-hero-eq i { animation: none; height: 60%; } }
.rt-stats { display: flex; gap: 1.5rem; flex-wrap: wrap; color: var(--rt-muted); font-size: .92rem; }
.rt-stats b { color: var(--rt-text); font-size: 1.15rem; display: block; }

.rt-genre-card { position: relative; display: block; border-radius: 18px; padding: 1rem 1rem 1.1rem; min-height: 96px; color: #fff; overflow: hidden; box-shadow: var(--rt-shadow); transition: transform .15s; }
.rt-genre-card:hover { color: #fff; text-decoration: none; transform: translateY(-2px); }
.rt-genre-card b { font-size: 1.1rem; font-weight: 750; display: block; position: relative; }
.rt-genre-card small { opacity: .85; position: relative; }
.rt-genre-card::after { content: ""; position: absolute; right: -18px; bottom: -18px; width: 80px; height: 80px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.g0 { background: linear-gradient(135deg, #f83600, #f9a825); } .g1 { background: linear-gradient(135deg, #7b2ff7, #f107a3); }
.g2 { background: linear-gradient(135deg, #0f9b8e, #4ad395); } .g3 { background: linear-gradient(135deg, #1e3c72, #2a8cf0); }
.g4 { background: linear-gradient(135deg, #e53935, #ff6f91); } .g5 { background: linear-gradient(135deg, #283048, #859398); }
.g6 { background: linear-gradient(135deg, #f7971e, #ffd200); color: #3a2a00; } .g7 { background: linear-gradient(135deg, #11998e, #38ef7d); }
.g6:hover { color: #3a2a00 !important; }

/* ---------- плитки-плееры (оранжевые) ---------- */
.rt-tile { min-width: 0; }
.rt-disc { --ring-w: 8px; background-image: var(--rt-grad); color: #fff; border-radius: 16px; width: 100%; aspect-ratio: 1/1; padding: 8%; position: relative; display: grid; place-items: center; box-sizing: border-box; box-shadow: 0 6px 16px rgba(248, 70, 0, .18); transition: transform .15s ease, box-shadow .15s ease; }
.rt-tile-link:hover .rt-disc { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(248, 70, 0, .28); }
.rt-tile-link, .rt-tile-link:hover { text-decoration: none !important; color: #fff; }
.rt-disc-ring { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; z-index: 1; grid-area: 1 / 1; }
.rt-disc-track, .rt-disc-load, .rt-disc-prog { fill: none; stroke-linecap: round; }
.rt-disc-track { stroke: rgba(255, 255, 255, .12); stroke-width: var(--ring-w); }
.rt-disc-load { stroke: rgba(255, 255, 255, .3); stroke-width: var(--ring-w); stroke-dasharray: 0 999; }
.rt-disc-prog { stroke: #fff !important; stroke-width: var(--ring-w); stroke-dasharray: 0 999; filter: drop-shadow(0 0 6px rgba(0, 0, 0, .35)); }
.rt-disc:hover .rt-disc-track { stroke: rgba(255, 255, 255, .18); }
.rt-disc-btn { grid-area: 1 / 1; position: relative; z-index: 2; width: 58%; height: 58%; max-width: 72px; max-height: 72px; border: 0; border-radius: 50%; background-image: linear-gradient(to top, #50cc7f 0%, #f5d100 100%); box-shadow: 0 4px 16px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .2); display: flex; align-items: center; justify-content: center; gap: 6px; line-height: 0; cursor: pointer; transition: transform .15s ease, background .2s ease; appearance: none; -webkit-appearance: none; }
.rt-disc-btn:active { transform: scale(.97); }
.rt-disc-btn::before, .rt-disc-btn::after { content: ""; display: block; margin: 0; }
.rt-disc-btn:not(.is-live)::before { width: 0; height: 0; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #343a40; transform: translateX(3.2px); }
/* «Плей»: второй псевдоэлемент нужен только для паузы (две палочки); в стопе он с отступом flex сдвигал треугольник влево.
   Сдвиг 3.2px: центр тяжести треугольника (треть ширины от основания) встаёт в центр кнопки, замерено по пикселям. */
.rt-disc-btn:not(.is-live)::after { display: none; }
.rt-disc-btn.is-live::before, .rt-disc-btn.is-live::after { width: 6px; height: 18px; background: #343a40; border-radius: 1px; }
.is-live .rt-disc-btn { background-image: linear-gradient(to top, #9be15d 0%, #00e3ae 100%); }
.rt-disc-btn.is-loading::before { border: 3px solid rgba(52, 58, 64, .25); border-top-color: #343a40; border-radius: 50%; width: 22px; height: 22px; transform: none; animation: rt-spin .8s linear infinite; }
@keyframes rt-spin { to { transform: rotate(360deg); } }
.rt-tile-dur { position: absolute; left: 0; right: 0; bottom: 7%; text-align: center; font-size: clamp(.7rem, 2.6vw, .85rem); font-weight: 600; font-variant-numeric: tabular-nums; z-index: 3; pointer-events: none; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.rt-tile-part { position: absolute; top: -7px; left: -6px; z-index: 4; font-size: 10px; font-weight: 500; background: bisque; color: #000; padding: 1px 5px; border: 1px solid #dfdfdf; border-radius: 6px; line-height: 1.5; }
.rt-tile-name { font-size: .9rem; font-weight: 600; margin-top: .45rem; line-height: 1.25; }
.rt-tile-name a { color: var(--rt-text); }
.rt-artist { font-size: .8rem; color: var(--rt-muted); }

/* ---------- страница рингтона ---------- */
.rt-song-head h1 { font-weight: 850; letter-spacing: -.03em; font-size: clamp(1.6rem, 4.2vw, 2.5rem); line-height: 1.1; margin-bottom: .35rem; }
.rt-song-head h1 .rt-h1-sub { display: block; font-size: .5em; font-weight: 500; letter-spacing: 0; color: var(--rt-muted); margin-top: .35rem; }
.rt-song-by { font-size: .85rem; color: var(--rt-muted); margin: -.1rem 0 .45rem; }
.rt-song-artist { font-size: 1.1rem; }
.rt-song-artist a { font-weight: 700; }
.rt-main-player { padding: 1.25rem; position: relative; overflow: hidden; }
.rt-main-player::before { content: ""; position: absolute; inset: 0; background: var(--rt-grad-soft); pointer-events: none; }
.rt-mp-row { position: relative; display: flex; align-items: center; gap: 1rem; }
.rt-mp-btn { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 50%; border: 0; background: var(--rt-grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(248, 70, 0, .35); transition: transform .15s; }
.rt-mp-btn:hover { transform: scale(1.04); }
.rt-mp-btn svg { width: 30px; height: 30px; }
.rt-mp-btn .i-pause, .is-live .rt-mp-btn .i-play, .is-live .rt-row-btn .i-play { display: none; }
.is-live .rt-mp-btn .i-pause, .is-live .rt-row-btn .i-pause { display: block; }
.rt-row-btn .i-pause { display: none; }
.is-loading .rt-mp-btn svg, .is-loading .rt-row-btn svg { display: none !important; }
.is-loading .rt-mp-btn::before, .is-loading .rt-row-btn::before { content: ""; width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: rt-spin .8s linear infinite; }
.rt-wave { position: relative; flex: 1 1 auto; height: 72px; min-width: 0; cursor: pointer; }
.rt-wave canvas { width: 100%; height: 100%; display: block; }
.rt-wave-ph { position: absolute; inset: 0; display: flex; align-items: center; gap: 3px; }
.rt-wave-ph i { flex: 1; background: color-mix(in srgb, var(--rt-brand) 30%, transparent); border-radius: 3px; }
.rt-mp-time { position: relative; display: flex; justify-content: space-between; font-size: .85rem; color: var(--rt-muted); font-variant-numeric: tabular-nums; margin-top: .4rem; padding-left: calc(72px + 1rem); }
.rt-dl-box { position: relative; margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.rt-dl-box .btn { border-radius: 999px; }
.rt-dl-box .btn-lg { padding-left: 1.6rem; padding-right: 1.6rem; }
.rt-dl-formats { display: flex; flex-wrap: wrap; gap: .6rem .8rem; }
.rt-dl-fmt { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.rt-dl-fmt small { font-size: .75rem; color: var(--rt-muted); line-height: 1.1; }
.rt-dl-formats .btn { display: inline-flex; align-items: center; gap: .45rem; line-height: 1.2; padding: .5rem 1rem; font-weight: 600; }
.rt-dl-note { font-size: .8rem; color: var(--rt-muted); width: 100%; }
/* «Редактировать» (открывает фрагмент в резалке на главной): у главного - надписью, у версий - иконкой */
.rt-edit { display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px; }
.rt-dl-formats .rt-edit { padding: .5rem 1rem; font-size: 1rem; }
.rt-edit-ico { flex: 0 0 auto; width: 32px; height: 32px; padding: 0; justify-content: center; border-radius: 50%; color: var(--rt-muted); }
.rt-edit-ico:hover { color: var(--rt-brand); }
/* Формат картинкой-«скриншотом» вместо слова (fmt_img) */
.fmt-img { height: 1.45em; width: auto; vertical-align: -.42em; margin: -.1em .05em; }
.rt-dl-formats .btn .fmt-img { height: 22px; margin: 0; vertical-align: middle; }

.rt-versions { padding: .5rem; }
.rt-row { display: flex; align-items: center; gap: .75rem; padding: .55rem .6rem; border-radius: 14px; flex-wrap: wrap; }
.rt-row + .rt-row { border-top: 1px solid var(--rt-border); border-top-left-radius: 0; border-top-right-radius: 0; }
.rt-row:hover { background: var(--rt-surface-2); }
.rt-row-btn { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--rt-grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.rt-row-btn svg { width: 18px; height: 18px; }
.is-loading .rt-row-btn::before { width: 18px; height: 18px; }
/* мини-волна версии: нижний слой - бледные столбики, верхний (.is-fill) - яркие, открывается clip-path по ходу проигрывания */
.rt-row-bar { position: relative; flex: 1 1 140px; height: 32px; cursor: pointer; min-width: 80px; }
.rt-rw { position: absolute; inset: 0; display: flex; align-items: center; gap: 2px; }
.rt-rw i { flex: 1; min-width: 1px; border-radius: 2px; background: color-mix(in srgb, var(--rt-brand) 30%, transparent); transition: height .25s; }
.rt-rw.is-fill { clip-path: inset(0 100% 0 0); }
.rt-rw.is-fill i { background: var(--rt-brand); }
.rt-row-num { font-weight: 700; color: var(--rt-muted); width: 1.6rem; text-align: center; font-variant-numeric: tabular-nums; }
.rt-row-time { font-size: .85rem; color: var(--rt-muted); font-variant-numeric: tabular-nums; min-width: 2.6rem; text-align: right; }
.rt-row .rt-dl-box { margin-top: 0; flex-basis: auto; }
.rt-row .rt-dl-formats .btn { padding: .35rem .8rem; font-size: .85rem; }
.rt-row .rt-dl-note { display: none; }
.rt-row .rt-dl-fmt small { font-size: .7rem; }
.rt-row .rt-dl-formats .btn .fmt-img { height: 18px; }

/* «Другие версии» плашками сеткой (владелец, 2026-10-15, вариант B): маленькие карточки, короткая серая волна,
   время и иконка скачивания; блок ниже и не спорит с главным плеером */
:root { --rt-quiet: rgba(0, 0, 0, .13); }
[data-bs-theme="dark"] { --rt-quiet: rgba(255, 255, 255, .14); }
.rt-versions-sec .rt-section-head h2 { font-size: 1.05rem; color: var(--rt-muted); }
.rt-versions.rt-card { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; align-items: start;
  background: transparent; border: 0; box-shadow: none; padding: 0; }
.rt-versions .rt-row, .rt-versions .rt-row + .rt-row { border: 1px solid var(--rt-border); border-radius: 14px; background: var(--rt-surface);
  padding: .5rem .6rem; gap: .5rem; flex-wrap: wrap; }
.rt-versions .rt-row:hover { background: var(--rt-surface-2); }
.rt-versions .rt-row-btn { width: 34px; height: 34px; }
.rt-versions .rt-row-btn svg { width: 14px; height: 14px; }
.rt-versions .is-loading .rt-row-btn::before { width: 14px; height: 14px; border-width: 2px; }
.rt-versions .rt-row-bar { flex: 1 1 0; min-width: 40px; height: 18px; }
.rt-versions .rt-rw { gap: 1px; }
.rt-versions .rt-rw i { background: var(--rt-quiet); }
.rt-versions .rt-rw.is-fill i { background: var(--rt-brand); }
.rt-versions .rt-row-time { min-width: 0; font-size: .8rem; }
.rt-versions .rt-dl-box { flex: 0 0 auto; }
.rt-versions .rt-dl-btn { width: 32px; height: 32px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.rt-versions .rt-dl-btn .rt-dl-txt { display: none; }
.rt-versions .rt-dl-btn svg { margin: 0 !important; }
/* после нажатия «Скачать» кнопки форматов идут под строкой карточки, одна под другой */
.rt-versions .rt-row .rt-dl-box:has(.rt-dl-formats) { flex-basis: 100%; padding-left: 0; }
.rt-versions .rt-dl-formats { flex-direction: column; align-items: stretch; width: 100%; gap: .45rem; }
.rt-versions .rt-dl-formats .btn { width: 100%; justify-content: center; }

.rt-info dt { font-weight: 500; color: var(--rt-muted); font-size: .85rem; }
.rt-info dd { font-weight: 600; margin-bottom: .6rem; }
.rt-desc { line-height: 1.65; }
.rt-howto .accordion-button { font-weight: 600; }
.rt-howto .accordion-item { background: transparent; }
.rt-howto .accordion-button:not(.collapsed) { background: var(--rt-grad-soft); color: var(--rt-text); box-shadow: none; }

/* алфавит */
.rt-letters { display: flex; flex-wrap: wrap; gap: .35rem; }
.rt-letters a { min-width: 2.3rem; height: 2.3rem; display: inline-flex; align-items: center; justify-content: center; padding: 0 .5rem; border-radius: 10px; background: var(--rt-surface); border: 1px solid var(--rt-border); color: var(--rt-text); font-weight: 600; }
.rt-letters a:hover { border-color: var(--rt-brand); color: var(--rt-brand); text-decoration: none; }
.rt-letters a.active { background: var(--rt-grad); color: #fff; border-color: transparent; }
.rt-artist-list { columns: 2; column-gap: 2rem; }
@media (min-width: 768px) { .rt-artist-list { columns: 3; } }
@media (min-width: 1200px) { .rt-artist-list { columns: 4; } }
.rt-artist-list li { break-inside: avoid; padding: .25rem 0; }
.rt-artist-list small { color: var(--rt-muted); }
.rt-artist-card { display: flex; align-items: center; gap: .75rem; padding: .7rem .8rem; border-radius: 14px; background: var(--rt-surface); border: 1px solid var(--rt-border); color: var(--rt-text); }
.rt-artist-card:hover { text-decoration: none; border-color: var(--rt-brand); color: var(--rt-text); }
.rt-avatar { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 1.05rem; }
.rt-artist-card b { display: block; line-height: 1.2; }
.rt-artist-card small { color: var(--rt-muted); }

/* пагинация */
.page-link { border-radius: 10px !important; margin: 2px; border: 1px solid var(--rt-border); color: var(--rt-text); background: var(--rt-surface); }
.page-item.active .page-link { background: var(--rt-grad); border-color: transparent; color: #fff; }
.js .rt-pager .pagination { display: none; }
.rt-loading-more { text-align: center; color: var(--rt-muted); padding: 1rem; }

/* подвал */
.rt-footer { background: var(--rt-surface); border-top: 1px solid var(--rt-border); }
.rt-footlinks li { margin-bottom: .35rem; }
.rt-footlinks a { color: var(--rt-muted); }
.rt-footlinks a:hover { color: var(--rt-brand); }

.rt-toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px); background: #1d1d1f; color: #fff; padding: .6rem 1rem; border-radius: 12px; font-size: .9rem; opacity: 0; pointer-events: none; transition: all .25s; z-index: 2000; max-width: 92vw; }
.rt-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.rt-ad { text-align: center; }
.rt-empty { padding: 3rem 1rem; text-align: center; color: var(--rt-muted); }
@media (max-width: 575.98px) {
  .rt-row { gap: .6rem; }
  .rt-row-bar { flex: 1 1 40px; min-width: 40px; }
  .rt-row .rt-dl-btn .rt-dl-txt { display: none; }
  .rt-row .rt-dl-btn { width: 38px; height: 38px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
  .rt-row .rt-dl-btn svg { margin: 0 !important; }
  .rt-row .rt-dl-box:has(.rt-dl-formats) { flex-basis: 100%; padding-left: calc(44px + .6rem); }
}

/* ---------------- резалка на главной (assets/js/cutter.js, app/views/cutter.php) ---------------- */
.rt-hero-cut h1 { max-width: none; }
.rt-hero-cut > p { max-width: 760px; }
.rt-cut { --cut-wave-out: rgba(0, 0, 0, .2); --cut-wave-in: #f85a10; --cut-sel-bg: rgba(248, 90, 16, .09);
  position: relative; scroll-margin-top: 84px; background: var(--rt-surface); border: 1px solid var(--rt-border); border-radius: 22px; box-shadow: var(--rt-shadow); padding: clamp(1rem, 3vw, 1.5rem); }
[data-bs-theme="dark"] .rt-cut { --cut-wave-out: rgba(255, 255, 255, .22); --cut-sel-bg: rgba(248, 90, 16, .13); }
.rt-cut-drop, .rt-cut-loading, .rt-cut-editor { display: none; }
.rt-cut[data-state="idle"] .rt-cut-drop, .rt-cut[data-state="loading"] .rt-cut-loading, .rt-cut[data-state="editor"] .rt-cut-editor { display: block; }
.rt-cut-drop { text-align: center; border: 2px dashed color-mix(in srgb, var(--rt-brand) 45%, transparent); border-radius: 16px; padding: clamp(1.75rem, 5vw, 3rem) 1rem; transition: background .15s, border-color .15s; }
.rt-cut.is-drag .rt-cut-drop { background: var(--rt-grad-soft); border-color: var(--rt-brand); }
.rt-cut.is-drag[data-state="editor"] { outline: 2px dashed var(--rt-brand); outline-offset: 4px; }
.rt-cut-drop-ic { display: inline-flex; width: 68px; height: 68px; border-radius: 50%; align-items: center; justify-content: center; background: var(--rt-grad); color: #fff; margin-bottom: .9rem; box-shadow: 0 10px 24px rgba(248, 70, 0, .3); }
.rt-cut-drop-title { font-weight: 700; font-size: 1.25rem; }
.rt-cut-drop-or { color: var(--rt-muted); margin: .35rem 0 .7rem; }
.rt-cut-open { border-radius: 999px; padding-left: 2rem; padding-right: 2rem; }
.rt-cut-drop-note { color: var(--rt-muted); font-size: .88rem; margin-top: 1rem; }
.rt-cut-loading { padding: 2.5rem 1rem; text-align: center; }
.rt-cut-loading-name { font-weight: 600; margin-bottom: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-cut-progress { max-width: 420px; margin: 0 auto; height: 8px; border-radius: 99px; background: var(--rt-surface-2); }
.rt-cut-progress .progress-bar { background: var(--rt-grad); transition: width .2s; }
.rt-cut-loading-cap { color: var(--rt-muted); font-size: .88rem; margin-top: .6rem; }

.rt-cut-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.rt-cut-file-ic { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; background: var(--rt-grad-soft); color: var(--rt-brand); display: inline-flex; align-items: center; justify-content: center; }
.rt-cut-file { flex: 1 1 auto; min-width: 0; }
.rt-cut-file-name { font-weight: 700; }
.rt-cut-file-meta { color: var(--rt-muted); font-size: .8rem; }
.rt-cut-new { flex: 0 0 auto; border-radius: 999px; display: inline-flex; align-items: center; gap: .35rem; }

.rt-cut-wavebox { background: var(--rt-surface-2); border-radius: 14px; padding: 26px 0 0; }
.rt-cut-scroll { overflow-x: auto; overflow-y: hidden; border-radius: 0 0 14px 14px; scrollbar-width: thin; padding: 0 14px; } /* поля: ручки у краёв видны целиком */
.rt-cut-wave { position: relative; min-width: 100%; touch-action: pan-x; user-select: none; -webkit-user-select: none; cursor: text; }
.rt-cut-wave canvas { display: block; width: 100%; height: 132px; }
.rt-cut-ruler { position: relative; height: 22px; border-top: 1px solid var(--rt-border); }
.rt-cut-ruler span { position: absolute; top: 3px; transform: translateX(-50%); font-size: .7rem; color: var(--rt-muted); font-variant-numeric: tabular-nums; padding: 0 3px; white-space: nowrap; }
.rt-cut-head-line { position: absolute; top: 0; height: 132px; width: 2px; margin-left: -1px; background: var(--rt-text); opacity: .75; pointer-events: none; }
.rt-cut-handle { position: absolute; top: 0; height: 132px; width: 26px; margin-left: -13px; cursor: ew-resize; touch-action: none; z-index: 2; outline: none; }
.rt-cut-handle::before { content: ""; position: absolute; left: 12px; top: 0; bottom: 0; width: 2px; background: var(--rt-brand); }
.rt-cut-grip { position: absolute; left: 6px; top: 50%; width: 14px; height: 34px; margin-top: -17px; border-radius: 7px; background: var(--rt-grad); box-shadow: 0 2px 8px rgba(248, 70, 0, .35); }
.rt-cut-grip::after { content: ""; position: absolute; left: 5px; right: 5px; top: 11px; bottom: 11px; border-left: 1px solid rgba(255, 255, 255, .8); border-right: 1px solid rgba(255, 255, 255, .8); }
.rt-cut-handle:focus-visible .rt-cut-grip { outline: 2px solid var(--rt-text); outline-offset: 2px; }
.rt-cut-chip { position: absolute; top: -23px; font-size: .72rem; font-weight: 700; font-variant-numeric: tabular-nums; color: #fff; background: var(--rt-brand); border-radius: 6px; padding: 1px 6px; white-space: nowrap; pointer-events: none; }
.rt-cut-handle.is-l .rt-cut-chip { left: 13px; }
.rt-cut-handle.is-r .rt-cut-chip { right: 13px; }
.rt-cut-handle.is-l .rt-cut-chip.is-out { left: auto; right: 13px; }
.rt-cut-handle.is-r .rt-cut-chip.is-out { right: auto; left: 13px; }

.rt-cut-player { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin: 1rem 0; }
.rt-cut-play { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--rt-grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(248, 70, 0, .32); transition: transform .15s; }
.rt-cut-play:hover { transform: scale(1.04); }
.rt-cut-play svg { width: 26px; height: 26px; }
.rt-cut-play .i-stop, .rt-cut.is-live .rt-cut-play .i-play { display: none; }
.rt-cut.is-live .rt-cut-play .i-stop { display: block; }
.rt-cut-repeat.active { color: var(--rt-brand); background: var(--rt-grad-soft); }
.rt-cut-time { font-variant-numeric: tabular-nums; color: var(--rt-muted); }
.rt-cut-time b { color: var(--rt-text); }
.rt-cut-zoom { margin-left: auto; display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--rt-muted); }
.rt-cut-zoom input { width: 140px; }
.rt-cut .form-range::-webkit-slider-thumb { background: var(--rt-brand); }
.rt-cut .form-range::-moz-range-thumb { background: var(--rt-brand); }

.rt-cut-panel { height: 100%; border: 1px solid var(--rt-border); border-radius: 14px; padding: .9rem 1rem; }
.rt-cut-sec { font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--rt-muted); margin-bottom: .6rem; }
.rt-cut-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.rt-cut-field > span { display: block; font-size: .8rem; color: var(--rt-muted); margin-bottom: .2rem; }
.rt-cut-field .form-control { font-variant-numeric: tabular-nums; min-width: 0; }
.rt-cut-field .btn { display: inline-flex; align-items: center; padding-left: .5rem; padding-right: .5rem; }
.rt-cut-presets { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .8rem; font-size: .85rem; color: var(--rt-muted); }
.rt-cut-presets .rt-chip { padding: .25rem .65rem; font-size: .82rem; }
.rt-cut-sellen { margin-top: .7rem; font-size: .88rem; color: var(--rt-muted); }
.rt-cut-sellen b { color: var(--rt-text); font-variant-numeric: tabular-nums; }
.rt-cut .form-check-input:checked { background-color: var(--rt-brand); border-color: var(--rt-brand); }
.rt-cut .form-check { margin-bottom: .45rem; }
.rt-cut-hint { font-size: .8rem; color: var(--rt-muted); margin-top: .6rem; }

.rt-cut-export { display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin-top: 1.25rem; align-items: flex-start; }
.rt-cut-export .btn { display: inline-flex; align-items: center; gap: .45rem; border-radius: 999px; padding: .6rem 1.25rem; font-weight: 600; }
.rt-cut-export .btn .fmt-img { height: 22px; margin: 0; vertical-align: middle; }
.rt-cut-pub { border-color: color-mix(in srgb, var(--rt-brand) 55%, transparent); }
.rt-cut-error { color: #e5484d; margin: .75rem 0 0; min-height: 0; font-size: .9rem; }
.rt-cut-error:empty { display: none; }
.rt-pub .modal-content, .modal-content.rt-pub { background: var(--rt-surface); border-radius: 18px; border: 1px solid var(--rt-border); }
.rt-pub .form-control:focus { border-color: var(--rt-brand); box-shadow: 0 0 0 .2rem rgba(248, 90, 16, .15); }
@media (max-width: 575.98px) {
  .rt-cut-wave canvas, .rt-cut-head-line, .rt-cut-handle { height: 110px; }
  .rt-cut-zoom { margin-left: 0; width: 100%; }
  .rt-cut-zoom input { flex: 1; width: auto; }
  .rt-cut-export .rt-dl-fmt { flex: 1 1 100%; }
  .rt-cut-export .btn { width: 100%; justify-content: center; }
  .rt-cut-new span { display: none; }
}

/* главная: блок «Рингтоны пользователей» */
.rt-users-head h2 { font-weight: 850; letter-spacing: -.03em; font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.rt-users-head p { color: var(--rt-muted); max-width: 720px; }
.rt-steps b { display: block; margin-bottom: .25rem; }
.rt-step-n { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: var(--rt-grad); color: #fff; font-weight: 800; align-items: center; justify-content: center; font-size: .9rem; margin-bottom: .5rem; }
