.my-shows-page {
  min-width: 0;
}

.my-shows-stats {
  gap: 20px;
}

.my-shows-filterbar {
  position: sticky;
  top: var(--topbar);
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  row-gap: 8px;
  padding: 12px 0 10px;
  border-bottom: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
}

.my-shows-field {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1 1 260px;
  min-width: 0;
  max-width: 420px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg-2);
}

.my-shows-field svg {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  color: var(--txt-faint);
}

.my-shows-field input {
  min-width: 0;
  flex: 1;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: none;
  font-size: 14px;
}

.my-shows-field input::placeholder {
  color: var(--txt-faint);
}

.my-shows-segments {
  display: flex;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg-2);
  scrollbar-width: none;
}

.my-shows-segments::-webkit-scrollbar {
  display: none;
}

.my-shows-segments button {
  min-height: 32px;
  padding: 5px 11px;
  border-radius: 4px;
  color: var(--txt-dim);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}

.my-shows-segments button:hover {
  color: var(--txt);
  background: var(--bg-hover);
}

.my-shows-segments button[aria-pressed="true"] {
  color: var(--txt);
  background: var(--bg-hover);
}

.my-shows-filterbar > .btn {
  flex: none;
  margin-left: auto;
}

.my-shows-filterbar > .btn:disabled {
  cursor: not-allowed;
  opacity: .45;
}

/* Its own row inside the sticky bar. It never wraps to a second line: a
   filter bar that grows taller on a phone costs more than the strip scrolls. */
.my-shows-az {
  display: flex;
  gap: 1px;
  flex: 1 0 100%;
  min-width: 0;
  margin: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.my-shows-az::-webkit-scrollbar {
  display: none;
}

.my-shows-search-reset {
  display: flex;
  align-items: center;
  flex: 1 0 100%;
  min-height: 26px;
  margin: 0;
  padding: 0 4px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--txt-dim);
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1;
  text-align: left;
}

.my-shows-search-reset:hover,
.my-shows-search-reset:focus-visible {
  color: var(--txt);
  background: var(--bg-3);
}

.my-shows-az button {
  min-width: 26px;
  height: 26px;
  flex: none;
  padding: 0 4px;
  border-radius: 4px;
  color: var(--txt-dim);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
}

.my-shows-az button:hover,
.my-shows-az button:focus-visible {
  color: var(--txt);
  background: var(--bg-3);
}

.my-shows-az button[aria-current="true"] {
  color: var(--bg);
  background: var(--new);
  font-weight: 600;
}

.my-shows-status {
  color: var(--txt-faint);
  font-size: 12px;
}

.my-shows-page[data-show-bucket-page] .my-shows-status {
  min-height: 1.25rem;
  line-height: 1.25rem;
}

.my-shows-page[data-show-bucket-page] .my-shows-status:empty {
  visibility: hidden;
}

/* The list, its rows and its group headings are shared with /recently-added;
   keep this the only owner of that geometry. */
.my-shows-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(258px, 100%), 1fr));
  gap: 2px 18px;
  margin-top: 8px;
}

.my-show-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  min-width: 0;
  gap: 8px;
  padding: 0 4px 0 8px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  transition: background .1s;
}

.my-show-row:hover,
.my-show-row:has(:focus-visible) {
  background: var(--bg-2);
}

.my-show-select,
.my-show-template-select {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  gap: 10px;
  padding: 7px 0;
  color: var(--txt-dim);
  text-align: left;
}

.my-show-select[aria-pressed="true"],
.my-show-row.is-selected .my-show-template-select {
  color: var(--txt);
  font-weight: 500;
}

.my-show-box {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  flex: none;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  color: transparent;
  font-size: 11px;
  line-height: 1;
  transition: background .12s, border-color .12s, color .12s;
}

.my-show-select[aria-pressed="true"] .my-show-box,
.my-show-row.is-selected .my-show-box {
  border-color: var(--new);
  background: var(--new);
  color: var(--bg);
}

.my-show-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-show-status {
  margin-left: 0;
  color: var(--txt-faint);
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.my-show-status.is-soon {
  color: var(--new);
}

.my-show-status.is-ended {
  color: var(--txt-faint);
}

.my-show-info {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  color: var(--txt-faint);
  opacity: .45;
  transition: opacity .12s, color .12s, background .12s;
}

.my-show-info svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.my-show-info__dot {
  fill: currentColor;
  stroke: none;
}

.my-show-info:hover,
.my-show-info:focus-visible,
.my-show-row:hover .my-show-info {
  color: var(--txt);
  opacity: 1;
}

.my-show-info:hover {
  background: var(--bg-hover);
}

.my-shows-letter {
  grid-column: 1 / -1;
  margin: 18px 0 4px;
  padding: 0 0 4px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--txt-faint);
  font-size: 15px;
  line-height: 1.2;
}

.my-shows-letter:first-child {
  margin-top: 8px;
}

.my-shows-empty {
  padding: 28px 0;
  color: var(--txt-dim);
}

.my-shows-empty h2 {
  color: var(--txt);
  font-size: 20px;
}

.my-shows-empty p {
  max-width: 54ch;
  margin: 7px 0 0;
}

.my-shows-load {
  display: grid;
  place-items: center;
  min-height: 28px;
  padding: 16px 0;
}

.show-removal-dialog {
  width: min(420px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-3);
  color: var(--txt);
  box-shadow: var(--shadow);
}

.show-removal-dialog::backdrop {
  background: var(--scrim);
  backdrop-filter: blur(3px);
}

.show-removal-dialog h2 {
  margin: 0;
  font-family: var(--f-display);
  font-size: 22px;
  line-height: 1.1;
}

.show-removal-dialog p {
  margin: 12px 0 22px;
  color: var(--txt-dim);
  line-height: 1.5;
}

.show-removal-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 640px) {
  .my-shows-filterbar {
    align-items: stretch;
  }

  .my-shows-field {
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
  }

  /* A small basis so the status strip and Remove all shows share one row and
     the sticky bar stays three rows tall on a phone. */
  .my-shows-segments {
    flex: 1 1 140px;
    max-width: 100%;
  }

  .my-shows-filterbar > .btn {
    margin-left: 0;
  }

}

@media (max-width: 420px) {
  .my-shows-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .my-shows-az {
    gap: 0;
  }

  .my-shows-az button {
    min-width: 24px;
  }
}
