/* MagyarVocab Stylish Lesson Page */

.lesson-nav-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 1.2rem;
  margin: 2.2rem 0 0.8rem 0;
}
.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  min-height: 48px;
  padding: 0.6em 1.2em;
  background: #fafdff;
  border: 2.5px solid #b8b4e9;
  border-radius: 18px 23px 16px 20px/22px 18px 23px 16px;
  font-size: 1.2rem;
  font-family: 'Segoe UI',Helvetica,Arial,sans-serif;
  font-weight: 600;
  color: #45277b;
  box-shadow: 1px 2px 7px 0 rgba(44,123,229,0.07);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border 0.15s, transform 0.1s;
  cursor: pointer;
  user-select: none;
}
.nav-btn:hover, .nav-btn:focus {
  background: #e3e8ff;
  color: #2c7be5;
  border-color: #2c7be5;
  outline: none;
  transform: translateY(-2px) scale(1.03);
}
.nav-btn-disabled {
  opacity: 0.0;
  pointer-events: none;
}
.prev-btn {
  text-align: left;
  justify-content: flex-start;
}
.next-btn {
  text-align: right;
  justify-content: flex-end;
}
.up-btn {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: #f7f2ff;
  border-color: #b8b4e9;
}
@media (max-width: 600px) {
  .lesson-nav-row {
    gap: 0.5rem;
    margin: 1.2rem 0 0.5rem 0;
  }
  .nav-btn {
    min-width: 70px;
    min-height: 36px;
    font-size: 0.95rem;
    padding: 0.4em 0.7em;
  }
}

.site-header {
  width: 100vw;
  background: linear-gradient(90deg, #fafdff 60%, #e3e8ff 100%);
  box-shadow: 0 2px 16px 0 rgba(44,123,229,0.07);
  padding: 1.2rem 0 1.2rem 0;
  margin-bottom: 2.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.logo-header {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75em;
  text-decoration: none;
}
.logo-flag {
  width: 38px;
  height: 28px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 1px 6px 0 rgba(44,123,229,0.12);
  border: 1.5px solid #e3e8ff;
  flex-shrink: 0;
}
.logo-title {
  font-family: 'Segoe UI',Helvetica,Arial,sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  color: #45277b;
  letter-spacing: 0.01em;
  line-height: 1;
}
@media (max-width: 600px) {
  .site-header {
    padding: 0.7rem 0 0.7rem 0;
    margin-bottom: 1.1rem;
  }
  .logo-title {
    font-size: 1.13rem;
  }
  .logo-flag {
    width: 26px;
    height: 18px;
  }
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, 'Liberation Sans', sans-serif;
  background: linear-gradient(135deg, #f0f4ff 0%, #f8f6fb 100%);
  color: #222;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}
.lesson-container {
  max-width: 700px;
  margin: 2.5rem auto 2rem auto;
  background: linear-gradient(120deg, #fafdff 60%, #f3f0ff 100%);
  border-radius: 22px;
  box-shadow: 0 8px 32px 0 rgba(44,123,229,0.09);
  padding: 2.8rem 2.2rem 2.2rem 2.2rem;
  border: 2.5px solid #e3e8ff;
}
.lesson-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
  text-align: center;
  color: #2c7be5;
  text-shadow: 0 2px 16px #e3e8ff;
  font-family: 'Segoe UI Semibold', 'Segoe UI', Arial, sans-serif;
}
.lesson-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}
.lesson-media img {
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(44,123,229,0.13);
  border: 2.5px solid #e3e8ff;
  width: 100%;
  max-width: 700px;
  min-width: 220px;
  height: auto;
  margin-bottom: 1.3rem;
  background: #fff;
}
.audio-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}
.lesson-audio {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}
.play-preview {
  background: linear-gradient(135deg, #2c7be5 60%, #7f53ac 100%);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 2.2rem;
  box-shadow: 0 4px 16px 0 rgba(44,123,229,0.15);
  margin-bottom: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, box-shadow 0.2s;
  outline: none;
  border: 2.5px solid #e3e8ff;
}
.play-preview:hover {
  background: linear-gradient(135deg, #185a9d 60%, #7f53ac 100%);
  box-shadow: 0 8px 24px 0 rgba(44,123,229,0.17);
}
.lesson-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2.5rem;
}
.lesson-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.6rem 1.5rem;
  border-radius: 24px;
  background: linear-gradient(90deg, #7f53ac 0%, #2c7be5 100%);
  box-shadow: 0 2px 8px 0 rgba(44,123,229,0.08);
  transition: background 0.2s;
  font-size: 1.07rem;
  letter-spacing: 0.01em;
}
.lesson-nav a:hover {
  background: linear-gradient(90deg, #2c7be5 0%, #7f53ac 100%);
  color: #fff;
}
.back-link {
  display: inline-block;
  text-align: left;
  margin-bottom: 2.2rem;
  color: #fff;
  background: linear-gradient(90deg, #7f53ac 0%, #2c7be5 100%);
  text-decoration: none;
  font-size: 1.07rem;
  font-weight: 500;
  padding: 0.48rem 1.25rem 0.48rem 1.1rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px 0 rgba(44,123,229,0.08);
  transition: background 0.2s;
}
.back-link:hover {
  background: linear-gradient(90deg, #2c7be5 0%, #7f53ac 100%);
  color: #fff;
}
.audio-waveform-container {
  position: relative;
  width: 90%;
  max-width: 800px;
  margin: 0 auto 1.5rem auto;
  display: flex;
  justify-content: center;
}
#audio-waveform {
  width: 800px;
  max-width: 100%;
  height: 60px;
  display: block;
  margin: 0 auto;
}
/* removed .audio-progress-overlay */ {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #a084ca55;
  border-radius: 12px;
  pointer-events: none;
  z-index: 1;
  width: 0%;
  transition: width 0.2s linear;
}
.audio-timebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto 1rem auto;
  font-family: monospace;
  font-size: 1.2rem;
  color: #444;
  width: 90%;
  max-width: 800px;
}
.custom-audio-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
}
.custom-audio-controls button {
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s;
}
.custom-audio-controls button:active {
  transform: scale(0.96);
}
#play-pause {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 1.5rem;
  transition: box-shadow 0.2s;
}
#play-pause svg {
  width: 88px;
  height: 88px;
  display: block;
}
#play-pause:hover {
  box-shadow: none;
}
.ocbutton {
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.ocbutton svg {
  width: 48px;
  height: 48px;
}
@media (max-width: 700px) {
  .lesson-container {
    padding: 1rem 0.5rem 1.5rem 0.5rem;
  }
  .lesson-title {
    font-size: 1.5rem;
  }
  .lesson-media img, .lesson-audio {
    max-width: 98vw;
  }
}
