body.has-clean-route-player {
  padding-bottom: 118px;
}

.clean-route-player {
  position: fixed;
  z-index: 40;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 16px;
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  overflow: hidden;
  color: #f7f5ef;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: rgba(22, 24, 27, 0.88);
  box-shadow: 0 24px 80px rgba(18, 18, 18, 0.32);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  backdrop-filter: blur(22px) saturate(135%);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .clean-route-player {
    background: #1b1d20;
  }
}

.clean-route-player,
.clean-route-player * {
  box-sizing: border-box;
}

.clean-route-player button,
.clean-route-player a {
  font: inherit;
}

.clean-route-player button {
  cursor: pointer;
}

.clean-route-player__compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 12px 14px 12px 18px;
}

.clean-route-player__compact-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 0;
  color: inherit;
  text-align: left;
  border: 0;
  background: transparent;
}

.clean-route-player__mark {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(244, 177, 91, 0.36);
  border-radius: 50%;
  color: #ffca78;
  background: rgba(244, 177, 91, 0.12);
}

.clean-route-player__mark::before {
  width: 9px;
  height: 9px;
  content: "";
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 6px rgba(244, 177, 91, 0.12);
}

.clean-route-player__compact-copy {
  min-width: 0;
}

.clean-route-player__compact-copy small,
.clean-route-player__compact-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clean-route-player__compact-copy small {
  color: rgba(247, 245, 239, 0.62);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clean-route-player__compact-copy strong {
  color: #f7f5ef;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.clean-route-player__count {
  color: rgba(247, 245, 239, 0.68);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.clean-route-player__icon,
.clean-route-player__control,
.clean-route-player__link,
.clean-route-player__text-button {
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.clean-route-player__icon:hover,
.clean-route-player__control:hover,
.clean-route-player__link:hover,
.clean-route-player__text-button:hover {
  transform: translateY(-1px);
}

.clean-route-player__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #f7f5ef;
  background: rgba(255, 255, 255, 0.08);
}

.clean-route-player__icon:hover {
  background: rgba(255, 255, 255, 0.14);
}

.clean-route-player__play-glyph {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid currentColor;
}

.clean-route-player__pause-glyph {
  width: 12px;
  height: 15px;
  border-right: 4px solid currentColor;
  border-left: 4px solid currentColor;
}

.clean-route-player__expanded {
  display: none;
  max-height: min(74vh, 720px);
  overflow: auto;
  padding: 0 22px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  overscroll-behavior: contain;
}

.clean-route-player.is-open .clean-route-player__expanded {
  display: block;
}

.clean-route-player__expanded-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 22px;
}

.clean-route-player__eyebrow,
.clean-route-player__expanded-top p,
.clean-route-player__stop-kicker {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.clean-route-player__eyebrow {
  color: #ffca78;
}

.clean-route-player__expanded-top h2 {
  margin: 6px 0 4px;
  color: #f7f5ef;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.clean-route-player__expanded-top p:last-child {
  color: rgba(247, 245, 239, 0.6);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.clean-route-player__text-button,
.clean-route-player__link {
  padding: 0;
  border: 0;
  color: rgba(247, 245, 239, 0.76);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgba(247, 245, 239, 0.28);
  text-underline-offset: 4px;
}

.clean-route-player__text-button:hover,
.clean-route-player__link:hover {
  color: #f7f5ef;
}

.clean-route-player__current {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
}

.clean-route-player__stop-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(247, 245, 239, 0.62);
}

.clean-route-player__stop-kicker strong {
  color: #ffca78;
  font-variant-numeric: tabular-nums;
}

.clean-route-player__current h3 {
  margin: 11px 0 8px;
  color: #f7f5ef;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.clean-route-player__current-copy {
  max-width: 660px;
  margin: 0;
  color: rgba(247, 245, 239, 0.72);
  line-height: 1.55;
}

.clean-route-player__progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: rgba(247, 245, 239, 0.58);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
}

.clean-route-player__progress-track {
  position: relative;
  flex: 1;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.clean-route-player__progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f4b15b, #ffca78);
  transition: width 220ms linear;
}

.clean-route-player__controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.clean-route-player__control {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: #f7f5ef;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.87rem;
  font-weight: 750;
}

.clean-route-player__control:last-child {
  justify-self: end;
}

.clean-route-player__control:disabled {
  cursor: default;
  opacity: 0.4;
  transform: none;
}

.clean-route-player__control--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 150px;
  border-color: #f4b15b;
  color: #1c1a17;
  background: #ffca78;
}

.clean-route-player__secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 16px;
}

.clean-route-player__status {
  min-height: 1.25em;
  margin: 12px 0 0;
  color: rgba(247, 245, 239, 0.56);
  font-size: 0.78rem;
}

.clean-route-player__stops {
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.clean-route-player__stops summary {
  padding: 16px 0 10px;
  color: rgba(247, 245, 239, 0.78);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clean-route-player__stops ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  margin: 0;
  padding: 0 0 2px;
  list-style: none;
}

.clean-route-player__stops li button {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  width: 100%;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: rgba(247, 245, 239, 0.68);
  background: transparent;
  text-align: left;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.clean-route-player__stops li button:hover,
.clean-route-player__stops li button[aria-current="true"] {
  color: #f7f5ef;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.clean-route-player__stops li button span {
  color: #ffca78;
  font-size: 0.73rem;
  font-variant-numeric: tabular-nums;
}

.clean-route-player__stops li button strong {
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 640px) {
  body.has-clean-route-player {
    padding-bottom: 96px;
  }

  .clean-route-player {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 22px 22px 0 0;
  }

  .clean-route-player__compact {
    min-height: 76px;
    padding-right: 12px;
    padding-left: 14px;
  }

  .clean-route-player__count {
    display: none;
  }

  .clean-route-player__expanded {
    max-height: 78vh;
    padding: 0 14px calc(15px + env(safe-area-inset-bottom));
  }

  .clean-route-player__expanded-top {
    padding-top: 16px;
  }

  .clean-route-player__current {
    padding: 17px;
  }

  .clean-route-player__control {
    padding: 0 11px;
    font-size: 0.78rem;
  }

  .clean-route-player__control--primary {
    min-width: 0;
    padding: 0 13px;
  }

  .clean-route-player__stops ol {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .clean-route-player *,
  .clean-route-player *::before,
  .clean-route-player *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
