@font-face {
  font-family: "SF Pro";
  src: url("fonts/SF-Pro.ttf") format("truetype");
  /* SF-Pro.ttf is a variable font; without a weight range it only registers at
     400, so Windows (which falls back to this bundled file) renders bold text
     wrong. Declaring the range lets the weight axis serve 400/600/700/etc. */
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --site-background: #1f1f1f;
  --sidebar-background: #232324;
  --sidebar-selected-background: rgba(255, 255, 255, 0.11);
  --sidebar-border: #ffffff33;
  --sidebar-shadow: 0 10px 40px #00000033;
  --logo-color: #eeeeee;
  --selected-background: #2f2f30;
  --selected-color: #f05667;
  --item-color: #eeeeee;
  --heading-color: #afafb0;
  --heading-edit-color: #ffffff;
  --album-primary: #eeeeee;
  --album-secondary: #afafb0;
  --album-muted: #8f8f91;
  --modal-background: #232324;
  --modal-overlay: #00000073;
  --explicit-background: #8e8e93;
  --explicit-color: #1f1f1f;
  --artwork-border: #ffffff26;
  --album-circle-button-background: #282828;
  --album-circle-button-border: #eeeeee24;
  --album-circle-button-color: #eeeeee;
  --album-play-button-background: #ffffff;
  --album-play-button-color: #000000;
  --album-page-action-background: #232324;
  --album-page-action-border: #eeeeee40;
  --album-page-action-color: #eeeeee;
  --album-control-button-shadow: 0 0.5px 1px #00000040, 0 7px 18px #00000024;
  --album-action-button-shadow: 0 1px 2px #0000005e, 0 12px 30px #00000033;
  --player-background: #232324;
  --player-border: #ffffff33;
  --player-shadow: 0 10px 40px #00000033;
  --player-primary-color: #eeeeee;
  --player-secondary-color: #ffffff8f;
  --player-muted-color: #ffffff52;
  --player-soft-control-color: #afafb0;
  --player-progress-color: #eeeeee52;
  --track-row-hover-background: #2f2f30;
  --track-title-color: #ffffff;
  --track-meta-color: #ffffff8f;
  --track-more-color: #707070;
  --track-separator-color: #ffffff14;
  --track-explicit-color: #ffffff8f;
  --track-single-marker-color: #ffffff8f;
  --track-unavailable-title-color: #ffffff7a;
  --track-selected-background: #d60017;
  --track-selected-color: #ffffff;
  --album-release-meta-color: #ffffff8f;
  --album-label-heading-color: #ffffff8f;
  --album-metadata-action-color: #f05667;
  /* Frosted-glass material shared by the sidebar, player, and lyrics pane. */
  --frost-background: rgba(38, 38, 40, 0.6);
  --frost-filter: saturate(220%) blur(16px);
  --discovery-background: #2b2b2b;
  --shelf-art-shadow: 0 6px 18px rgba(0, 0, 0, 0.38);
}

:root[data-theme="light"] {
  color-scheme: light;
  --site-background: #ffffff;
  --sidebar-background: #fafafb;
  --sidebar-selected-background: rgba(0, 0, 0, 0.06);
  --sidebar-border: #0000000d;
  --sidebar-shadow: 0 10px 40px #0000001a;
  --logo-color: #1e1e1f;
  --selected-background: #f1f1f2;
  --selected-color: #d60017;
  --item-color: #1e1e1f;
  --heading-color: #6e6e6f;
  --heading-edit-color: #000000;
  --album-primary: #1e1e1f;
  --album-secondary: #6e6e6f;
  --album-muted: #79797d;
  --modal-background: #ffffff;
  --modal-overlay: #00000073;
  --explicit-background: #8e8e93;
  --explicit-color: #ffffff;
  --artwork-border: #00000026;
  --album-circle-button-background: #f0f0f0;
  --album-circle-button-border: rgba(0, 0, 0, 0.12);
  --album-circle-button-color: #1d1d1d;
  --album-play-button-background: #000000;
  --album-play-button-color: #ffffff;
  --album-page-action-background: #ffffffcc;
  --album-page-action-border: rgba(0, 0, 0, 0.12);
  --album-page-action-color: #1e1e1f;
  --album-control-button-shadow: 0 0.5px 1px #00000014, 0 7px 18px #0000000d;
  --album-action-button-shadow: 0 0.5px 1px #0000001a, 0 12px 30px #00000017;
  --player-background: #fafafb;
  --player-border: #0000000d;
  --player-shadow: 0 10px 40px #0000001a;
  --player-primary-color: #1e1e1f;
  --player-secondary-color: #0000008f;
  --player-muted-color: #00000052;
  --player-soft-control-color: #8e8e93;
  --player-progress-color: #00000026;
  --track-row-hover-background: #f0f0f0;
  --track-title-color: #1e1e1f;
  --track-meta-color: #0000008f;
  --track-more-color: #707070;
  --track-separator-color: #d9d9d9;
  --track-explicit-color: #0000008f;
  --track-single-marker-color: #0000008f;
  --track-unavailable-title-color: #0000007a;
  --track-selected-background: #d60017;
  --track-selected-color: #ffffff;
  --album-release-meta-color: #0000008f;
  --album-label-heading-color: #0000008f;
  --album-metadata-action-color: #d60017;
  --frost-background: rgba(245, 245, 247, 0.55);
  --discovery-background: #f2f2f2;
  --shelf-art-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--site-background);
  color: var(--item-color);
  /* "SF Pro" (the bundled font) must come before system-ui, or Windows resolves
     system-ui to Segoe UI and never reaches it. macOS still uses its native San
     Francisco via -apple-system first. */
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter",
    "SF Pro", "SF Pro Icons", system-ui, "Apple Color Emoji", "Helvetica Neue",
    Helvetica, Arial, sans-serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
}

body.is-modal-open {
  overflow: hidden;
}

button {
  font: inherit;
}

.app-shell {
  display: block;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  top: 8.5px;
  left: 8.5px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  width: 243px;
  height: calc(100vh - 17px);
  overflow: hidden;
  background: var(--frost-background);
  border: 0.5px solid var(--sidebar-border);
  border-radius: 20px;
  box-shadow: var(--sidebar-shadow);
  -webkit-backdrop-filter: var(--frost-filter);
  backdrop-filter: var(--frost-filter);
}

.sidebar-logo-wrap {
  flex: 0 0 auto;
  padding: 24.5px 0 24.5px 20px;
}

.apple-music-logo {
  display: block;
  width: 83px;
  height: 23px;
  background: var(--logo-color);
  -webkit-mask: var(--apple-music-logo) center / contain no-repeat;
  mask: var(--apple-music-logo) center / contain no-repeat;
}

.sidebar-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}

.sidebar-nav::-webkit-scrollbar {
  display: none;
}

.sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-heading + .sidebar-group {
  margin-top: 4px;
}

.sidebar-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 219px;
  height: 36px;
  margin-top: 4px;
  margin-left: 8.5px;
  padding: 0 4.5px 4px 11.5px;
  color: var(--heading-color);
  font-size: 12px;
  font-weight: 600;
  line-height: 15px;
  user-select: none;
}

.sidebar-heading-edit {
  color: var(--heading-edit-color);
  opacity: 0;
  transition: opacity 120ms ease;
}

.sidebar-heading:hover .sidebar-heading-edit {
  opacity: 1;
}

.sidebar-item {
  display: flex;
  align-items: center;
  width: 219px;
  height: 36px;
  margin-left: 11.5px;
  padding: 6px 13px 6px 6px;
  gap: 4px;
  overflow: hidden;
  color: var(--item-color);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: default;
  font-size: 14px;
  font-weight: 380;
  line-height: 20.0003px;
  text-align: left;
}

.sidebar-item.is-selected {
  color: var(--selected-color);
  background: var(--sidebar-selected-background);
}

.sidebar-item:focus-visible {
  outline: 2px solid var(--selected-color);
  outline-offset: -2px;
}

.sidebar-icon {
  display: block;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  background: currentColor;
  -webkit-mask: var(--icon-url) center / contain no-repeat;
  mask: var(--icon-url) center / contain no-repeat;
}

.sidebar-item-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-profile {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  min-width: 0;
  padding: 0 12px 20px 20px;
}

.profile-avatar {
  display: grid;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  place-items: center;
  overflow: hidden;
  color: #ffffff;
  background: #77777d;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  object-fit: cover;
}

.profile-name {
  min-width: 0;
  margin-left: 8px;
  overflow: hidden;
  color: var(--item-color);
  font-size: 14px;
  font-weight: 600;
  line-height: 20.0003px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-stage {
  min-width: 0;
}

.album-view {
  min-width: 0;
}

/* Hero + tracklist sit clear of the fixed sidebar (left) and shrink on the right
   when the lyrics panel opens, while the discovery shelves and footer below stay
   full-bleed so they pass under — and get blurred by — the sidebar and panel. */
.album-main {
  padding: 44px calc(40px + var(--lyrics-viewer-width, 0px)) 0 300px;
  transition: padding-right 0.26s ease;
}

.album-hero {
  display: flex;
  align-items: flex-start;
  gap: 34px;
}

.album-artwork-wrap {
  position: relative;
  flex: 0 0 270px;
  width: 270px;
  height: 270px;
  border-radius: 10px;
  isolation: isolate;
  --artwork-shadow-left: rgba(0, 0, 0, 0.18);
  --artwork-shadow-right: rgba(0, 0, 0, 0.18);
  --artwork-shadow-bottom: rgba(0, 0, 0, 0.12);
}

.album-artwork-wrap::before {
  position: absolute;
  inset: -16px;
  z-index: -1;
  content: "";
  background:
    radial-gradient(ellipse 42% 58% at 18% 68%, var(--artwork-shadow-left), transparent 54%),
    radial-gradient(ellipse 40% 56% at 88% 68%, var(--artwork-shadow-right), transparent 52%),
    radial-gradient(ellipse at 52% 86%, var(--artwork-shadow-bottom), transparent 56%);
  border-radius: 22px;
  filter: blur(16px);
  opacity: 0.88;
  transform: translateY(-4px);
}

.album-artwork-wrap::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--artwork-border);
  pointer-events: none;
}

.album-artwork {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  overflow: hidden;
  background: #2f2f30;
  border-radius: inherit;
  box-shadow: 0 10px 22px #0000000d;
}

.album-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 270px;
  padding-top: 43px;
}

.album-title-row {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 6.5px;
}

.album-title,
.album-artist {
  margin: 0;
  overflow: hidden;
  font-size: 26px;
  line-height: 30px;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.album-title {
  color: var(--album-primary);
  font-weight: 700;
  user-select: text;
}

.album-artist {
  color: var(--selected-color);
  font-weight: 400;
  cursor: pointer;
}

.album-artist:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.explicit-badge {
  display: inline-grid;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  place-items: center;
  color: var(--explicit-color);
  background: var(--explicit-background);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.album-meta {
  margin-top: 4px;
  color: var(--album-secondary);
  font-size: 12px;
  font-weight: 600;
  line-height: 15px;
}

.album-description-preview {
  width: 440px;
  max-height: 54px;
  margin-top: 42.8px;
  overflow: hidden;
  color: var(--album-secondary);
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
}

.album-description-more {
  display: inline;
  padding: 0;
  color: var(--album-primary);
  background: transparent;
  border: 0;
  cursor: default;
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
}

.album-description-more[hidden] {
  display: none;
}

.album-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.album-control-button,
.album-page-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  cursor: default;
}

.album-circle-button {
  width: 36px;
  height: 36px;
  color: var(--album-circle-button-color);
  background: var(--album-circle-button-background);
  border: 0.5px solid var(--album-circle-button-border);
  border-radius: 50%;
  box-shadow: var(--album-control-button-shadow);
}

.album-play-button {
  width: 130px;
  height: 36px;
  gap: 6px;
  color: var(--album-play-button-color);
  background: var(--album-play-button-background);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 20.0007px;
}

.album-control-icon,
.album-action-icon {
  display: block;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.album-control-icon-shuffle {
  width: 18px;
  height: 14px;
  -webkit-mask-image: url("svg/album_view/shuffle.svg?v=3");
  mask-image: url("svg/album_view/shuffle.svg?v=3");
}

.album-control-icon-play {
  width: 28px;
  height: 24px;
  margin-right: -4px;
  margin-left: -8px;
  -webkit-mask-image: url("svg/album_view/play.svg?v=3");
  mask-image: url("svg/album_view/play.svg?v=3");
}

.album-control-icon-added {
  width: 23px;
  height: 23px;
  -webkit-mask-image: url("svg/album_view/added_to_library.svg?v=3");
  mask-image: url("svg/album_view/added_to_library.svg?v=3");
}

.album-page-actions {
  position: fixed;
  top: 8px;
  right: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 70px;
  height: 36px;
  padding: 0 5px;
  color: var(--album-page-action-color);
  background: var(--frost-background);
  border: 0.5px solid var(--album-page-action-border);
  border-radius: 999px;
  box-shadow: var(--album-action-button-shadow);
  -webkit-backdrop-filter: var(--frost-filter);
  backdrop-filter: var(--frost-filter);
  transition: right 0.26s ease;
}

.album-page-action {
  width: 26px;
  height: 32px;
  color: inherit;
  background: transparent;
}

.album-action-icon-share {
  width: 18px;
  height: 18px;
  -webkit-mask-image: url("svg/album_view/share.svg?v=3");
  mask-image: url("svg/album_view/share.svg?v=3");
}

.album-action-icon-options {
  width: 31px;
  height: 31px;
  -webkit-mask-image: url("svg/album_view/three_dots_opaque_black.svg?v=3");
  mask-image: url("svg/album_view/three_dots_opaque_black.svg?v=3");
}

/* Full-height bar flush to the right edge — same material and shadow as the
   sidebar, but square-cornered and un-inset (no rounded corners, no padding). */
.lyrics-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 25;
  width: 300px;
  height: 100vh;
  overflow: hidden;
  background: var(--frost-background);
  border-left: 0.5px solid var(--sidebar-border);
  box-shadow: var(--sidebar-shadow);
  -webkit-backdrop-filter: var(--frost-filter);
  backdrop-filter: var(--frost-filter);
}

.lyrics-panel[hidden] {
  display: none;
}

.lyrics-scroll {
  display: flex;
  flex-direction: column;
  gap: 26px;
  /* The panel is flush to the screen, but the lyrics themselves are inset and
     start low so the active line sits where Apple Music anchors it. */
  padding: 34vh 30px 40vh;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.lyrics-scroll::-webkit-scrollbar {
  display: none;
}

.lyrics-line,
.lyrics-empty {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 26px;
}

.lyrics-line {
  color: var(--player-primary-color);
  transition: opacity 0.35s ease, filter 0.35s ease;
}

.lyrics-empty {
  padding: 0 30px;
  color: var(--player-secondary-color);
}

.lyrics-break {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
}

.lyrics-dot {
  width: 13px;
  height: 13px;
  background: var(--player-primary-color);
  border-radius: 50%;
  opacity: 0.32;
  transform: scale(0.74);
  transform-origin: center;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.lyrics-end {
  min-height: 0;
  line-height: 0;
}

.lyrics-credits {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--sidebar-border);
  color: var(--player-secondary-color);
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
}

.lyrics-credits-label {
  color: var(--player-primary-color);
  font-weight: 700;
}

.lyrics-translate-button {
  position: absolute;
  top: 15px;
  right: 20px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: var(--player-secondary-color);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.lyrics-translate-button[hidden] {
  display: none;
}

.lyrics-translate-button:hover,
.lyrics-translate-button[aria-pressed="true"] {
  color: var(--player-primary-color);
  background: var(--track-row-hover-background);
}

.lyrics-translate-icon {
  display: block;
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: url("svg/album_view/translate.svg") center / contain no-repeat;
  mask: url("svg/album_view/translate.svg") center / contain no-repeat;
}

.lyrics-line-text {
  display: block;
}

.lyrics-translation {
  display: block;
  margin-top: 6px;
  color: var(--player-secondary-color);
  font-size: 19px;
  font-weight: 600;
  line-height: 23px;
}

/* When the panel is open, make room for it: shrink the content area and slide
   the floating page actions clear of the bar. */
body.lyrics-open {
  /* Drives .album-main's right padding, so the hero + tracklist shrink and keep
     the durations + ⋯ button clear of the panel. */
  --lyrics-viewer-width: 300px;
}

body.lyrics-open .album-page-actions {
  right: 312px;
}

/* Recenter the player into the space left of the panel so the now-playing cell
   slides clear of it — a smaller nudge than the top-right buttons. */
body.lyrics-open .player-control-bar {
  left: calc(300px + (100vw - 600px) / 2);
  width: min(742px, calc(100vw - 640px));
}

.player-control-bar {
  position: fixed;
  bottom: 20px;
  left: calc(300px + (100vw - 300px) / 2);
  z-index: 30;
  display: grid;
  grid-template-columns: 176px 362px 136px;
  column-gap: 12px;
  align-items: center;
  width: min(742px, calc(100vw - 340px));
  height: 56px;
  padding: 0 22px;
  color: var(--player-primary-color);
  background: var(--frost-background);
  border: 1px solid var(--track-separator-color);
  border-radius: 999px;
  box-shadow: var(--player-shadow);
  transform: translateX(-50%);
  transition: left 0.26s ease, width 0.26s ease;
  -webkit-backdrop-filter: var(--frost-filter);
  backdrop-filter: var(--frost-filter);
}

.player-control-group {
  display: flex;
  align-items: center;
  min-width: 0;
}

.player-control-group-left {
  justify-content: flex-start;
  gap: 7px;
}

.player-control-group-right {
  justify-content: flex-end;
  gap: 11px;
}

.player-button {
  display: inline-grid;
  flex: 0 0 auto;
  width: 26px;
  height: 36px;
  place-items: center;
  padding: 0;
  color: currentColor;
  background: transparent;
  border: 0;
  cursor: default;
}

.player-button.is-muted {
  color: var(--player-muted-color);
}

.player-button.is-secondary {
  color: var(--player-soft-control-color);
}

.player-main-button {
  width: 34px;
}

.player-options-button {
  width: 28px;
  height: 28px;
  margin-left: 12px;
  pointer-events: auto;
}

.player-icon,
.player-apple-logo,
.player-favorite-icon {
  display: block;
  background: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.player-icon-shuffle {
  width: 15px;
  height: 12px;
  -webkit-mask-image: url("svg/album_view/shuffle.svg?v=3");
  mask-image: url("svg/album_view/shuffle.svg?v=3");
}

.player-icon-previous,
.player-icon-next {
  width: 27px;
  height: 24px;
  -webkit-mask-image: url("svg/album_view/previous_next.svg?v=3");
  mask-image: url("svg/album_view/previous_next.svg?v=3");
}

.player-icon-previous {
  transform: scaleX(-1);
}

.player-icon-play {
  width: 34px;
  height: 34px;
  -webkit-mask-image: url("svg/album_view/play.svg?v=3");
  mask-image: url("svg/album_view/play.svg?v=3");
}

.player-icon-pause {
  width: 34px;
  height: 34px;
  -webkit-mask-image: url("svg/album_view/pause.svg?v=3");
  mask-image: url("svg/album_view/pause.svg?v=3");
}

.player-icon-repeat {
  width: 27px;
  height: 24px;
  -webkit-mask-image: url("svg/album_view/repeat.svg?v=3");
  mask-image: url("svg/album_view/repeat.svg?v=3");
}

.player-icon-options {
  width: 28px;
  height: 28px;
  -webkit-mask-image: url("svg/album_view/three_dots_opaque_black.svg?v=3");
  mask-image: url("svg/album_view/three_dots_opaque_black.svg?v=3");
}

.player-icon-lyrics,
.player-icon-queue {
  width: 18px;
  height: 18px;
}

.player-icon-lyrics {
  -webkit-mask-image: url("svg/album_view/lyrics.svg?v=3");
  mask-image: url("svg/album_view/lyrics.svg?v=3");
}

.player-icon-queue {
  -webkit-mask-image: url("svg/album_view/song_queue.svg?v=3");
  mask-image: url("svg/album_view/song_queue.svg?v=3");
}

.player-icon-volume {
  width: 22px;
  height: 22px;
  -webkit-mask-image: url("svg/album_view/volume.svg?v=3");
  mask-image: url("svg/album_view/volume.svg?v=3");
}

.player-now-playing {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 100%;
}

.player-now-playing.has-track {
  position: relative;
  justify-content: flex-start;
}

.player-now-playing-content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  pointer-events: none;
  transition:
    filter 140ms ease,
    opacity 140ms ease;
}

.player-apple-logo {
  width: 20px;
  height: 24px;
  color: var(--player-muted-color);
  -webkit-mask-image: url("svg/album_view/apple_logo_transparent.svg?v=3");
  mask-image: url("svg/album_view/apple_logo_transparent.svg?v=3");
}

.player-artwork {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  overflow: hidden;
  background: var(--selected-background);
  border-radius: 8px;
  object-fit: cover;
}

.player-track-info {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  height: 36px;
  margin-left: 9px;
}

.player-track-title-row {
  display: flex;
  align-items: center;
  min-width: 0;
}

.player-track-title,
.player-track-subtitle {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-track-title {
  color: var(--player-primary-color);
  font-size: 13px;
  font-weight: 700;
  line-height: 16px;
}

.player-track-subtitle {
  color: var(--player-secondary-color);
  font-size: 13px;
  font-weight: 400;
  line-height: 16px;
}

.player-track-subtitle-marquee {
  display: inline-block;
  max-width: none;
  white-space: nowrap;
}

.player-track-subtitle.is-marquee .player-track-subtitle-marquee {
  animation: player-subtitle-marquee 8s ease-in-out infinite;
}

.player-meta-link {
  display: inline;
  padding: 0;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  pointer-events: auto;
}

.player-meta-link:hover,
.player-meta-link:focus-visible {
  color: var(--selected-color);
  text-decoration: underline;
  text-underline-offset: 2px;
  outline: none;
}

.player-favorite-icon {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  margin-left: 4px;
  color: var(--selected-color);
  -webkit-mask-image: url("svg/album_view/star_filled_red.svg?v=3");
  mask-image: url("svg/album_view/star_filled_red.svg?v=3");
}

.player-timeline {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 35px;
  pointer-events: none;
}

.player-progress-times {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  color: var(--player-primary-color);
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
  opacity: 0;
  transition: opacity 120ms ease;
}

.player-progress {
  position: relative;
  flex: 0 0 14px;
  height: 14px;
  overflow: visible;
  cursor: pointer;
  pointer-events: auto;
  touch-action: none;
}

.player-progress-track {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  height: 2px;
  overflow: hidden;
  background: var(--player-progress-color);
  border-radius: 999px;
  transition:
    height 120ms ease,
    background-color 120ms ease;
}

.player-progress-fill {
  display: block;
  position: relative;
  height: 100%;
  background: currentColor;
  border-radius: inherit;
}

.player-now-playing.has-track.is-scrubbing .player-progress-times {
  opacity: 1;
}

.player-now-playing.has-track.is-scrubbing .player-progress-track {
  height: 6px;
  background: var(--player-muted-color);
}

.player-now-playing.has-track.is-scrubbing .player-now-playing-content {
  filter: blur(8px);
  opacity: 0.4;
}

@supports selector(:has(*)) {
  .player-now-playing.has-track:has(.player-progress:hover) .player-now-playing-content {
    filter: blur(8px);
    opacity: 0.4;
  }

  .player-now-playing.has-track:has(.player-progress:hover) .player-progress-times {
    opacity: 1;
  }

  .player-now-playing.has-track:has(.player-progress:hover) .player-progress-track {
    height: 6px;
    background: var(--player-muted-color);
  }
}

@keyframes player-subtitle-marquee {
  0%,
  18% {
    transform: translateX(0);
  }

  68% {
    transform: translateX(calc(var(--player-marquee-distance, 0px) * -1));
  }

  84%,
  100% {
    transform: translateX(0);
  }
}

.album-tracklist {
  width: 100%;
  max-width: 1460px;
  min-width: 0;
  margin-top: 41px;
}

.album-tracklist-list {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.track-row {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto 10px 29px;
  align-items: center;
  width: 100%;
  height: 46px;
  padding: 0 18px 0 0;
  color: var(--track-title-color);
  background: transparent;
  border-radius: 12px;
  cursor: default;
  outline: none;
}

.track-row::before,
.track-row:last-child::after {
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--track-separator-color);
  content: "";
  pointer-events: none;
}

.track-row::before {
  top: 0;
}

.track-row:last-child::after {
  bottom: 0;
}

.track-row:not(.is-unavailable):not(.is-selected):hover {
  background: var(--track-row-hover-background);
}

.track-row.is-selected {
  color: var(--track-selected-color);
  background: var(--track-selected-background);
}

.track-row:focus-visible {
  outline: 2px solid var(--selected-color);
  outline-offset: -2px;
}

.track-row:not(.is-unavailable):hover::before,
.track-row:not(.is-unavailable):hover + .track-row::before,
.track-row:not(.is-unavailable):hover:last-child::after,
.track-row.is-selected::before,
.track-row.is-selected + .track-row::before,
.track-row.is-selected:last-child::after {
  opacity: 0;
}

.track-leading {
  position: relative;
  display: grid;
  width: 40px;
  height: 46px;
  place-items: center;
}

.track-single-marker-box {
  position: absolute;
  top: 0;
  left: -26px;
  display: grid;
  width: 26px;
  height: 46px;
  place-items: center;
  color: var(--track-single-marker-color);
  pointer-events: none;
}

.track-single-marker {
  display: block;
  width: 4px;
  height: 4px;
  background: currentColor;
  -webkit-mask: url("svg/album_view/popular_marker.svg?v=3") center / contain no-repeat;
  mask: url("svg/album_view/popular_marker.svg?v=3") center / contain no-repeat;
}

.track-number,
.track-title,
.track-duration {
  font-size: 13px;
  font-weight: 400;
  line-height: 16px;
}

.track-number,
.track-duration {
  color: var(--track-meta-color);
}

.track-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  white-space: nowrap;
}

.track-title-main {
  display: flex;
  align-items: center;
  max-width: 100%;
  min-width: 0;
}

.track-title-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.track-title-text:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.track-artist-line {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  color: var(--track-meta-color);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-row.is-unavailable .track-title {
  color: var(--track-unavailable-title-color);
}

.track-row.is-unavailable .track-title-text {
  cursor: default;
}

.track-row.is-unavailable .track-title-text:hover {
  text-decoration: none;
}

.track-row.is-unavailable .track-artist-line {
  color: var(--track-unavailable-title-color);
}

.track-row.is-unavailable .track-hover-play {
  display: none;
}

.track-row.is-unavailable:hover .track-number {
  opacity: 1;
}

.track-explicit-icon {
  display: block;
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-left: 4px;
  color: var(--track-explicit-color);
  background: currentColor;
  transform: translateY(1px);
  -webkit-mask: url("svg/album_view/explicit.svg?v=3") center / contain no-repeat;
  mask: url("svg/album_view/explicit.svg?v=3") center / contain no-repeat;
}

.track-duration {
  color: var(--track-meta-color);
  text-align: right;
  white-space: nowrap;
}

.track-hover-play,
.track-more-icon {
  display: block;
  background: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.track-hover-play {
  position: absolute;
  width: 21px;
  height: 18px;
  color: var(--track-selected-background);
  opacity: 0;
  -webkit-mask-image: url("svg/album_view/play.svg?v=3");
  mask-image: url("svg/album_view/play.svg?v=3");
}

.track-row:not(.is-unavailable):not(.is-selected):hover .track-number {
  opacity: 0;
}

.track-row:not(.is-unavailable):not(.is-selected):hover .track-hover-play {
  opacity: 1;
}

.track-more-button {
  display: inline-grid;
  width: 29px;
  height: 29px;
  place-items: center;
  padding: 0;
  color: var(--track-more-color);
  background: transparent;
  border: 0;
  cursor: default;
}

.track-more-icon {
  width: 29px;
  height: 29px;
  -webkit-mask-image: url("svg/album_view/three_dots_opaque_black.svg?v=3");
  mask-image: url("svg/album_view/three_dots_opaque_black.svg?v=3");
}

.track-row.is-selected .track-number,
.track-row.is-selected .track-duration,
.track-row.is-selected .track-more-button,
.track-row.is-selected .track-artist-line,
.track-row.is-selected .track-explicit-icon {
  color: currentColor;
}

.track-row.is-selected .track-hover-play {
  color: currentColor;
}

.track-more-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -5px;
  border-radius: 50%;
}

.album-release-meta {
  margin-top: 34px;
  padding-left: 12px;
  color: var(--album-release-meta-color);
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
}

.album-label-links {
  margin-top: 21px;
  padding-left: 12px;
}

.album-label-heading {
  color: var(--album-label-heading-color);
  font-size: 11px;
  font-weight: 600;
  line-height: 13px;
  text-transform: uppercase;
}

.album-metadata-action {
  display: flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin-top: 5px;
  padding: 0;
  color: var(--album-metadata-action-color);
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 15px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.album-metadata-action + .album-metadata-action {
  margin-top: 12px;
}

.album-metadata-action-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.album-metadata-action:hover .album-metadata-action-text {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.album-metadata-action-itunes:hover .album-metadata-action-text {
  text-decoration: none;
}

.album-metadata-action-icon {
  display: block;
  flex: 0 0 auto;
  height: 9px;
  margin-left: 5px;
  background: currentColor;
  transform: translateY(1px);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.album-metadata-action-icon-label {
  width: 5px;
  -webkit-mask-image: url("svg/album_view/record_label.svg?v=3");
  mask-image: url("svg/album_view/record_label.svg?v=3");
}

.album-metadata-action-icon-itunes {
  width: 9px;
  -webkit-mask-image: url("svg/album_view/also_available_on_itunes.svg?v=3");
  mask-image: url("svg/album_view/also_available_on_itunes.svg?v=3");
}

.album-control-button:focus-visible,
.album-page-action:focus-visible,
.album-metadata-action:focus-visible {
  outline: 2px solid var(--selected-color);
  outline-offset: 2px;
}

/* Discovery shelves — full-bleed so they pass under the sidebar/lyrics pane. */
.album-discovery {
  display: flex;
  flex-direction: column;
  gap: 45px;
  margin-top: 53px;
  padding: 33px 0 35px;
  background: var(--discovery-background);
  color: var(--album-primary);
}

.album-shelf {
  min-width: 0;
}

.album-shelf-heading {
  margin: 0;
  padding-left: 300px;
  font-size: 17px;
  font-weight: 700;
  line-height: 22px;
}

.album-shelf-row {
  display: flex;
  gap: 20px;
  margin-top: 14px;
  padding: 0 40px 0 300px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.album-shelf-row::-webkit-scrollbar {
  display: none;
}

.shelf-item {
  flex: 0 0 auto;
  width: 226px;
}

.shelf-item.is-video {
  width: 350px;
}

.shelf-item.is-release-link {
  cursor: pointer;
}

.shelf-art {
  position: relative;
  width: 226px;
  height: 226px;
  overflow: hidden;
  background: var(--selected-background);
  border-radius: 6px;
  box-shadow: var(--shelf-art-shadow);
  cursor: pointer;
}

/* Internal border sits on top of the image so it isn't painted under it. */
.shelf-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--artwork-border);
  pointer-events: none;
}

.shelf-item.is-video .shelf-art {
  width: 350px;
  height: 197px;
}

.shelf-image {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shelf-art-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.16s ease;
  pointer-events: none;
}

.shelf-art-actions {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.16s ease;
}

/* Hovering anywhere on the item (artwork or the meta below) lifts the scrim and
   reveals the glass play / options buttons. */
.shelf-item:hover .shelf-art-scrim,
.shelf-item:hover .shelf-art-actions {
  opacity: 1;
}

.shelf-art-button {
  position: absolute;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  color: #ffffff;
  background: var(--frost-background);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  -webkit-backdrop-filter: var(--frost-filter);
  backdrop-filter: var(--frost-filter);
}

.shelf-art-button:first-child {
  left: 10px;
}

.shelf-art-button:last-child {
  right: 10px;
}

.shelf-art-icon {
  display: block;
  background: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.shelf-art-icon-play {
  width: 14px;
  height: 16px;
  -webkit-mask-image: url("svg/album_view/play.svg");
  mask-image: url("svg/album_view/play.svg");
}

.shelf-art-icon-options {
  width: 18px;
  height: 18px;
  -webkit-mask-image: url("svg/album_view/three_dots_opaque_black.svg");
  mask-image: url("svg/album_view/three_dots_opaque_black.svg");
}

.shelf-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4.5px;
}

.shelf-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--album-primary);
  font-size: 12px;
  font-weight: 400;
  line-height: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shelf-explicit {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  color: var(--explicit-color);
  font-size: 8px;
  font-weight: 600;
  line-height: 1;
  background: var(--explicit-background);
  border-radius: 3px;
}

.shelf-subtitle {
  margin-top: 2px;
  overflow: hidden;
  color: var(--album-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shelf-title,
.shelf-subtitle {
  cursor: pointer;
}

/* Separate (Music Videos, Featured On): each line underlines on its own hover. */
.shelf-title:hover,
.shelf-subtitle:hover {
  text-decoration: underline;
}

/* Linked (album-type shelves): hovering either the title or the subtitle
   underlines both together. */
.shelf-item.is-linked .shelf-meta:hover .shelf-title,
.shelf-item.is-linked .shelf-meta:hover .shelf-subtitle {
  text-decoration: underline;
}

.album-footer {
  /* Extra bottom space so the fixed player bar never overlaps the links. */
  padding: 28px 40px 124px 300px;
  background: var(--site-background);
  color: var(--album-release-meta-color);
  font-size: 12px;
  line-height: 16px;
}

.album-footer-brand {
  color: var(--album-primary);
  font-weight: 600;
}

.album-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.album-footer-link {
  padding: 0;
  color: var(--album-release-meta-color);
  font: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.album-footer-link:hover {
  color: var(--album-primary);
  text-decoration: underline;
}

.album-footer-sep {
  color: var(--album-muted);
}

.album-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--modal-overlay);
}

.album-modal[hidden] {
  display: none;
}

.album-modal-panel {
  position: relative;
  width: 691px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  color: var(--album-primary);
  background: var(--modal-background);
  border-radius: 12px;
  box-shadow: 0 22px 70px #00000066;
}

.album-modal-close {
  position: absolute;
  top: 13px;
  left: 14px;
  display: block;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  color: var(--album-secondary);
  background: transparent;
  border: 0;
  cursor: default;
  font-size: 36px;
  font-weight: 200;
  line-height: 44px;
}

.album-modal-close:focus-visible {
  outline: 2px solid #ffffff40;
  outline-offset: -6px;
}

.album-modal-content {
  padding: 79px 30px 40px;
}

.album-modal-title {
  margin: 0;
  color: var(--album-primary);
  font-size: 26px;
  font-weight: 700;
  line-height: 30px;
}

.album-modal-meta {
  margin-top: 2px;
  color: var(--album-secondary);
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
}

.album-modal-description {
  margin-top: 28px;
  color: var(--album-primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 23px;
}

.album-modal-description p {
  margin: 0;
}

.album-modal-description p + p {
  margin-top: 18px;
}

@media (max-width: 900px) {
  .content-stage {
    padding-right: 20px;
  }

  .album-hero {
    flex-direction: column;
  }

  .album-info {
    padding-top: 0;
  }

  .album-description-preview {
    width: min(440px, calc(100vw - 40px));
  }

  .album-tracklist {
    width: min(100%, calc(100vw - 40px));
  }

  .player-control-bar {
    left: 50%;
    grid-template-columns: 138px minmax(0, 1fr) 104px;
    width: calc(100vw - 40px);
    padding: 0 18px;
  }

  .player-control-group-left {
    gap: 4px;
  }

  .player-control-group-right {
    gap: 6px;
  }
}
