/* Hear it, The DJ Diaries. All selectors prefixed .djdhi */
.djdhi-chip,
.djdhi-card,
.djdhi-keep,
.djdhi-dockbar {
  --djdhi-bg: #0F0E1A;
  --djdhi-card: #16152A;
  --djdhi-text: #F5F0E8;
  --djdhi-mute: rgba(245, 240, 232, .66);
  --djdhi-line: rgba(245, 240, 232, .12);
  --djdhi-accent: #5EE9C5;
  --djdhi-cta: #FF3366;
}

/* ---------- chip ---------- */
.djdhi-chip {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 1.3em;
  height: 1.3em;
  min-width: 20px;
  min-height: 20px;
  margin: 0 .1em 0 .3em;
  padding: 0;
  vertical-align: -.22em;
  border: 1.5px solid var(--djdhi-accent);
  border-radius: 50%;
  background: rgba(94, 233, 197, .08);
  color: var(--djdhi-accent);
  cursor: pointer;
  line-height: 1;
  font: inherit;
  position: relative;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.djdhi-chip svg {
  width: 58%;
  height: 58%;
  fill: currentColor;
  margin-left: 8%;
  pointer-events: none;
}
.djdhi-chip:hover,
.djdhi-chip.djdhi-act {
  background: var(--djdhi-accent);
  color: var(--djdhi-bg);
}
.djdhi-chip:hover { transform: scale(1.08); }
.djdhi-chip:focus { outline: none; }
.djdhi-chip:focus-visible {
  outline: 2px solid var(--djdhi-text);
  outline-offset: 2px;
}
/* larger hit area without changing layout */
.djdhi-chip::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
}
.djdhi-chip.djdhi-pulse { animation: djdhi-pulse 1.1s ease-out 1; }
@keyframes djdhi-pulse {
  0% { box-shadow: 0 0 0 0 rgba(94, 233, 197, .55); }
  70% { box-shadow: 0 0 0 9px rgba(94, 233, 197, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 233, 197, 0); }
}

/* ---------- card ---------- */
.djdhi-card {
  position: absolute;
  z-index: 99990;
  box-sizing: border-box;
  width: 360px;
  max-width: calc(100vw - 24px);
  padding: 18px 18px 16px;
  background: var(--djdhi-card);
  color: var(--djdhi-text);
  border: 1px solid var(--djdhi-line);
  border-top: 3px solid var(--djdhi-fam, var(--djdhi-accent));
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .35);
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
  opacity: 0;
  transform-origin: var(--djdhi-ax, 40px) 0;
}
.djdhi-card.djdhi-up { transform-origin: var(--djdhi-ax, 40px) 100%; }
.djdhi-card.djdhi-in { opacity: 1; animation: djdhi-pop .22s cubic-bezier(.2, .9, .3, 1.15) both; }
.djdhi-card.djdhi-up.djdhi-in { animation-name: djdhi-popup; }
@keyframes djdhi-pop { from { opacity: 0; transform: translateY(-6px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes djdhi-popup { from { opacity: 0; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }
.djdhi-card:focus { outline: none; }
.djdhi-card *,
.djdhi-card *::before,
.djdhi-card *::after { box-sizing: border-box; }
.djdhi-card p { margin: 0; padding: 0; }

.djdhi-arrow {
  position: absolute;
  top: -8px;
  left: calc(var(--djdhi-ax, 40px) - 7px);
  width: 14px;
  height: 14px;
  background: var(--djdhi-fam, var(--djdhi-accent));
  transform: rotate(45deg);
  border-radius: 2px 0 0 0;
  z-index: -1;
}
.djdhi-up .djdhi-arrow {
  top: auto;
  bottom: -7px;
  background: var(--djdhi-card);
  border-right: 1px solid var(--djdhi-line);
  border-bottom: 1px solid var(--djdhi-line);
  border-radius: 0 0 2px 0;
  z-index: 0;
}
.djdhi-grab { display: none; }

.djdhi-x {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--djdhi-mute);
  cursor: pointer;
}
.djdhi-x svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; fill: none; }
.djdhi-x:hover { background: rgba(245, 240, 232, .08); color: var(--djdhi-text); }

.djdhi-card a:focus-visible,
.djdhi-card button:focus-visible,
.djdhi-card iframe:focus-visible {
  outline: 2px solid var(--djdhi-accent);
  outline-offset: 2px;
}

.djdhi-kick {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 34px !important;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--djdhi-mute);
}
.djdhi-dot {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--djdhi-fam, var(--djdhi-accent));
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .06);
}
.djdhi-name {
  margin-top: 6px !important;
  padding-right: 30px !important;
  font-family: "Bricolage Grotesque", "Barlow", system-ui, sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--djdhi-text);
}
.djdhi-meta {
  margin-top: 4px !important;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--djdhi-mute);
}

.djdhi-bpm { margin-top: 14px; }
.djdhi-bpm-row { display: flex; align-items: baseline; gap: 10px; }
.djdhi-bpm-v { font-family: "Space Mono", ui-monospace, monospace; font-size: 13px; color: var(--djdhi-text); }
.djdhi-lbl {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--djdhi-accent);
}
.djdhi-meter {
  position: relative;
  height: 8px;
  margin-top: 7px;
  border-radius: 4px;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(16.666% - 1px), rgba(245, 240, 232, .14) calc(16.666% - 1px) 16.666%),
    rgba(245, 240, 232, .07);
  overflow: hidden;
}
.djdhi-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--djdhi-accent), var(--djdhi-fam, var(--djdhi-accent)));
  box-shadow: 0 0 12px rgba(94, 233, 197, .45);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .7s cubic-bezier(.2, .8, .2, 1) .12s;
}
.djdhi-in .djdhi-fill { transform: scaleX(1); }
.djdhi-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 4px !important;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 10px;
  color: rgba(245, 240, 232, .45);
}

.djdhi-hear {
  margin-top: 12px !important;
  font-size: 15px;
  color: var(--djdhi-text);
}
.djdhi-listen,
.djdhi-labels {
  margin-top: 10px !important;
  font-size: 14px;
  color: var(--djdhi-mute);
}
.djdhi-listen .djdhi-lbl,
.djdhi-labels .djdhi-lbl { margin-right: 4px; }

.djdhi-player {
  position: relative;
  margin-top: 12px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}
.djdhi-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.djdhi-play {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 14px 16px;
  border: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto;
  align-items: center;
  column-gap: 14px;
  text-align: left;
  cursor: pointer;
  color: var(--djdhi-text);
  font: inherit;
  background:
    radial-gradient(120% 90% at 0% 100%, color-mix(in srgb, var(--djdhi-fam, #5EE9C5) 30%, transparent), transparent 60%),
    repeating-radial-gradient(circle at 88% 30%, rgba(245, 240, 232, .06) 0 1px, transparent 1px 7px),
    linear-gradient(160deg, #1d1b36, #0F0E1A);
}
.djdhi-disc {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--djdhi-cta);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 51, 102, .45);
  transition: transform .15s ease;
}
.djdhi-disc svg { width: 22px; height: 22px; fill: currentColor; margin-left: 3px; }
.djdhi-play:hover .djdhi-disc { transform: scale(1.07); }
.djdhi-pcap { display: flex; flex-direction: column; min-width: 0; }
.djdhi-pt {
  font-family: "Bricolage Grotesque", "Barlow", system-ui, sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.15;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.djdhi-pa { font-size: 13px; color: var(--djdhi-mute); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.djdhi-pnote {
  grid-column: 1 / -1;
  align-self: end;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, .5);
}

.djdhi-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.djdhi-card .djdhi-link {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(94, 233, 197, .45);
  color: var(--djdhi-accent);
  background: transparent;
  font-family: "Barlow", system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: none;
  transition: background-color .15s ease, color .15s ease;
}
.djdhi-card .djdhi-link:hover { background: var(--djdhi-accent); color: var(--djdhi-bg); }
.djdhi-card .djdhi-link2 { border-color: var(--djdhi-line); color: var(--djdhi-text); }
.djdhi-card .djdhi-link2:hover { background: var(--djdhi-text); color: var(--djdhi-bg); }

/* ---------- mobile bottom sheet ---------- */
.djdhi-scrim {
  position: fixed;
  inset: 0;
  z-index: 99989;
  background: rgba(8, 7, 16, .6);
  opacity: 0;
  transition: opacity .2s ease;
}
.djdhi-scrim.djdhi-in { opacity: 1; }
.djdhi-card.djdhi-sheet {
  position: fixed;
  left: 0 !important;
  right: 0;
  top: auto !important;
  bottom: 0;
  width: auto;
  max-width: none;
  max-height: 88vh;
  max-height: 88dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  border-radius: 18px 18px 0 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}
.djdhi-card.djdhi-sheet.djdhi-in { animation: djdhi-sheet .28s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes djdhi-sheet { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.djdhi-sheet .djdhi-arrow { display: none; }
.djdhi-sheet .djdhi-grab {
  display: block;
  position: absolute;
  top: 8px;
  left: 50%;
  width: 40px;
  height: 4px;
  margin-left: -20px;
  border-radius: 2px;
  background: rgba(245, 240, 232, .22);
}
.djdhi-sheet .djdhi-x { top: 12px; right: 8px; width: 40px; height: 40px; }
.djdhi-sheet .djdhi-link { min-height: 44px; }


/* ---------- Keep listening ---------- */
.djdhi-keep {
  box-sizing: border-box;
  clear: both;
  margin: 48px 0 32px;
  padding: 24px 0 0;
  border-top: 1px solid var(--djdhi-line);
  color: var(--djdhi-text);
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
}
.djdhi-keep *,
.djdhi-keep *::before,
.djdhi-keep *::after { box-sizing: border-box; }
.djdhi-keep .djdhi-kh {
  margin: 0 0 16px;
  padding: 0;
  font-family: "Bricolage Grotesque", "Barlow", system-ui, sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--djdhi-text);
}
.djdhi-keep .djdhi-kgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin: 0;
}
.djdhi-keep .djdhi-kgrid.djdhi-k1 { grid-template-columns: minmax(0, 420px); }
.djdhi-keep .djdhi-kc {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 16px 16px 14px;
  background: var(--djdhi-card);
  border: 1px solid var(--djdhi-line);
  border-top: 3px solid var(--djdhi-fam, var(--djdhi-accent));
  border-radius: 14px;
}
.djdhi-keep p { margin: 0; padding: 0; }
.djdhi-keep .djdhi-kn {
  margin: 0;
  padding: 0;
  font-family: "Bricolage Grotesque", "Barlow", system-ui, sans-serif;
  font-weight: 700;
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--djdhi-text);
}
.djdhi-keep .djdhi-kk {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-family: "Space Mono", ui-monospace, monospace;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--djdhi-mute);
}
.djdhi-keep .djdhi-kk::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--djdhi-fam, var(--djdhi-accent));
}
.djdhi-keep .djdhi-meta { margin-top: 4px; }
.djdhi-keep .djdhi-kline { margin-top: 10px; font-size: 15px; color: var(--djdhi-text); }
.djdhi-keep .djdhi-listen { margin: 10px 0 12px; }
.djdhi-keep .djdhi-player { margin-top: auto; }
.djdhi-keep .djdhi-klinks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 12px;
}
.djdhi-keep a.djdhi-klink {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-family: "Barlow", system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  color: var(--djdhi-accent);
  text-decoration: none;
  box-shadow: none;
  border: 0;
  background: none;
}
.djdhi-keep a.djdhi-klink2 { color: var(--djdhi-text); }
.djdhi-keep a.djdhi-klink:hover { text-decoration: underline; text-underline-offset: 3px; }
.djdhi-keep a:focus-visible,
.djdhi-keep button:focus-visible,
.djdhi-keep iframe:focus-visible { outline: 2px solid var(--djdhi-accent); outline-offset: 2px; }
.djdhi-keep .djdhi-play { padding: 12px; column-gap: 12px; }
.djdhi-keep .djdhi-disc { width: 46px; height: 46px; }
.djdhi-keep .djdhi-disc svg { width: 19px; height: 19px; }
.djdhi-keep .djdhi-pt { font-size: 15px; }

/* ---------- mini player (dock) ---------- */
.djdhi-ph { max-width: 100%; }
.djdhi-docked {
  position: fixed !important;
  top: auto !important;
  left: auto !important;
  right: 16px !important;
  bottom: 16px !important;
  width: 356px !important;
  height: 200px !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  aspect-ratio: auto !important;
  float: none !important;
  z-index: 99981 !important;
  overflow: hidden !important;
  border-radius: 0 0 12px 12px !important;
  background: #000 !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .6) !important;
  animation: djdhi-dockin .22s cubic-bezier(.2, .8, .2, 1) both;
}
.djdhi-docked::before { display: none !important; }
.djdhi-docked iframe,
iframe.djdhi-dockf {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border: 0 !important;
}
iframe.djdhi-docked { border: 0 !important; }
@keyframes djdhi-dockin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.djdhi-dockbar {
  position: fixed;
  right: 16px;
  bottom: 216px;
  z-index: 99980;
  box-sizing: border-box;
  width: 356px;
  max-width: none;
  height: 44px;
  display: none;
  align-items: center;
  gap: 2px;
  padding: 0 4px 0 12px;
  background: var(--djdhi-card);
  color: var(--djdhi-text);
  border: 1px solid var(--djdhi-line);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  font-family: "Barlow", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.25;
  text-align: left;
}
.djdhi-dockbar.djdhi-in { display: flex; animation: djdhi-dockin .22s cubic-bezier(.2, .8, .2, 1) both; }
.djdhi-dockbar * { box-sizing: border-box; }
.djdhi-dk-t {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.djdhi-dk-t .djdhi-lbl { font-size: 9px; }
.djdhi-dk-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.djdhi-dk-btn {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--djdhi-text);
  cursor: pointer;
}
.djdhi-dk-btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.djdhi-dk-btn:hover { background: rgba(245, 240, 232, .1); color: var(--djdhi-accent); }
.djdhi-dk-btn:focus { outline: none; }
.djdhi-dk-btn:focus-visible { outline: 2px solid var(--djdhi-accent); outline-offset: 1px; }

@media (max-width: 639.98px) {
  .djdhi-keep .djdhi-kh { font-size: 24px; }
  /* YouTube API policy: player viewport at least 200x200 */
  .djdhi-docked {
    right: 0 !important;
    left: 0 !important;
    bottom: env(safe-area-inset-bottom, 0px) !important;
    width: 100% !important;
    height: max(200px, 56.25vw) !important;
    border-radius: 0 !important;
  }
  .djdhi-dockbar {
    left: 0;
    right: 0;
    bottom: calc(max(200px, 56.25vw) + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: none;
    height: 48px;
    padding: 0 4px 0 16px;
    border-left: 0;
    border-right: 0;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .45);
  }
  .djdhi-dockbar::after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: env(safe-area-inset-bottom, 0px);
    background: #000;
  }
  .djdhi-dk-btn { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .djdhi-docked,
  .djdhi-dockbar.djdhi-in,
  .djdhi-chip,
  .djdhi-card.djdhi-in,
  .djdhi-card.djdhi-up.djdhi-in,
  .djdhi-card.djdhi-sheet.djdhi-in,
  .djdhi-scrim,
  .djdhi-fill,
  .djdhi-disc { transition: none !important; animation: none !important; }
  .djdhi-fill { transform: none; }
  .djdhi-chip:hover,
  .djdhi-play:hover .djdhi-disc { transform: none; }
}