.tonight-panel {
  --tonight-muted: #cac2d5;
  --tonight-outline: #443953;
  --tonight-highlight: #cba6ff;
  min-width: 0;
  color: #f8f2fc;
  color-scheme: dark;
}

.tonight-panel [hidden] { display: none; }

.tonight-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  margin-bottom: .9rem;
}

.tonight-panel .tonight-heading {
  margin: 0;
  font-size: clamp(1.65rem, 3.75vw, 2.6rem);
  line-height: 1.05;
  font-weight: 750;
  letter-spacing: -.05em;
}

.tonight-panel .tonight-date {
  margin: 0;
  color: var(--tonight-muted);
  font-size: .8rem;
  line-height: 1.35;
}

.tonight-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: 1rem;
}

.tonight-filter {
  min-height: 2.55rem;
  border: 1px solid var(--tonight-outline);
  border-radius: 100px;
  padding: .38rem clamp(.64rem, 2vw, 1.05rem);
  color: var(--tonight-muted);
  background: #1c1725;
  font: inherit;
  font-size: .84rem;
  font-weight: 650;
  cursor: pointer;
}

.tonight-filter:hover { color: #fff; border-color: #b491da; }
.tonight-filter[aria-pressed="true"] {
  color: #231232;
  background: #dfbdff;
  border-color: #dfbdff;
}

.tonight-list {
  display: grid;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tonight-card {
  --status-color: #bfa6f1;
  --status-surface: #302743;
  display: grid;
  grid-template-columns: minmax(6.5rem, 9rem) minmax(0, 1fr);
  gap: clamp(.65rem, 2vw, 1.2rem);
  padding: clamp(.7rem, 2vw, 1.05rem);
  border: 1px solid var(--tonight-outline);
  border-radius: .85rem;
  background: #1b1724;
}

.tonight-card[data-status="running"] {
  --status-color: #fcb4e2;
  --status-surface: #44243f;
  border-color: #8c4c7d;
}

.tonight-card[data-status="unknown"] {
  --status-color: #f2cb99;
  --status-surface: #3f3029;
}

.tonight-card[data-status="past"] {
  --status-color: #c8c1d4;
  --status-surface: #302c3a;
}

.tonight-time {
  min-width: 0;
  padding-right: .55rem;
  border-right: 1px solid var(--tonight-outline);
  display: flex;
  flex-direction: column;
  gap: .27rem;
  line-height: 1.25;
}

.tonight-stamp,
.tonight-extra-time {
  color: var(--tonight-muted);
  font-size: .72rem;
}

.tonight-time > :empty,
.tonight-location > :empty { display: none; }

.tonight-main-time {
  font-size: clamp(.97rem, 2.3vw, 1.2rem);
  font-weight: 720;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

.tonight-body { min-width: 0; }
.tonight-card-top {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .35rem .75rem;
  margin-bottom: .32rem;
}

.tonight-body .tonight-event-title {
  margin: 0;
  min-width: 0;
  color: #f8f2fc;
  font-size: clamp(1.05rem, 2.3vw, 1.25rem);
  font-weight: 720;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.tonight-title {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  line-height: inherit;
  text-align: left;
  overflow-wrap: anywhere;
}

.tonight-title:not(:disabled) { cursor: pointer; }
.tonight-title:hover:not(:disabled) { color: #e7c6ff; }
.tonight-title:disabled { opacity: 1; }

.tonight-expand-icon {
  width: .48rem;
  height: .48rem;
  flex: 0 0 .48rem;
  margin: -.2rem .15rem 0 0;
  border: solid currentColor;
  border-width: 0 .105rem .105rem 0;
  transform: rotate(45deg);
}

.tonight-title[aria-expanded="true"] .tonight-expand-icon { transform: rotate(225deg); margin-top: .2rem; }
.tonight-title:disabled .tonight-expand-icon { display: none; }

.tonight-badge {
  display: inline-block;
  padding: .19rem .48rem;
  border-radius: 100px;
  background: var(--status-surface);
  color: var(--status-color);
  font-size: .69rem;
  font-weight: 700;
  line-height: 1.3;
}

.tonight-body .tonight-location {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem .55rem;
  margin: 0;
  color: var(--tonight-muted);
  font-size: .83rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.tonight-location strong { color: #eddfef; font-weight: 650; }
.tonight-actions { display: flex; flex-wrap: wrap; gap: 0 .8rem; margin-top: .24rem; }

.tonight-action {
  box-sizing: border-box;
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tonight-highlight);
  font: inherit;
  font-size: .78rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .17em;
  cursor: pointer;
}

.tonight-action:hover { color: #fce4ff; }
.tonight-figure { margin: .55rem 0 0; }
.tonight-flyer {
  display: block;
  max-width: 100%;
  max-height: min(65vh, 38rem);
  height: auto;
  border-radius: .6rem;
  object-fit: contain;
}

.tonight-image-message,
.tonight-panel .tonight-empty {
  color: var(--tonight-muted);
  font-size: .9rem;
  line-height: 1.45;
}

.tonight-panel .tonight-empty {
  margin: 0;
  border: 1px dashed var(--tonight-outline);
  border-radius: .75rem;
  padding: .85rem 1rem;
}

@media (max-width: 36rem) {
  .tonight-card { grid-template-columns: minmax(0, 4.85rem) minmax(0, 1fr); gap: .62rem; }
  .tonight-time { padding-right: .35rem; }
  .tonight-body .tonight-location { flex-direction: column; }
  .tonight-action { min-height: 2.75rem; }
}

@media (max-width: 22rem) {
  .tonight-filter { min-height: 2.4rem; padding-inline: .52rem; font-size: .76rem; }
  .tonight-card { padding: .57rem; }
}
