/* Basstion Sound - structure layer v1 (13.11.2026): home chapters + community panels.
   Loaded LAST. Rollback = remove the <link> (home markup stays valid without it). */

:root { --st-line: rgba(255,255,255,.08); --st-pink: 236,72,153; --st-purple: 168,85,247; }

/* =====================================================================
   HOME: blocks ("chapters") with one shared header
   ===================================================================== */
/* liquid.css put 104px under EVERY child (eyebrow, h2, p...). Now children are whole blocks. */
html.lg #pg-home > div.max-w-6xl > * { margin-bottom: 112px !important; }
html.lg #pg-home > div.max-w-6xl > *:last-child { margin-bottom: 0 !important; }
html:not(.lg) #pg-home .hm-block,
html:not(.lg) #pg-home .hm-cta,
html:not(.lg) #pg-home .hm-band { margin-top: 72px; }

.hm-head {
  position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin: 0 0 28px !important; padding-bottom: 18px; border-bottom: 1px solid var(--st-line);
}
.hm-head::after {            /* accent tick on the rule */
  content: ''; position: absolute; left: 0; bottom: -1px; width: 84px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgb(var(--st-pink)), rgb(var(--st-purple)));
  box-shadow: 0 0 12px rgba(var(--st-pink), .55);
}
.hm-head > div { min-width: 0; }
.hm-head .section-eyebrow { margin: 0 0 10px !important; }
.hm-head h2 { margin: 0 !important; line-height: 1.08; }
.hm-head p { margin: 10px 0 0 !important; max-width: 680px; line-height: 1.55; }
.hm-head .hm-more, .hm-head .hmp-tabs { margin: 0 !important; }
/* JS bars (Итоги / Сообщество) reuse the header look */
.hmp-bar.hm-head { align-items: flex-end; }

/* blocks: soft halo behind each chapter title so the page reads in parts */
.hm-block { position: relative; }
.hm-block::before {
  content: ''; position: absolute; z-index: -1; left: -40px; top: -60px; width: 420px; height: 220px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--st-purple), .12), transparent); filter: blur(10px);
}
/* inner pieces lost their mt-* utilities: give a calm inner rhythm */
#hm-b-live .hm-marquee { margin-top: 22px; }
.hm-band .hm-head { border-bottom-color: rgba(255,255,255,.1); }

/* framed block for the "live" pair: schedule + radio feel like one unit */
#hm-b-live .hm-two { gap: 18px; }

/* =====================================================================
   COMMUNITY v3: panels
   ===================================================================== */
.cm-v3 { padding-top: 36px; }
.cm-v3 .cm-sec { margin-bottom: 28px; }
.cm-v3 .cm-cols { gap: 24px; }

.cm-panel {
  position: relative; isolation: isolate; padding: 26px 28px 28px; border-radius: 28px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(var(--st-pink), .07), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--st-line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 40px 80px -40px rgba(0,0,0,.75);
}
.cm-panel::before {          /* gradient contour: pink top-left -> purple bottom-right */
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; z-index: -1;
  background: linear-gradient(135deg, rgba(var(--st-pink), .55), rgba(255,255,255,.05) 32%, rgba(255,255,255,.03) 68%, rgba(var(--st-purple), .5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);         mask-composite: exclude;
}
.cm-panel:empty { display: none; }

/* panel header: icon chip + title/hint + actions, separated by a rule with accent tick */
.cm-v3 .cm-sec-head {
  position: relative; align-items: center; gap: 16px; margin: 0 0 22px; padding-bottom: 18px; border-bottom: 1px solid var(--st-line);
}
.cm-v3 .cm-sec-head::after {
  content: ''; position: absolute; left: 0; bottom: -1px; width: 64px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgb(var(--st-pink)), rgb(var(--st-purple)));
}
.cm-sec-txt { flex: 1; min-width: 0; }
.cm-v3 .cm-sec-title { font-size: clamp(20px, 1.9vw, 26px); }
.cm-v3 .cm-sec-hint { margin-top: 4px; font-size: 13.5px; }
.cm-sec-ic, .cm-box-ic {
  flex: none; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, rgba(var(--st-pink), .35), rgba(var(--st-purple), .35));
  border: 1px solid rgba(255,255,255,.16); box-shadow: 0 8px 22px -10px rgba(var(--st-pink), .9), inset 0 1px 0 rgba(255,255,255,.25);
}
.cm-sec-ic { width: 46px; height: 46px; border-radius: 14px; }
.cm-sec-ic svg { width: 22px; height: 22px; }
.cm-box-ic { width: 30px; height: 30px; border-radius: 10px; }
.cm-box-ic svg { width: 16px; height: 16px; }
.cm-sec-ic svg, .cm-box-ic svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* steps inside the panel: lighter cards + numbered rail */
.cm-v3 .cm-steps { gap: 14px; counter-reset: none; }
.cm-v3 .cm-step { background: rgba(255,255,255,.025); border-color: rgba(255,255,255,.07); border-radius: 20px; padding: 22px; }
.cm-v3 .cm-step:hover { border-color: rgba(var(--st-pink), .35); }
.cm-v3 .cm-progress > * { border-radius: 20px; background: rgba(255,255,255,.03); }

/* shelf: fading edges, so it reads as a scroller, not a cut-off row */
.cm-shelf-wrap { position: relative; margin: 0 -6px; }
.cm-shelf-wrap .cm-shelf { padding: 4px 6px 10px;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 70px), transparent);
          mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 70px), transparent); }
.cm-v3 .cm-shelf-card { background: rgba(255,255,255,.03); }

/* main column: one toolbar for search, type and sort */
.cm-toolbar {
  display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; padding: 12px;
  border-radius: 20px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.cm-toolbar .cm-tools { margin: 0 !important; }
.cm-toolbar-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 12px; border-top: 1px dashed rgba(255,255,255,.08); }
.cm-toolbar .cm-tabs { margin: 0; background: rgba(255,255,255,.03); }
.cm-toolbar .cm-hint { margin: 0 !important; flex: 1; min-width: 220px; font-size: 13px; color: rgba(255,255,255,.5); }
.cm-v3 .cm-feed { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.cm-v3 .cm-card { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
.cm-v3 .cm-card:hover { background: rgba(255,255,255,.055); box-shadow: 0 18px 40px -22px rgba(var(--st-pink), .55); }
.cm-v3 .cm-card-stats { margin-top: 8px; }
.cm-pill.first { color: #f9a8d4; border-color: rgba(var(--st-pink), .3); background: rgba(var(--st-pink), .08); }
.cm-v3 .cm-more { margin-top: 22px; }

/* sidebar: same panel language, compact */
.cm-v3 .cm-side { gap: 18px; }
.cm-v3 .cm-side .cm-box {
  position: relative; isolation: isolate; padding: 18px 20px 20px; border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--st-line); box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.cm-v3 .cm-side .cm-box:first-child { border-color: rgba(245,197,24,.28);
  background: radial-gradient(100% 60% at 100% 0%, rgba(245,197,24,.09), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); }
.cm-v3 .cm-side .cm-box:first-child .cm-box-ic { background: linear-gradient(135deg, rgba(245,197,24,.45), rgba(236,72,153,.3)); box-shadow: 0 8px 22px -10px rgba(245,197,24,.9), inset 0 1px 0 rgba(255,255,255,.3); }
.cm-v3 .cm-box-h { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--st-line); }
.cm-v3 .cm-box h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.cm-v3 .cm-how summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.cm-v3 .cm-how summary::-webkit-details-marker { display: none; }
.cm-v3 .cm-how summary::after { content: '+'; font: 700 20px/1 Inter, sans-serif; color: rgba(255,255,255,.5); transition: transform .25s; }
.cm-v3 .cm-how[open] summary::after { transform: rotate(45deg); }
.cm-v3 .cm-tips ul { margin-top: 0; }

/* hero: compact title, stats as one glass strip */
.cm-hero .lgp-title { font-size: clamp(36px, 4.6vw, 68px) !important; line-height: .98 !important; }
.cm-hero-stats {
  display: inline-flex !important; flex-wrap: wrap; gap: 0 !important; margin-top: 26px; padding: 4px;
  border-radius: 20px; background: rgba(10,8,20,.55); border: 1px solid rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 20px 40px -20px rgba(0,0,0,.8);
}
.cm-hero-stats > div { background: none !important; border: 0 !important; border-radius: 0 !important; min-width: 116px; padding: 10px 20px !important; }
.cm-hero-stats > div + div { border-left: 1px solid rgba(255,255,255,.1) !important; }

@media (max-width: 1000px) {
  .cm-v3 .cm-side { position: static; }
}
@media (max-width: 640px) {
  .cm-panel { padding: 18px 16px 20px; border-radius: 22px; }
  .cm-v3 .cm-sec-head { gap: 12px; flex-wrap: wrap; }
  .cm-sec-ic { width: 40px; height: 40px; border-radius: 12px; }
  .cm-toolbar { padding: 10px; }
  .cm-toolbar .cm-hint { min-width: 0; }
  .cm-hero-stats { display: grid !important; grid-template-columns: 1fr 1fr; width: 100%; }
  .cm-hero-stats > div { min-width: 0; padding: 10px 14px !important; }
  .cm-hero-stats > div:nth-child(3) { border-left: 0 !important; }
  .cm-hero-stats > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1) !important; }
  .hm-block::before { display: none; }
  html.lg #pg-home > div.max-w-6xl > * { margin-bottom: 72px !important; }
}

/* --- polish pass --- */
/* criteria: 6 in a row, no orphan */
.hm-crits { display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)) !important; gap: 12px !important; }
@media (max-width: 1100px) { .hm-crits { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 640px)  { .hm-crits { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
/* "Топ-3 сессии" belongs to the «Итоги» chapter: pull it up under the period columns */
html.lg #pg-home > div.max-w-6xl > #hm-periods { margin-bottom: 22px !important; }
/* community cards: one row of pills, the whole card is the link */
.cm-v3 .cm-card { gap: 14px; padding: 12px 16px 12px 12px; }
.cm-v3 .cm-card-go { display: none; }
.cm-v3 .cm-card-stats { flex-wrap: nowrap; overflow: hidden; gap: 5px; }
.cm-v3 .cm-card-stats .cm-pill { padding: 3px 8px; font-size: 11.5px; }
/* session #2/#3: a long title stretched the grid item past the screen on phones */
#featured-rest > * { min-width: 0; }
#featured-rest > * > div { min-width: 0; }
#featured-rest > * > div > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* =====================================================================
   HOME v2: photos + different block shapes (13.11.2026)
   ===================================================================== */
/* 1) steps: tall photo on the left, steps as a vertical rail on the right */
.hm-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 22px; align-items: stretch; }
.hm-photo { position: relative; margin: 0; min-height: 420px; border-radius: 28px; overflow: hidden; isolation: isolate;
  border: 1px solid rgba(255,255,255,.1); box-shadow: 0 40px 80px -40px rgba(var(--st-pink), .55); }
.hm-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.hm-photo:hover img { transform: scale(1.04); }
.hm-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8,6,16,.85)); }
.hm-photo figcaption { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 14px; font-size: 13.5px; font-weight: 700; color: #fff;
  background: rgba(10,8,20,.55); border: 1px solid rgba(255,255,255,.14); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.hm-split .hm-steps { grid-template-columns: minmax(0, 1fr) !important; gap: 12px; position: relative; }
.hm-split .hm-step { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 18px; align-items: start; padding: 20px 22px; }
.hm-split .hm-step > * { grid-column: 2; }
.hm-split .hm-step-num { grid-column: 1; grid-row: 1 / span 3; margin: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-size: 20px; opacity: 1; -webkit-text-fill-color: #fff; color: #fff;
  background: linear-gradient(135deg, rgb(var(--st-pink)), rgb(var(--st-purple))); box-shadow: 0 10px 24px -8px rgba(var(--st-pink), .8); }
.hm-split .hm-step h3 { margin-bottom: 4px; }
.hm-split .hm-step-link { margin-top: 8px; }
.hm-split .hm-step:not(:last-child)::after { /* rail between the numbered circles */
  content: ''; position: absolute; left: 49px; top: 78px; bottom: -14px; width: 2px;
  background: linear-gradient(180deg, rgba(var(--st-pink), .7), rgba(var(--st-purple), .2)); }
.hm-split .hm-step:hover { transform: translateX(4px); }

/* 2) schedule + radio: photo header on each card */
.hm-card .hm-card-img { display: block; width: calc(100% + 52px); max-width: none; height: 190px; margin: -28px -26px 20px; object-fit: cover;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent);
  transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.hm-card:hover .hm-card-img { transform: scale(1.03); }
.hm-card .section-eyebrow { position: relative; }

/* 3) criteria: full-bleed photo band, glass tiles on top */
.hm-band-photo { overflow: hidden; isolation: isolate; padding-top: 80px !important; padding-bottom: 80px !important; }
.hm-band-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: .55; }
.hm-band-photo::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(6,5,12,.96) 0%, rgba(6,5,12,.78) 45%, rgba(6,5,12,.55) 100%), linear-gradient(180deg, rgba(6,5,12,.6), transparent 30%, transparent 70%, rgba(6,5,12,.8)); }
.hm-band-photo .hm-crit { background: rgba(14,10,24,.55); border-color: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  transition: transform .25s, border-color .25s; }
.hm-band-photo .hm-crit:hover { transform: translateY(-4px); border-color: rgba(var(--st-pink), .5); }
.hm-band-photo .hm-crit b { color: #fff; }
.hm-band-photo .hm-crit span { color: rgba(255,255,255,.62); }

/* 4) community on home: photo left, leaders right */
#cm-home .cm-home-box { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 24px; align-items: stretch; padding: 16px; }
.cm-home-photo { position: relative; margin: 0; min-height: 260px; border-radius: 18px; overflow: hidden; }
.cm-home-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cm-home-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(8,6,16,.9)); }
.cm-home-photo figcaption { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; }
.cm-home-photo figcaption b { display: block; font: 800 20px 'Bricolage Grotesque', sans-serif; }
.cm-home-photo figcaption span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.7); }
.cm-home-main { min-width: 0; padding: 8px 8px 4px 0; display: flex; flex-direction: column; }
.cm-home-main .cm-home-foot { margin-top: auto; }

/* 5) final call: photo stage */
.hm-cta-photo { isolation: isolate; padding: 96px 28px !important; border-color: rgba(var(--st-pink), .35) !important;
  box-shadow: 0 50px 100px -50px rgba(var(--st-pink), .7); }
.hm-cta-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: .75; }
.hm-cta-photo::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 80% at 50% 50%, rgba(6,5,12,.72), rgba(6,5,12,.35) 70%), linear-gradient(180deg, rgba(6,5,12,.2), rgba(6,5,12,.75)); }
.hm-cta-eyebrow { display: inline-block; margin-bottom: 14px; }
.hm-cta-photo h2 { text-shadow: 0 6px 30px rgba(0,0,0,.6); }

@media (max-width: 1000px) {
  .hm-split { grid-template-columns: minmax(0, 1fr); }
  .hm-photo { min-height: 280px; }
  #cm-home .cm-home-box { grid-template-columns: minmax(0, 1fr); }
  .cm-home-photo { min-height: 200px; }
  .cm-home-main { padding: 0 4px 4px; }
}
@media (max-width: 640px) {
  .hm-split .hm-step { grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; padding: 16px; }
  .hm-split .hm-step-num { width: 44px; height: 44px; font-size: 16px; }
  .hm-split .hm-step:not(:last-child)::after { left: 37px; top: 64px; }
  .hm-card .hm-card-img { height: 150px; }
  .hm-cta-photo { padding: 64px 20px !important; }
}
@media (prefers-reduced-motion: reduce) { .hm-photo img, .hm-card-img { transition: none; } }
/* photo bands: show more of the picture */
.hm-band-bg { opacity: .9; }
.hm-band-photo::before { background: linear-gradient(90deg, rgba(6,5,12,.92) 0%, rgba(6,5,12,.6) 40%, rgba(6,5,12,.15) 100%), linear-gradient(180deg, rgba(6,5,12,.55), transparent 30%, transparent 60%, rgba(6,5,12,.85)) !important; }
.hm-cta-bg { opacity: 1; }
.hm-cta-photo::before { background: radial-gradient(50% 60% at 50% 55%, rgba(6,5,12,.6), rgba(6,5,12,.15) 75%), linear-gradient(180deg, rgba(6,5,12,0), rgba(6,5,12,.55)) !important; }
/* CTA: on wide screens the cover-crop cut the mic head off -> anchor the frame higher */
.hm-cta-bg { object-position: 50% 30%; }
.hm-cta-photo { container-type: inline-size; }
/* very wide banner (big monitors): show the whole photo by height, centered, edges melt into the dark panel */
@container (min-width: 1300px) {
  .hm-cta-bg { left: 50%; width: auto; transform: translateX(-50%); object-fit: contain;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
}
@media (min-width: 1700px) { .hm-cta-photo { padding: 120px 28px !important; } }
/* schedule/radio cards: header photo keeps its proportions; on wide cards (big monitors) photo goes left, text right */
.hm-card { container: hmcard / inline-size; }
.hm-card .hm-card-img { height: auto; aspect-ratio: 16 / 7; }
@container hmcard (min-width: 760px) {
  .hm-card .hm-card-img { position: absolute; left: 0; top: 0; bottom: 0; width: 46%; height: 100%; margin: 0; aspect-ratio: auto;
    -webkit-mask-image: linear-gradient(90deg, #000 62%, transparent); mask-image: linear-gradient(90deg, #000 62%, transparent); }
  .hm-card > :not(.hm-card-img):not(.hm-radio-glow) { margin-left: calc(46% + 6px); }
  .hm-card > .hm-btn { margin-left: calc(46% + 6px) !important; }
  .hm-card { min-height: 360px; justify-content: center; }
  .hm-card > .hm-btn { margin-top: 18px; }
}

/* =====================================================================
   PROFILE v2 (13.11.2026): cover, identity, stats strip, panels
   ===================================================================== */
.cm-pf { padding-top: 24px; }
.cm-pf-head { position: relative; margin-bottom: 26px; border-radius: 30px; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  border: 1px solid var(--st-line); box-shadow: 0 40px 90px -45px rgba(var(--st-pink), .6); }
.cm-pf-head::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: linear-gradient(135deg, rgba(var(--st-pink), .6), rgba(255,255,255,.05) 35%, rgba(255,255,255,.03) 65%, rgba(var(--st-purple), .55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.cm-pf-cover { position: relative; height: 200px; overflow: hidden; }
.cm-pf-cover img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 40%; }
.cm-pf-cover::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,6,16,.1), rgba(8,6,16,.35) 55%, rgba(12,9,22,1)); }

.cm-pf-id { position: relative; z-index: 1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 26px; align-items: end;
  padding: 0 32px 24px; margin-top: -72px; }
.cm-pf-id .cm-ava.xl { width: 144px; height: 144px; font-size: 56px; border: 4px solid #0d0a18;
  box-shadow: 0 0 0 2px rgba(var(--st-pink), .7), 0 24px 50px -18px rgba(var(--st-pink), .9); }
.cm-pf-info { min-width: 0; padding-bottom: 4px; }
.cm-pf-info .cm-prof-nick { margin: 6px 0 6px; }
.cm-pf-info .cm-bio { max-width: 640px; }
.cm-pf-act { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; padding-bottom: 8px; }

.cm-pf-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 24px 24px; border-radius: 20px; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.08); }
.cm-pf-stats > div { display: flex; flex-direction: column; padding: 16px 20px; min-width: 0; }
.cm-pf-stats > div + div { border-left: 1px solid rgba(255,255,255,.08); }
.cm-pf-stats b { font: 800 28px/1 'Bricolage Grotesque', sans-serif; }
.cm-pf-stats b i { font-style: normal; font-size: 16px; color: rgba(255,255,255,.45); margin-left: 1px; }
.cm-pf-stats span { margin-top: 6px; font-size: 12.5px; color: rgba(255,255,255,.5); }
.cm-pf-stats > div:nth-child(2) b { color: #ffb648; }
.cm-pf-stats > div:nth-child(5) b { color: #c4b5fd; }

/* main panel: tabs sit under the panel header */
.cm-pf .cm-main #cm-ptabs { margin-bottom: 18px; }
.cm-pf .cm-myrev { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
.cm-pf .cm-myrev:hover { transform: translateX(3px); }
.cm-pf-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 20px !important; text-align: center; }
.cm-pf-empty b { font: 800 18px 'Bricolage Grotesque', sans-serif; color: #fff; }
.cm-pf-empty .cm-btn { margin-top: 8px; }

/* sidebar */
.cm-pf .cm-gauges { gap: 10px; }
.cm-pf .cm-gauge { padding: 10px 14px 10px 10px; background: rgba(255,255,255,.03); }
.cm-pf .cm-gauge svg { width: 64px; height: 64px; }
.cm-pf-note { margin-top: 12px; font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,.45); }
.cm-pf-fill { border-color: rgba(var(--st-pink), .35) !important;
  background: radial-gradient(100% 70% at 100% 0%, rgba(var(--st-pink), .12), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)) !important; }
.cm-pf-bar { height: 8px; border-radius: 8px; background: rgba(255,255,255,.07); overflow: hidden; margin-bottom: 14px; }
.cm-pf-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, rgb(var(--st-pink)), rgb(var(--st-purple)));
  box-shadow: 0 0 12px rgba(var(--st-pink), .7); }
.cm-pf-steps { display: flex; flex-direction: column; gap: 4px; }
.cm-pf-steps li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,.45); padding: 6px 4px; }
.cm-pf-steps li.ok { text-decoration: line-through; text-decoration-color: rgba(255,255,255,.25); }
.cm-pf-steps button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px 6px 4px; margin: -6px -8px -6px -4px; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: #fff; text-align: left; transition: background .2s; }
.cm-pf-steps button:hover { background: rgba(255,255,255,.06); }
.cm-pf-steps em { margin-left: auto; font-style: normal; color: #f472b6; }
.cm-pf-ck { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800;
  border: 1.5px solid rgba(255,255,255,.25); }
li.ok .cm-pf-ck { border: 0; color: #0d0a18; background: #4ade80; text-decoration: none; }
.cm-pf-best-card { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px;
  background: linear-gradient(120deg, rgba(245,197,24,.12), rgba(255,255,255,.02)); border: 1px solid rgba(245,197,24,.3); transition: transform .2s, border-color .2s; }
.cm-pf-best-card:hover { transform: translateY(-2px); border-color: rgba(245,197,24,.6); }
.cm-pf-best-card .cm-cover { width: 56px; height: 56px; border-radius: 12px; flex: none; font-size: 22px; }
.cm-pf-best-t { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.cm-pf-best-t b { font: 800 15px 'Bricolage Grotesque', sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-pf-best-t small { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 2px; }
.cm-pf-best-s { font: 800 26px/1 'Bricolage Grotesque', sans-serif; color: #f5c518; }
.cm-pf-best-s i { font-style: normal; font-size: 14px; opacity: .7; }

@media (max-width: 1000px) {
  .cm-pf-id { grid-template-columns: auto minmax(0, 1fr); }
  .cm-pf-act { grid-column: 1 / -1; justify-content: flex-start; padding: 0; }
  .cm-pf-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cm-pf-stats > div:nth-child(4) { border-left: 0; }
  .cm-pf-stats > div:nth-child(n+4) { border-top: 1px solid rgba(255,255,255,.08); }
}
@media (max-width: 640px) {
  .cm-pf-cover { height: 130px; }
  .cm-pf-id { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 0 18px 18px; margin-top: -56px; }
  .cm-pf-id .cm-ava.xl { width: 104px; height: 104px; font-size: 40px; }
  .cm-pf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 14px 14px; }
  .cm-pf-stats > div { padding: 12px 14px; }
  .cm-pf-stats > div:nth-child(n) { border-left: 0; border-top: 0; }
  .cm-pf-stats > div:nth-child(even) { border-left: 1px solid rgba(255,255,255,.08); }
  .cm-pf-stats > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.08); }
  .cm-pf-stats b { font-size: 22px; }
}
/* only the avatar overlaps the cover; text sits below it */
.cm-pf-cover { height: 210px; }
.cm-pf-id { margin-top: 0; padding-top: 18px; align-items: start; }
.cm-pf-id .cm-ava.xl { margin-top: -96px; }
.cm-pf-act { align-self: center; }
@media (max-width: 640px) { .cm-pf-id { padding-top: 0; } .cm-pf-id .cm-ava.xl { margin-top: -60px; } }
@media (max-width: 640px) { .cm-pf-stats > div:nth-child(5) { grid-column: 1 / -1; } }

/* profile rating: two mixer channel meters */
.cm-vus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cm-vu { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 14px; align-items: stretch; padding: 14px 14px 14px 12px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(var(--tone), .1), rgba(0,0,0,.3)); border: 1px solid rgba(var(--tone), .32); }
.cm-vu-bar { position: relative; height: 128px; border-radius: 7px; background: rgba(255,255,255,.05); overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  -webkit-mask: repeating-linear-gradient(0deg, #000 0 5px, transparent 5px 7px); mask: repeating-linear-gradient(0deg, #000 0 5px, transparent 5px 7px); }
.cm-vu-bar i { position: absolute; left: 0; right: 0; bottom: 0; height: var(--v);
  background: linear-gradient(0deg, rgb(var(--tone)) 0, rgb(var(--tone)) 55%, #f5c518 100%) bottom / 100% 128px no-repeat;
  filter: drop-shadow(0 0 6px rgba(var(--tone), .9)); animation: cmVu 1.1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes cmVu { from { height: 0; } }
.cm-vu-txt { display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }
.cm-vu-l { font: 600 10.5px 'JetBrains Mono', monospace; letter-spacing: .16em; text-transform: uppercase; color: rgb(var(--tone)); }
.cm-vu-txt b { margin-top: 4px; font: 800 44px/1 'Bricolage Grotesque', sans-serif; letter-spacing: -.03em; }
.cm-vu-txt small { margin-top: 6px; font-size: 12px; line-height: 1.35; color: rgba(255,255,255,.5); }
@media (prefers-reduced-motion: reduce) { .cm-vu-bar i { animation: none; } }

/* =====================================================================
   QUEUE + CHARTS v2 (13.11.2026): panels, sidebar, compact rows
   ===================================================================== */
html.lg #pg-queue .qx-wrap, html.lg #pg-charts .qx-wrap { max-width: none; }
.qx-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.qx-grid-rev { grid-template-columns: 340px minmax(0, 1fr); }
.qx-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 92px; min-width: 0; }
.qx-main { min-width: 0; }

.qx-panel { position: relative; isolation: isolate; padding: 22px 24px 24px; border-radius: 26px;
  background: radial-gradient(120% 80% at 0% 0%, rgba(var(--st-pink), .06), transparent 55%), linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--st-line); box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 40px 80px -40px rgba(0,0,0,.75); }
.qx-panel::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; z-index: -1;
  background: linear-gradient(135deg, rgba(var(--st-pink), .5), rgba(255,255,255,.05) 32%, rgba(255,255,255,.03) 68%, rgba(var(--st-purple), .45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.qx-panel.qx-sm { padding: 18px 18px 20px; border-radius: 22px; }
.qx-panel.qx-sm::before { opacity: .55; }

.qx-head { position: relative; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--st-line); }
.qx-head::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 60px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgb(var(--st-pink)), rgb(var(--st-purple))); }
.qx-ic { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, rgba(var(--st-pink), .35), rgba(var(--st-purple), .35)); border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 8px 22px -10px rgba(var(--st-pink), .9), inset 0 1px 0 rgba(255,255,255,.25); }
.qx-ic svg { width: 20px; height: 20px; }
.qx-sm .qx-ic { width: 32px; height: 32px; border-radius: 10px; }
.qx-sm .qx-ic svg { width: 16px; height: 16px; }
.qx-head-t { flex: 1; min-width: 0; }
.qx-head h3 { font: 800 clamp(19px, 1.7vw, 24px)/1.15 'Bricolage Grotesque', sans-serif; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.qx-sm .qx-head h3 { font-size: 17px; }
.qx-sm .qx-head { margin-bottom: 14px; padding-bottom: 12px; }
.qx-head p { margin-top: 3px; font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.45; }
.qx-count { font: 700 12.5px 'JetBrains Mono', monospace; padding: 3px 9px; border-radius: 999px; color: rgba(255,255,255,.65);
  background: rgba(255,255,255,.06); border: 1px solid var(--st-line); }
.qx-count:empty { display: none; }
.qx-link { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.6); transition: color .2s; }
.qx-link:hover { color: #f472b6; }
.qx-more { display: block; margin: 14px auto 0; padding: 10px 22px; border-radius: 14px; font-size: 13.5px; font-weight: 700;
  background: rgba(255,255,255,.05); border: 1px solid var(--st-line); transition: background .2s; }
.qx-more:hover { background: rgba(255,255,255,.1); }

/* ---- queue list: compact rows ---- */
#pg-queue .viewer-only[title^="Режим зрителя"] { display: none !important; }
#queue-list.space-y-2\.5 > * + * { margin-top: 6px !important; }
#queue-list .queue-item { padding: 8px 12px !important; border-radius: 16px !important; gap: 12px;
  background: rgba(255,255,255,.025) !important; border: 1px solid rgba(255,255,255,.06) !important; box-shadow: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; transition: background .2s, border-color .2s, transform .2s; }
#queue-list .queue-item:hover { background: rgba(255,255,255,.055) !important; border-color: rgba(var(--st-pink), .3) !important; transform: translateX(3px); }
#queue-list .queue-item.vip { border-color: rgba(245,197,24,.35) !important; background: linear-gradient(90deg, rgba(245,197,24,.08), rgba(255,255,255,.02)) !important; }
#queue-list .queue-item.now { border-color: rgba(var(--st-pink), .55) !important; background: linear-gradient(90deg, rgba(var(--st-pink), .14), rgba(255,255,255,.02)) !important; }
#queue-list .queue-item .q-ava { width: 38px; height: 38px; border-radius: 11px; font-size: 15px; }
#queue-list .queue-item .font-semibold { font-size: 14.5px; }
#queue-list.qx-fold > .queue-item:nth-child(n+13) { display: none; }
.q-up { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 9px; border-radius: 10px; font-size: 13px; font-weight: 700; color: #fce7f3;
  background: linear-gradient(90deg, rgba(236,72,153,.22), rgba(168,85,247,.22)); border: 1px solid rgba(236,72,153,.25); transition: background .2s; }
.q-up span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .25s; font-size: 12px; }
.queue-item:hover .q-up span, .q-up:focus-visible span { max-width: 60px; }
.q-up:hover { background: linear-gradient(90deg, rgba(236,72,153,.4), rgba(168,85,247,.4)); }

/* sidebar: now/next stacked, stats 3x2 */
#queue-hero .q-hero { padding: 16px; border-radius: 18px; }
#queue-hero .q-hero > div { flex-direction: column !important; align-items: stretch !important; gap: 14px !important; }
#queue-hero .q-hero > div > .w-px { display: none !important; }
#queue-hero .q-ava.lg { width: 46px; height: 46px; border-radius: 13px; font-size: 18px; }
#queue-hero .font-display.text-xl { font-size: 16px; }
#queue-stats .qstat { padding: 10px 6px 9px; border-radius: 14px; }
#queue-stats .qstat-ic { width: 24px; height: 24px; font-size: 12px; margin-bottom: 4px; }
#queue-stats .qstat-val { font-size: 24px; }
#queue-stats .qstat-lbl { font-size: 8.5px; letter-spacing: .12em; }
#queue-stats .qrun { grid-column: 1 / -1 !important; border-radius: 12px; }
.qx-cta { border-color: rgba(var(--st-pink), .35); background: radial-gradient(100% 80% at 100% 0%, rgba(var(--st-pink), .16), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); }
.qx-cta p { font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,.7); margin-bottom: 14px; }
.qx-btn { display: flex; justify-content: center; width: 100%; padding: 11px 14px; border-radius: 14px; font-weight: 700; font-size: 14px; }
.qx-btn + .qx-btn { margin-top: 8px; }

/* done */
.qx-done { margin-top: 28px; }
.qx-done-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.qx-done-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 16px; min-width: 0;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); transition: border-color .2s; }
.qx-done-item:hover { border-color: rgba(var(--st-pink), .3); }
.qx-done-item .q-ava { width: 40px; height: 40px; border-radius: 11px; }
.qx-done-item .font-display.text-2xl { font-size: 20px; }
.qx-done-grid.qx-fold > :nth-child(n+11) { display: none; }

/* ---- charts ---- */
.qx-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 24px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); border: 1px solid var(--st-line); }
.qx-stats:empty { display: none; }
.qx-stats > div { padding: 18px 22px; display: flex; flex-direction: column; min-width: 0; }
.qx-stats > div + div { border-left: 1px solid var(--st-line); }
.qx-stats b { font: 800 32px/1 'Bricolage Grotesque', sans-serif; color: var(--c); letter-spacing: -.02em; }
.qx-stats b i { font-style: normal; font-size: 17px; opacity: .6; }
.qx-stats span { margin-top: 6px; font-size: 12.5px; color: rgba(255,255,255,.5); }
.qx-top { margin-bottom: 24px; }
#top-scores > div { background: rgba(255,255,255,.03) !important; transition: transform .25s, border-color .25s; }
#top-scores > div:hover { transform: translateY(-4px); }
.qx-auth { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 12px; transition: background .2s; }
.qx-auth:hover { background: rgba(255,255,255,.05); }
.qx-auth-n { width: 18px; flex: none; text-align: center; font: 800 16px 'Bricolage Grotesque', sans-serif; }
.qx-auth .q-ava.sm { width: 34px; height: 34px; border-radius: 50%; font-size: 13px; flex: none; }
.qx-auth-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.qx-auth-t b { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qx-auth-t small { font-size: 11.5px; color: rgba(255,255,255,.45); }
.qx-auth-s { font: 800 18px 'Bricolage Grotesque', sans-serif; }
.qx-auth-s i { font-style: normal; font-size: 11px; opacity: .6; }
.qx-where a { padding: 10px !important; }
.qx-where a > div:first-child { width: 36px !important; height: 36px !important; font-size: 16px !important; border-radius: 10px !important; }
#charts-list > div { border-radius: 16px !important; }

@media (max-width: 1100px) {
  .qx-grid, .qx-grid-rev { grid-template-columns: minmax(0, 1fr); }
  .qx-side { position: static; }
  .qx-grid-rev .qx-side { order: 2; }
}
@media (max-width: 640px) {
  .qx-panel { padding: 16px 14px 18px; border-radius: 20px; }
  .qx-done-grid { grid-template-columns: minmax(0, 1fr); }
  .qx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qx-stats > div:nth-child(3) { border-left: 0; }
  .qx-stats > div:nth-child(n+3) { border-top: 1px solid var(--st-line); }
  .qx-stats b { font-size: 26px; }
  #queue-list .queue-item { gap: 9px; }
  .q-up span { display: none; }
}

/* =====================================================================
   HISTORY v2 (13.11.2026): archive by stream day + stats sidebar
   ===================================================================== */
html.lg #pg-history .qx-wrap { max-width: none; }
body.host .hx-grid { grid-template-columns: minmax(0, 1fr); }
.hx-tools { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; padding: 12px; border-radius: 18px;
  background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.07); }
.hx-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.hx-search svg { width: 18px; height: 18px; color: rgba(255,255,255,.45); flex: none; }
.hx-search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; color: #fff; font-size: 14.5px; }
.hx-search:focus-within { border-color: rgba(var(--st-pink), .5); }
.hx-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.hx-row .cm-tabs { margin: 0; }
.hx-loading { padding: 40px 0; text-align: center; color: rgba(255,255,255,.4); font-size: 14px; }

#history-list.space-y-3 > * + * { margin-top: 0 !important; }
.hx-day + .hx-day { margin-top: 22px; }
.hx-day-h { position: sticky; top: 76px; z-index: 2; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin-bottom: 8px; padding: 8px 12px; border-radius: 12px; background: rgba(14,10,24,.82); border: 1px solid rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.hx-day-h b { font: 800 15px 'Bricolage Grotesque', sans-serif; }
.hx-day-h span { font: 600 11.5px 'JetBrains Mono', monospace; color: rgba(255,255,255,.45); }
.hx-rows { display: flex; flex-direction: column; gap: 4px; }
.hx-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 14px; border: 1px solid transparent; transition: background .2s, border-color .2s; }
.hx-row:hover { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.07); }
.hx-time { width: 40px; flex: none; text-align: center; font: 600 11.5px 'JetBrains Mono', monospace; color: rgba(255,255,255,.35); }
.hx-row .hm-ava { width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center; font-weight: 800; }
.hx-main { flex: 1; min-width: 0; }
.hx-title { font-weight: 700; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-sub { font-size: 12px; color: rgba(255,255,255,.45); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-verdict { flex: none; font-size: 12px; font-weight: 700; color: rgba(255,255,255,.65); padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); }
.hx-noplay { width: 34px; flex: none; }
.hx-row .hm-play { flex: none; }
.hx-score { width: 64px; flex: none; text-align: right; }
.hx-score b { font: 800 17px/1 'Bricolage Grotesque', sans-serif; color: var(--c); }
.hx-score b i { font-style: normal; font-size: 11px; opacity: .6; }
.hx-bar { display: block; height: 3px; margin-top: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.hx-bar i { display: block; height: 100%; width: var(--p); background: var(--c); border-radius: inherit; box-shadow: 0 0 8px var(--c); }

.hx-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hx-stats > div { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); display: flex; flex-direction: column; }
.hx-stats b { font: 800 26px/1 'Bricolage Grotesque', sans-serif; color: var(--c); }
.hx-stats b i { font-style: normal; font-size: 14px; opacity: .6; }
.hx-stats span { margin-top: 5px; font-size: 12px; color: rgba(255,255,255,.5); }
.hx-vrow { display: grid; grid-template-columns: 76px minmax(0, 1fr) 34px; align-items: center; gap: 10px; padding: 5px 0; font-size: 13px; }
.hx-vrow span { color: rgba(255,255,255,.75); font-weight: 600; }
.hx-vrow i { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--c), transparent) 0 0 / var(--w) 100% no-repeat, rgba(255,255,255,.06); }
.hx-vrow b { text-align: right; font: 700 13px 'JetBrains Mono', monospace; color: var(--c); }
.hx-rec { display: flex; gap: 12px; align-items: flex-start; padding: 10px 4px; }
.hx-rec + .hx-rec { border-top: 1px solid rgba(255,255,255,.06); }
.hx-rec-ic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.05); font-size: 16px; }
.hx-rec div { min-width: 0; display: flex; flex-direction: column; }
.hx-rec small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.hx-rec b { font-size: 14.5px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-rec em { font-style: normal; font-size: 12px; color: rgba(255,255,255,.5); }

@media (max-width: 640px) {
  .hx-time, .hx-verdict { display: none; }
  .hx-row { gap: 10px; padding: 7px 6px; }
  .hx-day-h { top: 60px; }
  .hx-score { width: 52px; }
}

/* =====================================================================
   MARKET (13.11.2026): beat storefront
   ===================================================================== */
html.lg #pg-market .qx-wrap { max-width: none; }
/* menu card: emerald, so it doesn't merge with violet Community / amber Radio / red Live */
html.lg .sb-feat-market { --f: 16, 185, 129; }
html.lg .sb-feat-market .sb-feat-ic { background: linear-gradient(135deg, #10b981, #06b6d4); }
html.lg .sb-feat-market .sb-new { color: #6ee7b7; border-color: rgba(110,231,183,.5); }
/* hover: the bag hops, its handle lifts as if someone picks it up */
html.lg .sb-feat:hover [data-i="market"] svg { animation: icBagHop .7s cubic-bezier(.3, 1.5, .5, 1); transform-origin: 50% 90%; }
html.lg .sb-feat:hover [data-i="market"] path:nth-child(3) { animation: icBagHandle .7s ease-in-out; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes icBagHop { 0% { transform: none; } 30% { transform: translateY(-3px) rotate(-6deg); } 60% { transform: translateY(0) rotate(4deg) scaleY(.94); } 100% { transform: none; } }
@keyframes icBagHandle { 0%, 100% { transform: none; } 40% { transform: translateY(-2.5px) scaleY(1.25); } }
@media (prefers-reduced-motion: reduce) { html.lg .sb-feat:hover [data-i="market"] svg, html.lg .sb-feat:hover [data-i="market"] path { animation: none; } }
.mk-genres { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.mk-genres::-webkit-scrollbar { display: none; }
.mk-genres button { flex: none; }
.mk-select { height: 38px; padding: 0 12px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: #fff; font-size: 13.5px; font-weight: 600; }
.mk-select option { background: #140f22; }

.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.mk-card { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; cursor: pointer;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); transition: transform .25s, border-color .25s, box-shadow .25s; }
.mk-card:hover { transform: translateY(-4px); border-color: rgba(var(--st-pink), .4); box-shadow: 0 22px 44px -24px rgba(var(--st-pink), .7); }
.mk-cover { position: relative; aspect-ratio: 1; background-size: cover !important; background-position: center !important; display: grid; place-items: center; }
.mk-cover > span { font: 800 64px 'Bricolage Grotesque', sans-serif; color: rgba(255,255,255,.85); }
.mk-play { position: absolute; right: 10px; bottom: 10px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; color: #120c1f;
  background: #f5c518; box-shadow: 0 10px 24px -8px rgba(245,197,24,.9); transform: translateY(6px); opacity: 0; transition: transform .25s, opacity .25s; }
.mk-card:hover .mk-play, .mk-play.on, .mk-cover.sm .mk-play, .mk-cover.xl .mk-play { transform: none; opacity: 1; }
@media (hover: none) { .mk-play { transform: none; opacity: 1; } }
.mk-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; min-width: 0; }
.mk-title { font: 800 15.5px 'Bricolage Grotesque', sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-by { font-size: 12.5px; color: rgba(255,255,255,.5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.mk-chips span { font: 600 10.5px 'JetBrains Mono', monospace; padding: 3px 7px; border-radius: 7px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.7); }
.mk-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.mk-price { font: 800 15px 'Bricolage Grotesque', sans-serif; color: #f5c518; }
.mk-plays { font: 600 11px 'JetBrains Mono', monospace; color: rgba(255,255,255,.4); }
.mk-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 48px 20px; text-align: center; color: rgba(255,255,255,.5); }
.mk-empty b { font: 800 19px 'Bricolage Grotesque', sans-serif; color: #fff; }

.mk-steps { list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 12px; }
.mk-steps li { counter-increment: s; position: relative; padding-left: 36px; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.6); }
.mk-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font: 800 12px 'Bricolage Grotesque', sans-serif; color: #fff; background: linear-gradient(135deg, rgb(var(--st-pink)), rgb(var(--st-purple))); }
.mk-steps b { display: block; color: #fff; font-size: 14px; }
.mk-note { font-size: 12.5px; line-height: 1.55; color: rgba(255,255,255,.5); }
.qx-cta p b { color: #f5c518; }

/* my beats / moderation */
.mk-mine, .mk-mod { margin-bottom: 24px; }
.mk-mod { border-color: rgba(245,197,24,.35); }
.mk-mine-list { display: flex; flex-direction: column; gap: 8px; }
.mk-mine-row { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); flex-wrap: wrap; }
.mk-cover.sm { width: 56px; height: 56px; aspect-ratio: auto; border-radius: 12px; flex: none; }
.mk-cover.sm > span { font-size: 22px; }
.mk-cover.sm .mk-play { width: 26px; height: 26px; right: 4px; bottom: 4px; font-size: 10px; }
.mk-mine-t { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 4px; }
.mk-mine-t b { font-size: 14.5px; }
.mk-mine-t small { font-size: 12px; color: rgba(255,255,255,.55); }
.mk-mine-t small a { color: #f472b6; }
.mk-mine-a { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mk-st { align-self: flex-start; font: 700 11px 'JetBrains Mono', monospace; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; border: 1px solid; }
.mk-st.wait { color: #fbbf24; border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.08); }
.mk-st.mod { color: #22d3ee; border-color: rgba(34,211,238,.35); background: rgba(34,211,238,.08); }
.mk-st.ok { color: #4ade80; border-color: rgba(74,222,128,.35); background: rgba(74,222,128,.08); }
.mk-st.warn { color: #fb923c; border-color: rgba(251,146,60,.4); background: rgba(251,146,60,.08); }
.mk-st.bad { color: #fb7185; border-color: rgba(251,113,133,.4); background: rgba(251,113,133,.08); }

/* beat modal */
.mk-dialog { max-width: 860px !important; }
.mk-detail { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 26px; align-items: start; }
.mk-cover.xl { border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(var(--st-pink), .8); }
.mk-cover.xl .mk-play { width: 58px; height: 58px; font-size: 19px; }
.mk-detail-t { font: 800 clamp(24px, 3vw, 34px)/1.1 'Bricolage Grotesque', sans-serif; margin: 6px 0 4px; overflow-wrap: anywhere; }
.mk-detail-by { font-weight: 700; color: #f472b6; font-size: 14.5px; }
.mk-descr { margin-top: 12px; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.75); white-space: pre-line; }
.mk-lics { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.mk-lic { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.mk-lic b { display: block; font-size: 14.5px; }
.mk-lic small { font-size: 12px; color: rgba(255,255,255,.5); }
.mk-lic span { font: 800 20px 'Bricolage Grotesque', sans-serif; color: #f5c518; white-space: nowrap; }
.mk-buy { display: flex; justify-content: center; padding: 14px; border-radius: 16px; font-weight: 800; font-size: 15px; margin-bottom: 10px; }

@media (max-width: 760px) {
  .mk-detail { grid-template-columns: minmax(0, 1fr); }
  .mk-cover.xl { max-width: 260px; }
}
@media (max-width: 640px) {
  .mk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mk-body { padding: 10px 10px 12px; }
  .mk-title { font-size: 14px; }
}
/* market form */
#mk-f select { height: 46px; padding: 0 14px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: #fff; font-size: 14.5px; font-weight: 500; }
#mk-f select option { background: #140f22; }
#mk-f input[type=file] { padding: 9px 10px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px dashed rgba(255,255,255,.18); font-size: 13px; color: rgba(255,255,255,.7); cursor: pointer; }
#mk-f input[type=file]::file-selector-button { margin-right: 10px; padding: 6px 12px; border: 0; border-radius: 9px; background: rgba(var(--st-pink), .25); color: #fff; font-weight: 700; cursor: pointer; }
#mk-f .cm-grid2 { align-items: end; }

/* market: beat with 4-step progress (Market «Мои биты» + personal cabinet) */
.mk-step-row { display: flex; gap: 14px; padding: 12px; border-radius: 18px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); }
.mk-step-row.mk-rejected { border-color: rgba(251,146,60,.35); }
.mk-step-row.mk-banned { border-color: rgba(251,113,133,.3); opacity: .85; }
.mk-step-row.mk-live { border-color: rgba(74,222,128,.25); }
.mk-step-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.mk-step-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mk-step-top > b { font: 800 15.5px 'Bricolage Grotesque', sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mk-steps-bar { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; }
.mk-steps-bar li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.mk-steps-bar li + li::before { content: ''; position: absolute; top: 12px; right: 50%; width: 100%; height: 2px; background: rgba(255,255,255,.1); z-index: 0; }
.mk-steps-bar li.done + li::before, .mk-steps-bar li.done + li.done::before { background: linear-gradient(90deg, #4ade80, rgba(74,222,128,.6)); }
.mk-steps-bar i { position: relative; z-index: 1; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 800 12px 'Bricolage Grotesque', sans-serif; font-style: normal;
  color: rgba(255,255,255,.5); background: #15101f; border: 2px solid rgba(255,255,255,.15); }
.mk-steps-bar span { font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.45); }
.mk-steps-bar li.done i { color: #0b1a10; background: #4ade80; border-color: #4ade80; }
.mk-steps-bar li.done span { color: rgba(255,255,255,.75); }
.mk-steps-bar li.cur i { color: #fff; border-color: #22d3ee; background: rgba(34,211,238,.18); box-shadow: 0 0 0 4px rgba(34,211,238,.12); animation: mkPulse 1.8s ease-in-out infinite; }
.mk-steps-bar li.cur span { color: #67e8f9; }
.mk-steps-bar li.warn i { color: #1a0e05; background: #fb923c; border-color: #fb923c; }
.mk-steps-bar li.warn span { color: #fdba74; }
.mk-steps-bar li.bad i { color: #fff; background: #e11d48; border-color: #e11d48; }
.mk-steps-bar li.bad span { color: #fda4af; }
@keyframes mkPulse { 50% { box-shadow: 0 0 0 7px rgba(34,211,238,.04); } }
@media (prefers-reduced-motion: reduce) { .mk-steps-bar li.cur i { animation: none; } }
.mk-step-note { font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,.6); }
.mk-rejected .mk-step-note { color: #fdba74; }
.mk-banned .mk-step-note { color: #fda4af; }
/* in the cabinet */
.mk-pf { margin-bottom: 24px; }
.mk-pf-empty { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 4px 2px; }
.mk-pf-empty b { font: 800 16px 'Bricolage Grotesque', sans-serif; }
.mk-pf-empty span { flex: 1; min-width: 220px; font-size: 13.5px; color: rgba(255,255,255,.6); }
@media (max-width: 640px) {
  .mk-step-row { flex-direction: column; }
  .mk-steps-bar span { font-size: 10.5px; }
}

/* cabinet: Telegram notifications box */
.cm-v3 .cm-side .cm-tg { border-color: rgba(34,158,217,.35); background: radial-gradient(100% 70% at 100% 0%, rgba(34,158,217,.14), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); }
.cm-tg .cm-box-ic { background: linear-gradient(135deg, #229ed9, #0ea5e9) !important; box-shadow: 0 8px 22px -10px rgba(34,158,217,.9), inset 0 1px 0 rgba(255,255,255,.3) !important; }
.cm-tg-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 13px; color: rgba(255,255,255,.7); }
.cm-tg-btn { width: 100%; justify-content: center; background: linear-gradient(135deg, #229ed9, #0ea5e9) !important; }
.cm-tg-st { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.75); margin-bottom: 12px; line-height: 1.45; }
.cm-tg-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.15); }
.cm-switch { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; cursor: pointer; margin-bottom: 10px; }
.cm-switch input { position: absolute; opacity: 0; pointer-events: none; }
.cm-switch i { position: relative; width: 40px; height: 22px; flex: none; border-radius: 999px; background: rgba(255,255,255,.15); transition: background .2s; }
.cm-switch i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.cm-switch input:checked + i { background: #229ed9; }
.cm-switch input:checked + i::after { transform: translateX(18px); }
.cm-switch input:focus-visible + i { outline: 2px solid #67e8f9; outline-offset: 2px; }
/* «Бит в эфире» */
.mk-promo { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 9px 12px; border-radius: 12px;
  background: linear-gradient(90deg, rgba(245,197,24,.08), rgba(255,255,255,.02)); border: 1px dashed rgba(245,197,24,.3); font-size: 12.5px; color: rgba(255,255,255,.7); }
.mk-promo b { color: #fcd34d; }
.mk-promo.on { border-style: solid; }
.mk-promo > span { flex: 1; min-width: 200px; }
.mk-promo-box { border-color: rgba(245,197,24,.3); }
.mk-promo-box .qx-ic { background: linear-gradient(135deg, rgba(245,197,24,.55), rgba(236,72,153,.35)) !important; }
.mk-promo-box .mk-note b { color: #f5c518; }
.mk-mod-h { margin: 18px 0 10px; font: 800 15px 'Bricolage Grotesque', sans-serif; color: #fcd34d; }
/* Market switch: hidden unless market.js turned it on (html.mk-on) */
html:not(.mk-on) .mk-feature { display: none !important; }
