/* =====================================================
   WILDVERSE PLAYER SHELL — CONTROLS
===================================================== */

#wvNowDeck.wv-player-shell .wv-player-transport {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

#wvNowDeck.wv-player-shell .wv-player-control,
#wvNowDeck.wv-player-shell .wv-now-tool,
#wvNowDeck.wv-player-shell .wv-now-clear,
#wvNowDeck.wv-player-shell .wv-queue-close {
  appearance: none;
  -webkit-appearance: none;

  display: inline-grid;
  place-items: center;

  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;

  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.04);

  color: rgba(238, 250, 255, 0.92);
  cursor: pointer;

  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.38);

  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
}

#wvNowDeck.wv-player-shell .wv-player-control {
  width: 42px;
  height: 42px;
  font-size: 0.95rem;
}

#wvNowDeck.wv-player-shell .wv-player-control--primary {
  width: 58px;
  height: 58px;

  color: #021018;
  font-size: 1.18rem;

  border-color: rgba(255, 255, 255, 0.58);
  background:
    radial-gradient(circle at 35% 26%, #ffffff 0%, #dfffff 18%, var(--wv-player-cyan) 54%, #2ea9ff 100%);

  box-shadow:
    0 0 18px rgba(125, 249, 255, 0.65),
    0 0 42px rgba(125, 249, 255, 0.24),
    0 10px 26px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -8px 14px rgba(0, 80, 120, 0.24);
}

#wvNowDeck.wv-player-shell .wv-player-control:hover,
#wvNowDeck.wv-player-shell .wv-player-control:focus-visible,
#wvNowDeck.wv-player-shell .wv-now-tool:hover,
#wvNowDeck.wv-player-shell .wv-now-tool:focus-visible,
#wvNowDeck.wv-player-shell .wv-now-clear:hover,
#wvNowDeck.wv-player-shell .wv-now-clear:focus-visible,
#wvNowDeck.wv-player-shell .wv-queue-close:hover,
#wvNowDeck.wv-player-shell .wv-queue-close:focus-visible {
  border-color: rgba(125, 249, 255, 0.62);
  color: #ffffff;
  outline: none;
  transform: translateY(-1px);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.48),
    0 0 22px rgba(125, 249, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.23);
}

#wvNowDeck.wv-player-shell .wv-player-control--primary:hover,
#wvNowDeck.wv-player-shell .wv-player-control--primary:focus-visible {
  color: #020a0f;
  box-shadow:
    0 0 22px rgba(125, 249, 255, 0.86),
    0 0 52px rgba(125, 249, 255, 0.32),
    0 12px 28px rgba(0, 0, 0, 0.54),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#wvNowDeck.wv-player-shell .wv-player-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.44rem;
}

#wvNowDeck.wv-player-shell .wv-now-tool,
#wvNowDeck.wv-player-shell .wv-now-clear {
  min-width: 40px;
  height: 40px;
  padding: 0 0.66rem;

  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.045em;
}

#wvNowDeck.wv-player-shell .wv-now-tool {
  display: inline-flex;
  gap: 0.35rem;
}

#wvNowDeck.wv-player-shell .wv-now-tool.is-active,
#wvNowDeck.wv-player-shell .wv-now-tool[aria-pressed="true"] {
  border-color: rgba(125, 249, 255, 0.75);
  color: #aaffff;

  background:
    linear-gradient(135deg, rgba(125, 249, 255, 0.2), rgba(84, 242, 167, 0.08)),
    rgba(255, 255, 255, 0.07);

  box-shadow:
    0 0 18px rgba(125, 249, 255, 0.22),
    inset 0 0 12px rgba(125, 249, 255, 0.07);
}

#wvNowDeck.wv-player-shell .wv-queue-badge {
  display: inline-grid;
  place-items: center;

  min-width: 18px;
  height: 18px;
  padding: 0 0.3rem;

  border-radius: 999px;
  background: rgba(125, 249, 255, 0.18);
  color: #eaffff;

  font-size: 0.62rem;
  font-weight: 950;
}

#wvNowDeck.wv-player-shell .wv-now-clear {
  width: 40px;
  padding: 0;
}
/* Prevent action cluster from shrinking into the progress bar */
#wvNowDeck.wv-player-shell .wv-player-actions {
  flex: 0 0 auto;
  white-space: nowrap;
}

#wvNowDeck.wv-player-shell .wv-now-tool,
#wvNowDeck.wv-player-shell .wv-now-clear {
  flex: 0 0 auto;
}
/* =====================================================
   PLAYER TOOLBAR — repeat / queue / delete
   Mobile-safe sizing and badge layout
   File: 03-player-shell-controls.css
===================================================== */

@media (max-width: 760px) {
  #wvNowDeck.wv-player-shell .wv-player-bottom {
    display: grid;
    grid-template-columns: minmax(86px, 1fr) auto;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    min-width: 0;
  }

  #wvNowDeck.wv-player-shell .wv-player-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.36rem;
    min-width: 0;
    white-space: nowrap;
  }

  #wvNowDeck.wv-player-shell .wv-now-tool,
  #wvNowDeck.wv-player-shell .wv-now-clear {
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1;
  }

  #wvNowDeck.wv-player-shell .wv-now-tool span:not(.wv-queue-badge) {
    display: none;
  }

  #wvNowDeck.wv-player-shell .wv-queue-toggle {
    position: relative;
    overflow: visible;
  }

  #wvNowDeck.wv-player-shell .wv-queue-badge {
    position: absolute;
    right: -0.16rem;
    top: -0.18rem;

    display: inline-grid;
    place-items: center;

    min-width: 18px;
    height: 18px;
    padding: 0 0.28rem;

    border: 1px solid rgba(125, 249, 255, 0.38);
    border-radius: 999px;

    background:
      radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.55), rgba(125, 249, 255, 0.24)),
      rgba(18, 45, 58, 0.96);

    color: #eaffff;
    font-size: 0.6rem;
    font-weight: 950;
    line-height: 1;

    box-shadow:
      0 0 12px rgba(125, 249, 255, 0.24),
      0 4px 10px rgba(0, 0, 0, 0.42);
  }
}

@media (max-width: 430px) {
  #wvNowDeck.wv-player-shell .wv-player-bottom {
    grid-template-columns: minmax(70px, 1fr) auto;
    gap: 0.45rem;
  }

  #wvNowDeck.wv-player-shell .wv-player-actions {
    gap: 0.26rem;
  }

  #wvNowDeck.wv-player-shell .wv-now-tool,
  #wvNowDeck.wv-player-shell .wv-now-clear {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 0.8rem;
  }

  #wvNowDeck.wv-player-shell .wv-queue-badge {
    right: -0.12rem;
    top: -0.48rem;
    min-width: 17px;
    height: 17px;
    font-size: 0.58rem;
  }
}
/* Queue toggle active state */
#wvNowDeck.wv-player-shell.is-queue-open #wvQueueToggle {
  border-color: rgba(125, 249, 255, 0.78);
  color: #aaffff;
  background:
    linear-gradient(135deg, rgba(125, 249, 255, 0.22), rgba(255, 79, 216, 0.09)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 20px rgba(125, 249, 255, 0.24),
    inset 0 0 12px rgba(125, 249, 255, 0.08);
}