/*
 * Nido Musical Radio - Episode Player 2.0.5
 * Every visual rule is isolated to this plugin's three roots.
 */
.nido-episode-player-v2,
.nido-episode-archive-v2,
.nme-global-dock {
  --nme-bg: #060714;
  --nme-panel: #0d1022;
  --nme-panel-2: #11152b;
  --nme-text: #f8f9ff;
  --nme-muted: #aaa9c1;
  --nme-pink: #ff176f;
  --nme-magenta: #f000a8;
  --nme-violet: #8156ff;
  --nme-cyan: #16d9e3;
  --nme-line: rgba(132, 108, 202, .26);
  --nme-radius: 18px;
  box-sizing: border-box;
  color: var(--nme-text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.nido-episode-player-v2 *,
.nido-episode-player-v2 *::before,
.nido-episode-player-v2 *::after,
.nido-episode-archive-v2 *,
.nido-episode-archive-v2 *::before,
.nido-episode-archive-v2 *::after,
.nme-global-dock *,
.nme-global-dock *::before,
.nme-global-dock *::after {
  box-sizing: border-box;
}

.nido-episode-player-v2 a,
.nido-episode-archive-v2 a {
  color: inherit;
  text-decoration: none;
}

.nido-episode-player-v2 button,
.nido-episode-player-v2 input,
.nido-episode-archive-v2 button,
.nme-global-dock button,
.nme-global-dock input {
  font: inherit;
}

.nido-episode-player-v2 {
  position: relative;
  isolation: isolate;
  width: min(100%, 1380px);
  margin: clamp(18px, 3vw, 42px) auto;
  padding: clamp(12px, 2vw, 22px);
  overflow: hidden;
  border: 1px solid rgba(22, 217, 227, .2);
  border-radius: calc(var(--nme-radius) + 5px);
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 23, 111, .13), transparent 29rem),
    radial-gradient(circle at 95% 26%, rgba(22, 217, 227, .1), transparent 30rem),
    linear-gradient(145deg, #090b1b, var(--nme-bg));
  box-shadow: 0 22px 70px rgba(0, 0, 0, .34);
}

.nido-episode-player-v2::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--nme-pink), var(--nme-violet), var(--nme-cyan));
  content: "";
}

.nido-episode-player-v2 .nme-hero {
  display: grid;
  grid-template-columns: minmax(170px, 290px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 42px);
  align-items: center;
  padding: clamp(14px, 2.2vw, 28px);
  border: 1px solid var(--nme-line);
  border-radius: var(--nme-radius);
  background: linear-gradient(125deg, rgba(255, 255, 255, .045), rgba(22, 217, 227, .018));
}

.nido-episode-player-v2 .nme-cover {
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(22, 217, 227, .28);
  border-radius: 16px;
  background: #080a16;
  box-shadow: -5px 0 24px rgba(255, 23, 111, .12), 5px 0 24px rgba(22, 217, 227, .12);
}

.nido-episode-player-v2 .nme-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.nido-episode-player-v2 .nme-cover__fallback,
.nido-episode-archive-v2 .nme-archive-cover > span,
.nido-episode-archive-v2 .nme-card__image > span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: linear-gradient(135deg, #65143f, #10142a 56%, #087481);
  color: #fff;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(1.5rem, 4vw, 3rem);
  letter-spacing: .12em;
}

.nido-episode-player-v2 .nme-copy {
  min-width: 0;
}

.nido-episode-player-v2 .nme-show-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid rgba(22, 217, 227, .65);
  border-radius: 999px;
  color: var(--nme-cyan) !important;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}

.nido-episode-player-v2 .nme-show-pill:hover,
.nido-episode-player-v2 .nme-show-pill:focus-visible {
  background: var(--nme-cyan);
  color: #040611 !important;
}

.nido-episode-player-v2 .nme-title {
  max-width: 900px;
  margin: 12px 0 10px !important;
  color: #fff !important;
  font-family: Impact, "Arial Black", sans-serif !important;
  font-size: clamp(1.85rem, 3.2vw, 3.25rem) !important;
  font-weight: 500 !important;
  line-height: 1.02 !important;
  letter-spacing: .015em;
  text-wrap: balance;
}

.nido-episode-player-v2 .nme-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.nido-episode-player-v2 .nme-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 7px;
  background: rgba(255, 255, 255, .035);
  color: #c3c2d4;
  font-size: 11px;
  font-weight: 750;
}

/* Six explicit control areas: deck, wave, timeline, time, volume, download. */
.nido-episode-player-v2 .nme-controls {
  display: grid;
  grid-template-columns: 86px minmax(72px, .65fr) minmax(180px, 3fr) auto minmax(120px, 1fr) 42px;
  grid-template-areas: "deck wave timeline time volume download";
  gap: 14px;
  align-items: center;
  min-height: 104px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 23, 111, .36);
  border-right-color: rgba(22, 217, 227, .4);
  border-radius: 15px;
  background: linear-gradient(112deg, rgba(255, 23, 111, .055), rgba(129, 86, 255, .035) 52%, rgba(22, 217, 227, .05));
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
}

.nido-episode-player-v2 .nme-play {
  grid-area: deck;
  position: relative;
  display: grid;
  width: 82px;
  height: 82px;
  padding: 0 !important;
  place-items: center;
  overflow: hidden;
  border: 0 !important;
  border-radius: 11% !important;
  outline-offset: 4px;
  background: #070913 !important;
  box-shadow: -3px 0 13px rgba(255, 23, 111, .24), 3px 0 13px rgba(22, 217, 227, .2) !important;
  cursor: pointer;
}

.nido-episode-player-v2 .nme-play::before {
  position: absolute;
  z-index: 0;
  inset: 2px;
  border-radius: 12%;
  background: conic-gradient(from 20deg, transparent 0 18%, var(--nme-pink) 27%, transparent 38% 58%, var(--nme-cyan) 68%, transparent 80%);
  content: "";
  opacity: 0;
  filter: blur(4px);
  transition: opacity .25s ease;
}

.nido-episode-player-v2 .nme-play.is-playing {
  box-shadow: -3px 0 14px rgba(255, 23, 111, .55), 3px 0 14px rgba(22, 217, 227, .48) !important;
}

.nido-episode-player-v2 .nme-play.is-playing::before {
  opacity: .45;
  animation: nme-neon-spin 4.6s linear infinite;
}

.nido-episode-player-v2 .nme-deck {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  pointer-events: none;
}

.nido-episode-player-v2 .nme-deck__base,
.nido-episode-player-v2 .nme-deck__arm {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nido-episode-player-v2 .nme-deck__base {
  z-index: 1;
}

.nido-episode-player-v2 .nme-deck__disc {
  position: absolute;
  z-index: 2;
  top: 8.7%;
  left: 9%;
  width: 82%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: #07080c;
  box-shadow: 0 0 6px rgba(22, 217, 227, .35);
  transform-origin: center;
}

.nido-episode-player-v2 .nme-deck__disc img {
  position: absolute;
  top: -10.61%;
  left: -10.98%;
  display: block;
  width: 121.95%;
  max-width: none;
  height: 121.95%;
  object-fit: contain;
}

.nido-episode-player-v2 .nme-deck__arm {
  z-index: 4;
}

.nido-episode-player-v2 .nme-play.is-playing .nme-deck__disc {
  animation: nme-disc-spin 2.8s linear infinite;
}

.nido-episode-player-v2 .nme-wave {
  grid-area: wave;
  display: flex;
  height: 46px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  overflow: hidden;
}

.nido-episode-player-v2 .nme-wave i {
  width: 3px;
  height: 13px;
  border-radius: 99px;
  background: linear-gradient(var(--nme-pink), var(--nme-violet), var(--nme-cyan));
  box-shadow: 0 0 5px rgba(255, 23, 111, .45);
  opacity: .55;
  transform-origin: center;
}

.nido-episode-player-v2 .nme-wave i:nth-child(3n) { height: 25px; }
.nido-episode-player-v2 .nme-wave i:nth-child(4n) { height: 36px; }
.nido-episode-player-v2 .nme-wave i:nth-child(5n) { height: 43px; }

.nido-episode-player-v2.is-playing .nme-wave i {
  opacity: 1;
  animation: nme-wave .55s ease-in-out calc(var(--i) * -.043s) infinite alternate;
}

.nido-episode-player-v2 .nme-timeline {
  grid-area: timeline;
  display: block;
  min-width: 0;
  margin: 0;
}

.nido-episode-player-v2 .nme-seek,
.nido-episode-player-v2 .nme-volume-range {
  width: 100%;
  margin: 0;
  appearance: none;
  border: 0;
  border-radius: 999px;
  outline: 0;
  background: linear-gradient(90deg, var(--nme-pink) 0, var(--nme-cyan) var(--nme-value, 0%), #32364d var(--nme-value, 0%));
  cursor: pointer;
}

.nido-episode-player-v2 .nme-seek {
  height: 6px;
}

.nido-episode-player-v2 .nme-volume-range {
  height: 5px;
  --nme-value: 100%;
}

.nido-episode-player-v2 .nme-seek::-webkit-slider-thumb,
.nido-episode-player-v2 .nme-volume-range::-webkit-slider-thumb {
  width: 17px;
  height: 17px;
  appearance: none;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--nme-cyan);
  box-shadow: 0 0 0 2px var(--nme-pink), 0 0 9px rgba(22, 217, 227, .55);
}

.nido-episode-player-v2 .nme-seek::-moz-range-thumb,
.nido-episode-player-v2 .nme-volume-range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--nme-cyan);
  box-shadow: 0 0 0 2px var(--nme-pink), 0 0 9px rgba(22, 217, 227, .55);
}

.nido-episode-player-v2 .nme-seek:focus-visible,
.nido-episode-player-v2 .nme-volume-range:focus-visible,
.nido-episode-player-v2 button:focus-visible,
.nido-episode-player-v2 a:focus-visible,
.nido-episode-archive-v2 a:focus-visible {
  outline: 2px solid var(--nme-cyan);
  outline-offset: 4px;
}

.nido-episode-player-v2 .nme-time {
  grid-area: time;
  display: flex;
  gap: 5px;
  color: #c0c0d2;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.nido-episode-player-v2 .nme-volume {
  grid-area: volume;
  display: grid;
  grid-template-columns: 30px minmax(70px, 1fr);
  gap: 7px;
  align-items: center;
  margin: 0;
}

.nido-episode-player-v2 .nme-volume-control {
  display: block;
  min-width: 0;
  margin: 0;
}

.nido-episode-player-v2 .nme-mute {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0 !important;
  place-items: center;
  border: 1px solid rgba(22, 217, 227, .3) !important;
  border-radius: 50% !important;
  background: rgba(22, 217, 227, .04) !important;
  color: var(--nme-cyan) !important;
  cursor: pointer;
}

.nido-episode-player-v2 .nme-download {
  grid-area: download;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--nme-pink);
  border-radius: 50%;
  color: var(--nme-pink) !important;
  font-size: 20px;
  font-weight: 900;
  transition: border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.nido-episode-player-v2 a.nme-download:hover,
.nido-episode-player-v2 a.nme-download:focus-visible {
  border-color: var(--nme-cyan);
  box-shadow: 0 0 13px rgba(22, 217, 227, .25);
  color: var(--nme-cyan) !important;
}

.nido-episode-player-v2 .nme-download--disabled {
  border-color: #55576a;
  color: #77798e !important;
}

.nido-episode-player-v2 .nme-status {
  min-height: 17px;
  margin: 6px 0 0;
  color: var(--nme-muted);
  font-size: 10px;
}

.nido-episode-player-v2 .nme-details {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(270px, .8fr);
  gap: 18px;
  margin-top: 18px;
}

.nido-episode-player-v2 .nme-panel,
.nido-episode-player-v2 .nme-more {
  padding: clamp(18px, 2vw, 25px);
  border: 1px solid var(--nme-line);
  border-radius: var(--nme-radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, .038), rgba(22, 217, 227, .012));
}

.nido-episode-player-v2 .nme-panel header > span,
.nido-episode-player-v2 .nme-more__header > div > span,
.nido-episode-archive-v2 .nme-archive-heading > span,
.nido-episode-archive-v2 .nme-kicker {
  color: var(--nme-cyan);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.nido-episode-player-v2 .nme-panel h2,
.nido-episode-player-v2 .nme-more h2,
.nido-episode-archive-v2 .nme-archive-heading h2 {
  margin: 4px 0 14px !important;
  color: #fff !important;
  font-family: Impact, "Arial Black", sans-serif !important;
  font-size: clamp(1.25rem, 2vw, 1.75rem) !important;
  font-weight: 500 !important;
  line-height: 1.1 !important;
}

.nido-episode-player-v2 .nme-richtext {
  color: #e3e3ec;
  font-size: 14px;
  line-height: 1.65;
}

.nido-episode-player-v2 .nme-richtext > :first-child {
  margin-top: 0;
}

.nido-episode-player-v2 .nme-richtext > :last-child {
  margin-bottom: 0;
}

.nido-episode-player-v2 .nme-information dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.nido-episode-player-v2 .nme-information dl > div {
  display: grid;
  grid-template-columns: minmax(90px, .65fr) minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .065);
}

.nido-episode-player-v2 .nme-information dl > div:last-child {
  border-bottom: 0;
}

.nido-episode-player-v2 .nme-information dt,
.nido-episode-player-v2 .nme-information dd {
  margin: 0;
  font-size: 12px;
}

.nido-episode-player-v2 .nme-information dt {
  color: var(--nme-muted);
}

.nido-episode-player-v2 .nme-information dd {
  color: #fff;
  font-weight: 800;
  text-align: right;
}

.nido-episode-player-v2 .nme-more {
  margin-top: 18px;
}

.nido-episode-player-v2 .nme-more__header {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.nido-episode-player-v2 .nme-more__header > a {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(255, 23, 111, .6);
  border-radius: 999px;
  color: #fff !important;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nido-episode-player-v2 .nme-episode-list {
  display: grid;
  gap: 8px;
}

/* Related episodes: larger covers and a miniature Nido turntable instead of a pink disc. */
.nido-episode-player-v2 .nme-episode-row {
  display: grid;
  grid-template-columns: 82px 54px minmax(0, 1fr) 130px 74px 38px;
  grid-template-areas: "cover play title date duration download";
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 12px;
  background: linear-gradient(110deg, rgba(255, 23, 111, .03), rgba(22, 217, 227, .025));
}

.nido-episode-player-v2 .nme-episode-row.is-current {
  border-color: rgba(22, 217, 227, .45);
  box-shadow: inset 3px 0 var(--nme-pink), inset -3px 0 var(--nme-cyan);
}

.nido-episode-player-v2 .nme-small-cover {
  grid-area: cover;
  display: grid;
  width: 82px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  background: #080a16;
}

.nido-episode-player-v2 .nme-small-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nido-episode-player-v2 .nme-small-cover span {
  color: var(--nme-cyan);
  font-size: 9px;
  font-weight: 900;
}

.nido-episode-player-v2 .nme-small-play {
  grid-area: play;
  position: relative;
  display: grid;
  width: 52px;
  height: 52px;
  padding: 0 !important;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(22, 217, 227, .4) !important;
  border-radius: 10px !important;
  background: #070913 !important;
  color: #fff !important;
  box-shadow: -2px 0 10px rgba(255, 23, 111, .2), 2px 0 10px rgba(22, 217, 227, .2);
  cursor: pointer;
}

.nido-episode-player-v2 .nme-small-play.is-playing {
  border-color: var(--nme-cyan) !important;
  background: #070913 !important;
  box-shadow: -2px 0 13px rgba(255, 23, 111, .38), 2px 0 13px rgba(22, 217, 227, .42);
  color: var(--nme-cyan) !important;
}

.nme-track-deck-button .nme-deck {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  pointer-events: none;
}

.nme-track-deck-button .nme-deck__base,
.nme-track-deck-button .nme-deck__arm {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nme-track-deck-button .nme-deck__base { z-index: 1; }

.nme-track-deck-button .nme-deck__disc {
  position: absolute;
  z-index: 2;
  top: 8.7%;
  left: 9%;
  width: 82%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: #07080c;
  transform-origin: center;
}

.nme-track-deck-button .nme-deck__disc img {
  position: absolute;
  top: -10.61%;
  left: -10.98%;
  display: block;
  width: 121.95%;
  max-width: none;
  height: 121.95%;
  object-fit: contain;
}

.nme-track-deck-button .nme-deck__arm { z-index: 4; }

.nme-track-deck-button.is-playing .nme-deck__disc {
  animation: nme-disc-spin 2.8s linear infinite;
}

.nido-episode-player-v2 .nme-small-title {
  grid-area: title;
  min-width: 0;
}

.nido-episode-player-v2 .nme-small-title a {
  display: block;
  overflow: hidden;
  color: #fff !important;
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nido-episode-player-v2 .nme-small-title span {
  display: block;
  margin-top: 2px;
  color: var(--nme-pink);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.nido-episode-player-v2 .nme-small-date {
  grid-area: date;
}

.nido-episode-player-v2 .nme-small-duration {
  grid-area: duration;
}

.nido-episode-player-v2 .nme-small-date,
.nido-episode-player-v2 .nme-small-duration {
  color: #bbbacc;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.nido-episode-player-v2 .nme-small-download {
  grid-area: download;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 23, 111, .55);
  border-radius: 50%;
  color: var(--nme-pink) !important;
  font-size: 17px;
  font-weight: 900;
}

.nido-rs-error {
  width: min(100%, 900px);
  margin: 20px auto;
  padding: 14px 18px;
  border: 1px solid #ff176f;
  border-radius: 12px;
  background: #120916;
  color: #fff;
}

/* Legacy archive routes, visually aligned with App cards. */
.nido-episode-archive-v2 {
  min-height: 100vh;
  padding: clamp(28px, 5vw, 72px) 18px 140px;
  background:
    radial-gradient(circle at 10% 4%, rgba(255, 23, 111, .13), transparent 29rem),
    radial-gradient(circle at 90% 20%, rgba(22, 217, 227, .11), transparent 32rem),
    var(--nme-bg);
}

.nido-episode-archive-v2 .nme-archive__shell {
  width: min(100%, 1380px);
  margin: 0 auto;
}

.nido-episode-archive-v2 .nme-archive-hero {
  display: grid;
  grid-template-columns: minmax(180px, 300px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 65px);
  align-items: center;
  margin-bottom: 42px;
  padding: clamp(18px, 3vw, 38px);
  border: 1px solid rgba(22, 217, 227, .24);
  border-radius: 22px;
  background: linear-gradient(125deg, rgba(255, 23, 111, .06), rgba(22, 217, 227, .035));
}

.nido-episode-archive-v2 .nme-archive-cover {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border-radius: 17px;
  background: #090b18;
}

.nido-episode-archive-v2 .nme-archive-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nido-episode-archive-v2 .nme-archive-hero h1,
.nido-episode-archive-v2 .nme-programs-hero h1 {
  margin: 7px 0 12px !important;
  color: #fff !important;
  font-family: Impact, "Arial Black", sans-serif !important;
  font-size: clamp(2.2rem, 5vw, 4.6rem) !important;
  font-weight: 500 !important;
  line-height: .98 !important;
  text-wrap: balance;
}

.nido-episode-archive-v2 .nme-archive-hero p,
.nido-episode-archive-v2 .nme-programs-hero p {
  color: #c1bfd1;
  font-size: clamp(.95rem, 1.6vw, 1.2rem);
}

.nido-episode-archive-v2 .nme-archive-hero strong {
  color: var(--nme-pink);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nido-episode-archive-v2 .nme-archive-heading {
  margin-bottom: 16px;
}

.nido-episode-archive-v2 .nme-card-grid,
.nido-episode-archive-v2 .nme-program-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}

.nido-episode-archive-v2 .nme-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(132, 108, 202, .24);
  border-radius: 15px;
  background: linear-gradient(145deg, #111428, #090b17);
  transition: border-color .2s ease, transform .2s ease;
}

.nido-episode-archive-v2 .nme-card:hover {
  border-color: rgba(22, 217, 227, .48);
  transform: translateY(-2px);
}

.nido-episode-archive-v2 .nme-card__image {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  background: #070913;
}

.nido-episode-archive-v2 .nme-card__cover-link {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.nido-episode-archive-v2 .nme-card__image img {
  width: 100%;
  height: 100%;
  padding: 4px;
  object-fit: contain;
  transition: filter .2s ease;
}

.nido-episode-archive-v2 .nme-card-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 58px;
  height: 58px;
  padding: 0 !important;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(22, 217, 227, .55) !important;
  border-radius: 11px !important;
  background: #070913 !important;
  box-shadow: -3px 0 13px rgba(255, 23, 111, .28), 3px 0 13px rgba(22, 217, 227, .26);
  color: #fff;
  cursor: pointer;
}

.nido-episode-archive-v2 .nme-card-play.is-playing {
  border-color: var(--nme-cyan) !important;
  box-shadow: -3px 0 15px rgba(255, 23, 111, .48), 3px 0 15px rgba(22, 217, 227, .5);
}

.nido-episode-archive-v2 .nme-card__copy {
  padding: 14px;
}

.nido-episode-archive-v2 .nme-card__copy > span {
  color: var(--nme-cyan);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.nido-episode-archive-v2 .nme-card h3 {
  min-height: 2.5em;
  margin: 6px 0 13px !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
}

.nido-episode-archive-v2 .nme-card footer {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  color: #aaa9bd;
  font-size: 10px;
}

.nido-episode-archive-v2 .nme-card footer a {
  color: var(--nme-pink) !important;
  font-weight: 900;
  text-transform: uppercase;
}

.nido-episode-archive-v2 .nme-programs-hero {
  max-width: 880px;
  margin-bottom: 32px;
}

.nido-episode-archive-v2 .nme-program-card {
  position: relative;
  display: flex;
  min-height: 190px;
  padding: 18px;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 15px;
  background: linear-gradient(135deg, #5d123d, #10152e 60%, #077987);
  isolation: isolate;
}

.nido-episode-archive-v2 .nme-program-card:nth-child(3n+2) {
  background: linear-gradient(135deg, #063d50, #0b1027 62%, #6f206b);
}

.nido-episode-archive-v2 .nme-program-card:nth-child(3n) {
  background: linear-gradient(135deg, #2c124b, #090b1b 62%, #8f1857);
}

.nido-episode-archive-v2 .nme-program-card::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, transparent 15%, rgba(3, 4, 13, .88));
  content: "";
}

.nido-episode-archive-v2 .nme-program-card img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: .72;
}

.nido-episode-archive-v2 .nme-program-card > span {
  color: var(--nme-cyan);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .13em;
}

.nido-episode-archive-v2 .nme-program-card h2 {
  max-width: 90%;
  margin: 5px 0 !important;
  color: #fff !important;
  font-family: Impact, "Arial Black", sans-serif !important;
  font-size: clamp(1.35rem, 2.3vw, 2rem) !important;
  font-weight: 500 !important;
  line-height: 1 !important;
}

.nido-episode-archive-v2 .nme-program-card p {
  margin: 0;
  color: #d3d3df;
  font-size: 11px;
}

.nido-episode-archive-v2 .nme-program-card i {
  position: absolute;
  right: 16px;
  bottom: 15px;
  color: var(--nme-pink);
  font-size: 25px;
  font-style: normal;
}

.nido-episode-archive-v2 .nme-empty {
  grid-column: 1 / -1;
  padding: 25px;
  border: 1px dashed rgba(22, 217, 227, .35);
  border-radius: 14px;
  color: #c5c4d2;
  text-align: center;
}

/* Singleton podcast dock. It lives outside page fragments and survives Teleporter navigation. */
.nme-global-dock[hidden] {
  display: none !important;
}

.nme-global-dock {
  position: fixed;
  z-index: 2147482000;
  right: auto;
  bottom: var(--nme-dock-bottom, 12px);
  left: 50%;
  display: grid;
  grid-template-columns: 68px minmax(150px, 1.25fr) 58px minmax(220px, 1.4fr) 150px;
  gap: 14px;
  align-items: center;
  width: min(1180px, calc(100vw - 30px));
  min-height: 88px;
  padding: 10px 46px 10px 11px;
  border: 1px solid rgba(22, 217, 227, .58);
  border-left-color: rgba(255, 23, 111, .72);
  border-radius: 18px;
  background:
    radial-gradient(circle at 4% 20%, rgba(255, 23, 111, .14), transparent 18rem),
    radial-gradient(circle at 92% 40%, rgba(22, 217, 227, .11), transparent 22rem),
    rgba(8, 10, 27, .97);
  box-shadow: 0 14px 46px rgba(0, 0, 0, .55), -5px 0 22px rgba(255, 23, 111, .15), 5px 0 22px rgba(22, 217, 227, .14);
  color: var(--nme-text);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.nme-global-dock::before {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, var(--nme-pink), var(--nme-violet), var(--nme-cyan));
  content: "";
}

.nme-global-dock a {
  color: inherit !important;
  text-decoration: none !important;
}

.nme-global-dock .nme-dock-close {
  position: absolute;
  top: 8px;
  right: 9px;
  display: grid;
  width: 29px;
  height: 29px;
  padding: 0 !important;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .13) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .035) !important;
  color: #c8c7d5 !important;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.nme-global-dock .nme-dock-close:hover,
.nme-global-dock .nme-dock-close:focus-visible {
  border-color: var(--nme-pink) !important;
  color: #fff !important;
}

.nme-global-dock .nme-dock-cover {
  display: grid;
  width: 68px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(22, 217, 227, .35);
  border-radius: 11px;
  background: #060711;
}

.nme-global-dock .nme-dock-cover img,
.nme-global-dock .nme-dock-cover > span {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nme-global-dock .nme-dock-cover > span {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #6b1743, #0c1024 58%, #087886);
  color: #fff;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 13px;
  letter-spacing: .1em;
}

.nme-global-dock .nme-dock-copy {
  min-width: 0;
}

.nme-global-dock .nme-dock-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--nme-cyan);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .12em;
}

.nme-global-dock .nme-dock-title {
  display: block;
  overflow: hidden;
  color: #fff !important;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nme-global-dock .nme-dock-show {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: #bbb9cc;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nme-global-dock .nme-dock-play {
  position: relative;
  display: grid;
  width: 56px;
  height: 56px;
  padding: 0 !important;
  place-items: center;
  border: 0 !important;
  border-radius: 11% !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
}

.nme-global-dock .nme-dock-turntable {
  position: relative;
  display: block;
  isolation: isolate;
  overflow: hidden;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 11%;
  background: transparent url("assets/nidio-turntable-base-v2.png") center / contain no-repeat;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .42), -2px 0 8px rgba(255, 23, 111, .28), 2px 0 8px rgba(22, 217, 227, .24);
}

.nme-global-dock .nme-dock-turntable i {
  position: absolute;
  z-index: 2;
  top: 8.7%;
  left: 9%;
  width: 82%;
  height: auto;
  aspect-ratio: 1;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background-color: #07080c;
  background-image: url("assets/nidio-turntable-base-v2.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 121.95% 121.95%;
  box-shadow: 0 0 6px rgba(22, 217, 227, .35);
  pointer-events: none;
  transform: rotate(0deg);
  transform-origin: center center;
}

.nme-global-dock .nme-dock-turntable i::after {
  display: none;
  content: none;
}

.nme-global-dock .nme-dock-turntable b {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent url("assets/nidio-tonearm-overlay.png") center / contain no-repeat;
  box-shadow: none;
  pointer-events: none;
  transform: none;
}

.nme-global-dock.is-playing .nme-dock-turntable i {
  animation: nme-disc-spin 2.8s linear infinite;
  box-shadow: 0 0 7px rgba(255, 23, 111, .5), 0 0 10px rgba(22, 217, 227, .35);
}

.nme-global-dock.is-playing .nme-dock-turntable {
  box-shadow: 0 12px 24px rgba(0, 0, 0, .42), -3px 0 12px rgba(255, 23, 111, .6), 3px 0 12px rgba(22, 217, 227, .55);
}

.nme-global-dock .nme-dock-progress {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.nme-global-dock .nme-dock-progress label,
.nme-global-dock .nme-dock-volume label {
  display: block;
  min-width: 0;
  margin: 0;
}

.nme-global-dock .nme-dock-seek,
.nme-global-dock .nme-dock-volume-range {
  width: 100%;
  height: 5px;
  margin: 0;
  appearance: none;
  border: 0;
  border-radius: 999px;
  outline: 0;
  background: linear-gradient(90deg, var(--nme-pink) 0, var(--nme-cyan) var(--nme-value, 0%), #34374c var(--nme-value, 0%));
  cursor: pointer;
}

.nme-global-dock .nme-dock-seek::-webkit-slider-thumb,
.nme-global-dock .nme-dock-volume-range::-webkit-slider-thumb {
  width: 13px;
  height: 13px;
  appearance: none;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--nme-cyan);
  box-shadow: 0 0 0 2px var(--nme-pink), 0 0 8px rgba(22, 217, 227, .55);
}

.nme-global-dock .nme-dock-seek::-moz-range-thumb,
.nme-global-dock .nme-dock-volume-range::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--nme-cyan);
  box-shadow: 0 0 0 2px var(--nme-pink), 0 0 8px rgba(22, 217, 227, .55);
}

.nme-global-dock .nme-dock-progress > div {
  color: #c3c1d1;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.nme-global-dock .nme-dock-volume {
  display: grid;
  grid-template-columns: 34px minmax(72px, 1fr);
  gap: 8px;
  align-items: center;
}

.nme-global-dock .nme-dock-mute {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0 !important;
  place-items: center;
  border: 1px solid rgba(22, 217, 227, .42) !important;
  border-radius: 50% !important;
  background: rgba(22, 217, 227, .04) !important;
  color: var(--nme-cyan) !important;
  cursor: pointer;
}

.nme-global-dock .nme-dock-mute.is-muted {
  border-color: rgba(255, 23, 111, .58) !important;
  color: var(--nme-pink) !important;
}

@keyframes nme-disc-spin {
  to { transform: rotate(360deg); }
}

@keyframes nme-neon-spin {
  to { transform: rotate(360deg); }
}

@keyframes nme-wave {
  to {
    height: 90%;
    filter: brightness(1.45);
    box-shadow: 0 0 8px var(--nme-pink), 0 0 13px var(--nme-cyan);
  }
}

@media (max-width: 1100px) {
  .nido-episode-player-v2 .nme-controls {
    grid-template-columns: 86px minmax(65px, .6fr) minmax(150px, 1fr) auto 42px;
    grid-template-areas:
      "deck wave timeline time download"
      "deck volume volume volume download";
    row-gap: 5px;
  }

  .nido-episode-player-v2 .nme-episode-row {
    grid-template-columns: 72px 50px minmax(0, 1fr) 90px 38px;
    grid-template-areas:
      "cover play title duration download"
      "cover play date duration download";
  }

  .nido-episode-player-v2 .nme-small-cover { width: 72px; }

  .nido-episode-archive-v2 .nme-card-grid,
  .nido-episode-archive-v2 .nme-program-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .nido-episode-player-v2 {
    padding: 10px;
    border-radius: 17px;
  }

  .nido-episode-player-v2 .nme-hero {
    grid-template-columns: minmax(115px, 32%) minmax(0, 1fr);
    gap: 15px;
    padding: 13px;
  }

  .nido-episode-player-v2 .nme-title {
    font-size: clamp(1.45rem, 5vw, 2.35rem) !important;
  }

  .nido-episode-player-v2 .nme-meta span:nth-child(n+3) {
    display: none;
  }

  .nido-episode-player-v2 .nme-controls {
    grid-template-columns: 74px minmax(0, 1fr) 38px;
    grid-template-areas:
      "deck wave download"
      "timeline timeline timeline"
      "time volume volume";
    min-height: 0;
    padding: 8px;
  }

  .nido-episode-player-v2 .nme-play {
    width: 70px;
    height: 70px;
  }

  .nido-episode-player-v2 .nme-details {
    grid-template-columns: 1fr;
  }

  .nido-episode-player-v2 .nme-more__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nido-episode-player-v2 .nme-episode-row {
    grid-template-columns: 64px 46px minmax(0, 1fr) 34px;
    grid-template-areas:
      "cover play title download"
      "cover play date duration";
    gap: 8px;
  }

  .nido-episode-player-v2 .nme-small-cover {
    width: 64px;
  }

  .nido-episode-player-v2 .nme-small-play {
    width: 44px;
    height: 44px;
  }

  .nido-episode-player-v2 .nme-small-date,
  .nido-episode-player-v2 .nme-small-duration {
    font-size: 9px;
  }

  .nido-episode-archive-v2 .nme-card-grid,
  .nido-episode-archive-v2 .nme-program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nme-global-dock {
    grid-template-columns: 54px minmax(0, 1fr) 52px;
    grid-template-areas:
      "dock-cover dock-copy dock-play"
      "dock-progress dock-progress dock-volume";
    gap: 8px 10px;
    width: calc(100vw - 12px);
    min-height: 118px;
    padding: 9px 42px 9px 9px;
    border-radius: 14px;
  }

  .nme-global-dock .nme-dock-cover {
    grid-area: dock-cover;
    width: 54px;
  }

  .nme-global-dock .nme-dock-copy { grid-area: dock-copy; }

  .nme-global-dock .nme-dock-play {
    grid-area: dock-play;
    width: 50px;
    height: 50px;
  }

  .nme-global-dock .nme-dock-turntable {
    width: 50px;
    height: 50px;
  }

  .nme-global-dock .nme-dock-turntable i {
    width: 82%;
    height: auto;
  }

  .nme-global-dock .nme-dock-progress { grid-area: dock-progress; }

  .nme-global-dock .nme-dock-volume {
    grid-area: dock-volume;
    grid-template-columns: 32px;
    justify-content: end;
  }

  .nme-global-dock .nme-dock-volume label { display: none; }
}

@media (max-width: 520px) {
  .nido-episode-player-v2 .nme-hero {
    grid-template-columns: 1fr;
  }

  .nido-episode-player-v2 .nme-cover {
    width: min(72vw, 250px);
    margin: 0 auto;
  }

  .nido-episode-player-v2 .nme-copy {
    text-align: center;
  }

  .nido-episode-player-v2 .nme-meta {
    justify-content: center;
  }

  .nido-episode-player-v2 .nme-controls,
  .nido-episode-player-v2 .nme-details,
  .nido-episode-player-v2 .nme-more,
  .nido-episode-player-v2 .nme-information {
    text-align: left;
  }

  .nido-episode-player-v2 .nme-information dl > div {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .nido-episode-player-v2 .nme-small-title a {
    font-size: 11px;
  }

  .nido-episode-archive-v2 .nme-archive-hero {
    grid-template-columns: 1fr;
  }

  .nido-episode-archive-v2 .nme-archive-cover {
    width: min(75vw, 270px);
    margin: 0 auto;
  }

  .nido-episode-archive-v2 .nme-card-grid,
  .nido-episode-archive-v2 .nme-program-grid {
    grid-template-columns: 1fr;
  }

  .nido-episode-archive-v2 .nme-program-card {
    min-height: 210px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nido-episode-player-v2 *,
  .nido-episode-archive-v2 *,
  .nme-global-dock * {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
