.events-item-title { color: #f3f3f3; font-size: 13px; line-height: 1.35; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.events-item-title a, .events-item-meta a { color: inherit; text-decoration: none; }
.events-item-title a:hover, .events-item-meta a:hover { text-decoration: underline; }
.events-item-meta { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.events-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; min-width: 92px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.events-badge { display: inline-flex; align-items: center; gap: 4px; min-height: 22px; padding: 3px 7px; border-radius: 999px; background: rgba(132,170,251,0.11); color: #f3f3f3; font-size: 12px; line-height: 1; }
.events-badge i { flex: 0 0 auto; font-size: 12px; line-height: 1; }
.events-badge.is-positive, .events-positive { color: #d7da8b; }
.events-badge.is-negative, .events-negative { color: #ff738a; }
.events-track-summary-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 23px; padding: 4px 8px; border-radius: 999px; background: rgba(132,170,251,0.11); color: #f3f3f3; font-size: 11px; line-height: 1.1; white-space: nowrap; vertical-align: middle; }
.events-track-summary-chip .events-track-summary-separator { color: #f3f3f3; opacity: 0.85; }
.events-track-summary-extra { display: inline-flex; max-width: 100%; min-width: 0; margin-right: 8px; color: var(--muted); font-size: 12px; vertical-align: middle; }
.events-track-summary-extra a { color: inherit; }
.events-track-summary-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.events-title-prefix { font-weight: 400; color: var(--muted); }
.events-item-meta--name-change { overflow: visible; white-space: normal; }
.events-name-change { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.events-name-change-context { min-width: 0; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.events-name-change-row { display: flex; align-items: center; gap: 7px; min-width: 0; color: #f3f3f3; }
.events-name-change-pill { min-width: 0; max-width: 45%; padding: 3px 7px; border-radius: 999px; background: rgba(132,170,251,0.10); color: #d8d8d8; font-size: 11px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.events-name-change-pill strong { color: #f3f3f3; font-weight: 500; }
.events-name-change-arrow { flex: 0 0 auto; color: #d7da8b; font-size: 11px; }
.events-state { display: none; padding: 14px 2px; }
.events-state.show { display: block; }
.events-load-more { align-self: center; display: none; height: 38px; margin-bottom: 8px; }
.events-load-more.show { display: inline-flex; }
@media (max-width: 1280px) {
  .events-field-search { margin-left: 0; }
}
@media (max-width: 780px) {
  .events-head { flex-direction: column; }
  .events-controls { display: flex; flex-direction: column; align-items: stretch; }
  .events-field-sort,
  .events-field-type,
  .events-field-date-range,
  .events-field-search,
  .events-search-group,
  .events-search-wrap,
  .events-date-range,
  .events-date-range-trigger { width: 100%; max-width: none; min-width: 0; }
  .events-day-toggle { grid-template-columns: minmax(0, 1fr) auto; }
  .events-day-count { display: none; }
  .events-type-toggle { grid-template-columns: auto minmax(0, 1fr) auto; }
  .events-type-count { display: none; }
  .events-subgroups { grid-template-columns: 1fr; }
  .events-type-group.is-followers-grid .events-items,
  .events-type-group.is-track-summary-grid .events-items { grid-template-columns: 1fr; }
  .events-day-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .events-item { grid-template-columns: 38px minmax(0, 1fr); }
  .events-item-side { grid-column: 2; align-items: flex-start; min-width: 0; }
  .events-search-hint {
    position: static;
    width: 100%;
    max-width: none;
    margin-bottom: 2px;
    text-align: left;
    transform: translateY(6px);
  }
  .events-field-search:focus-within .events-search-hint {
    transform: translateY(0);
  }
}


.tabs-panels {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.tab-pane {
  display: none;
  position: absolute;
  inset: 0;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  background: var(--tabs-pane-bg);
  border: 1px solid var(--tabs-pane-bg);
  border-radius: 12px;
  padding: 12px;
}

.tab-pane.is-active {
  display: block;
}

.tab-pane-section {
  min-height: 100%;
}

#tab-playlists {
  overflow: hidden;
}

#tab-stats {
  overflow: hidden;
}

#tab-events {
  overflow: hidden;
}

#tab-stats > .tab-pane-section {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
}

#tab-events > .tab-pane-section {
  min-height: 100%;
  height: 100%;
}

#tab-playlists > .tab-pane-section {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
}

#playlist-catalog {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.playlist-catalog-controls {
  flex: 0 0 auto;
  margin-bottom: 0;
  position: relative;
  z-index: 3;
  padding-top: 2px;
}

.catalog-summary-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.catalog-summary-row > * {
  min-width: 0;
}

.catalog-sort-dir-inline {
  margin-left: auto;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.catalog-sort-dir-label {
  font-size: 12px;
  line-height: 1.2;
  color: var(--muted);
  white-space: nowrap;
}

.catalog-sort-dir-select {
  width: auto;
  min-width: 168px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.catalog-sort-dir-select,
.catalog-sort-dir-select .selected {
  height: 42px;
  min-height: 42px;
}


.catalog-sort-dir-select .selected {
  padding: 0 30px 0 12px;
  font-size: 14px;
  line-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
}

.catalog-sort-dir-select .selected::after {
  top: 50%;
  transform: translateY(-50%);
}

.playlist-catalog-panel {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  background: rgba(53, 53, 60, 0.55);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px;
  background-image: var(--grain-bg);
  background-size: 20px 20px;
  background-blend-mode: overlay;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
}

.playlist-catalog-panel .field.small {
  flex: 0 0 240px;
  min-width: 240px;
}

.playlist-genres-field {
  flex: 0 0 240px;
  min-width: 240px;
}

.playlist-catalog-panel .slider-field {
  flex: 0 0 auto;
  min-width: 0;
}

.playlist-catalog-panel .playlist-toggle-field {
  flex: 0 0 auto;
  min-width: 0;
}


.playlist-catalog-panel .playlist-filter-field {
  flex: 0 0 auto;
  min-width: 0;
}

.playlist-catalog-panel .playlist-description-toggle-field {
  flex: 0 0 230px;
  min-width: 230px;
}

.playlist-catalog-panel .playlist-description-toggle-row {
  width: 100%;
  box-sizing: border-box;
}

.playlist-filter-select {
  position: relative;
  z-index: 1;
  width: max-content;
  max-width: 100%;
  min-width: 0;
}

.playlist-filter-trigger {
  width: auto;
  min-width: 0;
  height: 42px;
  padding: 0 32px 0 10px;
  border: 1px solid rgba(132, 170, 251, 0.5);
  border-radius: 8px;
  background: rgba(53, 53, 60, 0.55);
  background-image: var(--grain-bg);
  background-size: 160px 160px;
  background-blend-mode: overlay;
  color: #f3f3f3;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
  text-align: left;
  transition: border-color 0.18s ease, background-color 0.18s ease;
  position: relative;
}

.playlist-filter-trigger::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.95;
  transition: transform 0.18s ease;
  background: no-repeat center / contain url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24"><path d="M7 9l5 6 5-6" fill="none" stroke="%2384aafb" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round"/></svg>');
}

.playlist-filter-select.is-open {
  z-index: 200;
}

.playlist-filter-select.is-open .playlist-filter-trigger::after {
  transform: translateY(-50%) rotate(180deg);
}

.playlist-filter-trigger:hover,
.playlist-filter-select.is-open .playlist-filter-trigger {
  border-color: rgba(132, 170, 251, 1);
}

.playlist-filter-summary {
  display: flex;
  align-items: center;
  min-width: 0;
}

.playlist-filter-summary-icons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
}

.playlist-filter-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: rgba(186,186,186,0.55);
  line-height: 1;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.playlist-filter-icon.is-active {
  color: #84aafb;
  border-color: rgba(132, 170, 251, 0.72);
  background: rgba(132, 170, 251, 0.16);
}

.playlist-filter-icon i,
.playlist-filter-icon .ti,
.playlist-filter-icon .bi {
  font-size: 12px;
  line-height: 1;
}

.playlist-filter-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  width: max-content;
  min-width: 100%;
  max-width: min(360px, calc(100vw - 24px));
  border: 1px solid rgba(132, 170, 251, 1);
  border-radius: 8px;
  background-color: rgba(53, 53, 60, 0.55);
  background-image: var(--grain-bg);
  background-size: 20px 20px;
  background-blend-mode: overlay;
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  box-shadow: 0 12px 30px rgba(0,0,0,0.28);
  display: none;
  flex-direction: column;
  padding: 6px;
  z-index: 220;
}

.playlist-filter-select.is-open .playlist-filter-menu {
  display: flex;
}

.playlist-filter-option {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 16px;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: #f3f3f3;
  box-sizing: border-box;
}

.playlist-filter-option:hover {
  background: rgba(132, 170, 251, 0.10);
}

.playlist-filter-option-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.playlist-filter-option-title {
  font-size: 13px;
  line-height: 1.25;
  color: #f3f3f3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-filter-option-subtitle {
  font-size: 12px;
  line-height: 1.25;
  color: var(--muted);
  white-space: normal;
}

.playlist-filter-check {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(132, 170, 251, 0.55);
  background: #282626;
  box-sizing: border-box;
  justify-self: end;
}

.playlist-filter-option-input:checked ~ .playlist-filter-check {
  border-color: rgba(132, 170, 251, 0.95);
  background: rgba(132, 170, 251, 0.14);
}

.playlist-filter-option-input:checked ~ .playlist-filter-check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #84aafb;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

