/* ===== home ===== */
.home-greeting { padding: calc(var(--topbar-h) + 8px) 32px 16px; }
.home-greeting h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }

/* ===== search view ===== */
.search-wrap { padding: 80px 32px 0; }
.search-title { font-size: 24px; font-weight: 700; margin: 24px 0 12px; }
.browse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 24px; padding-bottom: 32px; }
.browse-tile {
  position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden;
  font-size: 24px; font-weight: 700; padding: 16px; text-align: left;
  transition: transform .1s; color: #fff;
}
.browse-tile:active { transform: scale(.99); }
.browse-tile span { position: relative; z-index: 2; text-shadow: 0 2px 8px rgba(0,0,0,.25); }
.browse-tile img {
  position: absolute; right: -22px; bottom: -10px; width: 96px; height: 96px; z-index: 1;
  transform: rotate(25deg); border-radius: 4px;
  box-shadow: -2px 2px 12px rgba(0,0,0,.4); object-fit: cover;
}
.search-chips { display: flex; gap: 8px; padding: calc(var(--topbar-h) + 8px) 32px 16px; flex-wrap: wrap; }
.search-results { padding-top: 8px; }
.topresult-grid { display: grid; grid-template-columns: minmax(300px, 5fr) minmax(300px, 7fr); gap: 24px; padding: 0 32px 16px; }
.topresult-card {
  background: var(--card-bg); border-radius: 8px; padding: 20px; position: relative;
  transition: background-color .25s; cursor: pointer; min-height: 230px;
  display: flex; flex-direction: column; align-items: flex-start;
}
.topresult-card:hover { background: var(--card-hover); }
.topresult-card:hover .btn-play { opacity: 1; transform: translateY(0); }
.topresult-card img { width: 92px; height: 92px; border-radius: 6px; object-fit: cover; box-shadow: 0 8px 40px rgba(0,0,0,.6); margin-bottom: 20px; }
.topresult-card img.round { border-radius: 50%; }
.topresult-card h3 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.topresult-card .tr-type { background: rgba(0,0,0,.6); border-radius: 9999px; padding: 4px 12px; font-size: 13px; font-weight: 600; }
.topresult-card .btn-play { position: absolute; right: 20px; bottom: 20px; opacity: 0; transform: translateY(8px); }
.songs-col h2, .shelf-inline-title { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.search-empty { padding: 80px 32px; text-align: center; color: var(--text-subdued); }
.search-empty h2 { color: #fff; font-size: 28px; margin-bottom: 8px; }
.search-no { padding: 60px 32px; text-align: center; }
.search-no h2 { font-size: 26px; margin-bottom: 10px; }
.search-no p { color: var(--text-subdued); }

/* ===== artist view ===== */
.artist-hero { position: relative; min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 32px 24px; }
.artist-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%; }
.artist-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent, rgba(0,0,0,.5)); }
.artist-hero__content { position: relative; }
.artist-hero__verified { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.artist-hero__verified svg { width: 24px; height: 24px; color: #4cb3ff; }
.artist-hero__name { font-size: clamp(2.6rem, 8vw, 6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: 16px; }
.artist-hero__listeners { font-size: 15px; font-weight: 500; }
.popular-head { font-size: 24px; font-weight: 700; padding: 16px 32px 8px; }
.artist-about { padding: 0 32px 40px; }
.artist-about__card { position: relative; border-radius: 8px; overflow: hidden; max-width: 820px; height: 320px; cursor: pointer; }
.artist-about__card img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.75); }
.artist-about__inner { position: absolute; inset: 0; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; }
.artist-about__badge { position: absolute; top: 20px; left: 20px; background: #fff; color: #000; font-weight: 800; font-size: 12px; border-radius: 9999px; padding: 4px 10px; }
.artist-about__listeners { font-size: 24px; font-weight: 800; }
.artist-about__bio { color: hsla(0,0%,100%,.85); font-size: 13.5px; margin-top: 6px; max-width: 560px; }

/* ===== queue view ===== */
.queue-wrap { padding: 88px 32px 32px; }
.queue-wrap h1 { font-size: 28px; font-weight: 800; margin-bottom: 20px; }
.queue-section { margin-bottom: 28px; }
.queue-section h2 { font-size: 18px; font-weight: 700; color: var(--text-subdued); margin-bottom: 8px; }
.queue-clear { margin-top: 8px; }

/* ===== library view ===== */
.lib-view { padding: 88px 32px 32px; }
.lib-view h1 { font-size: 28px; font-weight: 800; margin-bottom: 20px; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 24px; margin-top: 16px; }

/* ===== liked view ===== */
.liked-hero { background: linear-gradient(180deg, #5038a4 0%, #3a2c7d 100%); }
.liked-hero .detail-hero__img { background: linear-gradient(135deg, #4a3b9e 0%, #8e66ac 100%); display: flex; align-items: center; justify-content: center; }
.liked-hero .detail-hero__img svg { width: 80px; height: 80px; color: #fff; filter: drop-shadow(0 4px 12px rgba(0,0,0,.4)); }

/* ===== empty states ===== */
.empty-state { padding: 48px 32px; text-align: center; }
.empty-state h2 { font-size: 26px; font-weight: 800; margin-bottom: 10px; }
.empty-state p { color: var(--text-subdued); margin-bottom: 20px; }

/* genre view */
.genre-view { padding: 88px 32px 32px; }
.genre-view h1 { font-size: 42px; font-weight: 800; margin-bottom: 24px; }

/* not found */
.notfound { padding: 120px 32px; text-align: center; }
.notfound h1 { font-size: 42px; margin-bottom: 12px; }
.notfound p { color: var(--text-subdued); margin-bottom: 24px; }
