/* Works / Explore: records first, the real room between them. Load after artist-shell.css. */
#artistShell.ys-shell { --ys-player-limit: calc(62px + var(--ys-player-error-space)); --ys-player-error-space: 0px; --ys-player-space: 0px; --ys-works-muted: #dfcfd2; }
#artistShell.ys-shell[data-page="works"] {
  --ys-works-paper: #e7d89c;
  --ys-works-muted: #dfcfd2;
  --ys-works-ink: #fff;
  --ys-works-panel: rgba(25, 19, 21, .82);

  color: var(--ys-works-ink);
  background: #241d1e;
}
#artistShell.ys-shell:has(.ys-music-player:not([hidden])) {
  --ys-player-space: calc(var(--ys-player-limit) + 24px + env(safe-area-inset-bottom, 0px));
}
#artistShell.ys-shell:has(.ys-music-player:not([hidden]) .ys-player-message:not([hidden])) {
  --ys-player-error-space: 42px;
}
#artistShell.ys-shell:has(.ys-music-player:not([hidden])) .ys-content-inner { padding-bottom: calc(64px + var(--ys-player-space)); }
/* The shared player survives Works -> Home; content padding cannot move this absolute dock. */
#artistShell.ys-shell[data-page="home"]:has(.ys-music-player:not([hidden])) .ys-home-dock {
  --ys-home-player-bottom: max(16px, var(--ys-player-space));
  bottom: var(--ys-home-player-bottom);
  max-height: max(0px, calc(100dvh - 64px - env(safe-area-inset-top, 0px) - var(--ys-home-player-bottom)));
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  pointer-events: auto;
}
@media (max-width: 1023px) {
  #artistShell.ys-shell[data-page="home"]:has(.ys-music-player:not([hidden])) .ys-home-dock {
    --ys-home-player-bottom: max(72px, calc(56px + env(safe-area-inset-bottom, 0px)), var(--ys-player-space));
  }
}
/* Do not give these ancestors a transform or stacking context: the fixed room belongs below all content. */
#artistShell.ys-shell[data-page="works"] .ys-content {
  inset: calc(64px + env(safe-area-inset-top, 0px)) 0 0;
  background: transparent;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-color: #c6a4b1 transparent;
  scroll-padding-block: 24px calc(24px + var(--ys-player-space));
}
#artistShell.ys-shell[data-page="works"] .ys-content > .ys-page-bar { display: none; }
#artistShell.ys-shell[data-page="works"] .ys-content-inner {
  width: min(1060px, calc(100% - 48px));
  margin-inline: auto;
  padding: 24px 0 calc(64px + var(--ys-player-space));
}
#artistShell.ys-shell[data-page="works"] section.ys-page[data-page="works"] { max-width: none; }
#artistShell.ys-shell[data-page="works"] section.ys-page[data-page="works"] > .ys-eyebrow { display: none; }
#artistShell.ys-shell[data-page="works"] section.ys-page[data-page="works"] > .ys-page-title {
  width: fit-content;
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 1.4;
  text-shadow: 0 2px 6px #21171b;
}
#artistShell.ys-shell[data-page="works"] .ys-nav-wrap { visibility: visible; }
#artistShell.ys-shell[data-page="works"] .ys-works-backdrop {
  position: fixed; inset: 0; z-index: -1;
  overflow: hidden; background: #241d1e; pointer-events: none;
}
#artistShell.ys-shell[data-page="works"] .ys-works-video {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
}
#artistShell.ys-shell[data-page="works"] .ys-works-backdrop::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 10, 12, .40), rgba(15, 10, 12, .08) 24%, rgba(15, 10, 12, .13) 78%, rgba(15, 10, 12, .32));
}
#artistShell.ys-shell[data-page="works"] .ys-music-root { min-width: 0; }
#artistShell.ys-shell[data-page="works"] .ys-music-heading {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 0 0 28px;
}
#artistShell.ys-shell[data-page="works"] .ys-music-heading-title {
  display: block; margin: 0; padding: 9px 32px;
  color: #2c2421; background: var(--ys-works-paper);
  clip-path: polygon(9% 0, 100% 0, 91% 100%, 0 100%);
  font-size: 27px; font-weight: 500; line-height: 1.25; letter-spacing: .12em;
}
#artistShell.ys-shell[data-page="works"] .ys-music-byline { font-size: 15px; text-shadow: 0 2px 5px #21171b; }
#artistShell.ys-shell[data-page="works"] .ys-background-toggle {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  margin-left: auto; padding: 0 10px; background: rgba(25, 19, 21, .72);
  font-size: 13px; line-height: 1.4; text-decoration: underline; text-underline-offset: 4px;
}
#artistShell.ys-shell[data-page="works"] .ys-media-message {
  width: fit-content; max-width: 100%; margin: 0 0 20px; padding: 8px 12px;
  background: var(--ys-works-panel); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere;
}
#artistShell.ys-shell[data-page="works"] .ys-media-message:empty { display: none; }
#artistShell.ys-shell[data-page="works"] .ys-music-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 36px 24px;
}
#artistShell.ys-shell[data-page="works"] .ys-music-card { display: block; min-width: 0; background: transparent; }
#artistShell.ys-shell[data-page="works"] .ys-music-cover {
  display: block; position: relative; width: 100%; aspect-ratio: 1 / 1;
  overflow: hidden; background: #251f20; border-radius: 0; line-height: 0;
}
#artistShell.ys-shell[data-page="works"] .ys-music-cover[data-transparent-cover="true"] { background: transparent; }
#artistShell.ys-shell[data-page="works"] .ys-music-artwork {
  display: block; width: 100%; height: 100%; object-fit: contain;
}
#artistShell.ys-shell[data-page="works"] .ys-cover-action {
  display: inline-flex; align-items: center; justify-content: center;
  position: absolute; left: 12px; bottom: 12px; min-height: 40px; padding: 0 13px;
  background: rgba(20, 14, 17, .82); color: #fff; font-size: 13px; line-height: 1.2;
  letter-spacing: .08em; pointer-events: none; transition: background-color 140ms ease, color 140ms ease;
}
#artistShell.ys-shell[data-page="works"] .ys-music-card[data-playing="true"] .ys-music-cover {
  outline: 2px solid var(--ys-pink); outline-offset: -2px;
}
#artistShell.ys-shell[data-page="works"] .ys-music-card[data-playing="true"] .ys-cover-action {
  background: #edb6cc; color: #271a20;
}
#artistShell.ys-shell[data-page="works"] .ys-music-cover:disabled { opacity: 1; cursor: default; }
#artistShell.ys-shell[data-page="works"] .ys-music-cover:disabled .ys-cover-action,
#artistShell.ys-shell[data-page="works"] .ys-music-play:disabled { display: none; }
#artistShell.ys-shell[data-page="works"] .ys-music-info { min-width: 0; padding: 14px 16px 8px; background: var(--ys-works-panel); }
#artistShell.ys-shell[data-page="works"] .ys-music-title {
  display: block; margin: 0; color: #fff; font: 600 19px/1.45 var(--ys-mono);
  white-space: normal; overflow-wrap: anywhere; text-wrap: pretty;
}
#artistShell.ys-shell[data-page="works"] .ys-music-artists {
  margin: 4px 0 10px; color: var(--ys-works-muted); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere;
}
#artistShell.ys-shell[data-page="works"] .ys-music-meta {
  display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--ys-works-muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere;
}
#artistShell.ys-shell[data-page="works"] .ys-music-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin-top: 6px; }
#artistShell.ys-shell[data-page="works"] :is(.ys-music-play, .ys-music-source) {
  display: inline-flex; align-items: center; min-height: 44px; max-width: 100%;
  font-size: 14px; line-height: 1.4; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere;
}
#artistShell.ys-shell[data-page="works"] .ys-music-play { color: #efb4ce; }
#artistShell.ys-shell[data-page="works"] .ys-music-source { color: #fff; }
/* Leave only a quiet route home below the music. */
#artistShell.ys-shell[data-page="works"] .ys-works-home {
  display: inline-flex; align-items: center; min-height: 44px;
  margin-top: 40px; padding: 0 12px;
  background: var(--ys-works-panel); color: #fff;
  font-size: 14px; text-decoration: underline; text-underline-offset: 4px;
}
/* Real shared audio controls; JS owns hidden, disabled, seek values and media state. */
#artistShell.ys-shell .ys-music-player-host { pointer-events: none; }
#artistShell.ys-shell .ys-music-player {
  position: fixed; z-index: 3; left: 50%; bottom: max(12px, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%); width: min(860px, calc(100% - 32px));
  display: grid; grid-template-columns: minmax(120px, 1fr) repeat(4, 44px) minmax(100px, 1.25fr);
  align-items: center; gap: 4px 8px; max-height: var(--ys-player-limit); overflow-y: auto; overflow-x: hidden;
  padding: 8px; border: 1px solid rgba(232, 203, 215, .4); border-radius: 0;
  background: rgba(24, 18, 21, .96); box-shadow: 0 -4px 24px rgba(0, 0, 0, .16); pointer-events: auto;
}
#artistShell.ys-shell .ys-music-player[hidden] { display: none !important; }
#artistShell.ys-shell .ys-player-info { min-width: 0; }
#artistShell.ys-shell :is(.ys-player-title, .ys-player-artist) {
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; line-height: 1.4;
}
#artistShell.ys-shell .ys-player-artist { margin-top: 2px; color: var(--ys-works-muted); font-size: 12px; }
#artistShell.ys-shell :is(.ys-player-prev, .ys-player-play, .ys-player-next, .ys-player-mute) {
  display: inline-grid; place-items: center; width: 44px; min-height: 44px;
  color: #fff; line-height: 1; text-align: center;
}
#artistShell.ys-shell .ys-player-icon { display: block; font: 20px/1 Arial, "Segoe UI Symbol", sans-serif; pointer-events: none; user-select: none; }
#artistShell.ys-shell .ys-player-play { background: #edb6cc; color: #271a20; }
#artistShell.ys-shell input.ys-player-seek[type="range"] {
  display: block; width: 100%; min-width: 0; height: 44px; margin: 0; padding: 0;
  accent-color: #edb6cc; cursor: pointer; pointer-events: auto; touch-action: pan-x;
}
#artistShell.ys-shell .ys-player-seek:disabled { opacity: .45; cursor: not-allowed; }
#artistShell.ys-shell .ys-player-message { grid-column: 1 / -1; max-height: 3em; overflow-y: auto; color: var(--ys-works-muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
#artistShell.ys-shell .ys-player-message[hidden],
#artistShell.ys-shell .ys-player-message:empty { display: none; }
#artistShell.ys-shell :is(.ys-music-player button, .ys-player-seek):focus-visible { outline: 2px solid #f3bed6; outline-offset: 4px; }
#artistShell.ys-shell[data-page="works"] :is(.ys-background-toggle, .ys-music-cover, .ys-music-play, .ys-music-source, .ys-music-player button, .ys-player-seek, .ys-works-home):focus-visible {
  outline: 2px solid #f3bed6; outline-offset: 4px;
}
@media (hover: hover) {
  #artistShell.ys-shell .ys-music-player button:not(:disabled):hover { background: #443039; }
  #artistShell.ys-shell .ys-player-play:not(:disabled):hover { background: #f3bed6; }
  #artistShell.ys-shell[data-page="works"] .ys-music-cover:not(:disabled):hover .ys-cover-action { background: #edb6cc; color: #271a20; }
  #artistShell.ys-shell[data-page="works"] :is(.ys-background-toggle, .ys-music-play, .ys-music-source, .ys-player-prev, .ys-player-next, .ys-player-mute, .ys-works-home):not(:disabled):hover { color: #f3bed6; }
}
@media (max-width: 720px) {
  #artistShell.ys-shell { --ys-player-limit: calc(110px + var(--ys-player-error-space)); }
  #artistShell.ys-shell[data-page="works"] .ys-content-inner { width: calc(100% - 32px); padding-top: 16px; }
  #artistShell.ys-shell[data-page="works"] .ys-music-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  #artistShell.ys-shell[data-page="works"] .ys-music-heading { gap: 10px 12px; margin-bottom: 22px; }
  #artistShell.ys-shell[data-page="works"] .ys-music-heading-title { padding: 8px 26px; font-size: 24px; }
  #artistShell.ys-shell[data-page="works"] .ys-background-toggle { font-size: 12px; padding-inline: 8px; }
  #artistShell.ys-shell[data-page="works"] .ys-music-info { padding-inline: 14px; }

  #artistShell.ys-shell .ys-music-player {
    width: calc(100% - 24px);
    grid-template-columns: repeat(3, 44px) minmax(0, 1fr) 44px;
  }
  #artistShell.ys-shell .ys-player-info { grid-row: 1; grid-column: 1 / 5; }
  #artistShell.ys-shell .ys-player-prev { grid-row: 2; grid-column: 1; }
  #artistShell.ys-shell .ys-player-play { grid-row: 2; grid-column: 2; }
  #artistShell.ys-shell .ys-player-next { grid-row: 2; grid-column: 3; }
  #artistShell.ys-shell .ys-player-mute { grid-row: 1; grid-column: 5; justify-self: end; }
  #artistShell.ys-shell input.ys-player-seek[type="range"] { grid-row: 2; grid-column: 4 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  /* Keep the video and its explicit pause control visible; JS handles actual video playback. */
  #artistShell.ys-shell[data-page="works"] .ys-cover-action { animation: none; transition: none; }
}
