/* Basstion Sound - home page layer. Loaded after app.css / gold.css / radio.css.
   Everything is scoped to .hm-* so it can't touch the rest of the site.
   Removing the <link> + <script> and the new sections reverts the page. */

:root {
  --hm-amber: #ffb648;      /* тот же акцент, что на вкладке Радио */
  --hm-line: rgba(255,255,255,.08);
}

/* ===== строка-доказательство в hero: снимает вопрос «а тут вообще живое?» ===== */
.hm-proof {
  display: flex; gap: 26px; flex-wrap: wrap;
  margin: 26px 0 22px;      /* отбивка от чипов жанров - прежде липла к ним */
  font-size: 13px; color: rgba(255,255,255,.42);
}
.hm-proof b {
  font-family: 'JetBrains Mono', monospace; font-size: 17px; font-weight: 700;
  color: var(--hm-amber); margin-right: 6px;
}

/* ===== три шага ===== */
.hm-steps {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.hm-step {
  position: relative; padding: 26px 24px 22px; border-radius: 22px;
  background: linear-gradient(165deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--hm-line);
  transition: transform .25s, border-color .25s, background .25s;
}
.hm-step:hover {
  transform: translateY(-4px);
  border-color: rgba(236,72,153,.4);
  background: linear-gradient(165deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
}
.hm-step-num {
  font-family: 'JetBrains Mono', monospace; font-size: 40px; font-weight: 700;
  line-height: 1; margin-bottom: 14px;
  background: linear-gradient(120deg, var(--pink, #ec4899), var(--purple, #a855f7));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: .85;
}
.hm-step h3 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 800; font-size: 19px; margin-bottom: 8px;
}
.hm-step p { color: rgba(255,255,255,.5); font-size: 14px; line-height: 1.55; }
.hm-step-link {
  display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 700;
  color: rgba(255,255,255,.75); transition: color .2s;
}
.hm-step-link:hover { color: var(--hm-amber); }

/* ===== глухая полоса с критериями: ритм между стеклянными блоками ===== */
/* во всю ширину окна, оставаясь внутри контейнера страницы:
   боковые поля даёт .hm-band-inner, а не padding в 50vw (схлопывал текст в столбик) */
.hm-band {
  position: relative; width: 100vw;
  margin: 64px calc(50% - 50vw) 0;
  padding: 56px 24px;
  background:
    radial-gradient(80% 120% at 20% 0%, rgba(168,85,247,.10), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.35));
  border-top: 1px solid var(--hm-line);
  border-bottom: 1px solid var(--hm-line);
}
.hm-band-inner { max-width: 72rem; margin: 0 auto; }
.hm-crits {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.hm-crit {
  padding: 16px 18px; border-radius: 16px;
  background: rgba(255,255,255,.04); border: 1px solid var(--hm-line);
}
.hm-crit b {
  display: block; font-size: 15px; font-weight: 800; margin-bottom: 4px;
}
.hm-crit span { font-size: 12.5px; color: rgba(255,255,255,.45); line-height: 1.45; }

/* ===== кнопки «послушать» ===== */
.hm-play {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--hm-amber);
  background: rgba(255,182,72,.12); border: 1px solid rgba(255,182,72,.32);
  transition: background .2s, transform .12s, color .2s;
}
.hm-play:hover { background: var(--hm-amber); color: #1a1206; }
.hm-play:active { transform: scale(.92); }

/* на обложке победителя - крупная, поверх иконки */
.hm-play-big {
  position: absolute; inset: 0; width: 100%; height: 100%; border: none;
  border-radius: inherit; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: #fff;
  background: rgba(10,7,16,.55); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .2s;
}
.featured-cover:hover .hm-play-big { opacity: 1; }
.hm-play-big:active { transform: scale(.97); }
@media (hover: none) {          /* на тач-экранах наводить нечем - показываем всегда */
  .hm-play-big { opacity: 1; background: rgba(10,7,16,.35); font-size: 26px; }
}

/* ===== лента последних разборов ===== */
.hm-more { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.5); transition: color .2s; }
.hm-more:hover { color: var(--hm-amber); }
.hm-recent {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.hm-track {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border-radius: 18px; background: rgba(255,255,255,.035);
  border: 1px solid var(--hm-line);
  transition: transform .2s, border-color .2s, background .2s;
}
.hm-track:hover {
  transform: translateY(-3px); background: rgba(255,255,255,.06);
  border-color: rgba(255,182,72,.32);
}
.hm-ava {
  width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 17px; color: #fff;
}
.hm-track-main { min-width: 0; flex: 1; }
.hm-track-title {
  font-weight: 700; font-size: 14.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hm-track-sub {
  font-size: 12px; color: rgba(255,255,255,.42); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hm-score {
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 15px;
  color: var(--hm-amber); flex-shrink: 0;
}

/* ===== две карточки: расписание и радио ===== */
.hm-two { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.hm-card {
  position: relative; overflow: hidden; padding: 28px 26px; border-radius: 24px;
  background: linear-gradient(165deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--hm-line);
  display: flex; flex-direction: column;
}
/* кнопки прижаты к низу: тексты в карточках разной длины, иначе они разъезжаются */
.hm-card > .hm-btn { margin-top: auto; align-self: flex-start; }
.hm-card .hm-sched-note { margin-bottom: 18px; }
.hm-card .hm-waves { margin-bottom: 18px; }
.hm-days { display: flex; gap: 8px; flex-wrap: wrap; }
.hm-day {
  min-width: 46px; padding: 10px 6px; text-align: center; border-radius: 12px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700;
  background: rgba(255,255,255,.04); border: 1px solid var(--hm-line);
  color: rgba(255,255,255,.4);
}
.hm-day.on {
  background: rgba(255,182,72,.16); border-color: rgba(255,182,72,.45);
  color: var(--hm-amber);
}
.hm-sched-note { margin-top: 14px; font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.55; }

.hm-radio { border-color: rgba(255,182,72,.22); }
.hm-radio-glow {
  position: absolute; right: -60px; top: -60px; width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(255,182,72,.18), transparent 70%);
  pointer-events: none;
}
.hm-waves { display: flex; gap: 8px; flex-wrap: wrap; }
.hm-waves span {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700;
  padding: 7px 11px; border-radius: 999px;
  background: rgba(255,182,72,.08); border: 1px solid rgba(255,182,72,.2);
  color: rgba(255,214,150,.85);
}

/* ===== кнопки секций ===== */
.hm-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 22px; border-radius: 14px; cursor: pointer;
  font-weight: 700; font-size: 14px; border: 1px solid transparent;
  transition: transform .15s, background .2s, border-color .2s, color .2s;
}
.hm-btn:active { transform: scale(.97); }
.hm-btn-primary {
  background: linear-gradient(120deg, var(--pink, #ec4899), var(--purple, #a855f7));
  color: #fff;
}
.hm-btn-primary:hover { filter: brightness(1.1); }
.hm-btn-amber { background: var(--hm-amber); color: #1a1206; }
.hm-btn-amber:hover { background: #ffc76b; }
.hm-btn-ghost {
  background: rgba(255,255,255,.06); border-color: var(--hm-line); color: #fff;
}
.hm-btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }

/* ===== бегущая строка с авторами ===== */
.hm-marquee {
  position: relative; overflow: hidden; padding: 14px 0;
  border-top: 1px solid var(--hm-line); border-bottom: 1px solid var(--hm-line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hm-marquee-track {
  display: flex; gap: 34px; width: max-content;
  animation: hm-scroll 42s linear infinite;
}
.hm-marquee-track span {
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  color: rgba(255,255,255,.28); white-space: nowrap;
}
.hm-marquee-track span::before { content: '★ '; color: rgba(255,182,72,.45); }
@keyframes hm-scroll { to { transform: translateX(-50%); } }

/* ===== финальный призыв ===== */
.hm-cta {
  position: relative; overflow: hidden; padding: 56px 28px; border-radius: 30px;
  text-align: center;
  background:
    radial-gradient(90% 130% at 50% 0%, rgba(236,72,153,.18), transparent 60%),
    linear-gradient(165deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(236,72,153,.22);
}
.hm-cta-inner { position: relative; z-index: 1; }
.hm-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hm-cta-note { margin-top: 16px; font-size: 12.5px; color: rgba(255,255,255,.35); }

@media (max-width: 640px) {
  .hm-band { margin-top: 48px; padding: 40px 20px; }
  .hm-band-inner { max-width: none; }
  .hm-cta { padding: 40px 20px; }
  .hm-step-num { font-size: 34px; }
}

/* у брата OBS-захват - лишние кадры дороже красоты */
@media (prefers-reduced-motion: reduce) {
  .hm-marquee-track { animation: none; }
  .hm-step:hover, .hm-track:hover { transform: none; }
}

/* ===== архив разборов во вкладке «История» (для зрителя) ===== */
.ar-row {
  display: flex; align-items: center; gap: 14px; padding: 13px 16px;
  border-radius: 16px; margin-bottom: 8px;
  background: rgba(255,255,255,.035); border: 1px solid var(--hm-line);
  transition: background .18s, border-color .18s;
}
.ar-row:hover { background: rgba(255,255,255,.06); border-color: rgba(255,182,72,.28); }
.ar-main { flex: 1; min-width: 0; }
.ar-title {
  font-weight: 700; font-size: 14.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ar-sub {
  font-size: 12px; color: rgba(255,255,255,.42); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ar-verdict {
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,.6);
  flex-shrink: 0; white-space: nowrap;
}
.ar-score {
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 14px;
  color: var(--hm-amber); flex-shrink: 0; width: 46px; text-align: right;
}
.ar-more {
  width: 100%; margin-top: 10px; padding: 14px; border-radius: 14px; cursor: pointer;
  font-weight: 700; font-size: 13.5px; color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.05); border: 1px solid var(--hm-line);
  transition: background .2s, border-color .2s, color .2s;
}
.ar-more:hover:not(:disabled) { background: rgba(255,255,255,.09); color: #fff; border-color: rgba(255,182,72,.3); }
.ar-more:disabled { opacity: .6; cursor: default; }
.ar-end {
  text-align: center; padding: 18px; font-size: 12.5px; color: rgba(255,255,255,.28);
}
@media (max-width: 560px) {
  .ar-verdict { display: none; }        /* на телефоне важнее название и балл */
}
