* {
  box-sizing: border-box;
}

html {
  font-family: Roboto, Arial, sans-serif;
  color: #181818;
  background: #fbfbfa;
}

body {
  margin: 0;
}

a {
  color: inherit;
}

.menu,
.script {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 56px;
}

.menu h1,
.script h1 {
  margin: 18px 0 28px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
}

.menu ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.menu li a,
.empty {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid #deded9;
  text-decoration: none;
  font-size: 18px;
}

.menu li a:hover,
.back:hover {
  color: #5d5a50;
}

.back {
  display: inline-block;
  color: #6e6b63;
  font-size: 14px;
  text-decoration: none;
}

.script section {
  display: grid;
  gap: 0;
}

.line {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid #deded9;
  overflow: hidden;
  --duration: 0s;
}

.line::before {
  position: absolute;
  inset: 0;
  content: "";
  background: #e5e1d4;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

.line.playing::before {
  opacity: 0.75;
  animation: line-progress var(--duration) linear forwards;
}

@keyframes line-progress {
  to {
    transform: scaleX(1);
  }
}

.line.repeat {
  padding-left: 14px;
  border-left: 3px solid #c8c4b8;
}

.play {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #232323;
  border-radius: 4px;
  background: #232323;
  color: #ffffff;
  font: inherit;
  cursor: pointer;
}

.play:hover {
  background: #000000;
}

.play-icon {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid #ffffff;
}

.line.playing .play-icon {
  width: 14px;
  height: 14px;
  margin-left: 0;
  border: 0;
  background: #ffffff;
}

.text {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.text p {
  margin: 0;
  overflow-wrap: anywhere;
}

.de {
  font-size: 21px;
  line-height: 1.45;
  font-weight: 500;
}

.en {
  margin-top: 7px !important;
  color: #6e6b63;
  font-size: 16px;
  line-height: 1.45;
}

.take {
  position: relative;
  z-index: 1;
  grid-column: 2;
  width: max-content;
  max-width: 100%;
  margin-top: 8px;
  color: #777268;
  font-size: 12px;
  line-height: 1;
}

@media (max-width: 560px) {
  .menu,
  .script {
    width: min(100% - 24px, 860px);
    padding-top: 24px;
  }

  .line {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
  }

  .play {
    width: 54px;
    height: 40px;
  }

  .de {
    font-size: 18px;
  }
}
