/* Home is the listener's landing page; discovery is a separate catalog. */
.home-explore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.home-explore svg {
  width: 17px;
  height: 17px;
}
.home-welcome {
  margin-bottom: 27px;
}
.home-search-bar {
  margin-bottom: 28px;
}
.home-trending > .trending-section {
  margin-top: 0;
  padding: 23px 25px;
  background: transparent;
  border-color: var(--border);
}
.home-trending .trending-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px 18px;
}
.home-trending .trending-card {
  background: var(--panel);
  padding: 12px;
}
.home-trending .trending-card:hover {
  background: var(--panel2);
}
.home-trending .trending-card img {
  width: 56px;
  height: 56px;
}
.home-trending .trending-card h3 {
  font-size: 15px;
}
.home-trending .trending-card p {
  font-size: 12px;
}
.home-trending .trending-rank {
  font-size: 20px;
}
.home-trending .trending-update {
  font-size: 11px;
}
.home-social-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 32px;
  margin-top: 34px;
  align-items: start;
}
.home-feed-heading {
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.section-caption {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 5px;
}
.feed-tabs {
  display: flex;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px;
  flex-shrink: 0;
}
.feed-tabs button {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 12px;
  padding: 7px 11px;
  white-space: nowrap;
  border-radius: 4px;
}
.feed-tabs button.active {
  background: var(--panel2);
  color: var(--lime);
}
.feed-tabs button:hover {
  color: var(--text);
}
.home-composer {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 17px 20px;
  margin-bottom: 23px;
}
.home-composer-row {
  display: flex;
  align-items: center;
  gap: 13px;
}
.home-composer .profile-avatar.small {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 0;
}
.home-composer input {
  border: 0;
  padding: 8px 0;
  background: transparent;
  font-size: 14px;
  min-width: 0;
  box-shadow: none;
}
.home-composer input:focus {
  outline-offset: 2px;
}
.home-composer .btn {
  flex-shrink: 0;
}
.home-composer > p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  padding-left: 51px;
}
.home-feed-empty {
  padding: 43px 30px 35px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  min-height: 313px;
}
.home-feed-empty h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin: 19px 0 10px;
}
.home-feed-empty p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.85;
  max-width: 465px;
  margin: 0 auto 20px;
}
.empty-community-symbol {
  width: 88px;
  height: 63px;
  margin: auto;
  position: relative;
  font-size: 35px;
  color: var(--lime);
}
.empty-community-symbol span,
.empty-community-symbol b {
  position: absolute;
  z-index: 1;
  line-height: 1;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--panel2);
  border: 1px solid var(--border);
  width: 47px;
  height: 47px;
  font-weight: 400;
}
.empty-community-symbol span {
  left: 1px;
  top: 0;
  transform: rotate(-9deg);
}
.empty-community-symbol b {
  right: 0;
  bottom: 0;
  font-size: 28px;
  color: var(--blue);
  transform: rotate(8deg);
}
.empty-community-symbol i {
  position: absolute;
  inset: 16px 0 0;
  border-radius: 50%;
  border: 1px dashed var(--border);
}
.feed-connection-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 11px;
}
.feed-connection-state i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
}
.home-sidebar .panel {
  margin-bottom: 23px;
}
.home-sidebar .section-head {
  gap: 8px;
  margin-bottom: 17px;
}
.home-sidebar .section-head h2 {
  font-size: 17px;
}
.home-sidebar .section-head .text-link {
  font-size: 11px;
}
.home-library-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 19px;
  margin-bottom: 17px;
  text-align: center;
}
.home-library-stats strong {
  display: block;
  color: var(--lime);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.5;
}
.home-library-stats span {
  font-size: 11px;
  color: var(--muted);
}
.home-library-stats a:hover span {
  color: var(--text);
}
.home-listening .helper {
  font-size: 12px;
  margin: 0;
}
.home-continue .mini-row:first-child {
  padding-top: 0;
}
.home-continue .mini-row:last-child {
  padding-bottom: 0;
}
.home-continue .mini-row .thumb {
  width: 48px;
}
.home-continue h3 {
  font-size: 13px;
}
.home-continue p {
  font-size: 11px;
}
.home-side-discover {
  background: linear-gradient(145deg, var(--panel), var(--bg));
  padding-top: 24px;
}
.home-side-discover .eyebrow {
  font-size: 9px;
  letter-spacing: 1.5px;
}
.home-side-discover h2 {
  font-size: 26px;
  line-height: 1.5;
  margin: 12px 0;
}
.home-side-discover > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
  margin-bottom: 20px;
}
.home-side-discover .btn {
  font-size: 12px;
}
.home-genre-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.home-genre-links a {
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 11px;
  color: var(--muted);
  padding: 4px 9px;
}
.home-genre-links a:hover {
  color: var(--lime);
  border-color: var(--lime);
}
.home-data-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
  padding: 0 4px;
}
.home-activity-card {
  display: flex;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
  min-height: 170px;
  margin-bottom: 20px;
}
.home-activity-cover {
  flex-shrink: 0;
  width: 165px;
}
.home-activity-cover .cover {
  height: 100%;
  width: 100%;
  border-radius: 0;
  aspect-ratio: auto;
}
.home-activity-cover .cover img {
  height: 100%;
  object-fit: cover;
}
.home-activity-body {
  flex: 1;
  min-width: 0;
  padding: 20px 23px 15px;
  display: flex;
  flex-direction: column;
}
.home-activity-top {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.home-user {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--lime);
  font-weight: 500;
  font-size: 15px;
}
.home-activity-top time {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.home-activity-action {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
}
.home-activity-action > a {
  color: var(--blue);
}
.home-activity-action > a:hover {
  text-decoration: underline;
}
.home-activity-artist {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.home-activity-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 15px;
}
.home-activity-bottom .profile-avatar.small {
  width: 31px;
  height: 31px;
  border: 0;
  border-radius: 5px;
}
.home-activity-bottom > span {
  font-size: 10px;
  color: var(--muted);
}
.home-activity-bottom .text-link {
  margin-left: auto;
  font-size: 11px;
}
.home-note-card {
  min-height: 170px;
}
.home-note-card .home-user .profile-avatar.small {
  width: 40px;
  height: 40px;
  border: 0;
}
.home-note-body {
  font-size: 15px;
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.9;
  margin-top: 8px;
}
.home-load-activity {
  width: 100%;
  background: var(--panel);
  font-size: 13px;
}
.activity-artist-cover {
  display: grid;
  place-items: center;
  background: var(--panel2);
}
.activity-artist-cover .artist-circle {
  width: 104px;
}
.home-search-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 23px;
  border-radius: 8px;
  margin-bottom: 28px;
}
.home-search-panel h2 {
  font-size: 18px;
}
.home-search-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px 24px;
}
.home-search-grid .mini-row h3 {
  font-size: 14px;
}
.home-search-grid .mini-row p {
  font-size: 11px;
}
.home-search-grid .mini-row {
  padding: 11px 0;
}
.home-search-grid .thumb {
  width: 45px;
}
/* Wide, labelled catalog filters and square release artwork. */
.browse-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 1px 0 27px;
}
.browse-intro h1 {
  font-size: 34px;
  line-height: 1.35;
  letter-spacing: -1px;
  margin-top: 7px;
}
.browse-intro > p {
  font-size: 12px;
  color: var(--muted);
  padding-bottom: 5px;
}
.browse-filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(0, 1fr)) 46px;
  gap: 19px;
  align-items: end;
  margin-bottom: 26px;
}
.browse-filter-bar label > span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 10px;
}
.browse-filter-bar select {
  width: 100%;
  font-size: 13px;
  padding: 12px 28px 12px 13px;
  height: 48px;
}
.browse-filter-bar input {
  height: 48px;
  font-size: 14px;
}
.browse-filter-bar .search svg {
  top: 16px;
}
.browse-more-filters {
  height: 48px;
  width: 46px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  display: grid;
  place-items: center;
}
.browse-more-filters svg {
  width: 22px;
  height: 22px;
}
.browse-more-filters:hover,
.browse-more-filters.active {
  color: var(--lime);
  background: var(--panel2);
}
.browse-advanced {
  display: flex;
  align-items: center;
  gap: 27px;
  margin: -5px 0 26px;
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 7px;
}
.browse-advanced[hidden] {
  display: none;
}
.browse-advanced label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--muted);
}
.browse-advanced input {
  width: 15px;
  height: 15px;
  accent-color: var(--primary-bg);
  padding: 0;
}
.browse-section {
  margin: 39px 0 45px;
  scroll-margin-top: 110px;
}
.browse-section .section-head {
  align-items: center;
  gap: 20px;
}
.browse-section h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
}
.browse-section .section-caption {
  font-size: 12px;
}
.browse-cover-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 30px 23px;
}
.chart-art {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 7px;
  box-shadow: 0 5px 14px #0001;
}
.chart-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s;
}
.chart-art:hover img {
  transform: scale(1.035);
}
.chart-position {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: #0e1523dc;
  border: 1px solid #ffffff25;
  padding: 1px 9px;
  min-width: 34px;
  border-radius: 4px;
  color: #e8eef8;
  font-size: 17px;
  font-weight: 600;
}
.chart-cover-card:first-child .chart-position {
  background: var(--primary-bg);
  color: var(--primary-ink);
  border-color: transparent;
}
.chart-outside {
  position: absolute;
  right: 10px;
  top: 10px;
  background: #0e1523ba;
  border-radius: 5px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: #fff;
}
.chart-cover-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 11px 0 4px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 51px;
}
.chart-cover-card p {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chart-provider {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 7px;
}
.chart-source {
  font-size: 11px;
  color: var(--muted);
  margin-top: 17px;
}
.live-dot {
  display: inline-block;
  vertical-align: middle;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  margin-left: 6px;
}
.browse-cover-grid .music-card h3 {
  font-size: 15px;
  min-height: 47px;
  line-height: 1.6;
  margin-top: 11px;
}
.browse-cover-grid .music-card .artist {
  font-size: 12px;
}
.browse-cover-grid .music-card .card-meta {
  font-size: 11px;
}
.browse-cover-grid .save-corner {
  top: 9px;
  right: 9px;
}
.browse-sort {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.browse-sort > span {
  font-size: 12px;
  color: var(--muted);
}
.browse-sort select {
  font-size: 12px;
  min-width: 176px;
  padding: 10px 30px 10px 12px;
}
.catalog-section {
  padding-top: 33px;
  border-top: 1px solid var(--border);
}
.catalog-section:first-child {
  padding-top: 0;
  border-top: 0;
}
.catalog-section > .section-head {
  margin-bottom: 24px;
}
.browse-load {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 35px;
}
.browse-load .btn {
  font-size: 13px;
  min-width: 220px;
}
.browse-load > span,
.catalog-end {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}
.catalog-end {
  margin-top: 30px;
}
.browse-filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 29px;
}
.browse-filter-chips button {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 6px 11px;
  border-radius: 5px;
  color: var(--lime);
  font-size: 12px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.browse-filter-chips button > span {
  font-size: 17px;
  line-height: 1;
  color: var(--muted);
}
.browse-filter-chips .clear-all {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
.browse-filter-chips button:hover {
  background: var(--panel2);
}
@media (min-width: 900px) {
  .header-inner {
    gap: 43px;
  }
  .header nav {
    gap: 27px;
  }
  .header-end {
    gap: 15px;
  }
  .header .demo-label {
    font-size: 11px;
  }
  .header .theme-toggle {
    padding: 9px 11px;
    font-size: 12px;
  }
  .home-page,
  .browse-page {
    padding-top: 35px;
  }
  .home-feed-heading h2 {
    font-size: 23px;
  }
}
@media (min-width: 1500px) {
  .home-page,
  .browse-page,
  .header-inner {
    max-width: 1420px;
  }
  .home-social-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 36px;
  }
  .home-trending .trending-card img {
    width: 64px;
    height: 64px;
  }
  .browse-cover-grid {
    gap: 32px 28px;
  }
  .browse-cover-grid .music-card h3 {
    font-size: 16px;
  }
  .chart-cover-card h3 {
    font-size: 16px;
  }
  .home-feed-empty {
    min-height: 345px;
    padding-top: 52px;
  }
  .home-activity-card {
    min-height: 182px;
  }
  .home-activity-cover {
    width: 180px;
  }
}
/* Existing small-screen layouts are retained; this pass targets desktop. */
@media (max-width: 1100px) {
  .header .demo-label {
    display: none;
  }
  .header-inner {
    gap: 25px;
  }
  .header nav {
    gap: 20px;
  }
  .home-social-layout {
    grid-template-columns: minmax(0, 1fr) 265px;
    gap: 22px;
  }
  .home-feed-heading {
    flex-wrap: wrap;
  }
  .home-trending .trending-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .browse-filter-bar {
    grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(0, 1fr)) 42px;
    gap: 11px;
  }
  .browse-filter-bar select {
    font-size: 12px;
    padding-left: 10px;
  }
  .browse-cover-grid {
    gap: 25px 17px;
  }
  .home-activity-cover {
    width: 135px;
  }
  .home-activity-body {
    padding: 17px;
  }
  .home-composer {
    padding: 15px;
  }
  .home-composer input {
    font-size: 12px;
  }
  .home-composer-row {
    gap: 9px;
  }
  .home-composer .btn {
    font-size: 10px;
    padding: 8px;
  }
  .home-search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
