.player {
  width: min(1120px, calc(100vw - 32px));
}

.player-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(310px, 0.72fr);
  gap: 18px;
  align-items: start;
}

.media-mount {
  min-width: 0;
  aspect-ratio: auto;
  background: #17172a;
  border-radius: 8px;
  overflow: hidden;
}

.native-player,
.platform-player,
.audio-player {
  background: #17172a;
}

.native-player {
  position: relative;
}

.native-player video,
.platform-player iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #17172a;
}

.media-overlay,
.media-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  color: #fff;
  background: linear-gradient(180deg, #17172a22, #17172acc);
  text-align: center;
}

.media-overlay[hidden],
.media-fallback[hidden] {
  display: none;
}

.media-status {
  color: #f0efff;
  font-size: 13px;
}

.media-hint {
  color: #dedcf7;
  font-size: 12px;
}

.play-overlay {
  width: 58px;
  height: 58px;
  padding-left: 5px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 25px #0006;
  color: #5146d8;
  font-size: 23px;
}

.play-overlay:hover {
  transform: scale(1.04);
}

.media-fallback {
  background: #17172af0;
}

.media-fallback strong {
  font-size: 17px;
}

.media-fallback span {
  max-width: 280px;
  color: #d9d9e8;
  font-size: 13px;
}

.media-fallback div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.media-fallback .outline {
  border-color: #ffffff55;
  background: #ffffff12;
  color: #fff;
}

.media-source {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  color: #c6c4dc;
  font-size: 12px;
}

.source-link {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.source-link:hover {
  text-decoration: underline;
}

.audio-player {
  padding: 18px;
}

.audio-poster {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #fff;
}

.audio-poster img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: #2c2a45;
  object-fit: cover;
}

.audio-player audio {
  display: block;
  width: 100%;
  height: 46px;
}

.subtitle-panel {
  height: 100%;
  max-height: 472px;
  overflow: auto;
  border: 1px solid #e5e4ef;
  border-radius: 8px;
  background: #f7f7fb;
  padding: 5px;
}

.subtitle-panel p {
  margin: 12px;
}

.subtitle-panel .cue {
  display: grid;
  width: 100%;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  border: 0;
  border-bottom: 1px solid #e7e6ef;
  background: transparent;
  padding: 11px 9px;
  color: var(--ink);
  text-align: left;
}

.subtitle-panel .cue:hover {
  background: #eeedff;
}

.subtitle-panel .cue.active {
  background: #e2dfff;
}

.subtitle-panel .cue time {
  padding-top: 1px;
  color: var(--violet);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.subtitle-panel .cue strong,
.subtitle-panel .cue small {
  display: block;
}

.subtitle-panel .cue strong {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}

.subtitle-panel .cue small {
  margin-top: 4px;
  color: #62667a;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 780px) {
  .player {
    width: min(1120px, calc(100vw - 20px));
  }

  .player-workspace {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .subtitle-panel {
    max-height: 280px;
  }

  .media-overlay {
    padding: 14px;
  }

  .play-overlay {
    width: 48px;
    height: 48px;
    font-size: 19px;
  }
}
