/* Slim NF pilot player — scoped to the server-rendered playlist contract. */
/* The first HTML response is readable before JavaScript initializes the player. */
div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"] > ul.thn-server-tracklist {
  list-style: none;
  margin: 0;
  padding: 0;
}
div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"] > ul.thn-server-tracklist > li {
  margin: 0;
  border-bottom: 1px solid #505a54;
}
div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"] > ul.thn-server-tracklist > li > button {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: #f2f5f3;
  font: inherit;
  text-align: left;
}
body.thn-v5-active {
  padding-bottom: calc(var(--thn-v5-bar-height, 108px) + 24px) !important;
}

.thn-v5-bar[hidden] {
  display: none !important;
}

div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"].thn-v5 {
  --mint: #12FFD3;
  padding-bottom: 0 !important;
  color: #f2f5f3;
}

div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"].thn-v5 > audio {
  display: none !important;
}

div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"].thn-v5 > ul.thn-server-tracklist {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"].thn-v5 > ul.thn-server-tracklist > li {
  position: relative;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: #3f3f3f !important;
  list-style: none !important;
}

div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"].thn-v5 > ul.thn-server-tracklist > li + li {
  border-top: 1px solid #505a54 !important;
}

/* Draw row states above the theme's opaque button background. */
div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"].thn-v5 > ul.thn-server-tracklist > li::before {
  content: none !important;
  display: none !important;
}

div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"].thn-v5 > ul.thn-server-tracklist > li::after {
  content: "" !important;
  position: absolute;
  z-index: 2;
  top: 0;
  right: -4px;
  bottom: 0;
  left: -4px;
  box-sizing: border-box;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color 140ms ease;
}

div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"].thn-v5 > ul.thn-server-tracklist > li.is-playing::after {
  border-color: var(--mint);
}

@media (hover: hover) and (pointer: fine) {
  div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"].thn-v5 > ul.thn-server-tracklist > li:not(.is-playing):hover::after {
    border-color: #f2f5f3;
  }

  div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"].thn-v5 > ul.thn-server-tracklist > li:hover .thn-v5-row-icon {
    border-color: #f2f5f3;
    color: #f2f5f3;
  }
}

div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"].thn-v5 > ul.thn-server-tracklist > li:focus-within::after {
  border-color: #f2f5f3;
}

div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"].thn-v5 > ul.thn-server-tracklist > li:focus-within .thn-v5-row-icon {
  border-color: #f2f5f3;
  color: #f2f5f3;
}

div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"].thn-v5 > ul.thn-server-tracklist > li.is-playing:focus-within::after {
  border-color: var(--mint);
}

div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"].thn-v5 button.thn-server-tracklist__play {
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
  width: 100% !important;
  min-height: 44px;
  margin: 0 !important;
  padding: 6px 12px 6px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: #3f3f3f !important;
  color: #f2f5f3 !important;
  font: inherit;
  line-height: 1.4;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"].thn-v5 .thn-v5-row-icon {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  border: 1px solid var(--mint);
  border-radius: 50%;
  color: var(--mint);
  flex: none;
}

div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"].thn-v5 .thn-v5-row-icon svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: currentColor;
}

div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"].thn-v5 .thn-v5-row-label {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"].thn-v5 .is-playing .thn-v5-row-icon {
  background: transparent;
  border-color: #f2f5f3;
  color: #f2f5f3;
}

.thn-v5-equalizer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 18px;
  height: 20px;
}

.thn-v5-equalizer i {
  display: block;
  width: 3px;
  height: 8px;
  border-radius: 1px;
  background: currentColor;
  transform-origin: center bottom;
  animation: thn-v5-eq-wave 840ms cubic-bezier(.36, 0, .24, 1) infinite;
}

.thn-v5-equalizer i:nth-child(2) {
  height: 16px;
  animation-delay: -280ms;
}

.thn-v5-equalizer i:nth-child(3) {
  height: 11px;
  animation-delay: -560ms;
}

@keyframes thn-v5-eq-wave {
  0%, 100% { transform: scaleY(.34); }
  25% { transform: scaleY(1); }
  50% { transform: scaleY(.42); }
  75% { transform: scaleY(.82); }
}

body.thn-v5-active .thn-v5-bar,
body.thn-v5-active .thn-v5-bar * {
  box-sizing: border-box;
}

body.thn-v5-active .thn-v5-bar {
  position: fixed;
  z-index: 1100;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 108px;
  padding: 14px 0 calc(14px + env(safe-area-inset-bottom, 0px));
  border: 0;
  background: #3f3f3f;
  color: #f2f5f3;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.35;
  box-shadow: none;
}

body.thn-v5-active .thn-v5-controls {
  display: flex;
  align-items: center;
  flex: none;
  gap: 8px;
}

body.thn-v5-active .thn-v5-bar button {
  display: grid;
  flex: none;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  outline-offset: 3px;
  background: transparent;
  color: var(--mint, #12FFD3);
  transition: color 140ms ease, border-color 140ms ease;
  position: relative;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  body.thn-v5-active .thn-v5-bar button:hover {
    color: #f2f5f3;
  }

  body.thn-v5-active .thn-v5-bar .thn-v5-toggle:hover {
    border-color: #f2f5f3;
  }
}

body.thn-v5-active .thn-v5-bar button:focus-visible {
  color: #f2f5f3;
}

body.thn-v5-active .thn-v5-bar .thn-v5-toggle:focus-visible {
  border-color: #f2f5f3;
}

body.thn-v5-active .thn-v5-bar button[data-tooltip]::after {
  position: absolute;
  z-index: 3;
  right: auto;
  bottom: calc(100% + 9px);
  left: 50%;
  padding: 5px 8px;
  border: 1px solid #65716c;
  border-radius: 4px;
  background: #292d2b;
  color: #f2f5f3;
  content: attr(data-tooltip);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 3px);
  transition: opacity 120ms ease, transform 120ms ease;
}

@media (hover: hover) and (pointer: fine) {
  body.thn-v5-active .thn-v5-bar button[data-tooltip]:hover::after {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

body.thn-v5-active .thn-v5-bar button[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.thn-v5-active .thn-v5-bar button svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

body.thn-v5-active .thn-v5-bar .thn-v5-toggle {
  width: 46px;
  height: 46px;
  border: 1.5px solid #12FFD3;
  background: transparent;
  color: #12FFD3;
}

body.thn-v5-active .thn-v5-bar .thn-v5-toggle svg {
  width: 30px;
  height: 30px;
}

body.thn-v5-active .thn-v5-bar.is-playing .thn-v5-toggle {
  border-color: #f2f5f3;
  background: transparent;
  color: #f2f5f3;
}

body.thn-v5-active .thn-v5-bar .thn-v5-prev svg,
body.thn-v5-active .thn-v5-bar .thn-v5-next svg {
  width: 23px;
  height: 23px;
}

body.thn-v5-active .thn-v5-timeline {
  display: grid;
  flex: 1;
  grid-template-rows: auto auto auto auto;
  row-gap: 6px;
  min-width: 0;
}

body.thn-v5-active .thn-v5-title {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-family: 'gt_flexa_trialcm_md', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
  text-transform: none;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body.thn-v5-active .thn-v5-title:focus-visible {
  outline: 2px solid #12FFD3;
  outline-offset: 3px;
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

body.thn-v5-active .thn-v5-seek {
  display: block;
  width: 100%;
  height: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  appearance: none;
  background: linear-gradient(90deg, #12FFD3 0 var(--progress, 0%), #68716e var(--progress, 0%) 100%);
  accent-color: #12FFD3;
  cursor: pointer;
}

body.thn-v5-active .thn-v5-seek:disabled {
  cursor: default;
}

body.thn-v5-active .thn-v5-seek::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #12FFD3 0 var(--progress, 0%), #68716e var(--progress, 0%) 100%);
}

body.thn-v5-active .thn-v5-seek::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -4px;
  appearance: none;
  border: 2px solid #3f3f3f;
  border-radius: 50%;
  background: #12FFD3;
  box-shadow: 0 0 0 1px #12FFD3;
}

body.thn-v5-active .thn-v5-seek::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: #68716e;
}

body.thn-v5-active .thn-v5-seek::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: #12FFD3;
}

body.thn-v5-active .thn-v5-seek::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 1px solid #3f3f3f;
  border-radius: 50%;
  background: #12FFD3;
  box-shadow: 0 0 0 1px #12FFD3;
}

body.thn-v5-active .thn-v5-times {
  display: flex;
  justify-content: space-between;
  color: #e1e8e4;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

body.thn-v5-active .thn-v5-status:not(:empty) {
  margin: 0;
  color: #ffd09c;
  font-size: 11px;
}

body.thn-v5-active .thn-v5-volume {
  position: relative;
  flex: none;
}

body.thn-v5-active .thn-v5-bar .thn-v5-volume-toggle {
  width: 48px;
  height: 48px;
}

body.thn-v5-active .thn-v5-bar .thn-v5-volume-toggle svg {
  width: 25px;
  height: 25px;
}

body.thn-v5-active .thn-v5-volume-panel {
  position: absolute;
  right: 0;
  bottom: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  min-height: 164px;
  padding: 12px 8px;
  border: 1px solid #12FFD3;
  border-radius: 8px;
  background: #3f3f3f;
  box-shadow: 0 8px 22px #0008;
}

body.thn-v5-active .thn-v5-volume-panel[hidden] {
  display: none;
}

body.thn-v5-active .thn-v5-volume-panel input {
  width: 24px;
  height: 132px;
  margin: 0;
  padding: 0;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(to top, #12FFD3 0 var(--volume-fill, 100%), #f2f5f3 var(--volume-fill, 100%) 100%) center / 6px 100% no-repeat;
  direction: rtl;
  writing-mode: vertical-lr;
}

body.thn-v5-active .thn-v5-volume-panel input::-webkit-slider-runnable-track {
  width: 6px;
  height: 132px;
  border-radius: 999px;
  background: linear-gradient(to top, #12FFD3 0 var(--volume-fill, 100%), #f2f5f3 var(--volume-fill, 100%) 100%);
}

body.thn-v5-active .thn-v5-volume-panel input::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-left: -4px;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid #3f3f3f;
  border-radius: 50%;
  background: #f2f5f3;
  box-shadow: 0 0 0 1px #12FFD3;
}

body.thn-v5-active .thn-v5-volume-panel input::-moz-range-track {
  width: 6px;
  height: 132px;
  border-radius: 999px;
  background: linear-gradient(to top, #12FFD3 0 var(--volume-fill, 100%), #f2f5f3 var(--volume-fill, 100%) 100%);
}

body.thn-v5-active .thn-v5-volume-panel input::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 2px solid #3f3f3f;
  border-radius: 50%;
  background: #f2f5f3;
  box-shadow: 0 0 0 1px #12FFD3;
}

body.thn-v5-active .thn-v5-bar .thn-v5-volume-toggle[aria-expanded="true"] {
  color: #f2f5f3;
}

body.thn-v5-active .thn-v5-bar button:focus-visible,
body.thn-v5-active .thn-v5-bar input:focus-visible {
  outline: 2px solid #12FFD3;
}

@media (max-width: 600px) {
  div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"].thn-v5 button.thn-server-tracklist__play {
    min-height: 48px;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  body.thn-v5-active {
    padding-bottom: calc(var(--thn-v5-bar-height, 92px) + 24px) !important;
  }

  body.thn-v5-active .thn-v5-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 92px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  }

  body.thn-v5-active .thn-v5-controls {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    gap: 8px;
  }

  body.thn-v5-active .thn-v5-timeline {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    text-align: center;
  }

  body.thn-v5-active .thn-v5-bar .thn-v5-controls button {
    width: 40px;
    height: 44px;
  }

  body.thn-v5-active .thn-v5-bar .thn-v5-controls .thn-v5-toggle {
    width: 44px;
    height: 44px;
  }

  body.thn-v5-active .thn-v5-bar .thn-v5-toggle svg {
    width: 28px;
    height: 28px;
  }

  body.thn-v5-active .thn-v5-bar .thn-v5-prev svg,
  body.thn-v5-active .thn-v5-bar .thn-v5-next svg {
    width: 21px;
    height: 21px;
  }

  body.thn-v5-active .thn-v5-volume {
    display: none;
  }

  body.thn-v5-active .thn-v5-title {
    font-size: 16px;
    line-height: 1.25;
    text-align: center;
  }

  body.thn-v5-active .thn-v5-times {
    font-size: 12px;
  }

  body.thn-v5-active .thn-v5-seek {
    height: 5px;
  }

  body.thn-v5-active .thn-v5-seek::-webkit-slider-runnable-track {
    height: 5px;
  }

  body.thn-v5-active .thn-v5-seek::-webkit-slider-thumb {
    width: 12px;
    height: 12px;
    margin-top: -3.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"].thn-v5 > ul.thn-server-tracklist > li::after {
    transition: none;
  }

  .thn-v5-equalizer i {
    animation: none !important;
  }
}

/* Desktop title: center on the full player bar, not the narrower content lane.
   The left transport group (158px + 24px gap) exceeds volume (48px + 24px)
   by 110px. Trimming 110px from the title lane keeps its box centered and
   preserves a safe gap from both side controls, even near the breakpoint. */
@media (min-width: 601px) {
  body.thn-v5-active .thn-v5-title {
    width: calc(100% - 110px);
    justify-self: start;
  }
}

/* ============================================================
   Tracklist metadata pilot — server-rendered, staging post 16296
   only (the PHP sidecar is fail-closed on host/post/playlist/rows;
   every other post renders none of the markup below).

   Values come from the verified manifest (metadata_source:
   beatport_html). Rows 4-100 render no metadata cells at all.

   Existing Slim NF tokens only:
   mint #12FFD3 (interactive), text #f2f5f3 / #e1e8e4,
   muted #68716e, separator #505a54, row bg #3f3f3f.
   The header is visual only (aria-hidden); each value carries its
   own visually hidden BPM/Key/Time label for assistive tech.
   Metadata spans are SIBLINGS of the row button: the adapter only
   rewrites the button's own content, so the numbers never reach
   the bottom player title.
   ============================================================ */

div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"] > .thn-tracklist-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px 128px 52px;
  column-gap: 10px;
  align-items: end;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 0 0 7px 0 !important;
  border-bottom: 1px solid #505a54 !important;
  color: #e1e8e4;
  font-family: inherit;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
}

div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"] > .thn-tracklist-head > .thn-tracklist-head__name {
  min-width: 0;
}

div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"] > .thn-tracklist-head > .thn-tracklist-head__cell {
  min-width: 0;
  white-space: nowrap;
}

div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"] > ul.thn-server-tracklist > li.thn-tracklist-row--has-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px 128px 52px;
  column-gap: 10px;
  align-items: center;
  box-sizing: border-box;
}

div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"] > ul.thn-server-tracklist > li.thn-tracklist-row--has-meta > button.thn-server-tracklist__play {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"] > ul.thn-server-tracklist > li .thn-track-meta {
  grid-row: 1;
  min-width: 0;
  color: #e1e8e4;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"] > ul.thn-server-tracklist > li .thn-track-meta[data-thn-meta="bpm"] {
  grid-column: 2;
}

div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"] > ul.thn-server-tracklist > li .thn-track-meta[data-thn-meta="key"] {
  grid-column: 3;
}

div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"] > ul.thn-server-tracklist > li .thn-track-meta[data-thn-meta="time"] {
  grid-column: 4;
}

div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"] > ul.thn-server-tracklist > li .thn-track-meta__vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 600px) {
  /* Mobile: one compact header line, then the metadata as a compact
     second line under each track name. Header labels appear once. */
  div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"] > .thn-tracklist-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(3, minmax(0, min(76px, 21vw))) minmax(0, 1fr);
    align-items: baseline;
    column-gap: clamp(6px, 3vw, 12px);
    row-gap: 0;
    padding: 0 0 6px !important;
    font-size: 10px;
  }

  div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"] > .thn-tracklist-head > .thn-tracklist-head__name {
    display: none;
  }

  div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"] > .thn-tracklist-head > .thn-tracklist-head__cell {
    text-align: center;
  }

  div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"] > .thn-tracklist-head > .thn-tracklist-head__cell--bpm {
    grid-column: 2;
  }

  div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"] > .thn-tracklist-head > .thn-tracklist-head__cell--key {
    grid-column: 3;
  }

  div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"] > .thn-tracklist-head > .thn-tracklist-head__cell--time {
    grid-column: 4;
  }

  div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"] > ul.thn-server-tracklist > li.thn-tracklist-row--has-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(3, minmax(0, min(76px, 21vw))) minmax(0, 1fr);
    column-gap: clamp(6px, 3vw, 12px);
    align-items: center;
  }

  div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"] > ul.thn-server-tracklist > li.thn-tracklist-row--has-meta > button.thn-server-tracklist__play {
    display: block;
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
  }

  div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"] > ul.thn-server-tracklist > li .thn-track-meta {
    display: flex;
    align-items: baseline;
    justify-content: center;
    grid-row: 2;
    min-width: 0;
    text-align: center;
    margin: 0 0 8px;
    font-size: 12px;
  }

  div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"] > ul.thn-server-tracklist > li .thn-track-meta[data-thn-meta="bpm"] {
    grid-column: 2;
  }

  div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"] > ul.thn-server-tracklist > li .thn-track-meta[data-thn-meta="key"] {
    grid-column: 3;
  }

  div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"] > ul.thn-server-tracklist > li .thn-track-meta[data-thn-meta="time"] {
    grid-column: 4;
  }

  /* Keep the mobile title centered across the full bar; controls stay right. */
  body.thn-v5-active .thn-v5-bar {
    grid-template-rows: auto auto auto;
    column-gap: 12px;
    row-gap: 5px;
  }

  body.thn-v5-active .thn-v5-controls {
    grid-column: 2;
    grid-row: 2 / span 2;
    align-self: center;
    justify-self: end;
  }

  body.thn-v5-active .thn-v5-timeline {
    display: contents;
  }

  body.thn-v5-active .thn-v5-title {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    justify-self: center;
    text-align: center;
  }

  body.thn-v5-active .thn-v5-seek {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
  }

  body.thn-v5-active .thn-v5-times {
    grid-column: 1;
    grid-row: 3;
  }

  body.thn-v5-active .thn-v5-status:not(:empty) {
    grid-column: 1 / -1;
    grid-row: 4;
    justify-self: center;
  }
}

/* Narrow-screen title wrap for the real-data staging pilot only. */
@media (max-width: 359px) {
  body.postid-16296 .thn-title__mobile-lead {
    max-width: 100%;
    white-space: normal !important;
  }
}

/* Desktop: one compact heading row across the content container. */
@media (min-width: 601px) {
  div.col-md-12 > p:has(+ div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"] > .thn-tracklist-head) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
  }

  div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"] {
    width: 100%;
    max-width: 100%;
  }

  div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"] > .thn-tracklist-head,
  div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"] > ul.thn-server-tracklist > li.thn-tracklist-row--has-meta {
    grid-template-columns: minmax(0, 1fr) repeat(3, 58px);
    column-gap: 10px;
    padding-right: 12px !important;
  }

  div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"] > .thn-tracklist-head > .thn-tracklist-head__name {
    font-size: 11px;
    letter-spacing: normal;
    text-transform: none;
  }

  div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"] > .thn-tracklist-head > .thn-tracklist-head__name::before {
    content: "Tracklist:";
  }

  div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"] > .thn-tracklist-head > .thn-tracklist-head__cell,
  div.wp-block-vdsdev-parse-beatport-vdsdev-parserbeatport-playlist[data-thn-server-tracklist="1"] > ul.thn-server-tracklist > li .thn-track-meta {
    text-align: center;
  }
}

/* On mobile keep only the selected title, seek bar and numeric times visible.
   The live region remains available to screen readers for playback errors. */
@media (max-width: 600px) {
  body.thn-v5-active .thn-v5-status:not(:empty) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
  }
}

/* Match the Bootstrap container used by the main navigation. */
@media (min-width: 768px) { body.thn-v5-active .thn-v5-bar { width: 750px; } }
@media (min-width: 992px) { body.thn-v5-active .thn-v5-bar { width: 970px; } }
@media (min-width: 1200px) { body.thn-v5-active .thn-v5-bar { width: 1170px; } }


