html:has(.video-room) {
  color-scheme: light;
  --video-page: var(--pm-color-page);
  --video-surface: var(--pm-color-surface);
  --video-card: var(--video-surface);
  --video-control: #ecf1f9;
  --video-control-hover: #e2eaf6;
  --video-text: var(--pm-color-text);
  --video-muted: var(--pm-color-text-secondary);
  --video-line: var(--pm-color-border);
  --video-control-line: #76859b;
  --video-selected: #e3edff;
  --video-selected-text: #15468e;
  --video-accent: var(--pm-color-blue);
  --video-nav-active-text: var(--pm-color-blue-hover);
  --video-topbar: color-mix(in srgb, var(--video-surface) 96%, transparent);
  --video-shadow: 0 8px 24px rgb(8 30 74 / .12);
  --video-card-radius: 12px;
  --video-thumbnail-radius: 8px;
  --video-state-motion: 160ms;
  --focus-color: var(--pm-color-focus);
}

html[data-video-theme="dark"] {
  color-scheme: dark;
  --video-page: #0f172a;
  --video-surface: #172235;
  --video-control: #22314a;
  --video-control-hover: #2b3b54;
  --video-text: #f5f8ff;
  --video-muted: #b9c7dc;
  --video-line: #34445f;
  --video-control-line: #7c8da7;
  --video-selected: #284471;
  --video-selected-text: var(--pm-color-text-secondary-on-navy);
  --video-accent: #8bbcff;
  --video-nav-active-text: var(--video-accent);
  --video-shadow: 0 8px 24px rgb(0 0 0 / .28);
  --focus-color: var(--pm-color-focus-on-dark);
}

body:has(.video-room),
.video-room {
  background-color: var(--video-page);
  color: var(--video-text);
}

.video-room {
  --video-inset: clamp(18px, 2.55vw, 40px);
  min-height: 100svh;
}

.video-shell {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  align-items: start;
  min-height: 100svh;
}

.video-sidebar {
  --video-sidebar-inset: 14px;
  --video-nav-item-inset: 11px;
  --video-nav-icon-size: 17px;
  --video-nav-icon-gap: 10px;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 23px;
  height: 100svh;
  padding: 23px var(--video-sidebar-inset) 16px;
  background-color: var(--video-surface);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--video-control-line) transparent;
}

.video-brand {
  display: grid;
  gap: 7px;
  margin: 4px 10px 0;
  width: fit-content;
}

.video-brand img {
  width: 109px;
  height: auto;
}

.video-brand .video-brand-dark,
html[data-video-theme="dark"] .video-brand .video-brand-light {
  display: none;
}

html[data-video-theme="dark"] .video-brand .video-brand-dark {
  display: block;
}

.video-brand span {
  color: var(--video-muted);
  font-size: .875rem;
  font-weight: 700;
}

.video-nav {
  display: grid;
  gap: 4px;
}

.video-nav-link,
.video-nav-group summary,
.video-official {
  display: flex;
  align-items: center;
  gap: var(--video-nav-icon-gap);
  min-height: var(--pm-target-min);
  padding: 7px var(--video-nav-item-inset);
  border-radius: 10px;
  color: var(--video-muted);
  font-size: .875rem;
  font-weight: 600;
}

.video-nav-link svg,
.video-nav-group summary svg,
.video-official svg {
  width: var(--video-nav-icon-size);
  height: var(--video-nav-icon-size);
}

.video-nav-link:hover,
.video-course-link:hover,
.video-nav-group summary:hover,
.video-official:hover {
  color: var(--video-text);
  background-color: var(--video-control);
}

.video-nav :is(a, summary):active,
.video-official:active {
  background-color: var(--video-control-hover);
}

.video-nav summary.is-current {
  color: var(--video-nav-active-text);
  font-weight: 700;
}

.video-nav a[aria-current="page"] {
  position: relative;
  isolation: isolate;
  border-radius: 0;
  background-color: transparent;
  color: var(--video-nav-active-text);
  font-weight: 700;
}

.video-nav a[aria-current="page"]::before {
  position: absolute;
  z-index: -1;
  inset: 0 calc(-1 * var(--video-sidebar-inset));
  border-inline-start: 2px solid var(--video-accent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--video-accent) 22%, transparent), transparent 78%);
  pointer-events: none;
  content: "";
}

.video-nav .video-course-link[aria-current="page"]::before {
  inset-inline-start: calc(-1 * (var(--video-sidebar-inset) + var(--video-course-inset)));
}

.video-nav-group:first-of-type {
  margin-top: var(--pm-space-8);
}

.video-nav-group summary {
  list-style: none;
  cursor: pointer;
}

.video-nav-group summary::-webkit-details-marker,
.video-profile summary::-webkit-details-marker {
  display: none;
}

.video-nav-group .video-nav-chevron {
  margin-inline-start: auto;
  width: 14px;
  height: 14px;
}

.video-nav-group[open] .video-nav-chevron {
  transform: rotate(90deg);
}

.video-nav-courses {
  --video-course-inset: calc(var(--video-nav-icon-size) + var(--video-nav-icon-gap));
  display: grid;
  gap: 2px;
  padding-inline-start: var(--video-course-inset);
}

.video-course-link {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 6px var(--video-nav-item-inset);
  border-radius: 8px;
  color: var(--video-muted);
  font-size: .8125rem;
}

.video-official {
  justify-content: space-between;
  margin-top: auto;
  border-top: 1px solid var(--video-line);
  border-radius: 0;
}

.video-work {
  min-width: 0;
  align-self: stretch;
  border-inline-start: 1px solid var(--video-line);
}

.video-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 10px var(--video-inset);
  border-bottom: 1px solid var(--video-line);
  background-color: var(--video-topbar);
  backdrop-filter: blur(6px);
}

.video-mobile-heading {
  display: none;
}

.video-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  width: min(100%, 450px);
  min-width: 0;
  border: 1px solid transparent;
  border-radius: var(--pm-radius-pill);
  background-color: var(--video-control);
}

.video-search input {
  min-width: 0;
  min-height: 44px;
  padding: 7px 4px 7px 17px;
  border: 0;
  border-radius: var(--pm-radius-pill) 0 0 var(--pm-radius-pill);
  background: transparent;
  color: var(--video-text);
}

.video-search input::placeholder {
  color: var(--video-muted);
  opacity: 1;
}

.video-search input:focus-visible,
.video-search button:focus-visible {
  outline: 2px solid var(--focus-color);
  outline-offset: -3px;
}

.video-search button,
.video-menu-button {
  display: grid;
  place-items: center;
  min-width: var(--pm-target-min);
  min-height: var(--pm-target-min);
  padding: 0;
  border: 0;
  border-radius: var(--pm-radius-pill);
  background: transparent;
  color: var(--video-text);
}

.video-search button:is(:hover, :active),
.video-menu-button:is(:hover, :active) {
  background-color: var(--video-control-hover);
}

.video-search button svg,
.video-menu-button svg {
  width: 20px;
  height: 20px;
}

.video-account {
  position: relative;
  flex-shrink: 0;
  max-width: 220px;
}

.video-guest-login,
.video-profile-button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: var(--pm-target-min);
  max-width: 100%;
  padding: 5px 13px;
  border: 1px solid transparent;
  border-radius: var(--pm-radius-pill);
  background-color: var(--video-control);
  color: var(--video-text);
  font-size: .875rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.video-guest-login:is(:hover, :active),
.video-profile-button:is(:hover, :active) {
  background-color: var(--video-control-hover);
}

.video-guest-login svg,
.video-profile-chevron {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
}

.video-profile-icon {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background-color: var(--video-surface);
  color: var(--video-muted);
}

.video-profile-icon svg {
  width: 17px;
  height: 17px;
}

.video-profile-button [data-profile-name] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-profile[open] .video-profile-chevron {
  transform: rotate(90deg);
}

.video-profile-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(265px, calc(100vw - 24px));
  max-height: calc(100dvh - 76px);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: var(--video-card-radius);
  background-color: var(--video-surface);
  color: var(--video-text);
  box-shadow: var(--video-shadow);
}

.video-profile-links > :is(a, .profile-logout),
.video-profile-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: var(--pm-target-min);
  padding: 7px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--video-text);
  font-size: .875rem;
  font-weight: 600;
  text-align: left;
}

.video-profile-links > :is(a, .profile-logout):hover,
.video-profile-row:hover,
.video-theme-back:hover {
  background-color: var(--video-control);
}

.video-profile-panel :is(a, button):focus-visible {
  outline-offset: -2px;
}

.video-profile-button:focus-visible {
  outline: 2px solid var(--focus-color);
  outline-offset: 2px;
}

.video-profile-panel .profile-identity {
  border-color: var(--video-line);
  color: var(--video-text);
}

.video-profile-panel .profile-identity small,
#video-theme-mode,
.video-theme-panel small,
.video-theme-panel p {
  color: var(--video-muted);
}

.video-profile-links > :is(a, .profile-logout) > svg,
.video-theme-entry svg,
.video-theme-back svg,
.video-theme-panel label svg {
  width: 18px;
  height: 18px;
}

.video-theme-entry .video-theme-chevron {
  width: 15px;
  height: 15px;
  margin-inline-start: auto;
}

.video-theme-heading {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid var(--video-line);
}

.video-theme-heading h2 {
  font-size: .9375rem;
}

.video-theme-back {
  display: grid;
  width: var(--pm-target-min);
  height: var(--pm-target-min);
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
}

.video-theme-panel p {
  margin: 10px 11px 3px;
  font-size: .8125rem;
}

.video-theme-panel fieldset {
  display: grid;
  gap: 2px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.video-theme-panel label,
.video-theme-panel label .video-profile-row {
  cursor: pointer;
}

.video-theme-panel label small {
  margin-inline-start: auto;
  font-size: .75rem;
}

.video-theme-panel label svg {
  visibility: hidden;
  color: var(--video-accent);
}

.video-theme-panel input:checked + .video-profile-row {
  background-color: var(--video-selected);
  color: var(--video-selected-text);
  font-weight: 700;
}

.video-theme-panel input:checked + .video-profile-row svg {
  visibility: visible;
}

.video-theme-panel input:focus-visible + .video-profile-row {
  outline: 2px solid var(--focus-color);
  outline-offset: -2px;
}

.video-content {
  display: grid;
  gap: clamp(17px, 2vw, 28px);
  padding: clamp(16px, 1.6vw, 26px) var(--video-inset) 40px;
}

.video-hero:not([hidden]) + .video-content {
  padding-block-start: clamp(17px, 2vw, 28px);
}

.video-hero {
  --focus-color: var(--pm-color-focus-on-dark);
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(290px, 27vw, 430px);
  overflow: hidden;
  background-color: #171717;
  color: var(--pm-color-text-on-navy);
}

.video-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.video-hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #000 28%,
    rgb(0 0 0 / .65) 46%,
    rgb(0 0 0 / .22) 66%,
    transparent 90%
  );
  opacity: .7;
  content: "";
}

.video-hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 550px);
  padding: 24px var(--video-inset);
}

.video-hero-group,
.video-context {
  color: var(--video-muted);
  font-size: .875rem;
  font-weight: 500;
}

.video-hero-group,
.video-hero-count {
  color: var(--pm-color-text-secondary-on-navy);
}

.video-hero h1 {
  margin-block: 4px 8px;
  font-size: clamp(2.1rem, 4.55vw, 4rem);
  font-weight: 700;
  line-height: 1.17;
  letter-spacing: -.035em;
  word-break: keep-all;
}

.video-hero-count {
  font-size: .9375rem;
}

.video-primary,
.video-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--pm-target-min);
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: var(--pm-radius-card);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.video-primary {
  background-color: var(--pm-color-blue);
  color: var(--pm-color-text-on-navy);
  font-weight: 700;
}

.video-primary:hover {
  background-color: var(--pm-color-blue-hover);
}

.video-primary:active {
  background-color: color-mix(in srgb, var(--pm-color-blue-hover) 72%, var(--pm-color-navy));
}

.video-primary svg,
.video-secondary svg {
  width: 17px;
  height: 17px;
}

.video-hero .video-primary {
  margin-top: 13px;
}

.video-secondary {
  background-color: var(--video-control);
  color: var(--video-text);
}

.video-secondary:is(:hover, :active) {
  background-color: var(--video-control-hover);
}

:is(.video-primary, .video-secondary):disabled {
  background-color: var(--video-control);
  color: var(--video-muted);
}

.video-course-sections {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.video-resume h2,
.video-course-section h2,
.video-playlist h2 {
  margin-bottom: 10px;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -.025em;
}

.video-resume-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 10px;
}

.video-resume h2 {
  margin: 0;
}

.video-resume-card {
  display: grid;
  grid-template-columns: clamp(76px, 12vw, 148px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 14px;
  border-radius: var(--video-card-radius);
  background-color: var(--video-card);
}

.video-resume-art {
  width: 100%;
  border-radius: var(--video-thumbnail-radius);
}

.video-resume-copy {
  min-width: 0;
}

.video-resume-copy h3 {
  margin: 2px 0 8px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.video-resume-copy progress {
  display: block;
  width: min(100%, 380px);
  height: 5px;
  margin-bottom: 4px;
  overflow: hidden;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background-color: var(--video-line);
  color: var(--video-accent);
}

.video-resume-copy progress::-webkit-progress-bar {
  background-color: var(--video-line);
}

.video-resume-copy progress::-webkit-progress-value {
  background: var(--video-accent);
}

.video-resume-copy progress::-moz-progress-bar {
  background: var(--video-accent);
}

.video-resume-copy .video-context {
  font-size: .8125rem;
}

.video-course-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.video-course-card {
  overflow: hidden;
  border-radius: var(--video-card-radius);
  background-color: var(--video-card);
}

:is(.video-course-card, .video-card):hover {
  background-color: var(--video-control);
}

:is(.video-course-card, .video-card):active {
  background-color: var(--video-control-hover);
}

.video-thumbnail {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--video-control);
}

.video-thumbnail img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-thumbnail[data-art]:not([data-art=""]) img {
  /* Frame the portraits separately from the archived banner copy. */
  inset: var(--thumb-top, 0) auto auto var(--thumb-left, 0);
  width: var(--thumb-width);
  max-width: none;
  height: auto;
  filter: saturate(var(--thumb-saturation, .24));
}

.video-thumbnail[data-art^="m1"] {
  --thumb-width: 324%;
  --thumb-left: -38%;
}

.video-thumbnail[data-art^="m2"] {
  --thumb-width: 365%;
  --thumb-left: -55%;
}

.video-thumbnail:is([data-art^="m3"], [data-art="h-1"]) {
  --thumb-width: 342%;
  --thumb-left: -43%;
}

.video-thumbnail[data-art="h-2"] {
  --thumb-width: 191%;
  --thumb-left: 21%;
  --thumb-saturation: .88;
  background: linear-gradient(#fff, #d7d7d7);
}

.video-thumbnail[data-art="h-2"] img {
  clip-path: inset(0 66.45% 0 0);
}

.video-course-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-height: 61px;
  padding: 8px 12px;
  color: var(--video-muted);
  font-size: .8125rem;
  font-weight: 500;
}

.video-course-card-meta > span {
  display: grid;
  min-width: 0;
}

.video-course-card-meta strong {
  color: var(--video-text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.02em;
  word-break: keep-all;
}

.video-course-card-meta svg {
  width: 17px;
  height: 17px;
  color: var(--video-muted);
}

.video-message {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(16px, 2.2vw, 30px);
  border-radius: var(--video-card-radius);
  background-color: var(--video-card);
}

.video-message-copy {
  min-width: 0;
}

.video-message h2 {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  letter-spacing: -.025em;
}

.video-message h2 + p,
.video-loading,
.video-preview-note {
  margin-top: 4px;
  color: var(--video-muted);
  font-size: .875rem;
  word-break: keep-all;
}

.video-message-actions {
  display: flex;
  flex-wrap: wrap;
  flex-shrink: 0;
  gap: 8px;
}

.video-catalog,
.video-watch {
  display: grid;
  gap: var(--pm-space-16);
  padding-top: 7px;
}

.video-catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
}

.video-catalog h1,
.video-watch h1 {
  margin-block: 2px 5px;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.025em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.video-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 12px;
  margin: 0;
}

.video-result {
  min-width: 0;
}

.video-card {
  display: grid;
  grid-template-columns: clamp(64px, 7.2vw, 96px) minmax(0, 1fr) 17px;
  align-items: center;
  gap: 11px;
  min-height: 88px;
  height: 100%;
  padding: 11px;
  border-radius: var(--video-card-radius);
  background-color: var(--video-card);
}

.video-card-art {
  border-radius: var(--video-thumbnail-radius);
}

.video-card-text {
  display: grid;
  gap: 1px;
  min-width: 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.video-card-course,
.video-card-chapter {
  color: var(--video-muted);
  font-size: .8rem;
}

.video-card-title {
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.42;
}

.video-card-arrow {
  width: 15px;
  height: 15px;
  color: var(--video-muted);
}

.video-more {
  justify-self: center;
}

.video-back {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 8px;
  min-height: var(--pm-target-min);
  color: var(--video-muted);
  font-size: .875rem;
  font-weight: 600;
}

.video-back:is(:hover, :active) {
  color: var(--video-text);
}

.video-back svg {
  width: 17px;
  height: 17px;
}

.video-watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(222px, 30%);
  align-items: start;
  gap: var(--pm-space-16);
}

.video-watch-main,
.video-playlist {
  min-width: 0;
}

.video-screen {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  padding: 1px;
  border-radius: var(--video-card-radius);
  background: #080d18;
}

#video-screen,
#video-screen :is(iframe, video) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-player-status {
  z-index: 1;
  max-width: 38ch;
  padding: 12px;
  color: var(--pm-color-text-secondary-on-navy);
  font-size: .875rem;
  text-align: center;
  word-break: keep-all;
}

.video-watch-controls,
.video-part-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.video-watch-controls {
  justify-content: space-between;
}

.video-watch-controls > :last-child {
  margin-inline-start: auto;
}

.video-part-list [aria-pressed="true"] {
  background-color: var(--video-selected);
  color: var(--video-selected-text);
  box-shadow: inset 2px 0 0 var(--video-accent);
}

#video-retry-player {
  margin-top: 12px;
}

.video-playlist {
  overflow: hidden;
  border-radius: var(--video-card-radius);
  background-color: var(--video-card);
}

.video-playlist-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--video-line);
}

.video-playlist-heading h2 {
  margin: 0;
  font-size: 1rem;
}

.video-playlist-heading p {
  color: var(--video-muted);
  font-size: .8125rem;
}

.video-playlist-items {
  position: relative;
  display: grid;
  gap: 4px;
  max-height: clamp(300px, 49vh, 500px);
  padding: 6px;
  margin: 0;
  overflow: auto;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: var(--video-control-line) transparent;
}

.video-playlist-items a {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: var(--pm-target-min);
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--video-muted);
  font-size: .8125rem;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.video-playlist-items a svg {
  width: 16px;
  height: 16px;
}

.video-playlist-items a:hover {
  background-color: var(--video-control);
  color: var(--video-text);
}

.video-playlist-items a:active {
  background-color: var(--video-control-hover);
}

.video-playlist-items a[aria-current="true"] {
  background-color: var(--video-selected);
  color: var(--video-selected-text);
  box-shadow: inset 2px 0 0 var(--video-accent);
  font-weight: 700;
}

.video-playlist-items a:focus-visible,
.video-nav :is(a, summary):focus-visible {
  outline: 2px solid var(--focus-color);
  outline-offset: -3px;
}

.video-hero-count,
.video-course-card-meta [data-course-count],
#video-results-status,
#video-resume-time,
#video-playlist-count,
.video-playlist-items a > span:first-child {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1100px) {
  .video-course-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .video-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .video-work {
    border-inline-start: 0;
  }

  .video-sidebar {
    position: fixed;
    inset: 68px auto auto 12px;
    z-index: 20;
    display: none;
    width: min(280px, calc(100% - 24px));
    height: auto;
    max-height: calc(100svh - 84px);
    border: 1px solid transparent;
    border-radius: var(--video-card-radius);
    background-color: var(--video-surface);
    box-shadow: var(--video-shadow);
  }

  .video-room.is-menu-open .video-sidebar {
    display: flex;
  }

  .video-course-link {
    min-height: var(--pm-target-min);
  }

  .video-mobile-heading {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    font-size: 1rem;
    font-weight: 750;
  }
}

@media (max-width: 680px) {
  .video-room {
    --video-inset: 12px;
  }

  .video-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 8px;
    padding: 8px var(--video-inset);
  }

  .video-mobile-heading {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    font-size: .94rem;
  }

  .video-account {
    grid-column: 2;
    grid-row: 1;
    max-width: 129px;
  }

  .video-search {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  .video-content {
    padding: 13px var(--video-inset) 27px;
  }

  .video-hero {
    min-height: clamp(230px, 60vw, 270px);
  }

  .video-hero-photo {
    object-position: 55% 42%;
  }

  .video-hero h1 {
    font-size: clamp(1.8rem, 6.7vw, 2.55rem);
  }

  .video-course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .video-resume-card {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .video-resume-link {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .video-message,
  .video-catalog-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .video-results,
  .video-watch-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .video-room :is(
    .video-nav-link, .video-nav-group summary, .video-course-link, .video-official,
    .video-search, .video-search button, .video-menu-button, .video-guest-login,
    .video-profile-button, .video-profile-panel a, .video-profile-panel button,
    .video-profile-row, .video-primary, .video-secondary, .video-course-card,
    .video-card, .video-playlist-items a, .video-back
  ) {
    transition:
      background-color var(--video-state-motion) ease,
      color var(--video-state-motion) ease,
      border-color var(--video-state-motion) ease;
  }

  .video-nav .video-course-link[aria-current="page"]::before {
    animation: video-course-selection var(--pm-motion-short) ease-out;
  }

  .video-playlist-items a[aria-current="true"] {
    animation: video-lesson-selection var(--pm-motion-short) ease-out;
  }

  @keyframes video-course-selection {
    from { opacity: .45; }
  }

  @keyframes video-lesson-selection {
    from { box-shadow: inset 2px 0 0 transparent; }
  }

  .video-theme-changing :is(
    .video-room, .video-sidebar, .video-topbar, .video-search, .video-guest-login,
    .video-profile-panel, .video-profile-button, .video-profile-row,
    .video-resume-card, .video-course-card, .video-card, .video-playlist,
    .video-nav-link, .video-course-link, .video-secondary, .video-message, .video-playlist-items a
  ) {
    transition: background-color 280ms ease, color 280ms ease, border-color 280ms ease;
  }
}
