/* ═══════════════════════════════════════════════
   LyricsFlow — Apple Music "Listen/Search" Page
   Styles for elements that previously had no CSS.
   Matches the Apple Music dark, glassy aesthetic already
   established in upload.css / global.css.
   ═══════════════════════════════════════════════ */

/* ── Search Bar (Apple Music Dynamic Pill Design) ── */
.am-apple-search-bar {
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.am-apple-search-input-wrapper {
  position: relative;
  width: 100%;
  max-width: 580px;
  display: flex;
  align-items: center;
}

.am-apple-search-input-wrapper .am-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.am-apple-search-input-wrapper #catalog-search {
  width: 100%;
  padding: 12px 44px 12px 48px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  color: #fff;
  font-size: 0.96rem;
  font-family: inherit;
  outline: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.am-apple-search-input-wrapper #catalog-search::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.am-apple-search-input-wrapper #catalog-search:focus {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(250, 88, 106, 0.75);
  box-shadow: 0 0 28px rgba(250, 88, 106, 0.35), 0 12px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.am-search-clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.am-search-clear-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.am-search-clear-btn.hidden {
  display: none;
}

/* ── Landing View ── */
.am-landing-view {
  display: flex;
  flex-direction: column;
  gap: 44px;
  animation: amFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.am-landing-view.hidden {
  display: none;
}

/* ── Generic Search Section Header ── */
.am-search-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.am-search-section.hidden {
  display: none;
}

.am-section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.am-search-section-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.am-text-action-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.am-text-action-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.am-empty-msg,
.am-loading-msg {
  padding: 24px 4px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ── Recently Searched ── */
.am-recently-searched-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.am-recent-search-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.am-recent-search-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.am-chip-art {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.am-chip-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  min-width: 0;
}

.am-chip-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.am-chip-sub {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  text-transform: capitalize;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Browse Categories ── */
.am-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.skeleton-category-card {
  height: 110px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
}

.skeleton-category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  animation: amSkeleton 1.5s infinite;
}

/* ── Categories Grid ── */
.am-category-card {
  position: relative;
  height: 110px;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  background: linear-gradient(135deg, #2c2c2e 0%, #1c1c1e 100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.am-category-card:nth-child(4n+1) {
  background: linear-gradient(135deg, #3a3a3c 0%, #1c1c1e 100%);
}

.am-category-card:nth-child(4n+2) {
  background: linear-gradient(135deg, #48484a 0%, #2c2c2e 100%);
}

.am-category-card:nth-child(4n+3) {
  background: linear-gradient(135deg, #2c2c2e 0%, #000000 100%);
}

.am-category-card:nth-child(4n+4) {
  background: linear-gradient(135deg, #58585a 0%, #3a3a3c 100%);
}

.am-category-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.am-category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.72) 100%);
  z-index: 1;
  pointer-events: none;
}

.am-category-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  z-index: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.am-category-card:hover .am-category-bg {
  transform: scale(1.06);
}

.am-category-title {
  position: relative;
  z-index: 2;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* ── Search Results Layout ── */
.am-search-results-layout {
  display: flex;
  flex-direction: column;
  gap: 36px;
  animation: amFadeIn 0.4s ease;
}

.am-search-results-layout.hidden {
  display: none;
}

/* ── Top Results ── */
.am-top-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.am-top-card,
.am-top-result-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.am-top-card:hover,
.am-top-result-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.am-top-card-art {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.am-top-card-art.artist-circle,
.am-top-result-card.is-artist .am-top-card-art {
  border-radius: 50%;
}

.am-top-card-info,
.am-top-card-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
  min-width: 0;
  flex: 1;
}

.am-top-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.am-top-card-subtitle,
.am-top-card-sub {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.am-top-card-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
  margin-top: 3px;
}

.am-top-card-lyrics {
  font-size: 0.75rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* ── Artists Horizontal Scroll & Artist Cards ── */
.am-artists-horizontal-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 4px 4px 18px 4px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.am-artists-horizontal-scroll::-webkit-scrollbar {
  display: none;
}

.am-artist-card,
.am-artist-circle-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  width: 130px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 6px 4px;
  border-radius: 14px;
  scroll-snap-align: start;
}

.am-artist-card:hover,
.am-artist-circle-card:hover {
  transform: translateY(-4px);
}

.am-artist-art,
.am-artist-circle-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: block;
  flex-shrink: 0;
}

.am-artist-name,
.am-artist-circle-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.25;
  margin: 0;
}

.am-artist-sub {
  font-size: 0.76rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  margin-top: -6px;
}

/* ── Songs Flex Grid (rows) ── */
.am-songs-flex-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.am-song-row-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.am-song-row-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.am-song-row-art {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.am-song-row-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

/* ==========================================
   NAVIGATION BLUR & MOBILE LAYOUT
   ========================================== */

@media (max-width: 768px) {

  .am-sidebar,
  .am-header-nav {
    background: rgba(18, 18, 18, 0.65) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .am-artist-header {
    height: 280px;
  }

  .am-artist-name-overlay {
    font-size: 28px;
    bottom: 16px;
    left: 16px;
  }

  .am-main-content {
    padding: 12px;
    padding-bottom: 120px;
  }
}

/* ==========================================
   ARTIST DESCRIPTION & ABOUT SECTION
   ========================================== */

.am-about-section {
  margin-top: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
}

.am-about-text-container {
  position: relative;
  max-height: 4.5em;
  /* Truncated preview height */
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.5em;
}

.am-about-text-container.expanded {
  max-height: 2000px;
}

.am-show-more-btn {
  background: none;
  border: none;
  color: #e5e5e5;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  padding: 0;
  font-size: 14px;
}

.am-artist-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.am-meta-item label {
  display: block;
  font-size: 11px;
  color: #8e8e93;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.am-meta-item span {
  font-size: 14px;
  color: #ffffff;
}

/* ==========================================
   ALBUM FOOTER & METADATA
   ========================================== */

.am-album-footer-info {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: #8e8e93;
  line-height: 1.6;
}

/* ==========================================
   FLOATING BOTTOM MINI PLAYER
   ========================================== */

.am-bottom-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(25, 25, 25, 0.88);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 999;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 769px) {
  .am-bottom-player {
    border-radius: 12px;
    bottom: 12px;
    left: 260px;
    right: 16px;
  }
}

.am-player-track-info {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.am-player-cover {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.am-player-details {
  display: flex;
  flex-direction: column;
}

.am-player-title {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.am-player-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.am-player-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
}

.am-song-row-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.am-song-row-artist {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.am-lyrics-badge {
  display: inline-block;
  margin-top: 3px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  padding: 2px 8px;
  border-radius: 100px;
  width: fit-content;
}

.am-song-more-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  font-size: 1rem;
  letter-spacing: 1px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s ease, background 0.2s ease;
}

.am-song-more-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* ── Albums / Playlists / Videos Horizontal Card Scroll ── */
.am-cards-horizontal-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 18px 4px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.am-cards-horizontal-scroll::-webkit-scrollbar {
  display: none;
}

/* ── Home Page Media Grid (Recommended 90 & Recently Added) ── */
.am-home-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 22px 16px;
}

.am-standard-media-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.am-cards-horizontal-scroll .am-standard-media-card {
  flex-shrink: 0;
  width: 165px;
  scroll-snap-align: start;
}

.am-home-media-grid .am-standard-media-card {
  width: 100%;
}

.am-standard-media-card:hover {
  transform: translateY(-4px);
}

.am-media-card-art {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: block;
}

.am-media-card-art.artist-circle {
  border-radius: 50%;
}

.am-media-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.am-media-card-sub {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* ── 3-Dots Overlay Button on Media Cards ── */
.am-card-3dots-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.am-standard-media-card:hover .am-card-3dots-btn,
.am-card-3dots-btn:focus,
.am-card-3dots-btn:active {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 768px) {
  .am-card-3dots-btn {
    opacity: 0.85;
    transform: scale(1);
  }
}

.am-card-3dots-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ── Badge Tag on Media Cards ── */
.am-media-badge-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ffffff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #000;
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* ── Album Art Container (with animated art support) ── */
.am-album-art-container {
  position: relative;
  width: 250px;
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.am-album-art-container .am-album-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Playlists Page: Hero Actions + Playlist Detail ── */
.am-hero-actions {
  display: flex;
  gap: 12px;
}

.am-playlist-detail {
  margin-top: 30px;
  animation: amFadeIn 0.4s ease;
}

.am-playlist-detail.hidden {
  display: none;
}

.am-back-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.am-back-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .am-top-results-grid {
    grid-template-columns: 1fr;
  }

  .am-categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .am-album-art-container {
    width: 200px;
    height: 200px;
  }
}

/* ══════════════════════════════════════════════════════════
   ARTIST / ALBUM / PLAYLIST DETAIL VIEWS  (Apple Music style)
   Loaded last so it overrides the older upload.css blocks.
   ══════════════════════════════════════════════════════════ */

/* Artist view: full-width, left aligned (fix centering bug) */
.am-artist-view,
.am-playlist-view {
  display: block;
  width: 100%;
}

.am-artist-view #artist-view-content,
.am-playlist-view #playlist-view-content {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Hero banner header for artist / playlist / album detail */
/* ── Artist Side-by-Side Header Layout (matching Album Header) ── */
.am-artist-side-header {
  display: flex !important;
  flex-direction: row !important;
  gap: 32px;
  align-items: flex-end;
  padding: 24px 0;
  margin-bottom: 32px;
  min-height: auto;
  border-radius: 0;
  background: transparent !important;
  overflow: visible;
}

.am-artist-art-container {
  flex-shrink: 0;
}

.am-artist-card-cover {
  width: 250px;
  height: 250px;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65), 0 4px 16px rgba(0, 0, 0, 0.4);
  object-fit: cover;
  display: block;
  background: rgba(255, 255, 255, 0.05);
}

.am-artist-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.am-artist-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.am-artist-meta {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
  font-weight: 500;
}

/* Tablet Layout (Small and next to each other) */
@media (max-width: 900px) {
  .am-artist-side-header {
    gap: 20px;
    padding: 16px 0;
  }

  .am-artist-card-cover {
    width: 170px;
    height: 170px;
    border-radius: 12px;
  }

  .am-artist-title {
    font-size: 1.85rem;
  }
}

@media (max-width: 580px) {
  .am-artist-side-header {
    flex-direction: column !important;
    align-items: flex-start;
    gap: 16px;
  }

  .am-artist-card-cover {
    width: 140px;
    height: 140px;
  }
}

.am-artist-play-btn {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.am-artist-play-btn svg {
  fill: #000;
}

.am-artist-play-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.6);
}

/* Common detail header (album + playlist) */
.am-detail-header {
  align-items: flex-end;
  margin-bottom: 28px;
}

.am-detail-header .am-album-art {
  width: clamp(160px, 20vw, 220px);
  height: clamp(160px, 20vw, 220px);
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.am-detail-meta {
  flex: 1;
  min-width: 0;
}

.am-detail-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 6px;
}

.am-detail-title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 6px 0;
  color: #fff;
}

.am-detail-artist {
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 8px 0;
}

.am-detail-sub {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 12px 0;
}

.am-detail-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
  max-width: 640px;
  margin: 0 0 12px 0;
}

/* Producer / record label "tag" */
.am-producer-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 6px 12px;
  border-radius: 100px;
  width: fit-content;
  margin-top: 4px;
}

/* Track lists (album / playlist) */
.am-tracklist {
  display: flex;
  flex-direction: column;
}

.am-track-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.am-track-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.am-track-info {
  flex: 1;
  min-width: 0;
}

.am-track-sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.am-preview-btn {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.am-preview-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

.am-preview-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.am-explicit-tag {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.am-song-row-num {
  width: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.am-song-row-art {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.am-song-row-duration {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}

/* Album footer (release info + producer label) */
.am-album-footer-info {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
}

.am-footer-date,
.am-footer-copyright {
  margin: 0;
}

.am-footer-copyright {
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive tweaks for detail views */
@media (max-width: 768px) {
  .am-artist-header {
    min-height: 200px;
    padding: 16px;
  }

  .am-detail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .am-detail-header .am-album-art {
    width: 160px;
    height: 160px;
  }

  .am-track-row {
    padding: 12px 10px;
    gap: 10px;
  }

  .am-preview-btn {
    display: none;
  }
}

/* ══════════════════════════════════════════════════
   TOP BAR & PROFILE BUTTON
   ══════════════════════════════════════════════════ */
.am-desktop-top-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 6px 24px 0;
  margin-bottom: -4px;
  position: relative;
  z-index: 100;
}

/* Eliminate empty top gap on artist view */
.am-main:has(#artist-view-container:not(.hidden)) .am-desktop-top-bar,
.am-artist-view-active .am-desktop-top-bar {
  display: none !important;
}

.am-main:has(#artist-view-container:not(.hidden)) .am-content,
.am-artist-view-active .am-content {
  padding-top: 0 !important;
}

.am-top-bar-spacer {
  flex: 1;
}

.am-profile-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.am-profile-btn:hover {
  transform: scale(1.06);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
}

.user-profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

@media (max-width: 900px) {
  .am-desktop-top-bar {
    display: none;
  }
}

/* ══════════════════════════════════════════════════
   SIDEBAR PLAYLISTS SUB-LIST
   ══════════════════════════════════════════════════ */
.am-sidebar-playlists-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 2px 4px 0 16px;
}

.am-sidebar-playlist-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.am-sidebar-playlist-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.am-sidebar-playlist-cover {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
}

.am-sidebar-playlist-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════
   MACOS WINDOW & SETUP ASSISTANT MODAL
   ══════════════════════════════════════════════════ */
.am-macos-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: amFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.am-macos-window {
  background: rgba(28, 28, 30, 0.88);
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  overflow: visible;
  color: #fff;
  animation: amScaleUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.am-macos-titlebar {
  height: 44px;
  background: rgba(40, 40, 40, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  user-select: none;
}

.am-macos-traffic-lights {
  display: flex;
  align-items: center;
  gap: 8px;
}

.am-tl-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: opacity 0.15s;
}

.am-tl-btn:hover {
  opacity: 0.8;
}

.am-tl-red {
  background: #ff5f56;
  border: 1px solid #e0443e;
}

.am-tl-yellow {
  background: #ffbd2e;
  border: 1px solid #dea123;
}

.am-tl-green {
  background: #27c93f;
  border: 1px solid #1aab29;
}

.am-macos-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: -0.01em;
}

.am-macos-content {
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.am-setup-step-icon {
  font-size: 46px;
  margin-bottom: 14px;
}

.am-setup-step-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 8px 0;
  color: #fff;
  letter-spacing: -0.02em;
}

.am-setup-step-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
  margin: 0 0 24px 0;
  max-width: 380px;
}

.am-setup-field {
  width: 100%;
  text-align: left;
  margin-bottom: 20px;
  position: relative;
}

.am-setup-field:has(.aero-dropdown.is-open),
.am-setup-field:has(.aero-dropdown.is-active) {
  z-index: 50;
}

.am-setup-field .aero-dropdown {
  width: 100%;
  display: block !important;
  position: relative;
}

.am-setup-field .aero-dropdown .am-macos-select {
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.am-setup-field .aero-dropdown .aero-menu {
  position: absolute !important;
  top: calc(100% + 4px) !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: #1e1e20 !important;
  backdrop-filter: blur(40px) !important;
  -webkit-backdrop-filter: blur(40px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 12px !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85) !important;
  z-index: 99999999 !important;
  max-height: 220px;
  overflow-y: auto;
}

.am-setup-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

.am-macos-input,
.am-macos-select {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}

.am-macos-select option {
  background: #222;
  color: #fff;
}

.am-macos-input:focus,
.am-macos-select:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
}

.am-macos-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: flex-end;
  margin-top: 10px;
}

.am-macos-btn {
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}

.am-macos-btn.primary {
  background: linear-gradient(135deg, #3a3a3c 0%, #1c1c1e 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.12);
}

.am-macos-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(255, 255, 255, 0.55);
}

.am-macos-btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}

.am-macos-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.am-setup-avatar-preview-wrap {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  padding: 4px;
  border: 2px solid #ffffff;
  margin-bottom: 16px;
}

.am-setup-avatar-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.am-avatar-picker-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 10px;
}

.am-avatar-choice {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 2px;
  transition: transform 0.2s, border-color 0.2s;
}

.am-avatar-choice:hover {
  transform: scale(1.1);
}

.am-avatar-choice.active {
  border-color: #ffffff;
}

.am-avatar-choice img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Profile Settings Window */
.am-profile-settings-window {
  max-width: 440px;
}

.am-profile-edit-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

.am-profile-modal-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 12px;
}

/* Embedded Player Settings Iframe Window */
.am-iframe-settings-window {
  max-width: 900px;
  width: 92vw;
  height: 82vh;
  display: flex;
  flex-direction: column;
}

.am-iframe-container {
  flex: 1;
  width: 100%;
  overflow: hidden;
}

.am-settings-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
}

/* ══════════════════════════════════════════════════
   MOBILE 76% CENTERED 3-DOTS CONTEXT MODAL
   ══════════════════════════════════════════════════ */
.am-mobile-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: amFadeIn 0.25s ease forwards;
}

.am-mobile-modal-box {
  background: rgba(28, 28, 30, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  width: 76%;
  max-width: 420px;
  padding: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.75);
  animation: amScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  color: #fff;
}

.am-mobile-modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
  position: relative;
}

.am-mob-modal-art {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.am-mob-modal-info {
  flex: 1;
  min-width: 0;
}

.am-mob-modal-info h4 {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0 0 3px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.am-mob-modal-info p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.am-mob-modal-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: rgba(255, 255, 255, 0.7);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s, color 0.15s;
}

.am-mob-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.am-mobile-modal-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.am-mob-modal-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: background 0.15s ease;
}

.am-mob-modal-item:hover,
.am-mob-modal-item:active {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.am-mob-modal-item svg {
  width: 20px;
  height: 20px;
  opacity: 0.8;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════
   MOBILE BOTTOM NAVIGATION BAR
/* ══════════════════════════════════════════════════
   MOBILE FLOATING LIQUID GLASS NAVIGATION DOCK
   ══════════════════════════════════════════════════ */
.am-mobile-liquid-dock {
  display: none;
}

@media (max-width: 900px) {
  .am-mobile-liquid-dock {
    display: flex;
    position: fixed;
    bottom: calc(16px + env(safe-area-inset-bottom));
    left: 14px;
    right: 14px;
    z-index: 2500;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  }

  .am-mobile-liquid-dock * {
    pointer-events: auto;
  }

  /* Shared Liquid Glass Pill Styling */
  .am-liquid-pill {
    background: rgba(28, 28, 30, 0.76);
    backdrop-filter: blur(36px) saturate(210%);
    -webkit-backdrop-filter: blur(36px) saturate(210%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    height: 54px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    transition: all 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Full Navigation Pill */
  .am-liquid-nav-pill {
    flex: 1;
    padding: 3px 6px;
    justify-content: space-around;
  }

  .am-mobile-liquid-dock.collapsed .am-liquid-nav-pill {
    display: none;
  }

  .am-mob-nav-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
    height: 100%;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .am-mob-nav-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .am-mob-nav-btn span {
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: -0.01em;
  }

  .am-mob-nav-btn.am-mob-active {
    background: rgba(255, 255, 255, 0.14);
    color: #ff3b5c;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  .am-mob-nav-btn.am-mob-active svg {
    transform: scale(1.08);
  }

  /* Collapsed Mini-Player Pill */
  .am-liquid-collapsed-capsule {
    flex: 1;
    display: none;
    padding: 0 12px 0 6px;
    gap: 10px;
  }

  .am-mobile-liquid-dock.collapsed .am-liquid-collapsed-capsule {
    display: flex;
  }

  .am-liquid-view-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }

  .am-liquid-view-icon-btn svg {
    width: 20px;
    height: 20px;
  }

  .am-liquid-track-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
  }

  .am-liquid-track-art {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
    background: #222;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  }

  .am-liquid-track-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .am-liquid-track-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
  }

  .am-liquid-track-artist {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
  }

  .am-liquid-play-btn {
    background: transparent;
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
  }

  .am-liquid-play-btn svg {
    width: 18px;
    height: 18px;
  }

  /* Standalone Floating Search Button (Pill or Circle) */
  .am-liquid-search-btn {
    width: 54px;
    height: 54px;
    padding: 0;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    cursor: pointer;
  }

  .am-liquid-search-btn svg {
    width: 22px;
    height: 22px;
  }

  .am-liquid-search-btn.am-mob-active {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.3);
  }

  /* Padding at bottom of main content on mobile for the floating dock */
  .am-content {
    padding-bottom: 96px !important;
  }
}

/* ══════════════════════════════════════════════════
   ARTIST VIEW: 4x7 TOP SONGS GRID & TWO ROWS
   ══════════════════════════════════════════════════ */
.am-artist-top-songs-grid {
  display: grid;
  grid-template-rows: repeat(3, 54px);
  grid-auto-flow: column;
  overflow-x: auto;
  gap: 8px 16px;
  padding: 0 4px 6px 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.am-artist-top-songs-grid::-webkit-scrollbar {
  display: none;
}

.am-artist-song-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 290px;
  height: 54px;
  box-sizing: border-box;
  padding: 4px 10px;
  border-radius: 8px;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition: background 0.15s ease;
  scroll-snap-align: start;
}

.am-artist-song-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

.am-artist-card-art,
.am-artist-song-art {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.am-artist-card-meta,
.am-artist-song-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.am-artist-card-title,
.am-artist-song-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.am-artist-card-subline,
.am-artist-song-artist {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  gap: 6px;
}

/* ══════════════════════════════════════════════════
   RECENTLY ADDED BIG GRID
   ══════════════════════════════════════════════════ */
.am-recently-added-big-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 18px;
}

.am-media-badge-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

/* ══════════════════════════════════════════════════
   LIBRARY HUB PILLS
   ══════════════════════════════════════════════════ */
.am-library-hub-pills {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 16px 0;
  -webkit-overflow-scrolling: touch;
}

.am-hub-pill-btn {
  padding: 10px 20px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.am-hub-pill-btn:hover,
.am-hub-pill-btn:active {
  background: #ffffff;
  border-color: #ffffff;
  color: #000;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.25);
}

/* ══════════════════════════════════════════════════
   RTL SUPPORT (ARABIC)
   ══════════════════════════════════════════════════ */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .am-layout {
  grid-template-columns: 215px 1fr;
}

[dir="rtl"] .am-sidebar {
  border-right: none;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 900px) {
  [dir="rtl"] .am-layout {
    grid-template-columns: 1fr;
  }

  [dir="rtl"] .am-sidebar {
    left: auto;
    right: -280px;
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }

  [dir="rtl"] .am-sidebar.open {
    left: auto;
    right: 0;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.8);
  }
}

[dir="rtl"] .am-apple-search-input-wrapper .am-search-icon {
  left: auto;
  right: 16px;
}

[dir="rtl"] .am-apple-search-input-wrapper #catalog-search {
  padding: 13px 46px 13px 44px;
}

[dir="rtl"] .am-search-clear-btn {
  right: auto;
  left: 10px;
}

[dir="rtl"] .am-heading-arrow {
  transform: rotate(0deg) !important;
}

[dir="rtl"] .am-setup-field {
  text-align: right;
}

[dir="rtl"] .am-macos-actions {
  justify-content: flex-start;
}

/* ══════════════════════════════════════════════════
   MOBILE ALBUM VIEW: STACKED COVER & TITLE, BUTTONS SIDE-BY-SIDE
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {

  .am-album-header,
  .am-detail-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 16px !important;
    margin-bottom: 28px !important;
  }

  .am-album-art-container {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: visible !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  .am-album-cover {
    width: min(240px, 65vw) !important;
    height: min(240px, 65vw) !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    margin: 0 auto !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6) !important;
  }

  .am-album-details,
  .am-detail-meta {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .am-album-title,
  .am-detail-title {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    margin: 0 0 6px 0 !important;
    text-align: center !important;
  }

  .am-album-artist,
  .am-detail-artist {
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    margin: 0 0 8px 0 !important;
    text-align: center !important;
  }

  .am-album-meta,
  .am-detail-sub {
    font-size: 0.85rem !important;
    color: rgba(255, 255, 255, 0.55) !important;
    margin: 0 0 14px 0 !important;
    text-align: center !important;
  }

  .am-album-actions,
  .am-album-details>div[style*="display: flex"] {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    margin-top: 8px !important;
    flex-wrap: nowrap !important;
  }

  .am-album-actions button,
  .am-album-details>div[style*="display: flex"] button,
  #album-play-btn,
  #album-add-lib-btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0 12px !important;
    font-size: 0.88rem !important;
    white-space: nowrap !important;
  }
}

/* ══════════════════════════════════════════════════
   ALBUM 30S PREVIEW MINI PLAYER AT BOTTOM (Apple Music Style)
   ══════════════════════════════════════════════════ */
.am-preview-mini-player {
  position: fixed;
  bottom: 22px;
  left: 260px;
  right: 28px;
  max-width: 820px;
  height: 70px;
  margin: 0 auto;
  z-index: 1500;
  background: rgba(26, 26, 32, 0.62) !important;
  backdrop-filter: blur(48px) saturate(210%) !important;
  -webkit-backdrop-filter: blur(48px) saturate(210%) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 9999px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65), inset 0 1.5px 0 rgba(255, 255, 255, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.3) !important;
  overflow: hidden;
  display: flex;
  align-items: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* RTL Layout Adaptation for Mini Player Bar */
[dir="rtl"] .am-preview-mini-player {
  left: 28px !important;
  right: 260px !important;
  direction: ltr !important;
}

[dir="rtl"] .am-preview-inner {
  direction: ltr !important;
}

[dir="rtl"] .am-preview-progress-track {
  direction: ltr !important;
  left: 0 !important;
  right: 0 !important;
}

[dir="rtl"] .am-preview-progress-fill {
  left: 0 !important;
  right: auto !important;
}

[dir="rtl"] .am-preview-text {
  direction: rtl !important;
  text-align: right !important;
}

.am-preview-mini-player.hidden {
  display: none !important;
}

.am-preview-mini-player.visible {
  display: flex !important;
  animation: amFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.am-preview-mini-player.drawer-hidden {
  opacity: 0 !important;
  transform: translateY(24px) scale(0.96) !important;
  pointer-events: none !important;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.am-preview-mini-player:not(.drawer-hidden) {
  transition: opacity 0.4s ease 0.15s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.15s !important;
}

.am-preview-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 16px;
  gap: 16px;
  box-sizing: border-box;
}

/* ── Left Transport Controls ── */
.am-preview-controls-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.am-preview-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
  padding: 0;
}

.am-preview-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.88;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.am-preview-btn:hover img {
  opacity: 1;
}

.am-preview-btn:hover {
  transform: scale3d(1.1, 1.1, 1);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.am-preview-btn:active {
  transform: scale3d(0.92, 0.92, 1);
  background: rgba(255, 255, 255, 0.22);
}

.am-preview-btn.active img {
  opacity: 1;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.7)) brightness(0) invert(1);
}

.am-preview-play-btn {
  width: 44px;
  height: 44px;
  background: transparent !important;
  border: none !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.15s ease, opacity 0.15s ease;
  position: relative;
  box-shadow: none !important;
}

.am-preview-play-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  transform: scale(1.08);
}

.am-preview-play-btn:active {
  transform: scale(0.94);
}

.am-preview-play-btn img,
.am-preview-play-btn svg {
  width: 26px !important;
  height: 26px !important;
  opacity: 1;
  fill: currentColor;
}

/* Authentic AeroUI Spinner inside Preview Play Button */
.am-preview-play-btn .aero-spinner {
  width: 20px;
  height: 20px;
  display: inline-block;
  color: #ffffff;
}

.am-preview-play-btn .aero-spinner svg {
  width: 100%;
  height: 100%;
}

.am-preview-play-btn .aero-spinner rect {
  animation: aero-spinner-fade 1s ease-in-out infinite;
}

.am-preview-play-btn .aero-spinner rect:nth-child(1) {
  animation-delay: 0s;
}

.am-preview-play-btn .aero-spinner rect:nth-child(2) {
  animation-delay: -0.875s;
}

.am-preview-play-btn .aero-spinner rect:nth-child(3) {
  animation-delay: -0.75s;
}

.am-preview-play-btn .aero-spinner rect:nth-child(4) {
  animation-delay: -0.625s;
}

.am-preview-play-btn .aero-spinner rect:nth-child(5) {
  animation-delay: -0.5s;
}

.am-preview-play-btn .aero-spinner rect:nth-child(6) {
  animation-delay: -0.375s;
}

.am-preview-play-btn .aero-spinner rect:nth-child(7) {
  animation-delay: -0.25s;
}

.am-preview-play-btn .aero-spinner rect:nth-child(8) {
  animation-delay: -0.125s;
}

@keyframes aero-spinner-fade {

  0%,
  100% {
    opacity: 0.15;
  }

  12.5% {
    opacity: 0.95;
  }
}

.am-preview-controls-left .aero-player {
  position: relative;
}

.am-preview-controls-left .aero-player .aero-skip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.am-preview-controls-left .aero-player .aero-skip svg {
  width: 18px;
  height: 18px;
}

/* ── Center: Track Center (Single Capsule, No Nested LCD Box) ── */
.am-preview-track-center {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  position: relative;
  padding-bottom: 9px;
  cursor: pointer;
}

.am-preview-artwork-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.am-preview-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Artwork Hover Overlay (Expand Button) */
.player-lcd__artwork-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 5;
}

.am-preview-artwork-wrap:hover .player-lcd__artwork-overlay,
.player-lcd__artwork-overlay:focus {
  opacity: 1;
}

.player-lcd__artwork-overlay svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.am-preview-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  cursor: pointer;
}

.am-preview-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.am-preview-sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.am-preview-more-action-btn {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.8);
}

/* Scrub bar directly under center from cover to dots with draggable handle and elastic feel */
.am-preview-progress-track {
  position: absolute;
  bottom: 0px;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  cursor: pointer;
  transition: height 0.16s cubic-bezier(0.16, 1, 0.3, 1), background 0.16s ease;
  z-index: 10;
  touch-action: none;
}

.am-preview-progress-track::before {
  content: '';
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: 0;
  right: 0;
}

.am-preview-track-center:hover .am-preview-progress-track,
.am-preview-progress-track.scrubbing {
  height: 6px;
  background: rgba(255, 255, 255, 0.42);
}

.am-preview-progress-fill {
  height: 100%;
  width: 0%;
  background: #ffffff;
  border-radius: 999px;
  transition: width 0.08s linear;
  position: relative;
  pointer-events: none;
}

.am-preview-progress-track.scrubbing .am-preview-progress-fill {
  transition: none !important;
}

.am-preview-track-center:hover .am-preview-progress-fill::after,
.am-preview-progress-track.scrubbing .am-preview-progress-fill::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}

/* ── Right Actions ── */
.am-preview-actions-col {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.am-preview-actions-col .am-preview-btn img {
  width: 18px;
  height: 18px;
}

.am-preview-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
  color: #e5e5e5;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.am-preview-close-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  z-index: 20;
  transition: background 0.2s ease, transform 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
}

.am-preview-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.am-preview-close-btn:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.6);
}

.am-track-row.preview-active {
  background: rgba(255, 255, 255, 0.15) !important;
  border-left: 3px solid #ffffff;
}

@media (max-width: 900px) {
  .am-preview-mini-player {
    display: none !important;
  }

  .am-preview-shuffle-btn,
  .am-preview-repeat-btn,
  .am-preview-more-action-btn,
  .am-preview-airplay-btn,
  .am-preview-vol-btn {
    display: none !important;
  }

  .am-preview-inner {
    padding: 0 12px;
    gap: 10px;
  }
}

.am-preview-link {
  color: inherit;
  cursor: pointer;
  transition: color 0.15s ease, text-decoration 0.15s ease;
}

.am-preview-link:hover {
  color: #fa586a;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .am-preview-timeline {
    display: none;
  }

  .am-preview-badge {
    display: none;
  }

  .am-preview-inner {
    padding: 6px 10px;
    gap: 8px;
  }

  .am-preview-btn-row {
    gap: 8px;
  }
}

/* ══════════════════════════════════════════════════
   FULLSCREEN SLIDING PLAYER DRAWER (SLIDE UP FROM DOWN)
   ══════════════════════════════════════════════════ */
.player-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background: #000;
  transform: translateY(100%);
  /* Slide OUT (closing) = expo in-out. Pure slide — no fade. Visibility flips
     discretely after the slide completes so the animation isn't cut off. */
  transition: transform 0.5s cubic-bezier(0.87, 0, 0.13, 1), visibility 0s linear 0.7s;
  will-change: transform;
  overflow: hidden;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  visibility: hidden;
}

.player-drawer.open {
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
  /* Slide IN (opening) = expo out. Pure slide — no fade. */
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
}

.player-drawer-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.player-drawer-down-btn {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100000;
  transition: background 0.2s ease, transform 0.15s ease;
}

.player-drawer-down-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}

.player-drawer-down-btn:active {
  transform: scale(0.95);
}

.player-drawer-down-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ══════════════════════════════════════════════════
   MOBILE ARTIST PROFILE 
   ══════════════════════════════════════════════════ */
.am-artist-mob-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  min-height: 480px;
  height: 64vh;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 20px 24px;
  box-sizing: border-box;
}

.am-artist-mob-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  z-index: 1;
}

.am-artist-mob-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.3) 0%,
      rgba(0, 0, 0, 0.05) 30%,
      rgba(20, 20, 22, 0.7) 70%,
      #0f0f11 100%);
  z-index: 2;
}

.am-artist-mob-top-bar {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.am-artist-mob-top-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.am-artist-mob-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: transform 0.15s ease, background 0.2s ease;
}

.am-artist-mob-nav-btn:active {
  transform: scale(0.92);
}

.am-artist-mob-nav-btn svg {
  width: 20px;
  height: 20px;
}

.am-artist-mob-center-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  margin-bottom: 8px;
}

.am-artist-mob-title {
  font-size: clamp(2rem, 8vw, 2.75rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.am-artist-mob-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.am-artist-circle-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.2s ease;
}

.am-artist-circle-btn:active {
  transform: scale(0.92);
}

.am-artist-circle-btn svg {
  width: 22px;
  height: 22px;
}

.am-artist-circle-btn.favorited {
  background: #fa586a;
  border-color: #fa586a;
  color: #ffffff;
}

.am-artist-play-circle-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.am-artist-play-circle-btn:active {
  transform: scale(0.92);
}

.am-artist-play-circle-btn svg {
  width: 32px;
  height: 32px;
  margin-left: 4px;
  fill: #000000;
}

/* ── Featured Latest Release Card ── */
.am-artist-mob-latest-section {
  padding: 0 4px;
  margin-top: 14px;
  margin-bottom: 24px;
}

.am-artist-latest-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: transparent;
  border-radius: 16px;
  padding: 0;
  cursor: pointer;
  height: 180px;
  box-sizing: border-box;
}

.am-artist-latest-card:hover .am-artist-latest-art {
  transform: scale(1.02);
}

.am-artist-latest-art {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.am-artist-latest-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.am-artist-latest-date {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.am-artist-latest-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin: 2px 0 4px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.am-artist-latest-count {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.am-artist-latest-add-btn {
  width: 32px;
  height: 32px;
  margin-top: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: none;
  color: #ffffff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.15s ease;
}

.am-artist-latest-add-btn:hover {
  background: rgba(255, 255, 255, 0.26);
  transform: scale(1.08);
}

.am-artist-latest-add-btn:active {
  transform: scale(0.92);
}

/* ══════════════════════════════════════════════════
   AUTHENTIC APPLE MUSIC CAROUSEL FLOATING ARROWS
   ══════════════════════════════════════════════════ */
.am-shelf-nav-arrows {
  display: flex;
  align-items: center;
  gap: 8px;
}

.am-shelf-arrow-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(45, 45, 48, 0.82) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  outline: none;
  user-select: none;
}

.am-shelf-arrow-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.am-shelf-arrow-btn:hover {
  background: rgba(65, 65, 70, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  transform: scale(1.08);
}

.am-shelf-arrow-btn:active {
  transform: scale(0.92);
}

/* Floating overlay arrows on top songs carousel */
.am-carousel-container {
  position: relative;
  width: 100%;
}

.am-carousel-floating-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(35, 35, 38, 0.85) !important;
  backdrop-filter: blur(25px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.am-carousel-floating-arrow.prev {
  left: -16px;
}

.am-carousel-floating-arrow.next {
  right: -16px;
}

.am-carousel-floating-arrow:hover {
  background: rgba(55, 55, 60, 0.96) !important;
  transform: translateY(-50%) scale(1.08);
}

.am-carousel-floating-arrow:active {
  transform: translateY(-50%) scale(0.92);
}

.am-artist-top-songs-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ══════════════════════════════════════════════════
   PLAYLIST VIEW (LADY GAGA / AMR DIAB DESIGN)
   ══════════════════════════════════════════════════ */
.am-playlist-mob-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  min-height: 440px;
  height: 58vh;
  max-height: 540px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 20px 22px;
  box-sizing: border-box;
}

.am-playlist-mob-video-bg,
.am-playlist-mob-img-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.am-playlist-mob-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.25) 0%,
      rgba(0, 0, 0, 0.15) 35%,
      rgba(15, 15, 17, 0.8) 75%,
      #0f0f11 100%);
  z-index: 2;
}

.am-playlist-mob-top-bar {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.am-playlist-mob-center {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.am-playlist-mob-title {
  font-size: clamp(1.8rem, 6.5vw, 2.4rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.am-playlist-mob-curator {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fa586a;
}

.am-playlist-mob-meta {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

.am-playlist-mob-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 6px;
}

.am-playlist-circle-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.am-playlist-circle-icon-btn svg {
  width: 20px;
  height: 20px;
}

.am-playlist-circle-icon-btn:active {
  transform: scale(0.92);
}

.am-playlist-pill-play-btn {
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: 100px;
  padding: 0 32px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, background 0.2s ease;
}

.am-playlist-pill-play-btn:active {
  transform: scale(0.94);
}

.am-playlist-pill-play-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.am-playlist-mob-desc {
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  max-width: 90%;
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Desktop Playlist Header (Amr Diab screenshot) ── */
.am-playlist-desktop-header {
  display: flex;
  align-items: flex-end;
  gap: 32px;
  padding: 24px 0 36px;
}

.am-playlist-art-wrap {
  width: 230px;
  height: 230px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
  background: #1c1c1e;
}

.am-playlist-square-video,
.am-playlist-cover-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.am-playlist-desktop-info {
  flex: 1;
}

.am-playlist-desktop-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
}

.am-playlist-desktop-curator {
  font-size: 1.25rem;
  color: #fa586a;
  font-weight: 600;
  margin: 0 0 14px 0;
}

.am-playlist-desktop-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  max-width: 680px;
}

.am-playlist-desktop-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ══════════════════════════════════════════════════
   APPLE MUSIC ARTIST PROFILE HERO & DYNAMICS
   ══════════════════════════════════════════════════ */

/* Hero Container (Wraps either Video Hero or Centered Avatar Hero) */
.am-artist-pc-hero-wrap {
  position: relative;
  width: calc(100% + 2 * clamp(24px, 4vw, 56px));
  margin-left: calc(-1 * clamp(24px, 4vw, 56px));
  margin-right: calc(-1 * clamp(24px, 4vw, 56px));
  margin-top: 0;
  margin-bottom: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  transition: opacity 0.25s ease, filter 0.25s ease;
  will-change: opacity, filter, transform;
}

@media (max-width: 900px) {
  .am-artist-pc-hero-wrap {
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
    margin-top: 0;
    border-radius: 0;
  }
}

/* 1. Hero with Video / Landscape (Taylor Swift style) */
.am-artist-pc-hero-video-banner {
  position: relative;
  width: 100%;
  height: clamp(380px, 48vh, 520px);
  min-height: 380px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 32px;
}

.am-artist-pc-hero-video-banner video,
.am-artist-pc-hero-video-banner .am-artist-pc-hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  z-index: 1;
}

.am-artist-pc-hero-video-banner .am-artist-pc-hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.2) 0%,
      rgba(0, 0, 0, 0.05) 35%,
      rgba(15, 15, 17, 0.6) 75%,
      transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* 2. Hero without Video (Amr Diab style centered circle avatar) */
.am-artist-pc-hero-centered {
  position: relative;
  width: 100%;
  padding: 48px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  overflow: visible !important;
}

.am-artist-pc-hero-centered .am-artist-circle-avatar-wrap {
  position: relative;
  width: 156px;
  height: 156px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12);
  margin-bottom: 16px;
  z-index: 3;
  flex-shrink: 0;
}

.am-artist-pc-hero-centered .am-artist-circle-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.am-artist-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
  z-index: 3;
}

.am-artist-hero-badge svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

/* Artist Identity Name / Logo */
.am-artist-hero-identity {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 18px;
}

.am-artist-logo-img {
  max-width: clamp(240px, 36vw, 420px);
  max-height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.7));
  margin-bottom: 8px;
}

.am-artist-pc-hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.75);
}

/* Action controls: (i) - [Play] - [Star] */
.am-artist-hero-actions {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.am-artist-icon-round-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
}

.am-artist-icon-round-btn:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.25);
}

.am-artist-icon-round-btn:active {
  transform: scale(0.94);
}

.am-artist-icon-round-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.am-artist-icon-round-btn.favorited {
  background: #fa586a;
  border-color: #fa586a;
  color: #ffffff;
}

.am-artist-hero-play-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.am-artist-hero-play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.6);
}

.am-artist-hero-play-btn:active {
  transform: scale(0.94);
}

.am-artist-hero-play-btn svg {
  width: 24px;
  height: 24px;
  fill: #000000;
  margin-left: 3px;
}

/* Sticky Header Bar when Scrolled */
.am-artist-sticky-bar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 36px;
  box-sizing: border-box;
  background: rgba(18, 18, 20, 0.85);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.am-artist-sticky-bar.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.am-artist-sticky-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.am-artist-sticky-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.am-artist-sticky-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

/* ══════════════════════════════════════════════════
   APPLE MUSIC ABOUT ARTIST SHEET MODAL (Taylor Swift screenshot)
   ══════════════════════════════════════════════════ */
.am-about-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: amModalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes amModalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes amSheetPop {
  from {
    transform: scale(0.94);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.am-about-sheet-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 84vh;
  background: #1c1c1e;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  animation: amSheetPop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.am-about-sheet-close-btn {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 15px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.am-about-sheet-close-btn:hover {
  transform: scale(1.08);
  background: rgba(0, 0, 0, 0.65);
}

.am-about-sheet-scrollable {
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
}

.am-about-sheet-scrollable::-webkit-scrollbar {
  width: 6px;
}

.am-about-sheet-scrollable::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.am-about-sheet-hero-art {
  position: relative;
  width: 100%;
  height: 280px;
  flex-shrink: 0;
}

.am-about-sheet-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.am-about-sheet-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.1) 0%,
      rgba(28, 28, 30, 0) 50%,
      #1c1c1e 100%);
}

.am-about-sheet-body {
  padding: 16px 26px 36px;
  color: #ffffff;
}

.am-about-sheet-artist-name {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

.am-about-sheet-meta-block {
  margin-bottom: 12px;
}

.am-about-sheet-meta-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  margin-bottom: 2px;
}

.am-about-sheet-meta-value {
  font-size: 0.96rem;
  font-weight: 700;
  color: #ffffff;
}

.am-about-sheet-genre-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  margin-top: 4px;
}

.am-about-sheet-bio-section {
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
}

.am-about-sheet-bio-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px 0;
}

.am-about-sheet-bio-text {
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.am-artist-sticky-bar.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.am-artist-sticky-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.am-artist-sticky-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.am-artist-sticky-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

/* ══════════════════════════════════════════════════
   APPLE MUSIC ABOUT ARTIST SHEET MODAL (Taylor Swift screenshot)
   ══════════════════════════════════════════════════ */
.am-about-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: amModalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes amModalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes amSheetPop {
  from {
    transform: scale(0.94);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.am-about-sheet-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 84vh;
  background: #1c1c1e;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  animation: amSheetPop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.am-about-sheet-close-btn {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 15px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.am-about-sheet-close-btn:hover {
  transform: scale(1.08);
  background: rgba(0, 0, 0, 0.65);
}

.am-about-sheet-scrollable {
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
}

.am-about-sheet-scrollable::-webkit-scrollbar {
  width: 6px;
}

.am-about-sheet-scrollable::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.am-about-sheet-hero-art {
  position: relative;
  width: 100%;
  height: 280px;
  flex-shrink: 0;
}

.am-about-sheet-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.am-about-sheet-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.1) 0%,
      rgba(28, 28, 30, 0) 50%,
      #1c1c1e 100%);
}

.am-about-sheet-body {
  padding: 16px 26px 36px;
  color: #ffffff;
}

.am-about-sheet-artist-name {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

.am-about-sheet-meta-block {
  margin-bottom: 12px;
}

.am-about-sheet-meta-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  margin-bottom: 2px;
}

.am-about-sheet-meta-value {
  font-size: 0.96rem;
  font-weight: 700;
  color: #ffffff;
}

.am-about-sheet-genre-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  margin-top: 4px;
}

.am-about-sheet-bio-section {
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
}

.am-about-sheet-bio-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px 0;
}

.am-about-sheet-bio-text {
  font-size: 0.94rem;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.82);
}

.am-about-sheet-bio-text p {
  margin: 0 0 14px 0;
}

.am-artist-view-container {
  position: relative !important;
}

.am-artist-ambient-canvas-blur {
  position: absolute;
  top: 0;
  left: -20px;
  right: -20px;
  height: 950px;
  background-size: cover;
  background-position: center 20%;
  filter: blur(85px) brightness(0.24) saturate(1.4);
  transform: scale(1.05);
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 45%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 45%, rgba(0, 0, 0, 0) 100%);
}

.am-artist-ambient-canvas-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 950px;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.1) 0%,
      rgba(10, 10, 12, 0.4) 40%,
      rgba(10, 10, 12, 0.85) 70%,
      #0a0a0c 100%);
  pointer-events: none;
  z-index: 1;
}

.am-artist-pc-hero-centered {
  position: relative !important;
  background-color: transparent !important;
  background-image: none !important;
  overflow: visible !important;
  z-index: 2;
}

.am-artist-canvas-body {
  position: relative;
  z-index: 2;
}

.am-artist-logo-img {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.75)) !important;
  display: block;
}

/* ══════════════════════════════════════════════════
   APPLE MUSIC MOBILE ARTIST VIEW (Strictly Mobile <= 768px)
   ══════════════════════════════════════════════════ */
/* Hide mobile portrait banner by default on desktop/tablet */
.am-artist-mobile-portrait-banner,
.am-artist-mobile-nav-bar {
  display: none;
}

@media (max-width: 768px) {

  /* Hide the desktop centered circle avatar and ambient canvas blur on mobile */
  .am-artist-pc-hero-centered {
    display: none !important;
  }

  .am-artist-ambient-canvas-blur,
  .am-artist-ambient-canvas-gradient {
    display: none !important;
  }

  /* Full-bleed hero wrap on mobile */
  .am-artist-pc-hero-wrap {
    width: calc(100% + 32px) !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
    margin-top: -16px !important;
    position: relative;
    overflow: hidden;
  }

  /* 1. Mobile Navigation Bar (Back, Share, More) */
  .am-artist-mobile-nav-bar {
    display: flex !important;
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    z-index: 20;
    justify-content: space-between;
    align-items: center;
    pointer-events: auto;
  }

  .am-artist-mob-nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .am-artist-mob-nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, background 0.15s ease;
  }

  .am-artist-mob-nav-btn:active {
    transform: scale(0.92);
    background: rgba(0, 0, 0, 0.65);
  }

  /* 2. Full-bleed Portrait Image Banner */
  .am-artist-mobile-portrait-banner {
    display: block !important;
    position: relative;
    width: 100%;
    height: 68vh;
    min-height: 480px;
    max-height: 600px;
    overflow: hidden;
    background: #111113;
  }

  .am-artist-mobile-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
  }

  .am-artist-mobile-portrait-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.05) 25%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(18, 18, 20, 0.8) 80%,
        #121214 100%);
    pointer-events: none;
    z-index: 2;
  }

  /* 3. Identity and Controls over Portrait */
  .am-artist-mobile-portrait-identity {
    position: absolute;
    bottom: 22px;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
  }

  .am-artist-mobile-portrait-identity .am-artist-pc-hero-title {
    font-size: 2.6rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    margin-bottom: 20px !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    line-height: 1.1;
  }

  .am-artist-mobile-portrait-identity .am-artist-logo-img {
    max-width: 280px !important;
    max-height: 80px !important;
    margin-bottom: 18px !important;
  }

  /* Control buttons: Info, Big Play, Star */
  .am-artist-mobile-portrait-identity .am-artist-hero-actions {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 18px;
  }

  .am-artist-mobile-portrait-identity .am-artist-icon-round-btn {
    width: 48px !important;
    height: 48px !important;
    background: rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(255, 255, 255, 0.24) !important;
  }

  .am-artist-mobile-portrait-identity .am-artist-hero-play-btn {
    width: 66px !important;
    height: 66px !important;
    background: #ffffff !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6) !important;
  }

  .am-artist-mobile-portrait-identity .am-artist-hero-play-btn svg {
    width: 28px !important;
    height: 28px !important;
    margin-left: 3px !important;
    fill: #000000 !important;
  }

  /* 4. Latest Release Card on Mobile matching Screenshot */
  .am-artist-latest-card {
    height: auto !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 18px !important;
    padding: 14px !important;
    gap: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
  }

  .am-artist-latest-art {
    width: 80px !important;
    height: 80px !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
  }

  .am-artist-latest-info {
    gap: 2px !important;
  }

  .am-artist-latest-date {
    font-size: 0.76rem !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.55) !important;
  }

  .am-artist-latest-title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 1px 0 !important;
  }

  .am-artist-latest-count {
    font-size: 0.8rem !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-weight: 500 !important;
  }

  .am-artist-latest-add-btn {
    width: 36px !important;
    height: 36px !important;
    margin-top: 0 !important;
    background: rgba(255, 255, 255, 0.14) !important;
    font-size: 1.35rem !important;
  }

  /* Body container adjustment on mobile */
  .am-artist-canvas-body {
    padding: 0 12px !important;
  }
}