/* Master favorite lists + Amazon-style compare */

.master-lists-panel {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(129, 93, 167, 0.2);
}

.master-lists-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.master-lists-panel__title {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.master-lists-panel__new-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  border: 1.5px solid #d4c6e8;
  background: linear-gradient(180deg, #fff 0%, #faf8fc 100%);
  color: #815da7;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(129, 93, 167, 0.1);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.master-lists-panel__new-btn::before {
  content: '+';
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.master-lists-panel__new-btn:hover {
  background: #f3ebfa;
  border-color: #815da7;
  color: #6b4490;
  box-shadow: 0 2px 10px rgba(129, 93, 167, 0.18);
  transform: translateY(-1px);
}

.master-lists-panel__new-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(129, 93, 167, 0.12);
}

.master-lists-panel__new-btn:disabled,
.master-lists-panel__new-btn.master-readonly-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.master-lists-panel--under-search {
  margin-top: 12px;
  padding-top: 0;
  border-top: none;
}

.master-lists-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.master-list-row {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  min-height: 48px;
  background: #fff;
  border: 1px solid #e8e4f0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: visible;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.master-list-row:hover {
  border-color: #d8cce8;
  box-shadow: 0 2px 8px rgba(129, 93, 167, 0.12);
}

.master-list-row.active {
  border-color: #815da7;
  background: #f8f5fc;
  box-shadow: 0 2px 10px rgba(129, 93, 167, 0.18);
}

.master-list-row__main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #3d2a52;
}

.master-list-row__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.master-list-row__count {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: #815da7;
  background: #f3ebfa;
  padding: 3px 9px;
  border-radius: 999px;
  min-width: 24px;
  text-align: center;
}

.master-list-row__count-label {
  display: none;
}

.master-lists-panel--in-sheet .master-list-row__count-num {
  display: none;
}

.master-lists-panel--in-sheet .master-list-row__count-label {
  display: inline;
}

.master-list-row.active .master-list-row__count {
  background: #815da7;
  color: #fff;
}

.master-list-row__menu {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin: 4px 6px 4px 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #6b7280;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.master-list-row__menu:hover,
.master-list-row__menu[aria-expanded="true"] {
  background: #f3ebfa;
  color: #815da7;
}

.master-list-row__name-wrap {
  min-width: 0;
  flex: 1;
}

.master-list-row__name-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.master-list-row__name-line .master-list-row__name {
  flex: 0 1 auto;
  min-width: 0;
}

.master-list-row--shared {
  border-style: dashed;
}

.master-list-share-icon {
  flex-shrink: 0;
  color: #815da7;
  display: block;
}

.master-list-row__share-inline {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  color: #815da7;
  background: #f3ebfa;
  padding: 1px 6px 1px 4px;
  border-radius: 999px;
  line-height: 1;
}

.master-list-row__share-inline-num {
  min-width: 0.75em;
  text-align: center;
}

.master-list-row__shared-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  font-size: 10px;
  font-weight: 600;
  color: #6b4f8a;
  background: #f3ebfa;
  padding: 2px 8px 2px 6px;
  border-radius: 999px;
}

.master-list-row__shared-badge-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.master-list-row__share-count {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  color: #815da7;
  background: #f3ebfa;
  padding: 2px 8px 2px 6px;
  border-radius: 999px;
}

.master-list-row__share-count-num {
  line-height: 1;
}

.master-lists-section-title {
  margin: 10px 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af;
}

.master-lists-section-title__inner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.master-floating-menu__item--with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

.master-floating-menu__item-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: #815da7;
}

.master-list-share-modal__content {
  max-width: 480px;
  width: calc(100vw - 24px);
}

.master-list-share-modal__header h2 {
  margin: 0 0 6px;
  font-size: 20px;
  color: #815da7;
  text-align: center;
}

.master-list-share-modal__subtitle {
  margin: 0;
  text-align: center;
  font-weight: 600;
  color: #3d2a52;
}

.master-list-share-modal__hint {
  margin: 8px 0 0;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.45;
}

.master-list-share-modal__section + .master-list-share-modal__section {
  margin-top: 16px;
}

.master-list-share-modal__section-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.master-list-share-modal__search {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
}

.master-list-share-modal__picker {
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid #ece8f4;
  border-radius: 10px;
}

.master-list-share-picker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  font-size: 14px;
}

.master-list-share-picker-row:last-child {
  border-bottom: none;
}

.master-list-share-modal__shared-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.master-list-share-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 6px 12px;
  background: #f3ebfa;
  border-radius: 999px;
  font-size: 13px;
  color: #3d2a52;
}

.master-list-share-chip__remove {
  border: none;
  background: transparent;
  color: #815da7;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.master-list-share-modal__empty {
  margin: 0;
  font-size: 13px;
  color: #9ca3af;
}

/* Gemeinsame Floating-Menüs (Listen-⋯, Listen-Popover) */
.master-floating-menu,
.master-list-popover,
.master-list-row-menu {
  position: fixed;
  z-index: 12001;
  width: min(280px, calc(100vw - 24px));
  min-width: 240px;
  max-width: min(280px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid #e8e4f0;
  border-radius: 14px;
  box-shadow: 0 10px 32px rgba(61, 42, 82, 0.16);
  padding: 8px;
  overflow: hidden;
  font-family: inherit;
  box-sizing: border-box;
}

.master-floating-menu__header,
.master-list-popover__header {
  margin: 0;
  padding: 6px 10px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #8a4af3;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.master-floating-menu__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.master-floating-menu__item,
.master-list-row-menu__item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  text-align: left;
  border: 1px solid #ece9f2;
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: #3d2a52;
  cursor: pointer;
  min-height: 44px;
  box-sizing: border-box;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.master-floating-menu__item:hover:not(:disabled),
.master-list-row-menu__item:hover:not(:disabled) {
  background: #f8f5fc;
  border-color: #d8cce8;
}

.master-floating-menu__item--danger,
.master-list-row-menu__item--danger {
  color: #b91c1c;
}

.master-floating-menu__item--danger:hover:not(:disabled),
.master-list-row-menu__item--danger:hover:not(:disabled) {
  background: #fef2f2;
  border-color: #fecaca;
}

.master-floating-menu__item:disabled,
.master-list-row-menu__item:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.master-floating-menu__item.master-readonly-disabled,
.master-list-row-menu__item.master-readonly-disabled {
  display: none;
}

.master-floating-menu__action,
.master-list-popover__new {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  border: 1.5px solid #d4c6e8;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff 0%, #faf8fc 100%);
  color: #815da7;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  padding: 10px 14px;
  cursor: pointer;
  min-height: 44px;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.master-floating-menu__action::before,
.master-list-popover__new::before {
  content: '+';
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.master-floating-menu__action:hover:not(:disabled),
.master-list-popover__new:hover:not(:disabled) {
  background: #f3ebfa;
  border-color: #815da7;
  box-shadow: 0 2px 10px rgba(129, 93, 167, 0.14);
}

.master-floating-menu__action:disabled,
.master-floating-menu__action.master-readonly-disabled,
.master-list-popover__new:disabled,
.master-list-popover__new.master-readonly-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.master-floating-menu__footer,
.master-list-popover__footer {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e0d4ef;
}

.master-floating-menu__empty,
.master-list-popover__empty {
  margin: 0;
  padding: 8px 10px 12px;
  font-size: 13px;
  line-height: 1.45;
  color: #6b7280;
}

.master-lists-empty {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.45;
  margin: 0 0 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8f5fc;
  border: 1px dashed #e0d4ef;
}

.master-lists-empty[hidden] {
  display: none !important;
}

.master-lists-panel.is-loading .master-lists-empty {
  display: none !important;
}

/* Listen-Ladeanimation (wie dashboard-master .spinner-container) */
.master-lists-spinner {
  width: 100%;
}

.master-lists-spinner .spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 0;
  width: 100%;
}

.master-lists-spinner .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(129, 93, 167, 0.1);
  border-radius: 50%;
  border-top-color: #815da7;
  animation: master-lists-spinner-spin 1s cubic-bezier(0.55, 0.055, 0.675, 0.19) infinite;
}

.master-lists-spinner .loading-text {
  margin-top: 15px;
  color: #815da7;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.8;
  animation: master-lists-spinner-pulse 1.5s infinite ease-in-out;
}

@keyframes master-lists-spinner-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes master-lists-spinner-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.master-lists-panel--in-sheet .master-lists-spinner .spinner-container {
  padding: 36px 0;
}

#masterListsPanelDesktopHost.is-hidden {
  display: none !important;
}

@media (min-width: 901px) {
  #masterListsPanelDesktopHost {
    flex-shrink: 0;
  }
}

.list-view-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f8f5fc;
  border: 1px solid #e8e4f0;
  color: #4c3570;
  font-size: 14px;
  font-weight: 600;
}

.list-view-banner.active {
  display: flex;
}

.list-view-banner button {
  border: none;
  background: transparent;
  color: #815da7;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.list-view-banner button:hover {
  background: #f3ebfa;
  text-decoration: underline;
}

.search-card .card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}

.list-card-btn,
.compare-card-btn,
.share-card-btn {
  border: none;
  background: #f3f4f6;
  color: #4b5563;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.share-card-btn {
  background: transparent;
  color: #815da7;
}

.share-card-btn:hover {
  background: #f0f0f0;
}

.share-card-btn svg,
.list-card-btn svg {
  width: 22px;
  height: 22px;
}

.list-card-btn:hover,
.compare-card-btn:hover {
  background: #e8e4f0;
  color: #815da7;
}

.list-add-icon__circle {
  fill: none;
}

.compare-card-btn svg {
  width: 22px;
  height: 22px;
}

.compare-card-btn.is-active {
  background: #815da7;
  color: #fff;
}

.compare-card-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #6b7280;
  cursor: pointer;
  user-select: none;
}

.compare-card-check input {
  accent-color: #815da7;
}

.master-list-popover__lists {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: min(240px, 42vh);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.master-list-popover__item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.master-list-popover__item.is-member {
  background: #f8f5fc;
  border-color: #c9b8e0;
  box-shadow: inset 0 0 0 1px rgba(129, 93, 167, 0.08);
}

.master-list-popover__icon {
  flex-shrink: 0;
  color: #9ca3af;
}

.master-list-popover__icon--member {
  color: #815da7;
}

.master-list-popover__item-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.master-list-popover__item-count {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: #815da7;
  background: #f3ebfa;
  padding: 3px 9px;
  border-radius: 999px;
  min-width: 24px;
  text-align: center;
}

.master-compare-bar {
  display: none;
  position: fixed;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 11000;
  width: min(720px, calc(100vw - 20px));
  max-width: calc(100vw - 20px);
  pointer-events: none;
}

.master-compare-bar.active {
  display: block;
}

.master-compare-bar.is-expanded {
  inset: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: none;
  transform: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 0;
  pointer-events: auto;
}

body.master-compare-sheet-open {
  overflow: hidden;
}

.master-compare-bar__backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
}

.master-compare-bar.is-expanded .master-compare-bar__backdrop {
  display: block;
}

.master-compare-bar__panel--expanded {
  width: min(960px, 100%);
  max-height: min(88vh, 900px);
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  border-bottom: none;
  background: #fff;
  box-shadow: 0 -10px 40px rgba(61, 42, 82, 0.18), 0 -2px 12px rgba(129, 93, 167, 0.1);
}

.master-compare-bar__sheet-top {
  flex-shrink: 0;
  padding: 16px 16px 0;
}

.master-compare-bar .muveup-lang-toggle {
  display: none !important;
}

.master-compare-bar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 8px;
  border-bottom: none;
  position: static;
  top: auto;
  left: auto;
  width: auto;
  background: transparent;
  box-shadow: none;
  z-index: auto;
}

.master-compare-bar__header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #4c3570;
  flex: 1;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.master-compare-bar__toolbar {
  padding: 0 0 12px;
}

.master-compare-bar__hint {
  margin: 0 0 10px;
  font-size: 13px;
  color: #6b5f7d;
}

.master-compare-hidden-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e8e4f0;
}

.master-compare-hidden-badges__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a7a9e;
  flex-shrink: 0;
}

.master-compare-hidden-badges__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.master-compare-hidden-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  border: 1px dashed #cfc2e3;
  background: #faf8fc;
  color: #6b5f7d;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.master-compare-hidden-badge:hover {
  background: #f3ebfa;
  border-color: #815da7;
  border-style: solid;
  color: #4c3570;
}

.master-compare-hidden-badge__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #e8dff5;
  color: #815da7;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.master-compare-hidden-badge:hover .master-compare-hidden-badge__icon {
  background: #815da7;
  color: #fff;
}

.master-compare-hidden-badge__name {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.master-compare-bar__table-host {
  overflow: auto;
  padding: 8px 16px 12px;
  flex: 1;
  min-height: 0;
}

.master-compare-bar__header--title-only h2 {
  padding-right: 0;
}

.master-compare-bar__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: none;
  background: transparent;
  flex-shrink: 0;
  position: static;
  width: auto;
  box-shadow: none;
  text-align: left;
  color: inherit;
  font-size: inherit;
}

.master-compare-bar__close-btn--footer {
  margin-right: auto;
}

.master-compare-bar__footer .master-compare-bar__btn--primary {
  min-width: 168px;
}

.master-compare-bar__close-btn {
  border: 1.5px solid #d4c6e8;
  background: #fff;
  color: #815da7;
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.master-compare-bar__close-btn--header {
  margin-left: auto;
}

.master-compare-bar__close-btn:hover {
  background: #f3ebfa;
  border-color: #815da7;
  color: #6b4490;
}

.master-compare-bar__panel {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #fff 0%, #faf8fc 100%);
  color: #4c3570;
  border: 1px solid #e8e4f0;
  border-radius: 16px;
  box-shadow: 0 10px 32px rgba(61, 42, 82, 0.16), 0 2px 8px rgba(129, 93, 167, 0.08);
  position: relative;
}

.master-compare-bar__close--corner {
  position: absolute;
  top: 8px;
  right: 8px;
  margin: 0;
  z-index: 2;
}

.master-compare-bar__close {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: #8a7a9e;
  font-size: 24px;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: background 0.15s ease, color 0.15s ease;
}

.master-compare-bar__close:hover {
  background: #f3ebfa;
  color: #815da7;
}

.master-compare-bar__main {
  flex: 1;
  min-width: 0;
}

.master-compare-bar__label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #815da7;
}

.master-compare-bar__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.master-compare-bar__chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  max-width: 100%;
  padding: 2px 2px 2px 4px;
  border-radius: 999px;
  background: #f3ebfa;
  border: 1px solid #e0d4ef;
  color: #4c3570;
  font-size: 12px;
  font-weight: 600;
}

.master-compare-bar__chip.is-paused {
  background: #f8f5fc;
  border-color: #e8e4f0;
  opacity: 0.82;
}

.master-compare-bar__chip-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 4px 2px 6px;
  border-radius: 999px;
  max-width: 100%;
}

.master-compare-bar__chip-toggle:hover {
  background: rgba(255, 255, 255, 0.65);
}

.master-compare-bar__chip-check {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1.5px solid #b9a4d4;
  background: #fff;
  flex-shrink: 0;
  position: relative;
}

.master-compare-bar__chip.is-active .master-compare-bar__chip-check {
  background: #815da7;
  border-color: #815da7;
}

.master-compare-bar__chip.is-active .master-compare-bar__chip-check::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 1px;
  width: 5px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.master-compare-bar__chip.is-paused .master-compare-bar__chip-name {
  color: #8a7a9e;
}

.master-compare-bar__chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}

.master-compare-bar__chip-remove {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: #8a7a9e;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.master-compare-bar__chip-remove:hover {
  background: #fff;
  color: #e38722;
}

.master-compare-bar__count {
  margin: 0;
  font-size: 12px;
  color: #6b5f7d;
}

.master-compare-bar__actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  align-self: center;
}

.master-compare-bar__btn {
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.master-compare-bar__btn--primary {
  background: #e38722;
  color: #fff;
  box-shadow: 0 2px 8px rgba(227, 135, 34, 0.28);
}

.master-compare-bar__btn--primary:hover:not(:disabled) {
  background: #cf7818;
  transform: translateY(-1px);
}

.master-compare-bar__btn--primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.master-compare-bar__text {
  font-size: 13px;
  white-space: nowrap;
}

.master-compare-bar__btn--ghost {
  background: transparent;
  color: #815da7;
  border: 1px solid #d4c6e8;
}

.master-compare-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 13000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.master-compare-modal.active {
  display: flex;
}

.master-compare-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.master-compare-modal__panel {
  position: relative;
  width: min(960px, 100%);
  max-height: min(90vh, 720px);
  background: #fff;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.master-compare-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #eee;
}

.master-compare-modal__header h2 {
  margin: 0;
  font-size: 18px;
}

.master-compare-modal__close {
  flex-shrink: 0;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  cursor: pointer;
  color: #8a7a9e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.master-compare-modal__close:hover {
  background: #f3ebfa;
  color: #815da7;
}

.master-compare-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 18px 16px;
  border-top: 1px solid #eee;
  background: #faf8fc;
}

.master-compare-modal__close-btn {
  border: 1.5px solid #d4c6e8;
  background: #fff;
  color: #815da7;
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.master-compare-modal__close-btn:hover {
  background: #f3ebfa;
  border-color: #815da7;
  color: #6b4490;
}

.master-compare-modal__body {
  overflow: auto;
  padding: 12px 16px 18px;
}

.master-compare-loading {
  text-align: center;
  color: #6b7280;
  padding: 24px;
}

.master-compare-table-wrap {
  overflow-x: auto;
}

.master-compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: 13px;
}

.master-compare-table th,
.master-compare-table td {
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  vertical-align: top;
  text-align: left;
}

.master-compare-table thead th {
  background: #f8f5fc;
  font-weight: 700;
}

.master-compare-sticky {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fafafa;
  min-width: 110px;
}

.master-compare-hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: #6b5f7d;
}

.master-compare-hint--inline {
  padding: 0 2px;
}

.master-compare-col-header__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 96px;
}

.master-compare-col-header.is-paused .master-compare-col-header__name {
  color: #8a7a9e;
}

.master-compare-col-toggle {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.master-compare-col-toggle__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.master-compare-col-toggle__box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid #b9a4d4;
  background: #fff;
  display: inline-block;
  position: relative;
}

.master-compare-col-toggle__input:checked + .master-compare-col-toggle__box {
  background: #815da7;
  border-color: #815da7;
}

.master-compare-col-toggle__input:checked + .master-compare-col-toggle__box::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.master-compare-col-header__name {
  font-size: 13px;
  text-align: center;
  line-height: 1.25;
}

.master-compare-cell-empty {
  color: #6b7280;
  font-size: 13px;
}

.master-compare-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  align-items: flex-start;
}

.master-compare-tag-list .hashtag-btn {
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.master-compare-tag-list .instrument-badge {
  background: #f8f6fb;
  color: #5a4a6e;
  border: 1px solid #ebe6f2;
  box-shadow: none;
  white-space: nowrap;
}

.master-compare-tag-list .instrument-badge--legacy {
  background: #faf9fc;
  border-style: dashed;
  color: #6b5a7d;
  white-space: normal;
  text-align: left;
  line-height: 1.35;
  max-width: 100%;
}

.master-compare-tag-list .hashtag-btn[data-tag="#rock"] { background: #E57373; color: #FFFFFF; }
.master-compare-tag-list .hashtag-btn[data-tag="#jazz"] { background: #81C784; color: #FFFFFF; }
.master-compare-tag-list .hashtag-btn[data-tag="#pop"] { background: #F06292; color: #FFFFFF; }
.master-compare-tag-list .hashtag-btn[data-tag="#electronic"],
.master-compare-tag-list .hashtag-btn[data-tag="#electro"] { background: #4FC3F7; color: #FFFFFF; }
.master-compare-tag-list .hashtag-btn[data-tag="#folk"] { background: #A1887F; color: #FFFFFF; }
.master-compare-tag-list .hashtag-btn[data-tag="#hiphop"] { background: #9575CD; color: #FFFFFF; }
.master-compare-tag-list .hashtag-btn[data-tag="#klassik"] { background: #FFD54F; color: #333; }
.master-compare-tag-list .hashtag-btn[data-tag="#blues"] { background: #4DD0E1; color: #FFFFFF; }
.master-compare-tag-list .hashtag-btn[data-tag="#metal"] { background: #B0BEC5; color: #333; }
.master-compare-tag-list .hashtag-btn[data-tag="#reggae"] { background: #FFCA28; color: #333; }
.master-compare-tag-list .hashtag-btn[data-tag="#indie"] { background: #FF8A65; color: #FFFFFF; }
.master-compare-tag-list .hashtag-btn[data-tag="#punk"] { background: #D81B60; color: #FFFFFF; }
.master-compare-tag-list .hashtag-btn[data-tag="#soul"] { background: #FF8A80; color: #FFFFFF; }
.master-compare-tag-list .hashtag-btn[data-tag="#country"] { background: #BCAAA4; color: #333; }
.master-compare-tag-list .hashtag-btn[data-tag="#funk"] { background: #CE93D8; color: #FFFFFF; }
.master-compare-tag-list .hashtag-btn[data-tag="#rnb"] { background: #90CAF9; color: #FFFFFF; }
.master-compare-tag-list .hashtag-btn[data-tag="#latin"] { background: #FFAB91; color: #FFFFFF; }
.master-compare-tag-list .hashtag-btn[data-tag="#gospel"] { background: #FFCC80; color: #333; }
.master-compare-tag-list .hashtag-btn[data-tag="#disco"] { background: #F06292; color: #FFFFFF; }
.master-compare-tag-list .hashtag-btn[data-tag="#house"] { background: #4DD0E1; color: #FFFFFF; }
.master-compare-tag-list .hashtag-btn[data-tag="#techno"] { background: #A0A0A0; color: #333; }
.master-compare-tag-list .hashtag-btn[data-tag="#trance"] { background: #80DEEA; color: #FFFFFF; }
.master-compare-tag-list .hashtag-btn[data-tag="#dubstep"] { background: #B39DDB; color: #FFFFFF; }
.master-compare-tag-list .hashtag-btn[data-tag="#ambient"] { background: #B0BEC5; color: #333; }
.master-compare-tag-list .hashtag-btn[data-tag="#schlagermusik"],
.master-compare-tag-list .hashtag-btn[data-tag="#schlager"] { background: #FF69B4; color: #FFFFFF; }
.master-compare-tag-list .hashtag-btn[data-tag="#volksmusik"] { background: #228B22; color: #FFFFFF; }
.master-compare-tag-list .hashtag-btn[data-tag="#austropop"] { background: #DC143C; color: #FFFFFF; }
.master-compare-tag-list .hashtag-btn[data-tag="#wienerlied"] { background: #D2B48C; color: #333; }
.master-compare-tag-list .hashtag-btn[data-tag="#alpenrock"] { background: #8B4513; color: #FFFFFF; }
.master-compare-tag-list .hashtag-btn[data-tag="#kabarett"] { background: #DAA520; color: #FFFFFF; }
.master-compare-tag-list .hashtag-btn[data-tag="#weltmusik"] { background: #556B2F; color: #FFFFFF; }
.master-compare-tag-list .hashtag-btn[data-tag="#singersongwriter"] { background: #4682B4; color: #FFFFFF; }
.master-compare-tag-list .hashtag-btn[data-tag="#liedermacher"] { background: #D2691E; color: #FFFFFF; }
.master-compare-tag-list .hashtag-btn[data-tag="#alternative"] { background: #6A5ACD; color: #FFFFFF; }
.master-compare-tag-list .hashtag-btn[data-tag="#classical"] { background: #FFD54F; color: #333; }

.master-compare-formation-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 8px;
  background: #fcfaff;
  color: #815da7;
  border: 1px solid #e0d4fc;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  max-width: 100%;
}

.master-compare-formation-badge__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.master-compare-formation-badge__label {
  text-align: left;
}

.master-compare-profile-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.master-compare-avatar {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  background: #e8e4f0;
}

.master-compare-avatar-link {
  display: inline-block;
  cursor: pointer;
  border-radius: 10px;
  line-height: 0;
  transition: opacity 0.15s ease, box-shadow 0.15s ease;
}

.master-compare-avatar-link:hover,
.master-compare-avatar-link:focus-visible {
  opacity: 0.9;
  box-shadow: 0 0 0 2px #815da7;
  outline: none;
}

.master-compare-avatar--empty {
  display: block;
}

.master-compare-equipment-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.master-compare-equipment-details {
  font-size: 12px;
  line-height: 1.4;
  color: #3d3550;
}

.master-compare-equipment-badge {
  max-width: 100%;
}

.master-compare-name {
  font-weight: 600;
  font-size: 13px;
}

.master-compare-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.master-compare-link,
.master-compare-select-btn {
  font-size: 12px;
}

.master-compare-select-btn {
  border: none;
  background: #815da7;
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.mobile-lists-sheet {
  display: none;
}

@media (max-width: 900px) {
  :root {
    --muveup-sheet-snap-full: 12%;
  }

  .mobile-lists-sheet {
    width: 100%;
    max-width: 100%;
    right: 0;
    height: 100dvh;
    max-height: 100dvh;
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    border-radius: 18px 18px 0 0;
    z-index: 1102;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
  }

  .mobile-lists-sheet.snap-half {
    transform: translateY(50%);
  }

  .mobile-lists-sheet.snap-full {
    transform: translateY(var(--muveup-sheet-snap-full, 12%));
  }

  .mobile-lists-sheet.dragging {
    transition: none;
  }

  .mobile-lists-sheet .filter-drag-handle {
    padding: max(10px, env(safe-area-inset-top, 0px)) 15px 4px;
    cursor: grab;
    touch-action: none;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
  }

  .mobile-lists-sheet .filter-drag-handle::after {
    content: '';
    width: 44px;
    height: 5px;
    background: #d0d0d0;
    border-radius: 999px;
  }

  .mobile-lists-sheet__scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 8px 15px calc(20px + var(--muveup-bottom-nav-offset, 0px));
    min-height: 0;
  }

  .mobile-lists-sheet__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
  }

  .mobile-lists-sheet__title {
    margin: 0;
    flex: 1;
    min-width: 0;
  }

  .mobile-lists-sheet__new-btn {
    font-size: 13px;
    padding: 8px 15px;
  }

  .mobile-lists-sheet__new-btn:disabled,
  .mobile-lists-sheet__new-btn.master-readonly-disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  #masterListsPanelMobileHost {
    width: 100%;
    box-sizing: border-box;
  }

  .master-lists-panel--in-sheet {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }

  .master-lists-panel--in-sheet .master-lists-panel__header {
    display: none;
  }

  .master-lists-panel--in-sheet .master-lists-panel__title {
    display: none;
  }

  .master-lists-panel--in-sheet .master-list-row__main {
    padding: 12px 14px;
    font-size: 14px;
  }

  .master-lists-panel--in-sheet .master-list-row__menu {
    width: 44px;
    height: 44px;
    margin-right: 8px;
  }

  #masterListsPanelDesktopHost:empty {
    display: none;
  }
}

/* create-event favorite lists */
#masterFavoriteListsSection {
  width: 100%;
  margin-bottom: 20px;
  text-align: left;
}

.master-event-lists-heading {
  margin: 0 0 8px;
  font-size: 16px;
  color: #8a4af3;
  font-weight: 600;
}

.master-event-lists-hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
}

.master-event-lists-hint[hidden],
.master-event-lists-empty[hidden] {
  display: none !important;
}

.master-event-lists-rows {
  margin-bottom: 12px;
}

.master-event-lists-rows .master-list-row__count-label {
  display: inline;
}

.master-event-lists-rows .master-list-row__count-num {
  display: none;
}

.master-event-artists-panel {
  margin-top: 4px;
  margin-bottom: 16px;
}

.master-event-artists-list {
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid #e8e4f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.master-event-artist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #ece9f2;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.master-event-artist-row:last-child {
  border-bottom: none;
}

.master-event-artist-row:hover {
  background: #f8f5fc;
}

.master-event-artist-row.selected {
  background: #f8f5fc;
  box-shadow: inset 3px 0 0 #815da7;
}

.master-event-artist-row__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.master-event-artist-row__name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.master-event-artist-row__meta {
  font-size: 12px;
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.master-event-artist-row__profile {
  flex-shrink: 0;
  font-size: 13px;
  color: #815da7;
  font-weight: 600;
  text-decoration: none;
}

.master-event-artist-row__profile:hover {
  text-decoration: underline;
}

.master-compare-picker-modal__content {
  max-width: 480px;
  width: calc(100vw - 32px);
  text-align: left;
}

.master-compare-picker-modal__title {
  margin: 0 0 4px;
  font-size: 20px;
  color: #4c3570;
  text-align: center;
}

.master-compare-picker-modal__subtitle {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #815da7;
  text-align: center;
}

.master-compare-picker-modal__hint,
.master-compare-picker-modal__count {
  margin: 0 0 8px;
  font-size: 13px;
  color: #6b5f7d;
  text-align: center;
}

.master-compare-picker-modal__count {
  font-weight: 600;
  color: #4c3570;
}

.master-compare-picker-modal__list {
  max-height: min(50vh, 360px);
  overflow: auto;
  margin: 12px 0 8px;
  border: 1px solid #e8e4f0;
  border-radius: 12px;
  background: #fff;
}

.master-compare-picker-modal__loading,
.master-compare-picker-modal__error {
  margin: 0;
  padding: 16px 14px;
  font-size: 13px;
  color: #6b5f7d;
  text-align: center;
}

.master-compare-picker-modal__error {
  color: #dc2626;
}

.master-compare-picker-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-bottom: 1px solid #ece9f2;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.master-compare-picker-row:last-child {
  border-bottom: none;
}

.master-compare-picker-row:hover {
  background: #f8f5fc;
}

.master-compare-picker-row.is-selected {
  background: #f8f5fc;
  box-shadow: inset 3px 0 0 #815da7;
}

.master-compare-picker-row__check {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid #b9a4d4;
  background: #fff;
  flex-shrink: 0;
  position: relative;
}

.master-compare-picker-row.is-selected .master-compare-picker-row__check {
  background: #815da7;
  border-color: #815da7;
}

.master-compare-picker-row.is-selected .master-compare-picker-row__check::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.master-compare-picker-row__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.master-compare-picker-row__name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.master-compare-picker-row__meta {
  font-size: 12px;
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.master-compare-picker-modal__actions {
  margin-top: 14px;
}

.master-list-row-menu a.master-floating-menu__item,
.master-list-row-menu a.master-list-row-menu__item {
  display: flex;
  text-decoration: none;
  color: #3d2a52;
}

.master-event-lists-empty {
  font-size: 13px;
  color: #6b7280;
  font-style: italic;
  margin: 0;
  padding: 12px 14px;
}

@media (max-width: 600px) {
  .master-compare-bar {
    width: calc(100vw - 16px);
  }

  .master-compare-bar.is-expanded {
    width: 100%;
    padding: 0;
  }

  .master-compare-bar__panel {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .master-compare-bar__panel--expanded {
    width: 100%;
    max-height: 92vh;
    border-radius: 16px 16px 0 0;
  }

  .master-compare-bar__sheet-top {
    padding: 14px 14px 0;
  }

  .master-compare-bar__panel:not(.master-compare-bar__panel--expanded) {
    position: relative;
    padding-top: 12px;
    padding-right: 42px;
  }

  .master-compare-bar__actions {
    align-self: stretch;
  }

  .master-compare-bar__btn--primary {
    width: 100%;
  }

  .master-compare-bar__chip-name {
    max-width: 110px;
  }
}
