.lt-player {
  --played: 0%;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: #fff;
}

.lt-player.video { background: #242424; }
.lt-player.video > video { display: block; width: 100%; height: 100%; object-fit: contain; }
.lt-detail-preview .lt-player.video > video { border-radius: 0; }
.lt-detail-preview .lt-player { border-radius: 9px; }
.lt-detail-preview .lt-player.audio { height: 146px; }
.lt-player.audio > audio { display: none; }

.lt-player-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.lt-player.video .lt-player-bar {
  position: absolute;
  inset: auto 0 0;
  padding: 18px 14px 11px;
  background: linear-gradient(transparent, #0009);
  opacity: 0;
  pointer-events: none;
}

.lt-player.video:is(.active,.playing,:hover,:focus-within) .lt-player-bar {
  opacity: 1;
  pointer-events: auto;
}

.lt-player-button {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 0;
  border-radius: 5px;
  background: transparent;
  padding: 3px;
  cursor: pointer;
}

.lt-player-button:hover { background: #fff2; }
.lt-player-button svg { width: 16px; height: 16px; pointer-events: none; }
.lt-player-seek {
  appearance: none;
  flex: 1 1 auto;
  min-width: 0;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  cursor: pointer;
  touch-action: none;
}

.lt-player-seek::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 5px;
  background: linear-gradient(to right, #eee var(--played), #fff5 var(--played));
}

.lt-player-seek::-webkit-slider-thumb {
  appearance: none;
  width: 10px;
  height: 10px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: #fff;
}

.lt-player-seek::-moz-range-track { height: 3px; background: #fff5; }
.lt-player-seek::-moz-range-progress { height: 3px; background: #eee; }
.lt-player-seek::-moz-range-thumb { width: 10px; height: 10px; border: 0; background: #fff; }
.lt-player.audio { display: flex; flex-direction: column; padding: 12px 18px 7px; }
.lt-player.audio .lt-player-bar { flex: 1; justify-content: space-between; color: #bcbcbc; padding: 0 4px; }
.lt-player-wave { position: relative; height: 78px; border-radius: 9px; background: #2b2b2b; }
.lt-player-wave .lt-audio-wave { height: 100%; margin: 0; border: 0; gap: 3px; padding: 0 5px; }
.lt-player-wave .lt-audio-wave span { height: 2px; background: #727272; }
.lt-player-wave .lt-player-seek { position: absolute; inset: 2px 0; width: 100%; height: calc(100% - 4px); }
.lt-player-wave .lt-player-seek::-webkit-slider-runnable-track { height: 100%; background: transparent; }
.lt-player-wave .lt-player-seek::-webkit-slider-thumb { height: 100%; width: 2px; margin: 0; border-radius: 0; background: #e57564; }
.lt-player-wave .lt-player-seek::-moz-range-track,
.lt-player-wave .lt-player-seek::-moz-range-progress { height: 100%; background: transparent; }
.lt-player-wave .lt-player-seek::-moz-range-thumb { width: 2px; height: 72px; border-radius: 0; background: #e57564; }
.lt-player-error { position: absolute; left: 12px; top: 10px; z-index: 1; background: #191919de; padding: 4px 7px; border-radius: 5px; }

.lt-media-edit.lt-trim-editor { padding: 7px 10px; border-radius: 16px; background: #262626; }
.lt-trim-row { display: flex; align-items: center; gap: 10px; }
.lt-trim-row strong { font-size: 12px; }
.lt-trim-row [data-trim-summary] { font-size: 12px; font-variant-numeric: tabular-nums; background: #3a3a3a; padding: 4px 8px; border-radius: 7px; white-space: nowrap; }
.lt-trim-row [data-lt="media-confirm"] { flex: none; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: #1a1a1a; }
.lt-trim-editor.audio .lt-trim-row [data-lt="media-confirm"] { width: 32px; height: 32px; border-radius: 8px; }
.lt-trim-row [data-lt="media-confirm"]:disabled { opacity: .45; }
.lt-filmstrip { flex: 1; min-width: 0; height: 56px; display: flex; position: relative; border-radius: 9px; background: #191919; }
.lt-film-frame { min-width: 0; flex: 1; display: grid; place-items: center; color: #666; overflow: hidden; }
.lt-film-frame:first-child { border-radius: 9px 0 0 9px; }
.lt-film-frame:nth-child(10) { border-radius: 0 9px 9px 0; }
.lt-film-frame .icon { width: 16px; height: 16px; }
.lt-film-frame img { display: block; width: 100%; height: 56px; object-fit: cover; }
.lt-filmstrip .lt-media-range,
.lt-player-wave .lt-media-range { inset-block: 1px; z-index: 1; border-radius: 7px; box-shadow: 0 0 0 1px #12121288; }
.lt-filmstrip .lt-media-range { border-color: #5f97f5; }
.lt-media-range > button { position: absolute; top: 0; background: #e4e4e4; touch-action: none; }
.lt-filmstrip .lt-media-range > button { background: #5f97f5; }
.lt-media-range > button:first-child { left: -2px; }
.lt-media-range > button:last-child { right: -2px; }
.lt-media-range > span { bottom: auto; top: 50%; transform: translate(-50%, -50%); }
.lt-trim-values { margin-top: 7px; }

@media (max-width: 700px) {
  .lt-trim-row { gap: 5px; }
  .lt-trim-editor .lt-icon { flex: none; width: 25px; }
}
