/* Aplikasi Apple Music */

.am {
  --amred: #fa2d48;
  background: var(--bg);
}
.am-red {
  color: var(--amred);
}
.am-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 52px 16px 6px;
  background: var(--bg);
}
.am-head h1 {
  margin: 0;
  font-size: 34px;
}
.am-head .av {
  width: 34px;
  height: 34px;
}
.am-edit {
  color: var(--amred);
  font-size: 17px;
}
.am-sec {
  margin: 18px 16px 10px;
  font-size: 21px;
}

/* Kartu & baris lagu */
.am-hrow {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 16px 4px;
  scrollbar-width: none;
}
.am-hrow::-webkit-scrollbar {
  display: none;
}
.am-card {
  flex: none;
  width: 160px;
  padding: 0;
  text-align: left;
}
.am-card img {
  width: 160px;
  height: 160px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.am-card b {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
}
.am-card small {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--sub);
  font-size: 13px;
}
.am-top {
  flex: none;
  width: 260px;
  padding: 0;
  text-align: left;
}
.am-top > small {
  display: block;
  margin-bottom: 6px;
  color: var(--sub);
  font-size: 13px;
}
.am-top > span {
  position: relative;
  display: block;
  height: 330px;
  border-radius: 12px;
  overflow: hidden;
}
.am-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.am-top em {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 50px 14px 14px;
  font-style: normal;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}
.am-top em b {
  display: block;
  font-size: 19px;
}
.am-top em i {
  font-style: normal;
  font-size: 13px;
  opacity: 0.85;
}
.am-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px;
  cursor: pointer;
}
.am-row img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  flex: none;
}
.am-row > div {
  flex: 1;
  min-width: 0;
  padding: 4px 0 8px;
  border-bottom: 0.5px solid var(--sep);
}
.am-row b,
.am-row small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.am-row b {
  font-size: 16px;
  font-weight: 400;
}
.am-row small {
  color: var(--sub);
  font-size: 13px;
}
.am-row.now b {
  color: var(--amred);
}
.am-dots {
  color: var(--text);
}
.am-dots svg {
  width: 18px;
  height: 18px;
}

/* Baru, Radio, Perpustakaan, Cari */
.am-hero {
  display: block;
  width: calc(100% - 32px);
  margin: 6px 16px 0;
  padding: 0;
  text-align: left;
}
.am-hero small {
  color: var(--sub);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
}
.am-hero b {
  display: block;
  font-size: 21px;
  font-weight: 500;
}
.am-hero i {
  display: block;
  font-style: normal;
  color: var(--sub);
  margin-bottom: 8px;
}
.am-hero img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  object-fit: cover;
}
.am-radio {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: calc(100% - 32px);
  margin: 10px 16px;
  padding: 0;
  text-align: left;
}
.am-radio img {
  width: 90px;
  height: 90px;
  border-radius: 10px;
  object-fit: cover;
}
.am-radio b {
  display: block;
  font-size: 17px;
}
.am-radio small {
  color: var(--sub);
}
.am-radio.big {
  display: block;
}
.am-radio.big img {
  width: 100%;
  height: 220px;
}
.am-radio.big span {
  position: absolute;
  left: 14px;
  bottom: 12px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.am-radio.big small {
  color: #fff;
}
.am-lib {
  margin: 0 16px;
}
.am-li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 0.5px solid var(--sep);
  font-size: 20px;
  cursor: pointer;
}
.am-li span {
  width: 26px;
  color: var(--amred);
  display: grid;
  place-items: center;
}
.am-li span svg {
  width: 24px;
  height: 24px;
}
.am-li b {
  flex: 1;
  font-weight: 400;
}
.am-li > svg {
  width: 14px;
  height: 14px;
  color: #c4c4c7;
}
.am-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 12px;
  padding: 0 16px 16px;
}
.am-card.grid,
.am-card.grid img {
  width: 100%;
  height: auto;
}
.am-card.grid img {
  aspect-ratio: 1;
}
.am-search {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  margin: 4px 16px 4px;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(118, 118, 128, 0.12);
  color: var(--sub);
  font-size: 16px;
}
.am-search svg {
  width: 17px;
  height: 17px;
}
.am-cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px 16px;
}
.am-cats button {
  height: 100px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  text-align: left;
  display: flex;
  align-items: flex-end;
}

/* Halaman playlist */
.am-lhead {
  flex: none;
  display: flex;
  justify-content: space-between;
  padding: 50px 12px 6px;
  background: var(--bg);
}
.am-lhead button {
  color: var(--amred);
}
.am-lhead svg {
  width: 24px;
  height: 24px;
  display: block;
}
.am-lhead span {
  display: flex;
  gap: 18px;
}
.am-lhero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 16px 14px;
  text-align: center;
}
.am-lhero img {
  width: 230px;
  height: 230px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
  margin-bottom: 14px;
}
.am-lhero h2 {
  margin: 0;
  font-size: 21px;
}
.am-lhero > b {
  color: var(--amred);
  font-weight: 400;
  font-size: 19px;
}
.am-lbtns {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-top: 14px;
}
.am-lbtns button {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  height: 46px;
  border-radius: 10px;
  background: var(--fill);
  color: var(--amred);
  font-size: 16px;
  font-weight: 600;
}
.am-lbtns svg {
  width: 18px;
  height: 18px;
}
.am-total {
  margin: 12px 16px 20px;
  color: var(--sub);
  font-size: 14px;
}

/* Mini player */
.am-mini {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 8px -1px;
  padding: 8px 14px 8px 8px;
  border-radius: 12px 12px 0 0;
  background: var(--bar);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}
.am-mini img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.am-mini b {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.am-mini svg {
  width: 26px;
  height: 26px;
  display: block;
}
.am-tabs button.on {
  color: var(--amred);
}

/* Pemutar layar penuh */
.am-full {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 60px 26px 30px;
  color: #fff;
  overflow: hidden;
}
.am-fbg {
  position: absolute;
  inset: -60px;
  width: calc(100% + 120px);
  height: calc(100% + 120px);
  object-fit: cover;
  filter: blur(50px) brightness(0.5) saturate(1.4);
  z-index: 0;
}
.am-full > *:not(.am-fbg) {
  position: relative;
  z-index: 1;
}
.am-grab {
  align-self: center;
  width: 40px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.45);
  margin-bottom: 26px;
  cursor: pointer;
}
.am-fart {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.4s;
}
.am-fart.paused {
  transform: scale(0.82);
}
.am-lyrics {
  flex: 1;
  overflow-y: auto;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.35;
  scrollbar-width: none;
}
.am-ftitle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}
.am-ftitle div {
  flex: 1;
  min-width: 0;
}
.am-ftitle b {
  display: block;
  font-size: 20px;
}
.am-ftitle small {
  font-size: 18px;
  opacity: 0.7;
}
.am-ftitle button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  display: grid;
  place-items: center;
}
.am-ftitle svg {
  width: 16px;
  height: 16px;
}
.am-seek {
  margin-top: 22px;
}
.am-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}
.am-bar i {
  display: block;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
}
.am-seek span {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  opacity: 0.6;
}
.am-controls {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 18px 0;
}
.am-controls button {
  color: #fff;
}
.am-controls svg {
  width: 38px;
  height: 38px;
  display: block;
}
.am-pp svg {
  width: 52px;
  height: 52px;
}
.am-vol {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.8;
}
.am-vol .am-bar {
  flex: 1;
}
.am-vol svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.am-fbtns {
  display: flex;
  justify-content: space-around;
  margin-top: auto;
  padding-top: 20px;
}
.am-fbtns button {
  color: rgba(255, 255, 255, 0.7);
  padding: 6px;
  border-radius: 8px;
}
.am-fbtns button.on {
  background: rgba(255, 255, 255, 0.85);
  color: #444;
}
.am-fbtns svg {
  width: 22px;
  height: 22px;
  display: block;
}
