/* Рекомендации: «Поток», миксы дня, умные плейлисты, дизлайк, умное перемешивание */

/* «Живая» волна — знак Потока */
.radio-wave { display: flex; align-items: center; gap: 5px; height: 72px; width: 72px; flex: none; justify-content: center; border-radius: 20px; background: var(--grad); box-shadow: var(--glow); }
.radio-wave i { width: 5px; border-radius: 3px; background: var(--on-accent); height: 30%; animation: wave 1.2s ease-in-out infinite; }
.radio-wave i:nth-child(2) { animation-delay: -.2s; } .radio-wave i:nth-child(3) { animation-delay: -.4s; }
.radio-wave i:nth-child(4) { animation-delay: -.6s; } .radio-wave i:nth-child(5) { animation-delay: -.8s; }
.radio-wave i:nth-child(6) { animation-delay: -1s; } .radio-wave i:nth-child(7) { animation-delay: -.1s; }
@keyframes wave { 50% { height: 75%; } }
.radio-wave.small { width: 52px; height: 52px; border-radius: 14px; gap: 4px; }
.radio-wave.small i { width: 4px; }
@media (prefers-reduced-motion: reduce) { .radio-wave i { animation: none; height: 55%; } }

.radio-hero {
  display: flex; gap: 22px; align-items: center; padding: 28px; border-radius: 24px; margin-bottom: 22px; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--accent) 50%, transparent), transparent 55%),
    radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--accent-3) 40%, transparent), transparent 55%),
    var(--panel-2);
  border: 1px solid rgba(255, 255, 255, .06);
}
.radio-hero h1 { font-family: var(--display); font-size: clamp(40px, 6vw, 72px); font-weight: 900; letter-spacing: -.05em; margin: 4px 0 6px; line-height: 1; }
.radio-hero .kind { font-size: 13px; font-weight: 700; color: var(--muted); }
.radio-hero p { margin: 0; max-width: 560px; }
.radio-hero > div:nth-child(2) { flex: 1; min-width: 0; }
.big-play.xl { width: 76px; height: 76px; flex: none; }
.big-play.xl svg { width: 36px; height: 36px; }

.radio-prefs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-bottom: 26px; }
.radio-prefs h4 { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.radio-prefs .chips { margin: 0; }
.chip.on { background: var(--grad); color: var(--on-accent); border-color: transparent; font-weight: 700; }
.novelty { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); padding-top: 6px; }
.novelty input { --fill-from: var(--accent); --fill-to: var(--accent-2); }

/* Баннер Потока на главной */
.flow-banner {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 20px; margin: -12px 0 30px; cursor: pointer;
  background: linear-gradient(100deg, color-mix(in srgb, var(--accent) 22%, transparent), color-mix(in srgb, var(--accent-3) 14%, transparent));
  border: 1px solid rgba(255, 255, 255, .07); transition: transform .2s, filter .2s;
}
.flow-banner:hover { transform: translateY(-2px); filter: brightness(1.08); }
.flow-banner b { display: block; font-family: var(--display); font-size: 22px; font-weight: 900; letter-spacing: -.03em; }
.flow-banner span { color: var(--muted); font-size: 13px; }

/* Коллаж обложек для миксов */
.cover.collage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 0; padding: 0; }
.cover.collage i { background: var(--surface) center/cover no-repeat; }
.hero .cover.collage { width: 220px; height: 220px; }
.mix-card .cover { position: relative; }
.mix-card .cover::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(160deg, transparent 40%, color-mix(in srgb, var(--accent) 45%, transparent));
}

/* Кнопки */
.btn.ghost.on-accent { border-color: var(--accent); color: var(--accent); }
.now-dislike svg { width: 18px; height: 18px; }
.now-dislike.on { color: var(--danger); }

/* Умное перемешивание в очереди */
.q-item.suggested .q-text b::after { content: " ✦ рекомендация"; color: var(--accent-3); font-size: 11px; font-weight: 600; }

/* Окно умного плейлиста */
.dialog.wide { width: min(640px, calc(100vw - 24px)); }
.smart-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 6px; font-size: 13px; color: var(--muted); }
.smart-row select, .smart-rule select, .smart-rule input { background: var(--field); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit; margin: 0; width: auto; }
.smart-row input { margin: 0; }
#smart-rules { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 10px; }
.smart-rule { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px; border-radius: 12px; background: var(--panel-2); }
.smart-rule select[data-rf] { flex: 1 1 240px; }
.smart-rule input[type=text] { flex: 1 1 160px; }
.smart-presets { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 14px 0 4px; font-size: 13px; }
.smart-presets .chip { padding: 4px 10px; font-size: 12px; }

@media (max-width: 800px) {
  .radio-hero { flex-wrap: wrap; padding: 20px; }
  .radio-hero .radio-wave { width: 56px; height: 56px; }
  .flow-banner { margin-top: -16px; }
}
