.speaking-listening-page {
  min-height: 0;
  margin: 0;
  background: var(--page);
  color: var(--ink);
}

.sl-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px 0;
}

.sl-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}

.sl-shell {
  box-sizing: border-box;
  width: min(1180px, 100%);
  min-height: 0;
  margin: 0 auto;
  padding: 24px;
}

.sl-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.sl-heading h1,
.sl-detail-head h2 {
  margin: 0;
  color: var(--ink);
  font-weight: 550;
  letter-spacing: 0;
}

.sl-heading h1 {
  font-size: 28px;
}

.sl-heading p,
.sl-detail-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.sl-eyebrow {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 16px;
  font-weight: 550;
}

.sl-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sl-filter button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--body);
  font-size: 16px;
  cursor: pointer;
}

.sl-filter button.active {
  border-color: var(--brand);
  background: var(--brand-pale);
  color: var(--brand);
}

.sl-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.sl-list-panel,
.sl-player-panel {
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.sl-list-panel {
  padding: 16px;
}

.sl-player-panel {
  min-height: 520px;
  padding: 20px;
}

.sl-status {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 16px;
}

.sl-list {
  display: grid;
  gap: 10px;
}

.sl-lesson {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--body);
  text-align: left;
  cursor: pointer;
}

.sl-lesson.active {
  border-color: var(--brand);
  background: var(--brand-pale);
}

.sl-lesson strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
  font-weight: 550;
  line-height: 1.45;
}

.sl-lesson span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.sl-more {
  width: 100%;
  margin-top: 14px;
}

.sl-empty {
  min-height: 460px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: var(--muted);
  text-align: center;
}

.sl-empty svg {
  width: 54px;
  height: 54px;
  color: var(--brand);
}

.sl-empty strong {
  font-size: 18px;
  font-weight: 550;
}

.sl-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.sl-tag {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 16px;
  font-weight: 550;
}

.sl-audio {
  width: 100%;
  margin: 8px 0 18px;
}

.sl-lines {
  display: grid;
  gap: 12px;
}

.sl-line {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.sl-line.active {
  border-color: var(--brand);
  background: var(--brand-pale);
}

.sl-line-play {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--brand);
  cursor: pointer;
}

.sl-line-play svg {
  width: 20px;
  height: 20px;
}

.sl-line-save {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
}

.sl-line-save svg {
  width: 21px;
  height: 21px;
}

.sl-line-main strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 550;
  line-height: 1.55;
}

.sl-line-main p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.sl-line-speaker {
  color: var(--brand);
}

.sl-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 320px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #333942;
  color: #fff;
  font-size: 16px;
  z-index: 20;
}

html.is-embedded .sl-topbar {
  display: none;
}

@media (max-width: 880px) {
  .sl-shell {
    padding: 16px;
  }

  .sl-heading,
  .sl-detail-head {
    display: grid;
  }

  .sl-layout {
    grid-template-columns: 1fr;
  }

  .sl-line {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .sl-player-panel {
    min-height: 360px;
  }
}
