:root {
  --bg: #070b17;
  --bg-soft: rgba(14, 20, 36, 0.8);
  --surface: rgba(12, 18, 32, 0.78);
  --surface-strong: rgba(16, 24, 42, 0.94);
  --surface-light: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f5f7fb;
  --muted: rgba(232, 239, 255, 0.72);
  --accent: #67a4ff;
  --accent-strong: #7cf1d3;
  --accent-glow: rgba(103, 164, 255, 0.24);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  --radius: 28px;
  --radius-sm: 18px;
  --container: min(1180px, calc(100vw - 32px));
  --header-h: 88px;
  --transition: 220ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, rgba(86, 128, 255, 0.22), transparent 32%),
              radial-gradient(circle at bottom right, rgba(124, 241, 211, 0.12), transparent 24%),
              var(--bg);
  color: var(--text);
  min-height: 100vh;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  background: #fff;
  color: #000;
  padding: 10px 14px;
  border-radius: 999px;
  z-index: 60;
}
.skip-link:focus { top: 16px; }

.page-shell {
  position: relative;
  overflow: clip;
}
.bg-orb {
  position: fixed;
  inset: auto;
  width: 38rem;
  aspect-ratio: 1;
  filter: blur(70px);
  opacity: 0.45;
  pointer-events: none;
  z-index: -2;
}
.bg-orb-one {
  top: -10rem;
  left: -12rem;
  background: rgba(103, 164, 255, 0.25);
}
.bg-orb-two {
  right: -8rem;
  top: 18rem;
  background: rgba(124, 241, 211, 0.18);
}
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black, transparent 82%);
  opacity: 0.33;
  pointer-events: none;
  z-index: -3;
}
.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px 0;
  backdrop-filter:none;
  background: linear-gradient(180deg, rgba(5, 7, 14, 0.82), rgba(5, 7, 14, 0.32));
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: rgba(10, 15, 28, 0.72);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
}
.brand-copy {
  display: grid;
  gap: 2px;
}
.brand-copy strong {
  font-size: 0.98rem;
  letter-spacing: 0.18em;
}
.brand-copy small {
  color: var(--muted);
  font-size: 0.82rem;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
  background: rgba(255,255,255,0.08);
  transform: translateY(-1px);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.lang-pill {
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.83rem;
  letter-spacing: 0.08em;
}
.lang-pill.is-active {
  color: #08101f;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: transparent;
}
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  position: relative;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.menu-toggle span {
  position: absolute;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 99px;
  transition: transform var(--transition), opacity var(--transition), top var(--transition);
}
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 29px; }
.menu-toggle.is-open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

.hero-section {
  padding: 32px 0 28px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: stretch;
}
.hero-copy,
.hero-visual,
.featured-card,
.shop-card,
.track-card,
.news-card,
.video-card,
.streaming-panel,
.utility-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 25, 44, 0.86), rgba(9, 13, 24, 0.9));
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.hero-copy {
  padding: clamp(28px, 4vw, 42px);
  display: grid;
  align-content: center;
  gap: 22px;
  min-height: 560px;
}
.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--accent-strong);
  border: 1px solid rgba(124, 241, 211, 0.18);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
}
.hero-copy h1,
.section-head h2,
.utility-card h1 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.hero-copy h1 {
  font-size: clamp(2.7rem, 7vw, 5.35rem);
  max-width: 11ch;
}
.hero-copy p,
.section-head p,
.rich-text p,
.news-copy p,
.utility-card p,
.shop-meta,
.featured-copy p,
.track-body p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}
.hero-actions,
.cookie-actions,
.utility-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #08101f;
  font-weight: 800;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  box-shadow: 0 14px 34px rgba(103, 164, 255, 0.25);
}
.button:hover { transform: translateY(-2px); }
.button-secondary {
  color: var(--text);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  box-shadow: none;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.hero-stat {
  padding: 16px;
  border-radius: 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
.hero-stat strong {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.hero-stat span { color: var(--muted); font-size: 0.9rem; }
.hero-visual {
  position: relative;
  min-height: 560px;
  padding: 22px;
  display: grid;
  gap: 18px;
}
.visual-main {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.visual-main img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(103, 164, 255, 0.18), rgba(124, 241, 211, 0.12));
}
.visual-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.stack-card {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}
.stack-card img {
  aspect-ratio: 1.2 / 1;
  object-fit: cover;
  width: 100%;
}
.stack-card span {
  display: block;
  padding: 12px 14px 14px;
  font-weight: 700;
}

.section-block { padding: 38px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px 36px;
  align-items: end;
  margin-bottom: 22px;
}
.section-head.is-compact {
  margin-bottom: 24px;
}
.section-head h2 { font-size: clamp(2rem, 5vw, 3.3rem); }
.section-head > div { max-width: 520px; }
.section-head > p { max-width: 520px; }
.featured-grid,
.shop-grid,
.news-grid,
.video-grid,
.stream-links,
.content-grid {
  display: grid;
  gap: 18px;
}
.featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.featured-card {
  overflow: hidden;
  display: grid;
}
.featured-media img {
  width: 100%;
  aspect-ratio: 1.08 / 1;
  object-fit: cover;
  background: rgba(255,255,255,0.05);
}
.featured-copy { padding: 20px; display: grid; gap: 10px; }
.featured-copy h3,
.shop-copy h3,
.track-body h3,
.bio-highlight h3 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.pill {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 700;
}
.shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shop-card {
  padding: 18px;
  display: grid;
  gap: 16px;
}
.shop-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 320px;
  background: linear-gradient(135deg, rgba(103, 164, 255, 0.14), rgba(124, 241, 211, 0.08));
  border: 1px solid rgba(255,255,255,0.08);
}
.shop-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: opacity 260ms ease, transform 260ms ease;
}
.shop-image.is-back { opacity: 0; transform: scale(1.04); }
.shop-card:hover .shop-image.is-back,
.shop-card.is-flipped .shop-image.is-back { opacity: 1; transform: scale(1); }
.shop-card:hover .shop-image.is-front,
.shop-card.is-flipped .shop-image.is-front { opacity: 0; transform: scale(0.98); }
.shop-copy { display: grid; gap: 14px; }
.shop-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}
.shop-line strong { font-size: 1.1rem; }
.color-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.color-dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.34);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.16);
}
.color-dot.is-selected {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}
.music-toolbar {
  margin-bottom: 18px;
}
.search-box {
  width: min(420px, 100%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
}
.search-box svg {
  width: 18px;
  height: 18px;
  fill: var(--muted);
  flex: 0 0 auto;
}
.search-box input {
  background: transparent;
  border: none;
  color: var(--text);
  width: 100%;
  outline: none;
}
.track-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.track-card {
  padding: 16px;
  display: grid;
  gap: 16px;
}
.track-cover {
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
}
.track-cover img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.track-body { display: grid; gap: 12px; }
.player {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.player-button {
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #08101f;
  font-size: 1.25rem;
  font-weight: 900;
}
.player-meta { display: grid; gap: 8px; }
.player-range {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
}
.player-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) var(--progress, 0%), rgba(255,255,255,0.14) var(--progress, 0%));
}
.player-range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) var(--progress, 0%), rgba(255,255,255,0.14) var(--progress, 0%));
}
.player-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -5px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.22);
}
.player-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: none;
  background: #fff;
}
.player-times {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.84rem;
}
.empty-state {
  margin: 22px 0 0;
  color: var(--muted);
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px dashed var(--line-strong);
}
.content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.content-card,
.news-card {
  overflow: hidden;
  display: grid;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 25, 44, 0.86), rgba(9, 13, 24, 0.9));
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.content-card > div {
  padding: 22px;
  display: grid;
  gap: 12px;
}
.content-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: rgba(255,255,255,0.05);
}
.news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.news-card {
  overflow: hidden;
  display: grid;
}
.news-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: rgba(255,255,255,0.05);
}
.news-copy {
  display: grid;
  gap: 12px;
  padding: 20px;
}
.news-copy time {
  color: var(--accent-strong);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.news-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}
.biography-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.96fr);
  gap: 18px;
}
.bio-copy {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 25, 44, 0.86), rgba(9, 13, 24, 0.9));
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
}
.bio-media {
  display: grid;
  align-content: start;
  gap: 18px;
}
.bio-detail-grid {
  margin-top: 18px;
}
.bio-highlight {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}
.bio-highlight span {
  color: var(--accent-strong);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.rich-text {
  display: grid;
  gap: 14px;
}
.video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.video-card {
  overflow: hidden;
  padding: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.video-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(0,0,0,0.34);
}
.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
  border-radius: 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.gallery-card {
  padding: 0;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(18, 25, 44, 0.86), rgba(9, 13, 24, 0.9));
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}
.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.38);
  border-color: rgba(124,241,211,0.28);
}
.gallery-card img,
.gallery-card video {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 23px;
  display: block;
  background: #000;
  transition: transform 0.35s ease;
}
.gallery-card:hover img,
.gallery-card:hover video {
  transform: scale(1.04);
}
.gallery-card span {
  padding: 16px 16px 18px;
  color: var(--muted);
  line-height: 1.55;
}
.streaming-panel {
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: 22px;
}
.stream-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.stream-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
}
.stream-link img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.site-footer {
  padding: 0 0 38px;
}
.footer-inner {
  border: 1px solid var(--line);
  background: rgba(9, 13, 24, 0.9);
  box-shadow: var(--shadow);
  border-radius: 28px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}
.footer-inner p { margin: 6px 0 0; color: var(--muted); }
.footer-meta {
  display: grid;
  gap: 6px;
  justify-items: end;
}
.footer-meta a { color: var(--muted); }

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(980px, calc(100vw - 24px));
  padding: 18px 20px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(9, 13, 24, 0.96);
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  z-index: 80;
}
.cookie-banner p { margin: 0; color: var(--muted); max-width: 60ch; }

.cookie-banner[hidden] { display: none; }


.utility-page .site-header {
  position: static;
  padding-top: 24px;
}
.utility-main {
  width: min(920px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 40px 0 56px;
}
.utility-card {
  padding: clamp(24px, 4vw, 38px);
}
.legal-list {
  display: grid;
  gap: 12px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.6;
}
.error-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 0;
}
.error-card {
  text-align: center;
  width: min(700px, calc(100vw - 24px));
  justify-items: center;
}
.error-logo {
  width: min(220px, 38vw);
  margin-bottom: 10px;
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.media-fallback {
  background: linear-gradient(135deg, rgba(103, 164, 255, 0.18), rgba(124, 241, 211, 0.14));
}

@media (max-width: 1120px) {
  .featured-grid,
  .track-grid,
  .shop-grid,
  .biography-grid,
  .hero-grid,
  .streaming-panel,
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-grid,
  .biography-grid,
  .streaming-panel {
    grid-template-columns: 1fr;
  }
  .hero-copy,
  .hero-visual { min-height: auto; }
  .hero-copy h1 { max-width: 14ch; }
}

@media (max-width: 920px) {
  .site-nav {
    position: fixed;
    inset: calc(var(--header-h) + 12px) 16px auto;
    padding: 14px;
    border-radius: 28px;
    border: 1px solid var(--line);
    background: rgba(8, 11, 20, 0.98);
    box-shadow: var(--shadow);
    display: grid;
    gap: 6px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity var(--transition), transform var(--transition);
  }
  body.menu-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .site-nav a { padding: 14px 16px; }
  .menu-toggle { display: inline-flex; }
  .section-head {
    flex-direction: column;
    align-items: start;
  }
  .featured-grid,
  .shop-grid,
  .track-grid,
  .news-grid,
  .video-grid,
  .stream-links,
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cookie-banner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-meta { justify-items: start; }
}

@media (max-width: 640px) {
  :root { --container: calc(100vw - 20px); }
  .header-inner {
    padding: 12px 14px;
    border-radius: 26px;
  }
  .brand-copy small { display: none; }
  .featured-grid,
  .shop-grid,
  .track-grid,
  .news-grid,
  .video-grid,
  .stream-links,
  .content-grid,
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .hero-copy h1 { font-size: clamp(2.35rem, 12vw, 3.5rem); }
  .hero-stats { gap: 10px; }
  .visual-stack { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .cookie-banner {
    left: 10px;
    right: 10px;
    width: auto;
    transform: none;
    bottom: 10px;
    border-radius: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms ;
    animation-iteration-count: 1 ;
    transition-duration: 0.01ms ;
    scroll-behavior: auto ;
  }
}


/* Homepage dynamic account + users section */
.header-actions{display:flex;align-items:center;gap:12px}
.header-icon-btn{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:999px;border:1px solid var(--line);background:rgba(255,255,255,.04);color:var(--text);position:relative;transition:background var(--transition),transform var(--transition),border-color var(--transition)}
.header-icon-btn:hover{background:rgba(255,255,255,.08);transform:translateY(-1px);border-color:var(--line-strong)}
.header-icon-btn svg{width:20px;height:20px;fill:currentColor}
.icon-badge{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;padding:0 6px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--accent),var(--accent-strong));color:#08101f;font-size:.72rem;font-weight:800}
.home-users-section .section-head{align-items:flex-end}
.home-users-search{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.home-users-search input{min-width:min(360px,100%);flex:1;padding:14px 16px;border-radius:999px;border:1px solid var(--line);background:rgba(255,255,255,.05);color:var(--text);outline:none}
.home-users-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.home-user-card{display:grid;grid-template-columns:84px minmax(0,1fr);gap:16px;padding:18px;border:1px solid var(--line);background:linear-gradient(180deg, rgba(18, 25, 44, 0.86), rgba(9, 13, 24, 0.9));box-shadow:var(--shadow);border-radius:var(--radius)}
.home-user-card img{width:84px;height:84px;border-radius:22px;object-fit:cover;background:rgba(255,255,255,.05)}
.home-user-card h3{margin:0 0 6px;font-size:1.12rem;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.home-user-card p{margin:0;color:var(--muted);line-height:1.5}
.home-user-meta{display:grid;gap:10px}
.home-user-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:4px}
.home-user-actions .button,.home-user-actions .button-secondary{min-height:42px;padding:10px 14px}
.home-user-badges{display:inline-flex;gap:8px;flex-wrap:wrap}
.home-status-badge{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:999px;font-size:.72rem;font-weight:800;border:1px solid rgba(255,255,255,.1)}
.home-status-badge.verified{background:rgba(103,164,255,.16);color:#9bc2ff}
.home-status-badge.premium{background:rgba(124,241,211,.14);color:var(--accent-strong)}
.home-users-empty{padding:18px;border:1px dashed var(--line-strong);border-radius:22px;color:var(--muted)}
@media (max-width: 920px){.home-users-grid{grid-template-columns:1fr}.home-users-search input{min-width:100%}}


.home-track-card.is-locked .track-cover::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(4,7,14,.06),rgba(4,7,14,.42));}
.track-cover{position:relative}
.home-track-lock{position:absolute;top:14px;right:14px;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:999px;background:rgba(8,12,22,.82);border:1px solid rgba(255,255,255,.12);font-size:1.1rem;z-index:2}
.home-track-pill{margin-bottom:6px}
.home-track-locked{display:grid;gap:12px;padding:14px 0 0}.home-track-locked p{margin:0;color:var(--muted)}
.home-premium-panel{grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr)}
.home-premium-panel h2{margin:12px 0 12px;font-size:clamp(2rem,4vw,3rem);line-height:1.05;letter-spacing:-.04em}
.home-premium-actions{display:grid;gap:18px;align-content:center}
.home-premium-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.home-premium-facts>div{padding:18px;border-radius:22px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);display:grid;gap:8px}.home-premium-facts span{color:var(--muted);font-size:.84rem}.home-premium-status{margin-top:14px;padding:14px 16px;border-radius:18px;background:rgba(124,241,211,.10);border:1px solid rgba(124,241,211,.24);color:var(--accent-strong);font-weight:700}
@media (max-width:920px){.home-premium-panel,.home-premium-facts{grid-template-columns:1fr}}

.gallery-card{position:relative;overflow:hidden}
.gallery-caption{position:absolute;left:12px;right:12px;bottom:12px;padding:10px 12px;border-radius:14px;background:rgba(6,11,22,.72);backdrop-filter:none;color:var(--text-primary,#fff);font-size:13px}

.header-icon-btn {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 10px 30px rgba(0,0,0,0.25);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.header-icon-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 241, 211, 0.45);
  box-shadow: 0 18px 36px rgba(0,0,0,0.28), 0 0 0 8px rgba(103,164,255,0.08);
}
.header-icon-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.header-icon-chip {
  position: absolute;
  right: -3px;
  bottom: -4px;
  padding: 3px 6px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #08101f;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}
.icon-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #08101f;
  background: linear-gradient(135deg, #9bd2ff, #7cf1d3);
  box-shadow: 0 6px 18px rgba(124, 241, 211, 0.35);
}
.header-player-panel {
  position: fixed;
  inset: 0;
  z-index: 80;
}
.header-player-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 15, 0.66);
  backdrop-filter:none;
}
.header-player-dialog { max-height:calc(100vh - 120px); overflow:auto;
  width:min(1120px, calc(100vw - 40px));
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100vw - 32px));
  margin: 112px auto 24px;
}
.header-player-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.08);
  color: var(--text);
  font-size: 1.4rem;
  z-index: 2;
}
.header-player-shell {
  overflow: hidden;
  border-radius: 36px;
  border: 1px solid rgba(130, 170, 255, 0.2);
  background: linear-gradient(140deg, rgba(10,19,38,0.96), rgba(5,10,22,0.97));
  box-shadow: 0 40px 120px rgba(0,0,0,0.48);
}
.header-player-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(103,164,255,0.24), transparent 36%), radial-gradient(circle at bottom right, rgba(124,241,211,0.16), transparent 28%);
  pointer-events: none;
}
.header-player-shell,
.header-player-stage,
.header-player-playlist { position: relative; }
.header-player-shell { display: grid; grid-template-columns: minmax(0, 0.95fr) 320px; min-height: min(60vh, 620px); }
.header-player-stage { padding: 24px; display: grid; align-content: start; gap: 14px; }
.header-player-stage h3 { margin: 0; font-size: clamp(1.55rem, 3.2vw, 2.45rem); }
.header-player-stage p { margin: 0; color: var(--muted); max-width: 56ch; }
.header-player-now {
  max-width: 760px;
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
}
.header-player-cover {
  width: 96px;
  height: 96px;
  aspect-ratio: 1;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}
.header-player-cover img,
.promo-player-cover img { width: 100%; height: 100%; object-fit: cover; }
.header-player-now-copy { display: grid; gap: 6px; }
.header-player-now-copy strong { font-size: 1.35rem; }
.header-player-now-copy span { color: var(--muted); }
.header-player-controls,
.promo-player-controls { display: flex; align-items: center; gap: 10px; }
.header-player-control,
.promo-player-btn {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
  color: var(--text);
}
.header-player-control.is-play,
.promo-player-btn.is-play {
  width: 58px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #08101f;
  font-weight: 800;
}
.header-player-progress,
.promo-player-progress { display: grid; gap: 10px; }
.header-player-progress span,
.promo-player-progress span {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.84rem;
}
.header-player-progress input,
.player-range,
.promo-player-progress input {
  width: 100%;
  accent-color: var(--accent-strong);
}
.header-player-volume {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--muted);
  max-width: 240px;
}
.header-player-volume input {
  flex: 1;
  accent-color: var(--accent-strong);
}
.header-player-upsell {
  padding: 20px 22px;
  border-radius: 26px;
  border: 1px solid rgba(124,241,211,0.18);
  background: rgba(124,241,211,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.header-player-upsell p { margin: 0; }
.header-player-playlist {
  max-height: min(72vh, 760px);
  border-left: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  padding: 28px 22px;
  max-height: min(72vh, 840px);
  overflow: auto;
}
.header-player-playlist-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 4px 16px;
  color: var(--muted);
}
.header-player-track {
  width: 100%;
  display: grid;
  grid-template-columns: 72px minmax(0,1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 22px;
  border: 1px solid transparent;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  text-align: left;
}
.header-player-track:hover,
.header-player-track.is-current {
  border-color: rgba(124,241,211,0.24);
  background: linear-gradient(135deg, rgba(103,164,255,0.12), rgba(124,241,211,0.08));
}
.header-player-track.is-disabled { opacity: 0.55; cursor: not-allowed; }
.header-player-track img { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; }
.header-player-track-copy { min-width: 0; display: grid; gap: 6px; }
.header-player-track-copy small {
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-player-index,
.header-player-lock {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}
.promo-track-trigger {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(124,241,211,0.22);
  background: linear-gradient(135deg, rgba(103,164,255,0.14), rgba(124,241,211,0.08));
  color: var(--text);
  font-weight: 700;
}
.promo-track-trigger span {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #08101f;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}
.promo-player-bar {
  padding-top: 20px;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  display: grid;
  grid-template-columns: 82px minmax(0, 240px) auto minmax(220px, 1fr);
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 28px;
  border: 1px solid rgba(126,153,198,0.2);
  background: rgba(7,12,24,0.9);
  box-shadow: 0 24px 80px rgba(0,0,0,0.45);
  backdrop-filter:none;
}
.promo-player-cover {
  width: 82px;
  height: 82px;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
}
.promo-player-copy { min-width: 0; display: grid; gap: 6px; }
.promo-player-copy strong { font-size: 1rem; }
.promo-player-copy span { color: var(--muted); }
.has-promo-player main,
.has-promo-player .page-shell { padding-bottom: 124px; }

@media (max-width: 1080px) {
  .header-player-shell { grid-template-columns: 1fr; }
  .header-player-playlist { border-left: 0; border-top: 1px solid rgba(255,255,255,0.08); max-height: 320px; }
  .promo-player-bar { grid-template-columns: 70px minmax(0,1fr); }
  .promo-player-controls,
  .promo-player-progress { grid-column: 1 / -1; }
}

@media (max-width: 840px) {
  .header-actions { gap: 8px; }
  .header-icon-btn { width: 46px; height: 46px; }
  .header-player-dialog { max-height:calc(100vh - 120px); overflow:auto; width: calc(100vw - 20px); margin-top: 96px; }
  .header-player-stage { padding: 22px; }
  .header-player-upsell { flex-direction: column; align-items: flex-start; }
  .promo-player-bar {
  padding-top: 20px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    gap: 12px;
    padding: 12px;
    border-radius: 24px;
  }
}


.promo-player-collapse {
  position:absolute;
  top:8px;
  right:10px;
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:#fff;
  z-index:2;
}
.header-player-dialog { max-height:calc(100vh - 120px); overflow:auto;
  max-height: calc(100vh - 120px);
  overflow: hidden;
}
.header-player-track { padding: 12px; }
.header-player-track img { width: 56px; height: 56px; border-radius: 14px; }
.header-player-progress input, .promo-player-progress input { height: 6px; }
.promo-player-bar[hidden] { display:none !important; }


.header-notice-wrap { position: relative; }
.header-notice-dropdown {
  position:absolute;
  right:0;
  top:calc(100% + 14px);
  width:min(420px, calc(100vw - 24px));
  padding:16px;
  border-radius:24px;
  border:1px solid rgba(126,153,198,.24);
  background:linear-gradient(180deg, rgba(8,15,30,.97), rgba(10,18,34,.97));
  box-shadow:0 28px 70px rgba(0,0,0,.38);
  display:grid;
  gap:14px;
  z-index:45;
}
.header-notice-head { display:flex; align-items:center; justify-content:space-between; gap:12px; color:var(--muted); }
.header-notice-head strong { color:var(--text); font-size:1rem; }
.header-notice-list { display:grid; gap:10px; max-height:min(52vh, 420px); overflow:auto; padding-right:4px; }
.header-notice-item {
  display:grid;
  grid-template-columns:56px minmax(0,1fr);
  gap:12px;
  align-items:center;
  padding:12px;
  border-radius:18px;
  border:1px solid rgba(126,153,198,.16);
  background:rgba(255,255,255,.03);
  color:var(--text);
}
.header-notice-item:hover { border-color:rgba(124,241,211,.28); transform:translateY(-1px); }
.header-notice-item img { width:56px; height:56px; border-radius:16px; object-fit:cover; background:rgba(255,255,255,.05); }
.header-notice-copy { display:grid; gap:4px; min-width:0; }
.header-notice-copy small { color:var(--accent-strong); font-weight:700; }
.header-notice-copy strong { font-size:.98rem; }
.header-notice-copy span { color:var(--muted); font-size:.88rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.header-notice-empty { padding:10px 2px; color:var(--muted); }
.header-notice-all {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  min-height:48px;
  padding:12px 16px;
  border-radius:16px;
  border:1px solid rgba(126,153,198,.18);
  background:rgba(122,165,255,.10);
  color:var(--text);
  font-weight:700;
}
@media (max-width: 860px) {
  .header-notice-dropdown { right:-84px; width:min(420px, calc(100vw - 16px)); }
}

.header-player-control .icon-pause,.promo-player-btn .icon-pause,.header-player-control .play-eq,.promo-player-btn .play-eq{display:none}.header-player-control.is-playing .icon-play,.promo-player-btn.is-playing .icon-play{display:none}.header-player-control.is-playing .icon-pause,.promo-player-btn.is-playing .icon-pause{display:inline}.header-player-control.is-playing .play-eq,.promo-player-btn.is-playing .play-eq{display:inline-flex;gap:2px;margin-left:6px}.play-eq i{display:block;width:3px;height:10px;border-radius:999px;background:currentColor;animation:eqWave 1s ease-in-out infinite}.play-eq i:nth-child(2){animation-delay:.16s}.play-eq i:nth-child(3){animation-delay:.32s}.promo-player-collapse{top:8px;right:8px}.header-notice-dropdown{border-color:rgba(122,165,255,.2);box-shadow:0 26px 56px rgba(0,0,0,.45)}.header-notice-item{position:relative}.header-notice-item.is-messages{background:linear-gradient(180deg,rgba(122,165,255,.08),rgba(255,255,255,.02))}.header-notice-item.is-friends{background:linear-gradient(180deg,rgba(122,230,210,.08),rgba(255,255,255,.02))}.header-notice-item.is-gifts{background:linear-gradient(180deg,rgba(255,212,122,.08),rgba(255,255,255,.02))}@keyframes eqWave{0%,100%{transform:scaleY(.55)}50%{transform:scaleY(1.15)}}

/* polish fixes */
.hero-copy{display:grid;gap:18px;align-content:start}.hero-copy p{margin:0;max-width:58ch}.hero-actions{display:flex;flex-wrap:wrap;gap:14px}.hero-stats{margin-top:6px}.hero-visual,.visual-main,.track-card,.track-cover,.track-body,.header-player-now,.header-player-track,.header-notice-dropdown,.home-user-card,.streaming-panel,.surface-card{min-width:0}.track-grid{align-items:start}.track-card{grid-template-rows:auto 1fr}.track-cover{aspect-ratio:1/1;display:block;position:relative}.track-cover img{display:block;width:100%;height:100%;object-fit:cover}.home-track-card .track-body h3,.home-track-card .track-body p{margin:0}.home-track-pill{align-self:start}.promo-track-trigger,.premium-track-trigger{width:100%;display:flex;align-items:center;justify-content:center;gap:10px;min-height:54px;padding:12px 16px;border-radius:999px;border:1px solid rgba(124,241,211,.22);background:linear-gradient(135deg,rgba(103,164,255,.14),rgba(124,241,211,.08));color:var(--text);font-weight:700;box-sizing:border-box}.premium-track-trigger{background:linear-gradient(135deg,rgba(122,165,255,.16),rgba(103,164,255,.08))}.promo-track-trigger span,.premium-track-trigger span{width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:linear-gradient(135deg,var(--accent),var(--accent-strong));color:#08101f;flex:0 0 30px}
.header-player-dialog{overflow:visible}.header-player-shell{min-height:min(54vh,560px)}.header-player-stage{gap:12px}.header-player-now{max-width:720px;gap:16px;padding:20px}.header-player-cover{width:88px;height:88px;border-radius:24px}.header-player-playlist{padding:24px 20px}.header-player-close{top:16px;right:16px;display:inline-flex;align-items:center;justify-content:center}.header-notice-dropdown{gap:12px;border-radius:26px}.header-notice-head-actions{display:flex;align-items:center;gap:10px}.header-notice-close{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:999px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.05);color:var(--text)}.header-notice-item{transition:transform .2s ease,border-color .2s ease,background .2s ease}.header-notice-item strong,.header-notice-item span{white-space:normal}.header-notice-all{border-radius:18px}
.promo-player-bar{grid-template-columns:82px minmax(180px,260px) auto minmax(220px,1fr);padding-top:14px}.promo-player-collapse{display:inline-flex;align-items:center;justify-content:center}.promo-player-btn,.header-player-control{display:inline-flex;align-items:center;justify-content:center}.promo-player-copy strong{line-height:1.2}.promo-player-progress{min-width:0}
.home-user-card,.home-user-meta,.home-user-actions{min-width:0}.home-user-actions{display:flex;gap:10px;flex-wrap:wrap}.home-user-actions>*{flex:1 1 150px}.home-online-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:.9rem}.online-dot{width:10px;height:10px;border-radius:999px;background:#52d17c;box-shadow:0 0 0 4px rgba(82,209,124,.14)}.online-dot.is-offline{background:#8da0c2;box-shadow:none}
html.is-page-transition body{opacity:.985;transform:translateY(2px)}body{transition:opacity .22s ease,transform .22s ease}
@media (max-width: 1100px){.track-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-grid{grid-template-columns:1fr}.hero-visual{min-height:auto}.header-player-shell{grid-template-columns:1fr}.header-player-playlist{border-left:0;border-top:1px solid rgba(255,255,255,.08);max-height:320px}}
@media (max-width: 860px){.header-notice-dropdown{right:0;width:min(420px,calc(100vw - 20px))}.promo-player-bar{grid-template-columns:64px minmax(0,1fr);padding-right:12px}.promo-player-cover{width:64px;height:64px;border-radius:18px}.promo-player-controls,.promo-player-progress{grid-column:1/-1}.hero-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.featured-grid,.shop-grid,.news-grid,.content-grid,.home-users-grid{grid-template-columns:1fr}}
@media (max-width: 640px){.header-player-dialog{width:calc(100vw - 14px);margin-top:88px}.header-player-stage{padding:18px}.header-player-now{padding:16px;border-radius:24px}.header-player-track{grid-template-columns:56px minmax(0,1fr) auto}.header-player-track img{width:56px;height:56px}.hero-copy h1{font-size:clamp(2.2rem,12vw,4rem)}.hero-stats{grid-template-columns:1fr 1fr}.button,.button-secondary{width:100%;justify-content:center}.hero-actions .button{flex:1 1 100%}.track-grid{grid-template-columns:1fr}.promo-player-bar{left:8px;right:8px;bottom:8px;border-radius:22px}.promo-player-collapse{top:10px;right:10px}.header-notice-dropdown{top:calc(100% + 10px);padding:14px;border-radius:22px}.section-head,.music-toolbar,.bio-copy,.bio-media,.track-body,.streaming-panel,.shop-copy,.featured-copy{min-width:0}}

.header-notice-dropdown[hidden], .header-player-panel[hidden], .auth-modal[hidden]{display:none !important;}
body.header-player-open{overflow:hidden;}
body.header-player-open .site-header{filter:none;}
.header-icon-btn.is-playing,.header-player-btn.is-playing{border-color:rgba(122,230,210,.4);box-shadow:0 0 0 4px rgba(122,230,210,.12);}
.online-state-badge{width:18px;height:18px;padding:0;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08)}
.online-state-badge i{display:block;width:8px;height:8px;border-radius:999px;background:#7f8aa1}
.online-state-badge.is-online i{background:#64e5ae;box-shadow:0 0 0 4px rgba(100,229,174,.16)}
.header-notice-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.header-notice-head-actions{display:flex;align-items:center;gap:10px}.header-notice-close{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:999px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.05);color:var(--text);cursor:pointer}.header-notice-dropdown{display:grid;gap:12px}.header-notice-all{display:flex;align-items:center;justify-content:center}

.header-player-panel .header-player-backdrop{background:rgba(2,6,15,.72);backdrop-filter:blur(20px)}.track-cover img,.featured-media img,.visual-main img,.stack-card img{width:100%;height:100%;object-fit:cover}.home-track-card .track-cover{aspect-ratio:1/1;overflow:hidden}


/* ===== homepage hotfix 2026-04-14 ===== */
html,body{max-width:100%;overflow-x:hidden}
.home-users-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center}
.home-users-search input{width:100%;min-width:0}
.home-users-search .button{min-width:120px}
.home-users-grid,.featured-grid,.shop-grid,.track-grid,.gallery-grid,.content-grid{align-items:start}
.home-user-card,.featured-card,.shop-card,.track-card,.gallery-card,.content-card,.visual-main,.stack-card,.hero-copy,.hero-visual{min-width:0}
.home-user-card{grid-template-columns:84px minmax(0,1fr);align-items:start}
.home-user-meta,.home-user-actions{min-width:0}
.home-user-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.home-user-actions>*{flex:1 1 180px}
.track-card,.home-track-card{display:grid;grid-template-rows:auto 1fr}.track-cover{aspect-ratio:1/1;overflow:hidden}.track-cover img{width:100%;height:100%;object-fit:cover}
.gallery-card{display:grid;align-content:start}
.news-card img,.content-card img,.featured-media img{aspect-ratio:16/10;object-fit:cover;height:auto}
.section-head{align-items:end}.section-head>div,.section-head>p{min-width:0}
.header-player-backdrop{background:radial-gradient(circle at top,rgba(12,22,44,.78),rgba(2,6,15,.88));backdrop-filter:blur(20px) saturate(1.08)}
.header-player-dialog{margin:88px auto 24px;overflow:visible}
.header-player-shell{position:relative;overflow:hidden;border-radius:34px;border:1px solid rgba(130,170,255,.22);background:linear-gradient(145deg,rgba(8,15,31,.98),rgba(5,10,22,.99));box-shadow:0 44px 120px rgba(0,0,0,.52)}
.header-player-shell::before{content:'';position:absolute;inset:-10% -5% auto auto;width:340px;height:340px;border-radius:50%;background:radial-gradient(circle,rgba(124,241,211,.12),transparent 65%);filter:none;opacity:.95}
.header-player-shell::after{content:'';position:absolute;left:-80px;bottom:-120px;width:320px;height:320px;border-radius:50%;background:radial-gradient(circle,rgba(103,164,255,.16),transparent 68%);filter:none;opacity:.9}
.header-player-stage,.header-player-playlist{position:relative;z-index:1}
.header-player-now{display:grid;grid-template-columns:96px minmax(0,1fr);grid-template-areas:'cover copy' 'controls controls' 'progress progress';gap:16px;max-width:780px;padding:22px;border-radius:28px;border:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.025));backdrop-filter:blur(12px)}
.header-player-cover{grid-area:cover;width:96px;height:96px;border-radius:24px;box-shadow:0 18px 30px rgba(0,0,0,.24)}
.header-player-now-copy{grid-area:copy;min-width:0;align-content:center}.header-player-now-copy strong{font-size:clamp(1.35rem,2.2vw,2rem);line-height:1.12}.header-player-now-copy span{font-size:1rem;color:#bcc9df}
.header-player-controls{grid-area:controls}.header-player-progress{grid-area:progress}
.header-player-track{grid-template-columns:64px minmax(0,1fr) auto;align-items:center;padding:14px;border-radius:20px}.header-player-track strong,.header-player-track small{overflow-wrap:anywhere}.header-player-track img{width:64px;height:64px;border-radius:16px}
.header-player-track:hover,.header-player-track.is-current{transform:translateY(-1px);border-color:rgba(124,241,211,.26);background:linear-gradient(180deg,rgba(124,241,211,.08),rgba(255,255,255,.03))}
.header-player-playlist{background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.025))}
.promo-player-bar{backdrop-filter:blur(18px) saturate(1.06)}
@media (max-width:980px){.home-users-search{grid-template-columns:1fr}.home-users-search .button{width:100%}.header-player-shell{grid-template-columns:1fr}.header-player-playlist{border-left:0;border-top:1px solid rgba(255,255,255,.08)}.section-head{align-items:start}}
@media (max-width:760px){.home-user-card{grid-template-columns:1fr}.home-user-card img{width:96px;height:96px}.home-user-actions>*{flex:1 1 100%}.header-player-dialog{width:calc(100vw - 14px);margin-top:74px}.header-player-now{grid-template-columns:1fr;grid-template-areas:'cover' 'copy' 'controls' 'progress';padding:18px}.header-player-cover{width:84px;height:84px}.header-player-track{grid-template-columns:56px minmax(0,1fr)}.header-player-track>*:last-child{justify-self:start}}

/* ===== fixes 2026-04-14 rev3 ===== */
.stack-card{position:relative;display:grid;align-content:end;min-height:220px}
.stack-card img{position:absolute;inset:0;height:100%;z-index:0}
.stack-card::after{content:'';position:absolute;inset:auto 0 0 0;height:40%;background:linear-gradient(180deg,rgba(2,8,18,0),rgba(2,8,18,.86));z-index:1}
.stack-card .stack-card-caption{position:relative;z-index:2;color:#f6fbff;font-weight:800;letter-spacing:.01em;text-shadow:0 2px 10px rgba(0,0,0,.45)}
.shop-color-row{display:grid;gap:10px;margin-top:6px}
.shop-color-row>span{font-size:.82rem;color:var(--muted);font-weight:700}
.shop-color-dots{display:flex;flex-wrap:wrap;gap:10px}
.color-dot{width:38px;height:38px;border-radius:999px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.04);display:inline-flex;align-items:center;justify-content:center;padding:0;box-shadow:none}
.color-dot span{width:18px;height:18px;border-radius:999px;background:var(--dot,#7aa5ff);display:block;box-shadow:0 0 0 2px rgba(255,255,255,.16) inset}
.color-dot.is-selected{border-color:rgba(124,241,211,.42);box-shadow:0 0 0 4px rgba(124,241,211,.12)}
.shop-visual{position:relative;overflow:hidden}
.shop-image{width:100%;height:100%;object-fit:cover;transition:opacity .28s ease,transform .28s ease}
.shop-image.is-back{position:absolute;inset:0;opacity:0;transform:scale(.985)}
.shop-card:hover .shop-image.is-back,.shop-card.is-flipped .shop-image.is-back{opacity:1;transform:scale(1)}
.shop-card:hover .shop-image.is-front,.shop-card.is-flipped .shop-image.is-front{opacity:0;transform:scale(.985)}
.header-player-shell,.header-player-now,.header-player-playlist,.promo-player-bar{backdrop-filter:none }
.header-player-backdrop{backdrop-filter:blur(8px) saturate(1.02) }
.header-player-dialog{overflow:visible}
.header-player-close,.promo-player-collapse{width:34px;height:34px;font-size:18px;line-height:1;padding:0;border-radius:999px}
.promo-player-bar{grid-template-columns:72px minmax(180px,260px) auto minmax(240px,1fr);align-items:center;padding:16px 18px 14px;border-radius:24px}
.promo-player-progress{min-width:0}
.promo-player-progress input,.header-player-progress input{accent-color:#7ae6d2}
.header-player-btn.is-playing svg,.header-icon-btn.is-playing svg{animation:headerPulse 1.15s ease-in-out infinite}
@keyframes headerPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.1)}}
@media(max-width:860px){.promo-player-bar{grid-template-columns:64px minmax(0,1fr)}.promo-player-controls,.promo-player-progress{grid-column:1/-1}}


/* 2026-04-14 fixes */
.site-header,.header-player-panel,.global-player,.glass-card,.featured-player,.promo-player-bar{backdrop-filter:none ;}
body.header-player-open .site-header{filter:none ;}


.home-users-search{grid-template-columns:minmax(0,1fr) auto;align-items:start}
.home-users-search input,.home-users-search .button{min-width:0}
.home-user-card{grid-template-columns:84px minmax(0,1fr);align-items:start}
.home-user-meta{display:grid;gap:14px;min-width:0}
.home-user-copy{display:grid;gap:8px;min-width:0}
.home-user-copy p{overflow-wrap:anywhere}
.home-user-status{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:.9rem}
.home-user-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:0}
.home-user-actions>*{flex:1 1 180px;min-width:0}
.home-user-actions form{display:flex}
.home-user-actions form .button,.home-user-actions form .button-secondary,.home-user-actions .pill{width:100%;justify-content:center;box-sizing:border-box}
@media (max-width:980px){.home-users-search{grid-template-columns:1fr}.home-users-search .button{width:100%}}

.home-users-search{margin-bottom:24px}.home-user-card{padding:18px}.media-library-grid{gap:22px}.section-block[hidden]{display:none!important}.header-player-mini-eq{display:none;gap:2px;margin-left:6px}.header-player-btn.is-playing .header-player-mini-eq{display:inline-flex}.header-player-mini-eq i{display:block;width:3px;height:12px;border-radius:999px;background:currentColor;animation:eqWave 1s ease-in-out infinite}.header-player-mini-eq i:nth-child(2){animation-delay:.16s}.header-player-mini-eq i:nth-child(3){animation-delay:.32s}

/* r6 targeted fixes */
.header-player-dialog{overflow:hidden}
.header-player-shell{width:100%}
.header-player-playlist{min-height:100%;box-sizing:border-box}
.header-player-close{right:14px}
.biography-grid{grid-template-columns:1fr;align-items:start}
.bio-copy{max-width:860px;position:relative;z-index:2}
.bio-media{margin-top:18px}
.video-grid{margin-top:10px}


/* 2026-04-14 r13 unified premium player final */
.header-player-panel{position:fixed;inset:0;z-index:80}
 .header-player-backdrop{position:absolute;inset:0;background:rgba(2,6,15,.68);backdrop-filter:blur(10px) saturate(1.02)}
.header-player-dialog{position:relative;z-index:1;width:min(1220px,calc(100vw - 32px));margin:96px auto 24px;max-height:calc(100vh - 120px);overflow:visible}
.header-player-dialog{position:relative;z-index:1;width:min(1220px,calc(100vw - 32px));margin:96px auto 24px;max-height:calc(100vh - 120px);overflow:visible}
.header-player-shell{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 360px;width:100%;min-height:min(58vh,620px);overflow:hidden;border-radius:36px;border:1px solid rgba(130,170,255,.2);background:linear-gradient(140deg,rgba(10,19,38,.96),rgba(5,10,22,.97));box-shadow:0 40px 120px rgba(0,0,0,.48)}
.header-player-shell::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at top left,rgba(103,164,255,.22),transparent 36%),radial-gradient(circle at bottom right,rgba(124,241,211,.14),transparent 28%);pointer-events:none}
.header-player-close{position:absolute;top:16px;right:16px;z-index:4;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;padding:0;border-radius:999px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.06);color:var(--text);font-size:1.35rem;line-height:1}
.header-player-stage,.header-player-playlist,.header-player-now{position:relative;min-width:0}
.header-player-stage{display:grid;align-content:start;gap:14px;padding:24px}
.header-player-stage h3{margin:0;font-size:clamp(1.55rem,3.2vw,2.45rem)}
.header-player-stage p{margin:0;color:var(--muted);max-width:56ch}
.header-player-now{display:grid;grid-template-columns:96px minmax(0,1fr);grid-template-areas:'cover copy' 'controls controls' 'progress progress';gap:16px;max-width:760px;padding:22px;border-radius:28px;border:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.025))}
.header-player-cover{grid-area:cover;width:96px;height:96px;aspect-ratio:1;border-radius:26px;overflow:hidden;background:rgba(255,255,255,.04)}
.header-player-cover img{display:block;width:100%;height:100%;object-fit:cover}
.header-player-now-copy{grid-area:copy;display:grid;gap:6px;min-width:0;align-content:center}
.header-player-now-copy strong{font-size:clamp(1.35rem,2.2vw,2rem);line-height:1.12;overflow-wrap:anywhere}
.header-player-now-copy span{font-size:1rem;color:#bcc9df;overflow-wrap:anywhere}
.header-player-controls{grid-area:controls;display:flex;align-items:center;gap:10px}
.header-player-progress{grid-area:progress;display:grid;gap:8px;min-width:0}
.header-player-progress input{width:100%}
.header-player-playlist{display:grid;align-content:start;gap:14px;padding:24px 20px;border-left:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.01));box-sizing:border-box}
.header-player-playlist-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-right:52px}
.header-player-track{display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;gap:14px;width:100%;padding:14px;border-radius:22px;border:1px solid transparent;background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02));text-align:left;color:var(--text);box-sizing:border-box}
.header-player-track img{display:block;width:64px;height:64px;border-radius:18px;object-fit:cover;background:rgba(255,255,255,.04)}
.header-player-track-copy{display:grid;gap:4px;min-width:0}
.header-player-track-copy strong,.header-player-track-copy small{display:block;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.header-player-track-copy strong{font-size:1rem;line-height:1.2}
.header-player-track-copy small{font-size:.92rem;color:var(--muted)}
.header-player-index,.header-player-lock{justify-self:end}
@media (max-width:1100px){.header-player-shell{grid-template-columns:1fr}.header-player-playlist{border-left:0;border-top:1px solid rgba(255,255,255,.08)}.header-player-playlist-head{padding-right:52px}}
@media (max-width:760px){.header-player-dialog{width:calc(100vw - 14px);margin-top:74px}.header-player-stage{padding:18px}.header-player-now{grid-template-columns:1fr;grid-template-areas:'cover' 'copy' 'controls' 'progress';padding:18px}.header-player-cover{width:84px;height:84px}.header-player-track{grid-template-columns:56px minmax(0,1fr) auto;gap:12px}.header-player-track img{width:56px;height:56px;border-radius:16px}}

/* ===== css audit fixes 2026-04-15 ===== */
html,body{max-width:100%;overflow-x:hidden}
*,*::before,*::after{-webkit-tap-highlight-color:transparent}
a,button,[role="button"],input[type="button"],input[type="submit"],input[type="reset"],label[for],summary,.button,.header-icon-btn,.menu-toggle,.header-player-track,.promo-player-btn{touch-action:manipulation}
[hidden]{display:none !important}
.bg-orb,.bg-grid,.stack-card::after,.header-player-shell::before,.header-player-shell::after,.track-cover::after{pointer-events:none}
.header-player-panel,.header-notice-dropdown,.promo-player-bar,.site-header,.header-inner,.hero-copy,.hero-visual,.featured-card,.shop-card,.track-card,.news-card,.streaming-panel,.surface-card{isolation:isolate}
.header-player-panel[hidden],.header-notice-dropdown[hidden],.cookie-banner[hidden]{opacity:0;visibility:hidden;pointer-events:none}
.header-player-backdrop,.gallery-backdrop{pointer-events:auto}
.header-player-dialog,.header-notice-dropdown,.promo-player-bar{pointer-events:auto}
.header-player-panel{z-index:90}
.header-notice-dropdown{z-index:86;max-width:min(380px,calc(100vw - 24px))}
 .header-player-dialog{overflow:auto;-webkit-overflow-scrolling:touch}
@media (max-width: 980px){
  .site-nav{pointer-events:none;visibility:hidden}
  body.menu-open .site-nav{pointer-events:auto;visibility:visible}
}


/* 2026-04-15 homepage premium player sync with profile */
.header-player-panel{position:fixed;inset:0;z-index:90}.header-player-backdrop{position:absolute;inset:0;background:rgba(2,7,18,.78);backdrop-filter:blur(12px) saturate(1.04)}.header-player-dialog{position:relative;z-index:1;width:min(1220px,calc(100vw - 32px));margin:96px auto 24px;max-height:calc(100vh - 120px);overflow:visible}.header-player-shell{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 360px;width:100%;min-height:min(58vh,620px);overflow:hidden;border-radius:36px;border:1px solid rgba(130,170,255,.2);background:linear-gradient(140deg,rgba(10,19,38,.96),rgba(5,10,22,.97));box-shadow:0 40px 120px rgba(0,0,0,.48)}.header-player-shell::before{content:'';position:absolute;inset:0;background:radial-gradient(circle at top left,rgba(103,164,255,.22),transparent 36%),radial-gradient(circle at bottom right,rgba(124,241,211,.14),transparent 28%);pointer-events:none}.header-player-stage,.header-player-playlist,.header-player-now{position:relative;min-width:0}.header-player-stage{display:grid;align-content:start;gap:14px;padding:24px}.header-player-stage h3{margin:0;font-size:clamp(1.55rem,3.2vw,2.45rem)}.header-player-stage p{margin:0;color:var(--muted);max-width:56ch}.header-player-now{display:grid;grid-template-columns:96px minmax(0,1fr);grid-template-areas:'cover copy' 'controls controls' 'progress progress';gap:16px;max-width:760px;padding:22px;border-radius:28px;border:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.025))}.header-player-cover{grid-area:cover;width:96px;height:96px;aspect-ratio:1;border-radius:26px;overflow:hidden;background:rgba(255,255,255,.04)}.header-player-cover img{display:block;width:100%;height:100%;object-fit:cover}.header-player-now-copy{grid-area:copy;display:grid;gap:6px;min-width:0;align-content:center}.header-player-now-copy strong{font-size:clamp(1.35rem,2.2vw,2rem);line-height:1.12;overflow-wrap:anywhere}.header-player-now-copy span{font-size:1rem;color:#bcc9df;overflow-wrap:anywhere}.header-player-controls{grid-area:controls;display:flex;align-items:center;gap:10px}.header-player-progress{grid-area:progress;display:grid;gap:8px;min-width:0}.header-player-progress input{width:100%}.header-player-playlist{display:grid;align-content:start;gap:14px;padding:24px 20px;border-left:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.01));box-sizing:border-box;scrollbar-width:none;-ms-overflow-style:none;overflow:auto}.header-player-playlist::-webkit-scrollbar{width:0;height:0}.header-player-playlist-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-right:52px}.header-player-search{display:block}.header-player-search .admin-input,.header-player-search input[type=search]{width:100%;-webkit-appearance:none;appearance:none;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.1);color:var(--text);min-height:48px;border-radius:16px;padding:12px 14px}.header-player-search input[type=search]::-webkit-search-decoration,.header-player-search input[type=search]::-webkit-search-cancel-button,.header-player-search input[type=search]::-webkit-search-results-button,.header-player-search input[type=search]::-webkit-search-results-decoration{display:none}.header-player-track{display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;gap:14px;width:100%;padding:14px;border-radius:22px;border:1px solid transparent;background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02));text-align:left;color:var(--text);box-sizing:border-box}.header-player-track:hover,.header-player-track.is-current{border-color:rgba(121,227,210,.4);background:linear-gradient(180deg,rgba(121,227,210,.1),rgba(255,255,255,.02))}.header-player-track[hidden]{display:none!important}.header-player-track img{display:block;width:64px;height:64px;border-radius:18px;object-fit:cover;background:rgba(255,255,255,.04)}.header-player-track-copy{display:grid;gap:4px;min-width:0}.header-player-track-copy strong,.header-player-track-copy small{display:block;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.header-player-track-copy strong{font-size:1rem;line-height:1.2}.header-player-track-copy small{font-size:.92rem;color:var(--muted)}.header-player-index,.header-player-lock{justify-self:end}.header-player-close{position:absolute;top:16px;right:16px;z-index:4;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;padding:0;border-radius:999px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.06);color:var(--text);font-size:1.35rem;line-height:1}.header-player-panel[data-search-empty='1'] .header-player-playlist::after{content:'Ничего не найдено';display:block;padding:14px 16px;border-radius:18px;border:1px dashed rgba(255,255,255,.12);color:var(--muted);background:rgba(255,255,255,.02)}html[lang='et'] .header-player-panel[data-search-empty='1'] .header-player-playlist::after{content:'Midagi ei leitud'}@media (max-width:1100px){.header-player-shell{grid-template-columns:1fr}.header-player-playlist{border-left:0;border-top:1px solid rgba(255,255,255,.08)}.header-player-playlist-head{padding-right:52px}}@media (max-width:760px){.header-player-dialog{width:calc(100vw - 14px);margin-top:74px}.header-player-stage{padding:18px}.header-player-now{grid-template-columns:1fr;grid-template-areas:'cover' 'copy' 'controls' 'progress';padding:18px}.header-player-cover{width:84px;height:84px}.header-player-track{grid-template-columns:56px minmax(0,1fr) auto;gap:12px}.header-player-track img{width:56px;height:56px;border-radius:16px}}


/* 2026-04-16 promo progress spacing fix */
.promo-player-progress{padding-top:14px}
@media (max-width:640px){.promo-player-progress{padding-top:18px}}

.bio-story-rich a{color:var(--theme-accent,#7aa5ff);text-decoration:underline}.cover-overlay:empty{display:none}

/* 2026-04-21 homepage mobile fixes */
@media (max-width: 860px){
  .site-header{overflow:visible;}
  .header-inner{grid-template-columns:1fr;justify-items:center;gap:12px;padding:12px 14px;}
  .brand{justify-self:center;display:flex;align-items:center;justify-content:center;gap:0;min-width:0;}
  .brand-copy{display:none;}
  body[data-current-user-id]:not([data-current-user-id="0"]) .brand-copy,
  body[data-current-user-id]:not([data-current-user-id=""]) .brand-copy{display:none;}
  .header-actions{width:100%;display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:nowrap;margin:0 auto;}
  .header-actions > *{flex:0 0 auto;}
  .header-icon-btn,.menu-toggle,.lang-pill{width:54px;height:54px;min-width:54px;padding:0;display:inline-flex;align-items:center;justify-content:center;}
  .language-switcher{display:flex;align-items:center;justify-content:center;gap:10px;}
  .site-nav{position:fixed;left:18px;right:18px;top:108px;bottom:auto;width:auto;max-height:min(62vh,520px);overflow:auto;padding:20px 18px;border-radius:28px;display:none;z-index:85;transform:none;}
  .site-nav.is-open,body.menu-open .site-nav{display:grid;opacity:1;visibility:visible;pointer-events:auto;}
  .site-nav a{padding:12px 14px;}
  #people .section-head,#people .section-head>div{justify-items:start;text-align:left;align-items:start;}
  #people .section-head{justify-content:flex-start;}
}
@media (max-width: 640px){
  .site-nav{top:102px;left:16px;right:16px;}
  .header-actions{gap:8px;}
  .header-icon-btn,.menu-toggle,.lang-pill{width:52px;height:52px;min-width:52px;}
}

@media (max-width: 860px){
  .header-player-panel{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;overflow:auto;padding:14px 0 calc(92px + env(safe-area-inset-bottom));}
  .header-player-panel .header-player-dialog{position:relative;left:auto;right:auto;top:auto;margin:0 auto;width:min(calc(100vw - 16px),560px);max-height:none;}
  .header-player-panel .header-player-shell{width:100%;margin:0 auto;}
}
@media (max-width: 720px){
  .header-player-panel .header-player-dialog{margin:8px auto 0;}
  .header-player-stage,.header-player-playlist,.header-player-now{padding:18px 16px;}
  .header-player-controls{justify-content:center;}
}


/* 2026-04-21 round 3 homepage mobile fixes */
@media (max-width: 860px){
  body.menu-open{overflow:hidden;touch-action:none}
  .site-header{padding-left:max(0px,env(safe-area-inset-left));padding-right:max(0px,env(safe-area-inset-right));overflow:visible}
  .header-inner{padding:12px 12px;overflow:visible}
  .header-actions{width:100%;justify-content:space-between;gap:6px;padding:0 2px}
  .header-actions > *{flex:0 0 auto}
  .header-icon-btn,.menu-toggle,.lang-pill{width:46px;height:46px;min-width:46px}
  .menu-toggle{margin-left:auto}
  .language-switcher{display:flex;align-items:center;justify-content:center;gap:6px;flex:0 0 auto}
  .site-nav{
    position:fixed;
    left:18px;
    right:18px;
    top:calc(env(safe-area-inset-top) + 92px);
    width:auto;
    max-height:min(52vh,420px);
    overflow:auto;
    padding:18px 16px;
    border-radius:26px;
    z-index:95;
    box-shadow:0 28px 80px rgba(0,0,0,.42);
  }
  .site-nav a{padding:10px 12px}
  .profile-player-fab{
    left:50%;
    right:auto;
    transform:translateX(-50%);
    bottom:calc(14px + env(safe-area-inset-bottom));
    width:min(calc(100vw - 24px),420px);
    max-width:min(calc(100vw - 24px),420px);
  }
  .header-player-panel{align-items:center;justify-content:center;padding:16px 0 calc(24px + env(safe-area-inset-bottom))}
  .header-player-panel .header-player-dialog{margin:0 auto;width:min(calc(100vw - 16px),560px)}
}
@media (max-width: 640px){
  .header-actions{gap:5px}
  .header-icon-btn,.menu-toggle,.lang-pill{width:44px;height:44px;min-width:44px}
  .site-nav{left:16px;right:16px;top:calc(env(safe-area-inset-top) + 86px);max-height:min(50vh,390px)}
  .profile-player-fab{bottom:calc(10px + env(safe-area-inset-bottom));width:min(calc(100vw - 18px),400px);max-width:min(calc(100vw - 18px),400px)}
  .header-player-panel .header-player-dialog{width:min(calc(100vw - 12px),520px)}
}


/* 2026-04-21 homepage/mobile notice + menu corrections */
@media (max-width: 860px){
  .site-header{overflow:visible}
  .header-inner{overflow:visible}
  .header-notice-wrap{position:static}
  .header-notice-dropdown{
    position:fixed;
    left:50%;
    right:auto;
    top:calc(84px + env(safe-area-inset-top));
    transform:translateX(-50%);
    width:min(calc(100vw - 16px), 420px);
    max-width:calc(100vw - 16px);
    max-height:min(68vh, 540px);
    overflow:auto;
    z-index:130;
  }
}


/* 2026-04-21 round 5 targeted fixes */
@media (max-width: 860px){
  .brand{gap:10px;}
  .brand img{background:transparent;box-shadow:none;}
  .header-actions{
    justify-content:center;
    align-items:center;
    gap:8px;
    flex-wrap:nowrap;
    overflow:visible;
  }
  .header-actions > *{flex:0 0 auto;}
  .header-notice-dropdown{
    left:8px;
    right:8px;
    width:auto;
    max-width:none;
    transform:none;
    top:calc(env(safe-area-inset-top) + 84px);
  }
  .site-nav{
    position:fixed;
    top:calc(env(safe-area-inset-top) + 92px);
    left:16px;
    right:16px;
    width:auto;
    transform:none;
    margin:0;
  }
  body.menu-open .site-nav,
  .site-nav.is-open{
    position:fixed;
  }
  .header-player-panel{
    align-items:center;
    justify-content:center;
    padding:calc(env(safe-area-inset-top) + 8px) 8px calc(env(safe-area-inset-bottom) + 16px);
  }
  .header-player-panel .header-player-dialog{
    width:min(calc(100vw - 16px), 540px);
    margin:auto;
    left:auto;
    right:auto;
    top:auto;
    bottom:auto;
  }
}
@media (max-width: 640px){
  .header-actions{gap:6px;}
  .header-icon-btn,.menu-toggle,.lang-pill{width:44px;height:44px;min-width:44px;}
  .header-player-panel .header-player-dialog{width:calc(100vw - 12px);max-width:calc(100vw - 12px);}
}


/* 2026-04-22 homepage resilience */
.hero-copy h1, .section-head h2, .featured-copy h3, .shop-copy h3, .track-body h3, .bio-copy h3, .header-player-now-copy strong, .header-player-track-copy strong { overflow-wrap: anywhere; }
.header-notice-dropdown, .header-player-dialog, .promo-player-bar { max-width: calc(100vw - 12px); }
@media (orientation: landscape) and (max-height: 540px) {
  .hero-section, .section-block { padding: 20px 0; }
  .header-player-panel { align-items: flex-start; padding: 8px 0; }
  .header-player-dialog { margin: 8px auto; max-height: calc(100dvh - 16px); }
  .header-player-shell { min-height: auto; }
  .header-player-playlist { max-height: min(44dvh, 320px); }
}

/* 2026-04-25 merch purchase modal */
.merch-modal[hidden]{display:none!important}
.merch-modal{position:fixed;inset:0;z-index:120;background:rgba(3,8,18,.72);display:grid;place-items:center;padding:18px;backdrop-filter:blur(10px)}
.merch-modal__card{position:relative;width:min(560px,100%);padding:24px;border-radius:28px;border:1px solid var(--line);background:linear-gradient(180deg,rgba(13,24,44,.98),rgba(8,15,30,.98));box-shadow:0 24px 80px rgba(0,0,0,.45)}
.merch-modal__close{position:absolute;right:16px;top:14px;width:38px;height:38px;border-radius:999px;border:1px solid var(--line);background:rgba(255,255,255,.06);color:var(--text);font-size:24px;cursor:pointer}
.merch-modal__product{display:flex;gap:14px;align-items:center;margin:12px 0 18px;padding:12px;border-radius:18px;background:rgba(255,255,255,.04);border:1px solid var(--line)}
.merch-modal__product img{width:74px;height:74px;border-radius:16px;object-fit:cover;border:1px solid var(--line)}
@media(max-width:700px){body[data-user-auth="1"] .site-header .brand{display:none}body[data-user-auth="1"] .header-inner{grid-template-columns:1fr;gap:10px}}
.merch-modal .stack-form{display:grid;gap:14px}.merch-modal .admin-input,.merch-modal .admin-textarea{width:100%;min-height:52px;padding:13px 15px;color:var(--text);border-radius:16px;border:1px solid var(--line);background:rgba(255,255,255,.04);outline:none}.merch-modal .admin-textarea{min-height:110px;resize:vertical}.merch-modal .actions{display:flex;gap:10px;flex-wrap:wrap}
.merch-modal__balance{margin:10px 0 12px;padding:10px 12px;border-radius:16px;border:1px solid var(--line);background:rgba(255,255,255,.04);color:var(--muted)}
.merch-modal [data-merch-modal-warning]{color:#ff9fb2;margin:6px 0 0}
.merch-modal [data-merch-submit]:disabled{opacity:.55;cursor:not-allowed;filter:saturate(.7)}


/* ===== 2026-04-25 fix pack: video-circle mobile timeline, dialogs, blacklist ===== */
.gift-item{min-width:0}
.gift-item-link{display:flex;align-items:center;gap:12px;min-width:0;color:inherit;text-decoration:none;flex:1 1 auto}
.site-btn.small,.button.small{min-height:38px;padding:8px 12px;border-radius:14px;font-size:.86rem}
.header-notice-head-actions [data-notice-summary]{display:none}

.message-video-shell.is-native.is-circle{
  width:min(240px,100%);
  max-width:240px;
  margin:8px auto 10px;
  overflow:visible;
}
.message-video-shell.is-native.is-circle .custom-media-player.is-video.is-compact{
  position:relative;
  width:220px;
  height:220px;
  margin:0 auto;
  padding:0;
  overflow:visible;
  border-radius:999px;
  background:transparent;
  border:0;
  display:block;
}
.message-video-shell.is-native.is-circle .custom-media-player__media,
.message-video-shell.is-native.is-circle video.custom-media-player__media{
  position:absolute;
  inset:10px;
  width:calc(100% - 20px);
  height:calc(100% - 20px);
  max-width:none;
  max-height:none;
  aspect-ratio:1/1;
  display:block;
  object-fit:cover;
  border-radius:999px;
  background:#020817;
  border:0;
  z-index:1;
}
.message-video-shell.is-native.is-circle .video-circle-timeline{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  overflow:visible;
  z-index:3;
}
.message-video-shell.is-native.is-circle .video-circle-timeline__svg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  transform:none;
  pointer-events:auto;
  overflow:visible;
}
.message-video-shell.is-native.is-circle .video-circle-timeline__center-btn{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:58px;
  height:58px;
  z-index:5;
  pointer-events:auto;
}
.message-video-shell.is-native.is-circle .video-circle-timeline__time{
  position:absolute;
  z-index:6;
  pointer-events:none;
  font-size:.78rem;
  line-height:1;
  padding:5px 8px;
  border-radius:999px;
  background:rgba(4,10,22,.86);
  color:#fff;
  box-shadow:0 8px 20px rgba(0,0,0,.25);
  white-space:nowrap;
}
.message-video-shell.is-native.is-circle .video-circle-timeline__time--current{left:2px;top:72px}
.message-video-shell.is-native.is-circle .video-circle-timeline__time--duration{right:2px;bottom:52px}
.message-video-shell.is-native.is-circle .custom-media-player__controls{display:none}
@media (max-width:640px){
  .message-video-shell.is-native.is-circle{width:210px;max-width:210px;margin:6px auto 8px}
  .message-video-shell.is-native.is-circle .custom-media-player.is-video.is-compact{width:200px;height:200px}
  .message-video-shell.is-native.is-circle .video-circle-timeline__center-btn{width:54px;height:54px}
  .message-video-shell.is-native.is-circle .video-circle-timeline__time{font-size:.74rem;padding:4px 7px}
  .message-video-shell.is-native.is-circle .video-circle-timeline__time--current{left:0;top:64px}
  .message-video-shell.is-native.is-circle .video-circle-timeline__time--duration{right:0;bottom:44px}
}
@media (max-width:420px){
  .message-video-shell.is-native.is-circle{width:196px;max-width:196px}
  .message-video-shell.is-native.is-circle .custom-media-player.is-video.is-compact{width:188px;height:188px}
  .message-video-shell.is-native.is-circle .video-circle-timeline__time--current{top:58px}
  .message-video-shell.is-native.is-circle .video-circle-timeline__time--duration{bottom:38px}
}

.call-overlay{position:fixed;inset:0;z-index:1200;display:flex;align-items:center;justify-content:center;padding:20px}
.call-overlay[hidden],.incoming-call-modal[hidden],.auth-modal[hidden]{display:none!important}
.call-overlay__backdrop,.auth-modal__backdrop{position:absolute;inset:0;background:rgba(5,7,15,.72);backdrop-filter:blur(6px)}
.call-overlay__card{position:relative;z-index:1;width:min(980px,100%);padding:18px;border-radius:24px;max-height:min(94vh,980px);overflow:auto}
.call-overlay__state{font-weight:800;margin-bottom:14px}
.call-overlay__peer{display:flex;gap:14px;align-items:center;margin-bottom:16px}
.call-overlay__peer img,.incoming-call-modal__avatar img{width:72px;height:72px;border-radius:50%;object-fit:cover}
.call-video-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:14px;align-items:start}
.call-video-grid video{width:100%;min-height:220px;border-radius:22px;background:#020817;object-fit:cover}
.call-video-grid video:last-child{min-height:180px}
.call-controls{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.incoming-call-modal{position:fixed;inset:0;z-index:1250;display:flex;align-items:center;justify-content:center;padding:20px}
.incoming-call-modal__dialog{position:relative;z-index:1;text-align:center;width:min(420px,100%);padding:24px;border-radius:24px}
.incoming-call-modal__avatar{display:flex;justify-content:center;margin-bottom:16px}
.incoming-call-modal__actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:18px}
@media (max-width:820px){
  .call-overlay{padding:14px}
  .call-video-grid{grid-template-columns:1fr}
  .call-video-grid video:first-child{min-height:240px;max-height:52vh}
  .call-video-grid video:last-child{width:min(42vw,220px);min-height:140px;justify-self:end}
  .call-controls .site-btn{flex:1 1 calc(50% - 8px)}
}
@media (max-width:640px){
  .call-overlay{padding:8px;align-items:stretch}
  .call-overlay__card{width:100%;padding:14px;border-radius:20px}
  .call-video-grid video:first-child{min-height:220px;max-height:46vh}
  .call-video-grid video:last-child{width:min(44vw,150px);max-height:120px;border-radius:16px}
  .call-controls .site-btn{min-height:50px;padding:11px 12px;border-radius:16px;flex:1 1 calc(50% - 8px)}
  .incoming-call-modal__dialog{width:min(calc(100vw - 16px),420px);padding:18px;border-radius:22px}
  .incoming-call-modal__actions .site-btn{width:100%}
}

/* ===== 2026-04-25 hotfix: users presence dot + cookie banner ===== */
.home-user-status{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px;color:var(--muted);font-size:.9rem;}
.home-user-status .online-dot{position:static;right:auto;bottom:auto;flex:0 0 10px;width:10px;height:10px;border:0;border-radius:999px;background:#8da0c2;box-shadow:none;transform:none;}
.home-user-status .online-dot.is-online{background:#52d17c;box-shadow:0 0 0 4px rgba(82,209,124,.14);}
.home-user-card .home-user-meta,.home-user-card .home-user-copy{min-width:0;}
.cookie-banner{position:fixed;left:50%;right:auto;bottom:max(18px, env(safe-area-inset-bottom));transform:translateX(-50%);width:min(760px, calc(100vw - 28px));max-width:calc(100vw - 28px);display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;padding:18px 20px;border-radius:26px;z-index:1000;pointer-events:auto;}
.cookie-banner p{margin:0;line-height:1.35;max-width:none;}
.cookie-actions{display:flex;gap:10px;align-items:center;flex-wrap:nowrap;margin:0;}
.cookie-actions .button,.cookie-actions .button-secondary{width:auto;white-space:nowrap;min-height:48px;padding:12px 18px;}
@media (max-width:640px){.home-user-card{grid-template-columns:72px minmax(0,1fr);gap:14px}.home-user-card img{width:72px;height:72px;border-radius:20px}.home-user-actions{display:grid;grid-template-columns:1fr}.cookie-banner{left:10px;right:10px;bottom:max(10px, env(safe-area-inset-bottom));transform:none;width:auto;max-width:none;grid-template-columns:1fr;padding:16px}.cookie-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.cookie-actions .button,.cookie-actions .button-secondary{width:100%;justify-content:center}}

/* 2026-04-25 requested hotfix: video-circle without timeline */
.message-video-shell.is-native.is-circle .custom-media-player__controls,
.message-video-shell.is-native.is-circle .custom-media-player__overlay,
.message-video-shell.is-native.is-circle .video-circle-timeline__svg,
.message-video-shell.is-native.is-circle .video-circle-timeline__track,
.message-video-shell.is-native.is-circle .video-circle-timeline__progress,
.message-video-shell.is-native.is-circle .video-circle-timeline__thumb,
.message-video-shell.is-native.is-circle .video-circle-timeline__time{display:none;opacity:0;visibility:hidden;pointer-events:none}
.message-video-shell.is-native.is-circle .video-circle-timeline{position:absolute;inset:0;z-index:9;pointer-events:none;display:block}
.message-video-shell.is-native.is-circle .video-circle-timeline__center-btn{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:58px;height:58px;border-radius:50%;display:grid;place-items:center;opacity:0;pointer-events:auto;z-index:12}
.message-video-shell.is-native.is-circle .custom-media-player:not(.is-playing) .video-circle-timeline__center-btn,
.message-video-shell.is-native.is-circle .custom-media-player.show-mobile-controls .video-circle-timeline__center-btn,
.message-video-shell.is-native.is-circle .custom-media-player:hover .video-circle-timeline__center-btn,
.message-video-shell.is-native.is-circle .custom-media-player:focus-within .video-circle-timeline__center-btn{opacity:.92}

/* 2026-04-25 requested hotfix: mobile header/menu and homepage spacing */
@media(max-width:920px){
  .site-header{z-index:120;overflow:visible}
  .header-inner{position:relative;z-index:121;overflow:visible}
  .header-icon-btn,.menu-toggle,.lang-pill{display:inline-flex;align-items:center;justify-content:center;text-align:center;line-height:1;box-sizing:border-box}
  .header-icon-btn svg,.header-icon-btn img{display:block;margin:auto;flex:0 0 auto;transform:none}
  .menu-toggle{position:relative;padding:0}
  .menu-toggle span{left:50%;width:22px;margin:0;transform:translateX(-50%);transform-origin:center}
  .menu-toggle span:nth-child(1){top:calc(50% - 7px)}
  .menu-toggle span:nth-child(2){top:50%;transform:translate(-50%,-50%)}
  .menu-toggle span:nth-child(3){top:calc(50% + 7px)}
  .menu-toggle.is-open span:nth-child(1){top:50%;transform:translate(-50%,-50%) rotate(45deg)}
  .menu-toggle.is-open span:nth-child(2){top:50%;transform:translate(-50%,-50%);opacity:0}
  .menu-toggle.is-open span:nth-child(3){top:50%;transform:translate(-50%,-50%) rotate(-45deg)}
  .site-nav{top:calc(env(safe-area-inset-top) + 116px);z-index:110;max-height:calc(100dvh - 136px)}
  body[data-user-auth="1"] .site-nav{top:calc(env(safe-area-inset-top) + 124px);max-height:calc(100dvh - 148px)}
}
@media(max-width:640px){
  .site-nav{top:calc(env(safe-area-inset-top) + 106px);left:20px;right:20px}
  body[data-user-auth="1"] .site-nav{top:calc(env(safe-area-inset-top) + 112px)}
}
.section-streaming{padding-bottom:12px}
.section-streaming + #premium{padding-top:12px}
#streaming.section-block{padding-bottom:12px}
#streaming + #premium.section-block{padding-top:12px}
@media(max-width:760px){
  .section-streaming{padding-bottom:8px}
  .section-streaming + #premium{padding-top:8px}
  #streaming.section-block{padding-bottom:8px}
  #streaming + #premium.section-block{padding-top:8px}
}

/* 2026-04-25 fix4: mobile header overlays */
@media (max-width:860px){
  .header-notice-dropdown{
    top:calc(env(safe-area-inset-top) + 104px);
    z-index:260;
  }
  .header-player-panel{
    z-index:320;
    background:rgba(5,8,17,.82);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
  }
  body:has(.header-player-panel:not([hidden])) .site-header,
  body:has(.header-player-panel:not([hidden])) .mobile-bottom-nav,
  body:has(.header-player-panel:not([hidden])) .profile-player-fab{
    visibility:hidden;
    pointer-events:none;
  }
}

/* 2026-04-25 fix6: tablet landscape menu must be behind burger */
@media (min-width:761px) and (max-width:1180px){
  .site-header{overflow:visible;}
  .header-inner{grid-template-columns:auto 1fr auto;align-items:center;overflow:visible;}
  .menu-toggle{display:inline-flex;align-items:center;justify-content:center;}
  .site-nav{display:none;position:fixed;left:24px;right:24px;top:calc(env(safe-area-inset-top) + 116px);width:auto;max-height:min(58vh,520px);overflow:auto;padding:18px;border-radius:26px;border:1px solid var(--line);background:rgba(6,12,24,.97);box-shadow:var(--shadow);z-index:140;}
  .site-nav.is-open,body.menu-open .site-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;visibility:visible;pointer-events:auto;}
  .site-nav a{padding:12px 14px;border-radius:16px;background:rgba(255,255,255,.025);}
}
@media (min-width:761px) and (max-width:1180px) and (orientation:portrait){
  .site-nav.is-open,body.menu-open .site-nav{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (min-width:1181px){
  .site-nav{display:flex;position:static;visibility:visible;pointer-events:auto;}
  .menu-toggle{display:none;}
}

/* 2026-04-26: remove logo outline/border on desktop, tablet and mobile */
.brand img,
.site-header .brand img,
body.utility-page .brand img,
.header-inner .brand img {
  border: 0 ;
  outline: 0 ;
  box-shadow: none ;
  background: transparent ;
}
.brand:focus, .brand:focus-visible, .brand img:focus, .brand img:focus-visible {
  outline: 0 ;
  box-shadow: none ;
}


/* 2026-04-26 upload/media/tablet final fixes */
.upload-progress{
  box-sizing:border-box;
  position:relative;
  z-index:5;
  max-width:100%;
  padding:8px 10px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  background:rgba(8,14,28,.92);
  box-shadow:0 12px 30px rgba(0,0,0,.22);
}
.upload-progress__meta{align-items:center;min-width:0}
.upload-progress__name{min-width:0;max-width:100%}
.upload-progress__percent{flex:0 0 auto}
.upload-progress__bar{width:100%;min-width:0}
.profile-cover-avatar-form .upload-progress,
.profile-cover-upload-form .upload-progress,
.upload-progress--floating{
  position:absolute;
  left:50%;
  bottom:10px;
  transform:translateX(-50%);
  width:min(360px,calc(100vw - 36px));
  pointer-events:none;
}
.profile-cover-avatar-edit .upload-progress,
.profile-cover-upload-trigger .upload-progress{display:none}
.upload-progress--compact{padding:7px 9px;border-radius:12px}
.upload-progress--compact .upload-progress__bar{height:5px}
.feed-upload-field .upload-progress,
.feed-edit-upload-field .upload-progress,
.compose-box .upload-progress{margin-top:10px;grid-column:1/-1}

@media (min-width:768px) and (max-width:1180px) and (orientation:landscape){
  .promo-player-bar{
    left:50%;
    right:auto;
    bottom:12px;
    transform:translateX(-50%);
    width:min(620px,calc(100vw - 160px));
    grid-template-columns:48px minmax(0,1fr) auto;
    gap:10px;
    padding:10px 12px;
    border-radius:20px;
  }
  .promo-player-cover{width:48px;height:48px;border-radius:14px}
  .promo-player-copy strong{font-size:.95rem}
  .promo-player-copy span{font-size:.78rem}
  .promo-player-progress{grid-column:1/-1;padding-top:0}
  .promo-player-controls{gap:6px}
  .promo-player-btn{width:38px;height:38px;min-width:38px}
  .menu-toggle{
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0;
  }
  .menu-toggle span{
    position:absolute;
    left:50%;
    width:22px;
    height:2px;
    margin:0;
    transform:translateX(-50%);
    transform-origin:center;
  }
  .menu-toggle span:nth-child(1){top:calc(50% - 7px)}
  .menu-toggle span:nth-child(2){top:50%;transform:translate(-50%,-50%)}
  .menu-toggle span:nth-child(3){top:calc(50% + 7px)}
  .menu-toggle.is-open span:nth-child(1){top:50%;transform:translate(-50%,-50%) rotate(45deg)}
  .menu-toggle.is-open span:nth-child(2){top:50%;transform:translate(-50%,-50%);opacity:0}
  .menu-toggle.is-open span:nth-child(3){top:50%;transform:translate(-50%,-50%) rotate(-45deg)}
  .header-notice-dropdown{
    position:fixed;
    top:calc(var(--header-height, 86px) + 18px);
    right:18px;
    left:auto;
    width:min(420px,calc(100vw - 36px));
    max-height:calc(100vh - var(--header-height, 86px) - 36px);
    overflow:auto;
    z-index:999;
  }
}

/* 2026-04-26: restore incoming call accept/decline modal above every layout */
.incoming-call-modal:not([hidden]),
.incoming-call-modal.is-visible{display:grid;place-items:center;position:fixed;inset:0;z-index:9999;padding:clamp(14px,2vw,24px);pointer-events:auto;opacity:1;visibility:visible}
.incoming-call-modal .auth-modal__backdrop{position:absolute;inset:0;z-index:0;background:rgba(2,7,18,.82)}
.incoming-call-modal__dialog{position:relative;z-index:1;width:min(430px,calc(100vw - 28px));max-width:430px;margin:0 auto;text-align:center;display:grid;gap:14px;justify-items:center}
.incoming-call-modal__actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;width:100%}
.incoming-call-modal__actions .site-btn{display:inline-flex;align-items:center;justify-content:center;min-width:138px;visibility:visible;opacity:1}
@media (max-width:640px){.incoming-call-modal__actions .site-btn{width:100%}}

/* 2026-04-26: tablet landscape premium player compact centered */
@media (orientation:landscape) and (min-width:768px) and (max-width:1180px) and (max-height:900px){
  .header-player-panel:not([hidden]){display:flex;align-items:center;justify-content:center;padding:12px;overflow:auto}
  .header-player-panel .header-player-dialog{width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 32px);margin:0 auto;overflow:auto}
  .header-player-panel .header-player-shell{grid-template-columns:minmax(0,1fr) minmax(220px,300px);min-height:0;max-height:calc(100dvh - 40px);border-radius:24px}
  .header-player-panel .header-player-stage,.header-player-panel .header-player-playlist{padding:16px}
  .header-player-panel .header-player-now{grid-template-columns:70px minmax(0,1fr);grid-template-areas:'cover copy' 'controls controls' 'progress progress';gap:12px;padding:14px;border-radius:20px}
  .header-player-panel .header-player-cover{width:70px;height:70px;border-radius:18px}
  .header-player-panel .header-player-now-copy strong{font-size:1.15rem}
  .header-player-panel .header-player-control{width:38px;height:38px;min-width:38px}
  .header-player-panel .header-player-control.is-play{width:46px;height:46px;min-width:46px}
  .header-player-panel .header-player-track{grid-template-columns:48px minmax(0,1fr) auto;padding:10px;border-radius:16px;gap:10px}
  .header-player-panel .header-player-track img{width:48px;height:48px;border-radius:14px}
  .header-player-panel .header-player-playlist{max-height:calc(100dvh - 72px);overflow:auto}
}

/* 2026-04-27 mobile player/header + compact play animation fix */
@media (max-width:860px){body:has(.header-player-panel:not([hidden])) .site-header,body:has(.header-player-panel:not([hidden])) .mobile-bottom-nav{visibility:visible;opacity:1;pointer-events:auto}body:has(.header-player-panel:not([hidden])) .profile-player-fab{visibility:hidden;pointer-events:none}.header-player-panel:not([hidden]){display:flex;align-items:flex-start;justify-content:center;padding:calc(92px + env(safe-area-inset-top)) 10px calc(96px + env(safe-area-inset-bottom));overflow:auto;z-index:78;background:rgba(5,8,17,.86)}.header-player-panel .header-player-dialog{margin:0 auto;width:min(calc(100vw - 18px),560px);max-height:none}}
.header-player-control.is-play,.promo-player-btn.is-play{overflow:hidden;position:relative;gap:0}.header-player-control.is-play .play-eq,.promo-player-btn.is-play .play-eq{position:absolute;right:7px;bottom:8px;margin:0;gap:2px;max-width:18px;overflow:hidden;transform:scale(.78);transform-origin:center}.header-player-control.is-play .icon-pause,.promo-player-btn.is-play .icon-pause{font-size:.9em;line-height:1}

/* FINAL FIX: unified compact play/pause/equalizer buttons across desktop, tablet and mobile */
.header-player-btn,
.header-icon-btn.header-player-btn,
.header-player-control.is-play,
.promo-player-btn.is-play,
.player-button{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  overflow:hidden;
  gap:0;
  line-height:1;
  text-align:center;
  white-space:nowrap;
  box-sizing:border-box;
}
.header-player-btn *,
.header-player-control.is-play *,
.promo-player-btn.is-play *,
.player-button *{box-sizing:border-box;}
.header-player-control.is-play .icon-play,
.promo-player-btn.is-play .icon-play{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  margin:0;
  padding:0;
  transform:translateX(1px);
  font-size:18px;
  line-height:1;
}
.header-player-control.is-play.is-playing .icon-play,
.promo-player-btn.is-play.is-playing .icon-play{display:none;}
.header-player-control.is-play .icon-pause,
.promo-player-btn.is-play .icon-pause{display:none;}
.header-player-control.is-play.is-playing .icon-pause,
.promo-player-btn.is-play.is-playing .icon-pause{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  margin:0;
  padding:0;
  transform:none;
  font-size:18px;
  line-height:1;
  letter-spacing:-2px;
}
.header-player-control.is-play .play-eq,
.promo-player-btn.is-play .play-eq{
  display:none;
  position:absolute;
  left:50%;
  right:auto;
  bottom:8px;
  width:18px;
  height:9px;
  margin:0;
  padding:0;
  transform:translateX(-50%);
  align-items:flex-end;
  justify-content:center;
  gap:2px;
  pointer-events:none;
  overflow:hidden;
}
.header-player-control.is-play.is-playing .play-eq,
.promo-player-btn.is-play.is-playing .play-eq{display:inline-flex;}
.header-player-control.is-play .play-eq i,
.promo-player-btn.is-play .play-eq i,
.header-player-mini-eq i{
  display:block;
  width:3px;
  min-width:3px;
  max-width:3px;
  height:5px;
  border-radius:999px;
  background:currentColor;
  transform-origin:bottom center;
  animation:leskovPlayerEq .9s ease-in-out infinite;
}

.header-player-control.is-play .play-eq i:nth-child(2),
.promo-player-btn.is-play .play-eq i:nth-child(2),
.header-player-mini-eq i:nth-child(2){animation-delay:.14s;}
.header-player-control.is-play .play-eq i:nth-child(3),
.promo-player-btn.is-play .play-eq i:nth-child(3),
.header-player-mini-eq i:nth-child(3){animation-delay:.28s;}
@keyframes leskovPlayerEq{0%,100%{height:4px;opacity:.72}50%{height:9px;opacity:1}}
.header-player-btn .header-player-icon{display:block;width:20px;height:20px;margin:0;transform:none;animation:none;}
.header-player-btn .header-player-mini-eq{
  display:none;
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:22px;
  height:16px;
  margin:0;
  padding:0;
  align-items:flex-end;
  justify-content:center;
  gap:3px;
  overflow:hidden;
}
.header-player-btn.is-playing .header-player-icon{display:none;}
.header-player-btn.is-playing .header-player-mini-eq{display:inline-flex;}
.header-player-btn.is-playing,
.header-icon-btn.is-playing{box-shadow:0 0 0 4px rgba(122,230,210,.10);}
.header-player-btn.is-playing svg,
.header-icon-btn.is-playing svg{animation:none;}
.player-button.is-playing{
  font-size:0;
  color:#07111f;
}
.player-button.is-playing::before{
  content:'Ⅱ';
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  font-weight:900;
  letter-spacing:-2px;
  line-height:1;
}
.player-button.is-playing::after{
  content:'';
  position:absolute;
  left:50%;
  bottom:8px;
  width:18px;
  height:9px;
  transform:translateX(-50%);
  background:linear-gradient(currentColor,currentColor) left bottom/3px 5px no-repeat,linear-gradient(currentColor,currentColor) center bottom/3px 9px no-repeat,linear-gradient(currentColor,currentColor) right bottom/3px 6px no-repeat;
  opacity:.9;
  animation:leskovPlayerEqFade .9s ease-in-out infinite;
  border-radius:999px;
}
@keyframes leskovPlayerEqFade{0%,100%{opacity:.55}50%{opacity:1}}
@media (max-width:760px){
  .header-player-control.is-play,.promo-player-btn.is-play{width:56px;height:56px;min-width:56px;}
  .header-player-control.is-play .play-eq,.promo-player-btn.is-play .play-eq,.player-button.is-playing::after{bottom:9px;}
  .header-player-control.is-play.is-playing .icon-pause,.promo-player-btn.is-play.is-playing .icon-pause{font-size:20px;}
}
@media (min-width:761px) and (max-width:1180px){
  .header-player-control.is-play,.promo-player-btn.is-play{width:50px;height:50px;min-width:50px;}
  .header-player-control.is-play .play-eq,.promo-player-btn.is-play .play-eq{bottom:8px;}
}

/* 2026-04-27 FINAL PREMIUM DESIGN: unified music player buttons */
.header-player-btn,
.header-icon-btn.header-player-btn,
.header-player-control,
.promo-player-btn,
.player-button{
  --leskov-btn-size:52px;
  position:relative;
  isolation:isolate!important;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  width:var(--leskov-btn-size);
  height:var(--leskov-btn-size);
  min-width:var(--leskov-btn-size);
  min-height:var(--leskov-btn-size);
  padding:0;
  border-radius:999px;
  border:1px solid rgba(135,160,205,.28);
  background:
    radial-gradient(circle at 32% 24%, rgba(255,255,255,.22), transparent 34%),
    linear-gradient(145deg, rgba(28,37,61,.96), rgba(11,16,30,.96));
  color:#eef5ff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10), 0 10px 24px rgba(0,0,0,.28);
  overflow:hidden;
  line-height:1;
  text-align:center;
  cursor:pointer;
  transform:translateZ(0);
  transition:transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
.header-player-btn:hover,
.header-player-control:hover,
.promo-player-btn:hover,
.player-button:hover{
  transform:translateY(-1px) translateZ(0);
  border-color:rgba(126,241,217,.54);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14), 0 14px 32px rgba(0,0,0,.34), 0 0 0 4px rgba(126,241,217,.08);
}
.header-player-control.is-play,
.promo-player-btn.is-play,
.player-button{
  --leskov-btn-size:58px;
  border:none;
  color:#061120;
  background:
    radial-gradient(circle at 30% 24%, rgba(255,255,255,.55), transparent 30%),
    linear-gradient(135deg, #77a9ff 0%, #7cf1d4 100%);
  box-shadow:0 12px 30px rgba(91,166,255,.24), 0 0 0 1px rgba(126,241,217,.25), inset 0 1px 0 rgba(255,255,255,.35);
}
.header-player-control.is-play::before,
.promo-player-btn.is-play::before,
.player-button::before{
  content:'';
  position:absolute;
  inset:5px;
  border-radius:inherit;
  background:linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,0) 58%);
  opacity:.85;
  z-index:-1;
  pointer-events:none;
}
.header-player-control.is-play.is-playing,
.promo-player-btn.is-play.is-playing,
.player-button.is-playing,
.header-player-btn.is-playing{
  border-color:rgba(126,241,217,.58);
  box-shadow:0 0 0 5px rgba(126,241,217,.10), 0 16px 36px rgba(91,166,255,.26), inset 0 1px 0 rgba(255,255,255,.35);
  animation:leskovBtnBreath 1.8s ease-in-out infinite;
}
@keyframes leskovBtnBreath{0%,100%{filter:saturate(1);transform:translateZ(0) scale(1)}50%{filter:saturate(1.12);transform:translateZ(0) scale(1.025)}}
.header-player-control.is-play .icon-play,
.promo-player-btn.is-play .icon-play{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  margin:0;
  transform:translateX(2px);
  font-size:20px;
  line-height:1;
  text-shadow:none;
}
.header-player-control.is-play .icon-pause,
.promo-player-btn.is-play .icon-pause{
  display:none;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  margin:0;
  padding:0 0 7px 0;
  font-size:0;
  line-height:1;
}
.header-player-control.is-play.is-playing .icon-play,
.promo-player-btn.is-play.is-playing .icon-play{display:none;}
.header-player-control.is-play.is-playing .icon-pause,
.promo-player-btn.is-play.is-playing .icon-pause{display:inline-flex;}
.header-player-control.is-play.is-playing .icon-pause::before,
.promo-player-btn.is-play.is-playing .icon-pause::before{
  content:'';
  width:16px;
  height:20px;
  background:linear-gradient(currentColor,currentColor) left center/5px 18px no-repeat,linear-gradient(currentColor,currentColor) right center/5px 18px no-repeat;
  border-radius:3px;
}
.header-player-control.is-play .play-eq,
.promo-player-btn.is-play .play-eq{
  display:none;
  position:absolute;
  left:50%;
  bottom:10px;
  width:22px;
  height:11px;
  transform:translateX(-50%);
  align-items:flex-end;
  justify-content:center;
  gap:3px;
  margin:0;
  padding:0;
  overflow:hidden;
  pointer-events:none;
}
.header-player-control.is-play.is-playing .play-eq,
.promo-player-btn.is-play.is-playing .play-eq{display:inline-flex;}
.header-player-control.is-play .play-eq i,
.promo-player-btn.is-play .play-eq i,
.header-player-mini-eq i{
  display:block;
  width:4px;
  min-width:4px;
  height:5px;
  border-radius:999px;
  background:currentColor;
  opacity:.92;
  transform-origin:bottom center;
  animation:leskovEqWave .82s ease-in-out infinite;
}
.header-player-control.is-play .play-eq i:nth-child(2),
.promo-player-btn.is-play .play-eq i:nth-child(2),
.header-player-mini-eq i:nth-child(2){animation-delay:.13s;}
.header-player-control.is-play .play-eq i:nth-child(3),
.promo-player-btn.is-play .play-eq i:nth-child(3),
.header-player-mini-eq i:nth-child(3){animation-delay:.26s;}
@keyframes leskovEqWave{0%,100%{height:4px;opacity:.62}35%{height:11px;opacity:1}70%{height:7px;opacity:.86}}
.player-button{font-size:0;}
.player-button::after{
  content:'▶';
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  transform:translateX(2px);
  font-size:20px;
  font-weight:900;
  line-height:1;
  color:currentColor;
  background:none;
  position:static;
  opacity:1;
  animation:none;
}
.player-button.is-playing::before{
  content:''!important;
  position:absolute;
  left:50%;
  top:43%;
  width:16px;
  height:19px;
  transform:translate(-50%,-50%);
  background:linear-gradient(currentColor,currentColor) left center/5px 18px no-repeat,linear-gradient(currentColor,currentColor) right center/5px 18px no-repeat;
  border-radius:3px;
  z-index:1;
}
.player-button.is-playing::after{
  content:''!important;
  position:absolute;
  left:50%;
  bottom:10px;
  width:22px;
  height:11px;
  transform:translateX(-50%);
  background:
    linear-gradient(currentColor,currentColor) 0 100%/4px 5px no-repeat,
    linear-gradient(currentColor,currentColor) 9px 100%/4px 11px no-repeat,
    linear-gradient(currentColor,currentColor) 18px 100%/4px 7px no-repeat;
  border-radius:999px;
  opacity:.92;
  animation:leskovEqGlow .82s ease-in-out infinite;
  z-index:1;
}
@keyframes leskovEqGlow{0%,100%{opacity:.58;filter:drop-shadow(0 0 0 rgba(6,17,32,0))}50%{opacity:1;filter:drop-shadow(0 0 5px rgba(6,17,32,.35))}}
.header-player-btn .header-player-icon{
  display:block;
  width:21px;
  height:21px;
  margin:0;
  transform:translateX(1px);
  animation:none;
}
.header-player-btn .header-player-mini-eq{
  display:none;
  position:absolute;
  left:50%;
  top:50%;
  width:25px;
  height:22px;
  transform:translate(-50%,-50%);
  align-items:flex-end;
  justify-content:center;
  gap:4px;
  padding:0;
  margin:0;
  overflow:hidden;
}
.header-player-btn.is-playing .header-player-icon{display:none;}
.header-player-btn.is-playing .header-player-mini-eq{display:inline-flex;}
.header-player-btn.is-playing .header-player-mini-eq i{height:9px;box-shadow:0 0 8px rgba(126,241,217,.42);}
@media (max-width:760px){
  .header-player-btn,.header-icon-btn.header-player-btn{--leskov-btn-size:84px;}
  .header-player-control.is-play,.promo-player-btn.is-play,.player-button{--leskov-btn-size:64px;}
  .header-player-control:not(.is-play),.promo-player-btn:not(.is-play){--leskov-btn-size:54px;}
  .header-player-control.is-play .play-eq,.promo-player-btn.is-play .play-eq,.player-button.is-playing::after{bottom:11px;}
}
@media (min-width:761px) and (max-width:1180px){
  .header-player-control.is-play,.promo-player-btn.is-play,.player-button{--leskov-btn-size:54px;}
  .header-player-control:not(.is-play),.promo-player-btn:not(.is-play){--leskov-btn-size:44px;}
}
@media (prefers-reduced-motion:reduce){
  .header-player-control.is-play.is-playing,
  .promo-player-btn.is-play.is-playing,
  .player-button.is-playing,
  .header-player-btn.is-playing,
  .header-player-control.is-play .play-eq i,
  .promo-player-btn.is-play .play-eq i,
  .header-player-mini-eq i,
  .player-button.is-playing::after{animation:none;}
}

/* FINAL: unified animated activity icon for all music play buttons */
.header-player-control.is-play,.promo-player-btn.is-play,.player-button,.header-player-btn{position:relative;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;}
.header-player-control.is-play .icon-play,.header-player-control.is-play .icon-pause,.promo-player-btn.is-play .icon-play,.promo-player-btn.is-play .icon-pause,.header-player-btn .header-player-icon,.header-player-control.is-play::before,.header-player-control.is-play::after,.promo-player-btn.is-play::before,.promo-player-btn.is-play::after,.player-button::before,.player-button::after{display:none;content:none;}
.header-player-control.is-play .play-eq,.promo-player-btn.is-play .play-eq,.header-player-btn .header-player-mini-eq,.player-button .player-activity{position:absolute;left:50%;top:50%;bottom:auto;right:auto;transform:translate(-50%,-50%);width:26px;height:22px;margin:0;padding:0;display:inline-flex;align-items:flex-end;justify-content:center;gap:4px;pointer-events:none;}
.header-player-control.is-play .play-eq i,.promo-player-btn.is-play .play-eq i,.header-player-btn .header-player-mini-eq i,.player-button .player-activity i{display:block;width:4px;min-width:4px;height:8px;border-radius:999px;background:currentColor;opacity:.84;transform-origin:bottom center;animation:none;box-shadow:0 0 10px rgba(124,241,211,.20);}
.header-player-control.is-play .play-eq i:nth-child(2),.promo-player-btn.is-play .play-eq i:nth-child(2),.header-player-btn .header-player-mini-eq i:nth-child(2),.player-button .player-activity i:nth-child(2){height:13px;}
.header-player-control.is-play .play-eq i:nth-child(3),.promo-player-btn.is-play .play-eq i:nth-child(3),.header-player-btn .header-player-mini-eq i:nth-child(3),.player-button .player-activity i:nth-child(3){height:10px;}
.header-player-control.is-play.is-playing .play-eq i,.promo-player-btn.is-play.is-playing .play-eq i,.header-player-btn.is-playing .header-player-mini-eq i,.player-button.is-playing .player-activity i{animation:leskovUnifiedPlayerPulse .78s ease-in-out infinite;}
.header-player-control.is-play.is-playing .play-eq i:nth-child(2),.promo-player-btn.is-play.is-playing .play-eq i:nth-child(2),.header-player-btn.is-playing .header-player-mini-eq i:nth-child(2),.player-button.is-playing .player-activity i:nth-child(2){animation-delay:.13s;}
.header-player-control.is-play.is-playing .play-eq i:nth-child(3),.promo-player-btn.is-play.is-playing .play-eq i:nth-child(3),.header-player-btn.is-playing .header-player-mini-eq i:nth-child(3),.player-button.is-playing .player-activity i:nth-child(3){animation-delay:.26s;}
.header-player-control.is-play.is-playing,.promo-player-btn.is-play.is-playing,.player-button.is-playing,.header-player-btn.is-playing{border-color:rgba(124,241,211,.52);box-shadow:0 0 0 5px rgba(124,241,211,.11),0 18px 34px rgba(0,0,0,.28);}
@keyframes leskovUnifiedPlayerPulse{0%,100%{height:6px;opacity:.64;filter:drop-shadow(0 0 0 rgba(124,241,211,0));}42%{height:20px;opacity:1;filter:drop-shadow(0 0 8px rgba(124,241,211,.42));}72%{height:12px;opacity:.9;}}
@media (prefers-reduced-motion:reduce){.header-player-control.is-play.is-playing .play-eq i,.promo-player-btn.is-play.is-playing .play-eq i,.header-player-btn.is-playing .header-player-mini-eq i,.player-button.is-playing .player-activity i{animation:none;}}

/* ===== FINAL FIX 2026-04-27: stable unified player animation ===== */
.header-player-control.is-play,
.promo-player-btn.is-play,
.player-button,
.header-player-btn{
  position:relative;
  overflow:hidden;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:0;
  line-height:1;
}
.header-player-control.is-play .icon-play,
.header-player-control.is-play .icon-pause,
.promo-player-btn.is-play .icon-play,
.promo-player-btn.is-play .icon-pause,
.header-player-btn .header-player-icon,
.header-player-control.is-play::before,
.header-player-control.is-play::after,
.promo-player-btn.is-play::before,
.promo-player-btn.is-play::after,
.player-button::before,
.player-button::after{
  display:none;
  content:none;
  opacity:0;
}
.header-player-control.is-play .play-eq,
.promo-player-btn.is-play .play-eq,
.header-player-btn .header-player-mini-eq,
.player-button .player-activity{
  position:absolute;
  left:50%;
  top:50%;
  right:auto;
  bottom:auto;
  transform:translate(-50%,-50%);
  width:28px;
  height:24px;
  margin:0;
  padding:0;
  display:inline-flex;
  align-items:flex-end;
  justify-content:center;
  gap:4px;
  overflow:visible;
  pointer-events:none;
}
.header-player-control.is-play .play-eq i,
.promo-player-btn.is-play .play-eq i,
.header-player-btn .header-player-mini-eq i,
.player-button .player-activity i{
  display:block;
  flex:0 0 4px;
  width:4px;
  min-width:4px;
  border-radius:999px;
  background:currentColor;
  opacity:.86;
  transform-origin:bottom center;
  animation:none;
  box-shadow:0 0 10px rgba(124,241,211,.22);
}
.header-player-control.is-play .play-eq i:nth-child(1),
.promo-player-btn.is-play .play-eq i:nth-child(1),
.header-player-btn .header-player-mini-eq i:nth-child(1),
.player-button .player-activity i:nth-child(1){height:9px;transform:scaleY(.72);}
.header-player-control.is-play .play-eq i:nth-child(2),
.promo-player-btn.is-play .play-eq i:nth-child(2),
.header-player-btn .header-player-mini-eq i:nth-child(2),
.player-button .player-activity i:nth-child(2){height:16px;transform:scaleY(.72);}
.header-player-control.is-play .play-eq i:nth-child(3),
.promo-player-btn.is-play .play-eq i:nth-child(3),
.header-player-btn .header-player-mini-eq i:nth-child(3),
.player-button .player-activity i:nth-child(3){height:12px;transform:scaleY(.72);}
.header-player-control.is-play.is-playing .play-eq i,
.promo-player-btn.is-play.is-playing .play-eq i,
.header-player-btn.is-playing .header-player-mini-eq i,
.player-button.is-playing .player-activity i{
  animation:leskovPlayerBarsStable .74s ease-in-out infinite;
}
.header-player-control.is-play.is-playing .play-eq i:nth-child(2),
.promo-player-btn.is-play.is-playing .play-eq i:nth-child(2),
.header-player-btn.is-playing .header-player-mini-eq i:nth-child(2),
.player-button.is-playing .player-activity i:nth-child(2){animation-delay:.12s;}
.header-player-control.is-play.is-playing .play-eq i:nth-child(3),
.promo-player-btn.is-play.is-playing .play-eq i:nth-child(3),
.header-player-btn.is-playing .header-player-mini-eq i:nth-child(3),
.player-button.is-playing .player-activity i:nth-child(3){animation-delay:.24s;}
.header-player-control.is-play.is-playing,
.promo-player-btn.is-play.is-playing,
.player-button.is-playing,
.header-player-btn.is-playing{
  border-color:rgba(124,241,211,.54);
  box-shadow:0 0 0 5px rgba(124,241,211,.12),0 18px 34px rgba(0,0,0,.26);
}
@keyframes leskovPlayerBarsStable{
  0%,100%{transform:scaleY(.42);opacity:.68;}
  45%{transform:scaleY(1);opacity:1;}
  72%{transform:scaleY(.62);opacity:.9;}
}
@media (prefers-reduced-motion:reduce){
  .header-player-control.is-play.is-playing .play-eq i,
  .promo-player-btn.is-play.is-playing .play-eq i,
  .header-player-btn.is-playing .header-player-mini-eq i,
  .player-button.is-playing .player-activity i{animation:none;}
}

/* 2026-04-27 FINAL mobile premium player overlay/header/button size fix */
@media (max-width: 860px){
  .header-icon-btn.header-player-btn,
  .header-player-btn,
  .header-actions .header-player-btn{
    width:52px;
    height:52px;
    min-width:52px;
    max-width:52px;
    flex:0 0 52px;
    padding:0;
    border-radius:999px;
    transform:none;
  }
  .header-icon-btn.header-player-btn .header-player-mini-eq,
  .header-player-btn .header-player-mini-eq{
    position:static;
    transform:none;
    margin:0;
    display:inline-flex;
    align-items:flex-end;
    justify-content:center;
    gap:3px;
    width:auto;
    height:16px;
  }
  .header-player-btn .header-player-mini-eq i{
    width:4px;
    height:10px;
    border-radius:999px;
  }
  body.header-player-open .site-header,
  body.header-player-open .mobile-bottom-nav,
  body:has(.header-player-panel:not([hidden])) .site-header,
  body:has(.header-player-panel:not([hidden])) .mobile-bottom-nav{
    display:none!important;
    visibility:hidden;
    opacity:0;
    pointer-events:none;
  }
  body.header-player-open{overflow:hidden;}
  body.header-player-open .header-player-panel,
  .header-player-panel:not([hidden]){
    z-index:9999;
    position:fixed;
    inset:0;
    display:block;
    padding:calc(10px + env(safe-area-inset-top)) 10px calc(10px + env(safe-area-inset-bottom));
    overflow:auto;
    background:rgba(5,8,17,.94);
  }
  body.header-player-open .header-player-dialog,
  .header-player-panel:not([hidden]) .header-player-dialog{
    width:min(calc(100vw - 20px),560px);
    margin:0 auto;
    max-height:none;
    overflow:visible;
  }
  body.header-player-open .header-player-shell,
  .header-player-panel:not([hidden]) .header-player-shell{
    max-height:none;
    min-height:0;
  }
}
@media (max-width: 520px){
  .header-icon-btn.header-player-btn,
  .header-player-btn,
  .header-actions .header-player-btn{
    width:48px;
    height:48px;
    min-width:48px;
    max-width:48px;
    flex-basis:48px;
  }
}

/* 2026-04-27 FINAL USER FIX: mobile header player button + keep header visible */
@media (max-width: 860px){
  body.header-player-open .site-header,
  body.header-player-open .mobile-bottom-nav,
  body:has(.header-player-panel:not([hidden])) .site-header,
  body:has(.header-player-panel:not([hidden])) .mobile-bottom-nav{
    display:block;
    visibility:visible;
    opacity:1;
    pointer-events:auto;
  }
  body.header-player-open .site-header,
  body:has(.header-player-panel:not([hidden])) .site-header{
    position:sticky;
    top:0;
    z-index:10000;
  }
  body.header-player-open{overflow:auto;}
  .header-actions .header-icon-btn.header-player-btn,
  .site-header .header-icon-btn.header-player-btn,
  .header-inner .header-icon-btn.header-player-btn,
  button.header-icon-btn.header-player-btn,
  .header-player-btn{
    --leskov-btn-size:52px;
    width:52px;
    height:52px;
    min-width:52px;
    min-height:52px;
    max-width:52px;
    max-height:52px;
    flex:0 0 52px;
    aspect-ratio:1/1;
    padding:0;
    border-radius:50%;
    align-self:center;
    transform:none;
  }
  .header-player-btn .header-player-mini-eq,
  .header-icon-btn.header-player-btn .header-player-mini-eq{
    position:absolute;
    left:50%;
    top:50%;
    right:auto;
    bottom:auto;
    transform:translate(-50%,-50%);
    width:22px;
    height:18px;
    margin:0;
    padding:0;
    display:inline-flex;
    align-items:flex-end;
    justify-content:center;
    gap:3px;
  }
  .header-player-btn .header-player-mini-eq i{
    width:4px;
    min-width:4px;
    max-width:4px;
  }
  .header-player-panel:not([hidden]),
  body.header-player-open .header-player-panel{
    position:fixed;
    inset:0;
    z-index:9998;
    display:block;
    padding:calc(118px + env(safe-area-inset-top)) 10px calc(96px + env(safe-area-inset-bottom));
    overflow:auto;
    background:rgba(5,8,17,.94);
  }
  .header-player-panel:not([hidden]) .header-player-dialog,
  body.header-player-open .header-player-dialog{
    width:min(calc(100vw - 20px),560px);
    margin:0 auto;
    max-height:none;
    overflow:visible;
  }
}
@media (max-width:520px){
  .header-actions .header-icon-btn.header-player-btn,
  .site-header .header-icon-btn.header-player-btn,
  .header-inner .header-icon-btn.header-player-btn,
  button.header-icon-btn.header-player-btn,
  .header-player-btn{
    --leskov-btn-size:48px;
    width:48px;
    height:48px;
    min-width:48px;
    min-height:48px;
    max-width:48px;
    max-height:48px;
    flex-basis:48px;
  }
}
.shop-visual{position:relative}.shop-badge{position:absolute;z-index:4;top:14px;left:14px;border-radius:999px;padding:7px 11px;font-size:.72rem;font-weight:900;letter-spacing:.08em;background:linear-gradient(135deg,var(--accent),var(--accent-strong));color:#07111f;box-shadow:0 14px 30px rgba(0,0,0,.25)}.shop-badge.is-soon{background:rgba(255,255,255,.88);color:#101827}.shop-stock{display:inline-flex;width:max-content;margin:4px 0 12px;border:1px solid rgba(255,255,255,.1);border-radius:999px;padding:6px 10px;color:var(--muted);font-size:.82rem;font-weight:800}.shop-stock.is-empty{color:#ffb6b6;background:rgba(255,92,92,.09);border-color:rgba(255,92,92,.22)}.shop-card.is-sold-out .shop-visual{filter:grayscale(.25);opacity:.72}.button.is-disabled,.button:disabled{cursor:not-allowed;opacity:.45;filter:grayscale(.35);pointer-events:none}

/* 2026-04-28 mobile centered merch modal + premium player */
@media (max-width:860px){
  .merch-modal{display:grid;place-items:center;padding:max(10px,env(safe-area-inset-top)) 10px max(10px,env(safe-area-inset-bottom));overflow:auto;}
  .merch-modal[hidden]{display:none!important}
  .merch-modal__card{width:min(92vw,420px);max-height:min(86svh,86vh);overflow:auto;margin:auto;padding:18px;border-radius:24px;}
  .merch-modal__card h2{font-size:clamp(2rem,9vw,3rem);line-height:.98;padding-right:46px;}
  .merch-modal .actions{display:grid;grid-template-columns:1fr;}
}

/* 2026-05-23 final hotfix overrides */
.header-player-now{grid-template-areas:'cover copy' 'controls controls' 'modes modes' 'progress progress'}.header-player-modes{grid-area:modes;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;justify-content:stretch;gap:10px;width:100%;margin:6px 0 2px;flex-wrap:nowrap}.header-player-mode{width:100%;min-width:0;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:9px 12px;border-radius:999px;white-space:nowrap;text-align:center}.header-player-mode[data-header-mode="repeat"]::before{content:'↻'}.header-player-mode[data-header-mode="shuffle"]::before{content:'⇄'}.header-player-mode[data-header-mode="sequential"]::before{content:'☰'}.header-player-mode::before{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:999px;background:rgba(255,255,255,.10);flex:0 0 22px}.header-player-control.is-play.is-playing,.promo-player-btn.is-play.is-playing,.player-button.is-playing,.header-player-btn.is-playing{animation:none}.header-player-control.is-play .play-eq,.promo-player-btn.is-play .play-eq,.header-player-btn .header-player-mini-eq,.player-button .player-activity,.player-button.is-playing::after{display:none;animation:none}.header-player-control.is-play.is-playing .icon-play,.promo-player-btn.is-play.is-playing .icon-play{display:none}.header-player-control.is-play.is-playing .icon-pause,.promo-player-btn.is-play.is-playing .icon-pause{display:inline-flex}.header-player-btn.is-playing .header-player-icon{display:block}
@media(max-width:760px){.header-player-now{grid-template-areas:'cover' 'copy' 'controls' 'modes' 'progress'}.header-player-modes{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.header-player-mode{font-size:.9rem;padding:8px 8px}.header-player-mode::before{width:20px;height:20px}}

/* 2026-05-23 final player icon alignment patch */
.header-player-btn,
.header-icon-btn.header-player-btn,
.header-player-control.is-play,
.promo-player-btn.is-play,
.player-button{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  line-height:1;
  text-align:center;
  box-sizing:border-box;
}
.header-player-control.is-play .play-eq,
.promo-player-btn.is-play .play-eq,
.header-player-btn .header-player-mini-eq,
.player-button .player-activity{
  display:none;
  visibility:hidden;
  opacity:0;
  width:0;
  height:0;
  animation:none;
}
.header-player-control.is-play::before,
.header-player-control.is-play::after,
.promo-player-btn.is-play::before,
.promo-player-btn.is-play::after,
.player-button::before,
.player-button::after{
  content:none;
  display:none;
  opacity:0;
}
.header-player-control.is-play .icon-play,
.header-player-control.is-play .icon-pause,
.promo-player-btn.is-play .icon-play,
.promo-player-btn.is-play .icon-pause,
.player-button .icon-play,
.player-button .icon-pause,
.header-player-btn .header-player-icon{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  margin:0;
  padding:0;
  opacity:1;
  visibility:visible;
  transform:none;
  animation:none;
  pointer-events:none;
  color:currentColor;
}
.header-player-control.is-play .icon-play svg,
.header-player-control.is-play .icon-pause svg,
.promo-player-btn.is-play .icon-play svg,
.promo-player-btn.is-play .icon-pause svg,
.player-button .icon-play svg,
.player-button .icon-pause svg,
.header-player-btn .header-player-icon svg{
  display:block;
  width:23px;
  height:23px;
  fill:currentColor;
  transform:none;
  animation:none;
}
.header-player-btn .header-player-icon svg{width:21px;height:21px;}
.header-player-control.is-play .icon-play svg,
.promo-player-btn.is-play .icon-play svg,
.player-button .icon-play svg,
.header-player-btn .header-player-icon--play svg{transform:translateX(1.5px);}
.header-player-control.is-play .icon-pause,
.promo-player-btn.is-play .icon-pause,
.player-button .icon-pause,
.header-player-btn .header-player-icon--pause{display:none;}
.header-player-control.is-play.is-playing .icon-play,
.promo-player-btn.is-play.is-playing .icon-play,
.player-button.is-playing .icon-play,
.header-player-btn.is-playing .header-player-icon--play{display:none;}
.header-player-control.is-play.is-playing .icon-pause,
.promo-player-btn.is-play.is-playing .icon-pause,
.player-button.is-playing .icon-pause,
.header-player-btn.is-playing .header-player-icon--pause{display:flex;}
.header-player-btn.is-playing .header-player-icon{display:none;}
.header-player-btn.is-playing .header-player-icon--pause{display:flex;}
.player-button{font-size:0;}

/* 2026-05-23 absolute final: clean pause icons and invisible scrollbars */
html,
body,
*{
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}
*::-webkit-scrollbar{
  width:0;
  height:0;
  display:none;
  background:transparent;
}
.header-player-control.is-play .play-eq,
.promo-player-btn.is-play .play-eq,
.header-player-btn .header-player-mini-eq,
.player-button .player-activity,
.player-button.is-playing::before,
.player-button.is-playing::after,
.header-player-control.is-play .icon-pause::before,
.promo-player-btn.is-play .icon-pause::before,
.player-button .icon-pause::before,
.header-player-btn .header-player-icon--pause::before{
  content:none;
  display:none;
  visibility:hidden;
  opacity:0;
  animation:none;
}
.header-player-btn,
.header-player-control.is-play,
.promo-player-btn.is-play,
.player-button{
  position:relative;
  overflow:hidden;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
}
.header-player-control.is-play .icon-play,
.header-player-control.is-play .icon-pause,
.promo-player-btn.is-play .icon-play,
.promo-player-btn.is-play .icon-pause,
.player-button .icon-play,
.player-button .icon-pause,
.header-player-btn .header-player-icon{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  color:currentColor;
  font-size:0;
  transform:none;
}
.header-player-control.is-play .icon-play svg,
.header-player-control.is-play .icon-pause svg,
.promo-player-btn.is-play .icon-play svg,
.promo-player-btn.is-play .icon-pause svg,
.player-button .icon-play svg,
.player-button .icon-pause svg,
.header-player-btn .header-player-icon svg{
  display:block;
  width:22px;
  height:22px;
  fill:currentColor;
  transform:none;
  animation:none;
}
.header-player-btn .header-player-icon svg{width:20px;height:20px;}
.header-player-control.is-play .icon-play svg,
.promo-player-btn.is-play .icon-play svg,
.player-button .icon-play svg,
.header-player-btn .header-player-icon--play svg{transform:translateX(1.4px);}
.header-player-control.is-play .icon-pause,
.promo-player-btn.is-play .icon-pause,
.player-button .icon-pause,
.header-player-btn .header-player-icon--pause,
.header-player-control.is-play.is-playing .icon-play,
.promo-player-btn.is-play.is-playing .icon-play,
.player-button.is-playing .icon-play,
.header-player-btn.is-playing .header-player-icon--play{
  display:none;
}
.header-player-control.is-play.is-playing .icon-pause,
.promo-player-btn.is-play.is-playing .icon-pause,
.player-button.is-playing .icon-pause,
.header-player-btn.is-playing .header-player-icon--pause{
  display:flex;
}
.header-player-btn.is-playing .header-player-icon{display:none;}
.header-player-btn.is-playing .header-player-icon--pause{display:flex;}
.player-button{font-size:0;}


/* 2026-05-23 final override: visible pause icon, no equalizer bars, hidden scrollbars keep scrolling */
html,body,*{scrollbar-width:none!important;-ms-overflow-style:none!important;}
*::-webkit-scrollbar{width:0;height:0;display:none;background:transparent;}
.header-player-control.is-play,
.promo-player-btn.is-play,
.player-button,
.header-player-btn{position:relative;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;line-height:1;}
.header-player-control.is-play .play-eq,
.promo-player-btn.is-play .play-eq,
.header-player-btn .header-player-mini-eq,
.player-button .player-activity{display:none;visibility:hidden;opacity:0;animation:none;}
.header-player-control.is-play::before,
.promo-player-btn.is-play::before,
.player-button::before,
.header-player-btn::before{content:none;display:none;}
.header-player-control.is-play:not(.is-playing)::after,
.promo-player-btn.is-play:not(.is-playing)::after,
.player-button:not(.is-playing)::after,
.header-player-btn:not(.is-playing)::after{content:none!important;display:none;}
.header-player-control.is-play .icon-play,
.promo-player-btn.is-play .icon-play,
.player-button .icon-play,
.header-player-btn .header-player-icon--play{display:flex;align-items:center;justify-content:center;position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;color:currentColor;opacity:1;visibility:visible;pointer-events:none;}
.header-player-control.is-play .icon-play svg,
.promo-player-btn.is-play .icon-play svg,
.player-button .icon-play svg,
.header-player-btn .header-player-icon--play svg{display:block;width:22px;height:22px;fill:currentColor;transform:translateX(1.4px);animation:none;}
.header-player-btn .header-player-icon--play svg{width:20px;height:20px;}
.header-player-control.is-play .icon-pause,
.promo-player-btn.is-play .icon-pause,
.player-button .icon-pause,
.header-player-btn .header-player-icon--pause{display:none;visibility:hidden;opacity:0;}
.header-player-control.is-play.is-playing .icon-play,
.promo-player-btn.is-play.is-playing .icon-play,
.player-button.is-playing .icon-play,
.header-player-btn.is-playing .header-player-icon--play,
.header-player-control.is-play.is-playing .icon-pause,
.promo-player-btn.is-play.is-playing .icon-pause,
.player-button.is-playing .icon-pause,
.header-player-btn.is-playing .header-player-icon--pause{display:none;visibility:hidden;opacity:0;}
.header-player-control.is-play.is-playing::after,
.promo-player-btn.is-play.is-playing::after,
.player-button.is-playing::after{content:"";display:block;position:absolute;left:50%;top:50%;width:17px;height:22px;transform:translate(-50%,-50%);border-radius:2px;background:linear-gradient(90deg,#07111f 0 35%,transparent 35% 65%,#07111f 65% 100%);box-shadow:0 0 0 1px rgba(7,17,31,.02);z-index:9;opacity:1;visibility:visible;pointer-events:none;animation:none;}
.header-player-btn.is-playing::after{content:"";display:block;position:absolute;left:50%;top:50%;width:15px;height:20px;transform:translate(-50%,-50%);border-radius:2px;background:linear-gradient(90deg,#f3f8ff 0 35%,transparent 35% 65%,#f3f8ff 65% 100%);box-shadow:0 0 14px rgba(124,241,211,.22);z-index:9;opacity:1;visibility:visible;pointer-events:none;animation:none;}
.header-player-control.is-play.is-playing,
.promo-player-btn.is-play.is-playing,
.player-button.is-playing,
.header-player-btn.is-playing{animation:none;border-color:rgba(124,241,211,.55);box-shadow:0 0 0 5px rgba(124,241,211,.11),0 18px 34px rgba(0,0,0,.26);}

/* 2026-05-24 mobile call/player final fix (self-view label retired 2026-07-09) */
.call-video-grid::after{content:none;display:none;}
html[lang="et"] .call-video-grid::after{content:none;display:none;}
#localCallVideo.has-local-frame{background:#020712;}
@media(max-width:700px){
  .call-overlay{align-items:stretch;padding:10px 8px calc(10px + env(safe-area-inset-bottom));}
  .call-overlay__card{width:100%;max-height:calc(100svh - 20px);overflow:auto;padding:16px;border-radius:24px;}
}
@media(max-width:860px){
  .profile-player-fab,
  body.public-user-page .profile-player-fab,
  body.profile-page .profile-player-fab,
  body:has(.messenger-layout) .profile-player-fab{
    left:auto;
    right:max(12px,env(safe-area-inset-right));
    bottom:calc(72px + env(safe-area-inset-bottom));
    transform:none;
    width:auto;
    min-width:0;
    max-width:calc(100vw - 24px);
    min-height:42px;
    padding:9px 13px;
    border-radius:999px;
    font-size:.92rem;
    line-height:1;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    white-space:nowrap;
  }
  .profile-player-fab.is-promo,
  body.public-user-page .profile-player-fab.is-promo{width:auto;max-width:calc(100vw - 24px);}
  body.has-promo-player .profile-player-fab.is-promo{display:none;visibility:hidden;pointer-events:none;}
}
@media(max-width:560px){
  .header-player-now{grid-template-areas:'cover' 'copy' 'controls' 'modes' 'progress';}
  .header-player-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:100%;min-width:0;}
  .header-player-mode{min-width:0;width:100%;min-height:40px;padding:8px 4px;gap:0;font-size:clamp(.68rem,2.65vw,.8rem);letter-spacing:-.02em;line-height:1.05;overflow:hidden;text-overflow:clip;white-space:nowrap;}
  .header-player-mode::before{display:none;content:none;}
  .header-player-mode[data-header-mode="sequential"]{font-size:clamp(.64rem,2.45vw,.76rem);}
}

/* 2026-05-24 premium event/cookie/player final polish */
.cookie-banner .button-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 18px;border-radius:16px;border:1px solid rgba(126,153,198,.28);background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.025));color:#eef4ff;text-decoration:none;font-weight:900;box-shadow:inset 0 1px 0 rgba(255,255,255,.08);opacity:1}.cookie-banner .button-secondary:hover{border-color:rgba(121,227,210,.4);background:rgba(121,227,210,.09)}.home-event-card{isolation:isolate!important;overflow:hidden}.home-event-card::before{z-index:0;pointer-events:none;right:148px;top:24px;opacity:.55}.home-event-card::after{z-index:0;pointer-events:none}.home-event-card>*{position:relative;z-index:1}.home-event-lang,.home-event-close{z-index:20!important}.home-event-lang{top:18px;right:74px;padding:3px;border-radius:999px;background:rgba(5,11,24,.48);backdrop-filter:blur(8px)}.home-event-button[disabled],.home-event-button[aria-disabled="true"]{cursor:not-allowed!important;filter:grayscale(.35);opacity:.68;box-shadow:none}@media(max-width:640px){.cookie-actions{gap:10px}.home-event-lang{top:14px;right:62px;transform:scale(.92);transform-origin:top right}.home-event-card::before{right:132px;top:22px;letter-spacing:8px;font-size:.78rem}.home-event-card h2{padding-right:0}}

/* 2026-05-25 player background-playback polish */
.has-promo-player .cookie-banner{bottom:max(116px,calc(env(safe-area-inset-bottom) + 116px));}
[data-open-promo-player].is-playing,.promo-player-btn.is-playing,.header-player-btn.is-playing{box-shadow:0 0 0 4px rgba(121,227,210,.18),0 18px 42px rgba(0,0,0,.35);}
body.header-player-open{overflow:auto;}
@media(max-width:700px){.has-promo-player .cookie-banner{bottom:max(180px,calc(env(safe-area-inset-bottom) + 180px))!important;}}

/* 2026-05-25 final biography/video + Premium volume layout safety */
.biography-grid .bio-media .video-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;align-items:start}
.biography-grid .bio-media .video-card{margin:0;padding:10px;border-radius:26px;background:linear-gradient(180deg,rgba(10,18,35,.92),rgba(5,10,22,.94));border:1px solid rgba(126,153,198,.18);overflow:hidden}
.biography-grid .bio-media .video-card video{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:20px;background:#000}
.header-player-volume{display:grid;grid-template-columns:auto minmax(130px,1fr);align-items:center;gap:12px;width:min(100%,320px);max-width:320px;white-space:nowrap;word-break:normal;overflow-wrap:normal}.header-player-volume input{min-width:130px;width:100%}
@media(max-width:720px){.biography-grid .bio-media .video-grid{grid-template-columns:1fr}.header-player-volume{grid-template-columns:1fr;width:100%;max-width:none}}

/* ===== 2026-05-25 FINAL 10/10 OVERRIDE: keep homepage.css from breaking shared header/player ===== */
.site-header .container.header-inner,
.site-header .header-inner{
  box-sizing:border-box!important;
  /* 2026-08-19: было calc(100vw - 220px) — на 1280px шапка сжималась до
     1060px, то есть УЖЕ основного контейнера контента (1232px), и всё
     содержимое шапки толкалось в слишком узкую полосу. Поля теперь
     растут вместе с экраном: 40px на ноутбуках, 220px на широких. */
  width:min(1600px,calc(100vw - clamp(40px,8vw,220px)))!important;
  max-width:100%!important;
  display:grid!important;
  grid-template-columns:minmax(220px,.8fr) minmax(360px,1.35fr) auto!important;
  align-items:center!important;
  gap:clamp(16px,2.1vw,34px)!important;
  overflow:visible!important;
}
.site-header .brand{display:grid!important;grid-template-columns:64px minmax(0,1fr)!important;align-items:center!important;gap:14px!important;min-width:0!important;overflow:visible!important;}
.site-header .brand img{display:block!important;width:64px!important;height:64px!important;min-width:64px!important;border-radius:20px!important;object-fit:cover!important;}
.site-header .brand-copy{display:grid!important;gap:3px!important;min-width:0!important;overflow:visible!important;}
.site-header .brand-copy strong{max-width:100%!important;font-size:clamp(18px,1.35vw,28px)!important;line-height:.98!important;letter-spacing:.14em!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;}
.site-header .brand-copy small{max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.site-header .site-nav{min-width:0!important;display:flex!important;position:static!important;flex-wrap:wrap!important;align-items:center!important;justify-content:center!important;gap:clamp(12px,1.8vw,28px)!important;width:auto!important;max-width:100%!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;}
.site-header .site-nav a{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:36px!important;padding:4px 6px!important;border-radius:12px!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;}
.site-header .header-actions{justify-self:end!important;display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;min-width:max-content!important;width:auto!important;overflow:visible!important;}
.header-profile-btn{padding:0!important;overflow:hidden!important;}
.header-profile-avatar{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;border-radius:inherit!important;}
.header-player-now{box-sizing:border-box!important;display:grid!important;grid-template-columns:112px minmax(0,1fr)!important;grid-template-areas:"cover copy" "controls controls" "modes modes" "progress progress" "volume volume" "save save"!important;align-items:center!important;gap:16px!important;width:100%!important;max-width:820px!important;min-width:0!important;overflow:hidden!important;}
.header-player-cover{grid-area:cover!important;width:112px!important;height:112px!important;min-width:112px!important;}
.header-player-now-copy{grid-area:copy!important;min-width:0!important;overflow:hidden!important;}
.header-player-now-copy strong,.header-player-now-copy span{display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.header-player-controls{grid-area:controls!important;position:relative!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;flex-wrap:wrap!important;gap:12px!important;min-width:0!important;}
.header-player-control{position:relative!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:56px!important;height:56px!important;min-width:56px!important;flex:0 0 56px!important;padding:0!important;overflow:hidden!important;}
.header-player-modes{grid-area:modes!important;position:static!important;inset:auto!important;transform:none!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;width:100%!important;min-width:0!important;margin:0!important;}
.header-player-mode{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;min-height:42px!important;padding:8px 10px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#eef4ff!important;}
.header-player-progress{grid-area:progress!important;width:100%!important;min-width:0!important;margin:0!important;}
.header-player-progress input{width:100%!important;min-width:0!important;}
.header-player-volume{grid-area:volume!important;display:grid!important;grid-template-columns:auto minmax(120px,1fr)!important;align-items:center!important;gap:12px!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;}
.header-player-volume input{grid-column:auto!important;width:100%!important;min-width:120px!important;}
.header-player-save-form{grid-area:save!important;width:100%!important;margin:0!important;justify-content:flex-start!important;}
.header-player-control.is-play .play-eq,.header-player-btn .header-player-mini-eq,.player-button .player-activity{display:none!important;visibility:hidden!important;opacity:0!important;}
.profile-layout,.profile-layout-extended{display:grid!important;grid-template-columns:minmax(250px,330px) minmax(0,1fr)!important;align-items:start!important;gap:24px!important;width:min(1500px,calc(100vw - 48px))!important;max-width:100%!important;margin-inline:auto!important;}
.profile-sidebar{min-width:0!important;max-width:100%!important;overflow:auto!important;}
.profile-main{min-width:0!important;width:100%!important;}
.feed-compose-row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(220px,280px) auto!important;align-items:end!important;gap:14px!important;}

.feed-upload-field{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;min-width:0!important;white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important;writing-mode:horizontal-tb!important;text-orientation:mixed!important;}
.feed-head,.feed-head-actions,.feed-actions-row,.comment-actions,.story-social-actions,.gallery-social-actions,.track-action-row,.track-premium-actions{min-width:0!important;max-width:100%!important;flex-wrap:wrap!important;}
.like-details{max-width:100%!important;min-width:0!important;z-index:20!important;}
.like-details>summary{max-width:100%!important;min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.like-details[open] .likers-list,.like-details[open] .likers-summary{box-sizing:border-box!important;min-width:min(240px,86vw)!important;max-width:min(360px,86vw)!important;overflow:auto!important;}
.gallery-modal[hidden]{display:none!important;}
.gallery-modal:not([hidden]){display:flex!important;align-items:flex-start!important;justify-content:center!important;overflow:auto!important;padding:clamp(10px,2vw,24px)!important;}
.gallery-modal__dialog{box-sizing:border-box!important;width:min(1080px,calc(100vw - 32px))!important;max-width:100%!important;max-height:none!important;overflow:visible!important;}
.gallery-modal__stage,.gallery-modal__stage .custom-media-player,.gallery-modal__stage img,.gallery-modal__stage video{max-width:100%!important;min-width:0!important;}
.gallery-modal__social,.gallery-social-panel{box-sizing:border-box!important;max-width:100%!important;overflow:auto!important;}
@media (max-width:1200px){
  .site-header .container.header-inner,.site-header .header-inner{width:min(100%,calc(100vw - 36px))!important;grid-template-columns:minmax(190px,.7fr) minmax(300px,1fr) auto!important;gap:14px!important;}
  .site-header .site-nav{gap:10px!important;}
}
@media (max-width:980px){
  .site-header .container.header-inner,.site-header .header-inner{width:calc(100vw - 20px)!important;grid-template-columns:minmax(0,1fr) auto!important;gap:12px!important;}
  .site-header .site-nav{display:none!important;position:fixed!important;left:14px!important;right:14px!important;top:calc(env(safe-area-inset-top) + 102px)!important;grid-column:auto!important;width:auto!important;max-height:min(58vh,520px)!important;overflow:auto!important;padding:14px!important;border:1px solid rgba(126,153,198,.24)!important;border-radius:22px!important;background:rgba(6,12,24,.98)!important;box-shadow:0 24px 70px rgba(0,0,0,.42)!important;z-index:150!important;}
  .site-header .site-nav.is-open,body.menu-open .site-header .site-nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
  .site-header .site-nav a{justify-content:flex-start!important;background:rgba(255,255,255,.035)!important;padding:11px 12px!important;}
  .site-header .header-actions{min-width:0!important;flex-wrap:wrap!important;gap:8px!important;}
  .profile-layout,.profile-layout-extended{width:calc(100vw - 20px)!important;grid-template-columns:1fr!important;gap:16px!important;}
  .profile-sidebar{position:static!important;max-height:none!important;}
  .feed-compose-row{grid-template-columns:1fr!important;}
}
@media (max-width:640px){
  body[data-user-auth="1"] .site-header .brand{display:grid!important;}
  .site-header .brand{grid-template-columns:52px minmax(0,1fr)!important;gap:10px!important;}
  .site-header .brand img{display:block!important;width:52px!important;height:52px!important;min-width:52px!important;border-radius:16px!important;}
  .site-header .brand-copy strong{font-size:20px!important;letter-spacing:.1em!important;}
  .site-header .brand-copy small{display:none!important;}
  .site-header .header-actions{justify-content:flex-end!important;}
  .site-header .site-nav.is-open,body.menu-open .site-header .site-nav{grid-template-columns:1fr!important;}
  .header-player-now{grid-template-columns:1fr!important;grid-template-areas:"cover" "copy" "controls" "modes" "progress" "volume" "save"!important;justify-items:stretch!important;}
  .header-player-cover{width:92px!important;height:92px!important;min-width:92px!important;justify-self:start!important;}
  .header-player-control{width:50px!important;height:50px!important;min-width:50px!important;flex-basis:50px!important;}
  .header-player-modes{grid-template-columns:1fr!important;}
  .header-player-volume{grid-template-columns:1fr!important;}
  .header-player-volume input{min-width:0!important;}
  .like-details[open] .likers-list,.like-details[open] .likers-summary{position:fixed!important;left:10px!important;right:10px!important;bottom:84px!important;top:auto!important;width:auto!important;max-width:none!important;max-height:45vh!important;}
}
@media (max-width:420px){.site-header .brand-copy{display:none!important}.site-header .brand{grid-template-columns:52px!important}}
/* ===== END 2026-05-25 FINAL 10/10 OVERRIDE ===== */

/* ===== 2026-05-26 final visual overrides loaded after site.css ===== */
.header-player-control.is-play::before,
.header-player-control.is-play::after,
.promo-player-btn.is-play::before,
.promo-player-btn.is-play::after,
.header-player-btn::before,
.header-player-btn::after,
.player-button::before,
.player-button::after{content:none!important;display:none!important;opacity:0!important;visibility:hidden!important;}
.header-player-control.is-play .play-eq,
.promo-player-btn.is-play .play-eq,
.header-player-btn .header-player-mini-eq,
.player-button .player-activity{display:none!important;opacity:0!important;visibility:hidden!important;}
.header-player-control.is-play .icon-play,
.promo-player-btn.is-play .icon-play,
.header-player-btn .header-player-icon--play{display:flex!important;align-items:center!important;justify-content:center!important;opacity:1!important;visibility:visible!important;}
.header-player-control.is-play .icon-pause,
.promo-player-btn.is-play .icon-pause,
.header-player-btn .header-player-icon--pause{display:none!important;opacity:0!important;visibility:hidden!important;}
.header-player-control.is-play.is-playing .icon-play,
.promo-player-btn.is-play.is-playing .icon-play,
.header-player-btn.is-playing .header-player-icon--play{display:none!important;opacity:0!important;visibility:hidden!important;}
.header-player-control.is-play.is-playing .icon-pause,
.promo-player-btn.is-play.is-playing .icon-pause,
.header-player-btn.is-playing .header-player-icon--pause{display:flex!important;align-items:center!important;justify-content:center!important;opacity:1!important;visibility:visible!important;}
.header-player-modes{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;width:100%!important;min-width:0!important;}
.header-player-mode{min-width:0!important;white-space:normal!important;line-height:1.12!important;text-align:center!important;overflow:hidden!important;}
.header-player-volume input[type="range"]{width:100%!important;min-width:0!important;}
.gallery-modal:not([hidden]){z-index:220!important;display:flex!important;align-items:flex-start!important;justify-content:center!important;padding:clamp(12px,3vw,34px)!important;overflow:auto!important;background:rgba(2,7,18,.72)!important;}
.gallery-modal__dialog{position:relative!important;display:grid!important;gap:14px!important;width:min(1180px,calc(100vw - 34px))!important;max-height:none!important;padding:clamp(16px,2vw,28px)!important;border-radius:32px!important;overflow:visible!important;background:linear-gradient(180deg,rgba(8,15,30,.98),rgba(4,9,20,.98))!important;}
.gallery-modal__stage{display:grid!important;place-items:center!important;min-width:0!important;width:100%!important;}
.gallery-modal__stage>img{display:block!important;max-width:100%!important;max-height:min(72vh,820px)!important;width:auto!important;height:auto!important;object-fit:contain!important;border-radius:24px!important;background:#02050d!important;}
.gallery-modal__stage .custom-media-player{width:min(980px,100%)!important;max-width:100%!important;}
.gallery-modal__stage video{max-width:100%!important;max-height:68vh!important;background:#000!important;}
.gallery-modal__caption{min-height:0!important;text-align:center!important;font-weight:900!important;}
.gallery-modal__social{width:min(860px,100%)!important;margin-inline:auto!important;padding:14px!important;border:1px solid rgba(126,153,198,.24)!important;border-radius:24px!important;background:rgba(10,17,32,.88)!important;overflow:visible!important;}
.gallery-comment-form,
.story-comment-form{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;align-items:center!important;width:100%!important;}
.gallery-comment-form .admin-input,
.story-comment-form .admin-input{min-height:52px!important;border-radius:18px!important;background:rgba(255,255,255,.045)!important;}
.admin-input.is-invalid{border-color:rgba(255,105,132,.78)!important;box-shadow:0 0 0 4px rgba(255,105,132,.12)!important;}
.gallery-comments-mini,
.story-social-panel{display:grid!important;gap:10px!important;}
.story-social-panel{position:relative!important;margin-top:12px!important;padding:14px!important;border:1px solid rgba(126,153,198,.22)!important;border-radius:22px!important;background:rgba(8,15,30,.82)!important;overflow:visible!important;}
.story-card .story-social-panel{position:relative!important;inset:auto!important;margin:12px!important;width:auto!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;}
.story-comment-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;min-width:0!important;padding:10px 12px!important;border:1px solid rgba(126,153,198,.14)!important;border-radius:16px!important;background:rgba(255,255,255,.035)!important;color:var(--muted)!important;}
.story-comment-row>span{display:block!important;min-width:0!important;max-width:100%!important;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important;writing-mode:horizontal-tb!important;text-orientation:mixed!important;}
.story-comment-row .comment-actions{justify-content:flex-end!important;min-width:max-content!important;}
.like-details{position:relative!important;display:inline-flex!important;align-items:center!important;max-width:100%!important;vertical-align:middle!important;}
.like-details>summary{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:36px!important;max-width:100%!important;padding:8px 13px!important;list-style:none!important;border-radius:999px!important;white-space:nowrap!important;}
.like-details[open]{z-index:320!important;}
.like-details[open] .likers-list,
.like-details[open] .likers-summary,
.like-details[open]>span.small{position:absolute!important;right:0!important;left:auto!important;top:calc(100% + 8px)!important;z-index:330!important;display:grid!important;gap:8px!important;width:max-content!important;min-width:min(230px,84vw)!important;max-width:min(340px,84vw)!important;max-height:min(320px,55vh)!important;overflow:auto!important;padding:12px!important;border:1px solid rgba(126,153,198,.28)!important;border-radius:18px!important;background:rgba(7,13,27,.98)!important;box-shadow:0 28px 80px rgba(0,0,0,.52)!important;color:var(--text)!important;}
.like-details[open]>span.small{display:block!important;font-weight:800!important;}
.likers-list a{display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;gap:10px!important;align-items:center!important;min-width:0!important;color:var(--text)!important;text-decoration:none!important;}
.likers-list img{width:34px!important;height:34px!important;border-radius:999px!important;object-fit:cover!important;}
.public-info-grid{grid-template-columns:minmax(0,1fr)!important;}
.biography-grid .bio-media{align-self:start!important;}
.biography-grid .bio-media .video-grid{margin-top:0!important;}
@media (max-width:980px){
  .site-header .container.header-inner,
  .site-header .header-inner{width:calc(100vw - 24px)!important;grid-template-columns:minmax(0,1fr)!important;padding:18px!important;border-radius:30px!important;overflow:hidden!important;}
  .site-header .brand{width:100%!important;grid-template-columns:58px minmax(0,1fr)!important;}
  .site-header .brand-copy{min-width:0!important;overflow:hidden!important;}
  .site-header .brand-copy strong{font-size:clamp(20px,7vw,28px)!important;letter-spacing:.08em!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
  .site-header .header-actions{width:100%!important;min-width:0!important;justify-content:flex-end!important;flex-wrap:wrap!important;}
}
@media (max-width:760px){
  .header-player-now{grid-template-areas:"cover" "copy" "controls" "modes" "progress" "save"!important;}
  .header-player-volume{display:none!important;}
  .header-player-modes{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;}
  .header-player-mode{min-height:38px!important;padding:7px 6px!important;font-size:.82rem!important;}
  .gallery-modal:not([hidden]){padding:12px 8px 90px!important;}
  .gallery-modal__dialog{width:calc(100vw - 16px)!important;padding:14px!important;border-radius:24px!important;}
  .gallery-modal__close{top:10px!important;right:10px!important;z-index:5!important;}
  .gallery-modal__stage>img{max-height:64vh!important;border-radius:18px!important;}
  .gallery-modal__stage video{max-height:44vh!important;}
  .gallery-modal__nav{position:fixed!important;top:50vh!important;bottom:auto!important;transform:translateY(-50%)!important;z-index:230!important;}
  .gallery-modal__nav.is-prev{left:10px!important;}
  .gallery-modal__nav.is-next{right:10px!important;}
  .gallery-modal__social{padding:12px!important;border-radius:20px!important;overflow:visible!important;}
  .gallery-comment-form,
  .story-comment-form{grid-template-columns:1fr!important;}
  .story-comment-row{grid-template-columns:1fr!important;}
  .story-comment-row .comment-actions{justify-content:flex-start!important;min-width:0!important;}
  .like-details[open] .likers-list,
  .like-details[open] .likers-summary,
  .like-details[open]>span.small{position:fixed!important;left:12px!important;right:12px!important;top:auto!important;bottom:92px!important;width:auto!important;min-width:0!important;max-width:none!important;max-height:46vh!important;}
}
@media (max-width:520px){
  .site-header .header-actions :is(.header-icon-btn,.header-action-btn,.lang-btn,.lang-pill,.site-menu-toggle,.menu-toggle){width:54px!important;height:54px!important;min-width:54px!important;}
  .site-header .brand{grid-template-columns:50px minmax(0,1fr)!important;}
  .site-header .brand img{width:50px!important;height:50px!important;min-width:50px!important;}
}

/* ===== 2026-05-26 FINAL SCREENSHOT PASS ===== */
.site-header .site-nav a[href*="feed.php"],
.site-header .site-nav a[href*="gifts.php"]{display:none!important;}

/* Premium player mode buttons: one stable desktop/mobile layout on every page */
.header-player-now{
  grid-template-areas:"cover copy" "controls controls" "modes modes" "progress progress" "volume volume" "save save"!important;
  align-items:start!important;
}
.header-player-modes{
  grid-area:modes!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
  width:min(100%,520px)!important;
  max-width:520px!important;
  margin:8px 0 4px!important;
  justify-self:start!important;
  align-items:stretch!important;
}
.header-player-mode{
  position:relative!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  width:100%!important;
  min-width:0!important;
  min-height:44px!important;
  padding:9px 12px!important;
  border-radius:999px!important;
  border:1px solid rgba(126,153,198,.26)!important;
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.025))!important;
  color:#dbe7ff!important;
  font-size:.92rem!important;
  font-weight:900!important;
  line-height:1.1!important;
  letter-spacing:0!important;
  text-align:center!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 10px 24px rgba(0,0,0,.16)!important;
}
.header-player-mode::before{
  display:inline-grid!important;
  place-items:center!important;
  width:22px!important;
  height:22px!important;
  min-width:22px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.10)!important;
  color:currentColor!important;
  font-size:13px!important;
  line-height:1!important;
  content:'';
}
.header-player-mode[data-header-mode="repeat"]::before{content:'↻'!important;}
.header-player-mode[data-header-mode="shuffle"]::before{content:'⇄'!important;}
.header-player-mode[data-header-mode="sequential"]::before{content:'☰'!important;}
.header-player-mode.is-active{
  color:#06111f!important;
  border-color:transparent!important;
  background:linear-gradient(135deg,var(--accent),var(--accent-strong))!important;
  box-shadow:0 16px 34px rgba(82,203,232,.22)!important;
}
.header-player-mode.is-active::before{background:rgba(7,17,31,.18)!important;}

/* Stories: background for metadata/social areas, scrollable comments, unclipped likers popup */
.story-grid{overflow:visible!important;align-items:start!important;}
.story-card{overflow:visible!important;isolation:isolate!important;}
.story-card .custom-media-player,
.story-card>img,
.story-card>video{overflow:hidden!important;}
.story-card__meta{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin-top:2px!important;
  padding:10px 12px!important;
  border:1px solid rgba(126,153,198,.24)!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,rgba(10,18,35,.88),rgba(6,12,25,.82))!important;
  color:#edf5ff!important;
  font-weight:900!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06)!important;
}
.story-card__meta span{
  display:inline-flex!important;
  align-items:center!important;
  min-width:0!important;
  padding:5px 8px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.055)!important;
  white-space:nowrap!important;
}
.story-social-panel{
  display:grid!important;
  gap:10px!important;
  padding:14px!important;
  border:1px solid rgba(126,153,198,.24)!important;
  border-radius:24px!important;
  background:linear-gradient(180deg,rgba(10,18,35,.86),rgba(5,10,22,.84))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055)!important;
  overflow:visible!important;
}
.story-comments-list,
.gallery-comments-mini{
  display:grid!important;
  gap:10px!important;
  max-height:min(230px,30dvh)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding-right:4px!important;
  overscroll-behavior:contain!important;
  scrollbar-width:thin!important;
}
.story-comment-row{
  min-width:0!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.028))!important;
  border-color:rgba(126,153,198,.20)!important;
}
.story-comment-row>span{white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;writing-mode:horizontal-tb!important;}
.story-card .like-details[open] .likers-list,
.story-card .like-details[open] .likers-summary,
.story-card .like-details[open]>span.small,
.gallery-modal .like-details[open] .likers-list,
.gallery-modal .like-details[open] .likers-summary,
.gallery-modal .like-details[open]>span.small{
  position:fixed!important;
  left:50%!important;
  right:auto!important;
  top:50%!important;
  bottom:auto!important;
  transform:translate(-50%,-50%)!important;
  z-index:2147483600!important;
  width:min(360px,calc(100vw - 36px))!important;
  max-width:min(360px,calc(100vw - 36px))!important;
  min-width:0!important;
  max-height:min(420px,70dvh)!important;
  overflow:auto!important;
  padding:14px!important;
  border-radius:22px!important;
  background:linear-gradient(180deg,rgba(8,15,30,.98),rgba(4,9,20,.98))!important;
  border:1px solid rgba(126,153,198,.32)!important;
  box-shadow:0 34px 100px rgba(0,0,0,.62)!important;
  color:#eef5ff!important;
}

/* Gallery grid: video tiles show a centered image-like play mark; modal keeps the real player */
.profile-gallery-grid .gallery-tile,
.gallery-grid .gallery-card{overflow:visible!important;}
.profile-gallery-grid .gallery-tile__preview,
.gallery-card[data-gallery-type="video"]{
  position:relative!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  border-radius:24px!important;
  background:#02050d!important;
}
.profile-gallery-grid .gallery-tile__preview.is-video .gallery-tile__media,
.profile-gallery-grid .gallery-tile__preview.is-video video,
.gallery-card[data-gallery-type="video"] video{
  pointer-events:none!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}
.profile-gallery-grid .gallery-tile__play,
.gallery-card[data-gallery-type="video"] .gallery-tile__play{
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  transform:translate(-50%,-50%)!important;
  display:grid!important;
  place-items:center!important;
  width:70px!important;
  height:70px!important;
  border-radius:999px!important;
  background:linear-gradient(135deg,rgba(111,184,255,.88),rgba(121,227,210,.88))!important;
  color:#07111f!important;
  font-size:26px!important;
  font-weight:900!important;
  line-height:1!important;
  z-index:4!important;
  box-shadow:0 18px 48px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.35)!important;
  pointer-events:none!important;
}
.gallery-modal:not([hidden]){
  z-index:2147483000!important;
  display:flex!important;
  align-items:flex-start!important;
  justify-content:center!important;
  overflow:auto!important;
  padding:clamp(12px,2.5vw,28px)!important;
  background:rgba(1,5,14,.78)!important;
  backdrop-filter:blur(10px)!important;
  -webkit-backdrop-filter:blur(10px)!important;
}
.gallery-modal__dialog{
  width:min(1120px,calc(100vw - 44px))!important;
  max-height:calc(100dvh - 34px)!important;
  overflow:hidden!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:auto auto minmax(0,auto)!important;
  align-content:start!important;
  gap:12px!important;
  padding:clamp(14px,2vw,24px)!important;
  border-radius:30px!important;
  background:linear-gradient(180deg,rgba(8,15,30,.98),rgba(4,9,20,.98))!important;
}
.gallery-modal__stage{
  min-height:0!important;
  max-height:min(60dvh,650px)!important;
  overflow:hidden!important;
  border-radius:26px!important;
}
.gallery-modal__stage>img,
.gallery-modal__stage video,
.gallery-modal__stage .custom-media-player__media{
  max-height:min(58dvh,620px)!important;
  object-fit:contain!important;
}
.gallery-modal__stage .custom-media-player.gallery-modal-player{
  width:min(100%,980px)!important;
  max-width:100%!important;
  padding:12px!important;
  border-radius:26px!important;
}
.gallery-modal__stage .custom-media-player.gallery-modal-player .custom-media-player__overlay{
  display:grid!important;
  place-items:center!important;
  cursor:pointer!important;
}
.gallery-modal__stage .custom-media-player.gallery-modal-player .custom-media-player__overlay-icon{
  display:grid!important;
  place-items:center!important;
}
.gallery-modal__social{
  width:min(880px,100%)!important;
  max-height:min(30dvh,280px)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  margin-inline:auto!important;
  overscroll-behavior:contain!important;
}

/* Biography videos are visually inside the Biography card, not as a separate outside row */
.biography-grid{grid-template-columns:minmax(0,1fr)!important;}
.bio-copy{max-width:min(1040px,100%)!important;width:100%!important;}
.bio-copy .bio-media{
  margin-top:24px!important;
  padding-top:22px!important;
  border-top:1px solid rgba(126,153,198,.20)!important;
}
.bio-copy .bio-media .video-grid,
.biography-grid .bio-media .video-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important;
  gap:16px!important;
  margin-top:0!important;
}
.bio-copy .bio-media .video-card,
.biography-grid .bio-media .video-card{
  margin:0!important;
  padding:10px!important;
  border-radius:24px!important;
  background:linear-gradient(180deg,rgba(10,18,35,.92),rgba(5,10,22,.94))!important;
  border:1px solid rgba(126,153,198,.18)!important;
}

@media (max-width:760px){
  .header-player-now{grid-template-columns:1fr!important;grid-template-areas:"cover" "copy" "controls" "modes" "progress" "save"!important;}
  .header-player-modes{grid-template-columns:repeat(3,minmax(0,1fr))!important;width:100%!important;max-width:none!important;gap:6px!important;}
  .header-player-mode{min-height:38px!important;padding:7px 5px!important;font-size:clamp(.68rem,2.7vw,.82rem)!important;gap:0!important;}
  .header-player-mode::before{display:none!important;content:none!important;}
  .header-player-volume{display:none!important;}
  .story-card__meta{align-items:flex-start!important;flex-wrap:wrap!important;}
  .story-comments-list,.gallery-comments-mini{max-height:min(210px,34dvh)!important;}
  .gallery-modal:not([hidden]){padding:10px 8px 86px!important;}
  .gallery-modal__dialog{width:calc(100vw - 16px)!important;max-height:calc(100dvh - 96px)!important;border-radius:24px!important;padding:12px!important;}
  .gallery-modal__stage{max-height:48dvh!important;}
  .gallery-modal__stage>img,.gallery-modal__stage video,.gallery-modal__stage .custom-media-player__media{max-height:46dvh!important;}
  .gallery-modal__social{max-height:32dvh!important;}
}
/* ===== END 2026-05-26 FINAL SCREENSHOT PASS ===== */

/* ===== 2026-05-26 PROFILE MEDIA/MODAL STABILIZATION ===== */
.header-player-now .header-player-modes,
.header-player-modes {
  display: flex !important;
  grid-template-columns: none !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 10px 0 6px !important;
  overflow: visible !important;
}

.header-player-now .header-player-mode,
.header-player-mode {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 132px !important;
  max-width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1 !important;
  border-radius: 999px !important;
}

.header-player-mode::before {
  flex: 0 0 auto !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  display: inline-grid !important;
  place-items: center !important;
  font-size: .98em !important;
  line-height: 1 !important;
}

.header-player-mode span {
  display: inline-block !important;
  min-width: max-content !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

body.story-viewer-open {
  overflow: hidden !important;
}

.story-grid,
.stories-grid,
.profile-section-stories .story-grid,
.profile-section-stories .stories-grid {
  max-height: none !important;
  overflow: visible !important;
}

.story-card .custom-media-player,
.story-card .story-video-shell,
.story-viewer__stage {
  position: relative !important;
}

.story-card .custom-media-player.is-video {
  border-radius: 24px !important;
  overflow: hidden !important;
  background: #020617 !important;
}

.story-card .custom-media-player.is-video .custom-media-player__media {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  min-height: 0 !important;
  max-height: 360px !important;
  object-fit: cover !important;
  border-radius: 24px !important;
}

.story-card .custom-media-player.is-video .custom-media-player__overlay,
.story-video-overlay {
  position: absolute !important;
  inset: 0 0 54px 0 !important;
  z-index: 5 !important;
  display: grid !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: inherit !important;
  background: linear-gradient(180deg, rgba(2,6,23,.08), rgba(2,6,23,.28)) !important;
  color: #fff !important;
  cursor: pointer !important;
}

.story-card .custom-media-player.is-video .custom-media-player__overlay::before,
.story-video-overlay__icon,
.gallery-modal-player .custom-media-player__overlay::before {
  width: 66px !important;
  height: 66px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 999px !important;
  background: rgba(15,23,42,.72) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  box-shadow: 0 18px 48px rgba(0,0,0,.34) !important;
  backdrop-filter: blur(12px) !important;
}

.story-video-overlay__icon {
  font-size: 0 !important;
}

.story-video-overlay__icon::before {
  content: "▶";
  margin-left: 4px;
  font-size: 1.4rem;
  line-height: 1;
}

.story-card .custom-media-player.is-playing .custom-media-player__overlay,
.story-viewer__stage.is-playing .story-video-overlay,
.story-video-overlay.is-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

.story-viewer:not([hidden]) {
  overflow: hidden !important;
}

.story-viewer__dialog {
  max-height: calc(100dvh - 32px) !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  overflow: hidden !important;
}

.story-viewer__stage {
  min-height: 0 !important;
  max-height: calc(100dvh - 150px) !important;
  overflow: hidden !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 24px !important;
}

.story-viewer__stage video,
.story-viewer__stage img {
  width: 100% !important;
  max-height: calc(100dvh - 170px) !important;
  object-fit: contain !important;
  border-radius: 22px !important;
  background: #020617 !important;
}

.gallery-modal[hidden],
.story-viewer[hidden] {
  display: none !important;
}

.gallery-modal:not([hidden]) {
  position: fixed !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: clamp(12px, 2vw, 24px) !important;
  overflow: hidden !important;
  z-index: 2147483000 !important;
}

.gallery-modal__dialog {
  position: relative !important;
  width: min(1160px, calc(100vw - 32px)) !important;
  max-height: calc(100dvh - 32px) !important;
  margin: 0 !important;
  padding: clamp(18px, 2vw, 30px) !important;
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto minmax(0, auto) !important;
  gap: 14px !important;
  overflow: hidden !important;
  align-content: stretch !important;
}

.gallery-modal__stage {
  min-height: 0 !important;
  max-height: none !important;
  height: auto !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
}

.gallery-modal__stage > img,
.gallery-modal__stage .gallery-modal-player {
  width: min(100%, 980px) !important;
  max-height: min(58dvh, 650px) !important;
  object-fit: contain !important;
  border-radius: 24px !important;
}

.gallery-modal__stage .gallery-modal-player {
  position: relative !important;
  overflow: hidden !important;
  background: #020617 !important;
}

.gallery-modal__stage .gallery-modal-player .custom-media-player__media {
  width: 100% !important;
  max-height: min(58dvh, 650px) !important;
  object-fit: contain !important;
  border-radius: 24px !important;
  background: #020617 !important;
}

.gallery-modal__stage .gallery-modal-player .custom-media-player__overlay {
  position: absolute !important;
  inset: 12px 12px 86px 12px !important;
  z-index: 6 !important;
  display: grid !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 20px !important;
  background: linear-gradient(180deg, rgba(2,6,23,.06), rgba(2,6,23,.26)) !important;
  color: #fff !important;
  cursor: pointer !important;
}

.gallery-modal__stage .gallery-modal-player.is-playing .custom-media-player__overlay {
  opacity: 0 !important;
  pointer-events: none !important;
}

.gallery-modal__close {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  z-index: 12 !important;
  transform: none !important;
}

.gallery-modal__social {
  width: min(100%, 860px) !important;
  min-height: 0 !important;
  max-height: min(29dvh, 300px) !important;
  margin: 0 auto !important;
  padding: 16px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  border-radius: 24px !important;
}

.gallery-modal__social .gallery-social-panel {
  display: grid !important;
  gap: 14px !important;
  overflow: visible !important;
}

.gallery-modal__social .gallery-comment-form,
.gallery-comment-form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
}

.gallery-modal__social .gallery-comment-form input,
.gallery-comment-form input {
  min-width: 0 !important;
  width: 100% !important;
}

.gallery-modal__social .gallery-comments-mini,
.gallery-comments-mini {
  display: grid !important;
  gap: 12px !important;
  max-height: none !important;
  overflow: visible !important;
}

.gallery-modal__social .gallery-comment,
.gallery-comments-mini .gallery-comment {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 14px 16px !important;
  margin: 0 !important;
  border: 1px solid rgba(148,163,184,.22) !important;
  border-radius: 18px !important;
  background: rgba(15,23,42,.74) !important;
}

.like-details[open] .likers-list,
.like-details[open] .gallery-likers-list,
.like-details[open] .story-likers-list {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  width: min(92vw, 430px) !important;
  max-height: min(70dvh, 460px) !important;
  overflow-y: auto !important;
  z-index: 2147483500 !important;
  padding: 18px 52px 18px 18px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(148,163,184,.28) !important;
  background: rgba(15,23,42,.98) !important;
  box-shadow: 0 28px 80px rgba(0,0,0,.48) !important;
}

.like-details[open] summary {
  position: relative !important;
  z-index: 2 !important;
}

.likers-popover-close {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  width: 34px !important;
  height: 34px !important;
  display: inline-grid !important;
  place-items: center !important;
  border: 1px solid rgba(148,163,184,.24) !important;
  border-radius: 999px !important;
  background: rgba(30,41,59,.86) !important;
  color: #e5e7eb !important;
  cursor: pointer !important;
}

.likers-list__empty,
.gallery-likers-list__empty,
.story-likers-list__empty {
  display: block !important;
  color: #e5e7eb !important;
  font-weight: 800 !important;
}

@media (max-width: 760px) {
  .header-player-now .header-player-modes,
  .header-player-modes {
    justify-content: center !important;
    gap: 8px !important;
  }

  .header-player-now .header-player-mode,
  .header-player-mode {
    flex: 1 1 calc(50% - 8px) !important;
    min-width: min(148px, 100%) !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 12px !important;
    gap: 7px !important;
    font-size: .88rem !important;
  }

  .gallery-modal:not([hidden]) {
    padding: 10px !important;
    align-items: stretch !important;
  }

  .gallery-modal__dialog {
    width: 100% !important;
    max-height: calc(100dvh - 20px) !important;
    padding: 14px !important;
    gap: 10px !important;
  }

  .gallery-modal__stage > img,
  .gallery-modal__stage .gallery-modal-player,
  .gallery-modal__stage .gallery-modal-player .custom-media-player__media {
    max-height: 46dvh !important;
  }

  .gallery-modal__social {
    max-height: 36dvh !important;
    padding: 12px !important;
  }

  .gallery-modal__social .gallery-comment-form,
  .gallery-comment-form {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 430px) {
  .header-player-now .header-player-mode,
  .header-player-mode {
    flex-basis: 100% !important;
    min-width: 0 !important;
  }
}
/* ===== END 2026-05-26 PROFILE MEDIA/MODAL STABILIZATION ===== */

/* Keep generated play controls single-layered when older overlays already contain an icon. */
.story-card .custom-media-player.is-video .custom-media-player__overlay::before,
.gallery-modal__stage .gallery-modal-player .custom-media-player__overlay::before {
  content: none !important;
  display: none !important;
}

.story-card .custom-media-player.is-video .custom-media-player__overlay-icon,
.gallery-modal__stage .gallery-modal-player .custom-media-player__overlay-icon,
.story-video-overlay__icon {
  width: 66px !important;
  height: 66px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 999px !important;
  background: rgba(15,23,42,.72) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  box-shadow: 0 18px 48px rgba(0,0,0,.34) !important;
  backdrop-filter: blur(12px) !important;
}

/* ===== LESKOV v14 targeted layout fixes ===== */
.site-header,
.site-header .header-inner,
.site-header .header-actions,
.site-header .header-notice-wrap {
  overflow: visible !important;
}

.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 2147481200 !important;
}

.site-header .header-inner {
  display: grid !important;
  grid-template-columns: minmax(178px, auto) minmax(0, 1fr) max-content !important;
  align-items: center !important;
  gap: clamp(10px, 1.4vw, 22px) !important;
}

.site-header .brand {
  min-width: 0 !important;
  flex: 0 0 auto !important;
}

.site-header .brand img {
  flex: 0 0 auto !important;
}

.site-header .site-nav {
  /* 2026-08-19: `display:flex !important` жил здесь БЕЗ медиазапроса и
     стоял ПОЗЖЕ правила @media (max-width:980px){...display:none}. В
     результате на ширине ≤980px мобильное выпадающее меню
     (position:fixed) показывалось всегда — пункты «Главная/Мерч/…»
     висели поверх строки поиска даже при закрытом бургере.
     Объявление display убрано: видимостью управляют мобильные
     медиазапросы, а на десктопе .site-header .site-nav выше уже
     задаёт display:flex. */
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  gap: clamp(3px, .55vw, 10px) !important;
  min-width: 0 !important;
  white-space: nowrap !important;
}

.site-header .site-nav a {
  flex: 0 1 auto !important;
  white-space: nowrap !important;
  padding-inline: clamp(7px, .72vw, 13px) !important;
  font-size: clamp(.82rem, .88vw, .98rem) !important;
  line-height: 1.1 !important;
}

.site-header .header-actions {
  justify-self: end !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: nowrap !important;
  gap: clamp(6px, .65vw, 10px) !important;
  width: auto !important;
  min-width: max-content !important;
}

.site-header .language-switcher {
  display: inline-flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: clamp(5px, .5vw, 8px) !important;
}

.site-header :is(.header-icon-btn, .lang-pill, .menu-toggle) {
  flex: 0 0 auto !important;
  box-sizing: border-box !important;
}

.site-header .menu-toggle {
  display: none !important;
}

.header-notice-dropdown {
  box-sizing: border-box !important;
  width: min(420px, calc(100vw - 24px)) !important;
  max-width: calc(100vw - 24px) !important;
  max-height: min(70dvh, 560px) !important;
  overflow: auto !important;
  z-index: 2147481500 !important;
  scrollbar-width: none !important;
}

.header-notice-dropdown::-webkit-scrollbar {
  display: none !important;
}

body.header-player-open .site-header,
body:has(.header-player-panel:not([hidden])) .site-header {
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
}

.header-player-panel:not([hidden]),
body.header-player-open .header-player-panel {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147481000 !important;
  padding: calc(118px + env(safe-area-inset-top)) 14px calc(24px + env(safe-area-inset-bottom)) !important;
  overflow: auto !important;
  background: rgba(5, 8, 17, .86) !important;
}

.header-player-panel:not([hidden]) .header-player-dialog {
  width: min(1120px, calc(100vw - 28px)) !important;
  max-height: calc(100dvh - 142px - env(safe-area-inset-top)) !important;
  margin: 0 auto !important;
  overflow: auto !important;
}

.story-grid,
.profile-section-stories .story-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
  max-height: none !important;
  overflow: visible !important;
}

.story-card {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.story-comments-list,
.story-social-panel .story-comments-list {
  overflow-y: auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.story-comments-list::-webkit-scrollbar,
.story-social-panel .story-comments-list::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.story-comment-form,
.gallery-modal__social .gallery-comment-form {
  gap: 10px !important;
  margin-bottom: 14px !important;
}

.profile-gallery-grid .gallery-social-panel--modal-source,
.profile-gallery-grid .gallery-tile > .gallery-social-panel[hidden],
.profile-gallery-grid .gallery-tile > [data-gallery-social] {
  display: none !important;
}

.profile-gallery-grid .gallery-tile__preview {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
}

.profile-gallery-grid .gallery-tile__play,
.gallery-card[data-gallery-type="video"] .gallery-tile__play {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  pointer-events: none !important;
}

.gallery-modal-native-video {
  display: block !important;
  width: min(100%, 980px) !important;
  max-height: min(68dvh, 700px) !important;
  margin-inline: auto !important;
  object-fit: contain !important;
  background: #000 !important;
  border-radius: clamp(16px, 2vw, 28px) !important;
}

.gallery-modal__social {
  display: grid !important;
  gap: 14px !important;
  width: min(920px, 100%) !important;
  max-height: min(34dvh, 340px) !important;
  overflow: auto !important;
  margin: 12px auto 0 !important;
  scrollbar-width: none !important;
}

.gallery-modal__social::-webkit-scrollbar,
.gallery-modal__social .gallery-comments-mini::-webkit-scrollbar {
  display: none !important;
}

.gallery-modal__social .gallery-social-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

.gallery-modal__social .gallery-comments-mini {
  display: grid !important;
  gap: 12px !important;
  max-height: min(230px, 28dvh) !important;
  overflow: auto !important;
  margin-top: 2px !important;
  scrollbar-width: none !important;
}

.like-details[open] {
  z-index: 2147481800 !important;
}

.like-details[open]::before {
  content: '' !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147481800 !important;
  /* 2026-06-14 — no backdrop blur on the scrim (flicker fix, see site.css). */
  background: rgba(3, 7, 16, .82) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.like-details[open] .likers-list,
.like-details[open] .gallery-likers-list,
.like-details[open] .story-likers-list {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  z-index: 2147481801 !important;
  width: min(430px, calc(100vw - 28px)) !important;
  max-width: calc(100vw - 28px) !important;
  max-height: min(70dvh, 480px) !important;
  overflow: auto !important;
  margin: 0 !important;
  scrollbar-width: none !important;
}

.like-details[open] .likers-list::-webkit-scrollbar,
.like-details[open] .gallery-likers-list::-webkit-scrollbar,
.like-details[open] .story-likers-list::-webkit-scrollbar {
  display: none !important;
}

@media (max-width: 1180px) and (min-width: 921px) {
  .site-header .header-inner {
    grid-template-columns: minmax(150px, auto) minmax(0, 1fr) max-content !important;
    gap: 8px !important;
  }

  .site-header .brand-copy strong {
    font-size: 20px !important;
    letter-spacing: .1em !important;
  }

  .site-header .brand-copy small {
    display: none !important;
  }

  .site-header :is(.header-icon-btn, .lang-pill) {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    padding-inline: 0 !important;
  }
}

@media (max-width: 920px) {
  .site-header {
    z-index: 2147481200 !important;
  }

  .site-header .header-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: start !important;
  }

  .site-header .brand {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .site-header .brand-copy {
    display: grid !important;
    min-width: 0 !important;
  }

  .site-header .brand-copy strong {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: clamp(24px, 7.2vw, 34px) !important;
    letter-spacing: .12em !important;
  }

  .site-header .brand-copy small {
    display: none !important;
  }

  .site-header .site-nav {
    display: none !important;
    position: fixed !important;
    left: max(10px, env(safe-area-inset-left)) !important;
    right: max(10px, env(safe-area-inset-right)) !important;
    top: calc(154px + env(safe-area-inset-top)) !important;
    z-index: 2147481300 !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 14px !important;
    border: 1px solid rgba(126, 153, 198, .28) !important;
    border-radius: 24px !important;
    background: rgba(6, 12, 26, .96) !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .46) !important;
  }

  .site-header .site-nav.is-open,
  body.menu-open .site-header .site-nav {
    display: grid !important;
  }

  .site-header .site-nav a {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .site-header .header-actions {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(36px, 1fr)) !important;
    align-items: center !important;
    justify-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .site-header .language-switcher {
    display: contents !important;
  }

  .site-header :is(.header-icon-btn, .lang-pill, .menu-toggle) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: min(54px, 12vw) !important;
    height: min(54px, 12vw) !important;
    min-width: 0 !important;
    min-height: 42px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    font-size: clamp(.74rem, 3vw, .96rem) !important;
  }

  .site-header .header-player-btn {
    --leskov-btn-size: min(54px, 12vw) !important;
  }

  .site-header .menu-toggle {
    position: relative !important;
    margin: 0 !important;
  }

  .header-notice-wrap {
    position: static !important;
  }

  .header-notice-dropdown {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: calc(132px + env(safe-area-inset-top)) !important;
    width: auto !important;
    max-width: none !important;
    max-height: calc(100dvh - 154px - env(safe-area-inset-top)) !important;
  }

  .header-player-panel:not([hidden]),
  body.header-player-open .header-player-panel {
    padding: calc(188px + env(safe-area-inset-top)) 10px calc(18px + env(safe-area-inset-bottom)) !important;
    z-index: 2147481000 !important;
  }

  .header-player-panel:not([hidden]) .header-player-dialog {
    width: min(560px, calc(100vw - 20px)) !important;
    max-height: calc(100dvh - 206px - env(safe-area-inset-top)) !important;
  }

  .story-grid,
  .profile-section-stories .story-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .gallery-modal-native-video {
    max-height: 46dvh !important;
    border-radius: 18px !important;
  }

  .gallery-modal__social {
    max-height: 34dvh !important;
    padding: 12px !important;
    border-radius: 20px !important;
  }

  .gallery-modal__social .gallery-comment-form,
  .story-comment-form {
    grid-template-columns: 1fr !important;
  }

  .home-event-reopen {
    left: 12px !important;
    right: 86px !important;
    bottom: calc(18px + env(safe-area-inset-bottom)) !important;
    width: auto !important;
    max-width: none !important;
    min-height: 48px !important;
    padding: 10px 14px !important;
    font-size: clamp(.78rem, 3.6vw, .92rem) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    z-index: 9998 !important;
  }

  .home-scroll-top,
  .scroll-top-btn {
    right: 16px !important;
    bottom: calc(18px + env(safe-area-inset-bottom)) !important;
    width: 54px !important;
    height: 54px !important;
    z-index: 9999 !important;
  }
}

@media (max-width: 390px) {
  .site-header .header-actions {
    gap: 6px !important;
  }

  .site-header :is(.header-icon-btn, .lang-pill, .menu-toggle) {
    width: min(48px, 12vw) !important;
    height: min(48px, 12vw) !important;
  }
}
/* ===== END LESKOV v14 targeted layout fixes ===== */

/* ===== LESKOV v15 final mobile/modal fixes ===== */
@media (max-width: 920px) {
  html,
  body {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .site-header {
    width: 100% !important;
    max-width: 100vw !important;
    overflow: visible !important;
  }

  .site-header .header-inner {
    width: min(100%, calc(100vw - 20px)) !important;
    max-width: calc(100vw - 20px) !important;
    margin-inline: auto !important;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "brand" "actions" !important;
    gap: 12px !important;
    padding: 16px !important;
    overflow: visible !important;
  }

  .site-header .brand {
    grid-area: brand !important;
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: center !important;
    justify-content: start !important;
    gap: 12px !important;
  }

  .site-header .brand img {
    width: clamp(50px, 13vw, 58px) !important;
    height: clamp(50px, 13vw, 58px) !important;
  }

  .site-header .brand-copy strong {
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: clamp(28px, 8.8vw, 42px) !important;
    line-height: 1 !important;
    letter-spacing: .14em !important;
  }

  .site-header .brand-copy small {
    display: none !important;
  }

  .site-header .header-actions {
    --leskov-mobile-header-btn: clamp(40px, 10.2vw, 46px);
    grid-area: actions !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    align-items: center !important;
    justify-items: center !important;
    gap: clamp(4px, 1.2vw, 7px) !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .site-header .language-switcher {
    display: contents !important;
  }

  .site-header .header-notice-wrap {
    position: static !important;
    width: var(--leskov-mobile-header-btn) !important;
    height: var(--leskov-mobile-header-btn) !important;
    min-width: 0 !important;
    display: grid !important;
    place-items: center !important;
  }

  .site-header :is(.header-icon-btn, .lang-pill, .menu-toggle) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: var(--leskov-mobile-header-btn) !important;
    height: var(--leskov-mobile-header-btn) !important;
    min-width: 0 !important;
    min-height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 999px !important;
    line-height: 1 !important;
    font-size: clamp(.72rem, 3vw, .92rem) !important;
  }

  .site-header .header-player-btn {
    --leskov-btn-size: var(--leskov-mobile-header-btn) !important;
  }

  .site-header :is(.header-icon-btn, .menu-toggle) svg {
    width: 46% !important;
    height: 46% !important;
  }

  .site-header .menu-toggle {
    position: relative !important;
    display: inline-flex !important;
  }

  .site-header .menu-toggle span {
    position: absolute !important;
    left: 50% !important;
    width: 22px !important;
    height: 2px !important;
    margin: 0 !important;
    transform: translateX(-50%) !important;
    transform-origin: center !important;
  }

  .site-header .menu-toggle span:nth-child(1) { top: calc(50% - 7px) !important; }
  .site-header .menu-toggle span:nth-child(2) { top: 50% !important; transform: translate(-50%, -50%) !important; }
  .site-header .menu-toggle span:nth-child(3) { top: calc(50% + 7px) !important; }
  .site-header .menu-toggle.is-open span:nth-child(1) { top: 50% !important; transform: translate(-50%, -50%) rotate(45deg) !important; }
  .site-header .menu-toggle.is-open span:nth-child(2) { top: 50% !important; transform: translate(-50%, -50%) !important; opacity: 0 !important; }
  .site-header .menu-toggle.is-open span:nth-child(3) { top: 50% !important; transform: translate(-50%, -50%) rotate(-45deg) !important; }

  .site-header .site-nav {
    left: max(10px, env(safe-area-inset-left)) !important;
    right: max(10px, env(safe-area-inset-right)) !important;
    top: calc(150px + env(safe-area-inset-top)) !important;
    max-height: calc(100dvh - 170px - env(safe-area-inset-top)) !important;
  }

  .header-notice-dropdown {
    left: max(10px, env(safe-area-inset-left)) !important;
    right: max(10px, env(safe-area-inset-right)) !important;
    top: calc(146px + env(safe-area-inset-top)) !important;
    width: auto !important;
    max-width: none !important;
    max-height: calc(100dvh - 166px - env(safe-area-inset-top)) !important;
    box-sizing: border-box !important;
  }

  .header-player-panel:not([hidden]),
  body.header-player-open .header-player-panel {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: calc(126px + env(safe-area-inset-top)) 10px calc(18px + env(safe-area-inset-bottom)) !important;
    overflow: auto !important;
    overscroll-behavior: contain !important;
    z-index: 2147481000 !important;
  }

  .header-player-panel:not([hidden]) .header-player-dialog {
    width: min(560px, calc(100vw - 20px)) !important;
    max-height: calc(100dvh - 150px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    margin: auto !important;
    overflow: auto !important;
    overscroll-behavior: contain !important;
  }

  .header-player-panel:not([hidden]) .header-player-shell {
    max-height: inherit !important;
    overflow: auto !important;
  }
}

@media (max-width: 430px) {
  .site-header .header-inner {
    width: min(100%, calc(100vw - 16px)) !important;
    max-width: calc(100vw - 16px) !important;
    padding: 14px 12px !important;
    gap: 11px !important;
  }

  .site-header .brand {
    gap: 10px !important;
  }

  .site-header .header-actions {
    --leskov-mobile-header-btn: clamp(38px, 10.4vw, 43px);
    gap: 4px !important;
  }

  .site-header .brand-copy strong {
    font-size: clamp(27px, 8.6vw, 38px) !important;
    letter-spacing: .12em !important;
  }
}

@media (max-width: 370px) {
  .site-header .header-actions {
    --leskov-mobile-header-btn: 38px;
    gap: 3px !important;
  }

  .site-header .brand-copy strong {
    font-size: 26px !important;
  }
}

.story-viewer__dialog,
.gallery-modal__dialog {
  position: relative !important;
}

.story-viewer__nav {
  top: var(--story-nav-top, 50%) !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  z-index: 16 !important;
}

.gallery-modal__nav {
  top: var(--gallery-nav-top, 50%) !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  z-index: 16 !important;
}

.story-viewer__stage .story-video-overlay {
  display: none !important;
  pointer-events: none !important;
}

@media (max-width: 760px) {
  .story-viewer__nav {
    top: var(--story-nav-top, calc(52px + min(32dvh, 270px))) !important;
    width: 56px !important;
    height: 56px !important;
  }

  .story-viewer__nav.is-prev { left: 12px !important; }
  .story-viewer__nav.is-next { right: 12px !important; }

  .gallery-modal__nav {
    top: var(--gallery-nav-top, calc(16px + min(25dvh, 230px))) !important;
    width: 56px !important;
    height: 56px !important;
  }

  .gallery-modal__nav.is-prev { left: 10px !important; }
  .gallery-modal__nav.is-next { right: 10px !important; }
}

.like-details[open]::before {
  pointer-events: auto !important;
}

.like-details[open] .likers-list,
.like-details[open] .gallery-likers-list,
.like-details[open] .story-likers-list {
  box-sizing: border-box !important;
  width: min(430px, calc(100vw - 24px)) !important;
  max-width: calc(100vw - 24px) !important;
  max-height: min(72dvh, 480px) !important;
  padding: 18px 54px 18px 18px !important;
  overflow: auto !important;
  overscroll-behavior: contain !important;
  z-index: 2147483600 !important;
}

@media (max-width: 640px) {
  .like-details[open] .likers-list,
  .like-details[open] .gallery-likers-list,
  .like-details[open] .story-likers-list {
    top: 50% !important;
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100dvh - 120px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    border-radius: 22px !important;
  }
}
/* ===== END LESKOV v15 final mobile/modal fixes ===== */

/* ===== LESKOV v16 homepage overrides ===== */
@media(max-width:920px){
  html,body{max-width:100%!important;overflow-x:hidden!important;}
  .site-header{overflow:visible!important;}
  .site-header .header-inner{width:min(100%,calc(100vw - 16px))!important;max-width:calc(100vw - 16px)!important;min-width:0!important;grid-template-columns:1fr!important;grid-template-areas:"brand" "actions"!important;justify-items:stretch!important;gap:12px!important;padding:14px clamp(12px,3vw,18px) 16px!important;box-sizing:border-box!important;border-radius:clamp(24px,7vw,34px)!important;}
  .site-header .brand{grid-area:brand!important;display:flex!important;width:100%!important;min-width:0!important;max-width:100%!important;justify-content:flex-start!important;align-items:center!important;gap:clamp(10px,2.4vw,14px)!important;}
  body[data-user-auth="1"] .site-header .brand,body.app-shell .site-header .brand{display:flex!important;gap:clamp(10px,2.4vw,14px)!important;min-width:0!important;}
  .site-header .brand img{display:block!important;flex:0 0 auto!important;width:clamp(46px,11vw,58px)!important;height:clamp(46px,11vw,58px)!important;max-width:none!important;}
  body.app-shell .site-header .brand img,body[data-user-auth="1"] .site-header .brand img{display:block!important;}
  .site-header .brand-copy{display:block!important;min-width:0!important;max-width:calc(100vw - 104px)!important;}
  .site-header .brand-copy strong{display:block!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:clamp(30px,9.4vw,46px)!important;line-height:1!important;letter-spacing:.12em!important;}
  .site-header .brand-copy small{display:none!important;}
  .site-header .header-actions{--leskov-mobile-header-btn:clamp(38px,9.5vw,46px);grid-area:actions!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-start!important;width:100%!important;max-width:100%!important;min-width:0!important;gap:clamp(6px,1.6vw,10px)!important;padding:0!important;box-sizing:border-box!important;overflow:visible!important;}
  .site-header .language-switcher{display:flex!important;flex:0 0 auto!important;align-items:center!important;gap:inherit!important;min-width:0!important;}
  .site-header .header-notice-wrap{position:static!important;display:grid!important;place-items:center!important;flex:0 0 var(--leskov-mobile-header-btn)!important;width:var(--leskov-mobile-header-btn)!important;height:var(--leskov-mobile-header-btn)!important;min-width:0!important;}
  .site-header :is(.header-icon-btn,.lang-pill,.menu-toggle){flex:0 0 var(--leskov-mobile-header-btn)!important;width:var(--leskov-mobile-header-btn)!important;height:var(--leskov-mobile-header-btn)!important;min-width:0!important;min-height:0!important;padding:0!important;margin:0!important;border-radius:999px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:1!important;font-size:clamp(.72rem,2.8vw,.9rem)!important;}
  .site-header .header-player-btn{--leskov-btn-size:var(--leskov-mobile-header-btn)!important;}
  .site-header :is(.header-icon-btn,.menu-toggle) svg{width:42%!important;height:42%!important;max-width:24px!important;max-height:24px!important;}
  .site-header .menu-toggle{position:relative!important;}
  .site-header .menu-toggle span{position:absolute!important;left:50%!important;width:42%!important;max-width:22px!important;height:2px!important;margin:0!important;transform:translateX(-50%)!important;}
  .site-header .menu-toggle span:nth-child(1){top:calc(50% - 7px)!important;}
  .site-header .menu-toggle span:nth-child(2){top:50%!important;transform:translate(-50%,-50%)!important;}
  .site-header .menu-toggle span:nth-child(3){top:calc(50% + 7px)!important;}
  .site-header .menu-toggle.is-open span:nth-child(1){top:50%!important;transform:translate(-50%,-50%) rotate(45deg)!important;}
  .site-header .menu-toggle.is-open span:nth-child(2){opacity:0!important;}
  .site-header .menu-toggle.is-open span:nth-child(3){top:50%!important;transform:translate(-50%,-50%) rotate(-45deg)!important;}
  .site-header .header-notice-badge{width:18px!important;height:18px!important;min-width:18px!important;font-size:.68rem!important;top:-3px!important;right:-3px!important;}
  .site-header .site-nav{left:max(10px,env(safe-area-inset-left))!important;right:max(10px,env(safe-area-inset-right))!important;top:calc(148px + env(safe-area-inset-top))!important;max-height:calc(100dvh - 168px - env(safe-area-inset-top))!important;}
  .header-notice-dropdown{left:max(10px,env(safe-area-inset-left))!important;right:max(10px,env(safe-area-inset-right))!important;top:calc(146px + env(safe-area-inset-top))!important;width:auto!important;max-width:none!important;max-height:calc(100dvh - 166px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;box-sizing:border-box!important;}
  .header-player-panel:not([hidden]),body.header-player-open .header-player-panel{position:fixed!important;inset:0!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:calc(18px + env(safe-area-inset-top)) 10px calc(78px + env(safe-area-inset-bottom))!important;overflow:auto!important;overscroll-behavior:contain!important;z-index:2147481000!important;}
  .header-player-panel:not([hidden]) .header-player-dialog{width:min(560px,calc(100vw - 20px))!important;max-height:calc(100dvh - 108px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;margin:auto!important;overflow:auto!important;overscroll-behavior:contain!important;transform:none!important;}
}
@media(max-width:430px){.site-header .header-inner{width:min(100%,calc(100vw - 14px))!important;max-width:calc(100vw - 14px)!important;padding:13px 11px 15px!important;gap:11px!important}.site-header .brand-copy strong{font-size:clamp(28px,9vw,38px)!important;letter-spacing:.105em!important}.site-header .header-actions{--leskov-mobile-header-btn:clamp(38px,9.8vw,42px);gap:6px!important}}
@media(max-width:370px){.site-header .header-inner{padding-inline:10px!important}.site-header .brand img{width:44px!important;height:44px!important}.site-header .brand-copy strong{font-size:28px!important;letter-spacing:.09em!important}.site-header .header-actions{--leskov-mobile-header-btn:36px;gap:5px!important}}

.home-event-modal[hidden]{display:none!important}
.home-event-modal:not([hidden]){position:fixed!important;inset:0!important;z-index:2147480900!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:calc(20px + env(safe-area-inset-top)) calc(18px + env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) calc(18px + env(safe-area-inset-left))!important;overflow:auto!important;overscroll-behavior:contain!important;box-sizing:border-box!important}
.home-event-backdrop{position:fixed!important;inset:0!important}
.home-event-card{position:relative!important;width:min(620px,calc(100vw - 36px))!important;max-width:calc(100vw - 36px)!important;max-height:calc(100dvh - 44px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;margin:auto!important;padding:74px clamp(24px,4vw,42px) 30px!important;overflow:auto!important;overscroll-behavior:contain!important;box-sizing:border-box!important;border-radius:30px!important}
.home-event-close{position:absolute!important;top:18px!important;left:18px!important;right:auto!important;z-index:40!important}
.home-event-lang{position:absolute!important;top:18px!important;right:18px!important;z-index:39!important;display:flex!important;align-items:center!important;gap:6px!important;margin:0!important}
.home-event-card::before{top:28px!important;right:154px!important;max-width:170px!important;overflow:hidden!important}
.home-event-card h2{max-width:100%!important;margin:16px 0 12px!important;font-size:clamp(2.4rem,5.4vw,4.9rem)!important;line-height:.95!important;letter-spacing:0!important;word-break:normal!important;overflow-wrap:normal!important}
.home-event-card p{max-width:100%!important;line-height:1.5!important}
.home-event-stats{display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:wrap!important;gap:12px!important;max-width:100%!important}
.home-event-stats strong{white-space:nowrap!important}
.home-event-button{width:100%!important;max-width:100%!important;text-align:center!important}
.home-event-reopen{width:auto!important;max-width:min(380px,calc(100vw - 36px))!important;box-sizing:border-box!important;white-space:normal!important}
.home-event-modal:not([hidden]) + .home-event-reopen{display:none!important}
body.header-player-open .home-event-reopen,body.header-player-open .scroll-top-btn,body.header-player-open .home-scroll-top{display:none!important}
@media(max-width:640px){
  .home-event-modal:not([hidden]){align-items:flex-start!important;padding:calc(14px + env(safe-area-inset-top)) calc(10px + env(safe-area-inset-right)) calc(92px + env(safe-area-inset-bottom)) calc(10px + env(safe-area-inset-left))!important}
  .home-event-card{width:calc(100vw - 20px)!important;max-width:calc(100vw - 20px)!important;max-height:calc(100dvh - 118px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;padding:86px 18px 22px!important;border-radius:28px!important}
  .home-event-close{top:18px!important;left:18px!important;width:46px!important;height:46px!important}
  .home-event-lang{top:18px!important;right:16px!important;gap:4px!important;transform:none!important}
  .home-event-lang button{min-width:36px!important;height:30px!important;padding:0 9px!important;font-size:.76rem!important}
  .home-event-card::before{top:28px!important;right:120px!important;max-width:108px!important;letter-spacing:6px!important;opacity:.25!important}
  .home-event-eyebrow{max-width:100%!important}
  .home-event-card h2{font-size:clamp(2rem,11.2vw,3.25rem)!important;line-height:.98!important}
  .home-event-stats{padding:14px!important;border-radius:20px!important}
  .home-event-stats strong{font-size:clamp(2rem,11vw,3rem)!important}
  .home-event-reopen{left:14px!important;right:14px!important;bottom:calc(118px + env(safe-area-inset-bottom))!important;width:auto!important;max-width:none!important;min-height:42px!important;padding:7px 12px!important;font-size:.82rem!important;z-index:160!important}
}

.message-video-shell.is-native.is-circle{--circle-size:clamp(176px,42vw,236px)!important;width:var(--circle-size)!important;height:var(--circle-size)!important;min-width:0!important;max-width:100%!important;aspect-ratio:1/1!important;overflow:hidden!important;border-radius:999px!important;margin-inline:auto!important}
.message-video-shell.is-native.is-circle .custom-media-player.is-video.is-compact,.message-video-shell.is-native.is-circle [data-media-player]{width:100%!important;height:100%!important;aspect-ratio:1/1!important;overflow:hidden!important;border-radius:999px!important}
.message-video-shell.is-native.is-circle .custom-media-player__media,.message-video-shell.is-native.is-circle video.custom-media-player__media{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;border-radius:999px!important}
.message-video-shell.is-native.is-circle .video-circle-timeline__center-btn{display:grid!important;place-items:center!important;opacity:.92!important;visibility:visible!important;pointer-events:auto!important}
.message-video-shell.is-native.is-circle .custom-media-player.is-playing:not(:hover):not(:focus-within):not(.show-mobile-controls) .video-circle-timeline__center-btn{opacity:0!important;pointer-events:none!important}
/* 2026-08-20: тот же блок дублировался в site.css и здесь. Убираем
   overflow:hidden!important с обёртки — он обрезал кольцо записи и
   подпись под кружком (см. комментарий в site.css). */
.video-circle-preview,.video-circle-preview video{aspect-ratio:1/1!important;border-radius:999px!important;object-fit:cover!important}
.video-circle-preview video{overflow:hidden!important}
.call-overlay:not([hidden]){position:fixed!important;inset:0!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:calc(16px + env(safe-area-inset-top)) 12px calc(16px + env(safe-area-inset-bottom))!important;overflow:auto!important;overscroll-behavior:contain!important;z-index:2147480800!important}
.call-overlay__card{width:min(980px,calc(100vw - 24px))!important;max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;overflow:auto!important;box-sizing:border-box!important}
.call-video-grid{position:relative!important;overflow:hidden!important}
.call-video-grid video{max-width:100%!important;object-fit:cover!important}
@media(max-width:640px){.message-video-shell.is-native.is-circle{--circle-size:min(204px,58vw)!important}.call-overlay:not([hidden]){align-items:center!important;padding:calc(10px + env(safe-area-inset-top)) 8px calc(10px + env(safe-area-inset-bottom))!important}.call-overlay__card{width:calc(100vw - 16px)!important;max-height:calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;border-radius:24px!important}.call-controls{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.call-controls .media-action-btn{width:100%!important;min-width:0!important}}
/* ===== END LESKOV v16 homepage overrides ===== */

/* ===== LESKOV v17 homepage/mobile fixes ===== */
@media(max-width:920px){
  html,body{max-width:100%!important;overflow-x:hidden!important}
  .site-header{position:relative!important;z-index:260!important;overflow:visible!important}
  .site-header .header-inner{width:calc(100vw - 18px)!important;max-width:calc(100vw - 18px)!important;min-width:0!important;grid-template-columns:1fr!important;grid-template-areas:"brand" "actions"!important;gap:10px!important;padding:12px!important;border-radius:26px!important;box-sizing:border-box!important;overflow:visible!important}
  .site-header .brand{grid-area:brand!important;gap:10px!important;min-width:0!important;max-width:100%!important}
  body[data-user-auth="1"] .site-header .brand,body.app-shell .site-header .brand{display:flex!important}
  .site-header .brand img{width:40px!important;height:40px!important;flex:0 0 40px!important}
  .site-header .brand-copy{display:block!important;min-width:0!important;max-width:calc(100vw - 82px)!important}
  .site-header .brand-copy strong{font-size:clamp(24px,7.2vw,34px)!important;line-height:1!important;letter-spacing:.11em!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .site-header .brand-copy small{display:none!important}
  .site-header .header-actions{--leskov-mobile-header-btn:38px;grid-area:actions!important;display:flex!important;flex-wrap:wrap!important;gap:7px!important;align-items:center!important;justify-content:flex-start!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:0!important;overflow:visible!important}
  .site-header .header-notice-wrap,.site-header .language-switcher{display:flex!important;gap:7px!important;min-width:0!important}
  .site-header .header-notice-wrap{position:static!important;flex:0 0 var(--leskov-mobile-header-btn)!important;width:var(--leskov-mobile-header-btn)!important;height:var(--leskov-mobile-header-btn)!important}
  .site-header :is(.header-icon-btn,.lang-pill,.menu-toggle){flex:0 0 var(--leskov-mobile-header-btn)!important;width:var(--leskov-mobile-header-btn)!important;height:var(--leskov-mobile-header-btn)!important;min-width:0!important;min-height:0!important;padding:0!important;margin:0!important;font-size:.76rem!important;line-height:1!important}
  .site-header .header-player-btn{--leskov-btn-size:var(--leskov-mobile-header-btn)!important}
  .site-header :is(.header-icon-btn,.menu-toggle) svg{width:18px!important;height:18px!important;max-width:18px!important;max-height:18px!important}
  .site-header .menu-toggle{position:relative!important}
  .site-header .menu-toggle span{position:absolute!important;left:50%!important;width:18px!important;height:2px!important;margin:0!important;transform:translateX(-50%)!important}
  .site-header .menu-toggle span:nth-child(1){top:calc(50% - 6px)!important}
  .site-header .menu-toggle span:nth-child(2){top:50%!important;transform:translate(-50%,-50%)!important}
  .site-header .menu-toggle span:nth-child(3){top:calc(50% + 6px)!important}
  .site-header .header-notice-badge{width:16px!important;height:16px!important;min-width:16px!important;font-size:.62rem!important;top:-3px!important;right:-3px!important}
  .site-header .site-nav,.header-notice-dropdown{top:calc(108px + env(safe-area-inset-top))!important}
  .site-header .site-nav{max-height:calc(100dvh - 126px - env(safe-area-inset-top))!important}
  .header-notice-dropdown{max-height:calc(100dvh - 128px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important}
  .header-player-panel:not([hidden]),body.header-player-open .header-player-panel{z-index:2147483400!important}
}
@media(max-width:430px){.site-header .header-inner{width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;padding:11px!important;gap:9px!important;border-radius:24px!important}.site-header .brand img{width:38px!important;height:38px!important;flex-basis:38px!important}.site-header .brand-copy strong{font-size:clamp(23px,7.5vw,31px)!important;letter-spacing:.095em!important}.site-header .header-actions{--leskov-mobile-header-btn:36px;gap:7px!important}.site-header :is(.header-icon-btn,.menu-toggle) svg{width:17px!important;height:17px!important}}
@media(max-width:370px){.site-header .brand img{width:34px!important;height:34px!important;flex-basis:34px!important}.site-header .brand-copy strong{font-size:22px!important;letter-spacing:.08em!important}.site-header .header-actions{--leskov-mobile-header-btn:34px;gap:6px!important}}

.home-event-modal:not([hidden]){z-index:2147483600!important;align-items:center!important;padding:calc(18px + env(safe-area-inset-top)) calc(14px + env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) calc(14px + env(safe-area-inset-left))!important}
.home-event-card{max-height:calc(100dvh - 36px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;transform:none!important}
@media(max-width:640px){.home-event-modal:not([hidden]){align-items:center!important;padding:calc(12px + env(safe-area-inset-top)) calc(10px + env(safe-area-inset-right)) calc(78px + env(safe-area-inset-bottom)) calc(10px + env(safe-area-inset-left))!important}.home-event-card{width:calc(100vw - 20px)!important;max-width:calc(100vw - 20px)!important;max-height:calc(100dvh - 90px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;padding:76px 18px 22px!important}}

.gallery-modal__dialog{grid-template-rows:minmax(0,auto) auto minmax(176px,32dvh)!important}
.gallery-modal__stage{max-height:min(56dvh,620px)!important}
.gallery-modal-native-video{cursor:pointer!important}
.gallery-modal__social{display:flex!important;flex-direction:column!important;gap:14px!important;min-height:176px!important;max-height:min(34dvh,340px)!important;overflow:hidden!important}
.gallery-modal__social .gallery-social-panel{display:flex!important;flex-direction:column!important;gap:14px!important;min-height:0!important;height:100%!important}
.gallery-modal__social .gallery-social-actions,.story-social-panel .story-social-actions,.gallery-modal__social .gallery-comment-form,.story-comment-form{flex:0 0 auto!important}
.gallery-modal__social .gallery-comments-mini,.story-comments-list{flex:1 1 auto!important;min-height:0!important;max-height:none!important;overflow:auto!important;overscroll-behavior:contain!important;scrollbar-width:none!important}
.gallery-modal__social .gallery-comments-mini::-webkit-scrollbar,.story-comments-list::-webkit-scrollbar{width:0!important;height:0!important}
@media(max-width:760px){.gallery-modal__dialog{grid-template-rows:minmax(0,auto) auto minmax(220px,38dvh)!important}.gallery-modal__stage{max-height:42dvh!important}.gallery-modal__stage > img,.gallery-modal__stage video,.gallery-modal__stage .gallery-modal-player,.gallery-modal__stage .gallery-modal-player .custom-media-player__media{max-height:42dvh!important}.gallery-modal__social{min-height:220px!important;max-height:38dvh!important}}

.like-details:not([open])::before{display:none!important;content:none!important}
.like-details:not([open]) .likers-list,.like-details:not([open]) .gallery-likers-list,.like-details:not([open]) .story-likers-list{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important}
.like-details:hover:not([open]) .likers-list,.like-details:hover:not([open]) .gallery-likers-list,.like-details:hover:not([open]) .story-likers-list{display:none!important}
.story-viewer__stage video,.story-viewer__stage img{object-fit:contain!important;max-width:100%!important;max-height:min(62dvh,640px)!important}
.story-viewer__stage video{cursor:pointer!important}
.story-viewer__nav,.gallery-modal__nav{top:var(--story-nav-top,var(--gallery-nav-top,50%))!important;bottom:auto!important;transform:translateY(-50%)!important}
.gallery-modal__nav{top:var(--gallery-nav-top,50%)!important}
@media(max-width:760px){.story-viewer__nav,.gallery-modal__nav{width:48px!important;height:48px!important}}
input[type="date"].admin-input{color-scheme:dark;min-width:0!important}
.gallery-modal:not([hidden]),.story-viewer:not([hidden]){z-index:2147483000!important}
body.header-player-open .site-header,body:has(.header-player-panel:not([hidden])) .site-header{visibility:visible!important;opacity:1!important;pointer-events:auto!important;filter:none!important}
.header-player-panel[hidden]{display:none!important}
/* ===== END LESKOV v17 homepage/mobile fixes ===== */

/* ===== LESKOV v19 final: stable mobile header, premium player, gallery and likers ===== */
html,body{max-width:100%;overflow-x:hidden!important;}
@media(max-width:860px){
  body.header-player-open{overflow:hidden!important;}
  body.header-player-open .site-header,
  body:has(.header-player-panel:not([hidden])) .site-header{
    display:block!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;filter:none!important;transform:none!important;position:sticky!important;top:0!important;z-index:2147483500!important;
  }
  body.header-player-open .mobile-bottom-nav,
  body:has(.header-player-panel:not([hidden])) .mobile-bottom-nav{
    display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;
  }
  .site-header{width:100%!important;max-width:100vw!important;overflow:visible!important;padding:calc(8px + env(safe-area-inset-top)) 8px 8px!important;box-sizing:border-box!important;}
  .site-header .container.header-inner,.site-header .header-inner{
    width:100%!important;max-width:100%!important;min-width:0!important;margin:0 auto!important;box-sizing:border-box!important;
    display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:10px 12px!important;
    padding:10px 12px!important;border-radius:28px!important;overflow:visible!important;
  }
  .site-header .brand{min-width:0!important;max-width:100%!important;display:flex!important;align-items:center!important;gap:10px!important;overflow:hidden!important;grid-column:1/2!important;}
  .site-header .brand img{width:56px!important;height:56px!important;flex:0 0 56px!important;border-radius:50%!important;object-fit:cover!important;}
  .site-header .brand-copy{min-width:0!important;display:block!important;overflow:hidden!important;}
  .site-header .brand-copy strong{font-size:clamp(28px,7.8vw,44px)!important;line-height:.9!important;letter-spacing:.065em!important;white-space:nowrap!important;display:block!important;}
  .site-header .brand-copy small{font-size:.68rem!important;line-height:1.1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
  .site-header .header-actions{grid-column:1/-1!important;width:100%!important;min-width:0!important;max-width:100%!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;flex-wrap:wrap!important;gap:7px!important;overflow:visible!important;}
  .site-header .site-nav{grid-column:1/-1!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow:auto!important;}
  .site-header .header-icon-btn,.site-header .header-player-btn,.site-header .menu-toggle{
    width:42px!important;height:42px!important;min-width:42px!important;max-width:42px!important;flex:0 0 42px!important;border-radius:50%!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;position:relative!important;
  }
  .site-header .header-icon-btn svg,.site-header .header-player-btn svg,.site-header .menu-toggle svg{width:18px!important;height:18px!important;}
  .site-header .menu-toggle span{width:18px!important;height:2px!important;}
  .site-header .language-switcher{display:flex!important;align-items:center!important;gap:4px!important;flex:0 0 auto!important;min-width:0!important;padding:3px!important;border-radius:24px!important;}
  .site-header .language-switcher .lang-pill{height:40px!important;min-width:42px!important;padding:0 12px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border-radius:22px!important;font-size:.78rem!important;line-height:1!important;}
  .site-header .icon-badge,.site-header .header-notice-badge{min-width:18px!important;width:auto!important;height:18px!important;line-height:18px!important;font-size:.65rem!important;top:-3px!important;right:-3px!important;z-index:3!important;}
  .header-player-panel:not([hidden]),body.header-player-open .header-player-panel{
    display:block!important;position:fixed!important;inset:0!important;z-index:2147483400!important;overflow:auto!important;overscroll-behavior:contain!important;padding:calc(108px + env(safe-area-inset-top)) 10px calc(18px + env(safe-area-inset-bottom))!important;background:rgba(3,7,18,.94)!important;
  }
  .header-player-panel[hidden]{display:none!important;}
  .header-player-dialog{width:min(100%,760px)!important;max-width:100%!important;margin:0 auto!important;}
}
@media(max-width:430px){
  .site-header .container.header-inner,.site-header .header-inner{padding:9px 10px!important;gap:8px 10px!important;border-radius:24px!important;}
  .site-header .brand{gap:8px!important;}
  .site-header .brand img{width:52px!important;height:52px!important;flex-basis:52px!important;}
  .site-header .brand-copy strong{font-size:clamp(24px,8.2vw,34px)!important;letter-spacing:.055em!important;}
  .site-header .brand-copy small{display:none!important;}
  .site-header .header-actions{gap:6px!important;}
  .site-header .header-icon-btn,.site-header .header-player-btn,.site-header .menu-toggle{width:40px!important;height:40px!important;min-width:40px!important;flex-basis:40px!important;}
  .site-header .language-switcher .lang-pill{height:38px!important;min-width:40px!important;padding:0 10px!important;}
}
@media(max-width:360px){
  .site-header .brand img{width:48px!important;height:48px!important;flex-basis:48px!important;}
  .site-header .brand-copy strong{font-size:22px!important;letter-spacing:.045em!important;}
  .site-header .header-icon-btn,.site-header .header-player-btn,.site-header .menu-toggle{width:38px!important;height:38px!important;min-width:38px!important;flex-basis:38px!important;}
  .site-header .language-switcher .lang-pill{height:36px!important;min-width:38px!important;padding:0 9px!important;}
}
.home-event-modal:not([hidden]){z-index:2147483600!important;align-items:center!important;justify-content:center!important;overflow:auto!important;padding:calc(16px + env(safe-area-inset-top)) calc(12px + env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-left))!important;}
.home-event-card{width:min(92vw,620px)!important;max-height:calc(100dvh - 40px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;overflow:auto!important;}
@media(max-width:640px){.home-event-card{width:calc(100vw - 20px)!important;max-height:calc(100dvh - 86px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;padding:70px 18px 22px!important;}.home-event-close{top:14px!important;left:14px!important;}}
.gallery-tile__preview{position:relative!important;overflow:hidden!important;}
.gallery-tile__play{position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;margin:0!important;z-index:5!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;}
.gallery-tile > .gallery-social-panel[data-gallery-social],.profile-gallery-grid > .gallery-tile .gallery-social-panel[data-gallery-social]{display:none!important;}
.gallery-modal__social .gallery-social-panel[data-gallery-social]{display:flex!important;flex-direction:column!important;}
.gallery-modal__dialog{max-width:min(1180px,calc(100vw - 24px))!important;max-height:calc(100dvh - 24px)!important;overflow:hidden!important;}
.gallery-modal__stage{min-width:0!important;}
.gallery-modal-native-video,.gallery-modal__stage video{display:block!important;width:100%!important;max-width:100%!important;max-height:min(64dvh,720px)!important;object-fit:contain!important;background:#000!important;cursor:pointer!important;}
.gallery-modal__caption{overflow-wrap:anywhere!important;}
.gallery-modal__social{gap:14px!important;}
.gallery-modal__social .gallery-comment-form,.story-comment-form{display:flex!important;align-items:center!important;gap:10px!important;}
.gallery-modal__social .gallery-comment-form .admin-input,.story-comment-form .admin-input{min-width:0!important;flex:1 1 auto!important;}
.gallery-comments-mini,.story-comments-list{display:flex!important;flex-direction:column!important;gap:10px!important;overflow:auto!important;overscroll-behavior:contain!important;}
.like-details{position:relative!important;}
.like-details:not([open]) .likers-list,.like-details:not([open]) .gallery-likers-list,.like-details:not([open]) .story-likers-list,.like-details:not([open]) .likers-summary{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;transform:none!important;animation:none!important;}
.like-details:hover:not([open]) .likers-list,.like-details:hover:not([open]) .gallery-likers-list,.like-details:hover:not([open]) .story-likers-list,.like-details:hover:not([open]) .likers-summary{display:none!important;visibility:hidden!important;opacity:0!important;}
.like-details[open]{z-index:2147483200!important;}
.like-details[open] .likers-list,.like-details[open] .gallery-likers-list,.like-details[open] .story-likers-list,.like-details[open] .likers-summary{display:block!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;animation:none!important;transform:none!important;}
.likers-popover-close{float:right;margin:-4px -4px 8px 10px;width:28px;height:28px;border:0;border-radius:999px;background:rgba(255,255,255,.08);color:inherit;font-size:18px;line-height:1;cursor:pointer;}
@media(max-width:760px){.like-details[open] .likers-list,.like-details[open] .gallery-likers-list,.like-details[open] .story-likers-list,.like-details[open] .likers-summary{position:fixed!important;left:12px!important;right:12px!important;top:auto!important;bottom:calc(88px + env(safe-area-inset-bottom))!important;width:auto!important;max-width:none!important;max-height:min(48dvh,360px)!important;overflow:auto!important;z-index:2147483300!important;}}
/* ===== END LESKOV v19 final ===== */

/* 2026-06-10 — manageable streaming panel */
.streaming-panel__image{width:72px;height:72px;border-radius:20px;overflow:hidden;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.05);display:grid;place-items:center;flex:0 0 auto}
.streaming-panel__image img{width:100%;height:100%;object-fit:cover;display:block}
@media(max-width:720px){.streaming-panel__image{width:60px;height:60px}}

/* 2026-06-10 — gallery modal should not reserve empty social space */
.gallery-modal__dialog{
  grid-template-rows:minmax(0,auto) auto!important;
}
.gallery-modal__stage{
  max-height:min(72dvh,760px)!important;
}
.gallery-modal__social:empty,
.gallery-modal__social[hidden],
.gallery-modal__caption:empty{
  display:none!important;
  min-height:0!important;
  max-height:0!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
}
.gallery-modal__social:not(:has(.gallery-social-panel)){
  display:none!important;
  min-height:0!important;
  max-height:0!important;
}

/* 2026-06-10 v3 — homepage notification dropdown and premium section */
.header-notice-dropdown{overflow:visible!important;max-height:min(78vh,640px)!important;display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;}
.header-notice-list{min-height:0!important;max-height:min(52vh,420px)!important;overflow:auto!important;padding-right:4px!important;padding-bottom:8px!important;}
.header-notice-all{position:sticky!important;bottom:0!important;width:100%!important;box-sizing:border-box!important;min-height:48px!important;z-index:2!important;background:linear-gradient(135deg,rgba(122,165,255,.18),rgba(124,241,211,.14))!important;box-shadow:0 -10px 24px rgba(5,10,20,.36)!important;white-space:normal!important;text-align:center!important;}
.home-premium-player-shell{display:grid;gap:14px;align-items:start;width:100%;max-width:100%;}
.home-premium-status--standalone{margin:0;width:100%;position:static;}
.home-premium-player-wrap{width:100%;min-width:0;overflow:visible;}
.home-premium-actions--standalone{margin-top:0;display:flex;gap:10px;flex-wrap:wrap;}
@media(max-width:560px){.header-notice-dropdown{width:calc(100vw - 18px)!important;left:auto!important;right:0!important}.header-notice-all{font-size:.9rem!important}}

/* 2026-06-10 v3.1 — final notification/call override */
.home-premium-player-wrap .leskov-player--premium{width:100%;max-width:100%;min-width:0;box-sizing:border-box;overflow:hidden;}
.header-notice-dropdown{display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;overflow:visible!important;max-height:min(78vh,640px)!important;padding-bottom:12px!important;}
.header-notice-list{min-height:0!important;max-height:min(52vh,420px)!important;overflow:auto!important;padding-right:4px!important;padding-bottom:10px!important;}
.header-notice-all{position:sticky!important;bottom:0!important;display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:50px!important;padding:12px 16px!important;box-sizing:border-box!important;white-space:normal!important;line-height:1.2!important;overflow:visible!important;z-index:3!important;}
.call-overlay:not([hidden]){position:fixed!important;inset:0!important;z-index:2147480800!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:calc(16px + env(safe-area-inset-top)) 12px calc(16px + env(safe-area-inset-bottom))!important;overflow:auto!important;}
.call-overlay__card{width:min(1120px,calc(100vw - 24px))!important;max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;overflow:auto!important;box-sizing:border-box!important;}
/* 2026-07-09 — self-view moved BESIDE the remote video (was an absolute overlay
   on top of the live stream, which caused the remote video to stutter and the
   audio to crackle). Side-by-side flex; the local <video> fills its .call-self
   box instead of floating over the remote one. Old "Вы" label removed — the
   .call-self box carries its own camera-mode chip now. */
.call-video-grid{position:relative!important;display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:12px!important;width:100%!important;height:clamp(420px,64svh,660px)!important;min-height:clamp(420px,64svh,660px)!important;align-items:flex-start!important;border-radius:0!important;overflow:visible!important;background:transparent!important;border:0!important;}
.call-video-grid video#remoteCallVideo,#remoteCallVideo{position:relative!important;inset:auto!important;flex:1 1 auto!important;display:block!important;width:auto!important;min-width:0!important;height:100%!important;min-height:100%!important;max-height:none!important;align-self:stretch!important;object-fit:cover!important;border-radius:22px!important;background:#020712!important;border:1px solid rgba(255,255,255,.08)!important;opacity:1!important;visibility:visible!important;}
.call-video-grid video#localCallVideo,#localCallVideo{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;display:block!important;object-fit:cover!important;border-radius:0!important;border:0!important;background:#07101d!important;opacity:1!important;visibility:visible!important;clip:auto!important;clip-path:none!important;z-index:auto!important;box-shadow:none!important;}
.call-video-grid::after{content:none!important;display:none!important;}
html[lang="et"] .call-video-grid::after{content:none!important;display:none!important;}
@media(max-width:700px){.call-overlay:not([hidden]){align-items:stretch!important;padding:10px 8px calc(10px + env(safe-area-inset-bottom))!important}.call-overlay__card{width:100%!important;max-height:calc(100dvh - 20px)!important}.call-video-grid{flex-direction:column!important;align-items:stretch!important;height:54svh!important;min-height:280px!important;gap:8px!important}.call-video-grid video#remoteCallVideo,#remoteCallVideo{flex:1 1 0!important;width:100%!important;height:auto!important;min-height:0!important;border-radius:18px!important}.call-self{align-self:flex-end!important;width:132px!important}.header-notice-dropdown{width:calc(100vw - 18px)!important;right:0!important;left:auto!important;}}

/* ============================================================
 * 2026-06-12 — мобильные исправления (по скриншотам 7.x)
 * ============================================================ */

/* 7:3 — открытое мобильное меню: непрозрачный фон, контент страницы
 * не должен просвечивать сквозь пункты меню. */
@media (max-width: 860px){
  .site-nav.is-open,
  body.menu-open .site-nav{
    background:linear-gradient(180deg,rgba(12,21,40,.99),rgba(7,12,24,.99))!important;
    -webkit-backdrop-filter:blur(24px) saturate(1.05);
    backdrop-filter:blur(24px) saturate(1.05);
    border:1px solid rgba(126,153,198,.26)!important;
    box-shadow:0 34px 110px rgba(0,0,0,.66)!important;
  }
  .site-nav.is-open a,
  body.menu-open .site-nav a{
    background:rgba(255,255,255,.045);
    border-radius:14px;
  }
}

/* 7:1 — search.php / utility-страницы: логотип и название не должны
 * вылезать за шапку на узких экранах. */
@media (max-width: 720px){
  .utility-page .header-inner{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
    overflow:visible;
  }
  .utility-page .brand{
    justify-self:start;
    max-width:100%;
    min-width:0;
    overflow:hidden;
  }
  .utility-page .brand img{width:44px;height:44px;flex:0 0 44px}
  .utility-page .brand .brand-copy{min-width:0;overflow:hidden}
  .utility-page .brand .brand-copy strong{
    display:block;
    font-size:clamp(1.05rem,5.5vw,1.5rem)!important;
    line-height:1.15;
    letter-spacing:normal!important;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    max-width:calc(100vw - 120px);
  }
  .utility-page .brand .brand-copy small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .utility-page .site-header__search-wrap{width:100%;min-width:0}
  .utility-page .header-actions{justify-content:flex-end}
}

/* 7:4 — центр уведомлений: всегда по центру экрана и в пределах вьюпорта. */
@media (max-width: 860px){
  .header-notice-dropdown{
    position:fixed!important;
    left:50%!important;
    right:auto!important;
    top:calc(78px + env(safe-area-inset-top))!important;
    transform:translateX(-50%)!important;
    width:min(calc(100vw - 14px),430px)!important;
    max-width:calc(100vw - 14px)!important;
    max-height:min(70vh,560px)!important;
    overflow:auto!important;
    z-index:140!important;
  }
}

/* 7:7 / 7:8 — плавающая кнопка Premium-плеера не должна закрывать
 * последние поля форм: даём страницам с FAB запас снизу. */
@media (max-width: 860px){
  body:has(.profile-player-fab) main,
  body:has(.profile-player-fab) .app-main,
  body:has(.profile-player-fab) .profile-layout,
  body:has(.profile-player-fab) .messenger-layout{
    padding-bottom:calc(132px + env(safe-area-inset-bottom))!important;
  }
}

/* 7.jpeg — пустая галерея: плашка занимает всю ширину сетки,
 * текст переносится и не обрезается. */
.leskov-gallery__grid .leskov-empty-state,
.profile-gallery-grid .leskov-empty-state,
.media-grid .leskov-empty-state,
[data-gallery-grid] .leskov-empty-state{
  grid-column:1/-1!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:auto!important;
  overflow:visible!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:anywhere;
  text-align:center;
  padding:24px 16px!important;
  box-sizing:border-box;
}

/* 7:8 — заголовки секций «Опрос» / «Запланировать публикацию»:
 * аккуратный перенос без разрыва слов посреди буквы. */
.leskov-composer-extra > header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-width:0;
}
.leskov-composer-extra > header strong{
  min-width:0;
  word-break:normal!important;
  overflow-wrap:anywhere;
  hyphens:manual;
  line-height:1.25;
}
.leskov-composer-extra > header [data-extra-close]{flex:0 0 auto}

/* ============================================================
 * 2026-06-12 — шапочный плеер: финальная (единственно верная)
 * машина состояний иконок play/pause. Перекрывает все старые
 * конфликтующие правила выше по файлу.
 * ============================================================ */
.header-player-btn .header-player-icon{display:flex;align-items:center;justify-content:center}
.header-player-btn .header-player-icon--pause{display:none}
.header-player-btn.is-playing .header-player-icon--play{display:none!important}
.header-player-btn.is-playing .header-player-icon--pause{display:flex!important}
.header-player-btn.is-playing .header-player-mini-eq{display:none!important}

.header-player-control.is-play .icon-play{display:inline-flex!important}
.header-player-control.is-play .icon-pause,
.header-player-control.is-play .play-eq{display:none!important}
.header-player-control.is-play.is-playing .icon-play{display:none!important}
.header-player-control.is-play.is-playing .icon-pause{display:inline-flex!important}
.header-player-control.is-play .icon-play svg,
.header-player-control.is-play .icon-pause svg{width:20px;height:20px;display:block;fill:currentColor}

/* 2026-06-12 final — stable header player after Premium bridge */
.header-player-now[data-header-player]{
  min-width:0!important;
  overflow:hidden!important;
}
.header-player-control,
.header-player-track,
.header-player-progress input,
.header-player-volume input{
  touch-action:manipulation!important;
}
.header-player-control.is-play .icon-pause,
.header-player-control.is-play .icon-play{display:inline-flex;align-items:center;justify-content:center}
.header-player-control.is-play .icon-pause{display:none!important}
.header-player-control.is-play.is-playing .icon-play{display:none!important}
.header-player-control.is-play.is-playing .icon-pause{display:inline-flex!important}
.header-player-track.is-current{
  border-color:rgba(124,241,211,.38)!important;
  background:linear-gradient(180deg,rgba(124,241,211,.12),rgba(255,255,255,.035))!important;
  box-shadow:0 10px 28px rgba(0,0,0,.16), inset 0 0 0 1px rgba(124,241,211,.08)!important;
}
.header-player-progress input,
.header-player-volume input{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
}
.header-player-panel[hidden]{display:none!important}

/* ============================================================
 * 2026-06-12 v20 — FINAL MOBILE PASS FROM SCREENSHOTS 7.x
 * Stable iPhone layout for header/menu/notifications/Premium FAB.
 * ============================================================ */
@media (max-width: 860px){
  html, body{width:100%;max-width:100%;overflow-x:hidden!important;}

  /* Public homepage header: logo, title and controls must never overflow. */
  .site-header{box-sizing:border-box!important;width:100%!important;max-width:100vw!important;overflow:visible!important;}
  .site-header .container.header-inner,
  .site-header .header-inner{
    width:calc(100vw - 20px)!important;
    max-width:calc(100vw - 20px)!important;
    min-width:0!important;
    margin-inline:auto!important;
    box-sizing:border-box!important;
    overflow:visible!important;
  }
  .site-header .brand{min-width:0!important;max-width:100%!important;overflow:hidden!important;}
  .site-header .brand-copy{min-width:0!important;max-width:100%!important;overflow:hidden!important;}
  .site-header .brand-copy strong{max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;word-break:normal!important;overflow-wrap:normal!important;}
  .site-header .brand img{flex:0 0 auto!important;object-fit:cover!important;}

  /* Open mobile menu: fixed, contained, fully opaque and above content. */
  .site-header .site-nav,
  .site-nav{
    box-sizing:border-box!important;
    overflow:auto!important;
    scrollbar-width:none!important;
  }
  .site-header .site-nav::-webkit-scrollbar,.site-nav::-webkit-scrollbar{display:none!important;}
  .site-header .site-nav.is-open,
  body.menu-open .site-header .site-nav,
  body.menu-open .site-nav{
    position:fixed!important;
    left:max(12px,env(safe-area-inset-left))!important;
    right:max(12px,env(safe-area-inset-right))!important;
    top:calc(118px + env(safe-area-inset-top))!important;
    width:auto!important;
    max-width:none!important;
    max-height:calc(100dvh - 136px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:9px!important;
    padding:14px!important;
    border-radius:24px!important;
    border:1px solid rgba(126,153,198,.28)!important;
    background:linear-gradient(180deg,#0d172c 0%,#07101f 100%)!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
    box-shadow:0 34px 110px rgba(0,0,0,.72)!important;
    opacity:1!important;
    visibility:visible!important;
    transform:none!important;
    z-index:2147483600!important;
  }
  .site-header .site-nav.is-open a,
  body.menu-open .site-header .site-nav a,
  body.menu-open .site-nav a{
    width:100%!important;
    min-height:46px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:12px 14px!important;
    border-radius:16px!important;
    background:#101a2e!important;
    border:1px solid rgba(255,255,255,.045)!important;
    color:#dce7ff!important;
    opacity:1!important;
    text-shadow:none!important;
  }

  /* Notifications must open as a centered sheet, not outside the viewport. */
  .header-notice-wrap{position:static!important;overflow:visible!important;}
  .header-notice-dropdown{
    position:fixed!important;
    left:50%!important;
    right:auto!important;
    top:calc(116px + env(safe-area-inset-top))!important;
    transform:translateX(-50%)!important;
    width:min(430px,calc(100vw - 24px))!important;
    max-width:calc(100vw - 24px)!important;
    max-height:calc(100dvh - 138px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;
    overflow:auto!important;
    box-sizing:border-box!important;
    border-radius:24px!important;
    background:linear-gradient(180deg,#0d172c 0%,#07101f 100%)!important;
    border:1px solid rgba(126,153,198,.28)!important;
    box-shadow:0 34px 110px rgba(0,0,0,.72)!important;
    z-index:2147483700!important;
    opacity:1!important;
    visibility:visible!important;
  }

  /* Floating Premium button: compact mobile FAB that cannot block form fields. */
  .profile-player-fab,
  body.public-user-page .profile-player-fab,
  body[data-profile-section] .profile-player-fab,
  body:has(.messenger-layout) .profile-player-fab{
    position:fixed!important;
    right:max(12px,env(safe-area-inset-right))!important;
    left:auto!important;
    top:auto!important;
    bottom:calc(88px + env(safe-area-inset-bottom))!important;
    width:56px!important;
    height:56px!important;
    min-width:56px!important;
    min-height:56px!important;
    max-width:56px!important;
    max-height:56px!important;
    padding:0!important;
    border-radius:999px!important;
    display:inline-grid!important;
    place-items:center!important;
    overflow:hidden!important;
    white-space:nowrap!important;
    text-indent:-9999px!important;
    font-size:0!important;
    line-height:1!important;
    z-index:2147482500!important;
    transform:none!important;
    box-shadow:0 18px 46px rgba(0,0,0,.42),0 0 0 1px rgba(255,255,255,.12) inset!important;
  }
  .profile-player-fab::before{
    content:'▶'!important;
    text-indent:0!important;
    display:grid!important;
    place-items:center!important;
    width:100%!important;
    height:100%!important;
    font-size:20px!important;
    font-weight:900!important;
    line-height:1!important;
    color:#07111f!important;
    /* The ▶ glyph is left-heavy; nudge it right so it sits optically centred. */
    padding-left:3px!important;
    box-sizing:border-box!important;
  }
  .profile-player-fab.is-open::before{content:'×'!important;font-size:30px!important;padding:0!important;}
  .profile-player-fab.is-playing::before{content:'Ⅱ'!important;font-size:21px!important;letter-spacing:-.12em!important;padding:0 0 0 .12em!important;}
  .profile-player-fab.is-open.is-playing::before{content:'×'!important;font-size:30px!important;letter-spacing:0!important;padding:0!important;}
  body.header-player-open .profile-player-fab,
  body:has(.header-player-panel:not([hidden])) .profile-player-fab{visibility:hidden!important;opacity:0!important;pointer-events:none!important;}

  body[data-profile-section] .profile-layout,
  body.public-user-page .profile-layout,
  body:has(.messenger-layout) .messenger-layout,
  body[data-profile-section] main,
  body.public-user-page main{
    padding-bottom:calc(170px + env(safe-area-inset-bottom))!important;
  }
}

@media (max-width: 430px){
  .site-header .site-nav.is-open,
  body.menu-open .site-header .site-nav,
  body.menu-open .site-nav{top:calc(108px + env(safe-area-inset-top))!important;}
  .header-notice-dropdown{top:calc(104px + env(safe-area-inset-top))!important;}
  .profile-player-fab,
  body.public-user-page .profile-player-fab,
  body[data-profile-section] .profile-player-fab{width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;max-width:52px!important;max-height:52px!important;}
}

/* Composer extras on phones: no broken words and no input overflow. */
@media (max-width: 760px){
  .leskov-composer-extra,
  [data-composer-extra],
  .poll-composer,
  .schedule-composer{
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow:hidden!important;
  }
  .leskov-composer-extra > header,
  [data-composer-extra] > header{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:10px!important;
  }
  .leskov-composer-extra > header strong,
  [data-composer-extra] > header strong,
  .poll-composer h3,
  .schedule-composer h3{
    min-width:0!important;
    max-width:100%!important;
    white-space:normal!important;
    word-break:normal!important;
    overflow-wrap:break-word!important;
    hyphens:none!important;
    line-height:1.18!important;
  }
  .poll-option-row,
  .poll-option,
  .schedule-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;min-width:0!important;}
  .poll-option-row input,
  .poll-option input,
  .schedule-row input,
  .profile-edit-grid input,
  .profile-edit-grid select,
  .profile-edit-grid textarea{min-width:0!important;max-width:100%!important;box-sizing:border-box!important;}
}

/* ============================================================
 * 2026-06-14 — mobile header icon row, authoritative reset.
 * Many earlier @media(max-width:860px/640px) blocks fought over
 * .header-actions sizing, leaving the 7 round controls (play,
 * messages, bell, profile, RU, ET, menu) crammed/overflowing on
 * phones ("все в кашу"). This final block lays them out as a single
 * evenly-spaced row that always fits the viewport, with the icon size
 * scaled to width so nothing overlaps or clips.
 * ============================================================ */
@media (max-width: 860px){
  .site-header .header-inner{overflow:visible!important;}
  .site-header .header-actions{
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:space-between!important;
    width:100%!important;
    max-width:100%!important;
    gap:clamp(4px,1.4vw,10px)!important;
    margin:0 auto!important;
    padding:0!important;
    overflow:visible!important;
    box-sizing:border-box!important;
  }
  .site-header .header-actions > *{flex:0 1 auto!important;margin:0!important;}
  /* language switcher: keep RU/ET together but compact */
  .site-header .header-actions .language-switcher{
    display:flex!important;
    align-items:center!important;
    gap:clamp(4px,1.2vw,8px)!important;
    flex:0 1 auto!important;
  }
  .site-header .header-icon-btn,
  .site-header .menu-toggle,
  .site-header .lang-pill{
    width:clamp(38px,11.8vw,52px)!important;
    height:clamp(38px,11.8vw,52px)!important;
    min-width:0!important;
    padding:0!important;
    flex:0 0 auto!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
  }
  .site-header .header-icon-btn svg,
  .site-header .menu-toggle svg{width:clamp(17px,5vw,22px)!important;height:clamp(17px,5vw,22px)!important;}
  .site-header .menu-toggle{margin-left:0!important;}
  /* notification badge: anchored to its button, never pushes layout */
  .site-header .header-notice-wrap{position:relative!important;flex:0 0 auto!important;}
  .site-header .icon-badge,
  .site-header [data-notice-badge]{
    position:absolute!important;
    top:-2px!important;
    right:-2px!important;
    transform:none!important;
    pointer-events:none!important;
  }
}

/* ============================================================
 * 2026-06-14 final — mobile header language selector.
 * Desktop keeps RU/ET near the actions. On phones the language switcher
 * lives inside the slide-down menu, freeing the header for player/messages/
 * notifications/profile/menu icons.
 * ============================================================ */
.site-header .language-switcher--menu{display:none!important;}
.site-header .language-switcher--header{display:flex!important;}
@media(min-width:761px){
  .site-header .language-switcher--header{display:flex!important;}
  .site-header .site-nav .language-switcher--menu{display:none!important;}
}
@media(max-width:760px){
  .site-header .header-actions > .language-switcher--header{display:none!important;}
  .site-header .site-nav .language-switcher--menu{
    display:flex!important;
    grid-column:1 / -1!important;
    width:100%!important;
    min-width:0!important;
    gap:8px!important;
    align-items:center!important;
    justify-content:center!important;
    padding:10px!important;
    margin:2px 0 0!important;
    border:1px solid rgba(129,160,219,.18)!important;
    border-radius:18px!important;
    background:rgba(255,255,255,.035)!important;
    box-sizing:border-box!important;
  }
  .site-header .site-nav .language-switcher--menu .lang-pill{
    flex:1 1 0!important;
    width:auto!important;
    min-width:0!important;
    height:44px!important;
    min-height:44px!important;
    padding:0 12px!important;
    border-radius:14px!important;
    font-size:.9rem!important;
    font-weight:950!important;
  }
}

/* 2026-06-14 R2 — final homepage override: calls above header on index pages. */
.call-overlay:not([hidden]),
.incoming-call-modal:not([hidden]){
  position:fixed!important;
  inset:0!important;
  z-index:2147483647!important;
  isolation:isolate!important;
}
body:has(.call-overlay:not([hidden])) .site-header,
body:has(.incoming-call-modal:not([hidden])) .site-header{z-index:2147481200!important;}

/* 2026-06-14 R4 — optical centering for the mobile round player FAB. */
@media (max-width: 860px) {
  .profile-player-fab,
  body.public-user-page .profile-player-fab,
  body[data-profile-section] .profile-player-fab,
  body:has(.messenger-layout) .profile-player-fab {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .profile-player-fab::before,
  body.public-user-page .profile-player-fab::before,
  body[data-profile-section] .profile-player-fab::before,
  body:has(.messenger-layout) .profile-player-fab::before {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    text-indent: 0 !important;
    line-height: 1 !important;
    transform: translateX(1px) !important;
  }
  .profile-player-fab.is-playing::before,
  body.public-user-page .profile-player-fab.is-playing::before,
  body[data-profile-section] .profile-player-fab.is-playing::before {
    transform: none !important;
    letter-spacing: -0.08em !important;
  }
  .profile-player-fab.is-open::before,
  .profile-player-fab.is-open.is-playing::before,
  body.public-user-page .profile-player-fab.is-open::before,
  body.public-user-page .profile-player-fab.is-open.is-playing::before,
  body[data-profile-section] .profile-player-fab.is-open::before,
  body[data-profile-section] .profile-player-fab.is-open.is-playing::before {
    transform: none !important;
    letter-spacing: 0 !important;
  }
}

/* === AUDIT 2026-06 — ultra-wide / 4K comfort ============================= */
/* Content containers cap at 1180px, which leaves very large displays mostly
   empty. Widen the shared --container token modestly on ultra-wide screens so
   4K/ultrawide users get more usable width. Only affects >=1920px — normal
   screens are completely untouched. Tune the max values to taste. */
@media (min-width: 1920px) {
  :root { --container: min(1320px, calc(100vw - 80px)); }
}
@media (min-width: 2560px) {
  :root { --container: min(1480px, calc(100vw - 120px)); }
}

/* === AUDIT 2026-06 — container-query utility (opt-in, zero-risk) ========= */
/* Component-level responsiveness that reacts to the COMPONENT's width instead
   of the viewport. Add class "cq" to any wrapper to make it a query container,
   then the helper classes below respond to that container's width. Unused by
   default, so it changes nothing until you opt a component in. */
.cq { container-type: inline-size; }
@container (max-width: 360px) {
  .cq-stack { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-2, 12px); }
  .cq-hide-narrow { display: none !important; }
  .cq-full { width: 100% !important; }
}

/* v9: safe file picker fallback */
.has-leskov-file-control{cursor:default!important;}
.leskov-file-control{display:flex;align-items:center;flex-wrap:wrap;gap:10px;min-width:0;margin-top:8px;max-width:100%;}
.leskov-file-control__input{position:absolute!important;width:1px!important;height:1px!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;opacity:0!important;pointer-events:none!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;overflow:hidden!important;white-space:nowrap!important;}
.leskov-file-control__button{appearance:none;border:1px solid rgba(125,238,222,.42);border-radius:999px;padding:10px 16px;background:linear-gradient(135deg,var(--accent,#6fb7ff),var(--accent-2,#7cf1d3));color:#041020;font-weight:900;line-height:1;box-shadow:0 14px 30px rgba(0,0,0,.22),0 0 0 4px rgba(124,241,211,.07);cursor:pointer;transition:transform .18s ease,filter .18s ease,box-shadow .18s ease;}
.leskov-file-control__button:hover{transform:translateY(-1px);filter:brightness(1.04);box-shadow:0 18px 36px rgba(0,0,0,.28),0 0 0 5px rgba(124,241,211,.10);}
.leskov-file-control__button:focus-visible{outline:3px solid rgba(124,241,211,.52);outline-offset:3px;}
.leskov-file-control__name{display:inline-flex;align-items:center;min-width:0;max-width:min(100%,320px);min-height:34px;padding:7px 12px;border-radius:999px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.10);color:var(--muted,#aeb8d6);font-size:.88rem;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;}
.leskov-file-control.has-file .leskov-file-control__name{color:var(--text,#eef3ff);border-color:rgba(124,241,211,.26);background:rgba(124,241,211,.08);}
.feed-upload-field.has-leskov-file-control,.feed-edit-upload-field.has-leskov-file-control{gap:8px!important;}
@media(max-width:640px){.leskov-file-control{display:grid;grid-template-columns:1fr;align-items:stretch}.leskov-file-control__button{width:fit-content}.leskov-file-control__name{max-width:100%;}}

/* LESKOV v12: force festive reopen button to stay circular on mobile */
.home-event-reopen{
  position:fixed!important;
  left:18px!important;
  right:auto!important;
  bottom:calc(18px + env(safe-area-inset-bottom))!important;
  width:54px!important;
  height:54px!important;
  min-width:54px!important;
  max-width:54px!important;
  min-height:54px!important;
  max-height:54px!important;
  aspect-ratio:1/1!important;
  padding:0!important;
  border-radius:999px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:0!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  z-index:9998!important;
  font-size:0!important;
  line-height:1!important;
}
.home-event-reopen__icon{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:100%!important;font-size:1.28rem!important;line-height:1!important;}
.home-event-reopen__label{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important;}
.home-event-reopen[hidden]{display:none!important;}
@media(max-width:640px){.home-event-reopen{left:14px!important;right:auto!important;bottom:calc(18px + env(safe-area-inset-bottom))!important;width:54px!important;height:54px!important;min-width:54px!important;max-width:54px!important;min-height:54px!important;max-height:54px!important;padding:0!important;border-radius:999px!important;font-size:0!important;}}

/* Bug fix (2026-06): keep the round Premium play button (.profile-player-fab) behind the cookie consent bar while the bar is visible. */
body:has(.cookie-banner:not([hidden])) .profile-player-fab{z-index:999!important;}
/* ============================================================
 * 2026-08-19 — ОБЛОЖКИ ТРЕКОВ НА ГЛАВНОЙ: показываем целиком.
 *
 * Правка от 2026-06 (ниже, переписана) снимала `aspect-ratio:1/1`
 * и ставила картинке `object-fit:contain`, но НЕ снимала жёсткую
 * высоту контейнера: `site.css` задаёт `.track-cover{height:300px}`
 * (и 240px в медиазапросе ≤…), а `.home-track-card .track-cover`
 * имеет `overflow:hidden`. В итоге картинка масштабировалась по
 * ширине, а всё, что выше 300px, просто отрезалось.
 *
 * Замеры в браузере ДО правки (ширина карточки 347px):
 *   1400×1000 → 347×248  влезает (снизу 52px пустоты)
 *   1000×1000 → 347×347  ОБРЕЗАНО на 47px
 *    800×1200 → 347×521  ОБРЕЗАНО на 221px
 *
 * Теперь высоту задаёт сама картинка: контейнер `height:auto`,
 * картинка `height:auto` + `object-fit:contain`. Обложка любой
 * пропорции показывается полностью и без полей. `overflow:hidden`
 * оставлен — он больше ничего не режет, но сохраняет скругление
 * углов и подложку замка у premium-треков.
 * ============================================================ */
.home-track-card .track-cover{
  aspect-ratio:auto!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
}
.home-track-card .track-cover img{
  aspect-ratio:auto!important;
  display:block!important;
  width:100%!important;
  height:auto!important;
  max-width:100%!important;
  object-fit:contain!important;
}

/* 2026-07-05 — final likers popover placement.
   Uses --likers-left/top from scripts/site.js so the panel opens by the clicked button. */
.like-details[open]{
  z-index:2147483200!important;
  position:relative!important;
}
.like-details[open]::before{
  content:""!important;
  position:fixed!important;
  inset:0!important;
  z-index:2147483190!important;
  pointer-events:auto!important;
  background:rgba(3,7,16,.54)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.like-details[open] .likers-list,
.like-details[open] .gallery-likers-list,
.like-details[open] .story-likers-list,
.like-details[open] .likers-summary{
  position:fixed!important;
  left:var(--likers-left,16px)!important;
  top:var(--likers-top,96px)!important;
  right:auto!important;
  bottom:auto!important;
  transform:none!important;
  z-index:2147483201!important;
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr)!important;
  gap:0!important;
  width:var(--likers-width,min(470px,calc(100vw - 24px)))!important;
  min-width:0!important;
  max-width:calc(100vw - 24px)!important;
  max-height:var(--likers-max-h,min(70dvh,520px))!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  border:1px solid rgba(151,174,214,.24)!important;
  border-radius:24px!important;
  background:linear-gradient(180deg,rgba(16,28,49,.99),rgba(6,12,24,.99))!important;
  box-shadow:0 28px 90px rgba(0,0,0,.58),inset 0 1px rgba(255,255,255,.08)!important;
  color:var(--text,#eef4ff)!important;
}
.like-details[open] .likers-list__items{
  max-height:none!important;
  min-height:0!important;
}
.likers-popover-close{
  position:absolute!important;
  top:14px!important;
  right:14px!important;
  float:none!important;
  margin:0!important;
  z-index:2!important;
}
@media(max-width:760px){
  .like-details[open] .likers-list,
  .like-details[open] .gallery-likers-list,
  .like-details[open] .story-likers-list,
  .like-details[open] .likers-summary{
    left:10px!important;
    right:10px!important;
    top:auto!important;
    bottom:calc(10px + env(safe-area-inset-bottom))!important;
    width:auto!important;
    max-width:none!important;
    max-height:min(72dvh,560px)!important;
    border-radius:24px 24px 20px 20px!important;
  }
}

/* 2026-07-05 — portal layer for likers popovers.
   The panel is moved to <body> while open, so profile cards cannot clip it. */
body > .likers-list.is-likers-portal,
body > .gallery-likers-list.is-likers-portal,
body > .story-likers-list.is-likers-portal,
body > .likers-summary.is-likers-portal{
  position:fixed!important;
  left:var(--likers-left,16px)!important;
  top:var(--likers-top,96px)!important;
  right:auto!important;
  bottom:auto!important;
  transform:none!important;
  z-index:2147483201!important;
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr)!important;
  gap:0!important;
  width:var(--likers-width,min(470px,calc(100vw - 32px)))!important;
  min-width:0!important;
  max-width:calc(100vw - 32px)!important;
  max-height:var(--likers-max-h,min(70dvh,540px))!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  border:1px solid rgba(151,174,214,.24)!important;
  border-radius:24px!important;
  background:linear-gradient(180deg,rgba(16,28,49,.99),rgba(6,12,24,.99))!important;
  box-shadow:0 28px 90px rgba(0,0,0,.58),inset 0 1px rgba(255,255,255,.08)!important;
  color:var(--text,#eef4ff)!important;
}
body > .likers-list.is-likers-portal .likers-list__items,
body > .gallery-likers-list.is-likers-portal .likers-list__items,
body > .story-likers-list.is-likers-portal .likers-list__items,
body > .likers-summary.is-likers-portal .likers-list__items{
  max-height:none!important;
  min-height:0!important;
}
@media(max-width:760px){
  body > .likers-list.is-likers-portal,
  body > .gallery-likers-list.is-likers-portal,
  body > .story-likers-list.is-likers-portal,
  body > .likers-summary.is-likers-portal{
    left:10px!important;
    right:10px!important;
    top:auto!important;
    bottom:calc(10px + env(safe-area-inset-bottom))!important;
    width:auto!important;
    max-width:none!important;
    max-height:min(72dvh,560px)!important;
    border-radius:24px 24px 20px 20px!important;
  }
}

/* 2026-07-05 — final polish for profile actions and empty bookmarks. */
.post-share-btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:10px!important;
}
.post-share-btn__icon{
  display:inline-grid;
  place-items:center;
  width:22px;
  height:22px;
  flex:0 0 22px;
}
.post-share-btn__icon svg{
  display:block;
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.15;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.leskov-bookmarks-section .leskov-empty-state__icon{
  display:grid;
  place-items:center;
}
.leskov-empty-bookmark-icon{
  display:block;
  width:38px;
  height:38px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
  filter:drop-shadow(0 10px 20px rgba(120,214,255,.18));
}
body > .likers-list.is-likers-portal .likers-list__head,
body > .gallery-likers-list.is-likers-portal .likers-list__head,
body > .story-likers-list.is-likers-portal .likers-list__head,
body > .likers-summary.is-likers-portal .likers-list__head,
.like-details[open] .likers-list .likers-list__head,
.like-details[open] .gallery-likers-list .likers-list__head,
.like-details[open] .story-likers-list .likers-list__head,
.like-details[open] .likers-summary .likers-list__head{
  padding-right:76px!important;
}
body > .likers-list.is-likers-portal .likers-popover-close,
body > .gallery-likers-list.is-likers-portal .likers-popover-close,
body > .story-likers-list.is-likers-portal .likers-popover-close,
body > .likers-summary.is-likers-portal .likers-popover-close,
.like-details[open] .likers-popover-close{
  top:12px!important;
  right:14px!important;
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  padding:0!important;
  display:inline-grid!important;
  place-items:center!important;
  border-radius:999px!important;
  line-height:1!important;
}
@media(max-width:640px){
  body > .likers-list.is-likers-portal .likers-list__head,
  body > .gallery-likers-list.is-likers-portal .likers-list__head,
  body > .story-likers-list.is-likers-portal .likers-list__head,
  body > .likers-summary.is-likers-portal .likers-list__head,
  .like-details[open] .likers-list .likers-list__head,
  .like-details[open] .gallery-likers-list .likers-list__head,
  .like-details[open] .story-likers-list .likers-list__head,
  .like-details[open] .likers-summary .likers-list__head{
    padding-right:68px!important;
  }
  body > .likers-list.is-likers-portal .likers-popover-close,
  body > .gallery-likers-list.is-likers-portal .likers-popover-close,
  body > .story-likers-list.is-likers-portal .likers-popover-close,
  body > .likers-summary.is-likers-portal .likers-popover-close,
  .like-details[open] .likers-popover-close{
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
  }
}

/* 2026-07-05 — compact profile-feed controls for mobile. */
.draft-revert-btn__icon,
.post-share-btn__icon{
  display:inline-grid;
  place-items:center;
}
.draft-revert-btn__icon svg{
  display:block;
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.05;
  stroke-linecap:round;
  stroke-linejoin:round;
}
@media(max-width:640px){
  .feed-card .feed-head{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:14px!important;
  }
  /* user.php places the stats .pill and .like-details directly inside
     .feed-head (no .feed-head-actions wrapper). Without these rules the
     nowrap stats pill ("0 лайков · 0 комментариев · 0 просмотров") escapes
     the single-column grid track and overflows past the card edge. */
  .feed-card .feed-head>.feed-author,
  .feed-card .feed-head>.pill,
  .feed-card .feed-head>.like-details,
  .feed-card .feed-head>.like-details>summary{
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }
  .feed-card .feed-head>.pill{
    grid-column:1 / -1!important;
    justify-self:stretch!important;
    width:100%!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    word-break:break-word!important;
    text-align:center!important;
    justify-content:center!important;
    line-height:1.2!important;
  }
  .feed-card .feed-head-actions{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    justify-content:stretch!important;
    justify-items:stretch!important;
    align-items:stretch!important;
    gap:10px!important;
    width:100%!important;
  }
  .feed-card .feed-head-actions .pill{
    grid-column:1 / -1!important;
    justify-content:center!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    white-space:normal!important;
    text-align:center!important;
    line-height:1.18!important;
    overflow-wrap:anywhere!important;
  }
  .feed-card .feed-head-actions .like-details,
  .feed-card .feed-head-actions .inline-form,
  .feed-card .feed-head-actions .site-btn,
  .feed-card .feed-head-actions .like-details>summary{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  .feed-card .feed-head-actions .like-details>summary,
  .feed-card .feed-head-actions .site-btn{
    min-height:48px!important;
    padding:10px 12px!important;
    border-radius:18px!important;
    white-space:normal!important;
    line-height:1.1!important;
    text-align:center!important;
  }
  .feed-card .feed-revert-form{
    display:flex!important;
    width:fit-content!important;
    max-width:100%!important;
  }
  .feed-card .draft-revert-btn{
    width:auto!important;
    max-width:100%!important;
    min-height:56px!important;
    padding:10px 18px!important;
    white-space:normal!important;
    line-height:1.12!important;
  }
  .feed-card .feed-actions{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
    width:100%!important;
    align-items:stretch!important;
  }
  .feed-card .feed-actions>form,
  .feed-card .feed-actions .inline-form,
  .feed-card .feed-actions .save-post-form,
  .feed-card .feed-actions .report-button-form{
    display:flex!important;
    width:100%!important;
    min-width:0!important;
  }
  .feed-card .feed-actions .site-btn,
  .feed-card .feed-actions button{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:54px!important;
    padding:10px 12px!important;
    border-radius:20px!important;
    white-space:normal!important;
    line-height:1.12!important;
    text-align:center!important;
    overflow-wrap:break-word!important;
  }
  .feed-card .feed-actions .save-post-form{
    grid-column:1 / -1!important;
    justify-self:end!important;
    max-width:min(100%,320px)!important;
  }
  .feed-card .comment-form{
    grid-template-columns:1fr!important;
    gap:10px!important;
  }
}

/* 2026-07-05 — narrow phone hardening: no action/control overflow. */
@media(max-width:520px){
  html,
  body{
    max-width:100%;
    overflow-x:hidden!important;
  }
  body[data-profile-section] .profile-layout,
  body[data-profile-section] .profile-layout-extended,
  .profile-layout.profile-layout-extended{
    width:100%!important;
    max-width:100%!important;
    padding-inline:8px!important;
    margin-inline:auto!important;
    overflow:hidden!important;
  }
  body[data-profile-section] .profile-main,
  .profile-layout-extended .profile-main,
  .profile-main{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow:hidden!important;
  }
  .profile-main .feed-card{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    padding:16px!important;
    border-radius:24px!important;
    overflow:hidden!important;
  }
  .feed-card .feed-head,
  .feed-card .feed-author,
  .feed-card .feed-author-copy,
  .feed-card .feed-content,
  .feed-card .feed-actions,
  .feed-card .feed-head-actions,
  .feed-card .feed-comments,
  .feed-card .comment-form{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  .feed-card .feed-author{
    display:grid!important;
    grid-template-columns:58px minmax(0,1fr)!important;
    align-items:start!important;
  }
  .feed-card .feed-author > img{
    width:58px!important;
    height:58px!important;
    border-radius:18px!important;
  }
  .feed-card .feed-author-copy strong,
  .feed-card .feed-author-copy span{
    min-width:0!important;
    overflow-wrap:anywhere!important;
  }
  .feed-card .feed-head-actions,
  .feed-card .feed-actions{
    grid-template-columns:1fr!important;
  }
  .feed-card .feed-head-actions > *,
  .feed-card .feed-actions > *,
  .feed-card .feed-actions > form,
  .feed-card .feed-actions .inline-form,
  .feed-card .feed-actions .save-post-form,
  .feed-card .feed-actions .report-button-form,
  .feed-card .feed-head-actions .inline-form,
  .feed-card .feed-head-actions .like-details{
    grid-column:1 / -1!important;
    width:100%!important;
    max-width:100%!important;
    justify-self:stretch!important;
  }
  .feed-card .site-btn,
  .feed-card .feed-head-actions .like-details>summary,
  .feed-card .feed-actions button{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    min-height:50px!important;
    padding:10px 12px!important;
    border-radius:18px!important;
    font-size:17px!important;
    line-height:1.12!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    text-align:center!important;
  }
  .feed-card .feed-actions .save-post-form{
    max-width:100%!important;
  }
  .feed-card .draft-revert-btn{
    width:100%!important;
    justify-content:center!important;
  }
  .feed-card .post-share-btn__icon,
  .feed-card .draft-revert-btn__icon{
    flex:0 0 22px!important;
  }
  .feed-card .comment-form .admin-input,
  .feed-card .comment-form .site-btn{
    width:100%!important;
  }
}

/* ============================================================
 * 2026-08-19 — ШАПКА ГЛАВНОЙ: одна строка на всех десктопах.
 *
 * ЧТО БЫЛО СЛОМАНО (скриншот пользователя, ~1920px):
 * пункт «Главная» печатался ПОВЕРХ кнопки «Discover».
 * Замер в браузере на 1920px: Discover занимал x=790…892,
 * а первая ссылка меню начиналась на x=826 — наложение 66px.
 *
 * ПРИЧИНА: колонка меню была объявлена как minmax(0,1fr), то есть
 * ей РАЗРЕШЕНО сжиматься меньше содержимого. Вместе с
 * flex-wrap:nowrap и justify-content:flex-end содержимое меню
 * (~606px при ширине колонки 514px) выпирало ВЛЕВО — ровно на
 * поисковый блок. Одновременно ниже 1860px действовала двухрядная
 * раскладка ("brand search actions" / "nav nav nav"), из-за чего
 * шапка на 1280–1600px становилась в полтора раза выше.
 *
 * КАК ИСПРАВЛЕНО (выбранный вариант — «сжимать поиск»):
 *   колонка меню   → max-content: НИКОГДА не уже своего текста,
 *                    поэтому наложение физически невозможно;
 *   колонка поиска → minmax(0,1fr): единственный гибкий элемент,
 *                    он и забирает на себя всё сжатие;
 *   одна строка    → на всех десктопах, а не только ≥1860px.
 * Ниже 1360px прячем пилюлю «Discover» (раздел остаётся в меню и
 * на /discover.php), ниже 1200px поле ввода сворачивается до
 * иконки и кнопки «Найти». Мобильная логика (≤980px, бургер) —
 * без изменений.
 *
 * Скоуп через :has(.site-header__search-wrap--home): homepage.css
 * грузится и на profile/feed/user/messages — их шапки не трогаем.
 * ============================================================ */
.site-header .header-inner:has(.site-header__search-wrap--home){
  grid-template-columns:auto minmax(0,1fr) max-content max-content!important;
  grid-template-areas:"brand search nav actions"!important;
  gap:0 clamp(10px,1.3vw,26px)!important;
  align-items:center!important;
}
.site-header .header-inner:has(.site-header__search-wrap--home) .brand{grid-area:brand!important;}
.site-header .header-inner:has(.site-header__search-wrap--home) .site-header__search-wrap--home{
  grid-area:search!important;
  min-width:0!important;
  width:100%!important;
  max-width:none!important;
  justify-self:stretch!important;
  margin:0!important;
  order:0!important;
  flex:none!important;
}
.site-header .header-inner:has(.site-header__search-wrap--home) .site-nav{
  grid-area:nav!important;
  justify-content:flex-end!important;
  flex-wrap:nowrap!important;
  padding-top:0!important;
  border-top:0!important;
  min-width:0!important;
  column-gap:clamp(2px,.5vw,14px)!important;
}
.site-header .header-inner:has(.site-header__search-wrap--home) .site-nav a{
  min-height:38px!important;
  padding:6px clamp(6px,.65vw,13px)!important;
  border-radius:999px!important;
  font-size:clamp(13px,.83vw,16px)!important;
  white-space:nowrap!important;
}
/* Дубль переключателя языка: он же есть в .header-actions справа.
   В десктопной строке он только отнимает место у пунктов меню. */
@media (min-width:981px){
  .site-header .header-inner:has(.site-header__search-wrap--home) .site-nav .language-switcher--menu{display:none!important;}
}
.site-header .header-inner:has(.site-header__search-wrap--home) .header-actions{
  grid-area:actions!important;
  justify-self:end!important;
  min-width:0!important;
}

/* Поисковая строка — в тон стеклянной шапке. */
.site-header .site-header__search-wrap--home .leskov-search-bar{width:100%!important;max-width:none!important;min-width:0!important;}
.site-header .site-header__search-wrap--home .leskov-search-bar__form{
  width:100%!important;
  min-width:0!important;
  min-height:48px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.055)!important;
  border:1px solid rgba(148,184,226,.22)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05)!important;
  transition:border-color .2s ease, box-shadow .2s ease, background .2s ease!important;
}
.site-header .site-header__search-wrap--home .leskov-search-bar__form:focus-within{
  border-color:rgba(122,227,210,.55)!important;
  background:rgba(9,18,34,.9)!important;
  box-shadow:0 0 0 4px rgba(122,227,210,.13),0 18px 44px rgba(0,0,0,.35)!important;
}
.site-header .site-header__search-wrap--home .leskov-search-bar__input{min-width:0!important;font-size:.95rem!important;}
.site-header .site-header__search-wrap--home .leskov-search-bar__submit{
  flex:0 0 auto!important;
  border-radius:999px!important;
  min-height:38px!important;
  padding:8px 16px!important;
  font-weight:800!important;
}
.site-header .site-header__search-wrap--home .leskov-search-bar__discover{
  display:inline-flex!important;
  align-items:center!important;
  flex:0 0 auto!important;
  min-height:48px!important;
  padding:0 16px!important;
  border-radius:999px!important;
  border:1px solid rgba(122,165,255,.28)!important;
  background:rgba(122,165,255,.08)!important;
  font-weight:700!important;
  white-space:nowrap!important;
}

/* ≥1860px: места хватает — даём поиску комфортный максимум и
   более просторные отступы в меню. */
@media (min-width:1860px){
  .site-header .header-inner:has(.site-header__search-wrap--home){
    grid-template-columns:auto minmax(280px,520px) max-content max-content!important;
    gap:0 clamp(18px,1.6vw,34px)!important;
  }
  .site-header .header-inner:has(.site-header__search-wrap--home) .site-header__search-wrap--home{justify-self:start!important;}
  .site-header .header-inner:has(.site-header__search-wrap--home) .site-nav a{padding:6px 13px!important;}
}
/* 1201–1360px: «Discover» — первый кандидат на вылет: это дубль
   пункта, доступного и в меню, и по прямой ссылке /discover.php. */
@media (min-width:981px) and (max-width:1500px){
  .site-header .site-header__search-wrap--home .leskov-search-bar__discover{display:none!important;}
}
/* 981–1200px: поле ввода сворачивается до иконки + кнопки «Найти»,
   логотип отдаёт подпись. Меню при этом остаётся в одной строке. */
@media (min-width:981px) and (max-width:1200px){
  .site-header .header-inner:has(.site-header__search-wrap--home){
    gap:0 10px!important;
  }
  .site-header .site-header__search-wrap--home .leskov-search-bar__form{padding-left:9px!important;gap:5px!important;}
  .site-header .site-header__search-wrap--home .leskov-search-bar__submit{min-width:64px!important;padding:8px 11px!important;}
  .site-header .header-inner:has(.site-header__search-wrap--home) .brand img{width:48px!important;height:48px!important;min-width:48px!important;border-radius:15px!important;}
  .site-header .header-inner:has(.site-header__search-wrap--home) .brand{grid-template-columns:48px minmax(0,1fr)!important;gap:9px!important;}
  .site-header .header-inner:has(.site-header__search-wrap--home) .brand-copy strong{font-size:clamp(15px,1.15vw,20px)!important;}
  .site-header .header-inner:has(.site-header__search-wrap--home) .brand-copy small{display:none!important;}
}
/* ≤980px: навигация — выпадающее меню (существующие правила),
   поиск занимает всю вторую строку. */
@media (max-width:980px){
  .site-header .header-inner:has(.site-header__search-wrap--home){
    grid-template-columns:minmax(0,1fr) max-content!important;
    grid-template-areas:"brand actions" "search search"!important;
    gap:12px 10px!important;
  }
  .site-header .header-inner:has(.site-header__search-wrap--home) .site-nav{border-top:0!important;padding-top:0!important;}
  .site-header .header-inner:has(.site-header__search-wrap--home) .site-header__search-wrap--home{max-width:none!important;}
  .site-header .site-header__search-wrap--home .leskov-search-bar__discover{min-height:44px!important;padding:0 13px!important;}
}
/* ≤760px: одноколоночная мобильная шапка — поиск отдельной строкой. */
@media (max-width:760px){
  .site-header .header-inner:has(.site-header__search-wrap--home){
    grid-template-columns:1fr!important;
    grid-template-areas:"brand" "actions" "search"!important;
  }
  .site-header .header-inner:has(.site-header__search-wrap--home) .site-header__search-wrap--home{grid-area:search!important;}
  .site-header .site-header__search-wrap--home .leskov-search-bar{flex-wrap:nowrap!important;}
}

/* 2026-07-06 — mobile feed action fix: stable button geometry and centered labels. */
@media(max-width:640px){
  .feed-card .feed-head-actions .inline-form,
  .feed-card .feed-head-actions form.inline-form{
    display:flex!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  .feed-card .feed-head-actions .inline-form .site-btn,
  .feed-card .feed-head-actions form .site-btn,
  .feed-card .feed-head-actions button.site-btn{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
    min-height:54px!important;
    padding:0 16px!important;
    line-height:1!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    text-align:center!important;
  }
  .feed-card .feed-head-actions .inline-form .site-btn>*,
  .feed-card .feed-head-actions form .site-btn>*{
    min-width:0!important;
    line-height:1.12!important;
  }
  .feed-card .feed-revert-form,
  .feed-revert-form{
    display:flex!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  .feed-card .draft-revert-btn,
  .feed-revert-form .draft-revert-btn{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
    gap:10px!important;
    min-height:56px!important;
    padding:12px 14px!important;
    line-height:1.12!important;
    white-space:normal!important;
    text-align:center!important;
  }
  .feed-card .draft-revert-btn>span:not(.draft-revert-btn__icon),
  .feed-revert-form .draft-revert-btn>span:not(.draft-revert-btn__icon){
    min-width:0!important;
    max-width:100%!important;
    overflow-wrap:anywhere!important;
  }
}


/* ============================================================
 * 2026-07-06 v4 — mobile header menu/search geometry fixes.
 * Uses JS-measured --leskov-mobile-menu-top so the dropdown starts below
 * the real header height on iPhone/Android instead of cutting through icons.
 * ============================================================ */
@media (max-width: 860px){
  .site-header{overflow:visible!important;}
  .site-header .header-inner{position:relative!important;overflow:visible!important;border-radius:28px!important;}
  .site-header .header-actions{overflow:visible!important;}
  .site-header .header-player-btn,
  .site-header .header-icon-btn,
  .site-header .menu-toggle{
    aspect-ratio:1/1!important;
    border-radius:999px!important;
    box-sizing:border-box!important;
    overflow:visible!important;
    display:inline-grid!important;
    place-items:center!important;
    line-height:1!important;
  }
  .site-header .header-player-btn{position:relative!important;flex:0 0 var(--leskov-mobile-header-btn,clamp(40px,10.2vw,52px))!important;}
  .site-header .header-player-btn::before,
  .site-header .header-icon-btn::before,
  .site-header .menu-toggle::before{
    content:"";
    position:absolute;
    inset:0;
    border-radius:inherit;
    pointer-events:none;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 14px 34px rgba(0,0,0,.24);
  }
  .site-header .header-player-icon{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:100%!important;}
  .site-header .header-player-icon svg{width:44%!important;height:44%!important;max-width:24px!important;max-height:24px!important;display:block!important;}
  .site-header .site-nav.is-open,
  body.menu-open .site-header .site-nav,
  body.menu-open .site-nav{
    position:fixed!important;
    top:var(--leskov-mobile-menu-top,calc(196px + env(safe-area-inset-top)))!important;
    left:max(12px,env(safe-area-inset-left))!important;
    right:max(12px,env(safe-area-inset-right))!important;
    width:auto!important;
    max-width:none!important;
    max-height:var(--leskov-mobile-menu-max-height,calc(100dvh - 214px - env(safe-area-inset-top) - env(safe-area-inset-bottom)))!important;
    overflow:auto!important;
    overscroll-behavior:contain!important;
    padding:14px!important;
    border-radius:28px!important;
    background:linear-gradient(180deg,rgba(13,23,44,.995),rgba(6,13,27,.995))!important;
    border:1px solid rgba(126,153,198,.34)!important;
    box-shadow:0 34px 110px rgba(0,0,0,.74),inset 0 1px 0 rgba(255,255,255,.06)!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
    z-index:2147483600!important;
    isolation:isolate!important;
  }
  .site-header .site-nav.is-open .language-switcher--menu,
  body.menu-open .site-header .site-nav .language-switcher--menu{border-radius:22px!important;}
}
@media (max-width: 430px){
  .site-header .site-nav.is-open,
  body.menu-open .site-header .site-nav,
  body.menu-open .site-nav{top:var(--leskov-mobile-menu-top,calc(188px + env(safe-area-inset-top)))!important;}
}


/* ============================================================
 * 2026-07-06 r3 — mobile menu final geometry.
 * Fixed panel uses JS-calculated VisualViewport height so iOS/Android browser
 * bars do not crop the nav.  This block intentionally comes last because the
 * saved homepage CSS contains several older menu layouts.
 * ============================================================ */
@media (max-width: 860px){
  .site-header .site-nav.is-open,
  body.menu-open .site-header .site-nav,
  body.menu-open .site-nav{
    display:grid!important;
    position:fixed!important;
    top:var(--leskov-mobile-menu-top,calc(184px + env(safe-area-inset-top)))!important;
    left:var(--leskov-mobile-menu-edge,max(10px,env(safe-area-inset-left)))!important;
    right:var(--leskov-mobile-menu-edge,max(10px,env(safe-area-inset-right)))!important;
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
    max-height:var(--leskov-mobile-menu-max-height,calc(100dvh - 204px - env(safe-area-inset-bottom)))!important;
    overflow:auto!important;
    -webkit-overflow-scrolling:touch!important;
    overscroll-behavior:contain!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
    padding:12px 14px calc(14px + env(safe-area-inset-bottom))!important;
    margin:0!important;
    border-radius:28px!important;
    border:1px solid rgba(126,153,198,.34)!important;
    background:linear-gradient(180deg,rgba(13,23,44,.995),rgba(6,13,27,.995))!important;
    box-shadow:0 34px 110px rgba(0,0,0,.74),inset 0 1px 0 rgba(255,255,255,.06)!important;
    transform:none!important;
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    z-index:2147483600!important;
  }
  .site-header .site-nav.is-open a,
  body.menu-open .site-header .site-nav a,
  body.menu-open .site-nav a{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    min-height:50px!important;
    padding:10px 14px!important;
    border-radius:22px!important;
    text-align:center!important;
    background:rgba(122,165,255,.055)!important;
    border:1px solid rgba(148,184,226,.10)!important;
  }
  .site-header .site-nav.is-open .language-switcher--menu,
  body.menu-open .site-header .site-nav .language-switcher--menu{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
    width:100%!important;
    padding:10px!important;
    border-radius:24px!important;
    border:1px solid rgba(148,184,226,.18)!important;
    background:rgba(255,255,255,.028)!important;
  }
  .site-header .site-nav.is-open .language-switcher--menu .lang-pill,
  body.menu-open .site-header .site-nav .language-switcher--menu .lang-pill{
    width:100%!important;
    min-height:48px!important;
    justify-content:center!important;
  }
}
html.is-soft-navigating{cursor:progress;}
html.is-soft-navigating body::after{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:2147483000;
  background:linear-gradient(180deg,rgba(5,9,20,.10),rgba(5,9,20,.18));
}

/* ===================================================================
   Header profile avatar — authoritative fix (2026-07-08)
   Multiple competing mobile rules across site.css/homepage.css left the
   profile button un-squared on small screens, so the raw portrait avatar
   spilled out of the header row instead of being clipped to a circle.
   Loaded last, so this deterministically wins. Keeps the button square,
   clips overflow, and forces the avatar to cover-crop and fill it.
=================================================================== */
.site-header .header-actions .header-profile-btn,
.header-actions .header-profile-btn.header-icon-btn{
  padding:0!important;
  overflow:hidden!important;
  border-radius:999px!important;
  aspect-ratio:1/1!important;
  flex:0 0 auto!important;
  box-sizing:border-box!important;
}
.site-header .header-actions .header-profile-btn .header-profile-avatar,
.header-actions .header-profile-btn .header-profile-avatar{
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:100%!important;
  max-width:100%!important;
  object-fit:cover!important;
  object-position:center!important;
  border-radius:inherit!important;
  margin:0!important;
}
@media(max-width:860px){
  .site-header .header-actions .header-profile-btn{
    align-self:center!important;
  }
}

/* ===================================================================
   Mobile header — decisive final layout (2026-07-08 r2)
   Loaded last, so it deterministically overrides the layered breakpoint
   rules above. Fixes: (1) bell + avatar touching → all action icons are
   one uniform square size with even gaps; (2) header menu opening clipped
   → header ancestors stop clipping while open and the panel scrolls.
=================================================================== */
@media (max-width:760px){
  .site-header .header-actions{
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:clamp(6px,2.4vw,12px)!important;
    width:100%!important;
    min-width:0!important;
  }
  /* RU/ET lives in the slide-down menu on phones */
  .site-header .header-actions > .language-switcher--header{display:none!important;}
  .site-header .header-actions > *{flex:0 0 auto!important;margin:0!important;}
  .site-header .header-actions .header-icon-btn,
  .site-header .header-actions .header-player-btn,
  .site-header .header-actions .header-notice-wrap,
  .site-header .header-actions .header-profile-btn,
  .site-header .header-actions .menu-toggle{
    width:clamp(40px,12vw,50px)!important;
    height:clamp(40px,12vw,50px)!important;
    min-width:clamp(40px,12vw,50px)!important;
    max-width:clamp(40px,12vw,50px)!important;
    flex:0 0 auto!important;
    box-sizing:border-box!important;
    padding:0!important;
  }
  /* the bell lives inside a wrapper; keep the wrapper == button so the
     flex gap sits between the bell and the avatar (they no longer touch) */
  .site-header .header-actions .header-notice-wrap{
    position:relative!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
  }
  .site-header .header-actions .header-notice-wrap > .header-icon-btn{
    width:100%!important;height:100%!important;min-width:100%!important;max-width:100%!important;
  }
  .site-header .header-actions .header-profile-btn{
    overflow:hidden!important;border-radius:999px!important;
  }
  /* menu opens fully in ONE view — no clipping, no scroll. The header must not
     clip it, and the panel is compact enough that every item + RU/ET fits. */
  body.menu-open .site-header,
  body.menu-open .site-header .container.header-inner,
  body.menu-open .site-header .header-inner{overflow:visible!important;}
  .site-header .site-nav.is-open,
  body.menu-open .site-header .site-nav{
    /* JS sets --leskov-mobile-menu-top to the header's real bottom; the larger
       fallback clears the tall homepage header (brand + actions + search) so
       the panel's top edge is never tucked under the header. */
    top:var(--leskov-mobile-menu-top,calc(210px + env(safe-area-inset-top)))!important;
    max-height:none!important;
    height:auto!important;
    overflow:visible!important;
    z-index:200!important;
    padding:12px!important;
    gap:8px!important;
  }
  .site-header .site-nav.is-open a,
  body.menu-open .site-header .site-nav a{
    padding:11px 14px!important;
    min-height:0!important;
    line-height:1.1!important;
  }
}

/* ===== LESKOV — mobile header top-inset fix =====
   The sticky header sits at top:0. On phones with a status-bar / notch inset
   (incl. installed PWA / standalone mode, and browsers whose toolbar is at the
   bottom) the top of the header — brand + control buttons — was rendered under
   that inset and clipped. Reserve the safe-area inset above the header so the
   whole menu, including its top row, stays fully visible. env(safe-area-inset-top)
   is 0 on displays without an inset, so normal browsers are unaffected. */
@media (max-width:920px){
  .site-header{
    padding-top:calc(18px + env(safe-area-inset-top))!important;
    scroll-margin-top:env(safe-area-inset-top)!important;
  }
}

/* =====================================================================
   2026-07-09 — CALL SELF-VIEW: single authoritative layout (anti-flicker)
   ---------------------------------------------------------------------
   Background: the self-view ("Фронтальная" мини-окно) was flickering and
   stuttering during a call. Root cause was NOT the WebRTC/JS layer — it was
   CSS. Over time ~8 different, contradictory definitions of `.call-video-grid`
   and `#localCallVideo` accumulated across site.css and homepage.css. Some
   positioned the local <video> as a full-grid absolute OVERLAY, some hid it
   (width:1px;opacity:0), some flipped `transform`, some added `contain:paint`.
   Because these fought each other with equal-ish specificity + !important, the
   browser had to RE-RESOLVE conflicting position/transform/contain rules on the
   *live* <video> every time the call JS toggled a state class
   (.is-camera-off / .is-video-waiting / .has-local-frame ~30x/sec worst case).
   Re-resolving those properties on a playing media element forces a repaint of
   the decoded frame → visible flicker + jank.

   Fix: this block is the LAST call-video CSS the messages page loads, so it wins
   the cascade unconditionally. It pins the self-view into a STABLE side-by-side
   panel whose geometry does NOT depend on any state class, promotes it to its
   own compositor layer once, and never changes `transform`/`contain` on state
   toggles. Keep this block last; do not reintroduce a bare `#localCallVideo`
   overlay rule above it. ===================================================== */
/* 2026-09-01 — ПЕРЕРАБОТКА: своё окно НАКЛАДЫВАЕТСЯ, а не отодвигает кадр.
   ---------------------------------------------------------------------
   Что было. Блок выше (2026-07-09) ставил своё окно флекс-соседом кадра
   собеседника: панель 200px справа плюс зазор. Из-за этого кадр никогда
   не занимал всю ширину контейнера, и справа оставалась светлая полоса —
   именно она видна на всех скриншотах пользователя как «сбитый край».
   Правки в site.css эту раскладку не отменяли: здесь селектор с id
   (#callSelfView) и !important, а этот файл на странице «Сообщения»
   грузится последним.

   Что стало. Кадр собеседника растянут на весь контейнер через inset:0,
   своё окно лежит поверх него в правом верхнем углу.

   Требование к неморганию из блока выше сохранено полностью:
     • геометрия своего окна одинакова во всех состояниях камеры —
       ни .is-camera-off, ни .has-local-frame её не меняют;
     • слой промоутится один раз (translateZ(0)), без will-change;
     • на самом <video> нет ни contain, ни will-change, а transform
       зависит только от того, фронтальная камера или тыловая.
   Опасен был не оверлей как таковой, а пересчёт этих свойств при
   переключении классов состояния — его тут нет. */
.call-video-grid{
  position:relative!important;
  display:block!important;
  width:100%!important;
  aspect-ratio:16/9!important;
  height:auto!important;
  min-height:0!important;
  max-height:min(62vh,620px)!important;
  margin:0!important;
  padding:0!important;
  gap:0!important;
  overflow:hidden!important;
  border-radius:22px!important;
  background:#05080f!important;
  grid-template-columns:none!important;
}
.call-video-grid>video#remoteCallVideo{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  z-index:1!important;
  object-fit:cover!important;
  border-radius:0!important;
  display:block!important;
}
/* Своё окно: наложение в правом верхнем углу. Геометрия фиксированная и
   от классов состояния не зависит — см. пояснение выше. */
#callSelfView.call-self{
  position:absolute!important;
  top:16px!important;
  right:16px!important;
  left:auto!important;
  bottom:auto!important;
  z-index:10!important;
  flex:none!important;
  width:160px!important;
  aspect-ratio:16/9!important;
  height:auto!important;
  min-height:0!important;
  align-self:auto!important;
  margin:0!important;
  border-radius:12px!important;
  overflow:hidden!important;
  border:2px solid rgba(255,255,255,.72)!important;
  box-shadow:0 4px 12px rgba(0,0,0,.3)!important;
  background:#02030a!important;
  transform:translateZ(0)!important;
  isolation:isolate!important;
  transition:width .22s ease,aspect-ratio .22s ease,border-radius .22s ease!important;
}
#callSelfView.call-self.is-collapsed{
  width:60px!important;
  aspect-ratio:1/1!important;
  border-radius:50%!important;
}
#callSelfView.call-self video#localCallVideo{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-height:none!important;
  object-fit:cover!important;
  display:block!important;
  border:0!important;
  border-radius:inherit!important;
  background:#02030a!important;
  box-shadow:none!important;
  opacity:1!important;
  visibility:visible!important;
  clip:auto!important;
  clip-path:none!important;
  contain:none!important;
  will-change:auto!important;
  backface-visibility:hidden!important;
  -webkit-backface-visibility:hidden!important;
}
#callSelfView.call-self[data-facing="user"] video#localCallVideo{transform:scaleX(-1)!important;}
#callSelfView.call-self[data-facing="environment"] video#localCallVideo{transform:none!important;}
.call-video-grid::after{content:none!important;display:none!important;}
html[lang="et"] .call-video-grid::after{content:none!important;display:none!important;}
/* Аватар ожидания и затемнение теперь относятся ко всей площади: своё
   окно больше не отъедает полосу справа, поэтому сдвигать их некуда. */
.call-remote-avatar{left:50%!important;}
.call-overlay.is-remote-video-waiting .call-video-grid::before,
.call-overlay.is-remote-video-absent .call-video-grid::before{
  right:0!important;
  border-radius:22px!important;
}
@media(max-width:760px){
  /* Телефон держат вертикально — 16:9 оставляет полоску в пол-экрана. */
  .call-video-grid{aspect-ratio:3/4!important;max-height:min(58svh,560px)!important;border-radius:18px!important;}
  #callSelfView.call-self{top:12px!important;right:12px!important;width:112px!important;}
  #callSelfView.call-self.is-collapsed{width:54px!important;}
  .call-overlay.is-remote-video-waiting .call-video-grid::before,
  .call-overlay.is-remote-video-absent .call-video-grid::before{right:0!important;border-radius:18px!important;}
}

/* 981–1500px: одной строки хватает только если ужать всё, кроме меню.
   Порядок жертв (от наименее важного): кнопка «Найти» (Enter в поле
   работает), пилюля Discover, подпись под логотипом, размер логотипа,
   плотность языковых пилюль. Меню остаётся полнотекстовым — именно это
   и просил заказчик. */
@media (min-width:981px) and (max-width:1700px){
  .site-header .header-inner:has(> .site-nav) .leskov-search-bar__submit,
  .site-header .header-inner:has(.site-header__search-wrap--home) .leskov-search-bar__submit{display:none!important;}
  .site-header .header-inner:has(> .site-nav) .leskov-search-bar__form,
  .site-header .header-inner:has(.site-header__search-wrap--home) .leskov-search-bar__form{padding:5px 12px 5px 11px!important;gap:5px!important;}
  .site-header .header-inner:has(> .site-nav) .brand-copy small,
  .site-header .header-inner:has(.site-header__search-wrap--home) .brand-copy small{display:none!important;}
  .site-header .header-inner:has(> .site-nav) .brand img,
  .site-header .header-inner:has(.site-header__search-wrap--home) .brand img{width:50px!important;height:50px!important;min-width:50px!important;border-radius:16px!important;}
  .site-header .header-inner:has(> .site-nav) .brand,
  .site-header .header-inner:has(.site-header__search-wrap--home) .brand{grid-template-columns:50px minmax(0,1fr)!important;gap:10px!important;}
  .site-header .header-inner:has(> .site-nav) .header-actions,
  .site-header .header-inner:has(.site-header__search-wrap--home) .header-actions{gap:7px!important;}
  .site-header .header-inner:has(> .site-nav) .language-switcher--header,
  .site-header .header-inner:has(.site-header__search-wrap--home) .language-switcher--header{gap:4px!important;}
  .site-header .header-inner:has(> .site-nav) .language-switcher--header .lang-pill,
  .site-header .header-inner:has(.site-header__search-wrap--home) .language-switcher--header .lang-pill{
    min-width:0!important;padding:6px 9px!important;font-size:12px!important;
  }
}

/* 981–1149px: одна строка физически не влезает — поиск ужимался бы до
   ~90px и становился бесполезным. На этой полосе возвращаем аккуратную
   двухрядную шапку: бренд · поиск · действия, меню — второй строкой по
   центру. Это НЕ откат: наложения нет, меню целиком читаемо. */
@media (min-width:981px) and (max-width:1149px){
  .site-header .header-inner:has(.site-header__search-wrap--home){
    grid-template-columns:auto minmax(180px,1fr) max-content!important;
    grid-template-areas:"brand search actions" "nav nav nav"!important;
    gap:10px clamp(12px,1.5vw,22px)!important;
  }
  .site-header .header-inner:has(.site-header__search-wrap--home) .site-nav{
    justify-content:center!important;
    flex-wrap:wrap!important;
    padding-top:4px!important;
    border-top:1px solid rgba(148,184,226,.1)!important;
  }
  .site-header .header-inner:has(> .site-nav):has(> .site-header__search-wrap){
    grid-template-columns:auto minmax(180px,1fr) max-content!important;
    grid-template-areas:"brand search actions" "nav nav nav"!important;
    gap:10px clamp(12px,1.5vw,22px)!important;
  }
  .site-header .header-inner:has(> .site-nav):has(> .site-header__search-wrap) > .site-nav{
    grid-area:nav!important;justify-content:center!important;flex-wrap:wrap!important;
  }
}

/* ===================== 02.09.2026 — карточки мерча ===================== */

/* Убираем обесцвечивание фотографий товара */
.shop-visual{ filter: none; }

/* Переключение вида только вручную: наведение больше не переворачивает карточку */
.shop-card:hover .shop-image.is-back{ opacity: 0; transform: scale(1.04); }
.shop-card:hover .shop-image.is-front{ opacity: 1; transform: scale(1); }
.shop-card.is-flipped .shop-image.is-back{ opacity: 1; transform: scale(1); }
.shop-card.is-flipped .shop-image.is-front{ opacity: 0; transform: scale(.98); }

/* Переключатель «спереди / сзади» */
.shop-view-toggle{
    position: absolute;
    z-index: 5;
    right: 12px;
    bottom: 12px;
    display: flex;
    gap: 7px;
    padding: 6px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 2px 10px rgba(16, 23, 40, .18);
}
html[data-theme="dark"] .shop-view-toggle{
    background: rgba(16, 23, 36, .78);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}
.shop-view-btn{
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(16, 23, 40, .3);
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
html[data-theme="dark"] .shop-view-btn{ background: rgba(255, 255, 255, .32); }
.shop-view-btn:hover{ transform: scale(1.15); }
.shop-view-btn.is-active{ background: #1f4fd8; }
html[data-theme="dark"] .shop-view-btn.is-active{ background: #7c9cff; }
.shop-view-btn:focus-visible{ outline: 2px solid #1f4fd8; outline-offset: 2px; }

/* 02.09.2026: no wash-out on sold-out product photos */
.shop-card.is-sold-out .shop-visual{ filter: none; opacity: 1; }

/* 02.09.2026: manual front/back switch wins over legacy hover rules */
.shop-card .shop-image.is-front{ opacity:1 !important; transform:scale(1) !important; }
.shop-card .shop-image.is-back{ opacity:0 !important; }
.shop-card.is-flipped .shop-image.is-front{ opacity:0 !important; transform:scale(.98) !important; }
.shop-card.is-flipped .shop-image.is-back{ opacity:1 !important; transform:scale(1) !important; }
