/* Zydka Player - Zydka Premium UI v1.0 (graphite chassis, recessed wells, lime progress) */

.zydka-player-root {
  --zydka-bg: #0b0d10;
  --zydka-panel: #15191d;
  --zydka-raised: #1d2328;
  --zydka-ink: #f5f3ef;
  --zydka-muted: #abb2b9;
  --zydka-lime: #bfd85a;
  --zydka-red: #f3a09b;
  --zydka-edge: #343c43;
  --zydka-control: #7e8994;
  --zydka-track: #0c1115;
  --zydka-drop: 12px 14px 28px #0008, -5px -5px 18px #ffffff05;
  --zydka-well: inset 8px 9px 19px #000a, inset -2px -2px 5px #ffffff0d;
  --zydka-face: linear-gradient(145deg, #252c32, #1d2328 58%, #171c21);
  --zydka-key: linear-gradient(145deg, #323a41, #1b2126);
  --zydka-key-shadow: 5px 6px 12px #0009, -2px -2px 7px #ffffff06, inset 0 1px 1px #ffffff22;
  --zydka-pressed: inset 3px 4px 8px #000b, inset -1px -1px 3px #ffffff0a;
  box-sizing: border-box;
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 1180px;
  margin: 28px auto;
  padding: 0;
  color: var(--zydka-ink);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.zydka-player-root *,
.zydka-player-root *::before,
.zydka-player-root *::after {
  box-sizing: border-box;
}

/* Chassis: one matte graphite shell lit from the top left. */
.zydka-player-card {
  position: relative;
  width: 100%;
  margin: 0;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid #ffffff12;
  border-bottom: 4px solid #07090b;
  border-radius: 32px;
  background: linear-gradient(115deg, #242b31, #1d2328 45%, #191f24);
  color: var(--zydka-ink);
  box-shadow:
    0 36px 60px #0009,
    0 2px 2px #000,
    inset 0 1px 1px #ffffff20,
    inset 1px 0 #ffffff0a;
  transition: box-shadow 0.45s ease;
}

/* Fine grain on the shell, under the controls. */
.zydka-player-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.18' d='M0 0h160v160H0z'/%3E%3C/svg%3E");
}

.zydka-player-card > * {
  position: relative;
  z-index: 1;
}

/* Track opened from a shared link: brief outline so the visitor sees where it is. */
.zydka-player-root--shared .zydka-player-card {
  box-shadow:
    0 36px 60px #0009,
    0 2px 2px #000,
    inset 0 1px 1px #ffffff20,
    0 0 0 3px #bfd85a66;
}

@media (prefers-reduced-motion: reduce) {
  .zydka-player-card {
    transition: none;
  }
}

.zydka-player-topbar {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(20px, 3vw, 28px);
  padding-bottom: 16px;
  border-bottom: 1px solid #ffffff0b;
}

/* The user's original Z, shown intact and framed like the reference viewBox (2124 1347 823 708). */
.zydka-player-brand {
  display: block;
  flex-shrink: 0;
  width: 31px;
  height: 27px;
  background: url("../img/zydka-original.png") no-repeat -80.01px -50.74px / 191.01px 128.22px;
  filter: brightness(0) invert(1);
}

.zydka-player-status {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  color: var(--zydka-muted);
  font-size: 12px;
  line-height: 1;
}

.zydka-player-status::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--zydka-muted);
}

.zydka-player-state-playing .zydka-player-status::before {
  background: var(--zydka-lime);
  box-shadow: 0 0 9px #bfd85a60;
}

.zydka-player-state-error .zydka-player-status::before {
  background: var(--zydka-red);
}

.zydka-player-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(18px, 4vw, 34px);
  align-items: start;
}

.zydka-player-track-meta {
  min-width: 0;
  padding-top: 2px;
}

.zydka-player-header-aside {
  display: grid;
  gap: 13px;
  justify-items: end;
  min-width: 0;
}

/* Cover sleeve: deep recessed well holding the artwork. */
.zydka-player-cover {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(104px, 18vw, 168px);
  aspect-ratio: 1;
  padding: 8px;
  border-radius: 24px;
  background: #13181c;
  color: var(--zydka-ink);
  box-shadow: var(--zydka-well), 0 1px #ffffff14;
}

.zydka-player-cover-image {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 17px;
  object-fit: cover;
  box-shadow: 0 5px 8px #0006;
}

.zydka-player-cover-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 17px;
  background:
    radial-gradient(ellipse at 30% 10%, #414a4270, transparent 60%),
    linear-gradient(145deg, #252d31, #171c21);
  color: var(--zydka-ink);
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 300;
  letter-spacing: -2px;
  line-height: 1;
  box-shadow: inset 0 1px #ffffff0b, 0 5px 8px #0006;
}

.zydka-player-title,
.zydka-player-artist,
.zydka-player-counter,
.zydka-player-error {
  margin: 0;
}

.zydka-player-title {
  max-width: 14em;
  overflow-wrap: normal;
  word-break: normal;
  white-space: normal;
  color: var(--zydka-ink);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: -1.2px;
  line-height: 1.06;
}

.zydka-player-artist {
  margin-top: 10px;
  overflow-wrap: anywhere;
  color: var(--zydka-muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.zydka-player-buy-link[hidden] {
  display: none;
}

.zydka-player-buy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 20px;
  padding: 10px 20px;
  border: 1px solid var(--zydka-control);
  border-radius: 999px;
  background: var(--zydka-face);
  color: var(--zydka-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  box-shadow: var(--zydka-key-shadow);
}

.zydka-player-buy-link:hover,
.zydka-player-buy-link:focus {
  border-color: #9aa4ad;
  background: linear-gradient(145deg, #2c343a, #20272c 58%, #1a2025);
  color: var(--zydka-ink);
  text-decoration: none;
}

.zydka-player-buy-link:active {
  box-shadow: var(--zydka-pressed);
}

.zydka-player-counter {
  justify-self: end;
  padding: 7px 12px;
  border-radius: 999px;
  background: #171c21;
  color: var(--zydka-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-shadow: inset 2px 3px 6px #000a, 0 1px #ffffff0d;
}

.zydka-player-actions {
  display: grid;
  grid-template-columns: 44px 52px 68px 52px 44px;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: clamp(26px, 4vw, 36px);
}

.zydka-player-actions--has-queue {
  grid-template-columns: 44px 52px 68px 52px 44px minmax(112px, 1fr);
}

/* Raised physical keys. */
.zydka-player-button {
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid #ffffff17;
  border-radius: 999px;
  background: var(--zydka-key);
  color: var(--zydka-ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  box-shadow: var(--zydka-key-shadow);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.zydka-player-icon-button {
  display: inline-grid;
  place-items: center;
  width: 52px;
  min-width: 52px;
  min-height: 52px;
  padding: 0;
  border-radius: 50%;
}

.zydka-player-icon-button.zydka-player-mode-button {
  position: relative;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  color: var(--zydka-muted);
}

/* Engaged mode: the key sits pressed into the shell, with a small lime indicator. */
.zydka-player-mode-button--active,
.zydka-player-mute-button--muted {
  background: #171c21;
  color: var(--zydka-ink);
  box-shadow: var(--zydka-pressed);
}

.zydka-player-mode-button--active::before {
  content: "";
  position: absolute;
  bottom: 5px;
  left: calc(50% - 2px);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--zydka-lime);
}

.zydka-player-mode-button--active:hover,
.zydka-player-mode-button--active:focus {
  background: #1a2025;
  color: var(--zydka-ink);
}

.zydka-player-repeat-button {
  position: relative;
}

.zydka-player-repeat-button--one::after {
  content: "1";
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--zydka-ink);
  color: var(--zydka-bg);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.zydka-player-control-icon {
  display: block;
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.zydka-player-control-icon path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.85;
  vector-effect: non-scaling-stroke;
}

.zydka-player-control-icon--play,
.zydka-player-control-icon--pause {
  width: 24px;
  height: 24px;
}

.zydka-player-control-icon--play path,
.zydka-player-control-icon--pause path {
  fill: currentColor;
  stroke: none;
}

.zydka-player-button:hover,
.zydka-player-button:focus {
  border-color: #ffffff26;
  background: linear-gradient(145deg, #39424a, #1e252a);
  color: var(--zydka-ink);
}

.zydka-player-button:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: var(--zydka-pressed);
}

.zydka-player-root :focus-visible,
.zydka-player-queue-overlay :focus-visible {
  outline: 3px solid var(--zydka-lime);
  outline-offset: 4px;
}

/* Play / pause: off-white key, no halo. */
.zydka-player-toggle-button,
.zydka-player-toggle-button--playing {
  width: 68px;
  min-width: 68px;
  min-height: 68px;
  border: 5px solid #1a2025;
  background: linear-gradient(145deg, #fffefa, var(--zydka-ink) 60%, #c6c6c1);
  color: var(--zydka-bg);
  box-shadow:
    0 0 0 1px #ffffff0c,
    6px 7px 13px #000c,
    -3px -3px 8px #ffffff0a,
    inset 0 2px #fff;
}

.zydka-player-toggle-button:hover,
.zydka-player-toggle-button:focus {
  border-color: #1a2025;
  background: linear-gradient(145deg, #ffffff, #f8f6f2 60%, #d2d2cd);
  color: var(--zydka-bg);
}

.zydka-player-toggle-button:active:not(:disabled) {
  box-shadow:
    0 0 0 1px #ffffff0c,
    3px 4px 8px #000c,
    inset 2px 3px 6px #0004;
}

.zydka-player-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.zydka-player-button:disabled:hover,
.zydka-player-button:disabled:focus {
  border-color: #ffffff17;
  background: var(--zydka-key);
  color: var(--zydka-ink);
  transform: none;
}

.zydka-player-timeline {
  display: grid;
  grid-template-columns: 50px minmax(120px, 1fr) 50px;
  gap: 13px;
  align-items: center;
  margin-top: 24px;
}

.zydka-player-time {
  color: var(--zydka-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1;
}

.zydka-player-time:last-child {
  text-align: right;
}

/* Linear settings: low value on the left, lime fill up to the thumb. */
.zydka-player-progress,
.zydka-player-volume-slider {
  display: block;
  width: 100%;
  min-width: 0;
  /* 44px touch target around a 7px track. */
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
  /* Horizontal drags move the thumb instead of scrolling the page. */
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}

.zydka-player-progress {
  --zydka-fill: var(--zydka-progress-percent, 0%);
}

.zydka-player-volume-slider {
  --zydka-fill: var(--zydka-volume-percent, 100%);
}

.zydka-player-progress::-webkit-slider-runnable-track,
.zydka-player-volume-slider::-webkit-slider-runnable-track {
  height: 7px;
  border-radius: 8px;
  background: linear-gradient(
    to right,
    var(--zydka-lime) 0%,
    var(--zydka-lime) var(--zydka-fill),
    var(--zydka-track) var(--zydka-fill),
    var(--zydka-track) 100%
  );
  box-shadow: inset 0 2px 3px #0009, 0 1px #ffffff12, 0 0 8px #bfd85a18;
}

.zydka-player-progress::-webkit-slider-thumb,
.zydka-player-volume-slider::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -7.5px;
  border: 4px solid #252d33;
  border-radius: 50%;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(145deg, #f5f3ef, #abb2b9);
  box-shadow: 3px 4px 6px #000b, inset 0 1px #ffffff55;
}

.zydka-player-progress::-moz-range-track,
.zydka-player-volume-slider::-moz-range-track {
  height: 7px;
  border-radius: 8px;
  background: var(--zydka-track);
  box-shadow: inset 0 2px 3px #0009;
}

.zydka-player-progress::-moz-range-progress,
.zydka-player-volume-slider::-moz-range-progress {
  height: 7px;
  border-radius: 8px;
  background: var(--zydka-lime);
  box-shadow: 0 0 8px #bfd85a25;
}

.zydka-player-progress::-moz-range-thumb,
.zydka-player-volume-slider::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border: 4px solid #252d33;
  border-radius: 50%;
  background: var(--zydka-ink);
}

.zydka-player-progress--dragging::-webkit-slider-thumb {
  transform: scale(1.12);
}

.zydka-player-progress--dragging::-moz-range-thumb {
  transform: scale(1.12);
}

.zydka-player-progress:disabled {
  cursor: default;
  opacity: 0.5;
}

.zydka-player-volume {
  display: grid;
  grid-template-columns: 44px minmax(120px, 1fr) 52px;
  gap: 13px;
  align-items: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #ffffff09;
}

.zydka-player-mute-button {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
}

.zydka-player-volume-value {
  color: var(--zydka-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1;
  text-align: right;
}

/* Muted: the set volume stays visible, dimmed. */
.zydka-player-volume--muted .zydka-player-volume-slider {
  opacity: 0.45;
}

/* Volume set by the device (iPhone, iPad): mute button only. */
.zydka-player-volume--system {
  grid-template-columns: 44px;
}

.zydka-player-volume--system .zydka-player-volume-slider,
.zydka-player-volume--system .zydka-player-volume-value {
  display: none;
}

.zydka-player-share {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 14px;
}

.zydka-player-share-feedback {
  min-width: 82px;
  padding: 7px 12px;
  border: 1px solid #05080a;
  border-radius: 10px;
  background: linear-gradient(165deg, #0b1013, #12191c);
  color: var(--zydka-ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  box-shadow: var(--zydka-well), 0 1px #ffffff12;
}

.zydka-player-share-feedback[hidden] {
  display: none;
}

/* Favorite: outlined heart, filled once saved (pressed key and lime dot come from the mode button). */
.zydka-player-favorite-button--active .zydka-player-control-icon--favorite path {
  fill: currentColor;
}

/* display: block/grid on the cover parts overrides [hidden]: without this a missing or
   failed cover shows the browser's broken-image icon on top of the letter fallback. */
.zydka-player-cover-image[hidden],
.zydka-player-cover-fallback[hidden],
.zydka-player-queue__cover-image[hidden] {
  display: none;
}

.zydka-player-queue-overlay[hidden] {
  display: none;
}

.zydka-player-queue-overlay {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px 12px 0;
  background: #0b0d10b3;
  color: var(--zydka-ink);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.zydka-player-queue {
  width: 100%;
  max-height: min(78vh, 640px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border: 1px solid #ffffff12;
  border-radius: 26px 26px 0 0;
  background: linear-gradient(145deg, #1c2227, #15191d);
  color: var(--zydka-ink);
  box-shadow: 0 -24px 60px #000a, inset 0 1px 1px #ffffff14;
}

.zydka-player-queue__header {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 14px;
}

.zydka-player-queue__heading {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.zydka-player-queue__title,
.zydka-player-queue__subtitle {
  margin: 0;
}

.zydka-player-queue__title {
  color: inherit;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.3px;
  line-height: 1.15;
}

.zydka-player-queue__subtitle {
  color: var(--zydka-muted);
  font-size: 12px;
  line-height: 1.2;
}

.zydka-player-queue__close {
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--zydka-control);
  border-radius: 999px;
  background: var(--zydka-face);
  color: var(--zydka-ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.zydka-player-queue__close:hover,
.zydka-player-queue__close:focus {
  border-color: #9aa4ad;
}

.zydka-player-queue__list {
  display: grid;
  align-content: start;
  gap: 0;
  margin: 0;
  padding: 0 14px 14px;
  overflow-y: auto;
  list-style: none;
}

.zydka-player-queue__list > li {
  border-bottom: 1px solid #ffffff09;
}

.zydka-player-queue__list > li:last-child {
  border-bottom: 0;
}

.zydka-player-queue__item {
  position: relative;
  display: grid;
  grid-template-columns: 47px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  margin: 0;
  padding: 12px 8px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.zydka-player-queue__item:hover,
.zydka-player-queue__item:focus {
  background: #ffffff06;
}

.zydka-player-queue__cover {
  position: relative;
  display: grid;
  place-items: center;
  width: 47px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(145deg, #30383d, #192025);
  color: var(--zydka-ink);
  box-shadow: 3px 4px 8px #0008, inset 0 1px #ffffff10;
}

.zydka-player-queue__cover-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zydka-player-queue__cover-fallback {
  font-size: 17px;
  font-weight: 300;
  letter-spacing: -1px;
  line-height: 1;
}

.zydka-player-queue__item--active .zydka-player-queue__cover-fallback {
  color: var(--zydka-lime);
}

.zydka-player-queue__meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.zydka-player-queue__track-title,
.zydka-player-queue__track-artist,
.zydka-player-queue__state {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zydka-player-queue__track-title {
  color: var(--zydka-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: normal;
  word-break: normal;
}

.zydka-player-queue__item--active .zydka-player-queue__track-title::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--zydka-lime);
  vertical-align: middle;
}

.zydka-player-queue__track-artist {
  color: var(--zydka-muted);
  font-size: 12px;
  line-height: 1.25;
}

.zydka-player-queue__state {
  color: var(--zydka-lime);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.zydka-player-queue__duration {
  color: var(--zydka-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.zydka-player-footer {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.zydka-player-footer[hidden] {
  display: none;
}

.zydka-player-error {
  padding: 10px 14px;
  border: 1px solid #05080a;
  border-radius: 12px;
  background: linear-gradient(165deg, #0b1013, #12191c);
  color: var(--zydka-red);
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  box-shadow: var(--zydka-well), 0 1px #ffffff12;
}

@media (min-width: 900px) {
  .zydka-player-root {
    max-width: 1048px;
    justify-items: center;
  }

  .zydka-player-root--has-queue {
    grid-template-columns: 1fr;
    align-items: stretch;
    justify-items: stretch;
  }

  .zydka-player-card {
    width: 100%;
    min-height: 100%;
    padding: clamp(26px, 3vw, 38px);
  }

  .zydka-player-header {
    grid-template-columns: minmax(0, 1fr) clamp(150px, 15vw, 176px);
    gap: clamp(28px, 5vw, 58px);
    align-items: center;
  }

  .zydka-player-track-meta {
    display: grid;
    align-content: center;
    justify-items: start;
    max-width: 620px;
    min-height: 176px;
    padding-top: 0;
  }

  .zydka-player-header-aside {
    align-self: center;
    gap: 12px;
    justify-items: center;
    width: clamp(150px, 15vw, 176px);
  }

  .zydka-player-cover {
    width: clamp(150px, 15vw, 176px);
  }

  .zydka-player-counter {
    justify-self: center;
    max-width: 100%;
  }

  .zydka-player-title {
    max-width: min(100%, 11.6em);
    font-size: clamp(32px, 3.2vw, 42px);
  }

  .zydka-player-artist {
    max-width: 44em;
  }

  .zydka-player-buy-link {
    width: fit-content;
  }

  .zydka-player-queue-button {
    display: none;
  }

  .zydka-player-actions {
    grid-template-columns: 46px 56px 72px 56px 46px;
    gap: 16px;
    width: min(100%, 620px);
    margin: clamp(28px, 3.5vw, 38px) auto 0;
  }

  .zydka-player-icon-button.zydka-player-mode-button {
    width: 46px;
    min-width: 46px;
    min-height: 46px;
  }

  .zydka-player-icon-button {
    width: 56px;
    min-width: 56px;
    min-height: 56px;
  }

  .zydka-player-toggle-button,
  .zydka-player-toggle-button--playing {
    width: 72px;
    min-width: 72px;
    min-height: 72px;
  }

  .zydka-player-timeline {
    grid-template-columns: 48px minmax(180px, 1fr) 48px;
    gap: 14px;
    width: min(100%, 680px);
    margin: 22px auto 0;
  }

  .zydka-player-volume {
    grid-template-columns: 44px minmax(180px, 1fr) 48px;
    width: min(100%, 560px);
    margin: 16px auto 0;
  }

  .zydka-player-share {
    width: min(100%, 560px);
    margin: 12px auto 0;
  }

  .zydka-player-footer {
    justify-content: center;
    width: min(100%, 680px);
    margin: 16px auto 0;
  }

  .zydka-player-queue-overlay {
    position: static;
    z-index: auto;
    display: block;
    min-width: 0;
    height: 100%;
    padding: 0;
    background: transparent;
  }

  .zydka-player-root--has-queue .zydka-player-card {
    width: 100%;
  }

  /* Library panel beside the chassis. */
  .zydka-player-queue {
    height: 100%;
    max-height: none;
    padding-bottom: 0;
    border-radius: 28px;
    background: linear-gradient(145deg, #1c2227, #15191d);
    box-shadow: var(--zydka-drop), inset 0 1px 1px #ffffff14;
  }

  .zydka-player-queue__header {
    padding: 24px 22px 14px;
  }

  .zydka-player-queue__list {
    padding: 0 14px 16px;
  }
}

@media (min-width: 960px) {
  .zydka-player-root--has-queue {
    grid-template-columns: minmax(520px, 1.35fr) minmax(300px, 0.65fr);
  }

  .zydka-player-card,
  .zydka-player-queue-overlay {
    min-width: 0;
  }

  .zydka-player-track-meta {
    min-width: 0;
  }

  .zydka-player-queue-overlay {
    max-width: 360px;
  }

  .zydka-player-title {
    max-width: min(100%, 11.6em);
  }
}

@media (min-width: 1200px) {
  .zydka-player-root--has-queue {
    grid-template-columns: minmax(620px, 1.42fr) minmax(320px, 0.58fr);
  }

  .zydka-player-queue-overlay {
    max-width: 380px;
  }
}

@media (max-width: 899px) {
  .zydka-player-root {
    max-width: 720px;
  }

  .zydka-player-queue-overlay {
    backdrop-filter: blur(8px);
  }
}

@media (max-width: 640px) {
  .zydka-player-root {
    margin: 18px auto;
  }

  .zydka-player-card {
    padding: 18px 16px 20px;
    border-radius: 26px;
  }

  .zydka-player-header {
    grid-template-columns: 1fr;
  }

  /* Sleeve first on phones, as in the reference mobile layout. */
  .zydka-player-header-aside {
    display: flex;
    order: -1;
    gap: 12px;
    align-items: flex-end;
    justify-content: space-between;
  }

  .zydka-player-cover {
    width: 96px;
    padding: 6px;
    border-radius: 20px;
  }

  .zydka-player-cover-image,
  .zydka-player-cover-fallback {
    border-radius: 15px;
  }

  .zydka-player-counter {
    justify-self: auto;
  }

  .zydka-player-title {
    max-width: none;
    font-size: 28px;
  }

  .zydka-player-buy-link {
    display: flex;
    width: 100%;
    margin-top: 16px;
  }

  .zydka-player-actions,
  .zydka-player-actions--has-queue {
    grid-template-columns: 44px 48px 64px 48px 44px;
    gap: 10px;
  }

  .zydka-player-icon-button.zydka-player-mode-button {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .zydka-player-icon-button {
    width: 48px;
    min-width: 48px;
    min-height: 48px;
  }

  .zydka-player-toggle-button,
  .zydka-player-toggle-button--playing {
    width: 64px;
    min-width: 64px;
    min-height: 64px;
    border-width: 4px;
  }

  .zydka-player-volume {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 10px;
  }

  .zydka-player-share {
    justify-content: flex-start;
  }

  .zydka-player-queue-button {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 4px;
  }

  .zydka-player-timeline {
    grid-template-columns: 40px minmax(96px, 1fr) 40px;
    gap: 8px;
  }

  .zydka-player-queue__item {
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 68px;
  }

  .zydka-player-queue__cover {
    width: 44px;
  }

  .zydka-player-queue__duration {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 380px) {
  .zydka-player-actions,
  .zydka-player-actions--has-queue {
    grid-template-columns: 44px 44px 60px 44px 44px;
    gap: 6px;
  }

  .zydka-player-icon-button {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .zydka-player-toggle-button,
  .zydka-player-toggle-button--playing {
    width: 60px;
    min-width: 60px;
    min-height: 60px;
  }
}
