/* ═══════════════════════════════════════════════
   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: 11px 44px 11px 48px;
  background: rgba(26, 26, 26, 0.85);
  border: 1.5px solid rgba(225, 45, 75, 0.55);
  border-radius: 9999px;
  color: #fff;
  font-size: 0.96rem;
  font-family: inherit;
  outline: none;
  box-shadow: 0 0 16px rgba(225, 45, 75, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  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.42);
}

.am-apple-search-input-wrapper #catalog-search:focus {
  background: rgba(32, 32, 32, 0.95);
  border-color: #fa586a;
  box-shadow: 0 0 24px rgba(250, 88, 106, 0.38), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.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: 16px 28px 0;
  margin-bottom: -10px;
  position: relative;
  z-index: 100;
}

.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;
}

.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
   ══════════════════════════════════════════════════ */
.am-mobile-bottom-nav {
  display: none;
}

@media (max-width: 900px) {
  .am-mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: rgba(18, 18, 20, 0.88);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 2000;
    align-items: center;
    justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .am-mob-nav-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    height: 100%;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.15s ease;
  }

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

  .am-mob-nav-btn span {
    font-size: 0.72rem;
    font-weight: 600;
  }

  .am-mob-nav-btn.am-mob-active {
    color: #ffffff;
  }

  /* Padding at bottom of main content on mobile for the fixed nav */
  .am-content {
    padding-bottom: 90px !important;
  }
}

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

.am-artist-top-songs-grid::-webkit-scrollbar {
  height: 6px;
}

.am-artist-top-songs-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.am-artist-song-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 320px;
  height: 56px;
  box-sizing: border-box;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  scroll-snap-align: start;
}

.am-artist-song-card:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.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: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }

  .am-album-cover {
    width: min(240px, 65vw) !important;
    height: min(240px, 65vw) !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
   ══════════════════════════════════════════════════ */
.am-preview-mini-player {
  position: fixed;
  bottom: 20px;
  left: 260px;
  right: 24px;
  max-width: 900px;
  margin: 0 auto;
  z-index: 1500;
  background: rgba(22, 22, 26, 0.9);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.am-preview-mini-player.visible {
  display: block !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-progress-container {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  position: relative;
  transition: height 0.2s ease;
}

.am-preview-progress-container:hover {
  height: 5px;
}

.am-preview-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ffffff, #d1d1d6);
  border-radius: 0 2px 2px 0;
  transition: width 0.1s linear;
}

.am-preview-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  gap: 16px;
}

.am-preview-info-col {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
  max-width: 45%;
}

.am-preview-art {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
}

.am-preview-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

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

.am-preview-sub {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
  width: 100%;
}

.am-preview-controls-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 200px;
  max-width: 460px;
}

.am-preview-btn-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.am-preview-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.am-preview-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.am-preview-btn:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

.am-preview-play-btn {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.am-preview-play-btn img {
  width: 16px;
  height: 16px;
}

/* ── Mini-player transport: AeroUI player-button + skip-label (same as player.html) ──
   Frame is an invisible touch target; only the vector icon shows. */
.am-preview-btn.aero-player {
  --player-size: 36px;
  --player-icon: 18px;
  --player-label: #fff;
  padding: 0;
  background: transparent;
  border: none;
  /* AeroUI spring owns transform — don't fight it with CSS hover scale */
  transition: background 0.15s ease, opacity 0.15s ease;
}

.am-preview-btn.aero-player:hover {
  transform: none;
  opacity: 1;
}

.am-preview-btn.am-preview-play-btn.aero-player {
  --player-size: 38px;
  --player-icon: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.am-preview-btn.am-preview-play-btn.aero-player:hover {
  background: rgba(255, 255, 255, 0.2);
}

.am-preview-btn.aero-player .aero-skip {
  --skip-size: 22px;
  color: #fff;
}

.am-preview-btn.aero-player .aero-spinner {
  width: 18px;
  height: 18px;
}

/* ── Mini-player progress: AeroUI top strip + elastic scrubber (same as player.html) ── */
.am-preview-progress-aero.aero-progress {
  height: 3px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.am-preview-progress-aero .aero-progress-fill {
  background: linear-gradient(90deg, #ffffff, #d1d1d6);
  border-radius: 0 2px 2px 0;
  transition: width 0.1s linear;
}

.am-preview-timeline.am-preview-elastic {
  width: 100%;
  min-width: 0;
}

.am-preview-timeline .aero-elastic {
  --elastic-inactive-h: 6px;
  --elastic-active-h: 10px;
  --elastic-growth: 0px;
  --elastic-stretch: 0px;
  --elastic-narrow: 0px;
  --elastic-track: rgba(255, 255, 255, 0.15);
  --elastic-fill-idle: rgba(255, 255, 255, 0.4);
  --elastic-fill-active: rgba(255, 255, 255, 0.4);
  width: 100%;
  gap: 8px;
}

.am-preview-timeline .aero-elastic-hit {
  min-height: 28px;
}

.am-preview-timeline .aero-elastic-label.progress-time {
  transform: none;
}

.am-preview-timeline .aero-elastic--active {
  --elastic-fill-active: #fff;
}

.am-preview-timeline {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.am-preview-time {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
}

.am-preview-seek-slider {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.am-preview-seek-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.am-preview-actions-col {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.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 {
    left: 10px;
    right: 10px;
    bottom: 70px;
    max-width: none;
    border-radius: 14px;
    z-index: 1950;
  }
}

@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: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

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

.am-artist-latest-art {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

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

.am-artist-latest-date {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  margin-bottom: 3px;
}

.am-artist-latest-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

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

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

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

.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;
}


