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

.pt40-player {
  --pt40-accent: #b80000;
  --pt40-line: #eadbd1;
  --pt40-ink: #1f1715;
  --pt40-muted: #6f625d;
  --pt40-muted-soft: #9a8d87;
  --pt40-ring: rgba(184, 0, 0, .16);
  --pt40-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  width: min(100%, 680px);
  max-width: 680px;
  margin: 12px 0 18px;
  clear: both;
  color: var(--pt40-ink);
  font-family: var(--pt40-font) !important;
}

.pt40-player a,
.pt40-player button,
.pt40-player input,
.pt40-player select {
  font-family: var(--pt40-font) !important;
}

.pt40-player a {
  color: inherit;
  text-decoration: none !important;
}

.pt40-shell {
  width: 100%;
  min-height: 0;
  padding: 9px 11px 7px;
  overflow: hidden;
  border: 1px solid var(--pt40-line);
  border-left: 4px solid var(--pt40-accent);
  border-radius: 5px;
  background: transparent;
  box-shadow: none;
}

.pt40-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  margin-bottom: 6px;
}

.pt40-brandline {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.pt40-brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 190px;
  overflow: hidden;
  color: var(--pt40-accent);
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt40-subtitle {
  min-width: 0;
  color: var(--pt40-muted);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt40-actions-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}

.pt40-sponsor {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "logo label icon" "logo name icon";
  column-gap: 6px;
  align-items: center;
  max-width: 182px;
  min-height: 30px;
  padding: 2px 0 2px 8px;
  border-left: 1px solid rgba(117, 104, 98, .24);
  color: var(--pt40-ink);
  line-height: 1;
}

.pt40-sponsor img {
  grid-area: logo;
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 3px;
}

.pt40-sponsor span {
  grid-area: label;
  color: var(--pt40-muted-soft);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .035em;
}

.pt40-sponsor strong {
  grid-area: name;
  min-width: 0;
  overflow: hidden;
  color: var(--pt40-ink);
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt40-sponsor em {
  grid-area: icon;
  color: var(--pt40-accent);
  font-size: 10px;
  font-style: normal;
}

.pt40-main {
  display: grid;
  gap: 9px;
  align-items: center;
  min-width: 0;
}

.pt40-player--with-cover .pt40-main {
  grid-template-columns: 60px 44px minmax(0, 1fr);
}

.pt40-player--no-cover .pt40-main {
  grid-template-columns: 44px minmax(0, 1fr);
}

.pt40-cover {
  width: 60px;
  height: 60px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(117, 104, 98, .18);
  border-radius: 4px;
  background: transparent;
}

.pt40-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.pt40-play {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  position: relative;
  border: 0;
  border-radius: 5px;
  background: var(--pt40-accent);
  box-shadow: none;
  cursor: pointer;
}

.pt40-play span {
  position: absolute;
  left: 54%;
  top: 50%;
  width: 0;
  height: 0;
  transform: translate(-42%, -50%);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid #fff;
}

.pt40-player.is-playing .pt40-play span {
  left: 50%;
  width: 15px;
  height: 18px;
  transform: translate(-50%, -50%);
  border: 0;
  background: linear-gradient(90deg, #fff 0 34%, transparent 34% 66%, #fff 66% 100%);
}

.pt40-content,
.pt40-audio-column {
  min-width: 0;
}

.pt40-title-marquee {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 6px;
  overflow: hidden;
  color: var(--pt40-ink);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.pt40-title-track {
  display: inline-flex;
  align-items: center;
  gap: 38px;
  min-width: max-content;
  padding-right: 38px;
  will-change: transform;
  animation: pt40-title-scroll 18s linear infinite;
}

.pt40-title-track span {
  display: inline-block;
}

@keyframes pt40-title-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 19px)); }
}

.pt40-progress-line {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 48px;
  gap: 7px;
  align-items: center;
  margin: 0;
  color: var(--pt40-muted);
  font-size: 10px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.pt40-current {
  color: var(--pt40-accent);
  font-weight: 950;
}

.pt40-duration {
  overflow: hidden;
  color: var(--pt40-muted);
  font-weight: 850;
  text-align: right;
  white-space: nowrap;
}

.pt40-progress,
.pt40-volume {
  width: 100%;
  accent-color: var(--pt40-accent);
  cursor: pointer;
}

.pt40-progress {
  height: 12px;
}

.pt40-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-top: 5px;
}

.pt40-volume-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1 1 150px;
  min-width: 112px;
  max-width: 190px;
}

.pt40-volume {
  min-width: 72px;
  height: 14px;
}

.pt40-mute,
.pt40-skip,
.pt40-speed {
  min-height: 25px;
  border: 1px solid rgba(117, 104, 98, .26);
  border-radius: 4px;
  background: transparent;
  color: var(--pt40-ink);
  padding: 3px 7px;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
}

.pt40-mute {
  min-width: 40px;
  color: var(--pt40-accent);
}

.pt40-skip {
  min-width: 36px;
}

.pt40-speed {
  min-width: 52px;
  max-width: 60px;
  padding-right: 3px;
}

.pt40-status {
  min-height: 12px;
  margin-top: 2px;
  color: var(--pt40-muted);
  font-size: 9px;
  line-height: 1.2;
  font-weight: 700;
}

.pt40-platform-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(117, 104, 98, .14);
}

.pt40-platform-title {
  flex: 0 0 auto;
  color: var(--pt40-muted);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 850;
}

.pt40-platforms {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
}

.pt40-platform {
  display: inline-flex;
  align-items: center;
  color: var(--pt40-accent);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 900;
  white-space: nowrap;
}

.pt40-platform + .pt40-platform::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 10px;
  margin-right: 7px;
  background: rgba(117, 104, 98, .24);
}

.pt40-credit {
  margin-top: 5px;
  color: var(--pt40-muted);
  font-size: 9px;
  line-height: 1.2;
  font-weight: 750;
  text-align: right;
}

.pt40-credit a {
  color: var(--pt40-accent);
  font-weight: 950;
}

.pt40-player a:hover,
.pt40-player a:focus-visible,
.pt40-play:hover,
.pt40-play:focus-visible,
.pt40-mute:hover,
.pt40-mute:focus-visible,
.pt40-skip:hover,
.pt40-skip:focus-visible,
.pt40-speed:hover,
.pt40-speed:focus-visible {
  outline: 2px solid var(--pt40-ring);
  outline-offset: 2px;
}

.pt40-visualizer,
.pt40-mini-link,
.pt40-linkbar,
.pt40-footer-row,
.pt40-nowplaying,
.pt40-tts-source {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .pt40-title-track {
    animation: none;
  }
}

@media (max-width: 640px) {
  .pt40-player {
    width: 100%;
    max-width: 100%;
    margin: 10px 0 16px;
  }

  .pt40-shell {
    padding: 8px 9px 7px;
  }

  .pt40-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .pt40-actions-top,
  .pt40-sponsor {
    width: 100%;
    max-width: 100%;
  }

  .pt40-player--with-cover .pt40-main {
    grid-template-columns: 52px 40px minmax(0, 1fr);
    gap: 7px;
  }

  .pt40-player--no-cover .pt40-main {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 7px;
  }

  .pt40-cover {
    width: 52px;
    height: 52px;
  }

  .pt40-play {
    width: 40px;
    height: 40px;
  }

  .pt40-title-marquee {
    font-size: 12px;
    margin-bottom: 5px;
  }

  .pt40-progress-line {
    grid-template-columns: 36px minmax(0, 1fr) 42px;
    gap: 5px;
    font-size: 9px;
  }

  .pt40-controls {
    gap: 5px;
    flex-wrap: wrap;
  }

  .pt40-volume-wrap {
    flex: 1 1 100%;
    max-width: none;
  }

  .pt40-mute,
  .pt40-skip,
  .pt40-speed {
    min-height: 24px;
    padding: 3px 6px;
    font-size: 9px;
  }

  .pt40-platform-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .pt40-platforms {
    flex-wrap: wrap;
    row-gap: 4px;
    overflow: visible;
  }

  .pt40-credit {
    text-align: left;
  }
}

@media (max-width: 390px) {
  .pt40-brandline {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .pt40-player--with-cover .pt40-main {
    grid-template-columns: 48px 38px minmax(0, 1fr);
  }

  .pt40-cover {
    width: 48px;
    height: 48px;
  }

  .pt40-play {
    width: 38px;
    height: 38px;
  }
}

.pt40-title-marquee--static .pt40-title-track {
  animation: none;
  transform: none;
}

.pt40-title-marquee--static .pt40-title-track span[aria-hidden="true"] {
  display: none;
}
