/*
 * "New | Classic" switch for the video page. The classic Django page and the
 * shared Vue app both show it, so they look the same. The same rules live in
 * frontend/src/app/video-page.css for the Vue app; keep the two in sync.
 * Tokens only (no hardcoded colours), so it follows the light/dark themes.
 */
.page-switch {
  margin: 0; /* reset <fieldset> defaults */
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  background: var(--surface-card);
  font-size: 0.8125rem;
  line-height: 1.4;
  white-space: nowrap;
}

.page-switch__option {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  padding: 0.25rem 0.75rem;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s,
    color 0.15s;
}

.page-switch__option:hover {
  background: var(--neutral-100);
  color: var(--text-heading);
}

.page-switch__option:focus-visible {
  outline: none;
  box-shadow: var(--ring-shadow);
}

.page-switch__option[aria-current='true'],
.page-switch__option[aria-current='true']:hover {
  background: var(--brand-50);
  color: var(--brand-700);
  box-shadow: inset 0 0 0 1px var(--brand-200);
  cursor: default;
}

.page-switch__option:disabled {
  opacity: 0.6;
  cursor: progress;
}
