/* ArtAcademy course detail (desktop 229:390 + mobile 229:679) */

.aa-cd-hero {
  background: var(--aa-bg);
  padding: 64px 0 40px;
}

.aa-cd-hero__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.aa-cd-hero__copy {
  flex: 1 1 0;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.aa-cd-hero__meta {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  padding-top: 24px;
}

.aa-cd-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 12px;
  background: var(--aa-accent);
  color: var(--aa-on-accent);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.aa-cd-duration {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--aa-muted);
}

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

.aa-cd-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.aa-cd-buybox {
  background: var(--aa-surface);
  border: 2px solid var(--aa-border-strong);
  border-radius: var(--aa-radius);
  padding: 24px 28px;
  max-width: 480px;
}

.aa-cd-left {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}

.aa-cd-video {
  position: relative;
  width: 100%;
  aspect-ratio: 852 / 480;
  border-radius: var(--aa-radius);
  overflow: hidden;
  background: #1c1b1a;
  border: 2px solid var(--aa-border-strong);
  text-decoration: none;
  color: inherit;
  display: block;
}

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

.aa-cd-video__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
}

.aa-cd-video__play-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.aa-cd-video__play-circle img {
  width: 22px;
  height: 22px;
  margin-left: 2px;
  filter: brightness(0);
}

.aa-cd-video__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

.aa-cd-video__bar img {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.aa-cd-video__progress {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
}

.aa-cd-video__progress span {
  display: block;
  width: 12%;
  height: 100%;
  background: var(--aa-accent);
}

.aa-cd-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.aa-cd-tab {
  display: inline-flex;
  align-items: center;
  min-height: 41px;
  padding: 12px 24px;
  border-radius: var(--aa-pill);
  background: var(--aa-surface-2);
  color: var(--aa-muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--aa-sans);
  transition: background 0.2s ease, color 0.2s ease;
}

.aa-cd-tab:hover {
  color: var(--aa-accent);
}

.aa-cd-tab.is-active {
  background: var(--aa-accent);
  color: var(--aa-on-accent);
  font-weight: 700;
}

.aa-cd-tab.is-active:hover {
  color: var(--aa-on-accent);
  background: #a84e34;
}

.aa-cd-desc h2 {
  margin: 0 0 16px;
  font-family: var(--aa-serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.2;
  color: var(--aa-text);
}

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

.aa-cd-learn {
  background: var(--aa-surface-2);
  border-radius: var(--aa-radius);
  padding: 24px;
}

.aa-cd-learn h3 {
  margin: 0 0 16px;
  font-family: var(--aa-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--aa-text);
}

.aa-cd-learn ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aa-cd-learn li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--aa-text);
}

.aa-cd-learn__icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--aa-accent);
  display: grid;
  place-items: center;
  flex: 0 0 20px;
  margin-top: 1px;
}

.aa-cd-learn__icon img {
  width: 12px;
  height: 12px;
}

.aa-cd-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 24px;
}

.aa-cd-module {
  background: var(--aa-surface);
  border: 2px solid var(--aa-border-strong);
  border-radius: var(--aa-radius);
  padding: 28px;
}

.aa-cd-module h3 {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 700;
  color: var(--aa-text);
}

.aa-cd-lessons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: min(52vh, 520px);
  overflow-y: auto;
}

.aa-cd-lesson {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  text-decoration: none;
  color: var(--aa-text);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.aa-cd-lesson:hover {
  border-color: var(--aa-border);
}

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

.aa-cd-lesson__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--aa-surface-2);
  color: var(--aa-muted);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  flex: 0 0 28px;
}

.aa-cd-lesson.is-active .aa-cd-lesson__num {
  background: var(--aa-accent);
  color: var(--aa-on-accent);
}

.aa-cd-lesson__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.aa-cd-module__divider {
  height: 1px;
  background: var(--aa-border);
  margin: 24px 0;
  border: 0;
}

.aa-cd-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.aa-cd-price-row span {
  font-size: 14px;
  color: var(--aa-muted);
  font-weight: 500;
}

.aa-cd-price-row strong {
  font-size: 24px;
  font-weight: 700;
  color: var(--aa-text);
}

.aa-cd-buy {
  width: 100%;
  min-height: 52px;
  border: none;
  border-radius: var(--aa-pill);
  background: var(--aa-accent);
  color: var(--aa-on-accent);
  font-family: var(--aa-sans);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.aa-cd-buy:hover {
  background: #a84e34;
  color: var(--aa-on-accent);
}

.aa-cd-support {
  background: var(--aa-surface-2);
  border-radius: var(--aa-radius);
  padding: 24px;
}

.aa-cd-support h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
}

.aa-cd-support p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--aa-muted);
}

.aa-cd-support .aa-btn {
  min-height: 41px;
  padding: 12px 20px;
  font-size: 14px;
}

.aa-cd-related {
  padding: 64px 0 80px;
}

.aa-cd-related .aa-catalog__head {
  margin-bottom: 48px;
}

.aa-cd-alert {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--aa-surface-2);
  color: var(--aa-text);
  font-size: 14px;
}

.aa-cd-alert--ok {
  background: #e8f5e9;
}

/* Mobile: artacademy-course-detail-mobile */
@media (max-width: 1100px) {
  .aa-cd-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .aa-cd-sidebar {
    position: static;
  }

  .aa-cd-hero__row {
    flex-direction: column;
    gap: 20px;
  }

  .aa-cd-hero__meta {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    padding-top: 0;
  }
}

@media (max-width: 700px) {
  .aa-cd-hero {
    padding: 32px 0 24px;
  }

  .aa-cd-hero__title {
    font-size: 32px;
  }

  .aa-cd-main {
    padding-bottom: 40px;
  }

  .aa-cd-left {
    gap: 24px;
  }

  .aa-cd-video {
    aspect-ratio: 16 / 9;
    border-radius: 16px;
  }

  .aa-cd-video__play-circle {
    width: 56px;
    height: 56px;
  }

  .aa-cd-video__play-circle img {
    width: 18px;
    height: 18px;
  }

  .aa-cd-tabs {
    gap: 8px;
  }

  .aa-cd-tab {
    padding: 10px 16px;
    font-size: 13px;
    min-height: 38px;
  }

  .aa-cd-desc h2 {
    font-size: 24px;
  }

  .aa-cd-desc p {
    font-size: 14px;
  }

  .aa-cd-learn {
    border-radius: 16px;
    padding: 20px;
  }

  .aa-cd-learn h3 {
    font-size: 16px;
  }

  .aa-cd-learn li {
    font-size: 13px;
  }

  .aa-cd-module,
  .aa-cd-support {
    border-radius: 16px;
    padding: 20px;
  }

  .aa-cd-price-row strong {
    font-size: 20px;
    color: var(--aa-accent);
  }

  .aa-cd-related {
    padding: 40px 0 56px;
  }

  .aa-cd-related .aa-courses-grid {
    grid-template-columns: 1fr;
  }
}
