/* =====================================================
   WILDVERSE NOW PLAYING DECK — PHASE 1
===================================================== */

.wv-now-deck {
  position: fixed;
  right: clamp(0.75rem, 2vw, 1.4rem);
  bottom: clamp(0.75rem, 2vw, 1.4rem);
  z-index: 999;
  width: min(360px, calc(100vw - 1.5rem));
  max-height: min(460px, 72vh);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
/*   border: 1px solid rgba(120, 247, 255, 0.22); */
  border-radius: 0px;
  background:
    radial-gradient(circle at 15% 0%, rgba(120, 247, 255, 0.16), transparent 38%),
    radial-gradient(circle at 90% 18%, rgba(255, 79, 216, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(5, 15, 22, 0.96), rgba(2, 7, 14, 0.94));
  color: #effbff;
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.55),
    0 0 34px rgba(120, 247, 255, 0.12),
    inset 0 0 24px rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.wv-now-deck::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(120, 247, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 247, 255, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.wv-now-deck__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-bottom: 1px solid rgba(120, 247, 255, 0.14);
  background: rgba(0, 0, 0, 0.22);
}

.wv-now-deck__head div {
  display: grid;
  gap: 0.2rem;
}

.wv-now-deck__head strong {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(120, 247, 255, 0.25);
}

.wv-now-deck__head span {
  color: rgba(220, 240, 248, 0.68);
  font-size: 0.72rem;
  font-weight: 800;
}

.wv-now-clear {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0.42rem 0.68rem;
  background: rgba(255, 255, 255, 0.055);
  color: #eaffff;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.wv-now-clear:hover,
.wv-now-clear:focus-visible {
  border-color: rgba(120, 247, 255, 0.48);
  background: rgba(120, 247, 255, 0.12);
  outline: none;
}

.wv-now-deck__list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.45rem;
  max-height: 380px;
  overflow: auto;
  padding: 0.65rem;
}

.wv-now-empty {
  margin: 0;
  padding: 1rem;
  border: 1px dashed rgba(120, 247, 255, 0.18);
  border-radius: 16px;
  color: rgba(220, 240, 248, 0.66);
  font-size: 0.85rem;
  text-align: center;
}

.wv-now-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.48rem 0.55rem;
  border: 1px solid rgba(120, 247, 255, 0.12);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(120, 247, 255, 0.065), rgba(255, 79, 216, 0.035)),
    rgba(255, 255, 255, 0.035);
}

.wv-now-row:hover {
  border-color: rgba(120, 247, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(120, 247, 255, 0.095), rgba(255, 79, 216, 0.055)),
    rgba(255, 255, 255, 0.05);
}

.wv-now-preview {
  gap: 0.35rem;
}

.wv-now-preview .wv-play {
  width: 30px;
  height: 30px;
  min-width: 30px;
  font-size: 0.75rem;
}

.wv-now-preview .wv-wave {
  display: none;
}

.wv-now-meta {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.wv-now-meta strong {
  overflow: hidden;
  color: #f5fbff;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wv-now-meta span {
  overflow: hidden;
  color: rgba(210, 230, 240, 0.62);
  font-size: 0.68rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wv-now-remove {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #f5fbff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.wv-now-remove:hover,
.wv-now-remove:focus-visible {
  border-color: rgba(255, 79, 216, 0.52);
  background: rgba(255, 79, 216, 0.13);
  color: #ffffff;
  outline: none;
}

/* Style the Add button in the table */
.wv-queue-add {
  border-color: rgba(120, 247, 255, 0.22) !important;
  background:
    linear-gradient(135deg, rgba(120, 247, 255, 0.1), rgba(255, 79, 216, 0.055)),
    rgba(255, 255, 255, 0.045) !important;
  color: #eaffff !important;
}

.wv-queue-add:hover,
.wv-queue-add:focus-visible {
  border-color: rgba(120, 247, 255, 0.55) !important;
  background: rgba(120, 247, 255, 0.13) !important;
}

/* Mobile */
@media (max-width: 760px) {
  .wv-now-deck {
    right: 0.65rem;
    bottom: 0.65rem;
    width: calc(100vw - 1.3rem);
    max-height: 55vh;
    border-radius: 0px;
  }

  .wv-now-deck__head {
    padding: 0.75rem 0.8rem;
  }

  .wv-now-deck__list {
    max-height: 42vh;
  }

  .wv-now-row {
    min-height: 44px;
  }
}
/* Keep cloned deck rows compatible with player JS,
   but visually independent from table rows */
.wv-now-row.wv-track-row {
  display: grid;
  min-height: 0;
  box-shadow: none;
}

.wv-now-row.wv-track-row:hover {
  background:
    linear-gradient(135deg, rgba(120, 247, 255, 0.095), rgba(255, 79, 216, 0.055)),
    rgba(255, 255, 255, 0.05);
}

.wv-now-row.wv-track-row.is-playing {
  background:
    linear-gradient(135deg, rgba(120, 247, 255, 0.13), rgba(255, 79, 216, 0.08)),
    rgba(255, 255, 255, 0.055);
  box-shadow:
    inset 3px 0 0 var(--wv-cyan),
    0 0 18px rgba(120, 247, 255, 0.12);
}
/* =====================================================
   WILDVERSE DECK TOOLS
===================================================== */

.wv-now-tools {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(120, 247, 255, 0.12);
  background:
    linear-gradient(90deg, rgba(120, 247, 255, 0.07), rgba(255, 79, 216, 0.045)),
    rgba(0, 0, 0, 0.16);
}

.wv-now-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  min-height: 30px;
  padding: 0.38rem 0.58rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(235, 250, 255, 0.84);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.wv-now-tool i {
  font-size: 0.78rem;
}

.wv-now-tool:hover,
.wv-now-tool:focus-visible {
  border-color: rgba(120, 247, 255, 0.45);
  background: rgba(120, 247, 255, 0.1);
  color: #ffffff;
  outline: none;
}

.wv-now-tool.is-active {
  border-color: rgba(120, 247, 255, 0.68);
  background:
    linear-gradient(135deg, rgba(120, 247, 255, 0.18), rgba(84, 242, 167, 0.08)),
    rgba(255, 255, 255, 0.06);
  color: #9ffcff;
  box-shadow:
    0 0 14px rgba(120, 247, 255, 0.18),
    inset 0 0 10px rgba(120, 247, 255, 0.06);
}

.wv-now-mode {
  margin-left: auto;
  color: rgba(220, 240, 248, 0.58);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .wv-now-tools {
    padding: 0.48rem 0.6rem;
  }

  .wv-now-tool span {
    display: none;
  }

  .wv-now-tool {
    width: 32px;
    min-width: 32px;
    padding: 0;
  }

  .wv-now-mode {
    font-size: 0.58rem;
  }
}
/* =====================================================
   WILDVERSE DECK PROGRESS BAR
===================================================== */

.wv-now-progress {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.45rem;
  padding: 0.65rem 0.75rem 0.75rem;
  border-bottom: 1px solid rgba(120, 247, 255, 0.12);
  background:
    radial-gradient(circle at 20% 0%, rgba(120, 247, 255, 0.1), transparent 42%),
    rgba(0, 0, 0, 0.18);
}

.wv-now-progress__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.wv-now-progress__meta strong {
  overflow: hidden;
  color: #f5fbff;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(120, 247, 255, 0.16);
}

.wv-now-progress__meta span {
  color: rgba(220, 240, 248, 0.68);
  font-size: 0.68rem;
  font-weight: 900;
  white-space: nowrap;
}

.wv-now-seek {
  --wv-progress: 0%;

  width: 100%;
  height: 12px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 999px;
  cursor: pointer;
  background:
    linear-gradient(
      90deg,
      #78f7ff 0%,
      #78f7ff var(--wv-progress),
      rgba(255, 255, 255, 0.09) var(--wv-progress),
      rgba(255, 255, 255, 0.09) 100%
    );
  box-shadow:
    inset 0 0 10px rgba(0, 0, 0, 0.55),
    0 0 14px rgba(120, 247, 255, 0.12);
}

.wv-now-seek::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(3, 16, 22, 0.92);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 30%, #ffffff, #78f7ff 58%, #36a9ff);
  box-shadow:
    0 0 12px rgba(120, 247, 255, 0.8),
    0 0 24px rgba(120, 247, 255, 0.28);
}

.wv-now-seek::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(3, 16, 22, 0.92);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 30%, #ffffff, #78f7ff 58%, #36a9ff);
  box-shadow:
    0 0 12px rgba(120, 247, 255, 0.8),
    0 0 24px rgba(120, 247, 255, 0.28);
}

.wv-now-seek:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(120, 247, 255, 0.16),
    0 0 20px rgba(120, 247, 255, 0.2);
}
/* =====================================================
   FIX — KEEP WILDVERSE DECK ABOVE ADS + FOOTER
===================================================== */

.wv-now-deck {
  position: fixed !important;
  right: clamp(0.75rem, 2vw, 1.4rem);
  bottom: clamp(0.75rem, 2vw, 1.4rem);
  z-index: 2147483647 !important;
}

.wildverse-ad-section,
footer,
.wv-library {
  position: relative;
  z-index: 1;
}
/* =====================================================
   WILDVERSE DECK — 3D LIFTED GLASS EFFECT
===================================================== */

.wv-now-deck {
  transform: translateZ(0);
  perspective: 900px;

  border-color: rgba(180, 255, 255, 0.28) !important;

  box-shadow:
    /* hard contact shadow under the deck */
    0 6px 0 rgba(0, 0, 0, 0.42),

    /* lifted drop shadow */
    0 22px 38px rgba(0, 0, 0, 0.58),

    /* larger ambient shadow */
    0 44px 110px rgba(0, 0, 0, 0.72),

    /* cyan outer glow */
    0 0 34px rgba(120, 247, 255, 0.14),

    /* magenta side glow */
    -18px 0 46px rgba(255, 79, 216, 0.09),

    /* inner top highlight */
    inset 0 1px 0 rgba(255, 255, 255, 0.22),

    /* inner left glass edge */
    inset 1px 0 0 rgba(180, 255, 255, 0.12),

    /* inner bottom depth */
    inset 0 -18px 28px rgba(0, 0, 0, 0.34),

    /* inner right shade */
    inset -1px 0 0 rgba(0, 0, 0, 0.4) !important;
}

/* bright top/left bevel */
.wv-now-deck::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.22) 0%,
      rgba(255, 255, 255, 0.08) 14%,
      transparent 38%
    ),
    linear-gradient(
      to bottom,
      rgba(120, 247, 255, 0.16),
      transparent 28%,
      rgba(0, 0, 0, 0.24) 100%
    );

  opacity: 0.55;
  mix-blend-mode: screen;
}

/* dark lower edge: makes the deck feel thick */
.wv-now-deck::before {
  box-shadow:
    inset 0 -12px 22px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Lift the control rows very slightly inside the glass */
.wv-now-deck__head,
.wv-now-tools,
.wv-now-progress,
.wv-now-deck__list {
  position: relative;
  z-index: 3;
}

/* Add bevels to the header/tools/progress separators */
.wv-now-deck__head,
.wv-now-tools,
.wv-now-progress {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.32);
}

/* Buttons also get raised edges */
.wv-now-clear,
.wv-now-tool {
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}

.wv-now-clear:hover,
.wv-now-tool:hover {
  transform: translateY(-1px);
  box-shadow:
    0 7px 16px rgba(0, 0, 0, 0.42),
    0 0 16px rgba(120, 247, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4);
}
#wvNowDeck .wv-now-list {
  max-height: 320px;
  overflow-y: auto;
}

#wvNowDeck .wv-now-row {
  min-height: 54px;
  padding: 8px 12px;
}

#wvNowDeck .wv-now-meta strong {
  font-size: 0.95rem;
  line-height: 1.1;
}

#wvNowDeck .wv-now-meta span {
  font-size: 0.8rem;
}
.wv-track-row.is-main-playing {
  background: rgba(130, 255, 255, 0.08);
}

.wv-track-row.is-main-playing .wv-play {
  box-shadow: 0 0 22px rgba(130, 255, 255, 0.55);
}