.home-featured-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 138, 61, 0.12), rgba(255, 255, 255, 0.02)),
    var(--surface);
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.home-featured-card:hover {
  border-color: rgba(255, 138, 61, 0.5);
  transform: translateY(-1px);
}

.home-featured-cover {
  width: 168px;
  height: 168px;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  padding: 0;
  background: #262936;
  cursor: pointer;
}

.home-featured-cover img,
.home-featured-cover .cover-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.home-featured-card:hover .home-featured-cover img {
  transform: scale(1.05);
}

.home-featured-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.home-featured-eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.home-featured-title {
  overflow: hidden;
  font-size: 26px;
  font-weight: 950;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-featured-genre {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c7cbd6;
  font-size: 13px;
  font-weight: 850;
}

.home-featured-genre i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.home-featured-attribution {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 4px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.3;
}

.home-featured-actions {
  display: inline-flex;
  margin-top: 8px;
}

.home-featured-play {
  width: auto;
}

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

.poet-tile {
  position: relative;
  display: flex;
  min-height: 132px;
  padding: 16px;
  overflow: hidden;
  align-items: flex-end;
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: inset 0 0 0 1px rgba(246, 241, 232, 0.12);
}

.poet-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.32));
}

.poet-tile:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1px rgba(246, 241, 232, 0.2),
    0 18px 38px rgba(0, 0, 0, 0.26);
}

.poet-tile strong,
.poet-tile-content,
.poet-tile-count {
  position: relative;
  z-index: 1;
}

.poet-tile strong {
  display: block;
  max-width: 100%;
  font-size: 22px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.poet-tile-count {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.tile-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 10px 2px 20px;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(246, 241, 232, 0.28) transparent;
}

.tile-card {
  position: relative;
  flex: 0 0 150px;
  height: 98px;
  padding-top: 9px;
  scroll-snap-align: start;
}

.tile-stack {
  position: absolute;
  left: 6px;
  right: 6px;
  height: 80px;
  border-radius: 8px;
  opacity: 0.35;
}

.tile-stack:nth-child(1) {
  top: 0;
}

.tile-stack:nth-child(2) {
  top: 4px;
  left: 3px;
  right: 3px;
  opacity: 0.5;
}

.tile-body {
  position: relative;
  z-index: 1;
  display: flex;
  height: 80px;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 8px;
  color: #fff;
  text-align: center;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.12;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.tile-card:hover .tile-body {
  transform: translateY(-2px);
}

.page-hero {
  position: relative;
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 138px 24px 34px;
}

.page-hero.compact {
  padding-top: 132px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 850px;
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.page-back-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
}

.page-back-button,
.page-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(246, 241, 232, 0.18);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.page-back-button:hover,
.page-home-link:hover {
  border-color: rgba(255, 122, 69, 0.55);
  color: var(--accent);
}

.page-section {
  padding-top: 42px;
}

.segmented a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  font-weight: 850;
}

.segmented a:hover,
.segmented .active {
  border-color: rgba(255, 122, 69, 0.55);
  color: var(--text);
  background: rgba(255, 122, 69, 0.12);
}

.catalog-main {
  min-width: 0;
}

.music-screen {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 24px 16px 18px;
}

.android-music-header {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.android-icon-btn {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  background: rgba(21, 22, 30, 0.92);
  cursor: pointer;
}

.android-icon-btn:hover {
  border-color: rgba(255, 138, 61, 0.5);
  color: var(--accent);
}

.android-title-pill {
  min-width: 0;
  min-height: 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #151520;
}

.android-title-pill span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.android-title-pill strong,
.android-title-pill em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.android-title-pill strong {
  color: var(--text);
  font-size: 17px;
  font-weight: 950;
  line-height: 1.16;
}

.android-title-pill em {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.android-title-pill-simple {
  align-items: center;
  text-align: center;
}

.android-title-pill-simple strong {
  font-size: 20px;
}

.android-header-search {
  display: none;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 0 0 10px;
}

.android-header-search.open {
  display: grid;
}

.android-header-search input {
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  font-weight: 800;
}

.catalog-main > .music-filter-toolbar,
.page-section > .music-filter-toolbar {
  margin-bottom: 16px;
}

.music-screen > .music-filter-toolbar {
  margin-bottom: 8px;
}

.music-view-row {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 12px;
}

.music-view-toggle {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 14px;
  background: #111118;
}

.music-view-toggle a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.music-view-toggle a.active {
  color: var(--text);
  background: #222231;
}

.result-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  color: var(--muted);
}

.result-toolbar strong {
  color: var(--text);
  font-size: 18px;
}

.search-form {
  display: flex;
  gap: 10px;
  width: min(680px, 100%);
  margin-top: 24px;
}

.search-form input {
  min-width: 0;
  flex: 1;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(246, 241, 232, 0.18);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  font: inherit;
  font-weight: 750;
}

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

.media-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  min-height: 174px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.media-cover {
  overflow: hidden;
  border-radius: 8px;
  background: #262936;
}

.media-cover img {
  width: 100%;
  height: 100%;
  min-height: 112px;
  object-fit: cover;
}

.media-body {
  min-width: 0;
}

.media-title {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.18;
}

.media-meta,
.media-stats {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.media-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 10px;
}

.media-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  align-items: center;
}

.catalog-track-list {
  display: grid;
  gap: 10px;
}

.catalog-list-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 52px 38px;
  gap: 14px;
  align-items: start;
  min-height: 126px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #111116;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.catalog-list-card.skeleton {
  min-height: 126px;
  background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.08), rgba(255,255,255,0.04));
}

.catalog-cover-col {
  display: grid;
  justify-items: center;
  gap: 6px;
}

/* ⋯-меню карточки — только мобиль; на десктопе скрыто (см. @media ≤900px). */
.catalog-card-menu {
  display: none;
}

.web-tmenu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.web-tmenu-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 8px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  border-radius: 10px;
}

.web-tmenu-opt:active {
  background: rgba(255, 255, 255, 0.06);
}

.web-tmenu-opt .web-tmenu-ico {
  flex: 0 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.web-tmenu-opt .web-tmenu-ico svg {
  width: 20px;
  height: 20px;
}

.web-tmenu-opt.danger {
  color: #ff6b6b;
}

.web-tmenu-opt + .web-tmenu-opt {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* #31: переключатель версий (1|2) на карточке каталога/ленты (v1 + мобиль). */
.catalog-mvariants {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 2px;
}

.catalog-mvariants i {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: #6a6a77;
  letter-spacing: 0.04em;
}

.catalog-vbtn {
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #191922;
  color: #b9b9c5;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.catalog-vbtn.active {
  background: #7c6cf5;
  border-color: #7c6cf5;
  color: #fff;
  box-shadow: 0 4px 12px rgba(124, 108, 245, 0.35);
}

.catalog-cover-btn {
  width: 72px;
  height: 72px;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  padding: 0;
  background: #262936;
  color: var(--text);
  cursor: pointer;
}

div.catalog-cover-btn {
  cursor: default;
}

.catalog-cover-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.catalog-cover-btn .cover-placeholder {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.catalog-year {
  max-width: 80px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
}

@media (hover: hover) and (min-width: 901px) {
  .catalog-list-card:hover {
    border-color: rgba(255, 138, 61, 0.5);
    background: #16151d;
    transform: translateY(-1px);
  }
  .catalog-list-card:hover .catalog-cover-btn img,
  .catalog-list-card:hover .catalog-cover-btn .cover-placeholder {
    transform: scale(1.06);
  }
}

.catalog-card-main {
  min-width: 0;
  padding-top: 2px;
}

.catalog-card-title {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0 0 7px;
  border: 0;
  padding: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.18;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.catalog-card-title.as-text {
  cursor: default;
}

.catalog-card-info-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.catalog-genre-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  margin-bottom: 0;
  color: #c7cbd6;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-genre-row span {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 999px;
}

.catalog-attribution {
  display: -webkit-box;
  min-height: 30px;
  margin-bottom: 8px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  line-height: 1.28;
}

.catalog-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.catalog-chip-row-inline {
  flex: 1 1 auto;
  justify-content: flex-start;
  min-width: 0;
}

.catalog-chip-row-mobile {
  display: none;
}

.catalog-chip-row span {
  max-width: 100%;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  color: #b9bec9;
  background: rgba(255, 255, 255, 0.035);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.1;
}

