.ts.ts {
  margin-block-start: 0;
}

.ts {
  background-color: #241f27;
}

.ts-inner {
  padding: 56px 0;

  @media (min-width: 768px) {
    padding: 64px 0;
  }

  @media (min-width: 1024px) {
    padding: 96px 0;
  }
}

.ts-container {
  margin: 0 auto;
}

.ts-title__wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.ts-title {
  @media (max-width: 767px) {
    width: 270px;
  }

  margin-bottom: 40px;

  color: #ffffff;

  font-weight: 400;
  font-size: 24px;
  line-height: 1.1;
  text-align: center;

  @media (min-width: 768px) {
    margin-bottom: 48px;

    font-size: 28px;
  }
}

.ts-viewport {
  overflow: hidden;
}

.ts-track {
  display: flex;
  gap: 16px;

  width: max-content;

  touch-action: none;
  user-select: none;

  @media (min-width: 768px) {
    gap: 64px;
  }
}

.ts-card {
  width: 255px;
  height: 360px;

  border-radius: 12px;

  background-color: #e4e1e6;

  @media (min-width: 768px) {
    width: 394px;
    height: 454px;
  }
}

.ts-card__text {
  display: flex;
  flex-direction: column;

  padding: 8px;

  @media (min-width: 768px) {
    padding: 16px;
  }
}

.ts-card__media {
  position: relative;

  width: 100%;
  height: 100%;
}

.ts-card__video {
  width: 100%;
  height: 100%;
  border-radius: 12px;

  object-fit: cover;

  filter: grayscale(1);
  transition: filter 0.4s ease;
}

.ts-card__media.is-playing .ts-card__video {
  filter: none;
}

.ts-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 10px 12px;
  border: 0;
  border-radius: 4px;
  background-color: #4b4cff;
  z-index: 10;
}

.ts-card__media.is-played .ts-card__play {
  display: none;
}

.ts-card__play--icon {
  width: 10px;
  height: 12px;
}

.ts-card__play--text {
  color: #ffffff;

  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  text-transform: lowercase;

  @media (min-width: 1024px) {
    font-weight: 500;
    font-size: 17px;
  }
}

.ts-card__mute {
  position: absolute;
  left: 8px;
  top: 8px;

  display: none;
  align-items: center;
  justify-content: center;

  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background-color: #e4e1e6;
  z-index: 10;

  @media (min-width: 768px) {
    left: 16px;
    top: 16px;
  }
}

.ts-card__media.is-playing .ts-card__mute {
  display: flex;
}

.ts-card__mute--icon {
  width: 20px;
  height: 20px;
}
.ts-card__mute--off {
  display: none;
}

.ts-card__mute.is-muted .ts-card__mute--on {
  display: none;
}

.ts-card__mute.is-muted .ts-card__mute--off {
  display: block;
}

.ts-card__progress--segment {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 94px;

  height: 5px;
  border-radius: 3px;

  background-color: #ffffff;

  overflow: hidden;
  z-index: 10;

  @media (min-width: 768px) {
    left: 16px;
    right: 16px;
    bottom: 82px;
  }
}

.ts-card__progress--segment::before {
  content: "";
  display: block;

  height: 100%;
  width: 0;

  background-color: #b4b4b4;
}

.ts-card__progress--segment.is-active::before {
  animation: fill-progress linear forwards;
  animation-duration: var(--duration, 5s);
}

.ts-card__media:not(.is-playing) .ts-card__progress--segment.is-active::before {
  animation-play-state: paused;
}

@keyframes fill-progress {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

.ts-card__timer {
  position: absolute;
  bottom: 102px;
  left: 8px;

  color: #ffffff;

  font-size: 15px;
  line-height: 1.3;

  @media (min-width: 768px) {
    left: 16px;
    bottom: 97px;
  }
}

.ts-card__overlay {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;

  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 4px;
  border-radius: 8px;
  background-color: #e4e1e6;
  z-index: 10;

  @media (min-width: 768px) {
    bottom: 16px;
    left: 16px;
    right: 16px;

    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;

    height: 56px;
    padding: 8px 12px;
  }
}

.ts-card__name--desktop {
  display: none;

  @media (min-width: 768px) {
    display: block;
  }
}

.ts-card__name {
  color: #241f27;

  font-size: 12px;
  line-height: 1.2;
}

.ts-card__position {
  color: #949097;

  font-size: 12px;
  line-height: 1.2;
}

.ts-card__name--mobile {
  margin: 4px 0 2px;

  @media (min-width: 768px) {
    display: none;
  }
}

.ts-card__name--mobile,
.ts-card__position--mobile {
  display: block;

  @media (min-width: 768px) {
    display: none;
  }
}

.ts-card__stars {
  display: flex;
  justify-content: center;

  margin-bottom: 16px;

  @media (min-width: 768px) {
    margin-bottom: 24px;
  }
}

.ts-card__star {
  width: 94px;
  height: 16px;
}

.ts-card__head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;

  margin-bottom: 8px;

  background-color: #e4e1e6;

  @media (min-width: 768px) {
    gap: 13px;

    margin-bottom: 16px;
  }
}

.ts-card__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;

  @media (min-width: 768px) {
    width: 35px;
    height: 35px;
  }
}

.ts-card__monogram {
  display: grid;
  place-items: center;

  flex-shrink: 0;

  width: 32px;
  height: 32px;
  border-radius: 50%;

  background-color: #7a7474;

  @media (min-width: 768px) {
    width: 35px;
    height: 35px;
  }
}

.ts-card__monogram__letter {
  margin-top: 1px;

  color: #333134;

  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.6;
}

.ts-card__name--text {
  color: #333134;

  font-size: 15px;
  line-height: 1.3;
}

.ts-card__position--text {
  color: #949097;

  font-size: 15px;
  line-height: 1.3;
}

.ts-card__quote--wrapper {
  flex-shrink: 0;

  height: 180px;
  overflow: hidden;

  @media (min-width: 768px) {
    height: 223px;
  }
}

.ts-card__quote {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
  line-clamp: 8;
  overflow: hidden;
  color: #333134;

  font-size: 20px;
  line-height: 1.1;

  @media (min-width: 768px) {
    font-size: 22px;
    line-height: 1.25;
  }
}

.ts-card__platform {
  margin-top: auto;

  width: 200px;
  height: 25px;
}

.ts-progress {
  display: none;

  @media (min-width: 1024px) {
    position: relative;

    display: block;

    width: 237px;
    margin: 56px auto 0;

    overflow: hidden;
  }
}

.ts-progress__bar {
  position: absolute;
  left: 0;
  top: 0;

  width: 0%;
  height: 15px;
  flex-shrink: 0;

  border: 1px solid #ffffff;
  background-color: #241f27;
  z-index: 10;
}

.ts-progress__bar::after {
  position: absolute;
  content: "";
  left: 100%;
  top: -1px;
  bottom: -1px;

  width: var(--shadow, 0px);
  margin-left: 1px;

  background-image: linear-gradient(
    to right,
    #241f27 0,
    #241f27 10%,
    transparent 100%
  );
}

.ts-progress__ticks {
  height: 15px;

  background-image: repeating-linear-gradient(
    to right,
    #ffffff 0,
    #ffffff 1px,
    transparent 1px,
    transparent 8px
  );
}

.ts-card__progress--segment,
.ts-card__timer {
  display: none;
}

.ts-card__media.is-playing .ts-card__progress--segment,
.ts-card__media.is-playing .ts-card__timer {
  display: block;
}

.ts-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin: 32px 16px 0 16px;

  @media (min-width: 768px) {
    margin: 48px 32px 0 32px;
  }

  @media (min-width: 1024px) {
    display: none;
  }
}

.ts-nav__text {
  color: #949097;

  font-size: 15px;
  line-height: 1.3;

  @media (min-width: 768px) {
    font-weight: 600;
    font-size: 28px;
    line-height: 1.1;
  }
}

.ts-nav__buttons {
  display: flex;
  gap: 12px;

  @media (min-width: 768px) {
    gap: 17px;
  }
}

.ts-nav__button {
  padding: 0;
  border-width: 0;
  background-color: transparent;
}

.ts-nav__icon--mobile {
  width: 32px;
  height: 32px;

  @media (min-width: 768px) {
    display: none;
  }
}

.ts-nav__icon--tablet {
  display: none;

  @media (min-width: 768px) {
    display: block;

    width: 48px;
    height: 48px;
  }
  @media (min-width: 1024px) {
    display: none;
  }
}

.ts-nav__button svg rect,
.ts-nav__button svg path {
  transition: fill 0.3s ease;
}

@media (hover: hover) {
  .ts-nav__button:hover svg rect {
    fill: #4b4cff;
  }

  .ts-nav__button:hover svg path {
    fill: #ffffff;
  }
}

.ts-nav__button:active svg rect,
.ts-nav__button:focus-visible svg rect {
  fill: #1819d3;
}

.ts-nav__button:active svg path,
.ts-nav__button:focus-visible svg path {
  fill: #ffffff;
}
