.music-menu {
  position: fixed;
  left: 50%;
  bottom: 112px;
  z-index: 41;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  width: min(660px, calc(100% - 24px));
  min-height: 70px;
  padding: 8px;
  border: 1.5px solid rgba(255, 138, 61, 0.56);
  border-radius: 16px;
  background: rgba(18, 18, 27, 0.99);
  box-shadow: 0 0 32px rgba(255, 138, 61, 0.2), 0 18px 60px rgba(0, 0, 0, 0.38);
  transform: translateX(-50%) translateY(0) scale(1);
  transform-origin: 50% 100%;
  animation: musicMenuSpring 0.26s cubic-bezier(.34, 1.56, .64, 1);
}

.music-menu-scrim {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 112px;
  z-index: 40;
  background: rgba(8, 8, 11, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@keyframes musicMenuSpring {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.music-menu::after {
  content: "";
  position: absolute;
  right: 23%;
  bottom: -8px;
  width: 16px;
  height: 16px;
  border-right: 1.5px solid rgba(255, 138, 61, 0.56);
  border-bottom: 1.5px solid rgba(255, 138, 61, 0.56);
  background: rgba(18, 18, 27, 0.99);
  transform: rotate(45deg);
}

.music-menu a {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 54px;
  align-content: center;
  justify-items: center;
  padding: 6px 4px;
  border-radius: 12px;
  color: #aeb4c2;
  text-align: center;
}

.music-menu a:hover,
.music-menu a.active {
  color: #fff2e8;
  background: rgba(255, 138, 61, 0.18);
}

.music-menu span {
  font-size: 21px;
  line-height: 1;
}

.music-menu strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loading-line,
.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.loading-line {
  height: 74px;
  border-radius: 8px;
}

.loading-line.short {
  width: 72%;
}

.loading-line::after,
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 36px 24px 46px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  text-align: right;
  font-size: 15px;
}

@media (min-width: 901px) {
  body {
    padding-bottom: 0;
  }

  body.is-music-surface .music-screen {
    padding-top: 108px;
  }

  .site-header {
    z-index: 50;
  }

  .desktop-app-nav {
    gap: 4px;
    padding: 5px;
  }

  .desktop-app-nav a,
  .desktop-app-nav button {
    display: inline-flex;
    gap: 7px;
    min-height: 42px;
    padding: 0 11px;
    border-radius: 7px;
    white-space: nowrap;
  }

  .desktop-app-nav .bottom-icon,
  .desktop-app-nav .bottom-create-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
  }

  .desktop-app-nav .bottom-create-icon {
    color: #fff;
    background: #ff5d3d;
  }

  .desktop-app-nav .active {
    color: var(--accent);
    background: rgba(255, 138, 61, 0.12);
  }

  .desktop-app-nav .desktop-create-link {
    color: #ffb2a3;
  }

  .bottom-nav {
    display: none;
  }

  .mini-player {
    bottom: 22px;
  }

  .music-menu {
    top: 104px;
    bottom: auto;
    z-index: 51;
    width: min(560px, calc(100% - 48px));
    min-height: 78px;
    border-radius: 16px;
    transform-origin: 50% 0;
    animation: desktopMusicMenuDrop 0.22s cubic-bezier(.2, .8, .2, 1);
  }

  .music-menu-scrim {
    top: 100px;
    bottom: 0;
    z-index: 49;
  }

  .music-menu::after {
    top: -8px;
    bottom: auto;
    right: 30%;
    border-right: 0;
    border-bottom: 0;
    border-left: 1.5px solid rgba(255, 138, 61, 0.56);
    border-top: 1.5px solid rgba(255, 138, 61, 0.56);
  }
}

@keyframes desktopMusicMenuDrop {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  body.is-home-route {
    padding-bottom: 108px;
  }

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

  .nav-links {
    display: none;
  }

  .mobile-home-top {
    position: absolute;
    top: 18px;
    left: 20px;
    right: 20px;
    z-index: 6;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 88px;
    align-items: center;
    min-height: 72px;
  }

  .mobile-home-icon-btn,
  .mobile-credit-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border: 1px solid rgba(246, 241, 232, 0.16);
    border-radius: 18px;
    color: var(--text);
    background: rgba(18, 18, 27, 0.86);
    backdrop-filter: blur(16px);
  }

  .mobile-home-icon-btn {
    width: 54px;
    padding: 0;
    font: inherit;
  }

  .mobile-home-logo {
    justify-self: center;
    width: 58px;
    height: 58px;
    object-fit: contain;
  }

  .mobile-credit-pill {
    justify-self: end;
    gap: 7px;
    min-width: 86px;
    padding: 0 10px;
    color: #f4f5fb;
    font-size: 16px;
    font-weight: 900;
  }

  .mobile-credit-pill > span {
    color: var(--accent);
  }

  .mobile-credit-pill em {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    margin-right: -14px;
    margin-bottom: -28px;
    border-radius: 999px;
    color: #fff;
    background: var(--accent);
    font-style: normal;
    font-size: 13px;
    line-height: 1;
  }

  .hero {
    min-height: 690px;
    align-items: end;
    padding: 120px 20px 38px;
  }

  body.is-home-route .hero-media {
    top: 112px;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, #09090d 0%, rgba(9, 9, 13, 0.86) 18%, rgba(9, 9, 13, 0.34) 56%, rgba(9, 9, 13, 0.2) 100%),
      linear-gradient(90deg, rgba(9, 9, 13, 0.45), rgba(9, 9, 13, 0.18));
  }

  .hero-content {
    display: grid;
    justify-items: center;
    padding-bottom: 0;
    text-align: center;
  }

  .home-desktop-only,
  .home-search-desktop {
    display: none !important;
  }

  body.is-home-route .home-search-mobile {
    position: absolute;
    top: 138px;
    left: 20px;
    right: 20px;
    z-index: 5;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    width: auto;
    max-width: none;
    min-height: 58px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid rgba(167, 139, 250, 0.42);
    border-radius: 18px;
    color: #c8cad5;
    background: rgba(13, 13, 19, 0.72);
    backdrop-filter: blur(16px);
  }

  body.is-home-route .home-search-mobile input {
    min-height: 56px;
    border: 0;
    padding: 0;
    background: transparent;
    font-size: 16px;
    font-weight: 850;
  }

  body.is-home-route .home-search-mobile input::placeholder {
    color: #aeb4c4;
  }

  .hero h1 {
    max-width: none;
    margin: 0 0 14px;
    font-size: 33px;
    line-height: 1.08;
    text-align: center;
  }

  .hero-actions {
    display: grid;
    width: 100%;
    gap: 12px;
    margin-top: 0;
  }

  .hero-action-block {
    width: 100%;
    gap: 8px;
  }

  .hero-action-block .button {
    width: 100%;
    min-height: 62px;
    border-radius: 18px;
    font-size: 17px;
    line-height: 1.1;
  }

  .hero-listen-button {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(246, 241, 232, 0.14);
    color: #fff;
    background:
      linear-gradient(90deg, rgba(124, 74, 201, 0.76), rgba(73, 47, 148, 0.86)),
      rgba(24, 18, 43, 0.9);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.09);
  }

  .hero-listen-button > span:not(.button-icon) {
    position: relative;
    z-index: 2;
  }

  .hero-listen-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    height: 18px;
    opacity: 0.62;
    background:
      repeating-linear-gradient(90deg, rgba(8,8,11,0.34) 0 3px, transparent 3px 39px),
      linear-gradient(90deg, #9b5dd7 0 43%, transparent 43% 82%, #9b5dd7 82% 100%);
    clip-path: polygon(0 35%, 6% 48%, 12% 30%, 19% 55%, 27% 24%, 36% 58%, 48% 22%, 61% 62%, 73% 38%, 85% 70%, 100% 44%, 100% 100%, 0 100%);
  }

  .hero-create-button {
    color: #fff;
    border: 0;
    background: linear-gradient(100deg, #5c63ee, #c83c8c);
    box-shadow: none;
  }

  .hero-feed-button {
    position: relative; /* якорь для колокольчика .feed-bell */
    color: #eef0f6;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
  }
  .hero-action-block.feed .feed-bell { top: -9px; right: 8px; }

  .hero-action-meta {
    color: #aeb4c4;
    font-size: 14px;
    font-weight: 850;
  }

  .hero-stats,
  .section-heading,
  .chart-grid,
  .shortcut-grid,
  .media-grid,
  .poem-grid,
  .detail-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  body.is-home-route .hero-stats {
    display: none;
  }

  .profile-tile.wide {
    grid-column: auto;
  }

  .page-hero,
  .page-hero.compact {
    padding: calc(22px + env(safe-area-inset-top)) 16px 28px;
  }

  .home-section-head {
    gap: 10px;
    margin-bottom: 8px;
  }

  .home-section-head > div {
    gap: 8px;
  }

  .home-section-head > div > span {
    font-size: 21px;
  }

  .home-section-head h2 {
    font-size: 30px;
    line-height: 1.05;
    letter-spacing: 0;
  }

  .home-section-head a {
    color: var(--accent);
    font-size: 15px;
    font-weight: 950;
  }

  .home-section-subtitle {
    margin-bottom: 18px;
    color: #aeb4c4;
    font-size: 17px;
    line-height: 1.45;
  }

  .poet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .poet-tile {
    min-height: 78px;
    border-radius: 14px;
    padding: 16px;
  }

  .poet-tile strong {
    font-size: 19px;
  }

  .poet-tile-count {
    display: none;
  }

  .section-toolbar {
    justify-content: flex-start;
    margin-top: -2px;
  }

  .section {
    padding: 26px 20px;
  }

  .section-intro {
    padding-top: 4px;
  }

  .create-section,
  .playlist-section,
  .charts-section {
    border-top: 0;
  }

  .shortcut-grid {
    gap: 12px;
  }

  .shortcut-card {
    min-height: 86px;
    border-radius: 16px;
    padding: 14px 16px;
    background: #15161e;
  }

  .shortcut-card strong {
    font-size: 18px;
  }

  .tile-rail {
    margin: 0 -20px;
    padding: 8px 20px 16px;
    gap: 14px;
    scrollbar-width: none;
  }

  .tile-rail::-webkit-scrollbar {
    display: none;
  }

  .tile-card {
    flex: 0 0 180px;
    height: 112px;
    padding-top: 8px;
  }

  .tile-body {
    height: 92px;
    justify-content: flex-start;
    align-items: flex-end;
    padding: 16px;
    border-radius: 12px;
    font-size: 19px;
    text-align: left;
  }

  .chart-grid {
    display: block;
  }

  .chart-panel {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .chart-panel + .chart-panel {
    margin-top: 30px;
  }

  .home-rank-list {
    border-radius: 20px;
  }

  .home-rank-row {
    min-height: 84px;
    grid-template-columns: 40px 52px minmax(0, 1fr) 38px;
    gap: 10px;
    padding: 8px 10px;
  }

  .home-rank-row.recent {
    grid-template-columns: 52px minmax(0, 1fr) 38px;
  }

  .home-rank-number {
    font-size: 24px;
  }

  .home-rank-cover {
    width: 48px;
    height: 48px;
    border-radius: 9px;
  }

  .home-rank-body strong {
    font-size: 16px;
  }

  .home-rank-author,
  .home-rank-genre {
    font-size: 12px;
  }

  .home-preview-more {
    min-height: 50px;
  }

  .track-card {
    grid-template-columns: 64px minmax(0, 1fr) 38px;
  }

  .track-card img {
    width: 64px;
    height: 64px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer p {
    text-align: left;
  }

  .mini-player {
    bottom: 106px;
  }

  .mini-player-row {
    grid-template-columns: 44px minmax(0, 1fr) 42px 38px;
  }

  .music-menu {
    bottom: 106px;
  }

  .music-swipe-nav {
    right: 10px;
    z-index: 2;
  }
}

