:root {
  --mzk-player-bg: rgba(7, 17, 27, .985);
  --mzk-player-panel: #0d1926;
  --mzk-player-border: rgba(255, 255, 255, .09);
  --mzk-player-text: #f4f7fa;
  --mzk-player-muted: #91a0b2;
  --mzk-player-soft: #142230;
  --mzk-player-line: rgba(255, 255, 255, .12);
  --mzk-player-accent: #ffa200;
  --mzk-player-danger: #e11d48;
  --mzk-player-focus: #f59e0b;
  --mzk-player-mobile-h: 85px;
  --mzk-player-desktop-h: 68px;

}

.mzk-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.player-bar *,
.player-mobile *,
.player-queue-panel *,
.player-lyrics-panel *,
.player-restore {
  box-sizing: border-box;
}

button {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}


/* --- Expanded player at bottom of queue panel --- */
.player-queue-expanded {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: var(--mzk-player-panel);
  border-top: 1px solid var(--mzk-player-border);
}

.player-queue-expanded__progress {
  position: relative;
  width: 100%;
  height: 20px;
  cursor: pointer;
  flex: 0 0 auto;
}

.player-queue-expanded__progress-fill {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0%;
  height: 4px;
  border-radius: 999px;
  background: var(--mzk-player-accent);
  transform: translateY(-50%);
  pointer-events: none;
}

.player-queue-expanded__info {
  display: block;
  width: 100%;
  min-width: 0;
  text-align: center;
  flex: 0 0 auto;
}

.player-queue-expanded__artist {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
  font-weight: 750;
  line-height: 22px;
  color: var(--mzk-player-text);
}

.player-queue-expanded__title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
  color: var(--mzk-player-muted);
  font-size: 14px;
  line-height: 18px;
}

.player-queue-expanded__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  flex: 0 0 auto;
  margin-top: 6px;
}

.player-queue-expanded__shuffle,
.player-queue-expanded__prev,
.player-queue-expanded__next,
.player-queue-expanded__repeat {
  display: grid;
  width: 48px;
  height: 48px;
  min-width: 48px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--mzk-player-muted);
  background: transparent;
  cursor: pointer;
  transition: color .16s ease, background-color .16s ease, transform .16s ease;
}

.player-queue-expanded__shuffle:active,
.player-queue-expanded__prev:active,
.player-queue-expanded__next:active,
.player-queue-expanded__repeat:active {
  color: var(--mzk-player-text);
  background: var(--mzk-player-soft);
  transform: scale(.92);
}

.player-queue-expanded__shuffle.active,
.player-queue-expanded__repeat.active {
  color: var(--mzk-player-accent);
  background: var(--color-primary-soft);
}

.player-queue-expanded__shuffle svg,
.player-queue-expanded__prev svg,
.player-queue-expanded__next svg,
.player-queue-expanded__repeat svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.player-queue-expanded__play {
  position: relative;
  display: grid;
  width: 72px;
  height: 72px;
  min-width: 72px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--color-on-primary);
  background: var(--mzk-player-accent);
  box-shadow: 0 6px 18px rgba(var(--color-primary-rgb), .3);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}

.player-queue-expanded__play:active {
  transform: scale(.95);
}

.player-queue-expanded__play svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
  stroke: none;
  transform: translateX(1px);
}

.player-queue-expanded__play.is-playing svg {
  display: none;
}

.player-queue-expanded__play.is-playing::before,
.player-queue-expanded__play.is-playing::after {
  position: absolute;
  top: 24px;
  width: 4px;
  height: 24px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.player-queue-expanded__play.is-playing::before {
  left: 28px;
}

.player-queue-expanded__play.is-playing::after {
  right: 28px;
}

/* Tablet: bigger controls */
@media (min-width: 601px) {
  .player-queue-expanded {
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }

  .player-queue-expanded__artist {
    font-size: 20px;
    line-height: 26px;
  }

  .player-queue-expanded__title {
    font-size: 16px;
    line-height: 20px;
  }

  .player-queue-expanded__controls { gap: 22px; }

  .player-queue-expanded__shuffle,
  .player-queue-expanded__prev,
  .player-queue-expanded__next,
  .player-queue-expanded__repeat {
    width: 56px;
    height: 56px;
    min-width: 56px;
  }

  .player-queue-expanded__shuffle svg,
  .player-queue-expanded__prev svg,
  .player-queue-expanded__next svg,
  .player-queue-expanded__repeat svg {
    width: 26px;
    height: 26px;
  }

  .player-queue-expanded__play {
    width: 80px;
    height: 80px;
    min-width: 80px;
  }

  .player-queue-expanded__play svg {
    width: 36px;
    height: 36px;
  }

  .player-queue-expanded__play.is-playing::before,
  .player-queue-expanded__play.is-playing::after {
    top: 26px;
    width: 5px;
    height: 28px;
  }

  .player-queue-expanded__play.is-playing::before { left: 32px; }
  .player-queue-expanded__play.is-playing::after { right: 32px; }
}

/* Narrow mobile: compact */
@media (max-width: 375px) {
  .player-queue-expanded__artist {
    font-size: 15px;
    line-height: 20px;
  }

  .player-queue-expanded__title {
    font-size: 13px;
    line-height: 16px;
  }

  .player-queue-expanded__controls { gap: 8px; }

  .player-queue-expanded__play {
    width: 64px;
    height: 64px;
    min-width: 64px;
  }

  .player-queue-expanded__play svg {
    width: 28px;
    height: 28px;
  }

  .player-queue-expanded__play.is-playing::before,
  .player-queue-expanded__play.is-playing::after {
    top: 20px;
    width: 4px;
    height: 24px;
  }

  .player-queue-expanded__play.is-playing::before { left: 24px; }
  .player-queue-expanded__play.is-playing::after { right: 24px; }
}

/* ============================================================
   8. DESKTOP QUEUE PANEL (1025px+ wide screens)
    ============================================================ */
#player-mobile {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10000;
  display: none;
  height: calc(var(--mzk-player-mobile-h) + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--mzk-player-border);
  color: var(--mzk-player-text);
  background: var(--mzk-player-bg);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, .12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform .24s ease, visibility .24s ease;
}

#player-mobile.active {
  display: block;
  transform: translateY(0);
  visibility: visible;
}

/* --- Progress bar (3px visual, 20px touch zone) --- */
.player-mobile__progress {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1;
  height: 20px;
  cursor: pointer;
  touch-action: none;
  background: transparent;
}

.player-mobile__progress::before {
  position: absolute;
  top: 8px;
  right: 0;
  left: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--mzk-player-line);
  content: "";
  pointer-events: none;
}

.player-mobile__progress-fill {
  position: absolute;
  top: 8px;
  left: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--mzk-player-accent);
  transition: width .1s linear;
}

.player-mobile__progress-fill::after {
  display: none;
}

/* --- Main row: controls | info | actions --- */
.player-mobile__main {
  display: flex;
  align-items: center;
  height: var(--mzk-player-mobile-h);
  padding: 20px 14px 0 12px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  gap: 10px;
}

/* Left: prev + play + next (gap min 8px) */
.player-mobile__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.player-mobile__prev,
.player-mobile__next {
  display: grid;
  width: 44px;
  height: 44px;
  min-width: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--mzk-player-muted);
  background: transparent;
  cursor: pointer;
  transition: color .16s ease, background-color .16s ease, transform .16s ease;
}

.player-mobile__prev:active,
.player-mobile__next:active {
  color: var(--mzk-player-text);
  background: var(--mzk-player-soft);
  transform: scale(.92);
}

.player-mobile__prev svg,
.player-mobile__next svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Play/Pause — 56px phone */
.player-mobile__play {
  position: relative;
  display: grid;
  width: 56px;
  height: 56px;
  min-width: 56px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--color-on-primary);
  background: var(--mzk-player-accent);
  box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), .3);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}

.player-mobile__play:active {
  transform: scale(.92);
  box-shadow: 0 2px 8px rgba(var(--color-primary-rgb), .4);
}

.player-mobile__play svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
  stroke: none;
  transform: translateX(1px);
}

.player-mobile__play.is-playing svg { display: none; }

.player-mobile__play.is-playing::before,
.player-mobile__play.is-playing::after {
  position: absolute;
  top: 16px;
  width: 5px;
  height: 24px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.player-mobile__play.is-playing::before { left: 21px; }
.player-mobile__play.is-playing::after { right: 21px; }

/* Center: track info */
.player-mobile__info {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 8px;
  overflow: hidden;
  cursor: pointer;
}

/* Title = main line (18px / 700) */
.player-mobile__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--mzk-player-text);
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
}

/* Artist = secondary line (15px) */
.player-mobile__artist {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--mzk-player-muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 19px;
}

/* Right: action buttons (48px touch area, 32px icons) */
.player-mobile__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.player-mobile__action {
  display: grid;
  width: 48px;
  height: 48px;
  min-width: 48px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--mzk-player-muted);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: color .16s ease, background-color .16s ease;
}

.player-mobile__action:active {
  color: var(--mzk-player-text);
  background: var(--mzk-player-soft);
}

.player-mobile__action svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.player-mobile__action--queue svg { stroke-width: 1.8; }

/* --- Skeleton --- */
.player-mobile__skeleton {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  animation: player-skel 1.4s ease-in-out infinite;
}

.player-mobile__skeleton-bar {
  flex: 0 0 20px;
  background: transparent;
}

.player-mobile__skeleton-row {
  display: flex;
  align-items: center;
  flex: 1;
  padding: 0 12px 0 8px;
  gap: 8px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.player-mobile__skeleton-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mzk-player-line);
  flex-shrink: 0;
}

.player-mobile__skeleton-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--mzk-player-line);
  flex-shrink: 0;
}

.player-mobile__skeleton-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 8px;
}

.player-mobile__skeleton-title {
  width: 60%;
  height: 18px;
  border-radius: 999px;
  background: var(--mzk-player-line);
}

.player-mobile__skeleton-artist {
  width: 40%;
  height: 14px;
  border-radius: 999px;
  background: var(--mzk-player-line);
}

.player-mobile__skeleton-action {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--mzk-player-line);
  flex-shrink: 0;
}

@keyframes player-skel {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

/* --- Error state --- */
.player-mobile__error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--mzk-player-bg);
}

.player-mobile__error-msg {
  color: var(--mzk-player-danger);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
}

.player-mobile__error-retry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border: 0;
  border-radius: 999px;
  color: var(--color-on-primary);
  font-size: 13px;
  font-weight: 650;
  background: var(--mzk-player-accent);
  cursor: pointer;
}

.player-mobile__error-retry:active {
  transform: scale(.96);
}

/* --- Live mode --- */
#player-mobile.is-live .player-mobile__artist { color: #27995a; }

#player-mobile.is-live .player-mobile__progress-fill {
  background: linear-gradient(90deg, #37c875 0%, var(--mzk-player-accent) 48%, #37c875 100%);
  background-size: 220% 100%;
  animation: mzk-live-progress 2.4s linear infinite;
}

@keyframes mzk-live-progress {
  to { background-position: -220% 0; }
}

/* ============================================================
   2. TABLET (601-1024px) — 85px height, larger spacing
   ============================================================ */
@media (min-width: 601px) {
  .player-mobile__main {
    padding-left: 16px;
    padding-right: 16px;
    gap: 12px;
  }

  .player-mobile__controls { gap: 12px; }

  .player-mobile__actions { gap: 10px; }
}

/* ============================================================
   3. NARROW MOBILE (320-375px) — compact spacing, keep 44px touch
   ============================================================ */
@media (max-width: 375px) {
  .player-mobile__main {
    padding-left: 8px;
    padding-right: 8px;
    gap: 6px;
  }

  .player-mobile__controls { gap: 6px; }

  .player-mobile__prev,
  .player-mobile__next {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .player-mobile__prev svg,
  .player-mobile__next svg {
    width: 24px;
    height: 24px;
  }

  .player-mobile__play {
    width: 50px;
    height: 50px;
    min-width: 50px;
  }

  .player-mobile__play svg {
    width: 26px;
    height: 26px;
  }

  .player-mobile__play.is-playing::before,
  .player-mobile__play.is-playing::after {
    top: 15px;
    width: 4px;
    height: 20px;
  }

  .player-mobile__play.is-playing::before { left: 19px; }
  .player-mobile__play.is-playing::after { right: 19px; }

  .player-mobile__title {
    font-size: 16px;
    line-height: 20px;
  }

  .player-mobile__artist {
    font-size: 14px;
    line-height: 18px;
  }

  .player-mobile__actions { gap: 4px; }

  .player-mobile__action {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  .player-mobile__action svg {
    width: 28px;
    height: 28px;
  }
}

/* ============================================================
   4. RESTORE BUTTON (floating, appears when player hidden)
   ============================================================ */
.player-restore {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--mzk-player-border);
  border-radius: 50%;
  color: var(--mzk-player-text);
  background: var(--mzk-player-panel);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .32);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
body.mzk-player-active .player-restore {
  bottom: calc(24px + var(--mzk-player-desktop-h, 68px));
}

.player-restore:active { transform: scale(.92); }
.player-restore[hidden] { display: none !important; }

.player-restore svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   5. BODY PADDING — content doesn't overlap with player
   ============================================================ */
body.mzk-player-active {
  padding-bottom: calc(var(--mzk-player-mobile-h) + env(safe-area-inset-bottom)) !important;
}

body.mzk-player-queue-open {
  overflow: hidden;
}

body.mzk-player-queue-open.mzk-player-active {
  padding-bottom: calc(190px + env(safe-area-inset-bottom)) !important;
}

@media (min-width: 601px) {
  body.mzk-player-queue-open.mzk-player-active {
    padding-bottom: calc(210px + env(safe-area-inset-bottom)) !important;
  }
}

@media (max-width: 375px) {
  body.mzk-player-queue-open.mzk-player-active {
    padding-bottom: calc(170px + env(safe-area-inset-bottom)) !important;
  }
}

/* ============================================================
   6. DESKTOP PLAYER (only on hover-capable / wide screens)
   ============================================================ */
#footer-player-container {
  display: none;
}

@media (hover: hover) and (min-width: 1025px) {
  #player-mobile,
  #player-mobile.active {
    display: none !important;
  }

  #footer-player-container {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    height: var(--mzk-player-desktop-h);
    border-top: 1px solid var(--mzk-player-border);
    color: var(--mzk-player-text);
    background: var(--mzk-player-bg);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, .1);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: translateY(110%);
    visibility: hidden;
    transition: transform .24s ease, visibility .24s ease;
    display: block;
  }

  #footer-player-container.active {
    transform: translateY(0);
    visibility: visible;
  }

  #footer-player-container #mzk-audio { display: none; }

  /* --- Progress bar on top (full width) --- */
  .player-progress-top {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    overflow: visible;
  }

  .player-progress-top .player-progress-bar {
    position: relative;
    height: 4px;
    background: transparent;
    cursor: pointer;
    touch-action: none;
  }

  .player-progress-top .player-progress-bar::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--mzk-player-line);
    content: "";
  }

  .player-progress-top .player-progress-buffer,
  .player-progress-top .player-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
  }

  .player-progress-top .player-progress-buffer { background: rgba(15, 23, 42, .12); }
  .player-progress-top .player-progress { background: var(--mzk-player-accent); transition: width .1s linear; }

  .player-progress-top .player-progress-thumb {
    position: absolute;
    top: 50%;
    right: -6px;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--mzk-player-accent);
    box-shadow: 0 1px 5px rgba(15, 23, 42, .28);
    transform: translateY(-50%) scale(0);
    transition: transform .16s ease;
  }

  .player-progress-top .player-progress-bar:hover .player-progress-thumb {
    transform: translateY(-50%) scale(1);
  }

  /* --- Main bar inner: 3-zone flex --- */
  .player-bar-inner {
    display: flex;
    width: 100%;
    height: var(--mzk-player-desktop-h);
    align-items: center;
    gap: clamp(12px, 1.6vw, 24px);
    padding: 0 clamp(12px, 2vw, 28px);
  }

  /* --- Left: Track Info --- */
  .player-track-info {
    display: flex;
    min-width: 0;
    flex: 0 1 320px;
    align-items: center;
    gap: 12px;
  }

  .player-cover-link,
  .player-cover {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    flex: 0 0 44px;
  }

  .player-cover-link {
    overflow: hidden;
    background: var(--mzk-player-soft);
  }

  .player-cover { object-fit: cover; }

  .player-text {
    display: block;
    min-width: 0;
    overflow: hidden;
  }

  .player-title,
  .player-artist {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .player-title {
    color: var(--mzk-player-text);
    font-size: 14px;
    font-weight: 750;
    line-height: 18px;
  }

  .player-artist {
    margin-top: 2px;
    color: var(--mzk-player-muted);
    font-size: 12px;
    line-height: 16px;
  }

  /* --- Center: Controls + Time --- */
  .player-center {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: 16px;
  }

  .player-controls {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .player-time-display {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
  }

  .player-time {
    color: var(--mzk-player-muted);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    min-width: 4ch;
    text-align: center;
  }

  .player-time-sep {
    color: var(--mzk-player-line);
    font-size: 12px;
  }

  /* --- Buttons (40x40 min click zone) --- */
  .player-btn {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--mzk-player-muted);
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    transition: color .16s ease, background-color .16s ease, transform .12s ease;
  }

  .player-btn:hover,
  .player-volume-icon:hover,
  .player-exbtn:hover {
    color: var(--mzk-player-text);
    background: var(--mzk-player-soft);
  }

  .player-btn:active,
  .player-volume-icon:active,
  .player-exbtn:active,
  .player-play:active {
    transform: scale(.92);
  }

  .player-btn.active {
    color: var(--mzk-player-accent);
    background: var(--color-primary-soft);
  }

  .player-btn svg { transition: transform .12s ease; }
  .player-btn:hover svg { transform: scale(1.1); }

  /* --- Play/Pause (48x48, main) --- */
  .player-play {
    position: relative;
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--color-on-primary);
    background: var(--mzk-player-accent);
    box-shadow: 0 6px 18px rgba(var(--color-primary-rgb), .3);
    cursor: pointer;
    transition: background-color .16s ease, transform .12s ease, box-shadow .16s ease;
  }

  .player-play:hover {
    color: var(--color-on-primary);
    background: var(--color-primary);
    box-shadow: 0 8px 24px rgba(var(--color-primary-rgb), .4);
  }

  .player-play svg {
    width: 26px;
    height: 26px;
    transform: translateX(1px);
  }

  .player-play.is-paused svg { display: none; }

  .player-play.is-paused::before,
  .player-play.is-paused::after {
    position: absolute;
    top: 13px;
    width: 4px;
    height: 22px;
    border-radius: 2px;
    background: currentColor;
    content: "";
  }

  .player-play.is-paused::before { left: 17px; }
  .player-play.is-paused::after { right: 17px; }

  /* --- Right: Volume + Actions --- */
  .player-extra {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
  }

  .player-volume-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .player-volume-icon {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--mzk-player-muted);
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    transition: color .16s ease, background-color .16s ease, transform .12s ease;
  }

  .player-volume-icon.is-muted { color: var(--mzk-player-danger); }

  .player-volume-slider {
    width: 96px;
    height: 4px;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    accent-color: var(--mzk-player-accent);
    appearance: none;
    -webkit-appearance: none;
    background: var(--mzk-player-line);
  }

  .player-volume-slider::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--mzk-player-accent);
    box-shadow: 0 1px 4px rgba(15, 23, 42, .24);
    appearance: none;
    -webkit-appearance: none;
  }

  .player-volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--mzk-player-accent);
    box-shadow: 0 1px 4px rgba(15, 23, 42, .24);
  }

  .player-volume-slider::-moz-range-track {
    height: 4px;
    border-radius: 2px;
    background: var(--mzk-player-line);
  }

  .player-actions {
    display: flex;
    align-items: center;
    gap: 2px;
  }

  .player-actions .player-btn {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }

  .player-actions .player-btn svg {
    width: 17px;
    height: 17px;
  }

  .player-exbtn {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--mzk-player-muted);
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    transition: color .16s ease, background-color .16s ease, transform .12s ease;
  }

  .player-exbtn.active {
    color: var(--mzk-player-text);
    background: var(--mzk-player-soft);
  }

  .player-quality-wrap { position: relative; }

  .player-quality {
    display: inline-flex;
    height: 36px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 10px;
    color: var(--mzk-player-text);
    border: 1px solid var(--mzk-player-border);
    background: var(--mzk-player-panel);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .16s ease, color .16s ease, background-color .16s ease;
  }

  .player-quality {
    min-width: 100px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 750;
  }

  .player-quality:hover:not(:disabled),
  .player-quality[aria-expanded="true"] {
    color: var(--mzk-player-accent);
    background: var(--color-primary-soft);
  }

  .player-quality:disabled {
    color: var(--mzk-player-muted);
    cursor: default;
    opacity: .75;
  }

  .player-quality svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
  }

  .player-quality-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    z-index: 10030;
    width: 150px;
    padding: 6px;
    border: 1px solid var(--mzk-player-border);
    border-radius: 12px;
    background: var(--mzk-player-panel);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .42);
  }

  .player-quality-menu[hidden] { display: none; }

  .player-quality-option {
    display: flex;
    width: 100%;
    min-height: 38px;
    align-items: center;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    color: var(--mzk-player-muted);
    font-size: 12px;
    font-weight: 650;
    text-align: left;
    background: transparent;
    cursor: pointer;
  }

  .player-quality-option:hover,
  .player-quality-option:focus-visible,
  .player-quality-option[aria-checked="true"] {
    color: var(--mzk-player-text);
    background: var(--color-primary-soft);
  }

  .player-quality-option[aria-checked="true"]::after {
    margin-left: auto;
    color: var(--mzk-player-accent);
    font-size: 14px;
    font-weight: 900;
    content: "\2713";
  }

  .player-close svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .player-restore {
    right: 22px;
    bottom: 24px;
  }
  body.mzk-player-active .player-restore {
    bottom: calc(24px + var(--mzk-player-mobile-h, 64px));
  }

  body.mzk-player-active {
    padding-bottom: var(--mzk-player-desktop-h) !important;
  }

  /* --- Live state --- */
  .player-bar.is-live .player-progress-top .player-progress {
    overflow: hidden;
    background: linear-gradient(90deg, #37c875 0%, var(--mzk-player-accent) 48%, #37c875 100%);
    background-size: 220% 100%;
    animation: mzk-live-progress 2.4s linear infinite;
  }

  .player-bar.is-live .player-progress-thumb { display: none; }

  .player-bar.is-live #player-current {
    color: #27995a;
    font-weight: 750;
    letter-spacing: .08em;
  }

  .player-bar.is-live #player-duration {
    color: #6f7786;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .04em;
  }

  /* --- Responsive: hide less important elements --- */
  @media (max-width: 1439px) {
    .player-quality-wrap { display: none; }
  }

  @media (max-width: 1023px) {
    .player-extra .player-exbtn:not(.player-close) { display: none; }
    .player-volume-slider { width: 72px; }
    .player-quality-wrap { display: none; }
  }

}

/* ============================================================
   7. FULL-SCREEN MODAL QUEUE PANEL (mobile-first)
   ============================================================ */
.player-queue-overlay {
  position: fixed;
  inset: 0;
  z-index: 10010;
  visibility: hidden;
  background: rgba(15, 23, 42, .58);
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease, visibility .24s ease;
}

.player-queue-overlay.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.player-queue-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10020;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--mzk-player-text);
  background: var(--mzk-player-panel);
  transform: translateY(104%);
  pointer-events: none;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}

.player-queue-panel.open {
  transform: translateY(0);
  pointer-events: auto;
}

/* --- Header --- */
.player-queue-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 6px max(16px, env(safe-area-inset-right)) 2px max(16px, env(safe-area-inset-left));
}

.player-queue-title {
  color: var(--mzk-player-text);
  font-size: 20px;
  font-weight: 850;
  line-height: 26px;
}

.player-queue-close {
  display: grid;
  width: 44px;
  height: 44px;
  min-width: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--mzk-player-muted);
  background: var(--mzk-player-soft);
  cursor: pointer;
  transition: color .16s ease, background-color .16s ease;
}

.player-queue-close:active {
  color: var(--mzk-player-text);
  background: var(--mzk-player-border);
}

/* --- Tabs --- */
.player-queue-tabs {
  display: flex;
  flex: 0 0 auto;
  gap: 20px;
  padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--mzk-player-border);
  overflow-x: auto;
  scrollbar-width: none;
}

.player-queue-tabs::-webkit-scrollbar { display: none; }

.player-queue-tabs button,
.player-queue-tabs a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 0 10px;
  border: 0;
  color: var(--mzk-player-muted);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  background: transparent;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: color .16s ease;
}

.player-queue-tabs button svg,
.player-queue-tabs a svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.player-queue-tabs button::after,
.player-queue-tabs a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: transparent;
  content: "";
  transition: background .16s ease;
}

.player-queue-tabs button.is-active,
.player-queue-tabs a.is-active { color: var(--mzk-player-text); }
.player-queue-tabs button.is-active::after,
.player-queue-tabs a.is-active::after { background: var(--mzk-player-accent); }

/* --- Track list (scrollable, flex:1) --- */
.player-queue-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 10px max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.player-queue-list::-webkit-scrollbar { display: none; }
.player-queue-list::after { display: block; height: 20px; content: ""; }

/* --- Tab content (library sections inside the window) --- */
.player-queue-tab-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 10px max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.player-queue-tab-content[hidden] { display: none !important; }
.player-queue-tab-content::-webkit-scrollbar { display: none; }
.player-queue-tab-content::after { display: block; height: 20px; content: ""; }

.player-queue-tab-content .player-queue-empty {
  margin: 0;
}

.player-tab-back {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0 0 10px;
  padding: 4px 14px;
  border: 0;
  border-radius: 999px;
  color: var(--mzk-player-text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  background: var(--mzk-player-soft);
  cursor: pointer;
  transition: background-color .16s ease;
}

.player-tab-back:hover { background: var(--mzk-player-border); }

.player-queue-tab-content .mzk-navigation {
  margin-top: 16px;
}

.player-queue-empty {
  margin: 0;
  padding: 30px 16px;
  color: var(--mzk-player-muted);
  font-size: 13px;
  text-align: center;
}

.player-queue-item {
  display: grid;
  width: 100%;
  min-height: 66px;
  grid-template-columns: 44px 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 6px;
  border: 0;
  border-radius: 14px;
  color: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: background .16s ease;
}

.player-queue-item:active,
.player-queue-item.is-current { background: #f8fafc; }

.player-queue-item-play {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--color-on-primary);
  background: var(--color-primary);
  cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}

.player-queue-item-play:active { transform: scale(.92); }

.player-queue-item-play.is-radio { color: var(--color-primary-text); }

.player-queue-item.is-current .player-queue-item-play { background: var(--mzk-player-danger); }

.player-queue-item-play svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.player-queue-item-cover {
  display: block;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  background: var(--mzk-player-soft) no-repeat center/cover;
  overflow: hidden;
}

.player-queue-item-cover.is-placeholder {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2394a3b8'%3E%3Cpath d='M9 18V5l10-2v13'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Ccircle cx='16' cy='16' r='3'/%3E%3C/svg%3E");
  background-size: 22px 22px;
}

.player-queue-item-info { display: block; min-width: 0; }

.player-queue-item-title,
.player-queue-item-artist {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-queue-item-artist {
  color: var(--mzk-player-text);
  font-size: 14px;
  font-weight: 750;
  line-height: 19px;
}

.player-queue-item-title {
  margin-top: 2px;
  color: var(--mzk-player-muted);
  font-size: 12px;
  line-height: 17px;
}

.player-queue-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.player-queue-item-action {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--mzk-player-muted);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: color .16s ease, background-color .16s ease;
}

.player-queue-item-action:active {
  color: var(--color-primary-text);
  background: var(--color-primary-soft);
}

.player-queue-item-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.player-queue-item-action.is-radio-fav.is-active {
  color: #ef4444;
}

.player-queue-item-action.is-radio-fav.is-active svg path {
  fill: currentColor;
}

.player-queue-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 10px;
  overscroll-behavior: contain;
}

body.mzk-player-queue-open .player-queue-list {
  padding-bottom: calc(190px + max(12px, env(safe-area-inset-bottom)));
}

@media (min-width: 601px) {
  body.mzk-player-queue-open .player-queue-list {
    padding-bottom: calc(220px + max(12px, env(safe-area-inset-bottom)));
  }
}

@media (max-width: 375px) {
  body.mzk-player-queue-open .player-queue-list {
    padding-bottom: calc(170px + max(12px, env(safe-area-inset-bottom)));
  }
}

.player-queue-empty {
  margin: 0;
  padding: 30px 16px;
  color: var(--mzk-player-muted);
  font-size: 13px;
  text-align: center;
}

.player-queue-item {
  display: grid;
  width: 100%;
  min-height: 62px;
  grid-template-columns: 40px 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  border: 0;
  border-radius: 14px;
  color: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.player-queue-item:hover,
.player-queue-item.is-current { background: #f8fafc; }

.player-queue-item-play {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--color-on-primary);
  background: var(--color-primary);
  cursor: pointer;
}

.player-queue-item-play.is-radio { color: var(--color-primary-text); }

.player-queue-item.is-current .player-queue-item-play { background: var(--mzk-player-danger); }

.player-queue-item-play svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.player-queue-item-cover {
  display: block;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 8px;
  background: var(--mzk-player-soft) no-repeat center/cover;
  overflow: hidden;
}

.player-queue-item-cover.is-placeholder {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2394a3b8'%3E%3Cpath d='M9 18V5l10-2v13'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Ccircle cx='16' cy='16' r='3'/%3E%3C/svg%3E");
  background-size: 18px 18px;
}

.player-queue-item-info { display: block; min-width: 0; }

.player-queue-item-title,
.player-queue-item-artist {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-queue-item-artist {
  color: var(--mzk-player-text);
  font-size: 14px;
  font-weight: 750;
  line-height: 19px;
}

.player-queue-item-title {
  margin-top: 2px;
  color: var(--mzk-player-muted);
  font-size: 12px;
  line-height: 17px;
}

.player-queue-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.player-queue-item-action {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--mzk-player-muted);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}

.player-queue-item-action:hover {
  color: var(--color-primary-text);
  background: var(--color-primary-soft);
}

.player-queue-item-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Radio stations: no cover thumbnail — compact row */
.player-queue-item.is-radio {
  grid-template-columns: 40px minmax(0, 1fr) auto;
  min-height: 50px;
  padding: 6px 8px;
}

.player-queue-item.is-radio.is-current {
  background: #f0f4ff;
}

/* Radio station play/pause button */
.player-queue-item.is-radio .player-queue-item-play {
  width: 40px;
  height: 40px;
  color: var(--color-primary-text);
  background: var(--color-primary-soft);
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.player-queue-item.is-radio .player-queue-item-play:hover { transform: scale(1.08); }

.player-queue-item.is-radio .player-queue-item-play svg {
  width: 19px;
  height: 19px;
  transition: transform .2s ease, opacity .2s ease;
}

.player-queue-item.is-radio .player-queue-item-play .icon-play { display: block; }
.player-queue-item.is-radio .player-queue-item-play .icon-pause { display: none; }

.player-queue-item.is-radio.is-current .player-queue-item-play {
  color: var(--color-on-primary);
  background: var(--color-primary);
}

.player-queue-item.is-radio.is-current.is-playing .player-queue-item-play {
  animation: mzk-radio-pulse 1.6s ease-out infinite;
}

.player-queue-item.is-radio.is-current.is-playing .player-queue-item-play .icon-play { display: none; }
.player-queue-item.is-radio.is-current.is-playing .player-queue-item-play .icon-pause {
  display: block;
  animation: mzk-radio-icon-in .2s ease;
}

@keyframes mzk-radio-pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--color-primary-rgb), .4); }
  100% { box-shadow: 0 0 0 12px rgba(var(--color-primary-rgb), 0); }
}

@keyframes mzk-radio-icon-in {
  from { opacity: 0; transform: scale(.6); }
  to { opacity: 1; transform: scale(1); }
}



/* ============================================================
   8. DESKTOP QUEUE PANEL (1025px+ wide screens)
   ============================================================ */
@media (hover: hover) and (min-width: 1025px) {
  .player-queue-panel {
    inset: 0 0 0 auto;
    width: min(420px, 100vw - 24px);
    border-left: 1px solid var(--mzk-player-border);
    box-shadow: -8px 0 32px rgba(15, 23, 42, .12);
    transform: translateX(110%);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  }

  .player-queue-panel.open {
    transform: translateX(0);
  }

  .player-queue-expanded {
    display: none !important;
  }

  body.mzk-player-queue-open .player-queue-list {
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }

  body.mzk-player-queue-open.mzk-player-active {
    padding-bottom: var(--mzk-player-desktop-h) !important;
  }
}

/* ============================================================
   9. ACCESSIBILITY
   ============================================================ */
#player-mobile button:focus-visible,
#player-mobile a:focus-visible,
#player-mobile [role="slider"]:focus-visible,
#footer-player-container button:focus-visible,
#footer-player-container a:focus-visible,
#footer-player-container input:focus-visible,
#footer-player-container [role="slider"]:focus-visible,
.player-restore:focus-visible,
.player-queue-panel button:focus-visible,
.player-queue-panel a:focus-visible,
.player-queue-panel [role="slider"]:focus-visible {
  outline: 2px solid var(--mzk-player-focus);
  outline-offset: 2px;
}

#player-mobile [hidden],
#footer-player-container [hidden] { display: none !important; }

/* ============================================================
   10. PAGE TRANSITION
   ============================================================ */
.mzk-is-navigating .mzk-page {
  opacity: .72;
  pointer-events: none;
  transition: opacity .15s ease;
}

/* ============================================================
   11. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  #player-mobile,
  #footer-player-container,
  .player-queue-panel,
  .player-queue-overlay,
  #player-mobile.is-live .player-mobile__progress-fill,
   .player-bar.is-live .player-progress-top .player-progress,
  .mzk-is-navigating .mzk-page {
    transition: none;
    animation: none;
  }
}

/* ============================================================
  10. HIGH CONTRAST
   ============================================================ */
@media (prefers-contrast: more) {
  #player-mobile,
  #footer-player-container,
  .player-queue-panel {
    border-color: #000 !important;
    color: #fff !important;
    background: #000 !important;
    backdrop-filter: none;
  }
}


/* MUZ UKRAINE player: permanent dark application theme. */
#footer-player-container,
#player-mobile {
  --mzk-player-bg: rgba(7,17,27,.985);
  --mzk-player-panel: #0d1926;
  --mzk-player-border: rgba(255,255,255,.09);
  --mzk-player-text: #f4f7fa;
  --mzk-player-muted: #91a0b2;
  --mzk-player-soft: #142230;
  --mzk-player-accent: #ffa200;
  --mzk-player-focus: #ffa200;
  color-scheme: dark;
}
#footer-player-container { color:var(--mzk-player-text); background:var(--mzk-player-bg); border-top-color:var(--mzk-player-border); }
#player-mobile { color:var(--mzk-player-text); background:var(--mzk-player-bg); border-top-color:var(--mzk-player-border); }
#footer-player-container button svg,
#player-mobile button svg,
.player-queue-panel button svg {
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
#footer-player-container button svg *,
#player-mobile button svg *,
.player-queue-panel button svg * {
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.player-btn,
.player-exbtn,
.player-volume-icon,
.player-mobile__prev,
.player-mobile__next,
.player-mobile__action { color:var(--mzk-player-muted); transition:color .18s ease,filter .18s ease,transform .18s ease; }
.player-btn:hover,
.player-exbtn:hover,
.player-volume-icon:hover,
.player-mobile__prev:hover,
.player-mobile__next:hover,
.player-mobile__action:hover,
.player-btn.active,
.player-exbtn.active,
.player-btn[aria-pressed="true"],
.player-exbtn[aria-pressed="true"],
.player-mobile__action[aria-pressed="true"] {
  color:#ffa200;
  filter:drop-shadow(0 0 6px rgba(255, 162, 0,.28));
}
.player-play,
.player-mobile__play { color:#07111c; border:1px solid #ffa200; background:#ffa200; box-shadow:0 7px 20px rgba(255,162,0,.22); }
.player-play:hover,
.player-play.is-paused,
.player-play[aria-pressed="true"],
.player-mobile__play:hover,
.player-mobile__play.is-playing,
.player-mobile__play[aria-pressed="true"] {
  color:#07111c;
  background:#ffa200;
  filter:drop-shadow(0 0 8px rgba(255, 162, 0,.3));
}
.player-quality { color:var(--mzk-player-text); border-color:var(--mzk-player-border); background:var(--mzk-player-soft); }

/* Player Queue Drawer: unified global component. */
.player-queue-overlay{background:rgba(2,8,14,.74);backdrop-filter:blur(2px)}
.player-queue-panel{inset:0 0 0 auto;width:min(460px,100vw);max-width:100%;color:#f4f7fa;background:#0b1723;border-left:1px solid rgba(255,255,255,.08);box-shadow:-18px 0 52px rgba(0,0,0,.42);transform:translateX(105%);color-scheme:dark}
.player-queue-panel.open{transform:translateX(0)}
.player-queue-header{min-height:68px;padding:12px max(16px,env(safe-area-inset-right)) 8px 18px;border-bottom:1px solid rgba(255,255,255,.07)}
.player-queue-title{color:#f4f7fa;font-size:20px;font-weight:700;line-height:1.2}
.player-queue-close{width:44px;height:44px;color:#a8b3c1;background:#142230;border:1px solid rgba(255,255,255,.08)}
.player-queue-close:hover,.player-queue-close:focus-visible{color:#111;background:#ffa200;border-color:#ffa200}
.player-queue-close svg{width:21px;height:21px}
.player-queue-tabs{gap:4px;padding:0 14px;border-bottom:1px solid rgba(255,255,255,.08);background:#0b1723}
.player-queue-tabs button,.player-queue-tabs a{min-width:max-content;min-height:50px;flex:1 1 auto;justify-content:center;gap:7px;padding:0 10px 9px;color:#8f9cad;font-size:13px;font-weight:650}
.player-queue-tabs button:hover,.player-queue-tabs a:hover{color:#f4f7fa}
.player-queue-tabs button svg,.player-queue-tabs a svg{width:18px;height:18px}
.player-queue-tabs button:after,.player-queue-tabs a:after{height:2px;border-radius:2px}
.player-queue-tabs button.is-active,.player-queue-tabs a.is-active{color:#ffa200;background:transparent}
.player-queue-panel.is-track-mode [data-player-queue-mode="radio"],.player-queue-panel.is-radio-mode [data-player-queue-mode="track"]{display:none!important}
.player-queue-list,.player-queue-tab-content{padding:12px max(12px,env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:#0b1723;scrollbar-width:thin;scrollbar-color:#2a3948 transparent}
.player-queue-list::-webkit-scrollbar,.player-queue-tab-content::-webkit-scrollbar{display:block;width:6px}
.player-queue-list::-webkit-scrollbar-thumb,.player-queue-tab-content::-webkit-scrollbar-thumb{border-radius:6px;background:#2a3948}
.player-queue-empty{margin:16px 0;padding:28px 18px;color:#8f9cad;background:#0d1926;border:1px dashed rgba(255,255,255,.1);border-radius:14px}
.player-queue-item{position:relative;min-height:66px;grid-template-columns:44px minmax(0,1fr) auto;gap:10px;margin-bottom:6px;padding:8px;border:1px solid transparent;border-radius:13px;color:#f4f7fa;background:transparent;transition:background-color .16s ease,border-color .16s ease}
.player-queue-item:hover{background:#101f2d;border-color:rgba(255,255,255,.06)}
.player-queue-item.is-current{background:#122332;border-color:rgba(255,162,0,.2)}
.player-queue-item.is-current:before{position:absolute;top:10px;bottom:10px;left:-1px;width:2px;border-radius:0 2px 2px 0;background:#ffa200;content:""}
.player-queue-item-cover{width:44px;height:44px;min-width:44px;border-radius:10px;background-color:#142230}
.player-queue-item-artist{color:#f4f7fa;font-size:14px;font-weight:650;line-height:19px}
.player-queue-item-title{color:#8997a9;font-size:12px;line-height:17px}
.player-queue-item.is-current .player-queue-item-artist{color:#ffa200}
.player-queue-item-play,.player-queue-item.is-radio .player-queue-item-play{display:grid;width:42px;height:42px;place-items:center;color:#111;background:#ffa200;border:1px solid #ffa200;box-shadow:none}
.player-queue-item-play:hover,.player-queue-item.is-radio .player-queue-item-play:hover{box-shadow:0 0 0 4px rgba(255,162,0,.08);transform:scale(1.05)}
.player-queue-item-play svg,.player-queue-item.is-radio .player-queue-item-play svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2.2}.player-queue-item:not(.is-radio).is-current .player-queue-item-play{color:#111;background:#ffa200}.player-queue-item:not(.is-radio) .player-queue-item-play .icon-equalizer{display:none}.player-queue-item:not(.is-radio).is-current.is-playing .player-queue-item-play .icon-play{display:none}.player-queue-item:not(.is-radio).is-current.is-playing .player-queue-item-play .icon-equalizer{display:block}.player-queue-item:not(.is-radio).is-current.is-playing .icon-equalizer path{transform-box:view-box;transform-origin:center;animation:mzk-song-equalizer .72s ease-in-out infinite}.player-queue-item:not(.is-radio).is-current.is-playing .icon-equalizer path:nth-child(2){animation-delay:-.36s}.player-queue-item:not(.is-radio).is-current.is-playing .icon-equalizer path:nth-child(3){animation-delay:-.54s}.player-queue-item:not(.is-radio).is-current.is-playing .icon-equalizer path:nth-child(4){animation-delay:-.18s}@keyframes mzk-song-equalizer{0%,100%{transform:scaleY(.48)}50%{transform:scaleY(1)}}
.player-queue-item-actions{gap:6px}
.player-queue-item-action{width:44px;height:44px;color:#a5b0be;background:rgba(255,255,255,.045);border:1px solid transparent}
.player-queue-item-action:hover,.player-queue-item-action:focus-visible{color:#fff;background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.08)}
.player-queue-item-action.is-radio-fav:hover,.player-queue-item-action.is-track-fav:hover{color:#ff5a92;background:rgba(255,77,141,.1);border-color:rgba(255,77,141,.16)}
.player-queue-item-action.is-radio-fav.is-active,.player-queue-item-action.is-track-fav.is-active{color:#ff4d8d;background:rgba(255,62,131,.12);border-color:rgba(255,77,141,.2)}.player-queue-item-action.is-track-fav.is-active svg path{fill:currentColor;stroke:currentColor}
.player-queue-item.is-radio{min-height:64px;grid-template-columns:44px minmax(0,1fr) auto;padding:8px}
.player-queue-item.is-radio.is-current{background:#122332;border-color:rgba(255,162,0,.2)}
.player-queue-item.is-radio.is-current .player-queue-item-play{color:#111;background:#ffa200}
.player-queue-item.is-radio.is-current.is-playing .player-queue-item-play{animation:none}
.player-queue-item.is-radio.is-current.is-playing .player-queue-item-play .icon-pause{display:none}
.player-queue-item.is-radio.is-current.is-playing .player-queue-item-play:before{width:4px;height:13px;border-radius:2px;background:currentColor;box-shadow:-7px 3px 0 currentColor,7px -3px 0 currentColor;content:"";animation:mzk-drawer-radio-wave .7s ease-in-out infinite alternate}
@keyframes mzk-drawer-radio-wave{from{transform:scaleY(.62)}to{transform:scaleY(1.08)}}
.player-tab-back{min-height:40px;color:#ffa200;background:#142230;border:1px solid rgba(255,162,0,.18)}
.player-tab-back:hover{color:#111;background:#ffa200}
.player-queue-tab-content .mzk-track-list,.player-queue-tab-content .mzk-playlists-grid{display:grid;gap:8px}
.player-queue-tab-content .mzk-track-row,.player-queue-tab-content .mzk-playlists-card,.player-queue-tab-content .mzk-library-empty,.player-queue-tab-content .mzk-library-auth{color:#f4f7fa;background:#0d1926;border-color:rgba(255,255,255,.07);box-shadow:none}
.player-queue-expanded{color:#f4f7fa;background:#0d1926;border-top:1px solid rgba(255,255,255,.08);box-shadow:0 -12px 30px rgba(0,0,0,.28)}
.player-queue-expanded__artist{color:#f4f7fa}.player-queue-expanded__title{color:#8f9cad}
.player-queue-expanded__play{color:#111;background:#ffa200}
.player-queue-expanded__progress-fill{background:#ffa200}
@media(hover:hover){.player-queue-item.is-radio.is-current.is-playing .player-queue-item-play:hover:before{width:4px;height:18px;margin-right:5px;box-shadow:none;animation:none}.player-queue-item.is-radio.is-current.is-playing .player-queue-item-play:hover:after{display:block;width:4px;height:18px;border-radius:2px;background:currentColor;content:""}}
@media(max-width:767px){.player-queue-panel{width:100vw}.player-queue-header{min-height:62px;padding-top:max(8px,env(safe-area-inset-top))}.player-queue-tabs{padding-inline:12px}.player-queue-tabs button,.player-queue-tabs a{min-height:48px;padding-inline:9px}.player-queue-item{min-height:62px;gap:8px;padding:7px 6px}.player-queue-item.is-radio{grid-template-columns:44px minmax(0,1fr) 44px}.player-queue-item-action{width:44px;height:44px}}
@media(max-width:374px){.player-queue-tabs{gap:0}.player-queue-tabs button,.player-queue-tabs a{padding-inline:8px;font-size:12px}.player-queue-item-artist{font-size:13px}}
@media(prefers-reduced-motion:reduce){.player-queue-panel{transition:none}.player-queue-item.is-radio.is-current.is-playing .player-queue-item-play:before,.player-queue-item:not(.is-radio).is-current.is-playing .icon-equalizer path{animation:none}}
