:root {
  /* Paleta: Gradiente #7E00FF → #2419FF | Azul #2419FF | Rosa #FA5BFD | Fundo escuro */
  --violet: #7e00ff;
  --blue: #2419ff;
  --rosa: #fa5bfd;
  --gradient-brand: linear-gradient(135deg, #7e00ff 0%, #2419ff 100%);
  --gradient-cta: linear-gradient(135deg, #7e00ff 0%, #2419ff 55%, #1a14d4 100%);
  --gradient-playlist: linear-gradient(145deg, #1a1d26 0%, #11131a 52%, #090b10 100%);
  --gradient-playlist-active: linear-gradient(145deg, #242935 0%, #171b24 52%, #0d0f15 100%);
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #14141f;
  --surface: #1a1a26;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(126, 0, 255, 0.35);
  --text: #f4f4f8;
  --muted: #9ca3af;
  --accent: var(--blue);
  --accent-bright: var(--rosa);
  --accent-dim: rgba(126, 0, 255, 0.12);
  --accent-glow: rgba(126, 0, 255, 0.18);
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --font: "DM Sans", system-ui, sans-serif;
  --font-display: "Montserrat", var(--font);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04);
  --shadow-hover: 0 12px 48px rgba(126, 0, 255, 0.12), 0 4px 16px rgba(0, 0, 0, 0.35);
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 60% at 50% -15%, rgba(126, 0, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 55% 45% at 100% 0%, rgba(36, 25, 255, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(250, 91, 253, 0.08), transparent 45%);
  -webkit-font-smoothing: antialiased;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1080px, 100% - 1.5rem);
  margin-inline: auto;
}

@media (min-width: 640px) {
  .container {
    width: min(1080px, 100% - 2.5rem);
  }
}

.container--faq {
  max-width: 720px;
}

.container--player {
  width: min(1240px, 100% - 1.5rem);
}

@media (min-width: 640px) {
  .container--player {
    width: min(1240px, 100% - 2rem);
  }
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  width: min(1240px, 100% - 1.5rem);
  margin-inline: auto;
  padding: 0.65rem 0;
}

@media (min-width: 640px) {
  .site-header__inner {
    width: min(1240px, 100% - 2rem);
  }
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: -0.03em;
  color: #fff;
}

.brand:hover {
  color: #e4e4e7;
}

.site-header__greet {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ——— Sections ——— */
.section {
  padding: clamp(2.25rem, 5vw, 3.5rem) 0;
}

.section--player {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.section--about {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.section--faq {
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
}

.eyebrow--center {
  text-align: center;
}

.section__h2 {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.section__h2--center {
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 1.35rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.99);
}

.btn--block {
  width: 100%;
}

.btn--cta {
  color: #fff;
  text-transform: none;
  font-size: clamp(0.88rem, 2vw, 1rem);
  min-height: 54px;
  font-weight: 700;
  background: var(--gradient-cta);
  box-shadow: 0 8px 28px rgba(36, 25, 255, 0.35), 0 2px 8px rgba(126, 0, 255, 0.2);
  border-radius: var(--radius-pill);
}

.btn--cta:hover {
  filter: brightness(1.05);
  box-shadow: 0 10px 36px rgba(250, 91, 253, 0.35), 0 4px 14px rgba(36, 25, 255, 0.25);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
}

.btn--ghost {
  color: #eef0f8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
}

.btn--ghost.is-complete {
  color: #dfffe9;
  background: linear-gradient(135deg, rgba(25, 135, 84, 0.24), rgba(14, 77, 49, 0.34));
  border-color: rgba(66, 214, 151, 0.28);
}

/* ——— Player layout ——— */
.player-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .player-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: 1.75rem 1.5rem;
    align-items: stretch;
  }
}

.player-main {
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(1.15rem, 3.5vw, 1.75rem);
  box-shadow: var(--shadow);
}

.player-greet {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.player-lesson-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.player-play-icon {
  display: flex;
  color: var(--blue);
  line-height: 0;
}

.player-lesson-code {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}

.player-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}

.player-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.player-meta__pill {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--gradient-brand);
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(36, 25, 255, 0.25);
}

.player-meta__pill--muted {
  color: #d4d4e8;
  background: rgba(126, 0, 255, 0.12);
  border: 1px solid rgba(126, 0, 255, 0.28);
  box-shadow: none;
}

.player-video-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0f0f12;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-hover);
}

.player-video-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.player-video-inner.is-hidden {
  display: none;
}

.player-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.player-video-fallback {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.player-video-fallback.is-hidden,
.player-video-fallback[hidden] {
  display: none;
}

.player-video-fallback:not([hidden]):not(.is-hidden) {
  display: block;
}

.player-video-fallback__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}

.player-video-fallback__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0.85rem 1rem;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.82) 100%);
  pointer-events: none;
}

.player-video-fallback__label {
  font-size: clamp(0.72rem, 2vw, 0.82rem);
  color: #e4e4e7;
  line-height: 1.35;
  text-align: left;
  max-width: 28rem;
}

.player-desc {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
}

.next-step {
  margin-top: 1.1rem;
  padding: 1rem 1.05rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(126, 0, 255, 0.08), rgba(126, 0, 255, 0)),
    rgba(255, 255, 255, 0.02);
}

.next-step__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d6c8ff;
}

.next-step__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fff;
}

.next-step__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

.player-footer {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.lesson-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .lesson-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.lesson-status {
  margin: -0.25rem 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}

/* ——— Progress ——— */
.progress__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.45rem;
}

.progress__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.progress__count {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

.progress__count strong {
  color: var(--violet);
}

.progress__track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--blue) 55%, var(--rosa));
  border-radius: var(--radius-pill);
  transition: width 0.35s ease;
}

/* ——— Playlist ——— */
.player-playlist {
  min-width: 0;
  padding: clamp(0.75rem, 3vw, 1rem);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

@media (min-width: 1024px) {
  .player-playlist {
    max-height: min(85vh, 900px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: clamp(0.85rem, 2vw, 1.15rem);
    padding-right: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(126, 0, 255, 0.35) transparent;
  }

  .player-playlist::-webkit-scrollbar {
    width: 6px;
  }

  .player-playlist::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--violet), var(--blue));
    border-radius: 999px;
  }
}

.playlist {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  width: 100%;
}

.playlist-stage {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.015);
}

.playlist-stage.is-current {
  border-color: rgba(126, 0, 255, 0.26);
  box-shadow: inset 0 0 0 1px rgba(126, 0, 255, 0.08);
}

.playlist-stage__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.playlist-stage__kicker {
  margin: 0 0 0.2rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b7b0ca;
}

.playlist-stage__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: #fff;
}

.playlist-stage__note {
  margin: 0.18rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
}

.playlist-stage__progress {
  flex-shrink: 0;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  color: #f5f3ff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

@media (max-width: 1023px) {
  .player-playlist {
    width: 100%;
    max-width: none;
  }

  .playlist-card {
    min-height: 52px;
  }
}

.playlist-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 56px 1fr auto;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.75rem;
  padding-right: 0.85rem;
  text-align: left;
  font: inherit;
  color: #fff;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: var(--gradient-playlist);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s, border-color 0.2s, background 0.2s;
}

.playlist-card:hover {
  filter: brightness(1.05);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}

.playlist-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 3px;
}

.playlist-card.is-active {
  background: var(--gradient-playlist-active);
  border-color: rgba(126, 0, 255, 0.45);
  box-shadow:
    0 0 0 1px rgba(126, 0, 255, 0.28),
    0 16px 38px rgba(0, 0, 0, 0.5);
}

.playlist-card.is-active::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 0;
  bottom: 10px;
  width: 4px;
  background: linear-gradient(180deg, #5f6475 0%, #8f45ff 100%);
  border-radius: 4px 0 0 4px;
  box-shadow: 0 0 14px rgba(143, 69, 255, 0.45);
}

.playlist-card.is-complete:not(.is-active) {
  border-color: rgba(66, 214, 151, 0.18);
}

.playlist-card__num {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  min-width: 1.35rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.playlist-card__cover {
  width: 56px;
  height: 36px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.32);
}

.playlist-card__info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.playlist-card__label {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
}

.playlist-card__meta {
  font-size: 0.56rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.25;
}

.playlist-card__done {
  display: none;
  padding: 0.28rem 0.5rem;
  border-radius: var(--radius-pill);
  background: rgba(66, 214, 151, 0.14);
  border: 1px solid rgba(66, 214, 151, 0.2);
  color: #8ff0bf;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.playlist-card.is-complete .playlist-card__done {
  display: inline-flex;
}

/* ——— Audience section ——— */
.audience-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.audience-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.95rem;
  margin-top: 0.4rem;
}

@media (min-width: 768px) {
  .audience-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.audience-card {
  padding: 1.15rem 1.1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    linear-gradient(145deg, #171922 0%, #111319 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.audience-card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.audience-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .audience-card--wide {
    grid-column: 1 / -1;
  }
}

.prose p {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* ——— FAQ ——— */
.faq {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.faq__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq__item summary {
  padding: 0.95rem 1rem;
  padding-right: 2.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  position: relative;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.2s;
}

.faq__item[open] summary::after {
  transform: translateY(-35%) rotate(225deg);
}

.faq__item p {
  margin: 0;
  padding: 0 1rem 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ——— Footer ——— */
.footer {
  padding: 1.15rem 0 1.75rem;
  border-top: 1px solid var(--border);
  background: rgba(8, 8, 12, 0.6);
}

.footer__inner p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}
