:root {
  --paper: #f5ead1;
  --ink: #291f2d;
  --muted: #6e6270;
  --shadow: rgb(55 35 44 / 24%);
}

/* Fontsource families are self-hosted and reserved for genre marker labels. */
@font-face {
  font-family: "Genre Nunito Sans";
  src: url("/fonts/genre-map/nunito-sans-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Genre Quicksand";
  src: url("/fonts/genre-map/quicksand-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Genre Barlow Condensed";
  src: url("/fonts/genre-map/barlow-condensed-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Genre Baloo 2";
  src: url("/fonts/genre-map/baloo-2-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Genre Fraunces";
  src: url("/fonts/genre-map/fraunces-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Genre Fredoka";
  src: url("/fonts/genre-map/fredoka-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Genre Bree Serif";
  src: url("/fonts/genre-map/bree-serif-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Genre Dosis";
  src: url("/fonts/genre-map/dosis-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Genre Lora";
  src: url("/fonts/genre-map/lora-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Genre Cabin Sketch";
  src: url("/fonts/genre-map/cabin-sketch-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--paper);
  color: var(--ink);
  font-family: Avenir Next, Avenir, ui-rounded, system-ui, sans-serif;
}

button { font: inherit; }

.tagMapApp {
  position: relative;
  width: 100%;
  height: 100%;
  isolation: isolate;
}

.mapHeader {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  padding: 22px 24px;
  pointer-events: none;
}

.mapHeader > .mapTitle {
  padding: 12px 16px;
  border: 1px solid rgb(255 255 255 / 48%);
  border-radius: 18px 6px 18px 6px;
  background: rgb(250 242 220 / 82%);
  box-shadow: 0 10px 30px rgb(58 39 50 / 10%);
  backdrop-filter: blur(12px);
}

.mapHeaderControls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.mapEyebrow,
.mapHint,
.mapHeader h1 { margin: 0; }

.mapEyebrow {
  color: #a34847;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.mapHeader h1 {
  font-family: Georgia, Iowan Old Style, serif;
  font-size: clamp(27px, 4vw, 42px);
  font-weight: 500;
  line-height: 1;
}

.mapHint {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.mapClose {
  width: 46px;
  height: 46px;
  border: 1px solid rgb(255 255 255 / 58%);
  border-radius: 50%;
  background: rgb(250 242 220 / 86%);
  color: var(--ink);
  box-shadow: 0 8px 22px rgb(58 39 50 / 17%);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(12px);
  transition: transform .25s ease, background .25s ease;
}

.mapClose:hover { transform: rotate(8deg) scale(1.08); background: #fff9e9; }

.volumeControl,
.favoritesControl,
.themeControl {
  position: relative;
  display: grid;
  place-items: center;
}

.volumeToggle,
.favoritesToggle,
.themeToggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 36%);
  border-radius: 50%;
  background: rgb(250 242 220 / 28%);
  color: rgb(41 31 45 / 64%);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.volumeToggle:hover,
.volumeToggle:focus-visible,
.volumeControl.isOpen .volumeToggle,
.favoritesToggle:hover,
.favoritesToggle:focus-visible,
.themeToggle:hover,
.themeToggle:focus-visible,
.themeControl.isOpen .themeToggle {
  background: rgb(255 249 233 / 78%);
  color: var(--ink);
  transform: scale(1.06);
}

.volumeToggle svg,
.favoritesToggle svg,
.themeToggle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.favoritesToggle {
  position: relative;
}

.favoritesToggle svg {
  fill: transparent;
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.favoritesToggle.hasFavorites {
  background: rgb(255 243 239 / 82%);
  color: #d95167;
}

.favoritesToggle.hasFavorites svg { fill: currentColor; }

.favoritesCount {
  position: absolute;
  top: -5px;
  right: -6px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 2px solid rgb(250 242 220 / 92%);
  border-radius: 9px;
  background: #d95167;
  color: white;
  font-size: 9px;
  font-weight: 850;
  line-height: 1;
}

.volumeToggle svg path:last-child {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.themeToggle svg circle {
  fill: var(--paper);
  stroke: currentColor;
  stroke-width: .8;
}

.volumePopover {
  position: absolute;
  top: 38px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 142px;
  padding: 12px 8px;
  border: 1px solid rgb(255 255 255 / 54%);
  border-radius: 20px;
  background: rgb(250 242 220 / 82%);
  box-shadow: 0 10px 28px rgb(58 39 50 / 18%);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px) scale(.94);
  transform-origin: top;
  visibility: hidden;
  backdrop-filter: blur(12px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.volumeControl:hover .volumePopover,
.volumeControl:focus-within .volumePopover,
.volumeControl.isOpen .volumePopover {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
  visibility: visible;
}

.volumeControl.isCollapsed .volumePopover {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px) scale(.94);
  visibility: hidden;
}

.volumePopover input {
  width: 18px;
  height: 116px;
  margin: 0;
  accent-color: #a34847;
  cursor: pointer;
  direction: rtl;
  writing-mode: vertical-lr;
}

.themePopover {
  position: absolute;
  top: 50%;
  right: 48px;
  width: min(230px, calc(100vw - 100px));
  padding: 12px;
  border: 1px solid rgb(255 255 255 / 54%);
  border-radius: 16px 6px 16px 6px;
  background: rgb(250 242 220 / 90%);
  box-shadow: 0 10px 28px rgb(58 39 50 / 18%);
  opacity: 0;
  pointer-events: none;
  transform: translate(8px, -50%) scale(.94);
  transform-origin: right center;
  visibility: hidden;
  backdrop-filter: blur(12px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.themeControl.isOpen .themePopover {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, -50%) scale(1);
  visibility: visible;
}

.themePopover label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.themePopover select {
  width: 100%;
  min-height: 38px;
  padding: 7px 30px 7px 9px;
  border: 1px solid rgb(110 98 112 / 32%);
  border-radius: 9px;
  background: rgb(255 253 245 / 92%);
  color: var(--ink);
  cursor: pointer;
  font: 700 13px/1.2 Avenir Next, Avenir, ui-rounded, system-ui, sans-serif;
}

.mapViewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  background:
    radial-gradient(circle at 15% 22%, rgb(241 161 118 / 38%), transparent 27%),
    radial-gradient(circle at 82% 68%, rgb(89 170 145 / 35%), transparent 30%),
    radial-gradient(circle at 66% 12%, rgb(178 133 188 / 28%), transparent 24%),
    linear-gradient(145deg, #f7e8c9, #ede4c9 48%, #f5d8bf);
}

.mapViewport.isDragging { cursor: grabbing; }

.mapAtmosphere {
  position: absolute;
  inset: -15%;
  opacity: .38;
  background-image:
    repeating-radial-gradient(circle at 30% 40%, transparent 0 20px, rgb(91 78 65 / 7%) 21px 22px),
    linear-gradient(110deg, transparent 48%, rgb(255 255 255 / 30%) 50%, transparent 52%);
  background-size: 180px 180px, 320px 320px;
  animation: atmosphereDrift 28s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes atmosphereDrift { to { transform: translate3d(3%, -2%, 0) rotate(.8deg); } }

.mapWorld {
  position: absolute;
  left: 0;
  top: 0;
  width: 7600px;
  height: 5800px;
  transform-origin: 0 0;
  will-change: transform;
}

.markerLayer {
  position: absolute;
  z-index: 4;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}

.mapWorld::before,
.mapWorld::after {
  content: "";
  position: absolute;
  border: 3px solid rgb(255 255 255 / 18%);
  border-radius: 44% 56% 61% 39%;
  pointer-events: none;
}

.mapWorld::before { inset: 22% 18%; transform: rotate(-7deg); }
.mapWorld::after { inset: 34% 30%; transform: rotate(12deg); border-style: dashed; }

.tagMarker {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  padding: 8px;
  border: 2px solid rgb(255 255 255 / 72%);
  border-radius: 50%;
  background: var(--markerColor, #6f8fc5);
  color: var(--markerText, #fff);
  box-shadow: 0 7px 18px rgb(49 45 50 / 23%), inset 0 1px 3px rgb(255 255 255 / 40%);
  font-size: 9px;
  font-weight: 850;
  line-height: 1.05;
  text-align: center;
  text-wrap: balance;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.72);
  transition: opacity .3s ease, box-shadow .25s ease, transform .38s cubic-bezier(.2,.9,.2,1.15);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  will-change: left, top, transform;
}

.tagMarker > * { pointer-events: none; }

.tagMarker > span {
  max-width: 100%;
  overflow-wrap: anywhere;
  hyphens: auto;
  font-synthesis: none;
}

html[data-genre-theme="original"] .tagMarker > span {
  font-family: "Genre Nunito Sans", ui-rounded, system-ui, sans-serif;
  font-weight: 700;
}

html[data-genre-theme="marbles"] .tagMarker > span {
  font-family: "Genre Quicksand", ui-rounded, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -.01em;
}

html[data-genre-theme="record-store"] .tagMarker > span {
  font-family: "Genre Barlow Condensed", ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: .02em;
}

html[data-genre-theme="lava-lamp"] .tagMarker > span {
  font-family: "Genre Baloo 2", ui-rounded, system-ui, sans-serif;
  font-weight: 700;
}

html[data-genre-theme="botanical"] .tagMarker > span {
  font-family: "Genre Fraunces", Georgia, serif;
  font-weight: 700;
}

html[data-genre-theme="candy-shop"] .tagMarker > span {
  font-family: "Genre Fredoka", ui-rounded, system-ui, sans-serif;
  font-weight: 700;
}

html[data-genre-theme="letterpress"] .tagMarker > span {
  font-family: "Genre Bree Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: .01em;
}

html[data-genre-theme="deep-sea"] .tagMarker > span {
  font-family: "Genre Dosis", ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: .02em;
}

html[data-genre-theme="ceramics"] .tagMarker > span {
  font-family: "Genre Lora", Georgia, serif;
  font-weight: 700;
}

html[data-genre-theme="collage"] .tagMarker > span {
  font-family: "Genre Cabin Sketch", ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
}

.tagMarker.isVisible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.tagMarker:hover,
.tagMarker.isSelected {
  z-index: 8;
  box-shadow: 0 10px 28px rgb(49 45 50 / 32%), 0 0 0 6px rgb(255 255 255 / 38%);
}

.tagMarker small {
  display: block;
  margin-top: 2px;
  font-size: 8px;
  font-weight: 700;
  opacity: .78;
}

.family-ink { --markerColor: #272329; }
.family-red { --markerColor: #c83d4d; }
.family-green { --markerColor: #3b9b68; }
.family-gold { --markerColor: #d49b2f; --markerText: #36230c; }
.family-violet { --markerColor: #7956ae; }
.family-slate { --markerColor: #53616e; }
.family-orange { --markerColor: #d66a3d; }
.family-ochre { --markerColor: #a4772f; }
.family-blue { --markerColor: #397db6; }
.family-rose { --markerColor: #b95770; }
.family-pink { --markerColor: #d65f9f; }
.family-lime { --markerColor: #73a744; }
.family-coral { --markerColor: #dc705e; }
.family-teal { --markerColor: #368d8c; }
.family-cyan { --markerColor: #379db1; }

/* Theme: Marbles. Bubble Garden is the unscoped base styling above. */
html[data-genre-theme="marbles"] .mapViewport {
  background:
    radial-gradient(ellipse at 18% 14%, rgb(255 255 255 / 48%), transparent 34%),
    radial-gradient(ellipse at 78% 82%, rgb(79 104 96 / 18%), transparent 38%),
    repeating-linear-gradient(112deg, rgb(255 255 255 / 7%) 0 2px, transparent 2px 11px),
    linear-gradient(145deg, #c7c9c1, #aeb7b0 48%, #d7d1c4);
}

html[data-genre-theme="marbles"] .mapAtmosphere {
  inset: -8%;
  opacity: .48;
  background-image:
    radial-gradient(circle at 28% 34%, rgb(255 255 255 / 28%) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 62%, rgb(48 58 55 / 12%) 0 1px, transparent 2px),
    linear-gradient(118deg, transparent 46%, rgb(255 255 255 / 20%) 50%, transparent 54%);
  background-size: 23px 23px, 31px 31px, 420px 420px;
}

html[data-genre-theme="marbles"] .tagMarker {
  border: 1px solid rgb(255 255 255 / 76%);
  background-color: var(--markerColor);
  background-image:
    radial-gradient(ellipse var(--reflection-width, 18%) var(--reflection-height, 13%) at var(--reflection-x, 29%) var(--reflection-y, 22%), rgb(255 255 255 / 96%) 0 22%, rgb(255 255 255 / 48%) 48%, transparent 100%),
    radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--markerColor) 28%, white) 0 16%, color-mix(in srgb, var(--markerColor) 74%, transparent) 44%, transparent 72%),
    radial-gradient(circle at 62% 70%, color-mix(in srgb, var(--markerColor) 88%, black) 0, var(--markerColor) 44%, color-mix(in srgb, var(--markerColor) 35%, white) 82%, rgb(255 255 255 / 42%) 100%);
  color: var(--markerText, #fff);
  box-shadow:
    inset 9px 10px 18px rgb(255 255 255 / 38%),
    inset -13px -16px 24px rgb(19 22 24 / 34%),
    0 18px 12px -10px rgb(32 38 37 / 48%),
    0 6px 22px rgb(34 43 41 / 28%);
  text-shadow: 0 1px 3px rgb(19 22 24 / 62%);
  backdrop-filter: blur(2px) saturate(1.22);
}

html[data-genre-theme="marbles"] .tagMarker::before {
  position: absolute;
  z-index: 1;
  top: var(--reflection-overlay-top, 7%);
  left: var(--reflection-overlay-left, 14%);
  width: var(--reflection-overlay-width, 54%);
  height: var(--reflection-overlay-height, 34%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgb(255 255 255 / 48%), transparent 68%);
  content: "";
  pointer-events: none;
  transform: rotate(var(--reflection-angle, -17deg));
}

html[data-genre-theme="marbles"] .tagMarker > * {
  position: relative;
  z-index: 2;
}

html[data-genre-theme="marbles"] .tagMarker:hover,
html[data-genre-theme="marbles"] .tagMarker.isSelected {
  box-shadow:
    inset 10px 11px 19px rgb(255 255 255 / 48%),
    inset -14px -17px 25px rgb(19 22 24 / 36%),
    0 20px 14px -9px rgb(32 38 37 / 52%),
    0 0 0 6px rgb(255 255 255 / 34%),
    0 8px 28px rgb(34 43 41 / 38%);
}

/* Theme: Record Store */
html[data-genre-theme="record-store"] .mapViewport {
  background:
    linear-gradient(96deg, rgb(255 255 255 / 8%) 0 1px, transparent 1px 100%),
    repeating-linear-gradient(4deg, #7b4d30 0 9px, #825335 9px 18px, #70442d 18px 20px);
  background-size: 83px 100%, auto;
}

html[data-genre-theme="record-store"] .mapAtmosphere {
  opacity: .24;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 238px, rgb(39 23 18 / 36%) 239px 242px),
    linear-gradient(transparent 72%, rgb(39 23 18 / 24%) 73% 75%, transparent 76%);
  background-size: 242px 100%, 100% 220px;
}

html[data-genre-theme="record-store"] .tagMarker {
  border: 2px solid #0d0c0d;
  background:
    radial-gradient(circle, rgb(248 239 211 / 84%) 0 3%, transparent 4%),
    radial-gradient(circle, color-mix(in srgb, var(--markerColor) 78%, #f4deb0) 0 30%, #151315 31% 35%, transparent 36%),
    repeating-radial-gradient(circle, #252225 0 4px, #111013 5px 7px, #292629 8px 9px);
  color: #fff7e8;
  box-shadow: 0 15px 10px -8px rgb(35 18 12 / 58%), 0 5px 20px rgb(28 15 12 / 32%);
  text-shadow: 0 1px 3px #050405;
}

html[data-genre-theme="record-store"] .tagMarker small { color: #f6dfbd; opacity: .9; }
html[data-genre-theme="record-store"] .tagMarker:hover,
html[data-genre-theme="record-store"] .tagMarker.isSelected {
  box-shadow: 0 18px 13px -7px rgb(35 18 12 / 66%), 0 0 0 6px rgb(247 221 173 / 42%), 0 7px 25px rgb(28 15 12 / 42%);
}

/* Theme: Lava Lamp */
html[data-genre-theme="lava-lamp"] .mapViewport {
  background:
    radial-gradient(ellipse at 18% 20%, #ee785f 0, transparent 26%),
    radial-gradient(ellipse at 80% 72%, #8f4dc1 0, transparent 31%),
    radial-gradient(ellipse at 52% 46%, #d63f80 0, transparent 33%),
    linear-gradient(155deg, #251737, #49204b 52%, #18152d);
}

html[data-genre-theme="lava-lamp"] .mapAtmosphere {
  opacity: .38;
  background-image:
    radial-gradient(ellipse at 26% 34%, rgb(255 191 91 / 72%) 0 8%, transparent 9%),
    radial-gradient(ellipse at 68% 66%, rgb(255 92 144 / 56%) 0 11%, transparent 12%),
    radial-gradient(ellipse at 82% 20%, rgb(126 220 190 / 38%) 0 7%, transparent 8%);
  background-size: 460px 580px, 520px 620px, 610px 480px;
}

html[data-genre-theme="lava-lamp"] .tagMarker {
  border: 1px solid rgb(255 225 184 / 48%);
  border-radius: var(--blobRadius, 54% 46% 58% 42% / 46% 57% 43% 54%);
  background:
    radial-gradient(ellipse var(--reflection-width, 18%) var(--reflection-height, 13%) at var(--reflection-x, 31%) var(--reflection-y, 23%), rgb(255 244 192 / 72%), transparent 100%),
    radial-gradient(circle at 62% 72%, color-mix(in srgb, var(--markerColor) 74%, #551150), var(--markerColor) 58%, color-mix(in srgb, var(--markerColor) 52%, #ff8a53));
  color: #fff8e5;
  box-shadow: inset 6px 8px 18px rgb(255 229 170 / 20%), inset -8px -12px 20px rgb(48 9 62 / 34%), 0 0 24px color-mix(in srgb, var(--markerColor) 55%, transparent);
  text-shadow: 0 2px 4px rgb(40 9 53 / 72%);
}

html[data-genre-theme="lava-lamp"] .tagMarker:hover,
html[data-genre-theme="lava-lamp"] .tagMarker.isSelected {
  box-shadow: inset 7px 9px 20px rgb(255 229 170 / 28%), inset -9px -13px 22px rgb(48 9 62 / 38%), 0 0 0 6px rgb(255 206 130 / 28%), 0 0 34px color-mix(in srgb, var(--markerColor) 72%, transparent);
}

/* Theme: Botanical */
html[data-genre-theme="botanical"] .mapViewport {
  background:
    radial-gradient(circle at 15% 18%, rgb(255 255 255 / 58%), transparent 27%),
    repeating-linear-gradient(8deg, rgb(91 116 76 / 5%) 0 1px, transparent 1px 8px),
    linear-gradient(145deg, #edf0d8, #d6dfc4 52%, #f1e6c9);
}

html[data-genre-theme="botanical"] .mapAtmosphere {
  opacity: .32;
  background-image:
    radial-gradient(ellipse at 20% 50%, transparent 0 47%, rgb(68 107 63 / 24%) 48% 50%, transparent 51%),
    radial-gradient(ellipse at 80% 50%, transparent 0 47%, rgb(68 107 63 / 18%) 48% 50%, transparent 51%);
  background-size: 190px 92px, 240px 118px;
  transform: rotate(-12deg);
}

html[data-genre-theme="botanical"] .tagMarker {
  border: 0;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--markerColor) 22%, #fff5bf) 0 39%, transparent 41%),
    repeating-conic-gradient(from 8deg, color-mix(in srgb, var(--markerColor) 68%, #f4df9d) 0 12deg, transparent 12deg 24deg);
  color: #31402b;
  box-shadow: inset 0 0 0 2px rgb(255 255 238 / 38%), 0 12px 13px -8px rgb(52 76 43 / 28%), 0 4px 12px rgb(65 89 55 / 20%);
  text-shadow: 0 1px 1px rgb(255 255 235 / 82%);
}

html[data-genre-theme="botanical"] .tagMarker::before {
  position: absolute;
  inset: 11%;
  border: 1px dotted rgb(74 104 59 / 36%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

html[data-genre-theme="botanical"] .tagMarker:hover,
html[data-genre-theme="botanical"] .tagMarker.isSelected {
  box-shadow: inset 0 0 0 2px rgb(255 255 238 / 62%), 0 15px 16px -7px rgb(52 76 43 / 42%), 0 0 0 6px rgb(243 238 188 / 48%);
}

/* Theme: Candy Shop */
html[data-genre-theme="candy-shop"] .mapViewport {
  background:
    linear-gradient(45deg, rgb(255 255 255 / 25%) 25%, transparent 25% 75%, rgb(255 255 255 / 25%) 75%),
    linear-gradient(45deg, #ffd9df 25%, #d9f0e8 25% 50%, #fff0bd 50% 75%, #d9e6ff 75%);
  background-position: 0 0, 0 0;
  background-size: 34px 34px, 68px 68px;
}

html[data-genre-theme="candy-shop"] .mapAtmosphere {
  opacity: .28;
  background-image: radial-gradient(circle, rgb(255 255 255 / 76%) 0 3px, transparent 4px);
  background-size: 48px 48px;
}

html[data-genre-theme="candy-shop"] .tagMarker {
  border: 3px solid rgb(255 255 255 / 76%);
  background:
    repeating-linear-gradient(125deg, transparent 0 10px, rgb(255 255 255 / 12%) 10px 16px),
    linear-gradient(145deg, color-mix(in srgb, var(--markerColor) 52%, white), var(--markerColor) 62%, color-mix(in srgb, var(--markerColor) 72%, #c13d78));
  color: var(--markerText, #fff);
  box-shadow: inset -8px -10px 16px rgb(117 37 83 / 16%), inset 7px 8px 14px rgb(255 255 255 / 30%), 0 10px 0 color-mix(in srgb, var(--markerColor) 42%, #8e5171), 0 14px 24px rgb(116 72 94 / 24%);
  text-shadow: 0 1px 2px rgb(96 39 72 / 42%);
}

html[data-genre-theme="candy-shop"] .tagMarker:hover,
html[data-genre-theme="candy-shop"] .tagMarker.isSelected {
  box-shadow: inset -8px -10px 16px rgb(117 37 83 / 18%), inset 7px 8px 14px rgb(255 255 255 / 38%), 0 11px 0 color-mix(in srgb, var(--markerColor) 42%, #8e5171), 0 0 0 7px rgb(255 255 255 / 48%), 0 16px 28px rgb(116 72 94 / 32%);
}

/* Theme: Letterpress */
html[data-genre-theme="letterpress"] .mapViewport {
  background:
    radial-gradient(circle at 20% 18%, rgb(255 255 255 / 42%), transparent 30%),
    repeating-radial-gradient(circle at 10% 20%, rgb(70 49 37 / 5%) 0 1px, transparent 1px 4px),
    #e8dcc4;
}

html[data-genre-theme="letterpress"] .mapAtmosphere {
  opacity: .22;
  background-image:
    linear-gradient(90deg, rgb(85 57 41 / 13%) 1px, transparent 1px),
    linear-gradient(rgb(85 57 41 / 10%) 1px, transparent 1px);
  background-size: 96px 96px;
}

html[data-genre-theme="letterpress"] .tagMarker {
  border: 2px solid color-mix(in srgb, var(--markerColor) 75%, #3c3028);
  border-radius: var(--blobRadius, 48% 52% 46% 54% / 52% 47% 53% 48%);
  background:
    repeating-radial-gradient(circle at 37% 31%, rgb(255 255 255 / 5%) 0 1px, transparent 1px 4px),
    color-mix(in srgb, var(--markerColor) 76%, #594339);
  color: #fff8e7;
  box-shadow: 5px 6px 0 rgb(79 55 39 / 24%);
  text-shadow: 1px 1px 0 rgb(60 39 30 / 38%);
}

html[data-genre-theme="letterpress"] .tagMarker::before {
  position: absolute;
  inset: 5px;
  border: 1px dashed rgb(255 248 224 / 34%);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

html[data-genre-theme="letterpress"] .tagMarker:hover,
html[data-genre-theme="letterpress"] .tagMarker.isSelected {
  box-shadow: 7px 8px 0 rgb(79 55 39 / 30%), 0 0 0 6px rgb(255 248 224 / 46%);
}

/* Theme: Deep Sea */
html[data-genre-theme="deep-sea"] .mapViewport {
  background:
    radial-gradient(circle at 18% 14%, rgb(34 122 139 / 38%), transparent 29%),
    radial-gradient(circle at 76% 78%, rgb(20 91 119 / 34%), transparent 36%),
    linear-gradient(158deg, #071a2a, #082f43 48%, #03121f);
}

html[data-genre-theme="deep-sea"] .mapAtmosphere {
  opacity: .42;
  background-image:
    radial-gradient(circle, rgb(180 245 241 / 38%) 0 1px, transparent 2px),
    radial-gradient(circle, rgb(124 205 214 / 22%) 0 2px, transparent 3px),
    linear-gradient(112deg, transparent 46%, rgb(90 196 195 / 12%) 50%, transparent 54%);
  background-size: 41px 41px, 83px 83px, 360px 360px;
}

html[data-genre-theme="deep-sea"] .tagMarker {
  border: 1px solid rgb(182 245 236 / 66%);
  background:
    radial-gradient(circle at 60% 70%, color-mix(in srgb, var(--markerColor) 76%, #073a52), color-mix(in srgb, var(--markerColor) 64%, transparent) 62%, rgb(43 169 174 / 22%));
  color: #effffb;
  box-shadow: inset 5px 7px 16px rgb(202 255 247 / 22%), inset -8px -11px 20px rgb(0 18 35 / 42%), 0 0 18px color-mix(in srgb, var(--markerColor) 64%, transparent), 0 8px 25px rgb(0 9 18 / 48%);
  text-shadow: 0 2px 5px #00131e;
  backdrop-filter: blur(3px);
}

html[data-genre-theme="deep-sea"] .tagMarker:hover,
html[data-genre-theme="deep-sea"] .tagMarker.isSelected {
  box-shadow: inset 5px 7px 17px rgb(202 255 247 / 30%), inset -8px -11px 21px rgb(0 18 35 / 46%), 0 0 0 6px rgb(151 239 229 / 24%), 0 0 30px color-mix(in srgb, var(--markerColor) 76%, transparent);
}

html[data-genre-theme="deep-sea"] .artistThreads line { stroke: rgb(162 236 229 / 48%); }

/* Theme: Ceramics */
html[data-genre-theme="ceramics"] .mapViewport {
  background:
    repeating-linear-gradient(16deg, rgb(112 86 67 / 5%) 0 1px, transparent 1px 9px),
    radial-gradient(circle at 20% 15%, #f5eee2, transparent 40%),
    linear-gradient(145deg, #d5c8b8, #bfb4a8 54%, #e4d8c7);
}

html[data-genre-theme="ceramics"] .mapAtmosphere {
  opacity: .2;
  background-image: repeating-radial-gradient(circle at 30% 40%, transparent 0 34px, rgb(88 66 54 / 12%) 35px 36px);
  background-size: 230px 230px;
}

html[data-genre-theme="ceramics"] .tagMarker {
  border: 4px solid color-mix(in srgb, var(--markerColor) 34%, #f4eadb);
  border-radius: var(--blobRadius, 51% 49% 47% 53% / 48% 54% 46% 52%);
  background:
    repeating-conic-gradient(from 18deg, rgb(255 255 255 / 5%) 0 7deg, transparent 7deg 21deg),
    radial-gradient(circle at 58% 68%, var(--markerColor), color-mix(in srgb, var(--markerColor) 74%, #2d3a38));
  color: var(--markerText, #fff);
  box-shadow: inset 7px 8px 15px rgb(255 251 235 / 28%), inset -7px -9px 14px rgb(61 43 36 / 20%), 0 11px 8px -6px rgb(76 56 44 / 42%), 0 5px 18px rgb(76 56 44 / 24%);
  text-shadow: 0 1px 2px rgb(46 33 29 / 42%);
}

html[data-genre-theme="ceramics"] .tagMarker::before {
  position: absolute;
  inset: 8%;
  border: 1px solid rgb(255 247 226 / 24%);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

html[data-genre-theme="ceramics"] .tagMarker:hover,
html[data-genre-theme="ceramics"] .tagMarker.isSelected {
  box-shadow: inset 8px 9px 16px rgb(255 251 235 / 36%), inset -8px -10px 16px rgb(61 43 36 / 23%), 0 13px 9px -5px rgb(76 56 44 / 48%), 0 0 0 6px rgb(255 244 218 / 44%);
}

/* Theme: Collage */
html[data-genre-theme="collage"] .mapViewport {
  background:
    linear-gradient(83deg, transparent 49%, rgb(55 69 70 / 8%) 50%, transparent 51%),
    repeating-linear-gradient(0deg, rgb(66 84 82 / 7%) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgb(66 84 82 / 7%) 0 1px, transparent 1px 24px),
    #b8d0ca;
}

html[data-genre-theme="collage"] .mapAtmosphere {
  opacity: .34;
  background-image:
    linear-gradient(24deg, transparent 47%, rgb(245 225 161 / 28%) 48% 54%, transparent 55%),
    linear-gradient(-17deg, transparent 46%, rgb(226 116 98 / 18%) 47% 53%, transparent 54%);
  background-size: 310px 240px, 420px 330px;
}

html[data-genre-theme="collage"] .tagMarker {
  border: 2px dashed rgb(50 43 42 / 42%);
  border-radius: var(--blobRadius, 47% 53% 45% 55% / 54% 46% 52% 48%);
  background:
    repeating-linear-gradient(14deg, rgb(255 255 255 / 8%) 0 2px, transparent 2px 8px),
    color-mix(in srgb, var(--markerColor) 72%, #e7cfae);
  color: #fffdf1;
  box-shadow: 6px 7px 0 #f1c75b, -5px -4px 0 rgb(236 111 94 / 72%), 0 13px 18px rgb(44 55 54 / 24%);
  text-shadow: 1px 1px 0 rgb(47 39 38 / 54%);
}

html[data-genre-theme="collage"] .tagMarker::before {
  position: absolute;
  z-index: 3;
  top: -7%;
  left: 26%;
  width: 48%;
  height: 17%;
  background: rgb(245 225 167 / 62%);
  box-shadow: 0 1px 2px rgb(65 53 42 / 16%);
  content: "";
  pointer-events: none;
  transform: rotate(-8deg);
}

html[data-genre-theme="collage"] .tagMarker:hover,
html[data-genre-theme="collage"] .tagMarker.isSelected {
  box-shadow: 8px 9px 0 #f1c75b, -6px -5px 0 rgb(236 111 94 / 78%), 0 0 0 6px rgb(255 251 224 / 44%), 0 16px 22px rgb(44 55 54 / 28%);
}

.artistOrbit,
.artistThreads {
  position: absolute;
  z-index: 12;
  inset: 0;
  pointer-events: none;
}

.artistThreads line {
  stroke: rgb(72 49 69 / 30%);
  stroke-width: 1.5;
  stroke-dasharray: 3 7;
  animation: threadDraw .5s both;
}

@keyframes threadDraw { from { stroke-dashoffset: 45; opacity: 0; } }

.artistCard {
  position: absolute;
  display: grid;
  grid-template-rows: 62px auto;
  width: 96px;
  min-height: 94px;
  padding: 6px;
  border: 3px solid #aaa7a5;
  border-radius: 42px 42px 16px 16px;
  background: rgb(255 250 237 / 92%);
  color: var(--ink);
  box-shadow: 0 12px 28px var(--shadow);
  cursor: pointer;
  opacity: 0;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(.35) rotate(-8deg);
  animation: artistArrive .62s cubic-bezier(.15,.9,.2,1.3) forwards;
  animation-delay: var(--delay);
  backdrop-filter: blur(10px);
  -webkit-user-select: none;
  user-select: none;
}

.artistCard.hasPreview {
  border-color: #42b994;
  box-shadow: 0 12px 28px var(--shadow), 0 0 0 3px rgb(77 205 163 / 18%);
}

.artistCard.noPreview {
  border-color: #aaa7a5;
  filter: saturate(.72);
}

@keyframes artistArrive {
  62% { opacity: 1; transform: translate(-50%, -50%) scale(1.1) rotate(2deg); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
}

.artistOrbit.isLeaving .artistCard {
  animation: artistLeave .32s ease-in forwards;
  animation-delay: calc(var(--delay) * .15);
}

@keyframes artistLeave { to { opacity: 0; transform: translate(-50%, -80%) scale(.7) rotate(5deg); } }

.artistPortrait {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(145deg, #eda271, #7aaea4);
  color: white;
  font-family: Georgia, serif;
  font-size: 22px;
}

.artistPortrait img { width: 100%; height: 100%; object-fit: cover; }

.artistCard strong {
  align-self: center;
  padding: 3px 3px 5px;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
}

.artistCard.isPlaying {
  z-index: 3;
  border-color: #ff8f3d;
  filter: none;
  box-shadow: 0 14px 34px rgb(190 70 77 / 42%), 0 0 0 5px rgb(255 188 75 / 48%);
}

.artistCard.isLoading {
  animation: artistListening .75s ease-in-out infinite alternate;
}

@keyframes artistListening {
  to { transform: translate(-50%, -50%) scale(1.06) rotate(1deg); filter: saturate(1.2); }
}

.mapControls {
  position: absolute;
  z-index: 18;
  right: 22px;
  bottom: 24px;
  display: grid;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 50%);
  border-radius: 16px;
  box-shadow: 0 9px 28px rgb(58 39 50 / 15%);
}

.mapControls button {
  width: 46px;
  height: 42px;
  border: 0;
  border-bottom: 1px solid rgb(70 55 60 / 12%);
  background: rgb(255 249 232 / 90%);
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
}

.mapControls button:last-child { border-bottom: 0; }

.zoomReadout {
  position: absolute;
  z-index: 18;
  right: 76px;
  bottom: 28px;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgb(255 249 232 / 74%);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  pointer-events: none;
}

.nowPlaying {
  position: absolute;
  z-index: 25;
  left: 50%;
  bottom: 22px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  width: min(440px, calc(100% - 150px));
  min-height: 68px;
  padding: 10px 12px;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 24px 9px 24px 9px;
  background: rgb(42 31 45 / 91%);
  color: white;
  box-shadow: 0 16px 40px rgb(35 24 38 / 32%);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
  animation: playerRise .45s cubic-bezier(.2,.9,.2,1.15);
}

@keyframes playerRise { from { opacity: 0; transform: translate(-50%, 24px) scale(.95); } }

.playbackButton {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgb(246 173 85 / 16%);
  color: #f6ad55;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.playbackButton::before { content: "Ⅱ"; font-size: 18px; font-weight: 950; letter-spacing: -2px; transform: translateX(-1px); }
.playbackButton.isPaused::before { content: "▶"; font-size: 15px; letter-spacing: 0; transform: translateX(1px); }
.playbackButton:hover { background: rgb(246 173 85 / 27%); transform: scale(1.06); }
.playbackButton:focus-visible { outline: 3px solid rgb(246 173 85 / 45%); outline-offset: 2px; }

.nowPlayingCopy {
  min-width: 0;
  padding: 2px 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.nowPlayingCopy:hover { background: rgb(255 255 255 / 8%); }
.nowPlayingCopy:disabled { cursor: default; opacity: .82; }
.nowPlayingCopy span { display: block; color: #f6ad55; font-size: 9px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.nowPlayingCopy strong,
.nowPlayingCopy small,
.nowPlayingCopy em { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nowPlayingCopy strong { margin-top: 2px; font-size: 13px; }
.nowPlayingCopy small { margin-top: 1px; color: #d6ced7; font-size: 11px; }
.nowPlayingCopy em {
  margin-top: 2px;
  color: #f6ad55;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
}

.albumMapOverlay {
  position: absolute;
  z-index: 45;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(30 24 34 / 58%);
  backdrop-filter: blur(8px);
}
.albumMapOverlay[hidden] { display: none; }

.favoritesOverlay {
  position: absolute;
  z-index: 44;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(30 24 34 / 58%);
  backdrop-filter: blur(8px);
}
.favoritesOverlay[hidden] { display: none; }
.favoritesPanel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  padding: 30px;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 34px 16px 34px 16px;
  background:
    radial-gradient(circle at 92% 7%, rgb(244 151 165 / 16%), transparent 28%),
    #fffaf0;
  color: var(--ink);
  box-shadow: 0 28px 80px rgb(24 17 28 / 45%);
}
.favoritesClose {
  position: sticky;
  z-index: 2;
  top: 0;
  float: right;
  width: 40px;
  height: 40px;
  margin: 0 0 -40px;
  border: 0;
  border-radius: 50%;
  background: #302434;
  color: white;
  font-size: 25px;
  cursor: pointer;
}
.favoritesHeading {
  display: flex;
  gap: 13px;
  align-items: center;
  padding-right: 52px;
}
.favoritesHeading > span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50% 44% 48% 42%;
  background: #f8d5d8;
  color: #d84d64;
  font-size: 27px;
  transform: rotate(-5deg);
}
.favoritesHeading p {
  margin: 0 0 3px;
  color: #b45361;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.favoritesHeading h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 500;
  line-height: 1;
}
.favoritesContent { margin-top: 26px; }
.favoritesEmpty {
  padding: 48px 20px;
  border: 1px dashed #dfc9bf;
  border-radius: 24px 10px 24px 10px;
  background: rgb(246 235 222 / 60%);
  color: var(--muted);
  text-align: center;
  line-height: 1.55;
}
.favoritesGroup + .favoritesGroup { margin-top: 26px; }
.favoritesGroup h3 {
  margin: 0 0 10px;
  color: #95636b;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.favoritesList {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.favoritesItem {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 58px;
  padding: 9px;
  border: 1px solid #e5d8c9;
  border-radius: 16px 7px 16px 7px;
  background: rgb(255 253 246 / 82%);
  cursor: pointer;
}
.favoritesTypeIcon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e7eee4;
  color: #467762;
  font-family: Georgia, serif;
  font-size: 16px;
}
.favoritesItemCopy {
  min-width: 0;
  padding: 2px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}
button.favoritesItemCopy { cursor: pointer; }
button.favoritesItemCopy:hover strong { color: #b7485b; }
.favoritesItemCopy strong,
.favoritesItemCopy small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.favoritesItemCopy strong { font-size: 12px; }
.favoritesItemCopy small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.favoritesActions { display: flex; gap: 5px; }
.favoritePreview,
.favoriteRemove {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #dfc9ca;
  border-radius: 50%;
  background: #fff7f5;
  color: #bd5363;
  cursor: pointer;
}
.favoritePreview { border-color: #a6cfbe; background: #edf8f3; color: #32795f; font-size: 11px; }
.favoriteRemove { font-size: 18px; }
.favoritePreview:hover,
.favoriteRemove:hover { transform: scale(1.07); }
.favoritesBack {
  margin: 0 0 16px;
  padding: 8px 12px;
  border: 1px solid #d7c7bb;
  border-radius: 999px;
  background: #fffdf8;
  color: #745867;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}
.favoritesBack:hover { border-color: #bb6876; color: #a53f52; }
.favoritesArtistProfile {
  margin-top: 0;
  padding: 18px;
  border: 1px solid #dfd2c1;
  border-radius: 24px 10px 24px 10px;
  background: rgb(255 253 246 / 78%);
}
.favoritesArtistAlbums { margin-top: 26px; }
.favoritesArtistAlbums > h3 {
  margin: 0 0 12px;
  color: #95636b;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.favoritesArtistAlbums > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.favoritesAlbumLink {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 66px;
  padding: 7px;
  border: 1px solid #dfd2c1;
  border-radius: 16px 7px 16px 7px;
  background: #fffdf8;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.favoritesAlbumLink:hover { border-color: #c66d7c; transform: translateY(-1px); }
.favoritesAlbumLink img { width: 52px; height: 52px; border-radius: 9px; object-fit: cover; }
.favoritesAlbumLink strong,
.favoritesAlbumLink small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.favoritesAlbumLink strong { font-size: 12px; }
.favoritesAlbumLink small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.favoriteConfirmDialog {
  z-index: 100;
  width: min(390px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid rgb(255 255 255 / 75%);
  border-radius: 28px 12px 28px 12px;
  background: #fffaf0;
  color: var(--ink);
  box-shadow: 0 28px 90px rgb(24 17 28 / 60%);
}
.favoriteConfirmDialog::backdrop { background: rgb(30 24 34 / 68%); backdrop-filter: blur(8px); }
.favoriteConfirmDialog form { padding: 28px; text-align: center; }
.favoriteConfirmDialog form > span { color: #df5268; font-size: 32px; }
.favoriteConfirmDialog h2 { margin: 8px 0; font-family: Georgia, serif; font-size: 27px; font-weight: 500; }
.favoriteConfirmDialog p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.favoriteConfirmDialog form > div { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 22px; }
.favoriteConfirmDialog button {
  padding: 10px 12px;
  border: 1px solid #d8c8bb;
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.favoriteConfirmDialog .favoriteConfirmRemove { border-color: #cf5164; background: #cf5164; color: white; }
.albumMapPanel {
  position: relative;
  width: min(680px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 34px 16px 34px 16px;
  background: #fffaf0;
  color: var(--ink);
  box-shadow: 0 28px 80px rgb(24 17 28 / 45%);
}
.albumMapClose {
  position: sticky;
  z-index: 2;
  top: 12px;
  float: right;
  width: 40px;
  height: 40px;
  margin: 12px 12px -52px 0;
  border: 0;
  border-radius: 50%;
  background: #302434;
  color: white;
  font-size: 25px;
  cursor: pointer;
}
.albumMapContent { padding: 28px; }
.albumMapHero { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 22px; align-items: center; }
.albumMapHero img { width: 160px; aspect-ratio: 1; border-radius: 18px; object-fit: cover; box-shadow: 0 12px 28px var(--shadow); }
.albumMapHero h2 { margin: 0; padding-right: 44px; font-family: Georgia, serif; font-size: clamp(25px, 4vw, 38px); line-height: 1.02; }
.albumMapHero p { margin: 8px 0 0; color: var(--muted); line-height: 1.4; }
.albumMapHeading { position: relative; }
.albumMapHeading > .entityFavorite { position: absolute; top: 42px; right: 0; }
.albumMapId,
.albumMapLabel {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  letter-spacing: -.02em;
}
.albumMapId { color: #b84e4f !important; font-size: 15px; font-weight: 400; }
.albumMapFacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 22px 0; }
.albumMapFacts div { padding: 10px; border-radius: 12px; background: #f3eadc; }
.albumMapFacts span { display: block; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.albumMapFacts strong { display: block; margin-top: 3px; font-size: 12px; }
.albumMapGenres { display: flex; flex-wrap: wrap; gap: 6px; }
.albumMapGenres span { padding: 5px 9px; border-radius: 14px; background: #dceee7; color: #276c59; font-size: 10px; font-weight: 760; }
.albumMapTracks { margin: 22px 0 0; padding-left: 22px; columns: 2; column-gap: 28px; }
.albumMapTracks li { display: flex; align-items: center; gap: 6px; margin: 0 0 7px; break-inside: avoid; font-size: 11px; line-height: 1.35; }
.albumMapTracks li > span { flex: 1; min-width: 0; }
.trackPreviewButton {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #8fc4ae;
  border-radius: 50%;
  background: #eaf7f1;
  color: #24765c;
  font-size: 11px;
  cursor: pointer;
}
.trackPreviewButton:hover { background: #d6f0e5; transform: scale(1.06); }
.trackPreviewButton.isPlaying { border-color: #ec9754; background: #fff0df; color: #b85f27; }
.entityFavorite {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #e5bdc3;
  border-radius: 50%;
  background: #fff7f5;
  color: #b66b75;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}
.entityFavorite:hover { background: #ffe9e8; transform: scale(1.06); }
.entityFavorite.isFavorite { border-color: #ef8090; color: #e74760; }
.albumMapArtist {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid #dfd2c1;
}
.albumMapArtist > img { width: 132px; aspect-ratio: 1; border-radius: 50% 42% 48% 40%; object-fit: cover; box-shadow: 0 10px 24px var(--shadow); }
.albumMapArtist > div > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.albumMapArtist h3 { margin: 0; font-family: Georgia, serif; font-size: 24px; }
.albumMapArtist p { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.albumMapLoading { padding: 70px 20px; color: var(--muted); text-align: center; }

.favoriteButton {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 11%);
  color: #ffb2bc;
  font-size: 25px;
  cursor: pointer;
}
.favoriteButton.isFavorite { color: #ff697d; }

.mapToast {
  position: absolute;
  z-index: 70;
  top: 24px;
  left: 50%;
  padding: 8px 13px;
  border-radius: 18px;
  background: rgb(42 31 45 / 88%);
  color: white;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -15px);
  transition: .3s ease;
}
.mapToast.isVisible { opacity: 1; transform: translate(-50%, 0); }

.mapEmpty {
  position: absolute;
  z-index: 10;
  top: 50%;
  left: 50%;
  width: min(430px, calc(100% - 40px));
  padding: 30px;
  border-radius: 40% 20% 36% 18%;
  background: rgb(255 249 232 / 76%);
  text-align: center;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(12px);
}
.mapEmpty span { color: #bd5d55; font-size: 42px; }
.mapEmpty h2 { margin: 5px 0 8px; font-family: Georgia, serif; font-weight: 500; }
.mapEmpty p { margin: 0; color: var(--muted); line-height: 1.5; }

@media (max-width: 620px) {
  .mapHeader { padding: 12px; }
  .mapHeader > div { padding: 9px 12px; }
  .mapHeader h1 { font-size: 27px; }
  .mapHint { display: none; }
  .mapClose { width: 42px; height: 42px; }
  .artistCard { width: 82px; grid-template-rows: 52px auto; min-height: 82px; }
  .artistPortrait { width: 52px; height: 52px; }
  .mapControls { right: 12px; bottom: 14px; }
  .zoomReadout { display: none; }
  .nowPlaying { bottom: 14px; left: 12px; width: calc(100% - 82px); transform: none; }
  .albumMapOverlay { padding: 10px; }
  .favoritesOverlay { padding: 10px; }
  .favoritesPanel { max-height: calc(100vh - 20px); padding: 20px; }
  .favoritesList { grid-template-columns: 1fr; }
  .favoritesArtistAlbums > div { grid-template-columns: 1fr; }
  .albumMapPanel { max-height: calc(100vh - 20px); }
  .albumMapContent { padding: 20px; }
  .albumMapHero { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; }
  .albumMapHero img { width: 92px; }
  .albumMapFacts { grid-template-columns: 1fr; }
  .albumMapTracks { columns: 1; }
  .albumMapArtist { grid-template-columns: 82px minmax(0, 1fr); }
  .albumMapArtist > img { width: 82px; }
  @keyframes playerRise { from { opacity: 0; transform: translateY(24px) scale(.95); } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
