/*
 * The tour page and its stage. The page is the product's light look; the
 * stage is a 1280×720 picture of a browser, laid out in stage pixels and
 * scaled as a whole, so its rules use fixed lengths. Nothing on the stage
 * borrows YouTube's red, logo or play button.
 */

:root {
  color-scheme: light;
  --accent: #6d4ae8;
  --accent-ink: #5b3fd6;
  --accent-soft: #efeafd;
  --tile: linear-gradient(135deg, #4338ca, #9333ea);
  --ink: #17141f;
  --ink-2: #4b4759;
  --ink-3: #6b6779;
  --line: #e5e2ee;
  --soft: #f3f1f8;
  --canvas: #f7f6fb;
  --white: #fff;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-inline: 24px;
}

/* ---- top bar ---------------------------------------------------------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.top__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  text-align: start;
  min-width: 0;
}

.brand img {
  border-radius: 8px;
  flex: none;
}

.brand__name {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand__sub {
  font-weight: 400;
  color: var(--ink-3);
}

.top__r {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.viewtog {
  display: flex;
  padding: 3px;
  border-radius: 10px;
  background: var(--soft);
}

.viewtog button {
  padding: 5px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 13.5px;
  color: var(--ink-2);
}

.viewtog button[aria-pressed='true'] {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(23, 20, 31, 0.12);
}

.pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--ink-3);
}

.btn--pri {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.btn--pri:hover {
  border-color: var(--accent-ink);
  background: var(--accent-ink);
}

.btn--sm {
  padding: 5px 11px;
  font-size: 13px;
  font-weight: 500;
}

/* ---- landing ---------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 40px;
  align-items: center;
  padding-block: 44px 24px;
}

.eyebrow {
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 10px 0 14px;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.hero p {
  max-width: 56ch;
  margin: 0 0 22px;
  color: var(--ink-2);
  font-size: 17px;
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ctas .btn {
  padding: 11px 18px;
  font-size: 15px;
}

.hero__fig {
  justify-self: center;
  padding: 18px;
  border-radius: 22px;
  background: var(--tile);
  box-shadow: 0 18px 40px rgba(67, 56, 202, 0.25);
}

.hero__fig img {
  display: block;
  width: min(260px, 100%);
  height: auto;
  border-radius: 12px;
}

.part__h {
  margin: 0 0 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 22px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.ccard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  text-align: start;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.ccard:hover {
  transform: translateY(-2px);
  border-color: #d3cde6;
  box-shadow: 0 12px 28px rgba(67, 56, 202, 0.12);
}

.ccard__thumb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 7;
  background: var(--tile);
  color: #fff;
}

.ccard__n {
  font-size: 54px;
  font-weight: 800;
  opacity: 0.92;
}

.ccard__play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.ccard__play svg {
  width: 16px;
  height: 16px;
}

.ccard__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 14px;
}

.ccard__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 12px;
}

.ccard h3 {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.3;
}

.ccard p {
  margin: 0;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.45;
}

.foot {
  margin-top: 28px;
  padding-block: 22px 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 13px;
}

/* ---- player ----------------------------------------------------------- */

.player {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding-block: 20px 40px;
}

.rail {
  position: sticky;
  top: 76px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.ritem {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  text-align: start;
  font-size: 13.5px;
}

.ritem:hover {
  background: var(--canvas);
}

.ritem.on {
  background: var(--accent-soft);
}

.ritem__ic {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid #cbc6da;
  border-radius: 50%;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
}

.ritem.done .ritem__ic {
  border-color: #7d6bd6;
  background: #7d6bd6;
  color: #fff;
}

.ritem.on .ritem__ic {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.ritem__nm {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ritem__d {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11.5px;
}

.main {
  min-width: 0;
}

.phead {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 12px;
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  color: var(--ink-3);
  font-size: 13px;
}

.phead h1 {
  margin: 4px 0 0;
  font-size: 24px;
  text-wrap: balance;
}

.stagewrap {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #dcd9e6;
  box-shadow: 0 0 0 1px var(--line), 0 14px 34px rgba(23, 20, 31, 0.1);
}

.prog {
  display: flex;
  gap: 5px;
  margin-top: 14px;
}

.seg {
  flex: 1;
  height: 22px;
  padding: 9px 0;
  border: 0;
  background: transparent;
}

.seg span {
  position: relative;
  display: block;
  overflow: hidden;
  height: 4px;
  border-radius: 2px;
  background: #dedae9;
}

.seg i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 2px;
  background: var(--accent);
}

.seg.done i {
  width: 100% !important;
}

.seg:hover span {
  background: #cdc7dd;
}

.cap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  margin-top: 6px;
}

.stepno {
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.cap h2 {
  margin: 4px 0 6px;
  font-size: 20px;
}

.cap p {
  max-width: 70ch;
  min-height: 3.2em;
  margin: 0;
  color: #3a3647;
  font-size: 15.5px;
  line-height: 1.6;
}

.ctlw {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.ctl {
  display: flex;
  gap: 6px;
}

.cb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  font-size: 15px;
  font-weight: 500;
}

.cb:hover {
  border-color: var(--ink-3);
}

.cb:disabled {
  opacity: 0.4;
  cursor: default;
}

.cb--pri {
  min-width: 112px;
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.cb--sp {
  min-width: 54px;
  font-family: var(--mono);
  font-size: 13px;
}

.cb--full svg {
  width: 20px;
  height: 20px;
}

.kh {
  color: var(--ink-3);
  font-size: 11.5px;
  white-space: nowrap;
}

kbd {
  margin: 0 1px;
  padding: 0 4px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--white);
  font-family: var(--mono);
  font-size: 10.5px;
}

.main.theater {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: auto;
  padding: 22px 24px;
  background: #110e1a;
}

.main.theater .phead,
.main.theater .prog,
.main.theater .cap {
  width: 100%;
  max-width: 1600px;
}

.main.theater h1,
.main.theater .cap h2 {
  color: #fff;
}

.main.theater .crumb,
.main.theater .kh {
  color: #a9a3bd;
}

.main.theater .cap p {
  color: #d9d5e6;
}

/* ---- read ------------------------------------------------------------- */

.doc {
  max-width: 900px;
  margin: 0 auto;
  padding-block: 32px 48px;
}

.doc h1 {
  margin: 0 0 8px;
  font-size: 30px;
}

.doc__lede {
  margin: 0 0 24px;
  color: var(--ink-2);
  font-size: 16.5px;
}

.doc__ch {
  scroll-margin-top: 64px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
}

.doc__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.doc__head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 22px;
}

.doc__n {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--tile);
  color: #fff;
  font-size: 15px;
}

.doc__body.has-img {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 28px;
  align-items: start;
}

.doc__steps {
  margin: 14px 0 0;
  padding-inline-start: 22px;
}

.doc__steps li {
  margin-bottom: 12px;
}

.doc__steps li::marker {
  color: var(--accent-ink);
  font-weight: 700;
}

.doc__steps h3 {
  margin: 0 0 2px;
  font-size: 16px;
}

.doc__steps p {
  margin: 0;
  color: var(--ink-2);
}

.doc__img {
  width: 200px;
  height: auto;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

/* ---- responsive ------------------------------------------------------- */

@media (max-width: 1080px) {
  .pill,
  .brand__sub {
    display: none;
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding-block: 28px 18px;
  }

  .player {
    grid-template-columns: 1fr;
  }

  .rail {
    position: static;
    order: 2;
  }

  .cap {
    grid-template-columns: 1fr;
  }

  .ctlw {
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  #get-edge,
  .kh {
    display: none;
  }

  .doc__body.has-img {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding-inline: 14px;
  }

  #get-chrome,
  .brand__name {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ccard,
  .ccard:hover {
    transform: none;
    transition: none;
  }
}

/* ---- record mode: only the stage, filling the window ------------------- */

body.record {
  overflow: hidden;
  background: #000;
}

body.record .top,
body.record .rail,
body.record .phead,
body.record .prog,
body.record .cap,
body.record #landing,
body.record #doc-view {
  display: none !important;
}

body.record #watch,
body.record .player,
body.record .main {
  display: block;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.record .stagewrap {
  position: fixed;
  inset: 0;
  margin: auto;
  border-radius: 0;
  box-shadow: none;
}

/* ====================================================================== */
/* the stage, in stage pixels                                              */
/* ====================================================================== */

.stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 1280px;
  height: 720px;
  overflow: hidden;
  transform-origin: 0 0;
  background: #fff;
  color: #0f0f0f;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.35;
  pointer-events: none;
  user-select: none;
}

.ic {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
}

.ic svg {
  width: 100%;
  height: 100%;
}

/* camera: one transform over the whole picture */

.cam {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
}

/* The chapter card and the outro, outside the camera. */
.over {
  position: absolute;
  inset: 0;
  z-index: 70;
}

/* browser window */

/* Its own stacking layer: nothing on the page, whatever its z-index, can
   paint above the popup, the alert or the cursor. */
.win {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
}

.win-top {
  flex: none;
  background: #dfe1e5;
}

.win-tabs {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 40px;
  padding-inline: 10px 150px;
}

.win-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 260px;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px 10px 0 0;
  background: #fff;
  font-size: 12.5px;
}

.win-tab__fav {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: #b9b6c4;
}

.win-tab__title {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.win-tab__x {
  width: 14px;
  height: 14px;
  color: #5f6368;
}

.win-tabs__plus {
  align-self: center;
  margin-top: 6px;
  color: #5f6368;
  font-size: 20px;
}

.win-ctl {
  position: absolute;
  right: 0;
  top: 0;
  display: flex;
  height: 32px;
}

.win-ctl > * {
  position: relative;
  display: block;
  width: 46px;
  height: 32px;
}

.win-ctl__min::after {
  content: '';
  position: absolute;
  left: 18px;
  top: 16px;
  width: 10px;
  border-top: 1px solid #333;
}

.win-ctl__max::after {
  content: '';
  position: absolute;
  left: 18px;
  top: 11px;
  width: 10px;
  height: 10px;
  border: 1px solid #333;
}

.win-ctl__x {
  display: grid;
  place-items: center;
  color: #333;
}

.win-ctl__x svg {
  width: 14px;
  height: 14px;
}

.win-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 44px;
  padding: 0 8px;
  background: #fff;
  border-bottom: 1px solid #dadce0;
}

.tb {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #5f6368;
}

.tb--off {
  color: #c1c3c7;
}

.omni {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  height: 34px;
  margin: 0 8px;
  padding: 0 12px;
  border-radius: 17px;
  background: #f1f3f4;
  color: #5f6368;
}

.omni__url {
  flex: 1;
  color: #202124;
  font-size: 14px;
}

.omni__tune,
.omni__star {
  width: 18px;
  height: 18px;
}

.ext img {
  display: block;
  border-radius: 4px;
}

.ext__badge {
  position: absolute;
  right: -1px;
  bottom: 1px;
  min-width: 16px;
  height: 14px;
  padding: 0 3px;
  border-radius: 4px;
  background: #5b3fd6;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
}

.win-me {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f7d6d, #59a58f);
}

.pg {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: #fff;
}

/* the popup, hanging from the toolbar icon */

.pop {
  position: absolute;
  left: 764px;
  top: 80px;
  width: 400px;
  height: 600px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  z-index: 30;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 8px 28px rgba(0, 0, 0, 0.28);
}

.pop.is-closed {
  visibility: hidden;
}

.pop__frame {
  position: absolute;
  inset: 0;
  width: 400px;
  height: 600px;
  border: 0;
  opacity: 0;
}

.pop__frame.is-front {
  opacity: 1;
}

/* cursor, click ring, highlight */

.fx {
  position: absolute;
  inset: 0;
}

.cur {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 60;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
}

.cur svg {
  display: block;
  transform-origin: 5px 3px;
  transition: transform 0.1s;
}

.cur.is-down svg {
  transform: scale(0.86);
}

.ripple {
  position: absolute;
  z-index: 55;
  width: 36px;
  height: 36px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: rgba(109, 74, 232, 0.18);
}

.spot {
  position: absolute;
  z-index: 50;
  border-radius: 10px;
  box-shadow: 0 0 0 2.5px var(--accent), 0 0 0 8px rgba(109, 74, 232, 0.2);
  opacity: 0;
}

/* desktop alert, a Windows-style toast */

.ntf {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  width: 364px;
  padding: 12px 14px 14px;
  border: 1px solid #3c3c3c;
  border-radius: 8px;
  background: #2b2b2b;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  font-family: 'Segoe UI', var(--font);
}

.ntf__app {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cfcfcf;
  font-size: 12px;
}

.ntf__app span:not(.ic) {
  flex: 1;
}

.ntf__more,
.ntf__x {
  width: 16px;
  height: 16px;
  color: #cfcfcf;
}

.ntf__main {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.ntf__icon {
  border-radius: 10px;
}

.ntf__title {
  font-size: 15px;
  font-weight: 600;
}

.ntf__body {
  margin-top: 2px;
  color: #d6d6d6;
  font-size: 13.5px;
}

.ntf__btns {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.ntf__btn {
  flex: 1;
  padding: 7px 0;
  border-radius: 4px;
  background: #3d3d3d;
  font-size: 13.5px;
  text-align: center;
}

/* download bubble */

.dlb {
  position: absolute;
  right: 152px;
  top: 82px;
  z-index: 45;
  width: 320px;
  padding: 12px 14px 14px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 8px 26px rgba(0, 0, 0, 0.25);
}

.dlb__head {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
}

.dlb__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dlb__file svg {
  display: block;
  width: 30px;
  height: 30px;
}

.dlb__name {
  font-size: 13px;
}

.dlb__meta {
  color: #5f6368;
  font-size: 12px;
}

/* full-stage cards */

.card-in,
.outro {
  position: absolute;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--tile);
  color: #fff;
  text-align: center;
}

.card-in img,
.outro img {
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.card-in__k {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 18px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}

.card-in__t {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.outro__name {
  margin-top: 8px;
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.outro__line {
  font-size: 22px;
  opacity: 0.92;
}

.outro__stores {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}

.outro__store {
  padding: 12px 22px;
  border-radius: 12px;
  background: #fff;
  color: #3b2a9e;
  font-size: 18px;
  font-weight: 700;
}

/* the caption burned into a recording */

.reccap {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 65;
  max-width: 740px;
  padding: 14px 20px 16px;
  border-radius: 14px;
  background: rgba(23, 20, 31, 0.86);
  color: #fff;
}

.reccap__t {
  font-size: 22px;
  font-weight: 700;
}

.reccap__p {
  margin-top: 4px;
  color: #e4e0f0;
  font-size: 18px;
  line-height: 1.4;
}

/* ---- the YouTube-like page -------------------------------------------- */

.yt-head {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 56px;
  padding: 0 20px;
  background: #f2f2f4;
}

.yt-head__menu {
  width: 24px;
  height: 24px;
  color: #444;
}

.yt-search {
  display: flex;
  margin-inline-start: 150px;
}

.yt-search__box {
  width: 380px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid #d3d3d8;
  border-radius: 19px 0 0 19px;
  background: #fff;
  color: #8a8a90;
  line-height: 36px;
}

.yt-search__btn {
  display: grid;
  place-items: center;
  width: 60px;
  height: 38px;
  border: 1px solid #d3d3d8;
  border-left: 0;
  border-radius: 0 19px 19px 0;
  background: #e9e9ec;
  color: #333;
}

.yt-head__me {
  width: 32px;
  height: 32px;
  margin-inline-start: auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f7d6d, #59a58f);
}

/* watch page */

.yt-watch {
  display: flex;
  gap: 24px;
  padding: 16px 24px 0;
}

.yt-main {
  width: 716px;
  flex: none;
}

.yt-player {
  position: relative;
  overflow: hidden;
  width: 716px;
  height: 403px;
  border-radius: 12px;
  background: #000;
}

.yt-player__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yt-audio {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(165deg, #0f0f14, #1e1e28);
  color: #f1f1f4;
}

.yt-audio__ic {
  width: 52px;
  height: 52px;
}

.yt-audio__t {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
}

.yt-audio__exit {
  padding: 5px 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 14px;
}

.yt-ctl {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 26px 12px 6px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  color: #fff;
}

.yt-bar {
  height: 4px;
  margin-bottom: 6px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
}

.yt-bar__fill {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: #f1f1f4;
}

.yt-ctl__row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.yt-ctl__row .ic,
.yt-ctl__play {
  width: 24px;
  height: 24px;
}

.yt-ctl__play {
  display: inline-grid;
}

.yt-ctl__play svg {
  width: 100%;
  height: 100%;
}

.yt-ctl__time {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.yt-ctl__gap {
  flex: 1;
}

.yt-quality {
  padding: 1px 7px;
  border-radius: 5px;
  background: #7c5cf0;
  font-size: 12px;
  font-weight: 700;
}

.yt-title {
  margin: 12px 0 10px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.yt-owner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.yt-owner__img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ddd;
}

.yt-owner__name {
  font-size: 16px;
  font-weight: 600;
}

.yt-owner__facts {
  color: #606060;
  font-size: 13px;
}

.yt-side {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.yt-side__rel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.yt-rel {
  display: flex;
  gap: 8px;
}

.yt-rel__img {
  flex: none;
  width: 168px;
  height: 94px;
  border-radius: 8px;
  object-fit: cover;
  background: #eee;
}

.yt-rel__t {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.yt-rel__m {
  color: #606060;
  font-size: 12px;
}

/* The popup covers the middle of this column and would leave cut-off
   titles on both sides of it. */
.stage.is-popup .yt-side__rel {
  visibility: hidden;
}

/* the queue panel sits beside a smaller player, left of the popup */

.yt-watch.has-queue .yt-main,
.yt-watch.has-queue .yt-player {
  width: 380px;
}

.yt-watch.has-queue .yt-player {
  height: 214px;
}

.yt-watch.has-queue .yt-side {
  flex: none;
  width: 330px;
}

.yt-watch.has-queue .yt-side__rel {
  display: none;
}

.yt-queue {
  overflow: hidden;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
}

.yt-queue__head {
  padding: 12px 14px 10px;
  background: #f2f2f4;
}

.yt-queue__t {
  font-size: 18px;
  font-weight: 700;
}

.yt-queue__n {
  color: #606060;
  font-size: 12px;
}

.yt-q {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 8px 4px;
}

.yt-q.is-playing {
  background: #ececf2;
}

.yt-q__n {
  width: 18px;
  flex: none;
  color: #606060;
  font-size: 12px;
  text-align: center;
}

.yt-q__img {
  flex: none;
  width: 100px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  background: #eee;
}

.yt-q__text {
  min-width: 0;
}

.yt-q__t {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.yt-q__c {
  color: #606060;
  font-size: 12px;
}

/* subscriptions page */

.yt-subs {
  padding: 14px 28px 0;
}

.yt-subs__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.yt-subs__head h2 {
  margin: 0;
  font-size: 20px;
}

.yt-subs__manage {
  color: #065fd4;
  font-size: 14px;
  font-weight: 500;
}

.ytc-chips {
  display: flex;
  gap: 8px;
  margin: 12px 0 16px;
}

.ytc-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.05);
  font-size: 14px;
  font-weight: 500;
}

.ytc-chip[aria-pressed='true'] {
  background: #7c5cf0;
  color: #fff;
}

.yt-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 16px;
}

.yt-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  object-fit: cover;
  background: #eee;
}

.yt-card__body {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.yt-card__av {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ddd;
}

.yt-card__t {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.yt-card__m {
  color: #606060;
  font-size: 12.5px;
}

/* the extension's scan screen over /feed/channels */

.scan {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: #0f0f0f;
  text-align: center;
  font-size: 16px;
}

.scan__title {
  margin: 8px 0 0;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.scan__sub {
  margin: 0;
  opacity: 0.72;
  font-size: 15px;
}

.scan__picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 420px;
  margin-top: 8px;
}

.scan__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(127, 127, 127, 0.12);
  text-align: start;
}

.scan__av {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
}

.scan__rowtext {
  flex: 1;
}

.scan__name {
  font-size: 15px;
  font-weight: 600;
}

.scan__detail {
  opacity: 0.72;
  font-size: 13px;
}

.scan__btn,
.scan__done {
  padding: 8px 16px;
  border-radius: 999px;
  background: #7c5cf0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.scan__done {
  margin-top: 16px;
  padding: 10px 28px;
  font-size: 16px;
}

.scan__count {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
}

.scan__num {
  font-size: 72px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.scan__spin {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(124, 92, 240, 0.25);
  border-top-color: #7c5cf0;
  border-radius: 50%;
  animation: scan-spin 0.7s linear infinite;
}

@keyframes scan-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scan__spin {
    animation: none;
  }
}
