/* ArtAcademy lesson detail (Figma 194:343 + desktop layout) */

.aa-ls-hero {
  background: linear-gradient(180deg, var(--aa-bg) 0%, var(--aa-surface-2) 100%);
  padding: 56px 0 40px;
}

.aa-ls-hero .aa-breadcrumbs {
  margin-bottom: 24px;
  flex-wrap: wrap;
  row-gap: 6px;
}

.aa-ls-hero__badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 16px;
  padding: 6px 16px;
  border: 1px solid var(--aa-accent);
  border-radius: var(--aa-pill);
  background: var(--aa-surface-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--aa-accent);
  text-decoration: none;
}

.aa-ls-hero__badge:hover {
  background: #efe0d6;
}

.aa-ls-hero__title {
  margin: 0 0 12px;
  font-family: var(--aa-serif);
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.15;
  color: var(--aa-text);
}

.aa-ls-hero__sub {
  margin: 0;
  max-width: 720px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--aa-muted);
}

.aa-ls-main {
  padding: 48px 0 96px;
}

.aa-ls-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
}

.aa-ls-primary {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.aa-ls-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--aa-radius);
  overflow: hidden;
  background: #1c1b1a;
  border: 2px solid var(--aa-border);
}

.aa-ls-video iframe,
.aa-ls-video video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.aa-ls-video__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aa-ls-video__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(28, 27, 26, 0.28);
  z-index: 1;
}

.aa-ls-video__play {
  display: block;
  width: 88px;
  height: 88px;
  filter: drop-shadow(0 12px 24px rgba(192, 92, 62, 0.35));
}

.aa-ls-video-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.aa-ls-video-meta__title {
  margin: 0 0 6px;
  font-family: var(--aa-serif);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  color: var(--aa-text);
}

.aa-ls-video-meta__instructor {
  margin: 0;
  font-size: 15px;
  color: var(--aa-muted);
}

.aa-ls-time {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--aa-pill);
  background: var(--aa-surface-2);
  font-size: 14px;
  font-weight: 600;
  color: var(--aa-accent);
  white-space: nowrap;
}

.aa-ls-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.aa-ls-stat {
  padding: 20px;
  background: var(--aa-surface);
  border: 2px solid var(--aa-border);
  border-radius: 16px;
}

.aa-ls-stat__label {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--aa-muted);
}

.aa-ls-stat__value {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--aa-text);
}

.aa-ls-block h2 {
  margin: 0 0 12px;
  font-family: var(--aa-serif);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.2;
  color: var(--aa-text);
}

.aa-ls-block p,
.aa-ls-block .aa-ls-desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--aa-muted);
}

.aa-ls-block .aa-ls-desc + .aa-ls-desc,
.aa-ls-block p + .aa-ls-desc {
  margin-top: 12px;
}

.aa-ls-access {
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(212, 159, 58, 0.14);
  border: 1px solid rgba(212, 159, 58, 0.35);
  font-size: 14px;
  color: #9a6f12;
}

.aa-ls-locked {
  padding: 32px;
  background: var(--aa-surface);
  border: 2px solid var(--aa-border-strong);
  border-radius: var(--aa-radius);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.aa-ls-locked p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--aa-muted);
}

.aa-ls-locked__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.aa-ls-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.aa-ls-actions .aa-btn {
  flex: 1 1 180px;
}

.aa-ls-empty {
  margin: 0;
  padding: 28px;
  text-align: center;
  color: var(--aa-muted);
  background: var(--aa-surface-2);
  border-radius: 16px;
}

.aa-ls-side {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.aa-ls-panel {
  padding: 24px;
  background: var(--aa-surface);
  border: 2px solid var(--aa-border);
  border-radius: 24px;
}

.aa-ls-panel h2 {
  margin: 0 0 16px;
  font-family: var(--aa-serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  color: var(--aa-text);
}

.aa-ls-plan {
  position: relative;
  margin: 0;
  padding: 0 4px 0 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(58vh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--aa-accent) var(--aa-surface-2);
}

.aa-ls-plan::-webkit-scrollbar {
  width: 8px;
}

.aa-ls-plan::-webkit-scrollbar-track {
  background: var(--aa-surface-2);
  border-radius: 8px;
}

.aa-ls-plan::-webkit-scrollbar-thumb {
  background: var(--aa-accent);
  border-radius: 8px;
}

.aa-ls-plan a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 2px solid var(--aa-border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.aa-ls-plan a:hover {
  border-color: var(--aa-accent);
  background: var(--aa-surface-2);
}

.aa-ls-plan a.is-active {
  border-color: var(--aa-accent);
  background: rgba(192, 92, 62, 0.06);
}

.aa-ls-plan__num {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--aa-surface-2);
  font-size: 14px;
  font-weight: 700;
  color: var(--aa-accent);
}

.aa-ls-plan a.is-active .aa-ls-plan__num {
  background: var(--aa-accent);
  color: #fff;
}

.aa-ls-plan__title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--aa-text);
}

.aa-ls-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: var(--aa-pill);
  background: var(--aa-accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.aa-ls-download:hover {
  background: #a84e34;
  color: #fff;
}

.aa-ls-side-cta {
  text-align: center;
}

.aa-ls-side-cta p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--aa-muted);
}

@media (max-width: 991px) {
  .aa-ls-layout {
    grid-template-columns: 1fr;
  }

  .aa-ls-side {
    position: static;
  }

  .aa-ls-plan {
    max-height: min(46vh, 420px);
  }
}

@media (max-width: 767px) {
  .aa-ls-hero {
    padding: 40px 0 28px;
  }

  .aa-ls-main {
    padding: 28px 0 64px;
  }

  .aa-ls-stats {
    grid-template-columns: 1fr;
  }

  .aa-ls-video-meta {
    flex-direction: column;
  }

  .aa-ls-locked__actions {
    flex-direction: column;
  }

  .aa-ls-locked__actions .aa-btn {
    width: 100%;
  }

  .aa-ls-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .aa-ls-actions .aa-btn {
    flex: 1 1 calc(33.33% - 8px);
    width: auto;
    min-width: 0;
    min-height: 36px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 600;
  }

  .aa-ls-video__play {
    width: 72px;
    height: 72px;
  }
}
