.screen-translation {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  background: #f5f6fa;
  min-height: 100vh;
  padding: 36px 20px 28px 20px;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10;
}

.screen-translation.active {
  display: flex;
  animation: fadeIn 0.28s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.back-to-main-button {
  background: #f0f4fe;
  color: #4a5be7;
  font-size: 1.03rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 9px 16px;
  margin-bottom: 20px;
  box-shadow: 0 1px 6px 0 rgba(80,110,200,0.06);
  transition: background 0.18s;
}
.back-to-main-button:active {
  background: #e3ebfd;
  color: #1a2340;
}

.translation-text {
  font-size: 1.22rem;
  color: #202e4a;
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 0 0;
  word-break: break-word;
}
/* Lesson controls panel styles */
.lesson-controls-panel {
  margin: 0 8px 8px 8px;
  background: #f7f8fd;
  border-radius: 12px;
  padding: 10px 12px 6px 12px;
  gap: 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.playback-speed {
  font-size: 0.99rem;
  color: #b0b8d9;
  background: #f3f5fd;
  border: 1px solid #eef2fc;
  padding: 7px 11px;
  border-radius: 7px;
  font-weight: 400;
  font-family: inherit;
  outline: none;
  appearance: none;
}

.play-pause-button {
  background: linear-gradient(90deg, #4e88ff, #185fff 90%);
  color: #fff;
  font-size: 1.26rem;
  font-weight: 800;
  border-radius: 50px;
  padding: 17px 0;
  min-width: 170px;
  width: 100%;
  max-width: 350px;
  margin-left: 0;
  box-shadow: 0 3px 18px 0 rgba(80,110,200,0.13);
  transition: background 0.14s, transform 0.11s;
  display: block;
}
.play-pause-button:active {
  background: #4269d3;
  transform: scale(0.96);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body, .body-container {
  font-family: 'Inter', 'Arial', sans-serif;
  background: #f5f6fa;
  color: #212121;
  min-height: 100vh;
}

.app {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(30,40,60,0.07);
}

button {
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  outline: none;
  background: #f0f2fa;
  color: #1a1a1a;
  border-radius: 10px;
  padding: 12px 18px;
  transition: background 0.2s;
}
button:active {
  background: #e2e6f3;
}

ul, li {
  margin: 0;
  padding: 0;
  list-style: none;
}

body, .app, button {
  transition: all 0.2s;
}
/* Lesson header container styles */
.lesson-header-container {
  padding: 10px 10px 2px 10px;
  background: #fafbff;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Progress bar styles */
.progress-bar-container {
  width: 100%;
  height: 5px;
  background: #f3f4fa;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 4px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #bfcdfd, #b5c8f9 100%);
  border-radius: 6px 0 0 6px;
  transition: width 0.3s;
}

/* Lesson progress styles */
.lesson-progress {
  font-size: 0.97rem;
  font-weight: 400;
  color: #b3b9d1;
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 0;
}

.current-lesson {
  font-size: 0.97rem;
  color: #b3b9d1;
  font-weight: 400;
}

.separator {
  font-size: 0.97rem;
  color: #b3b9d1;
  margin: 0 3px;
}

.total-lessons {
  font-size: 0.97rem;
  color: #b3b9d1;
  font-weight: 400;
}

/* Next lesson button styles */
.next-lesson-button {
  margin-left: auto;
  align-self: flex-end;
  background: #f3f4fa;
  color: #9ca6cc;
  font-weight: 500;
  padding: 6px 15px;
  border-radius: 8px;
  font-size: 0.97rem;
  box-shadow: none;
  margin-top: 4px;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}
.next-lesson-button:active {
  background: #e7e8ef;
  color: #7a86af;
}
/* Main lesson block styles */
.lesson-main-text {
  padding: 34px 16px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  background: #fff;
  border-radius: 14px;
}

/* Main lesson text styles */
.lesson-text {
  font-size: 2.1rem;
  font-weight: 700;
  color: #162044;
  line-height: 1.28;
  margin: 0;
  letter-spacing: -0.015em;
  text-align: center;
  word-break: break-word;
}

/* Show translation button styles */
.show-translation-button {
  background: #f6f8fe;
  color: #b2b8d8;
  font-weight: 600;
  font-size: 0.99rem;
  border-radius: 8px;
  padding: 7px 16px;
  margin-top: 1px;
  box-shadow: none;
  transition: background 0.16s, color 0.16s;
}
.show-translation-button:active {
  background: #f2f3f7;
  color: #9097b8;
}
/* Lesson parts container and list styles */
.lesson-parts-container {
  padding: 6px 6px 15px 6px;
  width: 100%;
}

.parts-list-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Lesson part item styles */
.part-item {
  background: #f8f9fd;
  color: #c1c5de;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 0.97rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.13s, color 0.13s;
  box-shadow: none;
  outline: none;
}

.part-item.active {
  background: #4e88ff;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px 0 rgba(80,110,200,0.09);
}

.part-item:active {
  background: #e9f1ff;
  color: #8496c9;
}
.screen-congrats {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #f7f8fd;
  padding: 38px 18px 32px 18px;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10;
  text-align: center;
}

.screen-congrats.active {
  display: flex;
  animation: fadeIn 0.32s;
}

.screen-congrats h2 {
  color: #2d45a7;
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 16px 0;
  letter-spacing: -0.01em;
}

.screen-congrats p {
  color: #2a3558;
  font-size: 1.13rem;
  font-weight: 500;
  margin: 0 0 24px 0;
}

#congrats-youtube {
  border-radius: 12px;
  margin-bottom: 24px;
  max-width: 100%;
  box-shadow: 0 2px 12px 0 rgba(100,110,200,0.08);
  background: #000;
}

.repeat-lessons-button {
  background: linear-gradient(90deg, #6e88ff, #4880f7 80%);
  color: #fff;
  font-size: 1.06rem;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(80,110,200,0.10);
  margin-top: 8px;
  transition: background 0.18s;
}
.repeat-lessons-button:active {
  background: #4269d3;
}