.page.mic-lesson-route-host {
  width: min(1180px, calc(100% - 40px));
  max-width: none;
}

.page.mic-lesson-route-host > :not(.mic-lesson-page) {
  display: none !important;
}

.mic-lesson-page {
  width: 100%;
  padding: 4px 0 36px;
  color: #fff;
}

.mic-lesson-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: #aeb8ad;
  font-size: 12px;
}

.mic-lesson-breadcrumb a {
  color: #b9cdaa;
  font-weight: 700;
  text-decoration: none;
}

.mic-lesson-breadcrumb a:hover,
.mic-lesson-breadcrumb a:focus-visible {
  color: #fff;
}

.mic-lesson-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
}

.mic-lesson-main,
.mic-lesson-sidebar {
  min-width: 0;
}

.mic-lesson-header {
  margin-bottom: 18px;
}

.mic-lesson-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #d39a62;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.mic-lesson-header h1 {
  max-width: 780px;
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(31px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.03;
}

.mic-lesson-header p {
  margin: 10px 0 0;
  color: #b9cdaa;
  font-size: 13px;
  font-weight: 700;
}

.mic-lesson-player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid #71806988;
  border-radius: 22px;
  background: #0c110e;
  box-shadow: 0 24px 80px #0008;
}

.mic-lesson-player::before {
  position: absolute;
  inset: 0;
  content: '';
  background:
    linear-gradient(90deg, #09100deb 0%, #09100dbf 48%, #09100d73 100%),
    var(--lesson-cover) center / cover;
  filter: saturate(.7);
}

.mic-lesson-player::after {
  position: absolute;
  right: -76px;
  bottom: -110px;
  width: 300px;
  height: 300px;
  border: 1px solid #b9cdaa29;
  border-radius: 50%;
  content: '';
  box-shadow: 0 0 0 28px #b9cdaa0d, 0 0 0 58px #b9cdaa08;
}

.mic-lesson-player__media {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #000;
}

.mic-lesson-player__pending {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(470px, 72%);
  height: 100%;
  padding: 38px;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}

.mic-lesson-player__play {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 18px;
  padding-left: 4px;
  border: 1px solid #d7e7cc80;
  border-radius: 50%;
  color: #111611;
  background: #bed5ad;
  font-size: 17px;
  box-shadow: 0 8px 26px #0006;
}

.mic-lesson-player__pending strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 500;
  line-height: 1.1;
}

.mic-lesson-player__pending > span:last-child {
  max-width: 390px;
  margin-top: 10px;
  color: #d8ddd6;
  font-size: 13px;
  line-height: 1.5;
}

/* Aula que é material para baixar, no lugar do player (materiais-das-aulas.js — 06/10). */
.mic-lesson-material {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(140px, 200px) minmax(0, 1fr);
  align-items: center;
  gap: 34px;
  padding: 34px 38px;
  border: 1px solid #71806988;
  border-radius: 22px;
  background: #0c110e;
  box-shadow: 0 24px 80px #0008;
}

.mic-lesson-material::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: '';
  background:
    linear-gradient(90deg, #09100df5 0%, #09100de0 55%, #09100db3 100%),
    var(--lesson-cover) center / cover;
  filter: saturate(.7);
}

.mic-lesson-material__capa {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 18px 44px #000a, 0 0 0 1px #ffffff17;
  transform: rotate(-2.5deg);
}

.mic-lesson-material__corpo {
  display: grid;
  justify-items: start;
  gap: 12px;
  min-width: 0;
}

.mic-lesson-material__selo {
  padding: 4px 11px;
  border-radius: 99px;
  color: #bed5ad;
  background: #bed5ad1f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.mic-lesson-material__titulo {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(25px, 3vw, 35px);
  font-weight: 500;
  line-height: 1.08;
}

.mic-lesson-material__texto {
  max-width: 540px;
  margin: 0;
  color: #d8ddd6;
  font-size: 14px;
  line-height: 1.62;
}

.mic-lesson-material__passos {
  display: grid;
  gap: 8px;
  max-width: 560px;
  margin: 0;
  padding-left: 20px;
  color: #d8ddd6;
  font-size: 13.5px;
  line-height: 1.6;
}

.mic-lesson-material__passos li::marker {
  color: #bed5ad;
  font-weight: 800;
}

.mic-lesson-material__dados {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mic-lesson-material__dados li {
  padding: 4px 10px;
  border: 1px solid #344239;
  border-radius: 99px;
  color: #c9d6c1;
  background: #111713;
  font-size: 12px;
  font-weight: 700;
}

.mic-lesson-material__botao {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 47px;
  margin-top: 4px;
  padding: 0 22px;
  border: 1px solid #81937a;
  border-radius: 11px;
  color: #0b100d;
  background: #bed5ad;
  font: inherit;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
}

.mic-lesson-material__botao svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mic-lesson-material__botao:hover {
  background: #cde2bd;
}

.mic-lesson-material__botao:focus-visible {
  outline: 2px solid #d8ead0;
  outline-offset: 3px;
}

.mic-lesson-material__botao:disabled {
  cursor: progress;
  opacity: .7;
}

.mic-lesson-material__aviso {
  margin: 0;
  color: #d8ddd6;
  font-size: 13px;
}

.mic-lesson-material__aviso:empty {
  display: none;
}

.mic-lesson-material__nota {
  margin: 0;
  color: #9fb492;
  font-size: 12px;
}

.mic-lesson-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.mic-lesson-complete,
.mic-lesson-stepper a {
  min-height: 43px;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 800;
}

.mic-lesson-complete {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid #81937a;
  color: #0b100d;
  background: #bed5ad;
}

.mic-lesson-complete[aria-pressed="true"] {
  color: #d8ead0;
  background: #203026;
}

.mic-lesson-complete:disabled {
  cursor: not-allowed;
  color: #d8ddd6;
  border-color: #344239;
  background: #202923;
  opacity: .8;
}

.mic-lesson-stepper {
  display: flex;
  gap: 8px;
}

.mic-lesson-stepper a {
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border: 1px solid #344239;
  color: #fff;
  background: #111713;
  text-decoration: none;
}

.mic-lesson-stepper a:hover,
.mic-lesson-stepper a:focus-visible {
  border-color: #93a98a;
  background: #1a231d;
}

.mic-lesson-notes {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  margin-top: 22px;
  padding: 20px;
  border: 1px solid #2e3a32;
  border-radius: 16px;
  background: #101512;
}

.mic-lesson-notes__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #7e9276;
  border-radius: 13px;
  color: #d39a62;
  background: #1a211c;
}

.mic-lesson-notes h2 {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
}

.mic-lesson-notes p {
  margin: 5px 0 0;
  color: #b7c0b8;
  font-size: 12.5px;
  line-height: 1.5;
}

.mic-lesson-sidebar {
  overflow: hidden;
  position: sticky;
  top: 86px;
  max-height: calc(100vh - 108px);
  border: 1px solid #344239;
  border-radius: 18px;
  background: #0f1411;
}

.mic-lesson-sidebar__cover {
  position: relative;
  min-height: 142px;
  padding: 22px;
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
  background:
    linear-gradient(0deg, #0e1411f7 0%, #0e14117a 100%),
    var(--lesson-cover) center / cover;
}

.mic-lesson-sidebar__cover span {
  color: #d39a62;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.mic-lesson-sidebar__cover h2 {
  margin: 6px 0 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.05;
}

.mic-lesson-sidebar__list {
  overflow: auto;
  max-height: calc(100vh - 250px);
  padding: 14px;
}

.mic-lesson-sidebar__list > p {
  margin: 0 5px 10px;
  color: #9fa9a0;
  font-size: 11px;
  font-weight: 700;
}

.mic-lesson-sidebar ol {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mic-lesson-sidebar a {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 14px;
  gap: 9px;
  align-items: center;
  min-height: 48px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #dce1dc;
  text-decoration: none;
}

.mic-lesson-sidebar a:hover,
.mic-lesson-sidebar a:focus-visible {
  background: #18201a;
}

.mic-lesson-sidebar a[aria-current="page"] {
  border-color: #63735f;
  color: #fff;
  background: #1d281f;
}

.mic-lesson-sidebar a > span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #0d120e;
  background: #bed5ad;
  font-size: 10px;
  font-weight: 900;
}

.mic-lesson-sidebar a strong {
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.25;
}

.mic-lesson-sidebar a i {
  color: #9fb492;
  font-size: 10px;
  font-style: normal;
  text-align: center;
}

@media (max-width: 900px) {
  .mic-lesson-layout {
    grid-template-columns: 1fr;
  }

  .mic-lesson-sidebar {
    position: static;
    max-height: none;
  }

  .mic-lesson-sidebar__list {
    max-height: 420px;
  }
}

@media (max-width: 620px) {
  .page.mic-lesson-route-host {
    width: min(100% - 24px, 1180px);
  }

  .mic-lesson-player {
    border-radius: 16px;
  }

  .mic-lesson-player__pending {
    width: 100%;
    padding: 24px;
  }

  .mic-lesson-player__play {
    width: 48px;
    height: 48px;
    margin-bottom: 13px;
  }

  .mic-lesson-material {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 24px 20px;
    border-radius: 16px;
  }

  .mic-lesson-material__capa {
    justify-self: center;
    width: 130px;
  }

  .mic-lesson-material__corpo {
    justify-items: stretch;
  }

  .mic-lesson-material__selo,
  .mic-lesson-material__dados {
    justify-self: start;
  }

  .mic-lesson-material__botao {
    justify-content: center;
  }

  .mic-lesson-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .mic-lesson-complete {
    justify-content: center;
  }

  .mic-lesson-stepper {
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mic-lesson-page *,
  .mic-lesson-page *::before,
  .mic-lesson-page *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Link de reserva do download (07/10): se o navegador não baixar sozinho
   — acontece em alguns celulares —, a pessoa toca aqui. */
.mic-lesson-material__aviso a {
  color: var(--accent, #b9d1a7);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
