body.vocabulary-pronunciation-open {
  overflow: hidden;
}

.vocabulary-pronunciation-overlay {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.45);
}

.vocabulary-pronunciation-overlay[hidden] {
  display: none;
}

.vocabulary-pronunciation-dialog {
  display: flex;
  flex-direction: column;
  width: min(100%, 58rem);
  height: min(calc(100vh - 3rem), 34rem);
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.vocabulary-pronunciation-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  background: #2e4a68;
  color: #ffffff;
}

.vocabulary-pronunciation-header-icon {
  display: inline-block;
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  background-color: #ffffff;
  -webkit-mask-image: url("/app/courses/pronunciationcourse.png");
  mask-image: url("/app/courses/pronunciationcourse.png");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.vocabulary-pronunciation-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.vocabulary-pronunciation-body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}

.vocabulary-pronunciation-sidebar {
  display: flex;
  flex: 0 0 11.5rem;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
  padding: 0.85rem 0.75rem;
  background: #eef2f6;
  border-right: 1px solid #d8e4ef;
}

.vocabulary-pronunciation-sound-card {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid #d8e4ef;
  border-radius: 0.2rem;
  background: #ffffff;
  color: #2e4a68;
  font: inherit;
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
}

.vocabulary-pronunciation-sound-card:hover {
  background: #f5f9fc;
}

.vocabulary-pronunciation-sound-play-icon {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  background: url('/app/courses/playbutton.png') center / contain no-repeat;
}

.vocabulary-pronunciation-sound-text {
  line-height: 1.35;
}

.vocabulary-pronunciation-steps-wrap {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.vocabulary-pronunciation-steps-heading {
  margin: 0;
  padding: 0.45rem 0.55rem;
  background: #e3e9ef;
  color: #5a7d9a;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.vocabulary-pronunciation-steps {
  display: flex;
  flex-direction: column;
}

.vocabulary-pronunciation-step {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: none;
  border-bottom: 1px solid #dde8f2;
  background: #ffffff;
  color: #647d93;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.vocabulary-pronunciation-step:hover {
  background: #f5f9fc;
}

.vocabulary-pronunciation-step.is-active {
  background: #dfeaf4;
  color: #2e4a68;
}

.vocabulary-pronunciation-step-number {
  min-width: 1.1rem;
}

.vocabulary-pronunciation-main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  background: #ffffff;
}

.vocabulary-pronunciation-step-toolbar {
  display: grid;
  grid-template-columns: 2rem 1fr 2rem;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.75rem;
  border-bottom: 1px solid #d8e6f2;
  background: #e8f2fa;
}

.vocabulary-pronunciation-step-title {
  margin: 0;
  color: #2e4a68;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}

.vocabulary-pronunciation-step-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #5a7d9a;
  cursor: pointer;
}

.vocabulary-pronunciation-step-nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.55);
}

.vocabulary-pronunciation-step-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.vocabulary-pronunciation-step-nav svg {
  width: 1rem;
  height: 1rem;
}

.vocabulary-pronunciation-step-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.vocabulary-pronunciation-compare-list {
  display: flex;
  flex-direction: column;
}

.vocabulary-pronunciation-compare-group:nth-child(odd) .vocabulary-pronunciation-compare-row--trainer {
  background: #eef5fb;
}

.vocabulary-pronunciation-compare-group:nth-child(odd) .vocabulary-pronunciation-compare-row--you {
  background: #f7fbfe;
}

.vocabulary-pronunciation-compare-group:nth-child(even) .vocabulary-pronunciation-compare-row--trainer,
.vocabulary-pronunciation-compare-group:nth-child(even) .vocabulary-pronunciation-compare-row--you {
  background: #ffffff;
}

.vocabulary-pronunciation-compare-row {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  min-height: 2.35rem;
  padding: 0.45rem 1rem;
}

.vocabulary-pronunciation-compare-label {
  color: #647d93;
  font-size: 0.82rem;
  font-weight: 600;
}

.vocabulary-pronunciation-compare-word {
  color: #2e4a68;
  font-size: 0.95rem;
}

.vocabulary-pronunciation-focus {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  vertical-align: baseline;
}

.vocabulary-pronunciation-focus-letter {
  color: #d64545;
  font-weight: 700;
}

.vocabulary-pronunciation-focus-mark {
  display: block;
  width: 0;
  height: 0;
  margin-top: 0.1rem;
  border-left: 0.28rem solid transparent;
  border-right: 0.28rem solid transparent;
  border-bottom: 0.34rem solid #d64545;
}

.vocabulary-pronunciation-step-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 12rem;
  padding: 2rem 1rem;
  color: #647d93;
  font-size: 0.92rem;
  text-align: center;
}

.vocabulary-pronunciation-step-placeholder .course-section-placeholder {
  margin: 0;
  max-width: 42rem;
  line-height: 1.55;
}

.vocabulary-pronunciation-step-placeholder .course-section-placeholder a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.vocabulary-pronunciation-step-placeholder .course-section-placeholder b {
  font-weight: 700;
}

.vocabulary-pronunciation-step-content:has(.vocabulary-pronunciation-practice) {
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.vocabulary-pronunciation-practice {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 100%;
  padding: 1.35rem 1rem 1.5rem;
}

.vocabulary-pronunciation-practice-instruction {
  margin: 0;
  color: #2e4a68;
  font-size: 0.95rem;
  text-align: center;
}

.vocabulary-pronunciation-practice-card {
  width: min(100%, 22rem);
  overflow: hidden;
  border: 1px solid #d8e4ef;
  border-radius: 0.15rem;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(46, 74, 104, 0.12);
}

.vocabulary-pronunciation-practice-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e8eef3;
}

.vocabulary-pronunciation-practice-image--placeholder {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(46, 74, 104, 0.08)),
    linear-gradient(135deg, #d8e4ef 0%, #eef2f6 45%, #c9d7e4 100%);
}

.vocabulary-pronunciation-practice-controls {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  min-height: 3.25rem;
  padding: 0.55rem 0.85rem;
  border-top: 1px solid #d8e4ef;
  background: #ffffff;
}

.vocabulary-pronunciation-practice-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.vocabulary-pronunciation-practice-play-icon {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  background: url('/app/courses/playbutton.png') center / contain no-repeat;
}

.vocabulary-pronunciation-practice-mic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #4fa3e0;
  cursor: pointer;
}

.vocabulary-pronunciation-practice-mic svg {
  width: 1.35rem;
  height: 1.35rem;
}

.vocabulary-pronunciation-practice-mic.is-listening {
  background: #ebf3fa;
  color: #2e4a68;
}

.vocabulary-pronunciation-practice-mic.is-unavailable {
  animation: vocabulary-pronunciation-practice-shake 0.35s ease;
}

@keyframes vocabulary-pronunciation-practice-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px);
  }
  75% {
    transform: translateX(3px);
  }
}

.vocabulary-pronunciation-practice-word {
  margin: 0;
  color: #2e4a68;
  font-size: 1.05rem;
  font-weight: 500;
  text-align: center;
}

.vocabulary-pronunciation-practice-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  padding-top: 0.35rem;
}

.vocabulary-pronunciation-practice-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  padding: 0;
  border: 1px solid #c5d6e6;
  border-radius: 50%;
  background: #eef2f6;
  color: #5a7d9a;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.vocabulary-pronunciation-practice-page.is-active {
  border-color: #2e4a68;
  background: #2e4a68;
  color: #ffffff;
}

.vocabulary-pronunciation-footer {
  display: flex;
  justify-content: flex-end;
  padding: 0.55rem 1rem;
  border-top: 1px solid #d8e4ef;
  background: #ffffff;
}

.vocabulary-pronunciation-close-btn {
  padding: 0.2rem 0.35rem;
  border: none;
  background: transparent;
  color: #4fa3e0;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

@media (max-width: 768px) {
  .vocabulary-pronunciation-overlay {
    padding: 0.75rem;
  }

  .vocabulary-pronunciation-dialog {
    height: min(calc(100vh - 1.5rem), 34rem);
  }

  .vocabulary-pronunciation-body {
    flex-direction: column;
  }

  .vocabulary-pronunciation-sidebar {
    flex: none;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #d8e4ef;
  }

  .vocabulary-pronunciation-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media print {
  .vocabulary-pronunciation-overlay {
    display: none !important;
  }
}
