.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;
  padding: 12px 0;
  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-az {
  display: flex;
  gap: 1px;
  flex-wrap: wrap;
  margin: 14px 0 6px;
}

.my-shows-az button {
  min-width: 26px;
  height: 26px;
  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-status {
  min-height: 0;
  color: var(--txt-faint);
  font-size: 12px;
}

.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;
}

.my-shows-savebar {
  position: fixed;
  right: var(--pad);
  bottom: 22px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 12px 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-3);
  box-shadow: var(--shadow);
  font-size: 13.5px;
}

.my-shows-save-count {
  color: var(--txt-dim);
}

@media (max-width: 860px) {
  .my-shows-savebar {
    bottom: calc(var(--tabbar-h) + 14px);
  }
}

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

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

  .my-shows-segments {
    flex: 1 1 auto;
    max-width: 100%;
  }

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

  .my-shows-savebar {
    right: 50%;
    transform: translateX(50%);
    max-width: calc(100vw - 32px);
  }

  .my-shows-save-count {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 420px) {
  .my-shows-segments {
    flex-basis: 100%;
  }

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

  .my-shows-list {
    grid-template-columns: minmax(0, 1fr);
  }

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

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